From 9beab57ab435af2db11208cfb26dfe1643066732 Mon Sep 17 00:00:00 2001 From: seb Date: Tue, 29 Sep 2026 17:29:11 +0200 Subject: [PATCH] u --- docs/api/openapi.json | 16 +++++++++++++++- docs/api/routes/article/_sku/property.get.md | 1 + docs/api/routes/article/_sku/property.put.md | 1 + docs/api/routes/propertyname.get.md | 3 ++- docs/api/routes/propertyname.post.md | 6 ++++-- docs/api/routes/propertyname/_id.patch.md | 6 ++++-- src/api/openapi.js | 8 ++++++-- src/api/routes/propertyname.js | 4 ++++ 8 files changed, 37 insertions(+), 8 deletions(-) diff --git a/docs/api/openapi.json b/docs/api/openapi.json index 4a14166..0ff970e 100644 --- a/docs/api/openapi.json +++ b/docs/api/openapi.json @@ -2369,6 +2369,9 @@ }, "sort": { "type": "integer" + }, + "exclusive": { + "type": "boolean" } } } @@ -2481,6 +2484,9 @@ }, "sort": { "type": "integer" + }, + "exclusive": { + "type": "boolean" } } } @@ -14549,7 +14555,8 @@ "required": [ "id", "name", - "sort" + "sort", + "exclusive" ], "properties": { "id": { @@ -14560,6 +14567,9 @@ }, "sort": { "type": "integer" + }, + "exclusive": { + "type": "boolean" } } }, @@ -14569,6 +14579,7 @@ "id", "propertyId", "name", + "exclusive", "value", "sort" ], @@ -14585,6 +14596,9 @@ "name": { "type": "string" }, + "exclusive": { + "type": "boolean" + }, "value": { "type": "string" }, diff --git a/docs/api/routes/article/_sku/property.get.md b/docs/api/routes/article/_sku/property.get.md index 00aa248..b9cd040 100644 --- a/docs/api/routes/article/_sku/property.get.md +++ b/docs/api/routes/article/_sku/property.get.md @@ -24,6 +24,7 @@ List of properties for this article "articleId": 1, "propertyId": 1, "name": "…", + "exclusive": true, "value": "…", "sort": 1 } diff --git a/docs/api/routes/article/_sku/property.put.md b/docs/api/routes/article/_sku/property.put.md index a8bacb9..cb60b9f 100644 --- a/docs/api/routes/article/_sku/property.put.md +++ b/docs/api/routes/article/_sku/property.put.md @@ -38,6 +38,7 @@ Updated article properties "articleId": 1, "propertyId": 1, "name": "…", + "exclusive": true, "value": "…", "sort": 1 } diff --git a/docs/api/routes/propertyname.get.md b/docs/api/routes/propertyname.get.md index 55f018c..86fd3e1 100644 --- a/docs/api/routes/propertyname.get.md +++ b/docs/api/routes/propertyname.get.md @@ -16,7 +16,8 @@ List of property names { "id": 1, "name": "…", - "sort": 1 + "sort": 1, + "exclusive": true } ] } diff --git a/docs/api/routes/propertyname.post.md b/docs/api/routes/propertyname.post.md index 92e920e..4b4908f 100644 --- a/docs/api/routes/propertyname.post.md +++ b/docs/api/routes/propertyname.post.md @@ -11,7 +11,8 @@ Creates a new property name for the selected company. ```json { "name": "…", - "sort": 1 + "sort": 1, + "exclusive": true } ``` @@ -24,7 +25,8 @@ Created property name "propertyname": { "id": 1, "name": "…", - "sort": 1 + "sort": 1, + "exclusive": true } } ``` diff --git a/docs/api/routes/propertyname/_id.patch.md b/docs/api/routes/propertyname/_id.patch.md index 003f37b..49f6a78 100644 --- a/docs/api/routes/propertyname/_id.patch.md +++ b/docs/api/routes/propertyname/_id.patch.md @@ -17,7 +17,8 @@ Updates name and/or sort for a property name. ```json { "name": "…", - "sort": 1 + "sort": 1, + "exclusive": true } ``` @@ -30,7 +31,8 @@ Updated property name "propertyname": { "id": 1, "name": "…", - "sort": 1 + "sort": 1, + "exclusive": true } } ``` diff --git a/src/api/openapi.js b/src/api/openapi.js index d0141ac..ca237b9 100644 --- a/src/api/openapi.js +++ b/src/api/openapi.js @@ -912,7 +912,7 @@ * $ref: '#/components/schemas/LedgerEntry' * Propertyname: * type: object - * required: [id, name, sort] + * required: [id, name, sort, exclusive] * properties: * id: * type: integer @@ -920,9 +920,11 @@ * type: string * sort: * type: integer + * exclusive: + * type: boolean * ArticleProperty: * type: object - * required: [id, propertyId, name, value, sort] + * required: [id, propertyId, name, exclusive, value, sort] * properties: * id: * type: integer @@ -932,6 +934,8 @@ * type: integer * name: * type: string + * exclusive: + * type: boolean * value: * type: string * sort: diff --git a/src/api/routes/propertyname.js b/src/api/routes/propertyname.js index b28dd8d..f9d1f60 100644 --- a/src/api/routes/propertyname.js +++ b/src/api/routes/propertyname.js @@ -71,6 +71,8 @@ export function register(app, basePath = '') { * type: string * sort: * type: integer + * exclusive: + * type: boolean * responses: * 201: * description: Created property name @@ -185,6 +187,8 @@ export function register(app, basePath = '') { * type: string * sort: * type: integer + * exclusive: + * type: boolean * responses: * 200: * description: Updated property name