diff --git a/docs/api/routes-all.md b/docs/api/routes-all.md index 7545895..f2682c9 100644 --- a/docs/api/routes-all.md +++ b/docs/api/routes-all.md @@ -9,17 +9,17 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body). ### Reusable types -- `T1` = `{ id: int, number: str, type: str, entityId: int, date: str, lines: T20[], externalNumber?: str|null, createdAt?: str, shipping?: T19|null, shippings?: T19[], payment?: T30|null, payments?: T30[], paid?: bool, shipped?: bool, delivered?: bool, orderTotal?: num, paidTotal?: num, orderedQuantity?: num, shippedQuantity?: num, shipments?: T3[], files?: T9[] }` -- `T2` = `{ id: int, sku: str, name: str, slug: str, desc: str|null, seo: str|null, track_stock: bool, unitamount: num|null, weight: num|null, unit: T27, brand: T26|null, categoryIds: int[], photos: T24[], eans: str[], prices: T35[], suppliers: T11[] }` -- `T3` = `{ id: int, number: str, type: str, date: str, lines: T20[], shippings: T19[], entityId?: int|null, externalNumber?: str|null, createdAt?: str|null, lineCount?: int, packageCount?: int, files?: T9[], state?: str }` -- `T4` = `{ id: int, number: str, type: str, date: str, lines: T20[], entityId?: int|null, externalNumber?: str|null, createdAt?: str, positions?: int, grossTotal?: num, totalQuantity?: num, customerName?: str|null, files?: T9[] }` -- `T5` = `{ id: int, number: str, type: str, supplierId: int, date: str, lines: T20[], files: T9[], externalNumber?: str|null, createdAt?: str, ledger?: T39 }` +- `T1` = `{ id: int, number: str, type: str, entityId: int, date: str, lines: T20[], externalNumber?: str|null, createdAt?: str, shipping?: T19|null, shippings?: T19[], payment?: T30|null, payments?: T30[], paid?: bool, shipped?: bool, delivered?: bool, orderTotal?: num, paidTotal?: num, orderedQuantity?: num, shippedQuantity?: num, shipments?: T3[], files?: T10[] }` +- `T2` = `{ id: int, sku: str, name: str, slug: str, desc: str|null, seo: str|null, track_stock: bool, unitamount: num|null, weight: num|null, unit: T27, brand: T26|null, categoryIds: int[], photos: T24[], eans: str[], prices: T35[], suppliers: T8[] }` +- `T3` = `{ id: int, number: str, type: str, date: str, lines: T20[], shippings: T19[], entityId?: int|null, externalNumber?: str|null, createdAt?: str|null, lineCount?: int, packageCount?: int, files?: T10[], state?: str }` +- `T4` = `{ id: int, number: str, type: str, date: str, lines: T20[], entityId?: int|null, externalNumber?: str|null, createdAt?: str, positions?: int, grossTotal?: num, totalQuantity?: num, customerName?: str|null, files?: T10[] }` +- `T5` = `{ id: int, number: str, type: str, supplierId: int, date: str, lines: T20[], files: T10[], externalNumber?: str|null, createdAt?: str, ledger?: T39 }` - `T6` = `{ name: str, path: str, totalSizeBytes: int, timestamp: str|null, manifest?: T7|null }` - `T7` = `{ id: str, timestamp: str, dateKey: str, monthKey: str, dbProvider: str, files: T12, totalSizeBytes: int, durationMs: int }` -- `T8` = `{ id: int, name: str, width: num, height: num, dpi: int, type: str, content: { objects: T21[] }, thumb?: str|null }` -- `T9` = `{ id: int, manifestId: int, fileId: int, sort: int, hash: str, mimetype: str, name: str, size: int, created?: str, modified?: str, skeledash?: str|null, thumbx?: int|null, thumby?: int|null, meta?: { [k]: str }|null }` -- `T10` = `{ id: int, name: str, pairingpin?: str|null, token?: str|null, pairedAt?: str|null, clientserial?: str|null, rootCategoryId?: int|null, syncRootArticles?: bool, lastseenAt?: str|null, updatedAt?: str|null, categoryIds?: int[] }` -- `T11` = `{ id: int, articleId: int, entityId: int, pu: num, sort: int, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T41|null }` +- `T8` = `{ id: int, articleId: int, entityId: int, pu: num, sort: int, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T41|null, incoming?: { date: str, amount: num }[] }` +- `T9` = `{ id: int, name: str, width: num, height: num, dpi: int, type: str, content: { objects: T21[] }, thumb?: str|null }` +- `T10` = `{ id: int, manifestId: int, fileId: int, sort: int, hash: str, mimetype: str, name: str, size: int, created?: str, modified?: str, skeledash?: str|null, thumbx?: int|null, thumby?: int|null, meta?: { [k]: str }|null }` +- `T11` = `{ id: int, name: str, pairingpin?: str|null, token?: str|null, pairedAt?: str|null, clientserial?: str|null, rootCategoryId?: int|null, syncRootArticles?: bool, lastseenAt?: str|null, updatedAt?: str|null, categoryIds?: int[] }` - `T12` = `{ vfs: T40, storage: T40, database: T33 }` - `T13` = `{ id: int, entityId: int, addressType: str, firstName?: str|null, name?: str|null, street?: str|null, streetNumber?: str|null, zip?: str|null, city?: str|null, county?: str|null }` - `T14` = `{ id: int, company_id: int, prompt: str, max_itr: int, cron: str, created_at: str, desc?: str|null, skills?: str|null, lastagentnote?: str|null, lastrun_at?: str|null }` @@ -166,10 +166,10 @@ _none_ - Returns: `200 { ok: bool }` #### List article suppliers — `GET /article/{sku}/supplier` - Params: `sku: str` -- Returns: `200 { suppliers: T11[] }` +- Returns: `200 { suppliers: T8[] }` #### Assign supplier to article — `POST /article/{sku}/supplier` - Params: `sku: str, body: { entityId: int, sku?: str|null, pu?: num, stock?: num|null, sort?: int|null, netPrice?: num|null, taxId?: int|null, taxRate?: num|null }` -- Returns: `201 { supplier: T11 }` +- Returns: `201 { supplier: T8 }` #### Reorder article suppliers — `PUT /article/{sku}/supplier/order` - Params: `sku: str, body: { ids: int[] }` - Returns: `200 { ids: int[] }` @@ -178,7 +178,7 @@ _none_ - Returns: `204 void` #### Update article supplier assignment — `PATCH /article/{sku}/supplier/{id}` - Params: `sku: str, id: int, body: { sku?: str|null, pu?: num, stock?: num|null, sort?: int, netPrice?: num|null, taxId?: int|null, taxRate?: num|null }` -- Returns: `200 { supplier: T11 }` +- Returns: `200 { supplier: T8 }` #### Set article track_stock flag by SKU — `PUT /article/{sku}/track_stock` - Params: `sku: str, body: { track_stock: bool }` - Returns: `200 { article: T2 }` @@ -424,7 +424,7 @@ _none_ - Returns: `200 str` #### Generate and attach delivery note PDF (goods receipt) — `POST /delivery/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T9, fileUrl: str }` +- Returns: `201 { attachment: T10, fileUrl: str }` ### Section: /entity @@ -515,19 +515,19 @@ _none_ - Returns: `200 { labeltemplates: { id: int, name: str, width: num, height: num, dpi: int, type: str, thumb?: str|null }[] }` #### Create label template — `POST /labeltemplate` - Params: `body: { name: str, width: num, height: num, dpi: int, type: str, content: { objects: T21[] } }` -- Returns: `201 { labeltemplate: T8 }` +- Returns: `201 { labeltemplate: T9 }` #### Delete label template — `DELETE /labeltemplate/{id}` - Params: `id: int` - Returns: `204 void` #### Get label template by ID — `GET /labeltemplate/{id}` - Params: `id: int` -- Returns: `200 { labeltemplate: T8 }` +- Returns: `200 { labeltemplate: T9 }` #### Update label template (partial) — `PATCH /labeltemplate/{id}` - Params: `id: int, body: { name?: str, width?: num, height?: num, dpi?: int, type?: str, content?: { objects: T21[] } }` -- Returns: `200 { labeltemplate: T8 }` +- Returns: `200 { labeltemplate: T9 }` #### Update label template — `PUT /labeltemplate/{id}` - Params: `id: int, body: { name?: str, width?: num, height?: num, dpi?: int, type?: str, content?: { objects: T21[] } }` -- Returns: `200 { labeltemplate: T8 }` +- Returns: `200 { labeltemplate: T9 }` ### Section: /ledger @@ -647,7 +647,7 @@ _none_ - Returns: `201 { payment: T30 }` #### Generate and attach order PDF — `POST /order/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T9, fileUrl: str }` +- Returns: `201 { attachment: T10, fileUrl: str }` #### List shipments of an order — `GET /order/{id}/shipment` - Params: `id: int` - Returns: `200 { shipments: T3[] }` @@ -677,16 +677,16 @@ _none_ #### List POS terminals — `GET /posterminal` _none_ -- Returns: `200 { posterminals: T10[] }` +- Returns: `200 { posterminals: T11[] }` #### Create POS terminal — `PUT /posterminal` - Params: `body: { name: str, rootCategoryId?: int|null, syncRootArticles?: bool }` -- Returns: `200 { posterminal: T10 }` +- Returns: `200 { posterminal: T11 }` #### Delete POS terminal — `DELETE /posterminal/{id}` - Params: `id: int` - Returns: `204 void` #### Update POS terminal — `PATCH /posterminal/{id}` - Params: `id: int, body: { name?: str, rootCategoryId?: int|null, syncRootArticles?: bool, pairingpin?: str|null }` -- Returns: `200 { posterminal: T10 }` +- Returns: `200 { posterminal: T11 }` #### Disable all categories on terminal — `DELETE /posterminal/{id}/all` - Params: `id: int` - Returns: `200 { id: int, categoryIds: int[] }` @@ -785,7 +785,7 @@ _none_ - Returns: `201 { order: T1 }` #### Generate and attach quote PDF — `POST /quote/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T9, fileUrl: str }` +- Returns: `201 { attachment: T10, fileUrl: str }` ### Section: /serper @@ -824,7 +824,7 @@ _none_ - Returns: `200 str` #### Generate and attach shipment PDF (delivery note) — `POST /shipment/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T9, fileUrl: str }` +- Returns: `201 { attachment: T10, fileUrl: str }` #### List packages of a shipment — `GET /shipment/{id}/shipping` - Params: `id: int` - Returns: `200 { shippings: T19[] }` @@ -899,10 +899,10 @@ _none_ - Returns: `200 { supplier: T38 }` #### List supplier articles by SKUs — `GET /supplier/{id}/articles` - Params: `id: int, query: skus?: str` -- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T41|null }[] }` +- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T41|null, incoming?: { date: str, amount: num }[] }[] }` #### Query supplier articles by SKUs (bulk) — `POST /supplier/{id}/articles` - Params: `id: int, body?: { skus?: str[] }` -- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T41|null }[] }` +- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T41|null, incoming?: { date: str, amount: num }[] }[] }` ### Section: /thumb diff --git a/docs/api/routes.md b/docs/api/routes.md index 53e8a41..a26d181 100644 --- a/docs/api/routes.md +++ b/docs/api/routes.md @@ -9,14 +9,14 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body). ### Reusable types -- `T1` = `{ id: int, number: str, type: str, entityId: int, date: str, lines: T14[], externalNumber?: str|null, createdAt?: str, shipping?: T13|null, shippings?: T13[], payment?: T24|null, payments?: T24[], paid?: bool, shipped?: bool, delivered?: bool, orderTotal?: num, paidTotal?: num, orderedQuantity?: num, shippedQuantity?: num, shipments?: T3[], files?: T7[] }` -- `T2` = `{ id: int, sku: str, name: str, slug: str, desc: str|null, seo: str|null, track_stock: bool, unitamount: num|null, weight: num|null, unit: T21, brand: T20|null, categoryIds: int[], photos: T18[], eans: str[], prices: T27[], suppliers: T8[] }` -- `T3` = `{ id: int, number: str, type: str, date: str, lines: T14[], shippings: T13[], entityId?: int|null, externalNumber?: str|null, createdAt?: str|null, lineCount?: int, packageCount?: int, files?: T7[], state?: str }` -- `T4` = `{ id: int, number: str, type: str, date: str, lines: T14[], entityId?: int|null, externalNumber?: str|null, createdAt?: str, positions?: int, grossTotal?: num, totalQuantity?: num, customerName?: str|null, files?: T7[] }` -- `T5` = `{ id: int, number: str, type: str, supplierId: int, date: str, lines: T14[], files: T7[], externalNumber?: str|null, createdAt?: str, ledger?: T31 }` -- `T6` = `{ id: int, name: str, width: num, height: num, dpi: int, type: str, content: { objects: T15[] }, thumb?: str|null }` -- `T7` = `{ id: int, manifestId: int, fileId: int, sort: int, hash: str, mimetype: str, name: str, size: int, created?: str, modified?: str, skeledash?: str|null, thumbx?: int|null, thumby?: int|null, meta?: { [k]: str }|null }` -- `T8` = `{ id: int, articleId: int, entityId: int, pu: num, sort: int, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T32|null }` +- `T1` = `{ id: int, number: str, type: str, entityId: int, date: str, lines: T14[], externalNumber?: str|null, createdAt?: str, shipping?: T13|null, shippings?: T13[], payment?: T24|null, payments?: T24[], paid?: bool, shipped?: bool, delivered?: bool, orderTotal?: num, paidTotal?: num, orderedQuantity?: num, shippedQuantity?: num, shipments?: T3[], files?: T8[] }` +- `T2` = `{ id: int, sku: str, name: str, slug: str, desc: str|null, seo: str|null, track_stock: bool, unitamount: num|null, weight: num|null, unit: T21, brand: T20|null, categoryIds: int[], photos: T18[], eans: str[], prices: T27[], suppliers: T6[] }` +- `T3` = `{ id: int, number: str, type: str, date: str, lines: T14[], shippings: T13[], entityId?: int|null, externalNumber?: str|null, createdAt?: str|null, lineCount?: int, packageCount?: int, files?: T8[], state?: str }` +- `T4` = `{ id: int, number: str, type: str, date: str, lines: T14[], entityId?: int|null, externalNumber?: str|null, createdAt?: str, positions?: int, grossTotal?: num, totalQuantity?: num, customerName?: str|null, files?: T8[] }` +- `T5` = `{ id: int, number: str, type: str, supplierId: int, date: str, lines: T14[], files: T8[], externalNumber?: str|null, createdAt?: str, ledger?: T31 }` +- `T6` = `{ id: int, articleId: int, entityId: int, pu: num, sort: int, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T32|null, incoming?: { date: str, amount: num }[] }` +- `T7` = `{ id: int, name: str, width: num, height: num, dpi: int, type: str, content: { objects: T15[] }, thumb?: str|null }` +- `T8` = `{ id: int, manifestId: int, fileId: int, sort: int, hash: str, mimetype: str, name: str, size: int, created?: str, modified?: str, skeledash?: str|null, thumbx?: int|null, thumby?: int|null, meta?: { [k]: str }|null }` - `T9` = `{ id: int, entityId: int, addressType: str, firstName?: str|null, name?: str|null, street?: str|null, streetNumber?: str|null, zip?: str|null, city?: str|null, county?: str|null }` - `T10` = `{ id: int, company_id: int, prompt: str, max_itr: int, cron: str, created_at: str, desc?: str|null, skills?: str|null, lastagentnote?: str|null, lastrun_at?: str|null }` - `T11` = `{ id: int, manifestarticle_id: int, transaction_type: str, amount: num, transaction_text: str, hash_version: int, prev_hash?: str, sku?: str|null, created_at?: str }` @@ -130,10 +130,10 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body). - Returns: `200 { ok: bool }` #### List article suppliers — `GET /article/{sku}/supplier` - Params: `sku: str` -- Returns: `200 { suppliers: T8[] }` +- Returns: `200 { suppliers: T6[] }` #### Assign supplier to article — `POST /article/{sku}/supplier` - Params: `sku: str, body: { entityId: int, sku?: str|null, pu?: num, stock?: num|null, sort?: int|null, netPrice?: num|null, taxId?: int|null, taxRate?: num|null }` -- Returns: `201 { supplier: T8 }` +- Returns: `201 { supplier: T6 }` #### Reorder article suppliers — `PUT /article/{sku}/supplier/order` - Params: `sku: str, body: { ids: int[] }` - Returns: `200 { ids: int[] }` @@ -142,7 +142,7 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body). - Returns: `204 void` #### Update article supplier assignment — `PATCH /article/{sku}/supplier/{id}` - Params: `sku: str, id: int, body: { sku?: str|null, pu?: num, stock?: num|null, sort?: int, netPrice?: num|null, taxId?: int|null, taxRate?: num|null }` -- Returns: `200 { supplier: T8 }` +- Returns: `200 { supplier: T6 }` #### Set article track_stock flag by SKU — `PUT /article/{sku}/track_stock` - Params: `sku: str, body: { track_stock: bool }` - Returns: `200 { article: T2 }` @@ -334,7 +334,7 @@ _none_ - Returns: `204 void` #### Generate and attach delivery note PDF (goods receipt) — `POST /delivery/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T7, fileUrl: str }` +- Returns: `201 { attachment: T8, fileUrl: str }` ### Section: /entity @@ -394,19 +394,19 @@ _none_ - Returns: `200 { labeltemplates: { id: int, name: str, width: num, height: num, dpi: int, type: str, thumb?: str|null }[] }` #### Create label template — `POST /labeltemplate` - Params: `body: { name: str, width: num, height: num, dpi: int, type: str, content: { objects: T15[] } }` -- Returns: `201 { labeltemplate: T6 }` +- Returns: `201 { labeltemplate: T7 }` #### Delete label template — `DELETE /labeltemplate/{id}` - Params: `id: int` - Returns: `204 void` #### Get label template by ID — `GET /labeltemplate/{id}` - Params: `id: int` -- Returns: `200 { labeltemplate: T6 }` +- Returns: `200 { labeltemplate: T7 }` #### Update label template (partial) — `PATCH /labeltemplate/{id}` - Params: `id: int, body: { name?: str, width?: num, height?: num, dpi?: int, type?: str, content?: { objects: T15[] } }` -- Returns: `200 { labeltemplate: T6 }` +- Returns: `200 { labeltemplate: T7 }` #### Update label template — `PUT /labeltemplate/{id}` - Params: `id: int, body: { name?: str, width?: num, height?: num, dpi?: int, type?: str, content?: { objects: T15[] } }` -- Returns: `200 { labeltemplate: T6 }` +- Returns: `200 { labeltemplate: T7 }` ### Section: /ledger @@ -460,7 +460,7 @@ _none_ - Returns: `201 { payment: T24 }` #### Generate and attach order PDF — `POST /order/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T7, fileUrl: str }` +- Returns: `201 { attachment: T8, fileUrl: str }` #### List shipments of an order — `GET /order/{id}/shipment` - Params: `id: int` - Returns: `200 { shipments: T3[] }` @@ -553,7 +553,7 @@ _none_ - Returns: `201 { order: T1 }` #### Generate and attach quote PDF — `POST /quote/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T7, fileUrl: str }` +- Returns: `201 { attachment: T8, fileUrl: str }` ### Section: /shipment @@ -574,7 +574,7 @@ _none_ - Returns: `204 void` #### Generate and attach shipment PDF (delivery note) — `POST /shipment/{id}/pdf` - Params: `id: int` -- Returns: `201 { attachment: T7, fileUrl: str }` +- Returns: `201 { attachment: T8, fileUrl: str }` #### List packages of a shipment — `GET /shipment/{id}/shipping` - Params: `id: int` - Returns: `200 { shippings: T13[] }` @@ -649,10 +649,10 @@ _none_ - Returns: `200 { supplier: T30 }` #### List supplier articles by SKUs — `GET /supplier/{id}/articles` - Params: `id: int, query: skus?: str` -- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T32|null }[] }` +- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T32|null, incoming?: { date: str, amount: num }[] }[] }` #### Query supplier articles by SKUs (bulk) — `POST /supplier/{id}/articles` - Params: `id: int, body?: { skus?: str[] }` -- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T32|null }[] }` +- Returns: `200 { articles: { id: int, articleId: int, entityId: int, pu: num, sort: int, article: { id: int, sku: str, name?: str|null, slug?: str|null, photos?: { sort: int, fullHash: str, thumbW: int, thumbH: int, thumbHash: str }[], eans?: str[] }, supplierName?: str|null, sku?: str|null, stock?: num|null, priceId?: int|null, price?: T32|null, incoming?: { date: str, amount: num }[] }[] }` ### Section: /unit diff --git a/docs/api/routes/article/_sku/track_stock.md b/docs/api/routes/article/_sku/track_stock.md index 80c5ab8..4ec5da5 100644 --- a/docs/api/routes/article/_sku/track_stock.md +++ b/docs/api/routes/article/_sku/track_stock.md @@ -101,7 +101,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/get.md b/docs/api/routes/article/get.md index 4c731d9..2c5fe86 100644 --- a/docs/api/routes/article/get.md +++ b/docs/api/routes/article/get.md @@ -84,7 +84,13 @@ Article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/set-brand.md b/docs/api/routes/article/set-brand.md index 71adf3d..d7bae9e 100644 --- a/docs/api/routes/article/set-brand.md +++ b/docs/api/routes/article/set-brand.md @@ -102,7 +102,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/set-categories.md b/docs/api/routes/article/set-categories.md index 4ea0a7e..8be3181 100644 --- a/docs/api/routes/article/set-categories.md +++ b/docs/api/routes/article/set-categories.md @@ -106,7 +106,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/set-eans.md b/docs/api/routes/article/set-eans.md index ab24a53..3aba5a8 100644 --- a/docs/api/routes/article/set-eans.md +++ b/docs/api/routes/article/set-eans.md @@ -104,7 +104,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/set-prices.md b/docs/api/routes/article/set-prices.md index 225d143..ddfc239 100644 --- a/docs/api/routes/article/set-prices.md +++ b/docs/api/routes/article/set-prices.md @@ -122,7 +122,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/set-weight.md b/docs/api/routes/article/set-weight.md index df6af47..7d6ca6e 100644 --- a/docs/api/routes/article/set-weight.md +++ b/docs/api/routes/article/set-weight.md @@ -102,7 +102,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/supplier/create.md b/docs/api/routes/article/supplier/create.md index bbba19f..87cd7d0 100644 --- a/docs/api/routes/article/supplier/create.md +++ b/docs/api/routes/article/supplier/create.md @@ -62,7 +62,13 @@ Created supplier assignment "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } } ``` diff --git a/docs/api/routes/article/supplier/list.md b/docs/api/routes/article/supplier/list.md index a01bc88..7562006 100644 --- a/docs/api/routes/article/supplier/list.md +++ b/docs/api/routes/article/supplier/list.md @@ -33,7 +33,13 @@ List of suppliers linked to the article "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/article/supplier/update.md b/docs/api/routes/article/supplier/update.md index fafcfa5..3e33639 100644 --- a/docs/api/routes/article/supplier/update.md +++ b/docs/api/routes/article/supplier/update.md @@ -59,7 +59,13 @@ Updated supplier assignment "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } } ``` diff --git a/docs/api/routes/article/update.md b/docs/api/routes/article/update.md index a58ec2c..158e6eb 100644 --- a/docs/api/routes/article/update.md +++ b/docs/api/routes/article/update.md @@ -108,7 +108,13 @@ Updated article detail "net": 1, "taxId": 1, "taxRate": 1 - } + }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ] } ] } diff --git a/docs/api/routes/supplier/articles.get.md b/docs/api/routes/supplier/articles.get.md index 03ca0b8..4076f50 100644 --- a/docs/api/routes/supplier/articles.get.md +++ b/docs/api/routes/supplier/articles.get.md @@ -43,6 +43,12 @@ List of supplier articles "taxId": 1, "taxRate": 1 }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ], "article": { "id": 1, "sku": "…", diff --git a/docs/api/routes/supplier/articles.post.md b/docs/api/routes/supplier/articles.post.md index 9039837..95850e3 100644 --- a/docs/api/routes/supplier/articles.post.md +++ b/docs/api/routes/supplier/articles.post.md @@ -52,6 +52,12 @@ List of supplier articles "taxId": 1, "taxRate": 1 }, + "incoming": [ + { + "date": "2026-08-10T00:00:00.000Z", + "amount": 1 + } + ], "article": { "id": 1, "sku": "…", diff --git a/src/api/openapi.js b/src/api/openapi.js index 4e73fb1..52ae3a4 100644 --- a/src/api/openapi.js +++ b/src/api/openapi.js @@ -306,6 +306,20 @@ * price: * $ref: '#/components/schemas/ArticleSupplierPrice' * nullable: true + * incoming: + * type: array + * description: Dates and amounts of incoming product from unbooked deliveries + * items: + * type: object + * required: [date, amount] + * properties: + * date: + * type: string + * format: date-time + * description: Delivery date + * amount: + * type: number + * description: Unbooked quantity * SupplierArticlePhoto: * type: object * required: [sort, fullHash, thumbW, thumbH, thumbHash]