From 0851c319708a049a91a108e2689bef189a95cfca Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 16 Oct 2026 22:08:14 +0200 Subject: [PATCH] u --- .agents/skills/backend/SKILL.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.agents/skills/backend/SKILL.md b/.agents/skills/backend/SKILL.md index 959d534..ea59003 100644 --- a/.agents/skills/backend/SKILL.md +++ b/.agents/skills/backend/SKILL.md @@ -7,7 +7,7 @@ description: >- # Dash API Routes Overview (All) -Overview of all 249 API endpoints across all modules. +Overview of all 250 API endpoints across all modules. ### Notation @@ -65,7 +65,7 @@ Params: path values first, then `query:` and `body:` (`body?` = optional body). - `T47` = `{ fullHash: str, thumbW: int, thumbH: int, thumbHash: str }` - `T48` = `{ id: int, entityId: int, contactType: str, contact: str }` - `T49` = `{ id: int, name: str, createdAt: str, updatedAt: str }` -- `T50` = `{ totalPositions: int, completelyOnLedgerPositions: int, bookedPositions?: int, unbookedPositions?: int, totalQuantity?: num, bookedQuantity?: num, unbookedQuantity?: num, isBooked?: bool }` +- `T50` = `{ totalPositions: int, completelyOnLedgerPositions: int }` - `T51` = `{ name: str, sizeBytes: int, sourceExists: bool }` - `T52` = `{ warehouse: T54 }` - `T53` = `{ net: num, taxId: int, taxRate?: num|null }` @@ -400,9 +400,7 @@ _none_ #### List deliveries — `GET /delivery` - Params: `query: offset?: int, limit?: int, search?: str, onlyUnbooked?: bool, supplierId?: int, seekMonths?: int` -- Returns: `200 { deliveries: { id: int, number: str, type: str, supplierId: int|null, supplierName?: str|null, date: str, externalNumber?: str|null, createdAt?: str, summary?: object, ledger?: T50 }[], total?: int, unfilteredTotal?: int, offset?: int, limit?: int }` -#### Rebuild delivery summaries — `POST /delivery/rebuild-summaries` -- Returns: `200 { ok: bool, companyId: int }` +- Returns: `200 { deliveries: { id: int, number: str, type: str, supplierId: int|null, date: str, externalNumber?: str|null, createdAt?: str, ledger?: T50 }[], total: int, unfilteredTotal: int, offset: int, limit: int }` #### Create delivery — `POST /delivery` - Params: `body: { externalNumber: str, date: str, lines: T33[], supplierId?: int|null, files?: { mimetype: str, name: str, content: str, sort?: int, size?: int, hash?: str, created?: str, modified?: str, meta?: { [k]: str } }[] }` - Returns: `201 T9` @@ -530,9 +528,6 @@ _none_ #### Query ledger by manifest article ID or SKU — `GET /ledger` - Params: `query: manifestarticle_id?: int, sku?: str, transaction_type?: str` - Returns: `200 T21` -#### Add ledger entry — `POST /ledger` -- Params: `body: { manifestarticle_id: int, transaction_type: str, amount: num, transaction_text: str }` -- Returns: `201 { ledger: T22 }` #### Query ledger by manifest article ID — `GET /ledger/manifestarticle/{manifestarticleId}` - Params: `manifestarticleId: int, query: transaction_type?: str` - Returns: `200 T21` @@ -851,9 +846,15 @@ _none_ ### Section: /stock +#### Accept delivery manifest item(s) — `POST /stock/accept` +- Params: `body: { manifestarticleId?: int, warehouseId?: int, items?: { manifestarticleId: int, warehouseId?: int }[] }` +- Returns: `200` #### Adjust stock manually — `POST /stock/adjust` - Params: `body: { sku?: str, warehouseId?: int, amount?: num, text?: str|null, lines?: { sku: str, amount: num, warehouseId?: int, text?: str }[] }` - Returns: `201 { manifest: { id: int, number: str, type: str, date: str, createdAt: str }, lines: { manifestarticle_id: int, sku: str, name: str, warehouse_id: int, amount: num, text: str }[], ledger: T22[] }` +#### Ship shipment manifest item(s) — `POST /stock/ship` +- Params: `body: { manifestarticleId?: int, warehouseId?: int, items?: { manifestarticleId: int, warehouseId?: int }[] }` +- Returns: `200` ### Section: /supplier