diff --git a/gen/openapi.json b/gen/openapi.json index bc228ee9..1ae88b8c 100644 --- a/gen/openapi.json +++ b/gen/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.1.0", "info": { "title": "Commerce Layer API", - "version": "5.3.1", + "version": "5.3.2", "contact": { "name": "API Support", "url": "https://commercelayer.io", @@ -104146,6 +104146,11 @@ "attributes": { "type": "object", "properties": { + "number": { + "type": "string", + "description": "Unique identifier for the stock transfer (numeric).", + "example": "1234" + }, "sku_code": { "type": "string", "description": "The code of the associated SKU.", @@ -104346,6 +104351,12 @@ "attributes": { "type": "object", "properties": { + "number": { + "type": "string", + "description": "Unique identifier for the stock transfer (numeric).", + "example": "1234", + "nullable": true + }, "sku_code": { "type": "string", "description": "The code of the associated SKU.", diff --git a/gen/resources.json b/gen/resources.json index 66796b65..fd8174b5 100644 --- a/gen/resources.json +++ b/gen/resources.json @@ -31016,8 +31016,9 @@ "number": { "type": "string", "desc": "Unique identifier for the stock transfer (numeric).", - "creatable": false, - "updatable": false, + "required": "optional, default to numeric ID", + "creatable": true, + "updatable": true, "fetchable": true, "filterable": true, "sortable": true, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e22636b..781be7e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1917,8 +1917,8 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - electron-to-chromium@1.4.779: - resolution: {integrity: sha512-oaTiIcszNfySXVJzKcjxd2YjPxziAd+GmXyb2HbidCeFo6Z88ygOT7EimlrEQhM2U08VhSrbKhLOXP0kKUCZ6g==} + electron-to-chromium@1.4.782: + resolution: {integrity: sha512-JUfU61e8tr+i5Y1FKXcKs+Xe+rJ+CEqm4cgv1kMihPE2EvYHmYyVr3Im/+1+Z5B29Be2EEGCZCwAc6Tazdl1Yg==} emittery@0.13.1: resolution: {integrity: sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==} @@ -2307,8 +2307,8 @@ packages: resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} - glob@10.3.16: - resolution: {integrity: sha512-JDKXl1DiuuHJ6fVS2FXjownaavciiHNUU4mOvV/B793RLh05vZL1rcPnCSaOgv1hDT6RDlY7AB7ZUvFYAtPgAw==} + glob@10.4.1: + resolution: {integrity: sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==} engines: {node: '>=16 || 14 >=14.18'} hasBin: true @@ -2970,8 +2970,8 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@7.1.1: - resolution: {integrity: sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} engines: {node: '>=16 || 14 >=14.17'} ms@2.1.2: @@ -3539,8 +3539,8 @@ packages: spdx-expression-parse@3.0.1: resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} - spdx-license-ids@3.0.17: - resolution: {integrity: sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==} + spdx-license-ids@3.0.18: + resolution: {integrity: sha512-xxRs31BqRYHwiMzudOrpSiHtZ8i/GeionCBDSilhYRj+9gIcI8wCZTlXZKu9vZIVqViP3dcp9qE5G6AlIaD+TQ==} split2@1.0.0: resolution: {integrity: sha512-NKywug4u4pX/AZBB1FCPzZ6/7O+Xhz1qMVbzTvvKvikjO99oPN87SkK08mEY9P63/5lWjK+wgOOgApnTg5r6qg==} @@ -5760,7 +5760,7 @@ snapshots: browserslist@4.23.0: dependencies: caniuse-lite: 1.0.30001621 - electron-to-chromium: 1.4.779 + electron-to-chromium: 1.4.782 node-releases: 2.0.14 update-browserslist-db: 1.0.16(browserslist@4.23.0) @@ -6033,7 +6033,7 @@ snapshots: eastasianwidth@0.2.0: {} - electron-to-chromium@1.4.779: {} + electron-to-chromium@1.4.782: {} emittery@0.13.1: {} @@ -6578,12 +6578,12 @@ snapshots: dependencies: is-glob: 4.0.3 - glob@10.3.16: + glob@10.4.1: dependencies: foreground-child: 3.1.1 jackspeak: 3.1.2 minimatch: 9.0.4 - minipass: 7.1.1 + minipass: 7.1.2 path-scurry: 1.11.1 glob@7.2.3: @@ -7381,7 +7381,7 @@ snapshots: minimist@1.2.8: {} - minipass@7.1.1: {} + minipass@7.1.2: {} ms@2.1.2: {} @@ -7573,7 +7573,7 @@ snapshots: path-scurry@1.11.1: dependencies: lru-cache: 10.2.2 - minipass: 7.1.1 + minipass: 7.1.2 path-type@4.0.0: {} @@ -7892,16 +7892,16 @@ snapshots: spdx-correct@3.2.0: dependencies: spdx-expression-parse: 3.0.1 - spdx-license-ids: 3.0.17 + spdx-license-ids: 3.0.18 spdx-exceptions@2.5.0: {} spdx-expression-parse@3.0.1: dependencies: spdx-exceptions: 2.5.0 - spdx-license-ids: 3.0.17 + spdx-license-ids: 3.0.18 - spdx-license-ids@3.0.17: {} + spdx-license-ids@3.0.18: {} split2@1.0.0: dependencies: @@ -7986,7 +7986,7 @@ snapshots: dependencies: '@jridgewell/gen-mapping': 0.3.5 commander: 4.1.1 - glob: 10.3.16 + glob: 10.4.1 lines-and-columns: 1.2.4 mz: 2.7.0 pirates: 4.0.6 diff --git a/src/commercelayer.ts b/src/commercelayer.ts index 56fbf1bc..dc418cd7 100644 --- a/src/commercelayer.ts +++ b/src/commercelayer.ts @@ -10,7 +10,7 @@ const debug = Debug('commercelayer') // Autogenerated schema version number, do not remove this line -const OPEN_API_SCHEMA_VERSION = '5.3.1' +const OPEN_API_SCHEMA_VERSION = '5.3.2' export { OPEN_API_SCHEMA_VERSION } diff --git a/src/resources/stock_transfers.ts b/src/resources/stock_transfers.ts index 5d94cc06..398e727c 100644 --- a/src/resources/stock_transfers.ts +++ b/src/resources/stock_transfers.ts @@ -70,6 +70,11 @@ interface StockTransfer extends Resource { interface StockTransferCreate extends ResourceCreate { + /** + * Unique identifier for the stock transfer (numeric).. + * @example ```"1234"``` + */ + number?: string | null /** * The code of the associated SKU.. * @example ```"TSHIRTMM000000FFFFFFXLXX"``` @@ -92,6 +97,11 @@ interface StockTransferCreate extends ResourceCreate { interface StockTransferUpdate extends ResourceUpdate { + /** + * Unique identifier for the stock transfer (numeric).. + * @example ```"1234"``` + */ + number?: string | null /** * The code of the associated SKU.. * @example ```"TSHIRTMM000000FFFFFFXLXX"```