diff --git a/.github/workflows/argo.yml b/.github/workflows/argo.yml index 6545d8fef5..5ee87ab8ca 100644 --- a/.github/workflows/argo.yml +++ b/.github/workflows/argo.yml @@ -35,7 +35,7 @@ on: - E2E-A/E2E-B - int-a/int-b testdata_version: - description: Which Testdata Version CX_Testdata_MessagingTest_v.json e.g., 0.0.12" + description: Which Testdata Version CX_Testdata_MessagingTest_v.json e.g., 0.0.13" required: true argo_token: description: Argo Token diff --git a/CHANGELOG.md b/CHANGELOG.md index 149f71c9b8..9ae7391813 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ _**For better traceability add the corresponding GitHub issue number in each cha ### Added - #844 Validation for BPN to Notification API (Create / Edit), Fixed pagination - #726 Added @Preauthorize annotation to dashboard controller +- #837 Added digital twin type to data provisioning workflow to be able to lookup shells created by trace-x + ### Changed - #844 Prefilled bpn on investigation creation - #843 Refactored e2e tests, added edit notification e2e test case @@ -17,6 +19,10 @@ _**For better traceability add the corresponding GitHub issue number in each cha - #617 redesigned inbox table - #XXX Updated spring boot from 3.2.4 to 3.2.5 - #XXX Bumped logback-core & logback-classic from 1.5.4 to 1.5.5 +- #603 Upgraded SingleLevelBomAsBuilt, SingleLevelBomAsPlanned & SingleLevelBomAsBuilt to 3.0.0 +- #603 Upgraded Batch, SerialPart and JustInSequencePart to 3.0.0 +- #603 Upgraded PartAsPlanned to 2.0.0 + ### Removed - ## [10.8.4 - 17.04.2024] diff --git a/DEPENDENCIES_FRONTEND b/DEPENDENCIES_FRONTEND index 67f40fa669..a2e2059e04 100644 --- a/DEPENDENCIES_FRONTEND +++ b/DEPENDENCIES_FRONTEND @@ -231,7 +231,7 @@ npm/npmjs/-/d3-timer/3.0.1, ISC, approved, clearlydefined npm/npmjs/-/d3-transition/3.0.1, ISC, approved, clearlydefined npm/npmjs/-/d3-zoom/3.0.0, ISC, approved, clearlydefined npm/npmjs/-/d3/7.8.4, ISC, approved, clearlydefined -npm/npmjs/-/dashdash/1.14.1, MIT, approved, clearlydefined +npm/npmjs/-/dashdash/1.14.1, MIT, restricted, clearlydefined npm/npmjs/-/data-urls/2.0.0, MIT, approved, clearlydefined npm/npmjs/-/date-format/4.0.14, MIT, approved, clearlydefined npm/npmjs/-/dayjs/1.11.7, MIT, approved, #9149 @@ -592,7 +592,7 @@ npm/npmjs/-/js-tokens/4.0.0, MIT, approved, #2401 npm/npmjs/-/js-yaml/3.14.1, MIT, approved, clearlydefined npm/npmjs/-/js-yaml/4.1.0, MIT, approved, clearlydefined npm/npmjs/-/js2xmlparser/4.0.2, Apache-2.0, approved, clearlydefined -npm/npmjs/-/jsbn/0.1.1, MIT, approved, clearlydefined +npm/npmjs/-/jsbn/0.1.1, MIT, restricted, clearlydefined npm/npmjs/-/jsdoc-type-pratt-parser/4.0.0, MIT, approved, clearlydefined npm/npmjs/-/jsdom/16.7.0, LGPL-2.0-or-later AND MIT, approved, #1370 npm/npmjs/-/jsesc/0.5.0, MIT, approved, clearlydefined diff --git a/dev/README.md b/dev/README.md index 73e404bb93..86c9709a3c 100644 --- a/dev/README.md +++ b/dev/README.md @@ -213,7 +213,7 @@ Is achieved by defining the order of the BPNLs of the desired manufacturers. See and adding an SingleLevelBomAsBuilt Aspect with the corresponding childCatenaXId: ```json { -"urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ { +"urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "childParts" : [ { "quantity" : { @@ -237,34 +237,5 @@ and adding an SingleLevelBomAsBuilt Aspect with the corresponding childCatenaXId Is achieved through adding the SingleLevelusageBuilt - Codeblock and the corresponding parent catenaXId above, see example below (Only SingleLevelUsageBuilt expanded): -```json -[{ - "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", - "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt": "[...]", - "urn:bamm:io.catenax.serial_part:1.0.0#SerialPart" : "[...]" - }, { - "catenaXId" : "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37", - "bpnl" : "BPNL00000003AZQP", - "urn:bamm:io.catenax.serial_part:1.0.0#SerialPart" : "", - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.1#SingleLevelUsageAsBuilt": [ - { - "parentParts": [ - { - "parentCatenaXId": "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", - "quantity": { - "quantityNumber": 1, - "measurementUnit": "unit:piece" - }, - "createdOn": "2023-02-03T14:48:54.709Z", - "lastModifiedOn": "2023-02-03T14:48:54.709Z" - } - ], - "catenaXId": "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37" - } - ] -} -] -``` ...AZQP -> CNKC -> ... diff --git a/docs/api/traceability-foss-backend.json b/docs/api/traceability-foss-backend.json index de79c58430..8b440348d6 100644 --- a/docs/api/traceability-foss-backend.json +++ b/docs/api/traceability-foss-backend.json @@ -1,7485 +1 @@ -{ - "openapi" : "3.0.1", - "info" : { - "title" : "Tractus-X Traceability Foss", - "description" : "Trace-FOSS is a system for tracking parts along the supply chain. A high level of transparency across the supplier network enables faster intervention based on a recorded event in the supply chain. This saves costs by seamlessly tracking parts and creates trust through clearly defined and secure data access by the companies and persons involved in the process.", - "license" : { - "name" : "License: Apache 2.0" - }, - "version" : "1.0.0" - }, - "servers" : [ - { - "url" : "http://localhost:9998/api", - "description" : "Generated server url" - } - ], - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ], - "paths" : { - "/notifications/{notificationId}/edit" : { - "put" : { - "tags" : [ - "Notifications" - ], - "summary" : "Update notification by id", - "description" : "The endpoint updates notification by their id.", - "operationId" : "updateNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/EditNotificationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/bpn-config" : { - "get" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Get BPN EDC URL mappings", - "description" : "The endpoint returns a result of BPN EDC URL mappings.", - "operationId" : "getBpnEdcs", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnEdcMappingResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "put" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Updates BPN EDC URL mappings", - "description" : "The endpoint updates BPN EDC URL mappings", - "operationId" : "updateBpnEdcMappings", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnMappingRequest" - } - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for BpnEdcMapping", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnEdcMappingResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "post" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Creates BPN EDC URL mappings", - "description" : "The endpoint creates BPN EDC URL mappings", - "operationId" : "createBpnEdcUrlMappings", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnMappingRequest" - } - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for BpnEdcMapping", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnEdcMappingResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/submodel/data/{submodelId}" : { - "get" : { - "tags" : [ - "Submodel" - ], - "summary" : "Gets Submodel by its id", - "description" : "The endpoint returns Submodel for given id. Used for data providing functionality", - "operationId" : "getSubmodelById", - "parameters" : [ - { - "name" : "submodelId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns submodel payload", - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "post" : { - "tags" : [ - "Submodel" - ], - "summary" : "Save Submodel", - "description" : "This endpoint allows you to save a Submodel identified by its ID.", - "operationId" : "saveSubmodel", - "parameters" : [ - { - "name" : "submodelId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Start notification by part ids", - "description" : "The endpoint starts notification based on part ids provided.", - "operationId" : "notifyAssets", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/StartNotificationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/NotificationIdResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/update" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Update notification by id", - "description" : "The endpoint updates notification by their id.", - "operationId" : "updateNotification_1", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateNotificationStatusTransitionRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/close" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Close notification by id", - "description" : "The endpoint closes Notification by id.", - "operationId" : "closeNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CloseNotificationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/cancel" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Cancels notification by id", - "description" : "The endpoint cancels notification by id.", - "operationId" : "cancelNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "204" : { - "description" : "No content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/approve" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Approves notification by id", - "description" : "The endpoint approves notification by id.", - "operationId" : "approveNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "204" : { - "description" : "No content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/filter" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Filter notifications defined by the request body", - "description" : "The endpoint returns notifications as paged result.", - "operationId" : "filterNotifications", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PageableFilterRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Notifications", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Notifications", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maximum" : 255, - "minimum" : 0, - "maxLength" : 255, - "type" : "integer", - "format" : "int64", - "example" : 66 - }, - "title" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Title" - }, - "status" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "CREATED", - "enum" : [ - "CREATED", - "SENT", - "RECEIVED", - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED", - "CANCELED", - "CLOSED" - ] - }, - "description" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "DescriptionText" - }, - "createdBy" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "createdByName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "createdDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2023-02-21T21:27:10.734950Z" - }, - "assetIds" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd" - ], - "items" : { - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]" - } - }, - "channel" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "SENDER", - "enum" : [ - "SENDER", - "RECEIVER" - ] - }, - "reason" : { - "$ref" : "#/components/schemas/NotificationReasonResponse" - }, - "sendTo" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "sendToName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "severity" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "MINOR", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "type" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "ALERT", - "enum" : [ - "ALERT", - "INVESTIGATION" - ] - }, - "targetDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "messages" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/NotificationMessageResponse" - } - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/edc/notification/contract" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Triggers EDC notification contract", - "description" : "The endpoint Triggers EDC notification contract based on notification type and method", - "operationId" : "createNotificationContract", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateNotificationContractRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateNotificationContractResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/contracts" : { - "post" : { - "tags" : [ - "Contracts" - ], - "summary" : "All contract agreements for all assets", - "description" : "This endpoint returns all contract agreements for all assets in Trace-X", - "operationId" : "contracts", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PageableFilterRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Authorization failed." - } - } - } - } - }, - "415" : { - "description" : "Unsupported media type.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Unsupported media type." - } - } - } - } - }, - "200" : { - "description" : "Ok.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "description" : "PageResults", - "items" : { - "$ref" : "#/components/schemas/PageResultContractResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Bad request." - } - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Not found." - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Too many requests." - } - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Internal server error." - } - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Forbidden." - } - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/publish" : { - "post" : { - "tags" : [ - "AssetsImport", - "AssetsPublish" - ], - "summary" : "asset publish", - "description" : "This endpoint publishes assets to the Catena-X network.", - "operationId" : "publishAssets", - "parameters" : [ - { - "name" : "triggerSynchronizeAssets", - "in" : "query", - "required" : false, - "schema" : { - "type" : "boolean", - "default" : true - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RegisterAssetRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : {} - } - }, - "204" : { - "description" : "No Content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/import" : { - "post" : { - "tags" : [ - "AssetsImport" - ], - "summary" : "asset upload", - "description" : "This endpoint stores assets in the application. Those can be later published in the Catena-X network.", - "operationId" : "importJson", - "requestBody" : { - "content" : { - "multipart/form-data" : { - "schema" : { - "required" : [ - "file" - ], - "type" : "object", - "properties" : { - "file" : { - "type" : "string", - "format" : "binary" - } - } - } - } - } - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ImportResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/sync" : { - "post" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Synchronizes assets from IRS", - "description" : "The endpoint synchronizes the assets from irs.", - "operationId" : "sync", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncAssetsRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/detail-information" : { - "post" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Searches for assets by ids.", - "description" : "The endpoint searchs for assets by id and returns a list of them.", - "operationId" : "getDetailInformation", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetDetailInformationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/sync" : { - "post" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Synchronizes assets from IRS", - "description" : "The endpoint synchronizes the assets from irs.", - "operationId" : "sync_1", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncAssetsRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/detail-information" : { - "post" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Searches for assets by ids.", - "description" : "The endpoint searchs for assets by id and returns a list of them.", - "operationId" : "getDetailInformation_1", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetDetailInformationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/{assetId}" : { - "get" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Get asset by id", - "description" : "The endpoint returns an asset filtered by id .", - "operationId" : "assetById", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the assets found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "patch" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Updates asset", - "description" : "The endpoint updates asset by provided quality type.", - "operationId" : "updateAsset", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateAssetRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the updated asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/{assetId}" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get asset by id", - "description" : "The endpoint returns an asset filtered by id .", - "operationId" : "assetById_1", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the assets found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "patch" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Updates asset", - "description" : "The endpoint updates asset by provided quality type.", - "operationId" : "updateAsset_1", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateAssetRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the updated asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/registry/reload" : { - "get" : { - "tags" : [ - "Registry" - ], - "summary" : "Triggers reload of shell descriptors", - "description" : "The endpoint Triggers reload of shell descriptors.", - "operationId" : "reload", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "202" : { - "description" : "Created registry reload job." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/policies" : { - "get" : { - "tags" : [ - "Policies" - ], - "summary" : "Get all policies ", - "description" : "The endpoint returns all policies .", - "operationId" : "policy", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the policies", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PolicyResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}" : { - "get" : { - "tags" : [ - "Notifications" - ], - "summary" : "Gets notification by id", - "description" : "The endpoint returns notification by id.", - "operationId" : "getNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Notifications", - "items" : { - "$ref" : "#/components/schemas/NotificationResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/distinctFilterValues" : { - "get" : { - "tags" : [ - "Notifications" - ], - "summary" : "getDistinctFilterValues", - "description" : "The endpoint returns a distinct filter values for given fieldName of notification.", - "operationId" : "distinctFilterValues", - "parameters" : [ - { - "name" : "fieldName", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "size", - "in" : "query", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, - { - "name" : "startWith", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "channel", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string", - "enum" : [ - "SENDER", - "RECEIVER" - ] - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns a distinct filter values for given fieldName.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/dashboard" : { - "get" : { - "tags" : [ - "Dashboard" - ], - "summary" : "Returns dashboard related data", - "description" : "The endpoint can return limited data based on the user role", - "operationId" : "dashboard", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns dashboard data", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/DashboardResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/import/report/{importJobId}" : { - "get" : { - "tags" : [ - "ImportReport", - "AssetsImport" - ], - "summary" : "report of the imported assets", - "description" : "This endpoint returns information about the imported assets to Trace-X.", - "operationId" : "importReport", - "parameters" : [ - { - "name" : "importJobId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ImportReportResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned" : { - "get" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Get assets by pagination", - "description" : "The endpoint returns a paged result of assets.", - "operationId" : "AssetsAsPlanned", - "parameters" : [ - { - "name" : "pageable", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/OwnPageable" - } - }, - { - "name" : "filter", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SearchCriteriaRequestParam" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/distinctFilterValues" : { - "get" : { - "tags" : [ - "Assets", - "AssetsAsPlanned" - ], - "summary" : "getDistinctFilterValues", - "description" : "The endpoint returns a distinct filter values for given fieldName.", - "operationId" : "distinctFilterValues_1", - "parameters" : [ - { - "name" : "fieldName", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "size", - "in" : "query", - "required" : false, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, - { - "name" : "startWith", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "name" : "owner", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns a distinct filter values for given fieldName.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/*/children/{childId}" : { - "get" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Get asset by child id", - "description" : "The endpoint returns an asset filtered by child id.", - "operationId" : "assetByChildIdAndAssetId", - "parameters" : [ - { - "name" : "childId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the asset by childId", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get assets by pagination", - "description" : "The endpoint returns a paged result of assets.", - "operationId" : "assets", - "parameters" : [ - { - "name" : "pageable", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/OwnPageable" - } - }, - { - "name" : "searchCriteriaRequestParam", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SearchCriteriaRequestParam" - } - } - ], - "responses" : { - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/distinctFilterValues" : { - "get" : { - "tags" : [ - "AssetsAsBuilt", - "Assets" - ], - "summary" : "getDistinctFilterValues", - "description" : "The endpoint returns a distinct filter values for given fieldName.", - "operationId" : "distinctFilterValues_2", - "parameters" : [ - { - "name" : "fieldName", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "size", - "in" : "query", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, - { - "name" : "startWith", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "owner", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns a distinct filter values for given fieldName.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/countries" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get map of assets", - "description" : "The endpoint returns a map for assets consumed by the map.", - "operationId" : "assetsCountryMap", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the assets found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/*/children/{childId}" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get asset by child id", - "description" : "The endpoint returns an asset filtered by child id.", - "operationId" : "assetByChildId", - "parameters" : [ - { - "name" : "childId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the asset by childId", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/submodel/data" : { - "delete" : { - "tags" : [ - "Submodel" - ], - "summary" : "Delete All Submodels", - "description" : "Deletes all submodels from the system.", - "operationId" : "deleteSubmodels", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/bpn-config/{bpn}" : { - "delete" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Deletes BPN EDC URL mappings", - "description" : "The endpoint deletes BPN EDC URL mappings", - "operationId" : "deleteBpnEdcUrlMappings", - "parameters" : [ - { - "name" : "bpn", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "Deleted." - }, - "200" : { - "description" : "Okay" - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - } - }, - "components" : { - "schemas" : { - "EditNotificationRequest" : { - "required" : [ - "receiverBpn", - "severity" - ], - "type" : "object", - "properties" : { - "title" : { - "maxLength" : 255, - "minLength" : 1, - "type" : "string", - "example" : "title" - }, - "receiverBpn" : { - "type" : "string", - "example" : "BPNL00000003CNKC" - }, - "severity" : { - "type" : "string", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "targetDate" : { - "type" : "string", - "format" : "date-time", - "example" : "2099-03-11T22:44:06.333826952Z" - }, - "description" : { - "maxLength" : 1000, - "minLength" : 15, - "type" : "string", - "example" : "The description" - }, - "affectedPartIds" : { - "maxLength" : 50, - "minLength" : 1, - "maxItems" : 50, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978" - ], - "items" : { - "maxLength" : 50, - "minLength" : 1, - "type" : "string", - "example" : "[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]" - } - } - } - }, - "ErrorResponse" : { - "type" : "object", - "properties" : { - "message" : { - "maxLength" : 1000, - "minLength" : 0, - "pattern" : "^.*$", - "type" : "string", - "example" : "Access Denied" - } - } - }, - "BpnMappingRequest" : { - "required" : [ - "bpn", - "url" - ], - "type" : "object", - "properties" : { - "bpn" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "url" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string" - } - } - }, - "BpnEdcMappingResponse" : { - "type" : "object", - "properties" : { - "bpn" : { - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "url" : { - "type" : "string", - "example" : "https://trace-x-test-edc.dev.demo.catena-x.net/a1" - } - } - }, - "StartNotificationRequest" : { - "required" : [ - "receiverBpn", - "severity", - "type" - ], - "type" : "object", - "properties" : { - "title" : { - "maxLength" : 255, - "minLength" : 1, - "type" : "string", - "example" : "title" - }, - "affectedPartIds" : { - "maxLength" : 100, - "minLength" : 1, - "maxItems" : 50, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978" - ], - "items" : { - "maxLength" : 100, - "minLength" : 1, - "type" : "string", - "example" : "[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]" - } - }, - "description" : { - "maxLength" : 1000, - "minLength" : 15, - "type" : "string", - "example" : "The description" - }, - "targetDate" : { - "type" : "string", - "format" : "date-time", - "example" : "2099-03-11T22:44:06.333826952Z" - }, - "severity" : { - "type" : "string", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "receiverBpn" : { - "type" : "string", - "example" : "BPNL00000003CNKC" - }, - "type" : { - "type" : "string", - "example" : "ALERT", - "enum" : [ - "ALERT", - "INVESTIGATION" - ] - } - } - }, - "NotificationIdResponse" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - } - }, - "UpdateNotificationStatusTransitionRequest" : { - "required" : [ - "status" - ], - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "description" : "The UpdateInvestigationStatus", - "enum" : [ - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED" - ] - }, - "reason" : { - "type" : "string", - "example" : "The reason." - } - } - }, - "CloseNotificationRequest" : { - "type" : "object", - "properties" : { - "reason" : { - "maxLength" : 1000, - "minLength" : 15, - "type" : "string", - "example" : "The reason." - } - } - }, - "OwnPageable" : { - "type" : "object", - "properties" : { - "page" : { - "type" : "integer", - "format" : "int32" - }, - "size" : { - "type" : "integer", - "format" : "int32" - }, - "sort" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Content of Assets PageResults", - "example" : "manufacturerPartId,desc", - "items" : { - "type" : "string" - } - } - } - }, - "PageableFilterRequest" : { - "type" : "object", - "properties" : { - "pageAble" : { - "$ref" : "#/components/schemas/OwnPageable" - }, - "searchCriteria" : { - "$ref" : "#/components/schemas/SearchCriteriaRequestParam" - } - } - }, - "SearchCriteriaRequestParam" : { - "type" : "object", - "properties" : { - "filter" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Filter Criteria", - "example" : "owner,EQUAL,OWN", - "items" : { - "type" : "string" - } - } - } - }, - "NotificationMessageResponse" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "string" - }, - "createdBy" : { - "type" : "string" - }, - "createdByName" : { - "type" : "string" - }, - "sendTo" : { - "type" : "string" - }, - "sendToName" : { - "type" : "string" - }, - "contractAgreementId" : { - "type" : "string" - }, - "notificationReferenceId" : { - "type" : "string" - }, - "targetDate" : { - "type" : "string", - "format" : "date-time" - }, - "severity" : { - "type" : "string", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "edcNotificationId" : { - "type" : "string" - }, - "created" : { - "type" : "string", - "format" : "date-time" - }, - "updated" : { - "type" : "string", - "format" : "date-time" - }, - "messageId" : { - "type" : "string" - }, - "status" : { - "type" : "string", - "enum" : [ - "CREATED", - "SENT", - "RECEIVED", - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED", - "CANCELED", - "CLOSED" - ] - }, - "errorMessage" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "EDC not reachable" - } - } - }, - "NotificationReasonResponse" : { - "type" : "object", - "properties" : { - "close" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "description of closing reason" - }, - "accept" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "description of accepting reason" - }, - "decline" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "description of declining reason" - } - } - }, - "NotificationResponse" : { - "type" : "object", - "properties" : { - "id" : { - "maximum" : 255, - "minimum" : 0, - "maxLength" : 255, - "type" : "integer", - "format" : "int64", - "example" : 66 - }, - "title" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Title" - }, - "status" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "CREATED", - "enum" : [ - "CREATED", - "SENT", - "RECEIVED", - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED", - "CANCELED", - "CLOSED" - ] - }, - "description" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "DescriptionText" - }, - "createdBy" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "createdByName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "createdDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2023-02-21T21:27:10.734950Z" - }, - "assetIds" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd" - ], - "items" : { - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]" - } - }, - "channel" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "SENDER", - "enum" : [ - "SENDER", - "RECEIVER" - ] - }, - "reason" : { - "$ref" : "#/components/schemas/NotificationReasonResponse" - }, - "sendTo" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "sendToName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "severity" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "MINOR", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "type" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "ALERT", - "enum" : [ - "ALERT", - "INVESTIGATION" - ] - }, - "targetDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "messages" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/NotificationMessageResponse" - } - } - } - }, - "CreateNotificationContractRequest" : { - "required" : [ - "notificationMethod", - "notificationType" - ], - "type" : "object", - "properties" : { - "notificationType" : { - "type" : "string", - "enum" : [ - "QUALITY_INVESTIGATION", - "QUALITY_ALERT" - ] - }, - "notificationMethod" : { - "type" : "string", - "enum" : [ - "RECEIVE", - "UPDATE", - "RESOLVE" - ] - } - } - }, - "CreateNotificationContractResponse" : { - "type" : "object", - "properties" : { - "notificationAssetId" : { - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "accessPolicyId" : { - "type" : "string", - "example" : "123" - }, - "contractDefinitionId" : { - "type" : "string", - "example" : "456" - } - } - }, - "ContractResponse" : { - "type" : "object", - "properties" : { - "contractId" : { - "maxLength" : 255, - "type" : "string", - "example" : "66" - }, - "counterpartyAddress" : { - "maxLength" : 255, - "type" : "string", - "example" : "https://trace-x-edc-e2e-a.dev.demo.catena-x.net/api/v1/dsp" - }, - "creationDate" : { - "maxLength" : 255, - "type" : "string", - "format" : "date-time", - "example" : "2023-02-21T21:27:10.73495Z" - }, - "endDate" : { - "maxLength" : 255, - "type" : "string", - "format" : "date-time", - "example" : "2023-02-21T21:27:10.73495Z" - }, - "state" : { - "maxLength" : 255, - "type" : "string", - "example" : "FINALIZED" - }, - "policy" : { - "maxLength" : 255, - "type" : "string", - "example" : "{\\\"@id\\\":\\\"eb0c8486-914a-4d36-84c0-b4971cbc52e4\\\",\\\"@type\\\":\\\"odrl:Set\\\",\\\"odrl:permission\\\":{\\\"odrl:target\\\":\\\"registry-asset\\\",\\\"odrl:action\\\":{\\\"odrl:type\\\":\\\"USE\\\"},\\\"odrl:constraint\\\":{\\\"odrl:or\\\":{\\\"odrl:leftOperand\\\":\\\"PURPOSE\\\",\\\"odrl:operator\\\":{\\\"@id\\\":\\\"odrl:eq\\\"},\\\"odrl:rightOperand\\\":\\\"ID 3.0 Trace\\\"}}},\\\"odrl:prohibition\\\":[],\\\"odrl:obligation\\\":[],\\\"odrl:target\\\":\\\"registry-asset\\\"}" - } - } - }, - "PageResultContractResponse" : { - "type" : "object", - "properties" : { - "content" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "description" : "Content of PageResults", - "items" : { - "$ref" : "#/components/schemas/ContractResponse" - } - }, - "page" : { - "type" : "integer", - "format" : "int32", - "example" : 1 - }, - "pageCount" : { - "type" : "integer", - "format" : "int32", - "example" : 15 - }, - "pageSize" : { - "type" : "integer", - "format" : "int32", - "example" : 10 - }, - "totalItems" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - } - }, - "RegisterAssetRequest" : { - "required" : [ - "assetIds", - "policyId" - ], - "type" : "object", - "properties" : { - "policyId" : { - "type" : "string", - "example" : "a644a7cb-3de5-493b-9259-f01db315a46e" - }, - "assetIds" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - } - }, - "ImportResponse" : { - "type" : "object", - "properties" : { - "jobId" : { - "type" : "string" - }, - "importStateMessage" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ImportStateMessage" - } - }, - "validationResult" : { - "$ref" : "#/components/schemas/ValidationResponse" - } - } - }, - "ImportStateMessage" : { - "type" : "object", - "properties" : { - "catenaXId" : { - "type" : "string" - }, - "persistedOrUpdated" : { - "type" : "boolean" - } - } - }, - "ValidationResponse" : { - "type" : "object", - "properties" : { - "validationErrors" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - } - }, - "SyncAssetsRequest" : { - "type" : "object", - "properties" : { - "globalAssetIds" : { - "maxItems" : 100, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - ], - "items" : { - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]" - } - } - } - }, - "GetDetailInformationRequest" : { - "type" : "object", - "properties" : { - "assetIds" : { - "maxLength" : 50, - "minLength" : 1, - "maxItems" : 50, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - ], - "items" : { - "maxLength" : 50, - "minLength" : 1, - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]" - } - } - } - }, - "DescriptionsResponse" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - } - } - }, - "DetailAspectDataAsBuiltResponse" : { - "type" : "object", - "properties" : { - "partId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "95657762-59" - }, - "customerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "01697F7-65" - }, - "nameAtCustomer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Door front-left" - }, - "manufacturingCountry" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "DEU" - }, - "manufacturingDate" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "2022-02-04T13:48:54Z" - } - } - }, - "DetailAspectDataAsPlannedResponse" : { - "type" : "object", - "properties" : { - "validityPeriodFrom" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "2022-09-26T12:43:51.079Z" - }, - "validityPeriodTo" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "20232-07-13T12:00:00.000Z" - } - } - }, - "DetailAspectDataResponse" : { - "type" : "object", - "oneOf" : [ - { - "$ref" : "#/components/schemas/DetailAspectDataAsBuiltResponse" - }, - { - "$ref" : "#/components/schemas/DetailAspectDataAsPlannedResponse" - }, - { - "$ref" : "#/components/schemas/PartSiteInformationAsPlannedResponse" - }, - { - "$ref" : "#/components/schemas/DetailAspectDataTractionBatteryCodeResponse" - } - ] - }, - "DetailAspectDataTractionBatteryCodeResponse" : { - "type" : "object", - "properties" : { - "productType" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "pack" - }, - "tractionBatteryCode" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "X12MCPM27KLPCLX2M2382320" - }, - "subcomponents" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectDataTractionBatteryCodeSubcomponentResponse" - } - } - } - }, - "DetailAspectDataTractionBatteryCodeSubcomponentResponse" : { - "type" : "object", - "properties" : { - "productType" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "pack" - }, - "tractionBatteryCode" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "X12MCPM27KLPCLX2M2382320" - } - } - }, - "DetailAspectModelResponse" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "example" : "PART_SITE_INFORMATION_AS_PLANNED", - "enum" : [ - "AS_BUILT", - "AS_PLANNED", - "TRACTION_BATTERY_CODE", - "SINGLE_LEVEL_BOM_AS_BUILT", - "SINGLE_LEVEL_USAGE_AS_BUILT", - "SINGLE_LEVEL_BOM_AS_PLANNED", - "PART_SITE_INFORMATION_AS_PLANNED" - ] - }, - "data" : { - "$ref" : "#/components/schemas/DetailAspectDataResponse" - } - } - }, - "PartSiteInformationAsPlannedResponse" : { - "type" : "object", - "properties" : { - "functionValidUntil" : { - "type" : "string", - "example" : "2025-02-08T04:30:48.000Z" - }, - "function" : { - "type" : "string", - "example" : "production" - }, - "functionValidFrom" : { - "type" : "string", - "example" : "2023-10-13T14:30:45+01:00" - }, - "catenaXSiteId" : { - "type" : "string", - "example" : "urn:uuid:0fed587c-7ab4-4597-9841-1718e9693003" - } - } - }, - "UpdateAssetRequest" : { - "required" : [ - "qualityType" - ], - "type" : "object", - "properties" : { - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - } - } - }, - "ConstraintResponse" : { - "type" : "object", - "properties" : { - "leftOperand" : { - "type" : "string", - "example" : "PURPOSE" - }, - "operatorTypeResponse" : { - "type" : "string", - "enum" : [ - "EQ", - "NEQ", - "LT", - "GT", - "IN", - "LTEQ", - "GTEQ", - "ISA", - "HASPART", - "ISPARTOF", - "ISONEOF", - "ISALLOF", - "ISNONEOF" - ] - }, - "rightOperand" : { - "type" : "string", - "example" : "ID Trace 3.1" - } - } - }, - "ConstraintsResponse" : { - "type" : "object", - "properties" : { - "and" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ConstraintResponse" - } - }, - "or" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ConstraintResponse" - } - } - } - }, - "PermissionResponse" : { - "type" : "object", - "properties" : { - "action" : { - "type" : "string", - "example" : "USE", - "enum" : [ - "ACCESS", - "USE" - ] - }, - "constraints" : { - "$ref" : "#/components/schemas/ConstraintsResponse" - } - } - }, - "PolicyResponse" : { - "type" : "object", - "properties" : { - "policyId" : { - "type" : "string", - "example" : "5a00bb50-0253-405f-b9f1-1a3150b9d51d" - }, - "createdOn" : { - "type" : "string", - "format" : "date-time" - }, - "validUntil" : { - "type" : "string", - "format" : "date-time" - }, - "permissions" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PermissionResponse" - } - } - } - }, - "DashboardResponse" : { - "type" : "object", - "properties" : { - "asBuiltCustomerParts" : { - "type" : "integer", - "format" : "int64", - "example" : 5 - }, - "asPlannedCustomerParts" : { - "type" : "integer", - "format" : "int64", - "example" : 10 - }, - "asBuiltSupplierParts" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "asPlannedSupplierParts" : { - "type" : "integer", - "format" : "int64", - "example" : 3 - }, - "asBuiltOwnParts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "asPlannedOwnParts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "myPartsWithOpenAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "myPartsWithOpenInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "supplierPartsWithOpenAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "customerPartsWithOpenAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "supplierPartsWithOpenInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "customerPartsWithOpenInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "receivedActiveAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "receivedActiveInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "sentActiveAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "sentActiveInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - } - }, - "ImportJobResponse" : { - "type" : "object", - "properties" : { - "importJobStatus" : { - "type" : "string", - "enum" : [ - "INITIALIZING", - "RUNNING", - "ERROR", - "COMPLETED" - ] - }, - "importId" : { - "type" : "string", - "example" : "456a952e-05eb-40dc-a6f2-9c2cb9c1387f" - }, - "startedOn" : { - "maxLength" : 50, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "completedOn" : { - "maxLength" : 50, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - } - } - }, - "ImportReportResponse" : { - "type" : "object", - "properties" : { - "importJob" : { - "$ref" : "#/components/schemas/ImportJobResponse" - }, - "importedAsset" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ImportedAssetResponse" - } - } - } - }, - "ImportedAssetResponse" : { - "type" : "object", - "properties" : { - "importState" : { - "type" : "string", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "catenaxId" : { - "type" : "string", - "example" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd}" - }, - "importedOn" : { - "maxLength" : 50, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "importMessage" : { - "type" : "string", - "example" : "Asset created successfully in transient state." - } - } - } - }, - "securitySchemes" : { - "oAuth2" : { - "type" : "oauth2", - "flows" : { - "clientCredentials" : { - "tokenUrl" : "https://example.com/api/oauth/token", - "scopes" : { - "profile email" : "" - } - } - } - } - } - } -} +{"openapi":"3.0.1","info":{"title":"Tractus-X Traceability Foss","description":"Trace-FOSS is a system for tracking parts along the supply chain. A high level of transparency across the supplier network enables faster intervention based on a recorded event in the supply chain. This saves costs by seamlessly tracking parts and creates trust through clearly defined and secure data access by the companies and persons involved in the process.","license":{"name":"License: Apache 2.0"},"version":"1.0.0"},"servers":[{"url":"http://localhost:9998/api","description":"Generated server url"}],"security":[{"oAuth2":["profile email"]}],"paths":{"/notifications/{notificationId}/edit":{"put":{"tags":["Notifications"],"summary":"Update notification by id","description":"The endpoint updates notification by their id.","operationId":"updateNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditNotificationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/bpn-config":{"get":{"tags":["BpnEdcMapping"],"summary":"Get BPN EDC URL mappings","description":"The endpoint returns a result of BPN EDC URL mappings.","operationId":"getBpnEdcs","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnEdcMappingResponse"}}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"put":{"tags":["BpnEdcMapping"],"summary":"Updates BPN EDC URL mappings","description":"The endpoint updates BPN EDC URL mappings","operationId":"updateBpnEdcMappings","requestBody":{"content":{"application/json":{"schema":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnMappingRequest"}}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for BpnEdcMapping","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnEdcMappingResponse"}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"post":{"tags":["BpnEdcMapping"],"summary":"Creates BPN EDC URL mappings","description":"The endpoint creates BPN EDC URL mappings","operationId":"createBpnEdcUrlMappings","requestBody":{"content":{"application/json":{"schema":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnMappingRequest"}}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for BpnEdcMapping","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnEdcMappingResponse"}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/submodel/data/{submodelId}":{"get":{"tags":["Submodel"],"summary":"Gets Submodel by its id","description":"The endpoint returns Submodel for given id. Used for data providing functionality","operationId":"getSubmodelById","parameters":[{"name":"submodelId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns submodel payload","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"post":{"tags":["Submodel"],"summary":"Save Submodel","description":"This endpoint allows you to save a Submodel identified by its ID.","operationId":"saveSubmodel","parameters":[{"name":"submodelId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications":{"post":{"tags":["Notifications"],"summary":"Start notification by part ids","description":"The endpoint starts notification based on part ids provided.","operationId":"notifyAssets","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartNotificationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationIdResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/update":{"post":{"tags":["Notifications"],"summary":"Update notification by id","description":"The endpoint updates notification by their id.","operationId":"updateNotification_1","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationStatusTransitionRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/close":{"post":{"tags":["Notifications"],"summary":"Close notification by id","description":"The endpoint closes Notification by id.","operationId":"closeNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseNotificationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/cancel":{"post":{"tags":["Notifications"],"summary":"Cancels notification by id","description":"The endpoint cancels notification by id.","operationId":"cancelNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/approve":{"post":{"tags":["Notifications"],"summary":"Approves notification by id","description":"The endpoint approves notification by id.","operationId":"approveNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/filter":{"post":{"tags":["Notifications"],"summary":"Filter notifications defined by the request body","description":"The endpoint returns notifications as paged result.","operationId":"filterNotifications","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageableFilterRequest"}}},"required":true},"responses":{"200":{"description":"Returns the paged result found for Notifications","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Notifications","items":{"type":"object","properties":{"id":{"maximum":255,"minimum":0,"maxLength":255,"type":"integer","format":"int64","example":66},"title":{"maxLength":255,"minLength":0,"type":"string","example":"Title"},"status":{"maxLength":255,"minLength":0,"type":"string","example":"CREATED","enum":["CREATED","SENT","RECEIVED","ACKNOWLEDGED","ACCEPTED","DECLINED","CANCELED","CLOSED"]},"description":{"maxLength":1000,"minLength":0,"type":"string","example":"DescriptionText"},"createdBy":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"createdByName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"createdDate":{"maxLength":50,"minLength":0,"type":"string","example":"2023-02-21T21:27:10.734950Z"},"assetIds":{"maxItems":1000,"minItems":0,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd"],"items":{"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]"}},"channel":{"maxLength":255,"minLength":0,"type":"string","example":"SENDER","enum":["SENDER","RECEIVER"]},"reason":{"$ref":"#/components/schemas/NotificationReasonResponse"},"sendTo":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"sendToName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"severity":{"maxLength":255,"minLength":0,"type":"string","example":"MINOR","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"type":{"maxLength":50,"minLength":0,"type":"string","example":"ALERT","enum":["ALERT","INVESTIGATION"]},"targetDate":{"maxLength":50,"minLength":0,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageResponse"}}}}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/edc/notification/contract":{"post":{"tags":["Notifications"],"summary":"Triggers EDC notification contract","description":"The endpoint Triggers EDC notification contract based on notification type and method","operationId":"createNotificationContract","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNotificationContractRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNotificationContractResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/contracts":{"post":{"tags":["Contracts"],"summary":"All contract agreements for all assets","description":"This endpoint returns all contract agreements for all assets in Trace-X","operationId":"contracts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageableFilterRequest"}}},"required":true},"responses":{"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Too many requests."}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Authorization failed."}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Internal server error."}}}}},"200":{"description":"Ok.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","description":"PageResults","items":{"$ref":"#/components/schemas/PageResultContractResponse"}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Not found."}}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Bad request."}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Forbidden."}}}}},"415":{"description":"Unsupported media type.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Unsupported media type."}}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/publish":{"post":{"tags":["AssetsImport","AssetsPublish"],"summary":"asset publish","description":"This endpoint publishes assets to the Catena-X network.","operationId":"publishAssets","parameters":[{"name":"triggerSynchronizeAssets","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAssetRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"200":{"description":"OK.","content":{"application/json":{}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/import":{"post":{"tags":["AssetsImport"],"summary":"asset upload","description":"This endpoint stores assets in the application. Those can be later published in the Catena-X network.","operationId":"importJson","requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/sync":{"post":{"tags":["AssetsAsPlanned"],"summary":"Synchronizes assets from IRS","description":"The endpoint synchronizes the assets from irs.","operationId":"sync","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncAssetsRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/detail-information":{"post":{"tags":["AssetsAsPlanned"],"summary":"Searches for assets by ids.","description":"The endpoint searchs for assets by id and returns a list of them.","operationId":"getDetailInformation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDetailInformationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/sync":{"post":{"tags":["AssetsAsBuilt"],"summary":"Synchronizes assets from IRS","description":"The endpoint synchronizes the assets from irs.","operationId":"sync_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncAssetsRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/detail-information":{"post":{"tags":["AssetsAsBuilt"],"summary":"Searches for assets by ids.","description":"The endpoint searchs for assets by id and returns a list of them.","operationId":"getDetailInformation_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDetailInformationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/{assetId}":{"get":{"tags":["AssetsAsPlanned"],"summary":"Get asset by id","description":"The endpoint returns an asset filtered by id .","operationId":"assetById","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the assets found","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"patch":{"tags":["AssetsAsPlanned"],"summary":"Updates asset","description":"The endpoint updates asset by provided quality type.","operationId":"updateAsset","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the updated asset","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/{assetId}":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get asset by id","description":"The endpoint returns an asset filtered by id .","operationId":"assetById_1","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the assets found","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"patch":{"tags":["AssetsAsBuilt"],"summary":"Updates asset","description":"The endpoint updates asset by provided quality type.","operationId":"updateAsset_1","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the updated asset","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/registry/reload":{"get":{"tags":["Registry"],"summary":"Triggers reload of shell descriptors","description":"The endpoint Triggers reload of shell descriptors.","operationId":"reload","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"Created registry reload job."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/policies":{"get":{"tags":["Policies"],"summary":"Get all policies ","description":"The endpoint returns all policies .","operationId":"policy","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the policies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}":{"get":{"tags":["Notifications"],"summary":"Gets notification by id","description":"The endpoint returns notification by id.","operationId":"getNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"OK.","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Notifications","items":{"$ref":"#/components/schemas/NotificationResponse"}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/distinctFilterValues":{"get":{"tags":["Notifications"],"summary":"getDistinctFilterValues","description":"The endpoint returns a distinct filter values for given fieldName of notification.","operationId":"distinctFilterValues","parameters":[{"name":"fieldName","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"startWith","in":"query","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string","enum":["SENDER","RECEIVER"]}}],"responses":{"200":{"description":"Returns a distinct filter values for given fieldName.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/dashboard":{"get":{"tags":["Dashboard"],"summary":"Returns dashboard related data","description":"The endpoint can return limited data based on the user role","operationId":"dashboard","responses":{"200":{"description":"Returns dashboard data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponse"}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/import/report/{importJobId}":{"get":{"tags":["ImportReport","AssetsImport"],"summary":"report of the imported assets","description":"This endpoint returns information about the imported assets to Trace-X.","operationId":"importReport","parameters":[{"name":"importJobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportReportResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned":{"get":{"tags":["AssetsAsPlanned"],"summary":"Get assets by pagination","description":"The endpoint returns a paged result of assets.","operationId":"AssetsAsPlanned","parameters":[{"name":"pageable","in":"query","required":true,"schema":{"$ref":"#/components/schemas/OwnPageable"}},{"name":"filter","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SearchCriteriaRequestParam"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/distinctFilterValues":{"get":{"tags":["Assets","AssetsAsPlanned"],"summary":"getDistinctFilterValues","description":"The endpoint returns a distinct filter values for given fieldName.","operationId":"distinctFilterValues_1","parameters":[{"name":"fieldName","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"startWith","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner","in":"query","required":false,"schema":{"type":"string","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]}}],"responses":{"200":{"description":"Returns a distinct filter values for given fieldName.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/*/children/{childId}":{"get":{"tags":["AssetsAsPlanned"],"summary":"Get asset by child id","description":"The endpoint returns an asset filtered by child id.","operationId":"assetByChildIdAndAssetId","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the asset by childId","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get assets by pagination","description":"The endpoint returns a paged result of assets.","operationId":"assets","parameters":[{"name":"pageable","in":"query","required":true,"schema":{"$ref":"#/components/schemas/OwnPageable"}},{"name":"searchCriteriaRequestParam","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SearchCriteriaRequestParam"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/distinctFilterValues":{"get":{"tags":["AssetsAsBuilt","Assets"],"summary":"getDistinctFilterValues","description":"The endpoint returns a distinct filter values for given fieldName.","operationId":"distinctFilterValues_2","parameters":[{"name":"fieldName","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"startWith","in":"query","required":true,"schema":{"type":"string"}},{"name":"owner","in":"query","required":true,"schema":{"type":"string","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]}}],"responses":{"200":{"description":"Returns a distinct filter values for given fieldName.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/countries":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get map of assets","description":"The endpoint returns a map for assets consumed by the map.","operationId":"assetsCountryMap","responses":{"200":{"description":"Returns the assets found","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/*/children/{childId}":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get asset by child id","description":"The endpoint returns an asset filtered by child id.","operationId":"assetByChildId","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the asset by childId","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/submodel/data":{"delete":{"tags":["Submodel"],"summary":"Delete All Submodels","description":"Deletes all submodels from the system.","operationId":"deleteSubmodels","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/bpn-config/{bpn}":{"delete":{"tags":["BpnEdcMapping"],"summary":"Deletes BPN EDC URL mappings","description":"The endpoint deletes BPN EDC URL mappings","operationId":"deleteBpnEdcUrlMappings","parameters":[{"name":"bpn","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted."},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Okay"},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}}},"components":{"schemas":{"EditNotificationRequest":{"required":["receiverBpn","severity"],"type":"object","properties":{"title":{"maxLength":255,"minLength":1,"type":"string","example":"title"},"receiverBpn":{"type":"string","example":"BPNL00000003CNKC"},"severity":{"type":"string","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"targetDate":{"type":"string","format":"date-time","example":"2099-03-11T22:44:06.333826952Z"},"description":{"maxLength":1000,"minLength":15,"type":"string","example":"The description"},"affectedPartIds":{"maxLength":50,"minLength":1,"maxItems":50,"minItems":1,"type":"array","example":["urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978"],"items":{"maxLength":50,"minLength":1,"type":"string","example":"[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]"}}}},"ErrorResponse":{"type":"object","properties":{"message":{"maxLength":1000,"minLength":0,"pattern":"^.*$","type":"string","example":"Access Denied"}}},"BpnMappingRequest":{"required":["bpn","url"],"type":"object","properties":{"bpn":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"url":{"maxLength":255,"minLength":0,"type":"string"}}},"BpnEdcMappingResponse":{"type":"object","properties":{"bpn":{"type":"string","example":"BPNL00000003CSGV"},"url":{"type":"string","example":"https://trace-x-test-edc.dev.demo.catena-x.net/a1"}}},"StartNotificationRequest":{"required":["receiverBpn","severity","type"],"type":"object","properties":{"title":{"maxLength":255,"minLength":1,"type":"string","example":"title"},"affectedPartIds":{"maxLength":100,"minLength":1,"maxItems":50,"minItems":1,"type":"array","example":["urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978"],"items":{"maxLength":100,"minLength":1,"type":"string","example":"[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]"}},"description":{"maxLength":1000,"minLength":15,"type":"string","example":"The description"},"targetDate":{"type":"string","format":"date-time","example":"2099-03-11T22:44:06.333826952Z"},"severity":{"type":"string","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"receiverBpn":{"type":"string","example":"BPNL00000003CNKC"},"type":{"type":"string","example":"ALERT","enum":["ALERT","INVESTIGATION"]}}},"NotificationIdResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":1}}},"UpdateNotificationStatusTransitionRequest":{"required":["status"],"type":"object","properties":{"status":{"type":"string","description":"The UpdateInvestigationStatus","enum":["ACKNOWLEDGED","ACCEPTED","DECLINED"]},"reason":{"type":"string","example":"The reason."}}},"CloseNotificationRequest":{"type":"object","properties":{"reason":{"maxLength":1000,"minLength":15,"type":"string","example":"The reason."}}},"OwnPageable":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"sort":{"maxItems":2147483647,"type":"array","description":"Content of Assets PageResults","example":"manufacturerPartId,desc","items":{"type":"string"}}}},"PageableFilterRequest":{"type":"object","properties":{"pageAble":{"$ref":"#/components/schemas/OwnPageable"},"searchCriteria":{"$ref":"#/components/schemas/SearchCriteriaRequestParam"}}},"SearchCriteriaRequestParam":{"type":"object","properties":{"filter":{"maxItems":2147483647,"type":"array","description":"Filter Criteria","example":"owner,EQUAL,OWN","items":{"type":"string"}}}},"NotificationMessageResponse":{"type":"object","properties":{"id":{"type":"string"},"createdBy":{"type":"string"},"createdByName":{"type":"string"},"sendTo":{"type":"string"},"sendToName":{"type":"string"},"contractAgreementId":{"type":"string"},"notificationReferenceId":{"type":"string"},"targetDate":{"type":"string","format":"date-time"},"severity":{"type":"string","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"edcNotificationId":{"type":"string"},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"},"messageId":{"type":"string"},"status":{"type":"string","enum":["CREATED","SENT","RECEIVED","ACKNOWLEDGED","ACCEPTED","DECLINED","CANCELED","CLOSED"]},"errorMessage":{"maxLength":255,"minLength":0,"type":"string","example":"EDC not reachable"}}},"NotificationReasonResponse":{"type":"object","properties":{"close":{"maxLength":1000,"minLength":0,"type":"string","example":"description of closing reason"},"accept":{"maxLength":1000,"minLength":0,"type":"string","example":"description of accepting reason"},"decline":{"maxLength":1000,"minLength":0,"type":"string","example":"description of declining reason"}}},"NotificationResponse":{"type":"object","properties":{"id":{"maximum":255,"minimum":0,"maxLength":255,"type":"integer","format":"int64","example":66},"title":{"maxLength":255,"minLength":0,"type":"string","example":"Title"},"status":{"maxLength":255,"minLength":0,"type":"string","example":"CREATED","enum":["CREATED","SENT","RECEIVED","ACKNOWLEDGED","ACCEPTED","DECLINED","CANCELED","CLOSED"]},"description":{"maxLength":1000,"minLength":0,"type":"string","example":"DescriptionText"},"createdBy":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"createdByName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"createdDate":{"maxLength":50,"minLength":0,"type":"string","example":"2023-02-21T21:27:10.734950Z"},"assetIds":{"maxItems":1000,"minItems":0,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd"],"items":{"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]"}},"channel":{"maxLength":255,"minLength":0,"type":"string","example":"SENDER","enum":["SENDER","RECEIVER"]},"reason":{"$ref":"#/components/schemas/NotificationReasonResponse"},"sendTo":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"sendToName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"severity":{"maxLength":255,"minLength":0,"type":"string","example":"MINOR","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"type":{"maxLength":50,"minLength":0,"type":"string","example":"ALERT","enum":["ALERT","INVESTIGATION"]},"targetDate":{"maxLength":50,"minLength":0,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageResponse"}}}},"CreateNotificationContractRequest":{"required":["notificationMethod","notificationType"],"type":"object","properties":{"notificationType":{"type":"string","enum":["QUALITY_INVESTIGATION","QUALITY_ALERT"]},"notificationMethod":{"type":"string","enum":["RECEIVE","UPDATE","RESOLVE"]}}},"CreateNotificationContractResponse":{"type":"object","properties":{"notificationAssetId":{"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"accessPolicyId":{"type":"string","example":"123"},"contractDefinitionId":{"type":"string","example":"456"}}},"ContractResponse":{"type":"object","properties":{"contractId":{"maxLength":255,"type":"string","example":"66"},"counterpartyAddress":{"maxLength":255,"type":"string","example":"https://trace-x-edc-e2e-a.dev.demo.catena-x.net/api/v1/dsp"},"creationDate":{"maxLength":255,"type":"string","format":"date-time","example":"2023-02-21T21:27:10.73495Z"},"endDate":{"maxLength":255,"type":"string","format":"date-time","example":"2023-02-21T21:27:10.73495Z"},"state":{"maxLength":255,"type":"string","example":"FINALIZED"},"policy":{"maxLength":255,"type":"string","example":"{\\\"@id\\\":\\\"eb0c8486-914a-4d36-84c0-b4971cbc52e4\\\",\\\"@type\\\":\\\"odrl:Set\\\",\\\"odrl:permission\\\":{\\\"odrl:target\\\":\\\"registry-asset\\\",\\\"odrl:action\\\":{\\\"odrl:type\\\":\\\"USE\\\"},\\\"odrl:constraint\\\":{\\\"odrl:or\\\":{\\\"odrl:leftOperand\\\":\\\"PURPOSE\\\",\\\"odrl:operator\\\":{\\\"@id\\\":\\\"odrl:eq\\\"},\\\"odrl:rightOperand\\\":\\\"ID 3.0 Trace\\\"}}},\\\"odrl:prohibition\\\":[],\\\"odrl:obligation\\\":[],\\\"odrl:target\\\":\\\"registry-asset\\\"}"}}},"PageResultContractResponse":{"type":"object","properties":{"content":{"maxItems":2147483647,"minItems":0,"type":"array","description":"Content of PageResults","items":{"$ref":"#/components/schemas/ContractResponse"}},"page":{"type":"integer","format":"int32","example":1},"pageCount":{"type":"integer","format":"int32","example":15},"pageSize":{"type":"integer","format":"int32","example":10},"totalItems":{"type":"integer","format":"int64","example":2}}},"RegisterAssetRequest":{"required":["assetIds","policyId"],"type":"object","properties":{"policyId":{"type":"string","example":"a644a7cb-3de5-493b-9259-f01db315a46e"},"assetIds":{"type":"array","items":{"type":"string"}}}},"ImportResponse":{"type":"object","properties":{"jobId":{"type":"string"},"importStateMessage":{"type":"array","items":{"$ref":"#/components/schemas/ImportStateMessage"}},"validationResult":{"$ref":"#/components/schemas/ValidationResponse"}}},"ImportStateMessage":{"type":"object","properties":{"catenaXId":{"type":"string"},"persistedOrUpdated":{"type":"boolean"}}},"ValidationResponse":{"type":"object","properties":{"validationErrors":{"type":"array","items":{"type":"string"}}}},"SyncAssetsRequest":{"type":"object","properties":{"globalAssetIds":{"maxItems":100,"minItems":1,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"],"items":{"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]"}}}},"GetDetailInformationRequest":{"type":"object","properties":{"assetIds":{"maxLength":50,"minLength":1,"maxItems":50,"minItems":1,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"],"items":{"maxLength":50,"minLength":1,"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]"}}}},"DescriptionsResponse":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"}}},"DetailAspectDataAsBuiltResponse":{"type":"object","properties":{"partId":{"maxLength":255,"minLength":0,"type":"string","example":"95657762-59"},"customerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"01697F7-65"},"nameAtCustomer":{"maxLength":255,"minLength":0,"type":"string","example":"Door front-left"},"manufacturingCountry":{"maxLength":255,"minLength":0,"type":"string","example":"DEU"},"manufacturingDate":{"maxLength":255,"minLength":0,"type":"string","example":"2022-02-04T13:48:54Z"}}},"DetailAspectDataAsPlannedResponse":{"type":"object","properties":{"validityPeriodFrom":{"maxLength":255,"minLength":0,"type":"string","example":"2022-09-26T12:43:51.079Z"},"validityPeriodTo":{"maxLength":255,"minLength":0,"type":"string","example":"20232-07-13T12:00:00.000Z"}}},"DetailAspectDataResponse":{"type":"object","oneOf":[{"$ref":"#/components/schemas/DetailAspectDataAsBuiltResponse"},{"$ref":"#/components/schemas/DetailAspectDataAsPlannedResponse"},{"$ref":"#/components/schemas/PartSiteInformationAsPlannedResponse"},{"$ref":"#/components/schemas/DetailAspectDataTractionBatteryCodeResponse"}]},"DetailAspectDataTractionBatteryCodeResponse":{"type":"object","properties":{"productType":{"maxLength":255,"minLength":0,"type":"string","example":"pack"},"tractionBatteryCode":{"maxLength":255,"minLength":0,"type":"string","example":"X12MCPM27KLPCLX2M2382320"},"subcomponents":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectDataTractionBatteryCodeSubcomponentResponse"}}}},"DetailAspectDataTractionBatteryCodeSubcomponentResponse":{"type":"object","properties":{"productType":{"maxLength":255,"minLength":0,"type":"string","example":"pack"},"tractionBatteryCode":{"maxLength":255,"minLength":0,"type":"string","example":"X12MCPM27KLPCLX2M2382320"}}},"DetailAspectModelResponse":{"type":"object","properties":{"type":{"type":"string","example":"PART_SITE_INFORMATION_AS_PLANNED","enum":["AS_BUILT","AS_PLANNED","TRACTION_BATTERY_CODE","SINGLE_LEVEL_BOM_AS_BUILT","SINGLE_LEVEL_USAGE_AS_BUILT","SINGLE_LEVEL_BOM_AS_PLANNED","PART_SITE_INFORMATION_AS_PLANNED"]},"data":{"$ref":"#/components/schemas/DetailAspectDataResponse"}}},"PartSiteInformationAsPlannedResponse":{"type":"object","properties":{"functionValidUntil":{"type":"string","example":"2025-02-08T04:30:48.000Z"},"function":{"type":"string","example":"production"},"functionValidFrom":{"type":"string","example":"2023-10-13T14:30:45+01:00"},"catenaXSiteId":{"type":"string","example":"urn:uuid:0fed587c-7ab4-4597-9841-1718e9693003"}}},"UpdateAssetRequest":{"required":["qualityType"],"type":"object","properties":{"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]}}},"ConstraintResponse":{"type":"object","properties":{"leftOperand":{"type":"string","example":"PURPOSE"},"operatorTypeResponse":{"type":"string","enum":["EQ","NEQ","LT","GT","IN","LTEQ","GTEQ","ISA","HASPART","ISPARTOF","ISONEOF","ISALLOF","ISNONEOF"]},"rightOperand":{"type":"string","example":"ID Trace 3.1"}}},"ConstraintsResponse":{"type":"object","properties":{"and":{"type":"array","items":{"$ref":"#/components/schemas/ConstraintResponse"}},"or":{"type":"array","items":{"$ref":"#/components/schemas/ConstraintResponse"}}}},"PermissionResponse":{"type":"object","properties":{"action":{"type":"string","example":"USE","enum":["ACCESS","USE"]},"constraints":{"$ref":"#/components/schemas/ConstraintsResponse"}}},"PolicyResponse":{"type":"object","properties":{"policyId":{"type":"string","example":"5a00bb50-0253-405f-b9f1-1a3150b9d51d"},"createdOn":{"type":"string","format":"date-time"},"validUntil":{"type":"string","format":"date-time"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/PermissionResponse"}}}},"DashboardResponse":{"type":"object","properties":{"asBuiltCustomerParts":{"type":"integer","format":"int64","example":5},"asPlannedCustomerParts":{"type":"integer","format":"int64","example":10},"asBuiltSupplierParts":{"type":"integer","format":"int64","example":2},"asPlannedSupplierParts":{"type":"integer","format":"int64","example":3},"asBuiltOwnParts":{"type":"integer","format":"int64","example":1},"asPlannedOwnParts":{"type":"integer","format":"int64","example":1},"myPartsWithOpenAlerts":{"type":"integer","format":"int64","example":1},"myPartsWithOpenInvestigations":{"type":"integer","format":"int64","example":1},"supplierPartsWithOpenAlerts":{"type":"integer","format":"int64","example":1},"customerPartsWithOpenAlerts":{"type":"integer","format":"int64","example":1},"supplierPartsWithOpenInvestigations":{"type":"integer","format":"int64","example":2},"customerPartsWithOpenInvestigations":{"type":"integer","format":"int64","example":2},"receivedActiveAlerts":{"type":"integer","format":"int64","example":2},"receivedActiveInvestigations":{"type":"integer","format":"int64","example":2},"sentActiveAlerts":{"type":"integer","format":"int64","example":2},"sentActiveInvestigations":{"type":"integer","format":"int64","example":2}}},"ImportJobResponse":{"type":"object","properties":{"importJobStatus":{"type":"string","enum":["INITIALIZING","RUNNING","ERROR","COMPLETED"]},"importId":{"type":"string","example":"456a952e-05eb-40dc-a6f2-9c2cb9c1387f"},"startedOn":{"maxLength":50,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"completedOn":{"maxLength":50,"type":"string","example":"2099-02-21T21:27:10.734950Z"}}},"ImportReportResponse":{"type":"object","properties":{"importJob":{"$ref":"#/components/schemas/ImportJobResponse"},"importedAsset":{"type":"array","items":{"$ref":"#/components/schemas/ImportedAssetResponse"}}}},"ImportedAssetResponse":{"type":"object","properties":{"importState":{"type":"string","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"catenaxId":{"type":"string","example":"urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd}"},"importedOn":{"maxLength":50,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"importMessage":{"type":"string","example":"Asset created successfully in transient state."}}}},"securitySchemes":{"oAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://example.com/api/oauth/token","scopes":{"profile email":""}}}}}}} \ No newline at end of file diff --git a/docs/src/docs/administration/portal-configuration.adoc b/docs/src/docs/administration/portal-configuration.adoc index ccd3b399d4..bd5ec2be35 100644 --- a/docs/src/docs/administration/portal-configuration.adoc +++ b/docs/src/docs/administration/portal-configuration.adoc @@ -6,6 +6,64 @@ The following process is required to successfully connect to the portal: +- Company registration with BPN, Company Name + +- User Registration with E-Mail + +- Get e-mail to reset your password + +- Reset the password and log in + +- Make sure your user has the role App Management + +- Navigate to App Overview + +- Create app + +- Choose a selection of managed roles which is necessary (currently: BPDM, Dataspace Discovery, Semantic Model Management, Identity Wallet Management) + +- Wait for app approval by portal + +- Subscribe to the app + +- As app creator navigate to subscription management - click on configure + +- Add the frontend url of the application and click approve + +- Save technical user and secret + +- Navigate to Register Connector + +- Add managed connector + +- Select existing technical user (from app subscription) + +- Enter name "EDC Provider A" + +- Enter base url of controlplane (EDC) + +- Confirm + +- Go to other company which want to participate (subscribe) + +- Login and navigate to app overview + +- Search for the app created + +- Subscribe to the app + +- Go to the app creator company + +- Navigate to the inbox of the portal + +- Click on the nav link to give approval for the company which want to subscribe + +- Enter name "EDC Provider B" + +- Enter base url of controlplane (EDC) + +- Make sure to popuplate the new client id, secrets and app id within trace-x for each company to let it run properly with the new portal configuration. + == Company registration https://portal.int.demo.catena-x.net/documentation[How-to] diff --git a/frontend/cypress/support/step_definitions/quality-investigations.ts b/frontend/cypress/support/step_definitions/quality-investigations.ts index 5316129c08..7a6c79e94c 100644 --- a/frontend/cypress/support/step_definitions/quality-investigations.ts +++ b/frontend/cypress/support/step_definitions/quality-investigations.ts @@ -108,10 +108,12 @@ Then('user changes field {string} to be {string}', function(field: string, value cy.get('p').contains(value).click(); break; case 'title': - cy.get('[data-testId="title-input"]').clear().type(value); + cy.get('[data-testId="title-input"]').type(value); break; case 'bpn': - cy.get('[data-testId="bpn-input"]').clear().type(value); + cy.get('[data-testId="bpn-input"]').type('{selectall}'); + cy.get('[data-testId="bpn-input"]').type('{del}'); + cy.get('[data-testId="bpn-input"]').type(value); break; case 'description': cy.get('[data-testId="description-input"]').clear().type(value); @@ -143,10 +145,10 @@ Then('selected {string} field {string} value is {string}', function(notification cy.get('[data-testid="createdByName-view"]').should('contain.text', value); break; case 'sendTo': - cy.get('[data-testid="sentTo-view"]').should('contain.text', value); + cy.get('[data-testid="sendTo-view"]').should('contain.text', value); break; case 'sendToName': - cy.get('[data-testid="sentToName-view"]').should('contain.text', value); + cy.get('[data-testid="sendToName-view"]').should('contain.text', value); break; default: throw new Error('Set field ' + field + ' is not one of valid fields [severity, title, description, status, createdBy, createdByName, sendTo, sendToName]'); diff --git a/tx-backend/openapi/traceability-foss-backend.json b/tx-backend/openapi/traceability-foss-backend.json index de79c58430..8b440348d6 100644 --- a/tx-backend/openapi/traceability-foss-backend.json +++ b/tx-backend/openapi/traceability-foss-backend.json @@ -1,7485 +1 @@ -{ - "openapi" : "3.0.1", - "info" : { - "title" : "Tractus-X Traceability Foss", - "description" : "Trace-FOSS is a system for tracking parts along the supply chain. A high level of transparency across the supplier network enables faster intervention based on a recorded event in the supply chain. This saves costs by seamlessly tracking parts and creates trust through clearly defined and secure data access by the companies and persons involved in the process.", - "license" : { - "name" : "License: Apache 2.0" - }, - "version" : "1.0.0" - }, - "servers" : [ - { - "url" : "http://localhost:9998/api", - "description" : "Generated server url" - } - ], - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ], - "paths" : { - "/notifications/{notificationId}/edit" : { - "put" : { - "tags" : [ - "Notifications" - ], - "summary" : "Update notification by id", - "description" : "The endpoint updates notification by their id.", - "operationId" : "updateNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/EditNotificationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/bpn-config" : { - "get" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Get BPN EDC URL mappings", - "description" : "The endpoint returns a result of BPN EDC URL mappings.", - "operationId" : "getBpnEdcs", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnEdcMappingResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "put" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Updates BPN EDC URL mappings", - "description" : "The endpoint updates BPN EDC URL mappings", - "operationId" : "updateBpnEdcMappings", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnMappingRequest" - } - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for BpnEdcMapping", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnEdcMappingResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "post" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Creates BPN EDC URL mappings", - "description" : "The endpoint creates BPN EDC URL mappings", - "operationId" : "createBpnEdcUrlMappings", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnMappingRequest" - } - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for BpnEdcMapping", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/BpnEdcMappingResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/submodel/data/{submodelId}" : { - "get" : { - "tags" : [ - "Submodel" - ], - "summary" : "Gets Submodel by its id", - "description" : "The endpoint returns Submodel for given id. Used for data providing functionality", - "operationId" : "getSubmodelById", - "parameters" : [ - { - "name" : "submodelId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns submodel payload", - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "post" : { - "tags" : [ - "Submodel" - ], - "summary" : "Save Submodel", - "description" : "This endpoint allows you to save a Submodel identified by its ID.", - "operationId" : "saveSubmodel", - "parameters" : [ - { - "name" : "submodelId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Start notification by part ids", - "description" : "The endpoint starts notification based on part ids provided.", - "operationId" : "notifyAssets", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/StartNotificationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/NotificationIdResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/update" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Update notification by id", - "description" : "The endpoint updates notification by their id.", - "operationId" : "updateNotification_1", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateNotificationStatusTransitionRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/close" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Close notification by id", - "description" : "The endpoint closes Notification by id.", - "operationId" : "closeNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CloseNotificationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/cancel" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Cancels notification by id", - "description" : "The endpoint cancels notification by id.", - "operationId" : "cancelNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "204" : { - "description" : "No content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}/approve" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Approves notification by id", - "description" : "The endpoint approves notification by id.", - "operationId" : "approveNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "204" : { - "description" : "No content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/filter" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Filter notifications defined by the request body", - "description" : "The endpoint returns notifications as paged result.", - "operationId" : "filterNotifications", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PageableFilterRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Notifications", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Notifications", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maximum" : 255, - "minimum" : 0, - "maxLength" : 255, - "type" : "integer", - "format" : "int64", - "example" : 66 - }, - "title" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Title" - }, - "status" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "CREATED", - "enum" : [ - "CREATED", - "SENT", - "RECEIVED", - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED", - "CANCELED", - "CLOSED" - ] - }, - "description" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "DescriptionText" - }, - "createdBy" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "createdByName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "createdDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2023-02-21T21:27:10.734950Z" - }, - "assetIds" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd" - ], - "items" : { - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]" - } - }, - "channel" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "SENDER", - "enum" : [ - "SENDER", - "RECEIVER" - ] - }, - "reason" : { - "$ref" : "#/components/schemas/NotificationReasonResponse" - }, - "sendTo" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "sendToName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "severity" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "MINOR", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "type" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "ALERT", - "enum" : [ - "ALERT", - "INVESTIGATION" - ] - }, - "targetDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "messages" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/NotificationMessageResponse" - } - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/edc/notification/contract" : { - "post" : { - "tags" : [ - "Notifications" - ], - "summary" : "Triggers EDC notification contract", - "description" : "The endpoint Triggers EDC notification contract based on notification type and method", - "operationId" : "createNotificationContract", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateNotificationContractRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/CreateNotificationContractResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/contracts" : { - "post" : { - "tags" : [ - "Contracts" - ], - "summary" : "All contract agreements for all assets", - "description" : "This endpoint returns all contract agreements for all assets in Trace-X", - "operationId" : "contracts", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PageableFilterRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Authorization failed." - } - } - } - } - }, - "415" : { - "description" : "Unsupported media type.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Unsupported media type." - } - } - } - } - }, - "200" : { - "description" : "Ok.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "description" : "PageResults", - "items" : { - "$ref" : "#/components/schemas/PageResultContractResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Bad request." - } - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Not found." - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Too many requests." - } - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Internal server error." - } - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "type" : "string", - "example" : { - "message" : "Forbidden." - } - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/publish" : { - "post" : { - "tags" : [ - "AssetsImport", - "AssetsPublish" - ], - "summary" : "asset publish", - "description" : "This endpoint publishes assets to the Catena-X network.", - "operationId" : "publishAssets", - "parameters" : [ - { - "name" : "triggerSynchronizeAssets", - "in" : "query", - "required" : false, - "schema" : { - "type" : "boolean", - "default" : true - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/RegisterAssetRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : {} - } - }, - "204" : { - "description" : "No Content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/import" : { - "post" : { - "tags" : [ - "AssetsImport" - ], - "summary" : "asset upload", - "description" : "This endpoint stores assets in the application. Those can be later published in the Catena-X network.", - "operationId" : "importJson", - "requestBody" : { - "content" : { - "multipart/form-data" : { - "schema" : { - "required" : [ - "file" - ], - "type" : "object", - "properties" : { - "file" : { - "type" : "string", - "format" : "binary" - } - } - } - } - } - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ImportResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/sync" : { - "post" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Synchronizes assets from IRS", - "description" : "The endpoint synchronizes the assets from irs.", - "operationId" : "sync", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncAssetsRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/detail-information" : { - "post" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Searches for assets by ids.", - "description" : "The endpoint searchs for assets by id and returns a list of them.", - "operationId" : "getDetailInformation", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetDetailInformationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/sync" : { - "post" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Synchronizes assets from IRS", - "description" : "The endpoint synchronizes the assets from irs.", - "operationId" : "sync_1", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/SyncAssetsRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "201" : { - "description" : "Created." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/detail-information" : { - "post" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Searches for assets by ids.", - "description" : "The endpoint searchs for assets by id and returns a list of them.", - "operationId" : "getDetailInformation_1", - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/GetDetailInformationRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/{assetId}" : { - "get" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Get asset by id", - "description" : "The endpoint returns an asset filtered by id .", - "operationId" : "assetById", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the assets found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "patch" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Updates asset", - "description" : "The endpoint updates asset by provided quality type.", - "operationId" : "updateAsset", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateAssetRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the updated asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/{assetId}" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get asset by id", - "description" : "The endpoint returns an asset filtered by id .", - "operationId" : "assetById_1", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the assets found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - }, - "patch" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Updates asset", - "description" : "The endpoint updates asset by provided quality type.", - "operationId" : "updateAsset_1", - "parameters" : [ - { - "name" : "assetId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/UpdateAssetRequest" - } - } - }, - "required" : true - }, - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the updated asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/registry/reload" : { - "get" : { - "tags" : [ - "Registry" - ], - "summary" : "Triggers reload of shell descriptors", - "description" : "The endpoint Triggers reload of shell descriptors.", - "operationId" : "reload", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "202" : { - "description" : "Created registry reload job." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/policies" : { - "get" : { - "tags" : [ - "Policies" - ], - "summary" : "Get all policies ", - "description" : "The endpoint returns all policies .", - "operationId" : "policy", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the policies", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/PolicyResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/{notificationId}" : { - "get" : { - "tags" : [ - "Notifications" - ], - "summary" : "Gets notification by id", - "description" : "The endpoint returns notification by id.", - "operationId" : "getNotification", - "parameters" : [ - { - "name" : "notificationId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int64" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Notifications", - "items" : { - "$ref" : "#/components/schemas/NotificationResponse" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/notifications/distinctFilterValues" : { - "get" : { - "tags" : [ - "Notifications" - ], - "summary" : "getDistinctFilterValues", - "description" : "The endpoint returns a distinct filter values for given fieldName of notification.", - "operationId" : "distinctFilterValues", - "parameters" : [ - { - "name" : "fieldName", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "size", - "in" : "query", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, - { - "name" : "startWith", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "channel", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string", - "enum" : [ - "SENDER", - "RECEIVER" - ] - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns a distinct filter values for given fieldName.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/dashboard" : { - "get" : { - "tags" : [ - "Dashboard" - ], - "summary" : "Returns dashboard related data", - "description" : "The endpoint can return limited data based on the user role", - "operationId" : "dashboard", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns dashboard data", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/DashboardResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/import/report/{importJobId}" : { - "get" : { - "tags" : [ - "ImportReport", - "AssetsImport" - ], - "summary" : "report of the imported assets", - "description" : "This endpoint returns information about the imported assets to Trace-X.", - "operationId" : "importReport", - "parameters" : [ - { - "name" : "importJobId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "OK.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ImportReportResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned" : { - "get" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Get assets by pagination", - "description" : "The endpoint returns a paged result of assets.", - "operationId" : "AssetsAsPlanned", - "parameters" : [ - { - "name" : "pageable", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/OwnPageable" - } - }, - { - "name" : "filter", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SearchCriteriaRequestParam" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/distinctFilterValues" : { - "get" : { - "tags" : [ - "Assets", - "AssetsAsPlanned" - ], - "summary" : "getDistinctFilterValues", - "description" : "The endpoint returns a distinct filter values for given fieldName.", - "operationId" : "distinctFilterValues_1", - "parameters" : [ - { - "name" : "fieldName", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "size", - "in" : "query", - "required" : false, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, - { - "name" : "startWith", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string" - } - }, - { - "name" : "owner", - "in" : "query", - "required" : false, - "schema" : { - "type" : "string", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns a distinct filter values for given fieldName.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-planned/*/children/{childId}" : { - "get" : { - "tags" : [ - "AssetsAsPlanned" - ], - "summary" : "Get asset by child id", - "description" : "The endpoint returns an asset filtered by child id.", - "operationId" : "assetByChildIdAndAssetId", - "parameters" : [ - { - "name" : "childId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the asset by childId", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get assets by pagination", - "description" : "The endpoint returns a paged result of assets.", - "operationId" : "assets", - "parameters" : [ - { - "name" : "pageable", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/OwnPageable" - } - }, - { - "name" : "searchCriteriaRequestParam", - "in" : "query", - "required" : true, - "schema" : { - "$ref" : "#/components/schemas/SearchCriteriaRequestParam" - } - } - ], - "responses" : { - "200" : { - "description" : "Returns the paged result found for Asset", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - } - }, - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/distinctFilterValues" : { - "get" : { - "tags" : [ - "AssetsAsBuilt", - "Assets" - ], - "summary" : "getDistinctFilterValues", - "description" : "The endpoint returns a distinct filter values for given fieldName.", - "operationId" : "distinctFilterValues_2", - "parameters" : [ - { - "name" : "fieldName", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "size", - "in" : "query", - "required" : true, - "schema" : { - "type" : "integer", - "format" : "int32" - } - }, - { - "name" : "startWith", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string" - } - }, - { - "name" : "owner", - "in" : "query", - "required" : true, - "schema" : { - "type" : "string", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns a distinct filter values for given fieldName.", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/countries" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get map of assets", - "description" : "The endpoint returns a map for assets consumed by the map.", - "operationId" : "assetsCountryMap", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the assets found", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "items" : { - "type" : "string" - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/assets/as-built/*/children/{childId}" : { - "get" : { - "tags" : [ - "AssetsAsBuilt" - ], - "summary" : "Get asset by child id", - "description" : "The endpoint returns an asset filtered by child id.", - "operationId" : "assetByChildId", - "parameters" : [ - { - "name" : "childId", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Returns the asset by childId", - "content" : { - "application/json" : { - "schema" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Assets", - "items" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - }, - "semanticModelId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "NO-246880451848384868750731" - }, - "businessPartner" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "manufacturerName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "nameAtManufacturer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "manufacturerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "owner" : { - "type" : "string", - "example" : "CUSTOMER", - "enum" : [ - "SUPPLIER", - "CUSTOMER", - "OWN", - "UNKNOWN" - ] - }, - "childRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Child relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "parentRelations" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Parent relationships", - "items" : { - "$ref" : "#/components/schemas/DescriptionsResponse" - } - }, - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - }, - "van" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "OMAYSKEITUGNVHKKX" - }, - "semanticDataModel" : { - "type" : "string", - "example" : "BATCH", - "enum" : [ - "BATCH", - "SERIALPART", - "UNKNOWN", - "PARTASPLANNED", - "JUSTINSEQUENCE", - "TOMBSTONEASBUILT", - "TOMBSTONEASPLANNED" - ] - }, - "classification" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "component" - }, - "detailAspectModels" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectModelResponse" - } - }, - "sentQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "receivedQualityAlertIdsInStatusActive" : { - "type" : "array", - "example" : 1, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - }, - "sentQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "receivedQualityInvestigationIdsInStatusActive" : { - "type" : "array", - "example" : 2, - "items" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - }, - "importState" : { - "type" : "string", - "example" : "TRANSIENT", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "importNote" : { - "type" : "string", - "example" : "Asset created successfully in transient state" - }, - "tombstone" : { - "type" : "string", - "example" : " {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n" - }, - "contractAgreementId" : { - "type" : "string", - "example" : "TODO" - } - } - } - } - } - } - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/submodel/data" : { - "delete" : { - "tags" : [ - "Submodel" - ], - "summary" : "Delete All Submodels", - "description" : "Deletes all submodels from the system.", - "operationId" : "deleteSubmodels", - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "200" : { - "description" : "Ok." - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "No Content." - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - }, - "/bpn-config/{bpn}" : { - "delete" : { - "tags" : [ - "BpnEdcMapping" - ], - "summary" : "Deletes BPN EDC URL mappings", - "description" : "The endpoint deletes BPN EDC URL mappings", - "operationId" : "deleteBpnEdcUrlMappings", - "parameters" : [ - { - "name" : "bpn", - "in" : "path", - "required" : true, - "schema" : { - "type" : "string" - } - } - ], - "responses" : { - "401" : { - "description" : "Authorization failed.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "403" : { - "description" : "Forbidden.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "415" : { - "description" : "Unsupported media type", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "500" : { - "description" : "Internal server error.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "204" : { - "description" : "Deleted." - }, - "200" : { - "description" : "Okay" - }, - "400" : { - "description" : "Bad request.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "404" : { - "description" : "Not found.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - }, - "429" : { - "description" : "Too many requests.", - "content" : { - "application/json" : { - "schema" : { - "$ref" : "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "security" : [ - { - "oAuth2" : [ - "profile email" - ] - } - ] - } - } - }, - "components" : { - "schemas" : { - "EditNotificationRequest" : { - "required" : [ - "receiverBpn", - "severity" - ], - "type" : "object", - "properties" : { - "title" : { - "maxLength" : 255, - "minLength" : 1, - "type" : "string", - "example" : "title" - }, - "receiverBpn" : { - "type" : "string", - "example" : "BPNL00000003CNKC" - }, - "severity" : { - "type" : "string", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "targetDate" : { - "type" : "string", - "format" : "date-time", - "example" : "2099-03-11T22:44:06.333826952Z" - }, - "description" : { - "maxLength" : 1000, - "minLength" : 15, - "type" : "string", - "example" : "The description" - }, - "affectedPartIds" : { - "maxLength" : 50, - "minLength" : 1, - "maxItems" : 50, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978" - ], - "items" : { - "maxLength" : 50, - "minLength" : 1, - "type" : "string", - "example" : "[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]" - } - } - } - }, - "ErrorResponse" : { - "type" : "object", - "properties" : { - "message" : { - "maxLength" : 1000, - "minLength" : 0, - "pattern" : "^.*$", - "type" : "string", - "example" : "Access Denied" - } - } - }, - "BpnMappingRequest" : { - "required" : [ - "bpn", - "url" - ], - "type" : "object", - "properties" : { - "bpn" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "url" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string" - } - } - }, - "BpnEdcMappingResponse" : { - "type" : "object", - "properties" : { - "bpn" : { - "type" : "string", - "example" : "BPNL00000003CSGV" - }, - "url" : { - "type" : "string", - "example" : "https://trace-x-test-edc.dev.demo.catena-x.net/a1" - } - } - }, - "StartNotificationRequest" : { - "required" : [ - "receiverBpn", - "severity", - "type" - ], - "type" : "object", - "properties" : { - "title" : { - "maxLength" : 255, - "minLength" : 1, - "type" : "string", - "example" : "title" - }, - "affectedPartIds" : { - "maxLength" : 100, - "minLength" : 1, - "maxItems" : 50, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978" - ], - "items" : { - "maxLength" : 100, - "minLength" : 1, - "type" : "string", - "example" : "[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]" - } - }, - "description" : { - "maxLength" : 1000, - "minLength" : 15, - "type" : "string", - "example" : "The description" - }, - "targetDate" : { - "type" : "string", - "format" : "date-time", - "example" : "2099-03-11T22:44:06.333826952Z" - }, - "severity" : { - "type" : "string", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "receiverBpn" : { - "type" : "string", - "example" : "BPNL00000003CNKC" - }, - "type" : { - "type" : "string", - "example" : "ALERT", - "enum" : [ - "ALERT", - "INVESTIGATION" - ] - } - } - }, - "NotificationIdResponse" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - } - } - }, - "UpdateNotificationStatusTransitionRequest" : { - "required" : [ - "status" - ], - "type" : "object", - "properties" : { - "status" : { - "type" : "string", - "description" : "The UpdateInvestigationStatus", - "enum" : [ - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED" - ] - }, - "reason" : { - "type" : "string", - "example" : "The reason." - } - } - }, - "CloseNotificationRequest" : { - "type" : "object", - "properties" : { - "reason" : { - "maxLength" : 1000, - "minLength" : 15, - "type" : "string", - "example" : "The reason." - } - } - }, - "OwnPageable" : { - "type" : "object", - "properties" : { - "page" : { - "type" : "integer", - "format" : "int32" - }, - "size" : { - "type" : "integer", - "format" : "int32" - }, - "sort" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Content of Assets PageResults", - "example" : "manufacturerPartId,desc", - "items" : { - "type" : "string" - } - } - } - }, - "PageableFilterRequest" : { - "type" : "object", - "properties" : { - "pageAble" : { - "$ref" : "#/components/schemas/OwnPageable" - }, - "searchCriteria" : { - "$ref" : "#/components/schemas/SearchCriteriaRequestParam" - } - } - }, - "SearchCriteriaRequestParam" : { - "type" : "object", - "properties" : { - "filter" : { - "maxItems" : 2147483647, - "type" : "array", - "description" : "Filter Criteria", - "example" : "owner,EQUAL,OWN", - "items" : { - "type" : "string" - } - } - } - }, - "NotificationMessageResponse" : { - "type" : "object", - "properties" : { - "id" : { - "type" : "string" - }, - "createdBy" : { - "type" : "string" - }, - "createdByName" : { - "type" : "string" - }, - "sendTo" : { - "type" : "string" - }, - "sendToName" : { - "type" : "string" - }, - "contractAgreementId" : { - "type" : "string" - }, - "notificationReferenceId" : { - "type" : "string" - }, - "targetDate" : { - "type" : "string", - "format" : "date-time" - }, - "severity" : { - "type" : "string", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "edcNotificationId" : { - "type" : "string" - }, - "created" : { - "type" : "string", - "format" : "date-time" - }, - "updated" : { - "type" : "string", - "format" : "date-time" - }, - "messageId" : { - "type" : "string" - }, - "status" : { - "type" : "string", - "enum" : [ - "CREATED", - "SENT", - "RECEIVED", - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED", - "CANCELED", - "CLOSED" - ] - }, - "errorMessage" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "EDC not reachable" - } - } - }, - "NotificationReasonResponse" : { - "type" : "object", - "properties" : { - "close" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "description of closing reason" - }, - "accept" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "description of accepting reason" - }, - "decline" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "description of declining reason" - } - } - }, - "NotificationResponse" : { - "type" : "object", - "properties" : { - "id" : { - "maximum" : 255, - "minimum" : 0, - "maxLength" : 255, - "type" : "integer", - "format" : "int64", - "example" : 66 - }, - "title" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Title" - }, - "status" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "CREATED", - "enum" : [ - "CREATED", - "SENT", - "RECEIVED", - "ACKNOWLEDGED", - "ACCEPTED", - "DECLINED", - "CANCELED", - "CLOSED" - ] - }, - "description" : { - "maxLength" : 1000, - "minLength" : 0, - "type" : "string", - "example" : "DescriptionText" - }, - "createdBy" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "createdByName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "createdDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2023-02-21T21:27:10.734950Z" - }, - "assetIds" : { - "maxItems" : 1000, - "minItems" : 0, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd", - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd" - ], - "items" : { - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]" - } - }, - "channel" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "SENDER", - "enum" : [ - "SENDER", - "RECEIVER" - ] - }, - "reason" : { - "$ref" : "#/components/schemas/NotificationReasonResponse" - }, - "sendTo" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "BPNL00000003AYRE" - }, - "sendToName" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Tier C" - }, - "severity" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "MINOR", - "enum" : [ - "MINOR", - "MAJOR", - "CRITICAL", - "LIFE-THREATENING" - ] - }, - "type" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "ALERT", - "enum" : [ - "ALERT", - "INVESTIGATION" - ] - }, - "targetDate" : { - "maxLength" : 50, - "minLength" : 0, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "messages" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/NotificationMessageResponse" - } - } - } - }, - "CreateNotificationContractRequest" : { - "required" : [ - "notificationMethod", - "notificationType" - ], - "type" : "object", - "properties" : { - "notificationType" : { - "type" : "string", - "enum" : [ - "QUALITY_INVESTIGATION", - "QUALITY_ALERT" - ] - }, - "notificationMethod" : { - "type" : "string", - "enum" : [ - "RECEIVE", - "UPDATE", - "RESOLVE" - ] - } - } - }, - "CreateNotificationContractResponse" : { - "type" : "object", - "properties" : { - "notificationAssetId" : { - "type" : "string", - "example" : "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - }, - "accessPolicyId" : { - "type" : "string", - "example" : "123" - }, - "contractDefinitionId" : { - "type" : "string", - "example" : "456" - } - } - }, - "ContractResponse" : { - "type" : "object", - "properties" : { - "contractId" : { - "maxLength" : 255, - "type" : "string", - "example" : "66" - }, - "counterpartyAddress" : { - "maxLength" : 255, - "type" : "string", - "example" : "https://trace-x-edc-e2e-a.dev.demo.catena-x.net/api/v1/dsp" - }, - "creationDate" : { - "maxLength" : 255, - "type" : "string", - "format" : "date-time", - "example" : "2023-02-21T21:27:10.73495Z" - }, - "endDate" : { - "maxLength" : 255, - "type" : "string", - "format" : "date-time", - "example" : "2023-02-21T21:27:10.73495Z" - }, - "state" : { - "maxLength" : 255, - "type" : "string", - "example" : "FINALIZED" - }, - "policy" : { - "maxLength" : 255, - "type" : "string", - "example" : "{\\\"@id\\\":\\\"eb0c8486-914a-4d36-84c0-b4971cbc52e4\\\",\\\"@type\\\":\\\"odrl:Set\\\",\\\"odrl:permission\\\":{\\\"odrl:target\\\":\\\"registry-asset\\\",\\\"odrl:action\\\":{\\\"odrl:type\\\":\\\"USE\\\"},\\\"odrl:constraint\\\":{\\\"odrl:or\\\":{\\\"odrl:leftOperand\\\":\\\"PURPOSE\\\",\\\"odrl:operator\\\":{\\\"@id\\\":\\\"odrl:eq\\\"},\\\"odrl:rightOperand\\\":\\\"ID 3.0 Trace\\\"}}},\\\"odrl:prohibition\\\":[],\\\"odrl:obligation\\\":[],\\\"odrl:target\\\":\\\"registry-asset\\\"}" - } - } - }, - "PageResultContractResponse" : { - "type" : "object", - "properties" : { - "content" : { - "maxItems" : 2147483647, - "minItems" : 0, - "type" : "array", - "description" : "Content of PageResults", - "items" : { - "$ref" : "#/components/schemas/ContractResponse" - } - }, - "page" : { - "type" : "integer", - "format" : "int32", - "example" : 1 - }, - "pageCount" : { - "type" : "integer", - "format" : "int32", - "example" : 15 - }, - "pageSize" : { - "type" : "integer", - "format" : "int32", - "example" : 10 - }, - "totalItems" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - } - }, - "RegisterAssetRequest" : { - "required" : [ - "assetIds", - "policyId" - ], - "type" : "object", - "properties" : { - "policyId" : { - "type" : "string", - "example" : "a644a7cb-3de5-493b-9259-f01db315a46e" - }, - "assetIds" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - } - }, - "ImportResponse" : { - "type" : "object", - "properties" : { - "jobId" : { - "type" : "string" - }, - "importStateMessage" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ImportStateMessage" - } - }, - "validationResult" : { - "$ref" : "#/components/schemas/ValidationResponse" - } - } - }, - "ImportStateMessage" : { - "type" : "object", - "properties" : { - "catenaXId" : { - "type" : "string" - }, - "persistedOrUpdated" : { - "type" : "boolean" - } - } - }, - "ValidationResponse" : { - "type" : "object", - "properties" : { - "validationErrors" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - } - }, - "SyncAssetsRequest" : { - "type" : "object", - "properties" : { - "globalAssetIds" : { - "maxItems" : 100, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - ], - "items" : { - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]" - } - } - } - }, - "GetDetailInformationRequest" : { - "type" : "object", - "properties" : { - "assetIds" : { - "maxLength" : 50, - "minLength" : 1, - "maxItems" : 50, - "minItems" : 1, - "type" : "array", - "example" : [ - "urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd" - ], - "items" : { - "maxLength" : 50, - "minLength" : 1, - "type" : "string", - "example" : "[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]" - } - } - } - }, - "DescriptionsResponse" : { - "type" : "object", - "properties" : { - "id" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0" - }, - "idShort" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "assembly-part-relationship" - } - } - }, - "DetailAspectDataAsBuiltResponse" : { - "type" : "object", - "properties" : { - "partId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "95657762-59" - }, - "customerPartId" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "01697F7-65" - }, - "nameAtCustomer" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "Door front-left" - }, - "manufacturingCountry" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "DEU" - }, - "manufacturingDate" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "2022-02-04T13:48:54Z" - } - } - }, - "DetailAspectDataAsPlannedResponse" : { - "type" : "object", - "properties" : { - "validityPeriodFrom" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "2022-09-26T12:43:51.079Z" - }, - "validityPeriodTo" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "20232-07-13T12:00:00.000Z" - } - } - }, - "DetailAspectDataResponse" : { - "type" : "object", - "oneOf" : [ - { - "$ref" : "#/components/schemas/DetailAspectDataAsBuiltResponse" - }, - { - "$ref" : "#/components/schemas/DetailAspectDataAsPlannedResponse" - }, - { - "$ref" : "#/components/schemas/PartSiteInformationAsPlannedResponse" - }, - { - "$ref" : "#/components/schemas/DetailAspectDataTractionBatteryCodeResponse" - } - ] - }, - "DetailAspectDataTractionBatteryCodeResponse" : { - "type" : "object", - "properties" : { - "productType" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "pack" - }, - "tractionBatteryCode" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "X12MCPM27KLPCLX2M2382320" - }, - "subcomponents" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/DetailAspectDataTractionBatteryCodeSubcomponentResponse" - } - } - } - }, - "DetailAspectDataTractionBatteryCodeSubcomponentResponse" : { - "type" : "object", - "properties" : { - "productType" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "pack" - }, - "tractionBatteryCode" : { - "maxLength" : 255, - "minLength" : 0, - "type" : "string", - "example" : "X12MCPM27KLPCLX2M2382320" - } - } - }, - "DetailAspectModelResponse" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string", - "example" : "PART_SITE_INFORMATION_AS_PLANNED", - "enum" : [ - "AS_BUILT", - "AS_PLANNED", - "TRACTION_BATTERY_CODE", - "SINGLE_LEVEL_BOM_AS_BUILT", - "SINGLE_LEVEL_USAGE_AS_BUILT", - "SINGLE_LEVEL_BOM_AS_PLANNED", - "PART_SITE_INFORMATION_AS_PLANNED" - ] - }, - "data" : { - "$ref" : "#/components/schemas/DetailAspectDataResponse" - } - } - }, - "PartSiteInformationAsPlannedResponse" : { - "type" : "object", - "properties" : { - "functionValidUntil" : { - "type" : "string", - "example" : "2025-02-08T04:30:48.000Z" - }, - "function" : { - "type" : "string", - "example" : "production" - }, - "functionValidFrom" : { - "type" : "string", - "example" : "2023-10-13T14:30:45+01:00" - }, - "catenaXSiteId" : { - "type" : "string", - "example" : "urn:uuid:0fed587c-7ab4-4597-9841-1718e9693003" - } - } - }, - "UpdateAssetRequest" : { - "required" : [ - "qualityType" - ], - "type" : "object", - "properties" : { - "qualityType" : { - "type" : "string", - "example" : "Ok", - "enum" : [ - "Ok", - "Minor", - "Major", - "Critical", - "LifeThreatening" - ] - } - } - }, - "ConstraintResponse" : { - "type" : "object", - "properties" : { - "leftOperand" : { - "type" : "string", - "example" : "PURPOSE" - }, - "operatorTypeResponse" : { - "type" : "string", - "enum" : [ - "EQ", - "NEQ", - "LT", - "GT", - "IN", - "LTEQ", - "GTEQ", - "ISA", - "HASPART", - "ISPARTOF", - "ISONEOF", - "ISALLOF", - "ISNONEOF" - ] - }, - "rightOperand" : { - "type" : "string", - "example" : "ID Trace 3.1" - } - } - }, - "ConstraintsResponse" : { - "type" : "object", - "properties" : { - "and" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ConstraintResponse" - } - }, - "or" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ConstraintResponse" - } - } - } - }, - "PermissionResponse" : { - "type" : "object", - "properties" : { - "action" : { - "type" : "string", - "example" : "USE", - "enum" : [ - "ACCESS", - "USE" - ] - }, - "constraints" : { - "$ref" : "#/components/schemas/ConstraintsResponse" - } - } - }, - "PolicyResponse" : { - "type" : "object", - "properties" : { - "policyId" : { - "type" : "string", - "example" : "5a00bb50-0253-405f-b9f1-1a3150b9d51d" - }, - "createdOn" : { - "type" : "string", - "format" : "date-time" - }, - "validUntil" : { - "type" : "string", - "format" : "date-time" - }, - "permissions" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/PermissionResponse" - } - } - } - }, - "DashboardResponse" : { - "type" : "object", - "properties" : { - "asBuiltCustomerParts" : { - "type" : "integer", - "format" : "int64", - "example" : 5 - }, - "asPlannedCustomerParts" : { - "type" : "integer", - "format" : "int64", - "example" : 10 - }, - "asBuiltSupplierParts" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "asPlannedSupplierParts" : { - "type" : "integer", - "format" : "int64", - "example" : 3 - }, - "asBuiltOwnParts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "asPlannedOwnParts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "myPartsWithOpenAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "myPartsWithOpenInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "supplierPartsWithOpenAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "customerPartsWithOpenAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 1 - }, - "supplierPartsWithOpenInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "customerPartsWithOpenInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "receivedActiveAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "receivedActiveInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "sentActiveAlerts" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - }, - "sentActiveInvestigations" : { - "type" : "integer", - "format" : "int64", - "example" : 2 - } - } - }, - "ImportJobResponse" : { - "type" : "object", - "properties" : { - "importJobStatus" : { - "type" : "string", - "enum" : [ - "INITIALIZING", - "RUNNING", - "ERROR", - "COMPLETED" - ] - }, - "importId" : { - "type" : "string", - "example" : "456a952e-05eb-40dc-a6f2-9c2cb9c1387f" - }, - "startedOn" : { - "maxLength" : 50, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "completedOn" : { - "maxLength" : 50, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - } - } - }, - "ImportReportResponse" : { - "type" : "object", - "properties" : { - "importJob" : { - "$ref" : "#/components/schemas/ImportJobResponse" - }, - "importedAsset" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/ImportedAssetResponse" - } - } - } - }, - "ImportedAssetResponse" : { - "type" : "object", - "properties" : { - "importState" : { - "type" : "string", - "enum" : [ - "TRANSIENT", - "PERSISTENT", - "ERROR", - "IN_SYNCHRONIZATION", - "PUBLISHED_TO_CORE_SERVICES", - "UNSET" - ] - }, - "catenaxId" : { - "type" : "string", - "example" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd}" - }, - "importedOn" : { - "maxLength" : 50, - "type" : "string", - "example" : "2099-02-21T21:27:10.734950Z" - }, - "importMessage" : { - "type" : "string", - "example" : "Asset created successfully in transient state." - } - } - } - }, - "securitySchemes" : { - "oAuth2" : { - "type" : "oauth2", - "flows" : { - "clientCredentials" : { - "tokenUrl" : "https://example.com/api/oauth/token", - "scopes" : { - "profile email" : "" - } - } - } - } - } - } -} +{"openapi":"3.0.1","info":{"title":"Tractus-X Traceability Foss","description":"Trace-FOSS is a system for tracking parts along the supply chain. A high level of transparency across the supplier network enables faster intervention based on a recorded event in the supply chain. This saves costs by seamlessly tracking parts and creates trust through clearly defined and secure data access by the companies and persons involved in the process.","license":{"name":"License: Apache 2.0"},"version":"1.0.0"},"servers":[{"url":"http://localhost:9998/api","description":"Generated server url"}],"security":[{"oAuth2":["profile email"]}],"paths":{"/notifications/{notificationId}/edit":{"put":{"tags":["Notifications"],"summary":"Update notification by id","description":"The endpoint updates notification by their id.","operationId":"updateNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditNotificationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/bpn-config":{"get":{"tags":["BpnEdcMapping"],"summary":"Get BPN EDC URL mappings","description":"The endpoint returns a result of BPN EDC URL mappings.","operationId":"getBpnEdcs","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnEdcMappingResponse"}}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"put":{"tags":["BpnEdcMapping"],"summary":"Updates BPN EDC URL mappings","description":"The endpoint updates BPN EDC URL mappings","operationId":"updateBpnEdcMappings","requestBody":{"content":{"application/json":{"schema":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnMappingRequest"}}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for BpnEdcMapping","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnEdcMappingResponse"}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"post":{"tags":["BpnEdcMapping"],"summary":"Creates BPN EDC URL mappings","description":"The endpoint creates BPN EDC URL mappings","operationId":"createBpnEdcUrlMappings","requestBody":{"content":{"application/json":{"schema":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnMappingRequest"}}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for BpnEdcMapping","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/BpnEdcMappingResponse"}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/submodel/data/{submodelId}":{"get":{"tags":["Submodel"],"summary":"Gets Submodel by its id","description":"The endpoint returns Submodel for given id. Used for data providing functionality","operationId":"getSubmodelById","parameters":[{"name":"submodelId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns submodel payload","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"post":{"tags":["Submodel"],"summary":"Save Submodel","description":"This endpoint allows you to save a Submodel identified by its ID.","operationId":"saveSubmodel","parameters":[{"name":"submodelId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications":{"post":{"tags":["Notifications"],"summary":"Start notification by part ids","description":"The endpoint starts notification based on part ids provided.","operationId":"notifyAssets","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartNotificationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationIdResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/update":{"post":{"tags":["Notifications"],"summary":"Update notification by id","description":"The endpoint updates notification by their id.","operationId":"updateNotification_1","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationStatusTransitionRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/close":{"post":{"tags":["Notifications"],"summary":"Close notification by id","description":"The endpoint closes Notification by id.","operationId":"closeNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseNotificationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/cancel":{"post":{"tags":["Notifications"],"summary":"Cancels notification by id","description":"The endpoint cancels notification by id.","operationId":"cancelNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}/approve":{"post":{"tags":["Notifications"],"summary":"Approves notification by id","description":"The endpoint approves notification by id.","operationId":"approveNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/filter":{"post":{"tags":["Notifications"],"summary":"Filter notifications defined by the request body","description":"The endpoint returns notifications as paged result.","operationId":"filterNotifications","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageableFilterRequest"}}},"required":true},"responses":{"200":{"description":"Returns the paged result found for Notifications","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Notifications","items":{"type":"object","properties":{"id":{"maximum":255,"minimum":0,"maxLength":255,"type":"integer","format":"int64","example":66},"title":{"maxLength":255,"minLength":0,"type":"string","example":"Title"},"status":{"maxLength":255,"minLength":0,"type":"string","example":"CREATED","enum":["CREATED","SENT","RECEIVED","ACKNOWLEDGED","ACCEPTED","DECLINED","CANCELED","CLOSED"]},"description":{"maxLength":1000,"minLength":0,"type":"string","example":"DescriptionText"},"createdBy":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"createdByName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"createdDate":{"maxLength":50,"minLength":0,"type":"string","example":"2023-02-21T21:27:10.734950Z"},"assetIds":{"maxItems":1000,"minItems":0,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd"],"items":{"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]"}},"channel":{"maxLength":255,"minLength":0,"type":"string","example":"SENDER","enum":["SENDER","RECEIVER"]},"reason":{"$ref":"#/components/schemas/NotificationReasonResponse"},"sendTo":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"sendToName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"severity":{"maxLength":255,"minLength":0,"type":"string","example":"MINOR","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"type":{"maxLength":50,"minLength":0,"type":"string","example":"ALERT","enum":["ALERT","INVESTIGATION"]},"targetDate":{"maxLength":50,"minLength":0,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageResponse"}}}}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/edc/notification/contract":{"post":{"tags":["Notifications"],"summary":"Triggers EDC notification contract","description":"The endpoint Triggers EDC notification contract based on notification type and method","operationId":"createNotificationContract","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNotificationContractRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNotificationContractResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/contracts":{"post":{"tags":["Contracts"],"summary":"All contract agreements for all assets","description":"This endpoint returns all contract agreements for all assets in Trace-X","operationId":"contracts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageableFilterRequest"}}},"required":true},"responses":{"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Too many requests."}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Authorization failed."}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Internal server error."}}}}},"200":{"description":"Ok.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","description":"PageResults","items":{"$ref":"#/components/schemas/PageResultContractResponse"}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Not found."}}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Bad request."}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Forbidden."}}}}},"415":{"description":"Unsupported media type.","content":{"application/json":{"schema":{"type":"string","example":{"message":"Unsupported media type."}}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/publish":{"post":{"tags":["AssetsImport","AssetsPublish"],"summary":"asset publish","description":"This endpoint publishes assets to the Catena-X network.","operationId":"publishAssets","parameters":[{"name":"triggerSynchronizeAssets","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAssetRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"200":{"description":"OK.","content":{"application/json":{}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/import":{"post":{"tags":["AssetsImport"],"summary":"asset upload","description":"This endpoint stores assets in the application. Those can be later published in the Catena-X network.","operationId":"importJson","requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/sync":{"post":{"tags":["AssetsAsPlanned"],"summary":"Synchronizes assets from IRS","description":"The endpoint synchronizes the assets from irs.","operationId":"sync","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncAssetsRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/detail-information":{"post":{"tags":["AssetsAsPlanned"],"summary":"Searches for assets by ids.","description":"The endpoint searchs for assets by id and returns a list of them.","operationId":"getDetailInformation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDetailInformationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/sync":{"post":{"tags":["AssetsAsBuilt"],"summary":"Synchronizes assets from IRS","description":"The endpoint synchronizes the assets from irs.","operationId":"sync_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncAssetsRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"Created."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/detail-information":{"post":{"tags":["AssetsAsBuilt"],"summary":"Searches for assets by ids.","description":"The endpoint searchs for assets by id and returns a list of them.","operationId":"getDetailInformation_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetDetailInformationRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/{assetId}":{"get":{"tags":["AssetsAsPlanned"],"summary":"Get asset by id","description":"The endpoint returns an asset filtered by id .","operationId":"assetById","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the assets found","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"patch":{"tags":["AssetsAsPlanned"],"summary":"Updates asset","description":"The endpoint updates asset by provided quality type.","operationId":"updateAsset","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the updated asset","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/{assetId}":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get asset by id","description":"The endpoint returns an asset filtered by id .","operationId":"assetById_1","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the assets found","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]},"patch":{"tags":["AssetsAsBuilt"],"summary":"Updates asset","description":"The endpoint updates asset by provided quality type.","operationId":"updateAsset_1","parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssetRequest"}}},"required":true},"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the updated asset","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/registry/reload":{"get":{"tags":["Registry"],"summary":"Triggers reload of shell descriptors","description":"The endpoint Triggers reload of shell descriptors.","operationId":"reload","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"Created registry reload job."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/policies":{"get":{"tags":["Policies"],"summary":"Get all policies ","description":"The endpoint returns all policies .","operationId":"policy","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the policies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/{notificationId}":{"get":{"tags":["Notifications"],"summary":"Gets notification by id","description":"The endpoint returns notification by id.","operationId":"getNotification","parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"OK.","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Notifications","items":{"$ref":"#/components/schemas/NotificationResponse"}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/notifications/distinctFilterValues":{"get":{"tags":["Notifications"],"summary":"getDistinctFilterValues","description":"The endpoint returns a distinct filter values for given fieldName of notification.","operationId":"distinctFilterValues","parameters":[{"name":"fieldName","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"startWith","in":"query","required":true,"schema":{"type":"string"}},{"name":"channel","in":"query","required":true,"schema":{"type":"string","enum":["SENDER","RECEIVER"]}}],"responses":{"200":{"description":"Returns a distinct filter values for given fieldName.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/dashboard":{"get":{"tags":["Dashboard"],"summary":"Returns dashboard related data","description":"The endpoint can return limited data based on the user role","operationId":"dashboard","responses":{"200":{"description":"Returns dashboard data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardResponse"}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/import/report/{importJobId}":{"get":{"tags":["ImportReport","AssetsImport"],"summary":"report of the imported assets","description":"This endpoint returns information about the imported assets to Trace-X.","operationId":"importReport","parameters":[{"name":"importJobId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportReportResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned":{"get":{"tags":["AssetsAsPlanned"],"summary":"Get assets by pagination","description":"The endpoint returns a paged result of assets.","operationId":"AssetsAsPlanned","parameters":[{"name":"pageable","in":"query","required":true,"schema":{"$ref":"#/components/schemas/OwnPageable"}},{"name":"filter","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SearchCriteriaRequestParam"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/distinctFilterValues":{"get":{"tags":["Assets","AssetsAsPlanned"],"summary":"getDistinctFilterValues","description":"The endpoint returns a distinct filter values for given fieldName.","operationId":"distinctFilterValues_1","parameters":[{"name":"fieldName","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"startWith","in":"query","required":false,"schema":{"type":"string"}},{"name":"owner","in":"query","required":false,"schema":{"type":"string","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]}}],"responses":{"200":{"description":"Returns a distinct filter values for given fieldName.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-planned/*/children/{childId}":{"get":{"tags":["AssetsAsPlanned"],"summary":"Get asset by child id","description":"The endpoint returns an asset filtered by child id.","operationId":"assetByChildIdAndAssetId","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the asset by childId","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get assets by pagination","description":"The endpoint returns a paged result of assets.","operationId":"assets","parameters":[{"name":"pageable","in":"query","required":true,"schema":{"$ref":"#/components/schemas/OwnPageable"}},{"name":"searchCriteriaRequestParam","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SearchCriteriaRequestParam"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the paged result found for Asset","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/distinctFilterValues":{"get":{"tags":["AssetsAsBuilt","Assets"],"summary":"getDistinctFilterValues","description":"The endpoint returns a distinct filter values for given fieldName.","operationId":"distinctFilterValues_2","parameters":[{"name":"fieldName","in":"query","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"startWith","in":"query","required":true,"schema":{"type":"string"}},{"name":"owner","in":"query","required":true,"schema":{"type":"string","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]}}],"responses":{"200":{"description":"Returns a distinct filter values for given fieldName.","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/countries":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get map of assets","description":"The endpoint returns a map for assets consumed by the map.","operationId":"assetsCountryMap","responses":{"200":{"description":"Returns the assets found","content":{"application/json":{"schema":{"maxItems":2147483647,"minItems":0,"type":"array","items":{"type":"string"}}}}},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/assets/as-built/*/children/{childId}":{"get":{"tags":["AssetsAsBuilt"],"summary":"Get asset by child id","description":"The endpoint returns an asset filtered by child id.","operationId":"assetByChildId","parameters":[{"name":"childId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Returns the asset by childId","content":{"application/json":{"schema":{"maxItems":2147483647,"type":"array","description":"Assets","items":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"},"semanticModelId":{"maxLength":255,"minLength":0,"type":"string","example":"NO-246880451848384868750731"},"businessPartner":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"manufacturerName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"nameAtManufacturer":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"manufacturerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"owner":{"type":"string","example":"CUSTOMER","enum":["SUPPLIER","CUSTOMER","OWN","UNKNOWN"]},"childRelations":{"maxItems":2147483647,"type":"array","description":"Child relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"parentRelations":{"maxItems":2147483647,"type":"array","description":"Parent relationships","items":{"$ref":"#/components/schemas/DescriptionsResponse"}},"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]},"van":{"maxLength":255,"minLength":0,"type":"string","example":"OMAYSKEITUGNVHKKX"},"semanticDataModel":{"type":"string","example":"BATCH","enum":["BATCH","SERIALPART","UNKNOWN","PARTASPLANNED","JUSTINSEQUENCE","TOMBSTONEASBUILT","TOMBSTONEASPLANNED"]},"classification":{"maxLength":255,"minLength":0,"type":"string","example":"component"},"detailAspectModels":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectModelResponse"}},"sentQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"receivedQualityAlertIdsInStatusActive":{"type":"array","example":1,"items":{"type":"integer","format":"int64","example":1}},"sentQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"receivedQualityInvestigationIdsInStatusActive":{"type":"array","example":2,"items":{"type":"integer","format":"int64","example":2}},"importState":{"type":"string","example":"TRANSIENT","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"importNote":{"type":"string","example":"Asset created successfully in transient state"},"tombstone":{"type":"string","example":" {\n \"catenaXId\": \"urn:uuid:7e4541ea-bb0f-464c-8cb3-021abccbfaf5\",\n \"endpointURL\": \"https://irs-provider-dataplane3.dev.demo.catena-x.net/api/public/data/urn:uuid:c7b3ea3d-97ea-41e4-960d-12fb166e1da1\",\n \"processingError\": {\n \"processStep\": \"SubmodelRequest\",\n \"errorDetail\": \"org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : \"{\"errors\":[]}\"\",\n \"lastAttempt\": \"2024-02-07T12:06:34.400493282Z\",\n \"retryCounter\": 0\n },\n \"policy\": null\n }\n"},"contractAgreementId":{"type":"string","example":"TODO"}}}}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/submodel/data":{"delete":{"tags":["Submodel"],"summary":"Delete All Submodels","description":"Deletes all submodels from the system.","operationId":"deleteSubmodels","responses":{"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok."},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"No Content."},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}},"/bpn-config/{bpn}":{"delete":{"tags":["BpnEdcMapping"],"summary":"Deletes BPN EDC URL mappings","description":"The endpoint deletes BPN EDC URL mappings","operationId":"deleteBpnEdcUrlMappings","parameters":[{"name":"bpn","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted."},"401":{"description":"Authorization failed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Okay"},"404":{"description":"Not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Too many requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"415":{"description":"Unsupported media type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"Bad request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oAuth2":["profile email"]}]}}},"components":{"schemas":{"EditNotificationRequest":{"required":["receiverBpn","severity"],"type":"object","properties":{"title":{"maxLength":255,"minLength":1,"type":"string","example":"title"},"receiverBpn":{"type":"string","example":"BPNL00000003CNKC"},"severity":{"type":"string","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"targetDate":{"type":"string","format":"date-time","example":"2099-03-11T22:44:06.333826952Z"},"description":{"maxLength":1000,"minLength":15,"type":"string","example":"The description"},"affectedPartIds":{"maxLength":50,"minLength":1,"maxItems":50,"minItems":1,"type":"array","example":["urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978"],"items":{"maxLength":50,"minLength":1,"type":"string","example":"[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]"}}}},"ErrorResponse":{"type":"object","properties":{"message":{"maxLength":1000,"minLength":0,"pattern":"^.*$","type":"string","example":"Access Denied"}}},"BpnMappingRequest":{"required":["bpn","url"],"type":"object","properties":{"bpn":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003CSGV"},"url":{"maxLength":255,"minLength":0,"type":"string"}}},"BpnEdcMappingResponse":{"type":"object","properties":{"bpn":{"type":"string","example":"BPNL00000003CSGV"},"url":{"type":"string","example":"https://trace-x-test-edc.dev.demo.catena-x.net/a1"}}},"StartNotificationRequest":{"required":["receiverBpn","severity","type"],"type":"object","properties":{"title":{"maxLength":255,"minLength":1,"type":"string","example":"title"},"affectedPartIds":{"maxLength":100,"minLength":1,"maxItems":50,"minItems":1,"type":"array","example":["urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978"],"items":{"maxLength":100,"minLength":1,"type":"string","example":"[\"urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978\"]"}},"description":{"maxLength":1000,"minLength":15,"type":"string","example":"The description"},"targetDate":{"type":"string","format":"date-time","example":"2099-03-11T22:44:06.333826952Z"},"severity":{"type":"string","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"receiverBpn":{"type":"string","example":"BPNL00000003CNKC"},"type":{"type":"string","example":"ALERT","enum":["ALERT","INVESTIGATION"]}}},"NotificationIdResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64","example":1}}},"UpdateNotificationStatusTransitionRequest":{"required":["status"],"type":"object","properties":{"status":{"type":"string","description":"The UpdateInvestigationStatus","enum":["ACKNOWLEDGED","ACCEPTED","DECLINED"]},"reason":{"type":"string","example":"The reason."}}},"CloseNotificationRequest":{"type":"object","properties":{"reason":{"maxLength":1000,"minLength":15,"type":"string","example":"The reason."}}},"OwnPageable":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"sort":{"maxItems":2147483647,"type":"array","description":"Content of Assets PageResults","example":"manufacturerPartId,desc","items":{"type":"string"}}}},"PageableFilterRequest":{"type":"object","properties":{"pageAble":{"$ref":"#/components/schemas/OwnPageable"},"searchCriteria":{"$ref":"#/components/schemas/SearchCriteriaRequestParam"}}},"SearchCriteriaRequestParam":{"type":"object","properties":{"filter":{"maxItems":2147483647,"type":"array","description":"Filter Criteria","example":"owner,EQUAL,OWN","items":{"type":"string"}}}},"NotificationMessageResponse":{"type":"object","properties":{"id":{"type":"string"},"createdBy":{"type":"string"},"createdByName":{"type":"string"},"sendTo":{"type":"string"},"sendToName":{"type":"string"},"contractAgreementId":{"type":"string"},"notificationReferenceId":{"type":"string"},"targetDate":{"type":"string","format":"date-time"},"severity":{"type":"string","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"edcNotificationId":{"type":"string"},"created":{"type":"string","format":"date-time"},"updated":{"type":"string","format":"date-time"},"messageId":{"type":"string"},"status":{"type":"string","enum":["CREATED","SENT","RECEIVED","ACKNOWLEDGED","ACCEPTED","DECLINED","CANCELED","CLOSED"]},"errorMessage":{"maxLength":255,"minLength":0,"type":"string","example":"EDC not reachable"}}},"NotificationReasonResponse":{"type":"object","properties":{"close":{"maxLength":1000,"minLength":0,"type":"string","example":"description of closing reason"},"accept":{"maxLength":1000,"minLength":0,"type":"string","example":"description of accepting reason"},"decline":{"maxLength":1000,"minLength":0,"type":"string","example":"description of declining reason"}}},"NotificationResponse":{"type":"object","properties":{"id":{"maximum":255,"minimum":0,"maxLength":255,"type":"integer","format":"int64","example":66},"title":{"maxLength":255,"minLength":0,"type":"string","example":"Title"},"status":{"maxLength":255,"minLength":0,"type":"string","example":"CREATED","enum":["CREATED","SENT","RECEIVED","ACKNOWLEDGED","ACCEPTED","DECLINED","CANCELED","CLOSED"]},"description":{"maxLength":1000,"minLength":0,"type":"string","example":"DescriptionText"},"createdBy":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"createdByName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"createdDate":{"maxLength":50,"minLength":0,"type":"string","example":"2023-02-21T21:27:10.734950Z"},"assetIds":{"maxItems":1000,"minItems":0,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd","urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd"],"items":{"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70529fcbd\",\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70530fcbd\"]"}},"channel":{"maxLength":255,"minLength":0,"type":"string","example":"SENDER","enum":["SENDER","RECEIVER"]},"reason":{"$ref":"#/components/schemas/NotificationReasonResponse"},"sendTo":{"maxLength":255,"minLength":0,"type":"string","example":"BPNL00000003AYRE"},"sendToName":{"maxLength":255,"minLength":0,"type":"string","example":"Tier C"},"severity":{"maxLength":255,"minLength":0,"type":"string","example":"MINOR","enum":["MINOR","MAJOR","CRITICAL","LIFE-THREATENING"]},"type":{"maxLength":50,"minLength":0,"type":"string","example":"ALERT","enum":["ALERT","INVESTIGATION"]},"targetDate":{"maxLength":50,"minLength":0,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/NotificationMessageResponse"}}}},"CreateNotificationContractRequest":{"required":["notificationMethod","notificationType"],"type":"object","properties":{"notificationType":{"type":"string","enum":["QUALITY_INVESTIGATION","QUALITY_ALERT"]},"notificationMethod":{"type":"string","enum":["RECEIVE","UPDATE","RESOLVE"]}}},"CreateNotificationContractResponse":{"type":"object","properties":{"notificationAssetId":{"type":"string","example":"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"},"accessPolicyId":{"type":"string","example":"123"},"contractDefinitionId":{"type":"string","example":"456"}}},"ContractResponse":{"type":"object","properties":{"contractId":{"maxLength":255,"type":"string","example":"66"},"counterpartyAddress":{"maxLength":255,"type":"string","example":"https://trace-x-edc-e2e-a.dev.demo.catena-x.net/api/v1/dsp"},"creationDate":{"maxLength":255,"type":"string","format":"date-time","example":"2023-02-21T21:27:10.73495Z"},"endDate":{"maxLength":255,"type":"string","format":"date-time","example":"2023-02-21T21:27:10.73495Z"},"state":{"maxLength":255,"type":"string","example":"FINALIZED"},"policy":{"maxLength":255,"type":"string","example":"{\\\"@id\\\":\\\"eb0c8486-914a-4d36-84c0-b4971cbc52e4\\\",\\\"@type\\\":\\\"odrl:Set\\\",\\\"odrl:permission\\\":{\\\"odrl:target\\\":\\\"registry-asset\\\",\\\"odrl:action\\\":{\\\"odrl:type\\\":\\\"USE\\\"},\\\"odrl:constraint\\\":{\\\"odrl:or\\\":{\\\"odrl:leftOperand\\\":\\\"PURPOSE\\\",\\\"odrl:operator\\\":{\\\"@id\\\":\\\"odrl:eq\\\"},\\\"odrl:rightOperand\\\":\\\"ID 3.0 Trace\\\"}}},\\\"odrl:prohibition\\\":[],\\\"odrl:obligation\\\":[],\\\"odrl:target\\\":\\\"registry-asset\\\"}"}}},"PageResultContractResponse":{"type":"object","properties":{"content":{"maxItems":2147483647,"minItems":0,"type":"array","description":"Content of PageResults","items":{"$ref":"#/components/schemas/ContractResponse"}},"page":{"type":"integer","format":"int32","example":1},"pageCount":{"type":"integer","format":"int32","example":15},"pageSize":{"type":"integer","format":"int32","example":10},"totalItems":{"type":"integer","format":"int64","example":2}}},"RegisterAssetRequest":{"required":["assetIds","policyId"],"type":"object","properties":{"policyId":{"type":"string","example":"a644a7cb-3de5-493b-9259-f01db315a46e"},"assetIds":{"type":"array","items":{"type":"string"}}}},"ImportResponse":{"type":"object","properties":{"jobId":{"type":"string"},"importStateMessage":{"type":"array","items":{"$ref":"#/components/schemas/ImportStateMessage"}},"validationResult":{"$ref":"#/components/schemas/ValidationResponse"}}},"ImportStateMessage":{"type":"object","properties":{"catenaXId":{"type":"string"},"persistedOrUpdated":{"type":"boolean"}}},"ValidationResponse":{"type":"object","properties":{"validationErrors":{"type":"array","items":{"type":"string"}}}},"SyncAssetsRequest":{"type":"object","properties":{"globalAssetIds":{"maxItems":100,"minItems":1,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"],"items":{"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]"}}}},"GetDetailInformationRequest":{"type":"object","properties":{"assetIds":{"maxLength":50,"minLength":1,"maxItems":50,"minItems":1,"type":"array","example":["urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd"],"items":{"maxLength":50,"minLength":1,"type":"string","example":"[\"urn:uuid:ceb6b964-5779-49c1-b5e9-0ee70528fcbd\"]"}}}},"DescriptionsResponse":{"type":"object","properties":{"id":{"maxLength":255,"minLength":0,"type":"string","example":"urn:uuid:a4a26b9c-9460-4cc5-8645-85916b86adb0"},"idShort":{"maxLength":255,"minLength":0,"type":"string","example":"assembly-part-relationship"}}},"DetailAspectDataAsBuiltResponse":{"type":"object","properties":{"partId":{"maxLength":255,"minLength":0,"type":"string","example":"95657762-59"},"customerPartId":{"maxLength":255,"minLength":0,"type":"string","example":"01697F7-65"},"nameAtCustomer":{"maxLength":255,"minLength":0,"type":"string","example":"Door front-left"},"manufacturingCountry":{"maxLength":255,"minLength":0,"type":"string","example":"DEU"},"manufacturingDate":{"maxLength":255,"minLength":0,"type":"string","example":"2022-02-04T13:48:54Z"}}},"DetailAspectDataAsPlannedResponse":{"type":"object","properties":{"validityPeriodFrom":{"maxLength":255,"minLength":0,"type":"string","example":"2022-09-26T12:43:51.079Z"},"validityPeriodTo":{"maxLength":255,"minLength":0,"type":"string","example":"20232-07-13T12:00:00.000Z"}}},"DetailAspectDataResponse":{"type":"object","oneOf":[{"$ref":"#/components/schemas/DetailAspectDataAsBuiltResponse"},{"$ref":"#/components/schemas/DetailAspectDataAsPlannedResponse"},{"$ref":"#/components/schemas/PartSiteInformationAsPlannedResponse"},{"$ref":"#/components/schemas/DetailAspectDataTractionBatteryCodeResponse"}]},"DetailAspectDataTractionBatteryCodeResponse":{"type":"object","properties":{"productType":{"maxLength":255,"minLength":0,"type":"string","example":"pack"},"tractionBatteryCode":{"maxLength":255,"minLength":0,"type":"string","example":"X12MCPM27KLPCLX2M2382320"},"subcomponents":{"type":"array","items":{"$ref":"#/components/schemas/DetailAspectDataTractionBatteryCodeSubcomponentResponse"}}}},"DetailAspectDataTractionBatteryCodeSubcomponentResponse":{"type":"object","properties":{"productType":{"maxLength":255,"minLength":0,"type":"string","example":"pack"},"tractionBatteryCode":{"maxLength":255,"minLength":0,"type":"string","example":"X12MCPM27KLPCLX2M2382320"}}},"DetailAspectModelResponse":{"type":"object","properties":{"type":{"type":"string","example":"PART_SITE_INFORMATION_AS_PLANNED","enum":["AS_BUILT","AS_PLANNED","TRACTION_BATTERY_CODE","SINGLE_LEVEL_BOM_AS_BUILT","SINGLE_LEVEL_USAGE_AS_BUILT","SINGLE_LEVEL_BOM_AS_PLANNED","PART_SITE_INFORMATION_AS_PLANNED"]},"data":{"$ref":"#/components/schemas/DetailAspectDataResponse"}}},"PartSiteInformationAsPlannedResponse":{"type":"object","properties":{"functionValidUntil":{"type":"string","example":"2025-02-08T04:30:48.000Z"},"function":{"type":"string","example":"production"},"functionValidFrom":{"type":"string","example":"2023-10-13T14:30:45+01:00"},"catenaXSiteId":{"type":"string","example":"urn:uuid:0fed587c-7ab4-4597-9841-1718e9693003"}}},"UpdateAssetRequest":{"required":["qualityType"],"type":"object","properties":{"qualityType":{"type":"string","example":"Ok","enum":["Ok","Minor","Major","Critical","LifeThreatening"]}}},"ConstraintResponse":{"type":"object","properties":{"leftOperand":{"type":"string","example":"PURPOSE"},"operatorTypeResponse":{"type":"string","enum":["EQ","NEQ","LT","GT","IN","LTEQ","GTEQ","ISA","HASPART","ISPARTOF","ISONEOF","ISALLOF","ISNONEOF"]},"rightOperand":{"type":"string","example":"ID Trace 3.1"}}},"ConstraintsResponse":{"type":"object","properties":{"and":{"type":"array","items":{"$ref":"#/components/schemas/ConstraintResponse"}},"or":{"type":"array","items":{"$ref":"#/components/schemas/ConstraintResponse"}}}},"PermissionResponse":{"type":"object","properties":{"action":{"type":"string","example":"USE","enum":["ACCESS","USE"]},"constraints":{"$ref":"#/components/schemas/ConstraintsResponse"}}},"PolicyResponse":{"type":"object","properties":{"policyId":{"type":"string","example":"5a00bb50-0253-405f-b9f1-1a3150b9d51d"},"createdOn":{"type":"string","format":"date-time"},"validUntil":{"type":"string","format":"date-time"},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/PermissionResponse"}}}},"DashboardResponse":{"type":"object","properties":{"asBuiltCustomerParts":{"type":"integer","format":"int64","example":5},"asPlannedCustomerParts":{"type":"integer","format":"int64","example":10},"asBuiltSupplierParts":{"type":"integer","format":"int64","example":2},"asPlannedSupplierParts":{"type":"integer","format":"int64","example":3},"asBuiltOwnParts":{"type":"integer","format":"int64","example":1},"asPlannedOwnParts":{"type":"integer","format":"int64","example":1},"myPartsWithOpenAlerts":{"type":"integer","format":"int64","example":1},"myPartsWithOpenInvestigations":{"type":"integer","format":"int64","example":1},"supplierPartsWithOpenAlerts":{"type":"integer","format":"int64","example":1},"customerPartsWithOpenAlerts":{"type":"integer","format":"int64","example":1},"supplierPartsWithOpenInvestigations":{"type":"integer","format":"int64","example":2},"customerPartsWithOpenInvestigations":{"type":"integer","format":"int64","example":2},"receivedActiveAlerts":{"type":"integer","format":"int64","example":2},"receivedActiveInvestigations":{"type":"integer","format":"int64","example":2},"sentActiveAlerts":{"type":"integer","format":"int64","example":2},"sentActiveInvestigations":{"type":"integer","format":"int64","example":2}}},"ImportJobResponse":{"type":"object","properties":{"importJobStatus":{"type":"string","enum":["INITIALIZING","RUNNING","ERROR","COMPLETED"]},"importId":{"type":"string","example":"456a952e-05eb-40dc-a6f2-9c2cb9c1387f"},"startedOn":{"maxLength":50,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"completedOn":{"maxLength":50,"type":"string","example":"2099-02-21T21:27:10.734950Z"}}},"ImportReportResponse":{"type":"object","properties":{"importJob":{"$ref":"#/components/schemas/ImportJobResponse"},"importedAsset":{"type":"array","items":{"$ref":"#/components/schemas/ImportedAssetResponse"}}}},"ImportedAssetResponse":{"type":"object","properties":{"importState":{"type":"string","enum":["TRANSIENT","PERSISTENT","ERROR","IN_SYNCHRONIZATION","PUBLISHED_TO_CORE_SERVICES","UNSET"]},"catenaxId":{"type":"string","example":"urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd}"},"importedOn":{"maxLength":50,"type":"string","example":"2099-02-21T21:27:10.734950Z"},"importMessage":{"type":"string","example":"Asset created successfully in transient state."}}}},"securitySchemes":{"oAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://example.com/api/oauth/token","scopes":{"profile email":""}}}}}}} \ No newline at end of file diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/importpoc/validation/JsonFileValidator.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/importpoc/validation/JsonFileValidator.java index e62841b0f8..36a3630c63 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/importpoc/validation/JsonFileValidator.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/application/importpoc/validation/JsonFileValidator.java @@ -51,15 +51,15 @@ public class JsonFileValidator { public static final Map SUPPORTED_SCHEMA_VALIDATION = Map.ofEntries( Map.entry("base", "/schema/tracex/schema_V1.json"), - Map.entry("urn:samm:io.catenax.batch:2.0.0#Batch", "/schema/semantichub/Batch_2.0.0-schema.json"), - Map.entry("urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", "/schema/semantichub/JustInSequencePart_1.0.0-schema.json"), - Map.entry("urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", "/schema/semantichub/SerialPart_1.0.1-schema.json"), - Map.entry("urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "/schema/semantichub/PartSiteInformationAsPlanned_1.0.0-schema.json"), - Map.entry("urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", "/schema/semantichub/SingleLevelBomAsBuilt_2.0.0-schema.json"), - Map.entry("urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", "/schema/semantichub/SingleLevelUsageAsBuilt_2.0.0-schema.json"), - Map.entry("urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "/schema/semantichub/TractionBatteryCode_1.0.0-schema.json"), - Map.entry("urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", "/schema/semantichub/PartAsPlanned_1.0.1-schema.json"), - Map.entry("urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", "/schema/semantichub/SingleLevelBomAsPlanned_2.0.0-schema.json") + Map.entry("urn:samm:io.catenax.batch:3.0.0#Batch", "/schema/semantichub/Batch_3.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "/schema/semantichub/JustInSequencePart_3.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "/schema/semantichub/SerialPart_3.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "/schema/semantichub/PartSiteInformationAsPlanned_1.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "/schema/semantichub/SingleLevelBomAsBuilt_3.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "/schema/semantichub/SingleLevelUsageAsBuilt_3.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "/schema/semantichub/TractionBatteryCode_1.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "/schema/semantichub/PartAsPlanned_2.0.0-schema.json"), + Map.entry("urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "/schema/semantichub/SingleLevelBomAsPlanned_3.0.0-schema.json") ); private final JsonSchemaFactory factory = JsonSchemaFactory.byDefault(); diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/base/model/AssetBase.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/base/model/AssetBase.java index 4d7097d136..db908070f6 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/base/model/AssetBase.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/base/model/AssetBase.java @@ -64,6 +64,7 @@ public class AssetBase { private String tombstone; private String contractAgreementId; + public BomLifecycle getBomLifecycle() { if (semanticDataModel.isAsBuilt()) { return BomLifecycle.AS_BUILT; diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsBuiltRequest.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsBuiltRequest.java index 6d7348030d..7d30a18752 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsBuiltRequest.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsBuiltRequest.java @@ -13,7 +13,11 @@ public record LocalIdentifier(String value, String key) { public record ManufacturingInformation(String date, String country) { } - public record PartTypeInformation(String nameAtCustomer, String customerPartId, String manufacturerPartId, String classification, String nameAtManufacturer) { + public record PartTypeInformation(String nameAtCustomer, String customerPartId, String manufacturerPartId, List partClassification, String nameAtManufacturer) { + } + + public record PartClassification(String classificationStandard, String classificationID, String classificationDescription){ + } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsPlannedRequest.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsPlannedRequest.java index 03dd60b447..d6e6ee49df 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsPlannedRequest.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/MainAspectAsPlannedRequest.java @@ -1,16 +1,14 @@ package org.eclipse.tractusx.traceability.assets.domain.importpoc.model; -public record MainAspectAsPlannedRequest(String catenaXId, ValidityPeriod validityPeriod, - PartTypeInformation partTypeInformation -) { +import java.util.List; - public record ValidityPeriod( - String validFrom, - String validTo) { - } +public record MainAspectAsPlannedRequest(String catenaXId, PartTypeInformation partTypeInformation, List partSitesInformationAsPlanned +) { public record PartTypeInformation(String manufacturerPartId, String classification, String nameAtManufacturer) { } + public record PartSitesInformationAsPlanned(String catenaXsiteId, String function, String functionValidFrom, String functionValidUntil) { + } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsBuiltRequest.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsBuiltRequest.java index c07cad5801..6c9097be6b 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsBuiltRequest.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsBuiltRequest.java @@ -32,7 +32,7 @@ public record ChildItem( ) { } - public record Quantity(int quantityNumber, String measurementUnit) { + public record Quantity(int value, String unit) { } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsPlannedRequest.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsPlannedRequest.java index 086d5a8557..c740b88fd9 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsPlannedRequest.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelBomAsPlannedRequest.java @@ -40,8 +40,8 @@ public record ValidityPeriod( } public record Quantity( - double quantityNumber, - String measurementUnit + double value, + String unit ) { } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelUsageAsBuiltRequest.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelUsageAsBuiltRequest.java index e5c80e8738..5e4872ad20 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelUsageAsBuiltRequest.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/model/SingleLevelUsageAsBuiltRequest.java @@ -20,15 +20,13 @@ import java.util.List; -public record SingleLevelUsageAsBuiltRequest(String catenaXId, List customers) { +public record SingleLevelUsageAsBuiltRequest(String catenaXId, List customers, List parentItems) { - public record Customer(List parentItems, String businessPartner, String createdOn, String lastModifiedOn) { + public record ParentItem(Quantity quantity, String catenaXId, String createdOn, String lastModifiedOn, + String businessPartner, boolean isOnlyPotentialParent) { } - public record ParentItem(Quantity quantity, String catenaXId, String createdOn, String lastModifiedOn) { - } - - public record Quantity(int quantityNumber, String measurementUnit) { + public record Quantity(int value, String unit) { } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/DtrService.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/DtrService.java index d45c43e919..85280e451c 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/DtrService.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/DtrService.java @@ -29,6 +29,7 @@ import org.eclipse.tractusx.irs.component.assetadministrationshell.SecurityAttribute; import org.eclipse.tractusx.irs.component.assetadministrationshell.SemanticId; import org.eclipse.tractusx.irs.component.assetadministrationshell.SubmodelDescriptor; +import org.eclipse.tractusx.irs.component.enums.BomLifecycle; import org.eclipse.tractusx.irs.registryclient.decentral.DigitalTwinRegistryCreateShellService; import org.eclipse.tractusx.irs.registryclient.decentral.exception.CreateDtrShellException; import org.eclipse.tractusx.traceability.assets.domain.base.model.AssetBase; @@ -143,7 +144,19 @@ private AssetAdministrationShellDescriptor aasFrom(AssetBase assetBase, List aasIdentifiersFromAsset(AssetBase assetBase) { + + final String digitalTwinType = assetBase.getBomLifecycle().equals(BomLifecycle.AS_BUILT) ? "PartInstance" : "PartType"; + return List.of( + IdentifierKeyValuePair.builder() + .name("digitalTwinType") + .value(digitalTwinType) + .externalSubjectId( + Reference.builder() + .type(EXTERNAL_REFERENCE) + .keys(getExternalSubjectIds()) + .build()) + .build(), IdentifierKeyValuePair.builder() .name("manufacturerId") .value(assetBase.getManufacturerId()) diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsBuiltStrategy.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsBuiltStrategy.java index 15f09f3393..68c3527b3d 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsBuiltStrategy.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsBuiltStrategy.java @@ -80,18 +80,19 @@ public AssetBase mapToAssetBase(ImportRequest.AssetImportRequest assetImportRequ .map(childItem -> new Descriptions(childItem.catenaXId(), null, null, null)) .toList(); - List childRelations = submodels.stream() .filter(genericSubmodel -> isDownwardRelationshipAsBuilt(genericSubmodel.getAspectType())) .map(GenericSubmodel::getPayload) .filter(SingleLevelUsageAsBuiltRequest.class::isInstance) .map(SingleLevelUsageAsBuiltRequest.class::cast) .findFirst() - .map(SingleLevelUsageAsBuiltRequest::customers) - .orElse(Collections.emptyList()) - .stream() - .map(SingleLevelUsageAsBuiltRequest.Customer::parentItems) - .flatMap(parentItems -> parentItems.stream().map(parentItem -> new Descriptions(parentItem.catenaXId(), null, null, null))).toList(); + .map(SingleLevelUsageAsBuiltRequest::parentItems) + .map(parentItems -> parentItems.stream() + .map(parentItem -> new Descriptions( + parentItem.catenaXId(), + null, + null, + null)).toList()).orElse(Collections.emptyList()); final AtomicReference semanticModelId = new AtomicReference<>(); @@ -140,7 +141,8 @@ public AssetBase mapToAssetBase(ImportRequest.AssetImportRequest assetImportRequ .parentRelations(parentRelations) .childRelations(childRelations) .owner(Owner.OWN) - .classification(asBuiltAspect.partTypeInformation().classification()) + // TODO enrich + .classification(null) .qualityType(QualityType.OK) .semanticDataModel(semanticDataModel.get()) .importState(ImportState.TRANSIENT) diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsPlannedStrategy.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsPlannedStrategy.java index c1b53e0187..1b0687dbe9 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsPlannedStrategy.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/domain/importpoc/service/MainAspectAsPlannedStrategy.java @@ -101,9 +101,6 @@ public AssetBase mapToAssetBase(ImportRequest.AssetImportRequest assetImportRequ AssetBase.AssetBaseBuilder assetBaseBuilder = AssetBase.builder(); if (partAsPlannedV2 != null) { - DetailAspectModel asPlannedDetailAspect = extractDetailAspectModelsAsPlanned(partAsPlannedV2.validityPeriod()); - detailAspectModels.add(asPlannedDetailAspect); - assetBaseBuilder .id(assetImportRequestV2.assetMetaInfoRequest().catenaXId()) .manufacturerId(traceabilityProperties.getBpn().value()) @@ -139,13 +136,6 @@ public static List extractDetailAspectModelsPartSiteInformati return detailAspectModels; } - public static DetailAspectModel extractDetailAspectModelsAsPlanned(MainAspectAsPlannedRequest.ValidityPeriod validityPeriod) { - DetailAspectDataAsPlanned detailAspectDataAsPlanned = DetailAspectDataAsPlanned.builder() - .validityPeriodFrom(OffsetDateTime.parse(validityPeriod.validFrom())) - .validityPeriodTo(OffsetDateTime.parse(validityPeriod.validTo())) - .build(); - return DetailAspectModel.builder().data(detailAspectDataAsPlanned).type(DetailAspectType.AS_PLANNED).build(); - } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/GenericSubmodel.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/GenericSubmodel.java index 44fe390c13..d426e2112f 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/GenericSubmodel.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/GenericSubmodel.java @@ -47,32 +47,32 @@ public class GenericSubmodel { property = "aspectType") @JsonSubTypes({ @Type(value = MainAspectAsBuiltRequest.class, names = { - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", - "urn:samm:io.catenax.batch:2.0.0#Batch", - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "urn:samm:io.catenax.batch:3.0.0#Batch", + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart" }), @Type(value = MainAspectAsPlannedRequest.class, names = { - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" }), @Type(value = PartSiteInformationAsPlannedRequest.class, names = { - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" }), @Type(value = DetailAspectDataTractionBatteryCode.class, names = { - "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" + "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" }), @Type(value = SingleLevelBomAsBuiltRequest.class, names = { - "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" }), @Type(value = SingleLevelUsageAsBuiltRequest.class, names = { - "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt" + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" }), @Type(value = SingleLevelUsageAsPlannedRequest.class, names = { - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" }), @Type(value = SingleLevelBomAsPlannedRequest.class, names = { - "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned" + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" }) }) private final Object payload; diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/IrsSubmodel.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/IrsSubmodel.java index e01d337d20..ecb9a3e313 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/IrsSubmodel.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/IrsSubmodel.java @@ -5,11 +5,11 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import lombok.Getter; -import org.eclipse.tractusx.traceability.generated.Batch200Schema; -import org.eclipse.tractusx.traceability.generated.JustInSequencePart100Schema; -import org.eclipse.tractusx.traceability.generated.PartAsPlanned101Schema; +import org.eclipse.tractusx.traceability.generated.Batch300Schema; +import org.eclipse.tractusx.traceability.generated.JustInSequencePart300Schema; +import org.eclipse.tractusx.traceability.generated.PartAsPlanned200Schema; import org.eclipse.tractusx.traceability.generated.PartSiteInformationAsPlanned100Schema; -import org.eclipse.tractusx.traceability.generated.SerialPart101Schema; +import org.eclipse.tractusx.traceability.generated.SerialPart300Schema; import org.eclipse.tractusx.traceability.generated.TractionBatteryCode100Schema; @Getter @@ -20,23 +20,23 @@ public class IrsSubmodel { defaultImpl = Void.class, property = "aspectType") @JsonSubTypes({ - @JsonSubTypes.Type(value = SerialPart101Schema.class, names = { - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + @JsonSubTypes.Type(value = SerialPart300Schema.class, names = { + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", }), - @JsonSubTypes.Type(value = Batch200Schema.class, names = { - "urn:samm:io.catenax.batch:2.0.0#Batch" + @JsonSubTypes.Type(value = Batch300Schema.class, names = { + "urn:samm:io.catenax.batch:3.0.0#Batch" }), - @JsonSubTypes.Type(value = PartAsPlanned101Schema.class, names = { - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + @JsonSubTypes.Type(value = PartAsPlanned200Schema.class, names = { + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", }), @JsonSubTypes.Type(value = PartSiteInformationAsPlanned100Schema.class, names = { - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" }), - @JsonSubTypes.Type(value = JustInSequencePart100Schema.class, names = { - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart" + @JsonSubTypes.Type(value = JustInSequencePart300Schema.class, names = { + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart" }), @JsonSubTypes.Type(value = TractionBatteryCode100Schema.class, names = { - "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" + "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" }) }) private Object payload; diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/BatchMapper.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/BatchMapper.java index d529e21c82..91873cd360 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/BatchMapper.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/BatchMapper.java @@ -28,10 +28,10 @@ import org.eclipse.tractusx.traceability.assets.domain.base.model.aspect.DetailAspectType; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.IrsSubmodel; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.semanticdatamodel.LocalIdKey; -import org.eclipse.tractusx.traceability.generated.Batch200Schema; -import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxBatch200KeyValueList; -import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxBatch200ManufacturingCharacteristic; -import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxBatch200PartTypeInformationCharacteristic; +import org.eclipse.tractusx.traceability.generated.Batch300Schema; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxBatch300KeyValueList; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxBatch300ManufacturingCharacteristic; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxBatch300PartTypeInformationCharacteristic; import org.springframework.stereotype.Component; import java.time.OffsetDateTime; @@ -46,7 +46,7 @@ public class BatchMapper implements SubmodelMapper { @Override public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { - Batch200Schema batch = (Batch200Schema) irsSubmodel.getPayload(); + Batch300Schema batch = (Batch300Schema) irsSubmodel.getPayload(); String batchId = getValue(batch.getLocalIdentifiers(), LocalIdKey.BATCH_ID.getValue()); String manufacturerId = getValue(batch.getLocalIdentifiers(), LocalIdKey.MANUFACTURER_ID.getValue()); @@ -60,7 +60,15 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { .manufacturerId(manufacturerId) .nameAtManufacturer(batch.getPartTypeInformation().getNameAtManufacturer()) .manufacturerPartId(batch.getPartTypeInformation().getManufacturerPartId()) - .classification(batch.getPartTypeInformation().getClassification().value()) + // TODO + /* + { + "classificationStandard": "ISO 12345", + "classificationID": "6789", + "classificationDescription": "Standard for widgets" + } + * */ + .classification(null) .qualityType(QualityType.OK) .semanticDataModel(BATCH) .van(van) @@ -71,11 +79,11 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { @Override public boolean validMapper(IrsSubmodel submodel) { - return submodel.getPayload() instanceof Batch200Schema; + return submodel.getPayload() instanceof Batch300Schema; } - private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCatenaxBatch200ManufacturingCharacteristic manufacturingInformation, - UrnSammIoCatenaxBatch200PartTypeInformationCharacteristic partTypeInformation) { + private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCatenaxBatch300ManufacturingCharacteristic manufacturingInformation, + UrnSammIoCatenaxBatch300PartTypeInformationCharacteristic partTypeInformation) { OffsetDateTime offsetDateTime = MapperHelper.getOffsetDateTime(manufacturingInformation.getDate()); @@ -89,8 +97,8 @@ private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCaten return DetailAspectModel.builder().data(detailAspectDataAsBuilt).type(DetailAspectType.AS_BUILT).build(); } - private String getValue(Set localIdentifiers, String key) { - UrnSammIoCatenaxBatch200KeyValueList object = localIdentifiers.stream() + private String getValue(Set localIdentifiers, String key) { + UrnSammIoCatenaxBatch300KeyValueList object = localIdentifiers.stream() .filter(localId -> localId.getKey().equalsIgnoreCase(key)) .findFirst() .orElseGet(() -> null); diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/JustInSequenceMapper.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/JustInSequenceMapper.java index 0ec1c1d352..455ba4ab2a 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/JustInSequenceMapper.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/JustInSequenceMapper.java @@ -28,10 +28,10 @@ import org.eclipse.tractusx.traceability.assets.domain.base.model.aspect.DetailAspectType; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.IrsSubmodel; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.semanticdatamodel.LocalIdKey; -import org.eclipse.tractusx.traceability.generated.JustInSequencePart100Schema; -import org.eclipse.tractusx.traceability.generated.UrnBammIoCatenaxJustInSequencePart100KeyValueList; -import org.eclipse.tractusx.traceability.generated.UrnBammIoCatenaxJustInSequencePart100ManufacturingCharacteristic; -import org.eclipse.tractusx.traceability.generated.UrnBammIoCatenaxJustInSequencePart100PartTypeInformationCharacteristic; +import org.eclipse.tractusx.traceability.generated.JustInSequencePart300Schema; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxJustInSequencePart300KeyValueList; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxJustInSequencePart300ManufacturingCharacteristic; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxJustInSequencePart300PartTypeInformationCharacteristic; import org.springframework.stereotype.Component; import java.time.OffsetDateTime; @@ -45,7 +45,7 @@ public class JustInSequenceMapper implements SubmodelMapper { @Override public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { - JustInSequencePart100Schema justInSequencePart = (JustInSequencePart100Schema) irsSubmodel.getPayload(); + JustInSequencePart300Schema justInSequencePart = (JustInSequencePart300Schema) irsSubmodel.getPayload(); String justInSequenceId = getValue(justInSequencePart.getLocalIdentifiers(), LocalIdKey.JIS_NUMBER.getValue()); String manufacturerName = getValue(justInSequencePart.getLocalIdentifiers(), LocalIdKey.MANUFACTURER_ID.getValue()); @@ -60,7 +60,8 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { .manufacturerName(manufacturerName) .nameAtManufacturer(justInSequencePart.getPartTypeInformation().getNameAtManufacturer()) .manufacturerPartId(justInSequencePart.getPartTypeInformation().getManufacturerPartId()) - .classification(justInSequencePart.getPartTypeInformation().getClassification().value()) + // TODO extend data model to include all classification attributes + .classification(null) .qualityType(QualityType.OK) .semanticDataModel(JUSTINSEQUENCE) .van(van) @@ -71,11 +72,11 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { @Override public boolean validMapper(IrsSubmodel submodel) { - return submodel.getPayload() instanceof JustInSequencePart100Schema; + return submodel.getPayload() instanceof JustInSequencePart300Schema; } - private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnBammIoCatenaxJustInSequencePart100ManufacturingCharacteristic manufacturingInformation, - UrnBammIoCatenaxJustInSequencePart100PartTypeInformationCharacteristic partTypeInformation) { + private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCatenaxJustInSequencePart300ManufacturingCharacteristic manufacturingInformation, + UrnSammIoCatenaxJustInSequencePart300PartTypeInformationCharacteristic partTypeInformation) { OffsetDateTime offsetDateTime = MapperHelper.getOffsetDateTime(manufacturingInformation.getDate()); @@ -89,8 +90,8 @@ private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnBammIoCaten return DetailAspectModel.builder().data(detailAspectDataAsBuilt).type(DetailAspectType.AS_BUILT).build(); } - private String getValue(Set localIdentifiers, String key) { - UrnBammIoCatenaxJustInSequencePart100KeyValueList object = localIdentifiers.stream() + private String getValue(Set localIdentifiers, String key) { + UrnSammIoCatenaxJustInSequencePart300KeyValueList object = localIdentifiers.stream() .filter(localId -> localId.getKey().equalsIgnoreCase(key)) .findFirst() .orElseGet(() -> null); diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/PartAsPlannedMapper.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/PartAsPlannedMapper.java index a5834c7ff5..63c361d880 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/PartAsPlannedMapper.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/PartAsPlannedMapper.java @@ -23,7 +23,7 @@ import org.eclipse.tractusx.traceability.assets.domain.base.model.ImportState; import org.eclipse.tractusx.traceability.assets.domain.base.model.QualityType; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.IrsSubmodel; -import org.eclipse.tractusx.traceability.generated.PartAsPlanned101Schema; +import org.eclipse.tractusx.traceability.generated.PartAsPlanned200Schema; import org.springframework.stereotype.Component; import static org.eclipse.tractusx.traceability.assets.domain.base.model.SemanticDataModel.PARTASPLANNED; @@ -33,7 +33,7 @@ public class PartAsPlannedMapper implements SubmodelMapper { @Override public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { - PartAsPlanned101Schema partAsPlanned = (PartAsPlanned101Schema) irsSubmodel.getPayload(); + PartAsPlanned200Schema partAsPlanned = (PartAsPlanned200Schema) irsSubmodel.getPayload(); return AssetBase .builder() @@ -50,6 +50,6 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { @Override public boolean validMapper(IrsSubmodel submodel) { - return submodel.getPayload() instanceof PartAsPlanned101Schema; + return submodel.getPayload() instanceof PartAsPlanned200Schema; } } diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/SerialPartMapper.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/SerialPartMapper.java index 6a65a084ca..b3a2445e52 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/SerialPartMapper.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/mapping/submodel/SerialPartMapper.java @@ -28,10 +28,10 @@ import org.eclipse.tractusx.traceability.assets.domain.base.model.aspect.DetailAspectType; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.IrsSubmodel; import org.eclipse.tractusx.traceability.assets.infrastructure.base.irs.model.response.semanticdatamodel.LocalIdKey; -import org.eclipse.tractusx.traceability.generated.SerialPart101Schema; -import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxSerialPart101KeyValueList; -import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxSerialPart101ManufacturingCharacteristic; -import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxSerialPart101PartTypeInformationCharacteristic; +import org.eclipse.tractusx.traceability.generated.SerialPart300Schema; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxSerialPart300KeyValueList; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxSerialPart300ManufacturingCharacteristic; +import org.eclipse.tractusx.traceability.generated.UrnSammIoCatenaxSerialPart300PartTypeInformationCharacteristic; import org.springframework.stereotype.Component; import java.time.OffsetDateTime; @@ -45,7 +45,7 @@ public class SerialPartMapper implements SubmodelMapper { @Override public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { - SerialPart101Schema serialPart = (SerialPart101Schema) irsSubmodel.getPayload(); + SerialPart300Schema serialPart = (SerialPart300Schema) irsSubmodel.getPayload(); String serialPartId = getValue(serialPart.getLocalIdentifiers(), LocalIdKey.PART_INSTANCE_ID.getValue()); String manufacturerName = getValue(serialPart.getLocalIdentifiers(), LocalIdKey.MANUFACTURER_ID.getValue()); @@ -60,7 +60,8 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { .manufacturerName(manufacturerName) .nameAtManufacturer(serialPart.getPartTypeInformation().getNameAtManufacturer()) .manufacturerPartId(serialPart.getPartTypeInformation().getManufacturerPartId()) - .classification(serialPart.getPartTypeInformation().getClassification().value()) + // TODO change model to be able to save something here + .classification(null) .qualityType(QualityType.OK) .semanticDataModel(SERIALPART) .van(van) @@ -72,11 +73,11 @@ public AssetBase extractSubmodel(IrsSubmodel irsSubmodel) { @Override public boolean validMapper(IrsSubmodel submodel) { - return submodel.getPayload() instanceof SerialPart101Schema; + return submodel.getPayload() instanceof SerialPart300Schema; } - private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCatenaxSerialPart101ManufacturingCharacteristic manufacturingInformation, - UrnSammIoCatenaxSerialPart101PartTypeInformationCharacteristic partTypeInformation) { + private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCatenaxSerialPart300ManufacturingCharacteristic manufacturingInformation, + UrnSammIoCatenaxSerialPart300PartTypeInformationCharacteristic partTypeInformation) { OffsetDateTime offsetDateTime = MapperHelper.getOffsetDateTime(manufacturingInformation.getDate()); @@ -90,8 +91,8 @@ private static DetailAspectModel extractDetailAspectModelsAsBuilt(UrnSammIoCaten return DetailAspectModel.builder().data(detailAspectDataAsBuilt).type(DetailAspectType.AS_BUILT).build(); } - private String getValue(Set localIdentifiers, String key) { - UrnSammIoCatenaxSerialPart101KeyValueList object = localIdentifiers.stream() + private String getValue(Set localIdentifiers, String key) { + UrnSammIoCatenaxSerialPart300KeyValueList object = localIdentifiers.stream() .filter(localId -> localId.getKey().equalsIgnoreCase(key)) .findFirst() .orElseGet(() -> null); diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/relationship/Aspect.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/relationship/Aspect.java index c63c1d0118..e82b37d4a3 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/relationship/Aspect.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/relationship/Aspect.java @@ -25,16 +25,15 @@ import java.util.Objects; public enum Aspect { - BATCH("urn:samm:io.catenax.batch:2.0.0#Batch"), - SERIAL_PART("urn:bamm:io.catenax.serial_part:1.0.1#SerialPart"), - // TODO: update to urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt, when its available in the semantic hub - SINGLE_LEVEL_BOM_AS_BUILT("urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt"), // We are currently not able to use the 2.0.0 version, because this version is not available in the semantic hub https://github.com/eclipse-tractusx/sldt-semantic-models/tree/main/io.catenax.single_level_bom_as_built and IRS is not able to map the 2.0.0 version. We have to use the full urn because of https://github.com/eclipse-tractusx/traceability-foss/issues/823 (since irs 4.8.0) - SINGLE_LEVEL_USAGE_AS_BUILT("urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt"), - SINGLE_LEVEL_BOM_AS_PLANNED("urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned"), - PART_SITE_INFORMATION_AS_PLANNED("urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned"), - PART_AS_PLANNED("urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned"), - JUST_IN_SEQUENCE_PART("urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart"), - TRACTION_BATTERY_CODE("urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode"); + BATCH("urn:samm:io.catenax.batch:3.0.0#Batch"), + SERIAL_PART("urn:samm:io.catenax.serial_part:3.0.0#SerialPart"), + SINGLE_LEVEL_BOM_AS_BUILT("urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt"), + SINGLE_LEVEL_USAGE_AS_BUILT("urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt"), + SINGLE_LEVEL_BOM_AS_PLANNED("urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned"), + PART_SITE_INFORMATION_AS_PLANNED("urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned"), + PART_AS_PLANNED("urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned"), + JUST_IN_SEQUENCE_PART("urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart"), + TRACTION_BATTERY_CODE("urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode"); private final String aspectName; diff --git a/tx-backend/src/main/resources/data/irs_assets_as_planned_v4.json b/tx-backend/src/main/resources/data/irs_assets_as_planned_v4.json index f9a5c1b7bf..178fd3a16f 100644 --- a/tx-backend/src/main/resources/data/irs_assets_as_planned_v4.json +++ b/tx-backend/src/main/resources/data/irs_assets_as_planned_v4.json @@ -102,7 +102,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "value" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "type" : "Submodel" } ], @@ -132,7 +132,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "value" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "type" : "Submodel" } ], @@ -188,7 +188,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "value" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "type" : "Submodel" } ], @@ -218,7 +218,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "value" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "type" : "Submodel" } ], @@ -274,7 +274,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "value" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "type" : "Submodel" } ], @@ -304,7 +304,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "value" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "type" : "Submodel" } ], @@ -334,7 +334,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "value" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "type" : "Submodel" } ], @@ -364,7 +364,7 @@ "submodels" : [ { "identification" : "urn:uuid:9a1cf54a-56e1-4d20-9931-5479db0ce6f8", - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -375,12 +375,20 @@ "manufacturerPartId" : "ZX-55", "classification" : "product", "nameAtManufacturer" : "Vehicle Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { "identification" : "urn:uuid:6507e9fc-2544-4ce1-a41c-b0aa57d7b30a", - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", "sites" : [ @@ -395,7 +403,7 @@ }, { "identification" : "urn:uuid:81d16457-d9af-4b4d-a124-84d3ae17d951", - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -406,12 +414,20 @@ "manufacturerPartId" : "ZX-55", "classification" : "product", "nameAtManufacturer" : "Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { "identification" : "urn:uuid:3331cecf-8183-4966-aa4c-d99d61d20c0b", - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ diff --git a/tx-backend/src/main/resources/data/irs_assets_tractionbatterycode.json b/tx-backend/src/main/resources/data/irs_assets_tractionbatterycode.json index bd95bd5de9..f8c2e29809 100644 --- a/tx-backend/src/main/resources/data/irs_assets_tractionbatterycode.json +++ b/tx-backend/src/main/resources/data/irs_assets_tractionbatterycode.json @@ -64,7 +64,7 @@ "identification" : "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0218", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -88,7 +88,7 @@ "identification" : "urn:uuid:50de024d-60b3-49cd-ac74-37d81ce4bb7b", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -113,17 +113,13 @@ "submodels": [ { "identification": "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0218", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { "value": "BPNL00000003AYRE", "key": "manufacturerId" }, - { - "value": "KR-09", - "key": "manufacturerPartId" - }, { "value": "OMA-TGFAYUHXFLHHUQQMPLTE", "key": "partInstanceId" @@ -141,7 +137,13 @@ "partTypeInformation": { "manufacturerPartId": "KR-09", "customerPartId": "KR-09", - "classification": "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer": "a/dev Door Key", "nameAtCustomer": "Door Key" } @@ -149,7 +151,7 @@ }, { "identification": "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0217", - "aspectType": "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "aspectType": "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "payload": { "tractionBatteryCode": "X12MCPM27KLPCLX2M2382320", "subcomponents": [ diff --git a/tx-backend/src/main/resources/data/irs_assets_v4.json b/tx-backend/src/main/resources/data/irs_assets_v4.json index 739a761d47..0e5f3d8008 100644 --- a/tx-backend/src/main/resources/data/irs_assets_v4.json +++ b/tx-backend/src/main/resources/data/irs_assets_v4.json @@ -269,7 +269,7 @@ "identification" : "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0218", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -293,7 +293,7 @@ "identification" : "urn:uuid:50de024d-60b3-49cd-ac74-37d81ce4bb7b", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -348,7 +348,7 @@ "identification" : "urn:uuid:ff82a14d-8730-488f-b965-89eeb2010991", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -372,7 +372,7 @@ "identification" : "urn:uuid:25d34082-c07f-4850-969a-6c923abea43a", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -427,7 +427,7 @@ "identification" : "urn:uuid:82b89a4c-0e98-499e-ba21-c2a5aa38d70b", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -451,7 +451,7 @@ "identification" : "urn:uuid:e605d785-601f-4249-bd99-6a795ae489c6", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -506,7 +506,7 @@ "identification" : "urn:uuid:34a455a5-20aa-4039-af7e-e9b3420077fc", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -530,7 +530,7 @@ "identification" : "urn:uuid:20c37755-2cb1-4eaf-be09-b44c9b9031fe", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -585,7 +585,7 @@ "identification" : "urn:uuid:2f11ec59-b8e8-4494-b3d8-0bbb7d1517b5", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -640,7 +640,7 @@ "identification" : "urn:uuid:985ae9ac-e810-4b69-b3c1-23dfb1f057b6", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -695,7 +695,7 @@ "identification" : "urn:uuid:bc51058d-fc37-42e8-b7ce-3be50754124f", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -750,7 +750,7 @@ "identification" : "urn:uuid:6901be6e-88e0-4754-b53b-4ccc9942cdbe", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -774,7 +774,7 @@ "identification" : "urn:uuid:cbc837f1-d369-4ff8-9539-42e7bd249204", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -829,7 +829,7 @@ "identification" : "urn:uuid:aaebab0d-fe28-4d2b-af8f-c7680b62342f", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -853,7 +853,7 @@ "identification" : "urn:uuid:162535e9-7baa-47b4-b778-17bc45427546", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -908,7 +908,7 @@ "identification" : "urn:uuid:9aeaac21-7d98-44cc-813c-8ba8a6618564", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -932,7 +932,7 @@ "identification" : "urn:uuid:0502c185-0a58-4f01-81c3-b54260e820ae", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -987,7 +987,7 @@ "identification" : "urn:uuid:8f2fb5a9-eae9-4dd5-8fb8-02d2e10cc4e7", "semanticId" : { "value" : [ - "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" ] }, "endpoints" : [ @@ -1011,7 +1011,7 @@ "identification" : "urn:uuid:326acfa7-07d3-4ad0-bc91-67330c56071e", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1066,7 +1066,7 @@ "identification" : "urn:uuid:140e0654-765e-4136-ba36-7b1d85832377", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1121,7 +1121,7 @@ "identification" : "urn:uuid:263e254d-8b7c-4911-b46a-d8bef28970f7", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1146,17 +1146,13 @@ "submodels" : [ { "identification" : "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0218", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AYRE", "key" : "manufacturerId" }, - { - "value" : "KR-09", - "key" : "manufacturerPartId" - }, { "value" : "OMA-TGFAYUHXFLHHUQQMPLTE", "key" : "partInstanceId" @@ -1173,24 +1169,27 @@ "catenaXId" : "urn:uuid:d387fa8e-603c-42bd-98c3-4d87fef8d2bb", "partTypeInformation" : { "manufacturerPartID" : "KR-09", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Vehicle Hybrid" } } }, { "identification" : "urn:uuid:50de024d-60b3-49cd-ac74-37d81ce4bb7b", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:d387fa8e-603c-42bd-98c3-4d87fef8d2bb", "childParts" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : { - "datatypeURI" : "urn:bamm:io.openmanufacturing:meta-model:1.0.0#piece", - "lexicalValue" : "piece" - } + "value" : 2.5, + "unit" : "unit:litre" }, "lifecycleContext" : "AsBuilt", "assembledOn" : "2022-02-03T14:48:54.709Z", @@ -1228,17 +1227,13 @@ }, { "identification" : "urn:uuid:ff82a14d-8730-488f-b965-89eeb2010991", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B5MJ", "key" : "manufacturerId" }, - { - "value" : "83238F4-36", - "key" : "manufacturerPartId" - }, { "value" : "NO-354879221683258717359442", "key" : "partInstanceId" @@ -1252,7 +1247,13 @@ "partTypeInformation" : { "manufacturerPartID" : "83238F4-36", "customerPartId" : "83238F4-36", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "ECU", "nameAtCustomer" : "ECU" } @@ -1260,17 +1261,14 @@ }, { "identification" : "urn:uuid:25d34082-c07f-4850-969a-6c923abea43a", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:6dafbcec-2fce-4cbb-a5a9-b3b32aa5cffc", "childParts" : [ { "quantity" : { - "quantityNumber" : "0.3301", - "measurementUnit" : { - "datatypeURI" : "urn:bamm:io.openmanufacturing:meta-model:1.0.0#kilogram", - "lexicalValue" : "kilogram" - } + "value" : 2.5, + "unit" : "unit:litre" }, "lifecycleContext" : "AsBuilt", "assembledOn" : "2022-02-03T14:48:54.709Z", @@ -1308,17 +1306,13 @@ }, { "identification" : "urn:uuid:82b89a4c-0e98-499e-ba21-c2a5aa38d70b", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B2OM", "key" : "manufacturerId" }, - { - "value" : "1O222E8-43", - "key" : "manufacturerPartId" - }, { "value" : "NO-733616531805581150452604", "key" : "partInstanceId" @@ -1332,7 +1326,13 @@ "partTypeInformation" : { "manufacturerPartID" : "1O222E8-43", "customerPartId" : "1O222E8-43", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Transmission", "nameAtCustomer" : "Transmission" } @@ -1340,17 +1340,14 @@ }, { "identification" : "urn:uuid:e605d785-601f-4249-bd99-6a795ae489c6", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7fa65f10-9dc1-49fe-818a-09c7313a4562", "childParts" : [ { "quantity" : { - "quantityNumber" : "0.2014", - "measurementUnit" : { - "datatypeURI" : "urn:bamm:io.openmanufacturing:meta-model:1.0.0#kilogram", - "lexicalValue" : "kilogram" - } + "value" : 2.5, + "unit" : "unit:litre" }, "lifecycleContext" : "AsBuilt", "assembledOn" : "2022-02-03T14:48:54.709Z", @@ -1388,17 +1385,14 @@ }, { "identification" : "urn:uuid:34a455a5-20aa-4039-af7e-e9b3420077fc", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:587cfb38-7149-4f06-b1e0-0e9b6e98be2a", "childParts" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : { - "datatypeURI" : "urn:bamm:io.openmanufacturing:meta-model:1.0.0#piece", - "lexicalValue" : "piece" - } + "value" : 2.5, + "unit" : "unit:litre" }, "lifecycleContext" : "AsBuilt", "assembledOn" : "2022-02-03T14:48:54.709Z", @@ -1410,17 +1404,13 @@ }, { "identification" : "urn:uuid:20c37755-2cb1-4eaf-be09-b44c9b9031fe", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AYRE", "key" : "manufacturerId" }, - { - "value" : "95657362-83", - "key" : "manufacturerPartId" - }, { "value" : "NO-369202025208677072946181", "key" : "partInstanceId" @@ -1434,7 +1424,13 @@ "partTypeInformation" : { "manufacturerPartID" : "95657362-83", "customerPartId" : "95657362-83", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Battery", "nameAtCustomer" : "Battery" } @@ -1442,17 +1438,13 @@ }, { "identification" : "urn:uuid:2f11ec59-b8e8-4494-b3d8-0bbb7d1517b5", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B0Q0", "key" : "manufacturerId" }, - { - "value" : "55269I8-71", - "key" : "manufacturerPartId" - }, { "value" : "NO-340460948192054950891951", "key" : "partInstanceId" @@ -1466,7 +1458,13 @@ "partTypeInformation" : { "manufacturerPartID" : "55269I8-71", "customerPartId" : "55269I8-71", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Engineering Plastics", "nameAtCustomer" : "Engineering Plastics" } @@ -1474,17 +1472,13 @@ }, { "identification" : "urn:uuid:985ae9ac-e810-4b69-b3c1-23dfb1f057b6", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "91471Z0-84", - "key" : "manufacturerPartId" - }, { "value" : "NO-182660425740222655242543", "key" : "partInstanceId" @@ -1498,7 +1492,13 @@ "partTypeInformation" : { "manufacturerPartID" : "91471Z0-84", "customerPartId" : "91471Z0-84", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Glue", "nameAtCustomer" : "Glue" } @@ -1506,17 +1506,13 @@ }, { "identification" : "urn:uuid:bc51058d-fc37-42e8-b7ce-3be50754124f", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B0Q0", "key" : "manufacturerId" }, - { - "value" : "01697F7-65", - "key" : "manufacturerPartId" - }, { "value" : "NO-947880349904267845729159", "key" : "partInstanceId" @@ -1530,7 +1526,13 @@ "partTypeInformation" : { "manufacturerPartID" : "01697F7-65", "customerPartId" : "01697F7-65", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Engineering Plastics", "nameAtCustomer" : "Engineering Plastics" } @@ -1538,17 +1540,14 @@ }, { "identification" : "urn:uuid:6901be6e-88e0-4754-b53b-4ccc9942cdbe", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1ae94880-e6b0-4bf3-ab74-8148b63c0640", "childParts" : [ { "quantity" : { - "quantityNumber" : "0.1908", - "measurementUnit" : { - "datatypeURI" : "urn:bamm:io.openmanufacturing:meta-model:1.0.0#kilogram", - "lexicalValue" : "kilogram" - } + "value" : 2.5, + "unit" : "unit:litre" }, "lifecycleContext" : "AsBuilt", "assembledOn" : "2022-02-03T14:48:54.709Z", @@ -1560,17 +1559,13 @@ }, { "identification" : "urn:uuid:cbc837f1-d369-4ff8-9539-42e7bd249204", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B3NX", "key" : "manufacturerId" }, - { - "value" : "65847F9-69", - "key" : "manufacturerPartId" - }, { "value" : "NO-628797496367807957077265", "key" : "partInstanceId" @@ -1584,7 +1579,13 @@ "partTypeInformation" : { "manufacturerPartID" : "65847F9-69", "customerPartId" : "65847F9-69", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Sensor", "nameAtCustomer" : "Sensor" } @@ -1592,25 +1593,32 @@ }, { "identification" : "urn:uuid:aaebab0d-fe28-4d2b-af8f-c7680b62342f", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:0ce83951-bc18-4e8f-892d-48bad4eb67ef", - "childParts" : [] + "childParts" : [ + { + "quantity" : { + "value" : 2.5, + "unit" : "unit:litre" + }, + "lifecycleContext" : "AsBuilt", + "assembledOn" : "2022-02-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "childCatenaXId" : "urn:uuid:186359fb-4584-40e4-a59b-ed842d3d80d9" + } + ] } }, { "identification" : "urn:uuid:162535e9-7baa-47b4-b778-17bc45427546", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "31008B0-49", - "key" : "manufacturerPartId" - }, { "value" : "NO-825423826078402432465664", "key" : "partInstanceId" @@ -1624,7 +1632,13 @@ "partTypeInformation" : { "manufacturerPartID" : "31008B0-49", "customerPartId" : "31008B0-49", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Glue", "nameAtCustomer" : "Glue" } @@ -1632,17 +1646,13 @@ }, { "identification" : "urn:uuid:9aeaac21-7d98-44cc-813c-8ba8a6618564", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B3NX", "key" : "manufacturerId" }, - { - "value" : "37754B7-76", - "key" : "manufacturerPartId" - }, { "value" : "NO-159040131155901488695376", "key" : "partInstanceId" @@ -1656,7 +1666,13 @@ "partTypeInformation" : { "manufacturerPartID" : "37754B7-76", "customerPartId" : "37754B7-76", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Sensor", "nameAtCustomer" : "Sensor" } @@ -1664,17 +1680,14 @@ }, { "identification" : "urn:uuid:0502c185-0a58-4f01-81c3-b54260e820ae", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:8eea5f45-0823-48ce-a4fc-c3bf1cdfa4c2", "childParts" : [ { "quantity" : { - "quantityNumber" : "0.1908", - "measurementUnit" : { - "datatypeURI" : "urn:bamm:io.openmanufacturing:meta-model:1.0.0#kilogram", - "lexicalValue" : "kilogram" - } + "value" : 2.5, + "unit" : "unit:litre" }, "lifecycleContext" : "AsBuilt", "assembledOn" : "2022-02-03T14:48:54.709Z", @@ -1686,25 +1699,32 @@ }, { "identification" : "urn:uuid:8f2fb5a9-eae9-4dd5-8fb8-02d2e10cc4e7", - "aspectType" : "urn:bamm:com.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:fe99da3d-b0de-4e80-81da-882aebcca978", - "childParts" : [] + "childParts" : [ + { + "quantity" : { + "value" : 2.5, + "unit" : "unit:litre" + }, + "lifecycleContext" : "AsBuilt", + "assembledOn" : "2022-02-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "childCatenaXId" : "urn:uuid:f7cf62fe-9e25-472b-9148-66ebcc291f31" + } + ] } }, { "identification" : "urn:uuid:326acfa7-07d3-4ad0-bc91-67330c56071e", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AYRE", "key" : "manufacturerId" }, - { - "value" : "8840838-04", - "key" : "manufacturerPartId" - }, { "value" : "NO-397646649734958738335866", "key" : "partInstanceId" @@ -1718,7 +1738,13 @@ "partTypeInformation" : { "manufacturerPartID" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } @@ -1726,17 +1752,13 @@ }, { "identification" : "urn:uuid:140e0654-765e-4136-ba36-7b1d85832377", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B0Q0", "key" : "manufacturerId" }, - { - "value" : "74268H5-13", - "key" : "manufacturerPartId" - }, { "value" : "NO-565359302028822441908953", "key" : "partInstanceId" @@ -1750,7 +1772,13 @@ "partTypeInformation" : { "manufacturerPartID" : "74268H5-13", "customerPartId" : "74268H5-13", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Engineering Plastics", "nameAtCustomer" : "Engineering Plastics" } @@ -1758,17 +1786,13 @@ }, { "identification" : "urn:uuid:263e254d-8b7c-4911-b46a-d8bef28970f7", - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003B0Q0", "key" : "manufacturerId" }, - { - "value" : "98801V5-17", - "key" : "manufacturerPartId" - }, { "value" : "NO-056604022229087145032390", "key" : "partInstanceId" @@ -1782,7 +1806,13 @@ "partTypeInformation" : { "manufacturerPartID" : "98801V5-17", "customerPartId" : "98801V5-17", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "NTIER Product", "nameAtCustomer" : "NTIER Product" } diff --git a/tx-backend/src/main/resources/schema/semantichub/Batch_2.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/Batch_2.0.0-schema.json deleted file mode 100644 index 42e3798f0e..0000000000 --- a/tx-backend/src/main/resources/schema/semantichub/Batch_2.0.0-schema.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema#", - "description" : "A batch is a quantity of (semi-) finished products or (raw) material product that have been produced under the same circumstances (e.g. same production location), as specified groups or amounts, within a certain time frame. Every batch can differ in the number or amount of products. Different batches can have varied specifications, e.g., different colors. A batch is identified via a Batch ID.", - "type" : "object", - "components" : { - "schemas" : { - "urn_samm_io.catenax.batch_2.0.0_CatenaXIdTrait" : { - "type" : "string", - "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", - "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" - }, - "urn_samm_io.catenax.batch_2.0.0_KeyTrait" : { - "type" : "string", - "description" : "Constraint that ensures that the predefined keys are used.", - "pattern" : "^(manufacturerId|batchId)$" - }, - "urn_samm_io.catenax.batch_2.0.0_ValueCharacteristic" : { - "type" : "string", - "description" : "The value of an identifier." - }, - "urn_samm_io.catenax.batch_2.0.0_KeyValueList" : { - "description" : "A list of key value pairs for local identifiers, which are composed of a key and a corresponding value.", - "type" : "object", - "properties" : { - "key" : { - "description" : "The key of a local identifier.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_KeyTrait" - }, - "value" : { - "description" : "The value of an identifier.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_ValueCharacteristic" - } - }, - "required" : [ "key", "value" ] - }, - "urn_samm_io.catenax.batch_2.0.0_LocalIdentifierCharacteristic" : { - "description" : "A batch may have multiple attributes, which uniquely identify that batch in a specific dataspace (e.g. the manufacturer`s dataspace)", - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_KeyValueList" - }, - "uniqueItems" : true - }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" : { - "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." - }, - "urn_samm_io.catenax.batch_2.0.0_ProductionCountryCodeTrait" : { - "type" : "string", - "description" : "Regular Expression that ensures a three-letter code", - "pattern" : "^[A-Z]{3}$" - }, - "urn_samm_io.catenax.batch_2.0.0_ManufacturingCharacteristic" : { - "description" : "Characteristic to describe manufacturing related data", - "type" : "object", - "properties" : { - "date" : { - "description" : "Timestamp of the manufacturing date as the final step in production process (e.g. final quality check, ready-for-shipment event)", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "country" : { - "description" : "Country code where the part was manufactured", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_ProductionCountryCodeTrait" - } - }, - "required" : [ "date" ] - }, - "urn_samm_io.catenax.batch_2.0.0_PartIdCharacteristic" : { - "type" : "string", - "description" : "The part ID is a multi-character string, ususally assigned by an ERP system" - }, - "urn_samm_io.catenax.batch_2.0.0_PartNameCharacteristic" : { - "type" : "string", - "description" : "Part Name in string format from the respective system in the value chain" - }, - "urn_samm_io.catenax.batch_2.0.0_ClassificationCharacteristic" : { - "type" : "string", - "description" : "A part type must be placed into one of the following classes: 'component', 'product', 'software', 'assembly', 'tool', or 'raw material'.", - "enum" : [ "product", "raw material", "software", "assembly", "tool", "component" ] - }, - "urn_samm_io.catenax.batch_2.0.0_PartTypeInformationCharacteristic" : { - "description" : "The characteristics of the part type", - "type" : "object", - "properties" : { - "manufacturerPartId" : { - "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part (as designed) in the manufacturer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number or batch number.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_PartIdCharacteristic" - }, - "nameAtManufacturer" : { - "description" : "Name of the part as assigned by the manufacturer", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_PartNameCharacteristic" - }, - "classification" : { - "description" : "The classification of the part type according to STEP standard definition", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_ClassificationCharacteristic" - } - }, - "required" : [ "manufacturerPartId", "nameAtManufacturer", "classification" ] - } - } - }, - "properties" : { - "catenaXId" : { - "description" : "The fully anonymous Catena-X ID of the batch, valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_CatenaXIdTrait" - }, - "localIdentifiers" : { - "description" : "A local identifier enables identification of a part in a specific dataspace, but is not unique in Catena-X dataspace. Multiple local identifiers may exist.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_LocalIdentifierCharacteristic" - }, - "manufacturingInformation" : { - "description" : "Information from manufacturing process, such as manufacturing date and manufacturing country", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_ManufacturingCharacteristic" - }, - "partTypeInformation" : { - "description" : "The part type of which the batch has been instantiated of.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_2.0.0_PartTypeInformationCharacteristic" - } - }, - "required" : [ "catenaXId", "localIdentifiers", "manufacturingInformation", "partTypeInformation" ] -} diff --git a/tx-backend/src/main/resources/schema/semantichub/Batch_3.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/Batch_3.0.0-schema.json new file mode 100644 index 0000000000..0bc9a123cf --- /dev/null +++ b/tx-backend/src/main/resources/schema/semantichub/Batch_3.0.0-schema.json @@ -0,0 +1,193 @@ +{ + "$schema" : "http://json-schema.org/draft-04/schema", + "description" : "A batch is a quantity of(semi-)finished products or(raw)material product that have been produced under the same circumstances(e.g. same production location), as specified groups or amounts, within a certain time frame. Every batch can differ in the number or amount of products. Different batches can have varied specifications, e.g., different colors. A batch is identified via a Batch ID.", + "type" : "object", + "components" : { + "schemas" : { + "urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", + "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" + }, + "urn_samm_io.catenax.batch_3.0.0_KeyTrait" : { + "type" : "string", + "description" : "Constraint that ensures that the predefined keys are used.", + "pattern" : "^(manufacturerId|batchId|customKey:\\w+)$" + }, + "urn_samm_io.catenax.batch_3.0.0_ValueCharacteristic" : { + "type" : "string", + "description" : "The value of an identifier." + }, + "urn_samm_io.catenax.batch_3.0.0_KeyValueList" : { + "description" : "A list of key value pairs for local identifiers, which are composed of a key and a corresponding value.", + "type" : "object", + "properties" : { + "key" : { + "description" : "The key of a local identifier.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_KeyTrait" + }, + "value" : { + "description" : "The value of an identifier.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_ValueCharacteristic" + } + }, + "required" : [ "key", "value" ] + }, + "urn_samm_io.catenax.batch_3.0.0_LocalIdentifierCharacteristic" : { + "description" : "A batch may have multiple attributes, which uniquely identify that batch in a specific dataspace(e.g. the manufacturer`s dataspace)", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_KeyValueList" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.batch_3.0.0_DateTrait" : { + "type" : "string", + "description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", + "pattern" : "^(?:[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:[.][0-9]+)?Z|[0-9]{4}-[0-9]{2}-[0-9]{2}(?:T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:[.][0-9]+)?(?:Z|[+-][0-9]{2}:[0-9]{2}))?)$" + }, + "urn_samm_io.catenax.batch_3.0.0_ProductionCountryCodeTrait" : { + "type" : "string", + "description" : "Regular Expression that ensures a three-letter code", + "pattern" : "^[A-Z]{3}$" + }, + "urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnsTrait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the BPNS is composed of prefix 'BPNS', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNS[a-zA-Z0-9]{12}$" + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_FunctionCharacteristic" : { + "type" : "string", + "description" : "Describes the characteristics of the function for a site related to the respective part.", + "enum" : [ "production", "warehouse", "spare part warehouse" ] + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesEntity" : { + "description" : "Describes the ID and function of a site for the associated part in the AsBuilt context(e.g. SerialPart, Batch, jIS).", + "type" : "object", + "properties" : { + "catenaXsiteId" : { + "description" : "The identifier of the site according to Catena-X BPDM. The catenaXsiteId must be a valid Catena-X BPN. The BPN is a unique, unchangeable identifier for Business Partners / company locations from foundation to closure, regardless of the different business relationships / structures between or within the Business Partners or company locations.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnsTrait" + }, + "function" : { + "description" : "The function of the site in relation to the part(i.e. the activity within the value chain of the part that is performed at the site)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_FunctionCharacteristic" + } + }, + "required" : [ "catenaXsiteId", "function" ] + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesCharacteristic" : { + "description" : "Sites Characteristic", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesEntity" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.batch_3.0.0_ManufacturingCharacteristic" : { + "description" : "Characteristic to describe manufacturing related data", + "type" : "object", + "properties" : { + "date" : { + "description" : "Timestamp of the manufacturing date as the final step in production process(e.g. final quality check, ready-for-shipment event)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_DateTrait" + }, + "country" : { + "description" : "Country code where the part was manufactured", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_ProductionCountryCodeTrait" + }, + "sites" : { + "description" : "A site is a delimited geographical area where a legal entity does business(geographical address with geo coordinates).A site always has a primary physical address. It is possible that further physical addresses are specified for the site. P.O. box details are only possible in addition to the physical address. A site has a 1:n relation to addresses, means at least 1 address is necessary and multiple addresses are possible.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesCharacteristic" + } + }, + "required" : [ "date" ] + }, + "urn_samm_io.catenax.batch_3.0.0_PartIdCharacteristic" : { + "type" : "string", + "description" : "The part ID is a multi-character string, usually assigned by an ERP system" + }, + "urn_samm_io.catenax.batch_3.0.0_PartNameCharacteristic" : { + "type" : "string", + "description" : "Part Name in string format from the respective system in the value chain" + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationStandardCharacteristic" : { + "type" : "string", + "description" : "Identified classification standards that align to the Catena-X needs." + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationIDCharacteristic" : { + "type" : "string", + "description" : "It can be numeric or a string, depending on the chosen classification standard." + }, + "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" : { + "type" : "string", + "description" : "Describes a Property which contains plain text. This is intended exclusively for human readable strings, not for identifiers, measurement values, etc." + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationEntity" : { + "description" : "Encapsulates data related to the classification of the part.", + "type" : "object", + "properties" : { + "classificationStandard" : { + "description" : "Identified classification standards that align to the Catena-X needs.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationStandardCharacteristic" + }, + "classificationID" : { + "description" : "The classification ID of the part type according to the corresponding standard definition mentioned in the key value pair.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationIDCharacteristic" + }, + "classificationDescription" : { + "description" : "Optional property describing the classification standard.", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" + } + }, + "required" : [ "classificationStandard", "classificationID" ] + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationCharacteristic" : { + "description" : "Classification characteristic enabling a set of further properties.", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationEntity" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.batch_3.0.0_PartTypeInformationCharacteristic" : { + "description" : "The characteristics of the part type", + "type" : "object", + "properties" : { + "manufacturerPartId" : { + "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part(as designed)in the manufacturer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number or batch number.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_PartIdCharacteristic" + }, + "nameAtManufacturer" : { + "description" : "Name of the part as assigned by the manufacturer", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_PartNameCharacteristic" + }, + "partClassification" : { + "description" : "Property describing the classification of a part.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationCharacteristic" + } + }, + "required" : [ "manufacturerPartId", "nameAtManufacturer" ] + } + } + }, + "properties" : { + "catenaXId" : { + "description" : "The fully anonymous Catena-X ID of the batch, valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + }, + "localIdentifiers" : { + "description" : "A local identifier enables identification of a part in a specific dataspace, but is not unique in Catena-X dataspace. Multiple local identifiers may exist.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_LocalIdentifierCharacteristic" + }, + "manufacturingInformation" : { + "description" : "Information from manufacturing process, such as manufacturing date and manufacturing country", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_ManufacturingCharacteristic" + }, + "partTypeInformation" : { + "description" : "The part type of which the batch has been instantiated of.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.batch_3.0.0_PartTypeInformationCharacteristic" + } + }, + "required" : [ "catenaXId", "localIdentifiers", "manufacturingInformation", "partTypeInformation" ] +} diff --git a/tx-backend/src/main/resources/schema/semantichub/JustInSequencePart_1.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/JustInSequencePart_1.0.0-schema.json deleted file mode 100644 index 71efe7b264..0000000000 --- a/tx-backend/src/main/resources/schema/semantichub/JustInSequencePart_1.0.0-schema.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema", - "description" : "A just-in-sequence part is an instantiation of a (design-) part, where the particular instantiation can be uniquely identified by means of a combination of several IDs related to a just-in-sequence process.", - "type" : "object", - "components" : { - "schemas" : { - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_CatenaXIdTrait" : { - "type" : "string", - "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", - "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_KeyCharacteristic" : { - "type" : "string", - "description" : "The key characteristic of a local identifier. A specific subset of keys is predefined, but additionally any other custom key is allowed. Predefined keys (to be used when applicable):\n- \"manufacturerId\" - The Business Partner Number (BPN) of the manufacturer. Value: BPN-Nummer\n- \"jisNumber\" - a number that is used to identify the call-off that can be assumed unique within the specific just-in-sequence process. This is typically not the sequence number, but the call-off number.\n- \"jisCallDate\" the date of the just-in-sequence call-off as stated on the call-off document itself. Value: following the ISO 8601 format as follows: \"YYYY-MM-DD\" or \"YYYY-MM-DDThh:mm:ss\" or \"YYYY-MM-DDThh:mm:ss±hh:mm\"\n- \"parentOrderNumber\" - a number identifying the just-in-sequence- part's destination parent part. The parent part is typically known upfront to the supplier for just-in-sequence parts. This might be a temporary unique identifier.\nNot all keys might be relevant for all just-in-sequence parts. It must be ensured that a combination of these identifiers and the optional manufacturer part ID or customer part ID leads to a unique just-in-sequence part." - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ValueCharacteristic" : { - "type" : "string", - "description" : "The value of an identifier." - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_KeyValueList" : { - "description" : "A list of key value pairs for local identifiers, which are composed of a key and a corresponding value.", - "type" : "object", - "properties" : { - "key" : { - "description" : "The key of a local identifier. ", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_KeyCharacteristic" - }, - "value" : { - "description" : "The value of an identifier.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ValueCharacteristic" - } - }, - "required" : [ "key", "value" ] - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_LocalIdentifierCharacteristic" : { - "description" : "A single just-in-sequence part may have multiple attributes, that uniquely identify a that part in a specific dataspace (e.g. the manufacturer`s dataspace)", - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_KeyValueList" - }, - "uniqueItems" : true - }, - "urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" : { - "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ProductionCountryCodeTrait" : { - "type" : "string", - "description" : "Regular Expression that ensures a three-letter code ", - "pattern" : "^[A-Z][A-Z][A-Z]$" - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ManufacturingCharacteristic" : { - "description" : "Characteristic to describe manufacturing related data", - "type" : "object", - "properties" : { - "date" : { - "description" : "Timestamp of the manufacturing date as the final step in production process (e.g. final quality check, ready-for-shipment event)", - "$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" - }, - "country" : { - "description" : "Country code where the part was manufactured", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ProductionCountryCodeTrait" - } - }, - "required" : [ "date" ] - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartIdCharacteristic" : { - "type" : "string", - "description" : "The part ID is a multi-character string, usually assigned by an ERP system. Alternatively the ID of the part family can be used if no specific part ID exists." - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartNameCharacteristic" : { - "type" : "string", - "description" : "Part Name in string format from the respective system in the value chain" - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ClassificationCharacteristic" : { - "type" : "string", - "description" : "A part type must be placed into one of the following classes: 'component', 'product', 'software', 'assembly', 'tool', or 'raw material'.", - "enum" : [ "product", "raw material", "software", "assembly", "tool", "component" ] - }, - "urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartTypeInformationCharacteristic" : { - "description" : "The characteristics of the part type", - "type" : "object", - "properties" : { - "manufacturerPartId" : { - "description" : "Part ID as assigned by the manufacturer of the part. The manufacturer Part ID identifies the part (as designed) in the manufacturer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number or any other instance IDs. \nIf no specific part ID exists a part family ID may be substituted for it.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartIdCharacteristic" - }, - "customerPartId" : { - "description" : "Part ID as assigned by the customer of the part. The customer Part ID identifies the part (as designed) in the customer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number or any other instance IDs. \nIf no specific part ID exists a part family ID may be substituted for it.\n", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartIdCharacteristic" - }, - "nameAtManufacturer" : { - "description" : "Name of the part as assigned by the manufacturer", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartNameCharacteristic" - }, - "nameAtCustomer" : { - "description" : "Name of the part as assigned by the customer", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartNameCharacteristic" - }, - "classification" : { - "description" : "The classification of the part type according to STEP standard definition", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ClassificationCharacteristic" - } - }, - "required" : [ "nameAtManufacturer", "classification" ] - } - } - }, - "properties" : { - "catenaXId" : { - "description" : "The fully anonymous Catena-X ID of the just-in-sequence part, valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_CatenaXIdTrait" - }, - "localIdentifiers" : { - "description" : "A local identifier enables identification of a part in a specific dataspace, but is not unique in Catena-X dataspace. Multiple local identifiers may exist.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_LocalIdentifierCharacteristic" - }, - "manufacturingInformation" : { - "description" : "Information from manufacturing process, such as manufacturing date and manufacturing country", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_ManufacturingCharacteristic" - }, - "partTypeInformation" : { - "description" : "The part type or part family from which the just-in-sequence part has been instantiated.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.just_in_sequence_part_1.0.0_PartTypeInformationCharacteristic" - } - }, - "required" : [ "catenaXId", "localIdentifiers", "manufacturingInformation", "partTypeInformation" ] -} \ No newline at end of file diff --git a/tx-backend/src/main/resources/schema/semantichub/JustInSequencePart_3.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/JustInSequencePart_3.0.0-schema.json new file mode 100644 index 0000000000..c246dba14d --- /dev/null +++ b/tx-backend/src/main/resources/schema/semantichub/JustInSequencePart_3.0.0-schema.json @@ -0,0 +1,201 @@ +{ + "$schema" : "http://json-schema.org/draft-04/schema", + "description" : "A just-in-sequence part is an instantiation of a (design-)part, where the particular instantiation can be uniquely identified by means of a combination of several IDs related to a just-in-sequence process.", + "type" : "object", + "components" : { + "schemas" : { + "urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", + "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_KeyTrait" : { + "type" : "string", + "description" : "Constraint that ensures that the predefined keys are used.", + "pattern" : "^(manufacturerId|jisNumber|jisCallDate|parentOrderNumber|customKey:\\w+)$" + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_ValueCharacteristic" : { + "type" : "string", + "description" : "The value of an identifier." + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_KeyValueList" : { + "description" : "A list of key value pairs for local identifiers, which are composed of a key and a corresponding value.", + "type" : "object", + "properties" : { + "key" : { + "description" : "The key of a local identifier. ", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_KeyTrait" + }, + "value" : { + "description" : "The value of an identifier.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_ValueCharacteristic" + } + }, + "required" : [ "key", "value" ] + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_LocalIdentifierCharacteristic" : { + "description" : "A single just-in-sequence part may have multiple attributes, that uniquely identify a that part in a specific dataspace (e.g. the manufacturer`s dataspace)", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_KeyValueList" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_DateTimeTrait" : { + "type" : "string", + "description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", + "pattern" : "^(?:[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:[.][0-9]+)?Z|[0-9]{4}-[0-9]{2}-[0-9]{2}(?:T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:[.][0-9]+)?(?:Z|[+-][0-9]{2}:[0-9]{2}))?)$" + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_ProductionCountryCodeTrait" : { + "type" : "string", + "description" : "Regular Expression that ensures a three-letter code ", + "pattern" : "^[A-Z][A-Z][A-Z]$" + }, + "urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnsTrait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the BPNS is composed of prefix 'BPNS', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNS[a-zA-Z0-9]{12}$" + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_FunctionCharacteristic" : { + "type" : "string", + "description" : "Describes the characteristics of the function for a site related to the respective part.", + "enum" : [ "production", "warehouse", "spare part warehouse" ] + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesEntity" : { + "description" : "Describes the ID and function of a site for the associated part in the AsBuilt context(e.g. SerialPart, Batch, jIS).", + "type" : "object", + "properties" : { + "catenaXsiteId" : { + "description" : "The identifier of the site according to Catena-X BPDM. The catenaXsiteId must be a valid Catena-X BPN. The BPN is a unique, unchangeable identifier for Business Partners / company locations from foundation to closure, regardless of the different business relationships / structures between or within the Business Partners or company locations.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnsTrait" + }, + "function" : { + "description" : "The function of the site in relation to the part(i.e. the activity within the value chain of the part that is performed at the site)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_FunctionCharacteristic" + } + }, + "required" : [ "catenaXsiteId", "function" ] + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesCharacteristic" : { + "description" : "Sites Characteristic", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesEntity" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_ManufacturingCharacteristic" : { + "description" : "Characteristic to describe manufacturing related data", + "type" : "object", + "properties" : { + "date" : { + "description" : "Timestamp of the manufacturing date as the final step in production process (e.g. final quality check, ready-for-shipment event)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_DateTimeTrait" + }, + "country" : { + "description" : "Country code where the part was manufactured", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_ProductionCountryCodeTrait" + }, + "sites" : { + "description" : "A site is a delimited geographical area where a legal entity does business(geographical address with geo coordinates).A site always has a primary physical address. It is possible that further physical addresses are specified for the site. P.O. box details are only possible in addition to the physical address. A site has a 1:n relation to addresses, means at least 1 address is necessary and multiple addresses are possible.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesCharacteristic" + } + }, + "required" : [ "date" ] + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartIdCharacteristic" : { + "type" : "string", + "description" : "The part ID is a multi-character string, usually assigned by an ERP system. Alternatively the ID of the part family can be used if no specific part ID exists." + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartNameCharacteristic" : { + "type" : "string", + "description" : "Part Name in string format from the respective system in the value chain" + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationStandardCharacteristic" : { + "type" : "string", + "description" : "Identified classification standards that align to the Catena-X needs." + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationIDCharacteristic" : { + "type" : "string", + "description" : "It can be numeric or a string, depending on the chosen classification standard." + }, + "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" : { + "type" : "string", + "description" : "Describes a Property which contains plain text. This is intended exclusively for human readable strings, not for identifiers, measurement values, etc." + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationEntity" : { + "description" : "Encapsulates data related to the classification of the part.", + "type" : "object", + "properties" : { + "classificationStandard" : { + "description" : "Identified classification standards that align to the Catena-X needs.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationStandardCharacteristic" + }, + "classificationID" : { + "description" : "The classification ID of the part type according to the corresponding standard definition mentioned in the key value pair.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationIDCharacteristic" + }, + "classificationDescription" : { + "description" : "Optional property describing the classification standard.", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" + } + }, + "required" : [ "classificationStandard", "classificationID" ] + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationCharacteristic" : { + "description" : "Classification characteristic enabling a set of further properties.", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationEntity" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartTypeInformationCharacteristic" : { + "description" : "The characteristics of the part type", + "type" : "object", + "properties" : { + "manufacturerPartId" : { + "description" : "Part ID as assigned by the manufacturer of the part. The manufacturer Part ID identifies the part (as designed)in the manufacturer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number or any other instance IDs. \nIf no specific part ID exists a part family ID may be substituted for it.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartIdCharacteristic" + }, + "customerPartId" : { + "description" : "Part ID as assigned by the customer of the part. The customer Part ID identifies the part (as designed)in the customer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number or any other instance IDs. \nIf no specific part ID exists a part family ID may be substituted for it.\n", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartIdCharacteristic" + }, + "nameAtManufacturer" : { + "description" : "Name of the part as assigned by the manufacturer", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartNameCharacteristic" + }, + "nameAtCustomer" : { + "description" : "Name of the part as assigned by the customer", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartNameCharacteristic" + }, + "partClassification" : { + "description" : "Property describing the classification of a part.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationCharacteristic" + } + }, + "required" : [ "nameAtManufacturer" ] + } + } + }, + "properties" : { + "catenaXId" : { + "description" : "The fully anonymous Catena-X ID of the just-in-sequence part, valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + }, + "localIdentifiers" : { + "description" : "A local identifier enables identification of a part in a specific dataspace, but is not unique in Catena-X dataspace. Multiple local identifiers may exist.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_LocalIdentifierCharacteristic" + }, + "manufacturingInformation" : { + "description" : "Information from manufacturing process, such as manufacturing date and manufacturing country", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_ManufacturingCharacteristic" + }, + "partTypeInformation" : { + "description" : "The part type or part family from which the just-in-sequence part has been instantiated.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.just_in_sequence_part_3.0.0_PartTypeInformationCharacteristic" + } + }, + "required" : [ "catenaXId", "localIdentifiers", "manufacturingInformation", "partTypeInformation" ] +} diff --git a/tx-backend/src/main/resources/schema/semantichub/PartAsPlanned_1.0.1-schema.json b/tx-backend/src/main/resources/schema/semantichub/PartAsPlanned_1.0.1-schema.json deleted file mode 100644 index 09353d163d..0000000000 --- a/tx-backend/src/main/resources/schema/semantichub/PartAsPlanned_1.0.1-schema.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema", - "description" : "A Part as Planned represents an item in the Catena-X Bill of Material (BOM) in As-Planned lifecycle status in a specific version. ", - "type" : "object", - "components" : { - "schemas" : { - "urn_bamm_io.catenax.part_as_planned_1.0.1_CatenaXIdTrait" : { - "type" : "string", - "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens).", - "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" - }, - "urn_bamm_io.catenax.part_as_planned_1.0.1_PartIdCharacteristic" : { - "type" : "string", - "description" : "The part ID is a multi-character string, ususally assigned by an ERP system" - }, - "urn_bamm_io.catenax.part_as_planned_1.0.1_PartNameCharacteristic" : { - "type" : "string", - "description" : "Part Name in string format from the respective system in the value chain" - }, - "urn_bamm_io.catenax.part_as_planned_1.0.1_ClassificationEnumerationCharacteristic" : { - "type" : "string", - "description" : "A part type must be placed into one of the following classes: 'component', 'product', 'software', ‘assembly’, 'tool', or 'raw material'.", - "enum" : [ "product", "raw material", "software", "assembly", "tool", "component" ] - }, - "urn_bamm_io.catenax.part_as_planned_1.0.1_PartTypeInformationCharacteristic" : { - "description" : "The characteristics of the part type", - "type" : "object", - "properties" : { - "manufacturerPartId" : { - "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part in the manufacturer`s dataspace. The Part ID references a specific version of a part. The version number must be included in the Part ID if it is available.\n\nThe Part ID does not reference a specific instance of a part and must not be confused with the serial number.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.part_as_planned_1.0.1_PartIdCharacteristic" - }, - "nameAtManufacturer" : { - "description" : "Name of the part as assigned by the manufacturer", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.part_as_planned_1.0.1_PartNameCharacteristic" - }, - "classification" : { - "description" : "The classification of the part type according to STEP standard definition", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.part_as_planned_1.0.1_ClassificationEnumerationCharacteristic" - } - }, - "required" : [ "manufacturerPartId", "nameAtManufacturer", "classification" ] - }, - "urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" : { - "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." - }, - "urn_bamm_io.catenax.part_as_planned_1.0.1_ValidityPeriodCharacteristic" : { - "description" : "Characteristic to define a continuous validity period.", - "type" : "object", - "properties" : { - "validFrom" : { - "description" : "Start date of validity period", - "$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" - }, - "validTo" : { - "description" : "End date of validity period", - "$ref" : "#/components/schemas/urn_bamm_io.openmanufacturing_characteristic_2.0.0_Timestamp" - } - } - } - } - }, - "properties" : { - "catenaXId" : { - "description" : "The fully anonymous Catena-X ID of the serialized part, valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.part_as_planned_1.0.1_CatenaXIdTrait" - }, - "partTypeInformation" : { - "description" : "The part type from which the serialized part has been instantiated", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.part_as_planned_1.0.1_PartTypeInformationCharacteristic" - }, - "validityPeriod" : { - "description" : "The period of time during which the Part is offered by the manufacturer and can be purchased by customers.", - "$ref" : "#/components/schemas/urn_bamm_io.catenax.part_as_planned_1.0.1_ValidityPeriodCharacteristic" - } - }, - "required" : [ "catenaXId", "partTypeInformation" ] -} \ No newline at end of file diff --git a/tx-backend/src/main/resources/schema/semantichub/PartAsPlanned_2.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/PartAsPlanned_2.0.0-schema.json new file mode 100644 index 0000000000..1309f7aaf0 --- /dev/null +++ b/tx-backend/src/main/resources/schema/semantichub/PartAsPlanned_2.0.0-schema.json @@ -0,0 +1,106 @@ +{ + "$schema" : "http://json-schema.org/draft-04/schema", + "description" : "A Part as Planned represents an item in the Catena-X Bill of Material(BOM) in As-Planned lifecycle status in a specific version. ", + "type" : "object", + "components" : { + "schemas" : { + "urn_samm_io.catenax.shared.uuid_1.0.0_UuidV4Trait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", + "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_PartIdCharacteristic" : { + "type" : "string", + "description" : "The part ID is a multi-character string, usually assigned by an ERP system" + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_PartNameCharacteristic" : { + "type" : "string", + "description" : "Part Name in string format from the respective system in the value chain" + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_ClassificationEnumerationCharacteristic" : { + "type" : "string", + "description" : "A part type must be placed into one of the following classes: 'component', 'product', 'software', ?assembly?, 'tool', or 'raw material'.", + "enum" : [ "product", "raw material", "software", "assembly", "tool", "component" ] + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_PartTypeInformationCharacteristic" : { + "description" : "The characteristics of the part type", + "type" : "object", + "properties" : { + "manufacturerPartId" : { + "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part in the manufacturer`s dataspace. The Part ID references a specific version of a part. The version number must be included in the Part ID if it is available.\n\nThe Part ID does not reference a specific instance of a part and must not be confused with the serial number.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_PartIdCharacteristic" + }, + "nameAtManufacturer" : { + "description" : "Name of the part as assigned by the manufacturer", + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_PartNameCharacteristic" + }, + "classification" : { + "description" : "The classification of the part type according to STEP standard definition", + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_ClassificationEnumerationCharacteristic" + } + }, + "required" : [ "manufacturerPartId", "nameAtManufacturer", "classification" ] + }, + "urn_samm_io.catenax.shared.business_partner_number_1.0.0_BpnsCharacteristic" : { + "type" : "string", + "description" : "BPNS (Business Partner Number Site) represents a site which can be a production plant. A site can also be e.g. an office or a warehouse. An information related to a site is e.g. needed for reporting issues (How many sites does e.g. Beispiel AG have?), status of operation (out of operations due to environmental disaster), for certificates on site level (e.g. environment certificates) or for internal regulations on site level, (e.g. security topics, Corona rules,...). Several addresses (= BPNA with different streets and different gates) can belong to one site. A BPNS should be always linked to one BPNL via relationship 'belongs to legal entity'." + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_FunctionCharacteristic" : { + "type" : "string", + "description" : "Describes the characteristics of the function for a site related to the respective part", + "enum" : [ "production", "warehouse", "spare part warehouse" ] + }, + "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" : { + "type" : "string", + "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", + "description" : "Describes a Property which contains the date and time with an optional timezone." + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_partSitesInformationAsPlannedEntity" : { + "description" : "Describes the ID, function and validity date of a site for the associated part in the AsPlanned context.", + "type" : "object", + "properties" : { + "catenaXsiteId" : { + "description" : "The identifier of the site according to Catena-X BPDM. The catenaXsiteId must be a valid Catena-X BPN. The BPN is a unique, unchangeable identifier for Business Partners / company locations from foundation to closure, regardless of the different business relationships / structures between or within the Business Partners or company locations.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_1.0.0_BpnsCharacteristic" + }, + "function" : { + "description" : "The function of the site in relation to the part(i.e. the activity within the value chain of the part that is performed at the site)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_FunctionCharacteristic" + }, + "functionValidFrom" : { + "description" : "Timestamp, from when the site has the specified function for the given part", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" + }, + "functionValidUntil" : { + "description" : "Timestamp, until when the site has the specified function for the given part", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" + } + }, + "required" : [ "catenaXsiteId", "function" ] + }, + "urn_samm_io.catenax.part_as_planned_2.0.0_partSitesInformationAsPlannedCharacteristic" : { + "description" : "The characteristic of the part site information that represents a set of possible site to a repective part. ", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_partSitesInformationAsPlannedEntity" + }, + "uniqueItems" : true + } + } + }, + "properties" : { + "catenaXId" : { + "description" : "The fully anonymous Catena-X ID of the serialized part, valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_1.0.0_UuidV4Trait" + }, + "partTypeInformation" : { + "description" : "The part type from which the serialized part has been instantiated", + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_PartTypeInformationCharacteristic" + }, + "partSitesInformationAsPlanned" : { + "description" : "A site is a delimited geographical area where a legal entity does business(geographical address with geo coordinates).A site always has a primary physical address. It is possible that further physical addresses are specified for the site. P.O. box details are only possible in addition to the physical address. A site has a 1:n relation to addresses, means at least 1 address is necessary and multiple addresses are possible.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.part_as_planned_2.0.0_partSitesInformationAsPlannedCharacteristic" + } + }, + "required" : [ "catenaXId", "partTypeInformation" ] +} diff --git a/tx-backend/src/main/resources/schema/semantichub/SerialPart_1.0.1-schema.json b/tx-backend/src/main/resources/schema/semantichub/SerialPart_1.0.1-schema.json deleted file mode 100644 index a1d78b4c8a..0000000000 --- a/tx-backend/src/main/resources/schema/semantichub/SerialPart_1.0.1-schema.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema", - "description" : "A serialized part is an instantiation of a (design-) part, where the particular instantiation can be uniquely identified by means of a serial number or a similar identifier (e.g. VAN) or a combination of multiple identifiers (e.g. combination of manufacturer, date and number)", - "type" : "object", - "components" : { - "schemas" : { - "urn_samm_io.catenax.serial_part_1.0.1_CatenaXIdTrait" : { - "type" : "string", - "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", - "pattern" : "(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" - }, - "urn_samm_io.catenax.serial_part_1.0.1_KeyCharacteristic" : { - "type" : "string", - "description" : "The key characteristic of a local identifier. A specific subset of keys is predefined, but additionally any other custom key is allowed. Predefined keys (to be used when applicable):\n- \"manufacturerId\" - The Business Partner Number (BPN) of the manufacturer. Value: BPN-Nummer\n- \"partInstanceId\" - The identifier of the manufacturer for the serialized instance of the part, e.g. the serial number\n- \"batchId\" - The identifier of the batch, to which the serialzed part belongs\n- \"van\" - The anonymized vehicle identification number (VIN). Value: anonymized VIN according to OEM anonymization rules. Note: If the key \"van\" is available, \"partInstanceId\" must also be available and hold the identical value." - }, - "urn_samm_io.catenax.serial_part_1.0.1_ValueCharacteristic" : { - "type" : "string", - "description" : "The value of an identifier." - }, - "urn_samm_io.catenax.serial_part_1.0.1_KeyValueList" : { - "description" : "A list of key value pairs for local identifiers, which are composed of a key and a corresponding value.", - "type" : "object", - "properties" : { - "key" : { - "description" : "The key of a local identifier. ", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_KeyCharacteristic" - }, - "value" : { - "description" : "The value of an identifier.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_ValueCharacteristic" - } - }, - "required" : [ "key", "value" ] - }, - "urn_samm_io.catenax.serial_part_1.0.1_LocalIdentifierCharacteristic" : { - "description" : "A single serialized part may have multiple attributes, that uniquely identify a that part in a specific dataspace (e.g. the manufacturer`s dataspace)", - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_KeyValueList" - }, - "uniqueItems" : true - }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" : { - "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." - }, - "urn_samm_io.catenax.serial_part_1.0.1_ProductionCountryCodeTrait" : { - "type" : "string", - "description" : "Regular Expression that ensures a three-letter code ", - "pattern" : "^[A-Z][A-Z][A-Z]$" - }, - "urn_samm_io.catenax.serial_part_1.0.1_ManufacturingCharacteristic" : { - "description" : "Characteristic to describe manufacturing related data", - "type" : "object", - "properties" : { - "date" : { - "description" : "Timestamp of the manufacturing date as the final step in production process (e.g. final quality check, ready-for-shipment event)", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "country" : { - "description" : "Country code where the part was manufactured", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_ProductionCountryCodeTrait" - } - }, - "required" : [ "date" ] - }, - "urn_samm_io.catenax.serial_part_1.0.1_PartIdCharacteristic" : { - "type" : "string", - "description" : "The part ID is a multi-character string, ususally assigned by an ERP system" - }, - "urn_samm_io.catenax.serial_part_1.0.1_PartNameCharacteristic" : { - "type" : "string", - "description" : "Part Name in string format from the respective system in the value chain" - }, - "urn_samm_io.catenax.serial_part_1.0.1_ClassificationCharacteristic" : { - "type" : "string", - "description" : "A part type must be placed into one of the following classes: 'component', 'product', 'software', 'assembly', 'tool', or 'raw material'.", - "enum" : [ "product", "raw material", "software", "assembly", "tool", "component" ] - }, - "urn_samm_io.catenax.serial_part_1.0.1_PartTypeInformationCharacteristic" : { - "description" : "The characteristics of the part type", - "type" : "object", - "properties" : { - "manufacturerPartId" : { - "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part (as designed) in the manufacturer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_PartIdCharacteristic" - }, - "customerPartId" : { - "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part (as designed) in the customer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_PartIdCharacteristic" - }, - "nameAtManufacturer" : { - "description" : "Name of the part as assigned by the manufacturer", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_PartNameCharacteristic" - }, - "nameAtCustomer" : { - "description" : "Name of the part as assigned by the customer", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_PartNameCharacteristic" - }, - "classification" : { - "description" : "The classification of the part type according to STEP standard definition", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_ClassificationCharacteristic" - } - }, - "required" : [ "manufacturerPartId", "nameAtManufacturer", "classification" ] - } - } - }, - "properties" : { - "catenaXId" : { - "description" : "The fully anonymous Catena-X ID of the serialized part, valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_CatenaXIdTrait" - }, - "localIdentifiers" : { - "description" : "A local identifier enables identification of a part in a specific dataspace, but is not unique in Catena-X dataspace. Multiple local identifiers may exist.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_LocalIdentifierCharacteristic" - }, - "manufacturingInformation" : { - "description" : "Information from manufacturing process, such as manufacturing date and manufacturing country", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_ManufacturingCharacteristic" - }, - "partTypeInformation" : { - "description" : "The part type from which the serialized part has been instantiated", - "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_1.0.1_PartTypeInformationCharacteristic" - } - }, - "required" : [ "catenaXId", "localIdentifiers", "manufacturingInformation", "partTypeInformation" ] -} \ No newline at end of file diff --git a/tx-backend/src/main/resources/schema/semantichub/SerialPart_3.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/SerialPart_3.0.0-schema.json new file mode 100644 index 0000000000..26d0224082 --- /dev/null +++ b/tx-backend/src/main/resources/schema/semantichub/SerialPart_3.0.0-schema.json @@ -0,0 +1,201 @@ +{ + "$schema" : "http://json-schema.org/draft-04/schema", + "description" : "A serialized part is an instantiation of a (design-)part, where the particular instantiation can be uniquely identified by means of a serial number or a similar identifier (e.g. VAN)or a combination of multiple identifiers (e.g. combination of manufacturer, date and number)", + "type" : "object", + "components" : { + "schemas" : { + "urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", + "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" + }, + "urn_samm_io.catenax.serial_part_3.0.0_KeyTrait" : { + "type" : "string", + "description" : "Constraint that ensures that the standard keys and custom key prefixes can be used.", + "pattern" : "^(manufacturerId|partInstanceId|batchId|van|customKey:\\w+)$" + }, + "urn_samm_io.catenax.serial_part_3.0.0_ValueCharacteristic" : { + "type" : "string", + "description" : "The value of an identifier." + }, + "urn_samm_io.catenax.serial_part_3.0.0_KeyValueList" : { + "description" : "A list of key value pairs for local identifiers, which are composed of a key and a corresponding value.", + "type" : "object", + "properties" : { + "key" : { + "description" : "The key of a local identifier. ", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_KeyTrait" + }, + "value" : { + "description" : "The value of an identifier.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_ValueCharacteristic" + } + }, + "required" : [ "key", "value" ] + }, + "urn_samm_io.catenax.serial_part_3.0.0_LocalIdentifierCharacteristic" : { + "description" : "A single serialized part may have multiple attributes, that uniquely identify a that part in a specific dataspace (e.g. the manufacturer`s dataspace)", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_KeyValueList" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.serial_part_3.0.0_DateTimeTrait" : { + "type" : "string", + "description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", + "pattern" : "^(?:[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:[.][0-9]+)?Z|[0-9]{4}-[0-9]{2}-[0-9]{2}(?:T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:[.][0-9]+)?(?:Z|[+-][0-9]{2}:[0-9]{2}))?)$" + }, + "urn_samm_io.catenax.serial_part_3.0.0_ProductionCountryCodeTrait" : { + "type" : "string", + "description" : "Regular Expression that ensures a three-letter code ", + "pattern" : "^[A-Z][A-Z][A-Z]$" + }, + "urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnsTrait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the BPNS is composed of prefix 'BPNS', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNS[a-zA-Z0-9]{12}$" + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_FunctionCharacteristic" : { + "type" : "string", + "description" : "Describes the characteristics of the function for a site related to the respective part.", + "enum" : [ "production", "warehouse", "spare part warehouse" ] + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesEntity" : { + "description" : "Describes the ID and function of a site for the associated part in the AsBuilt context(e.g. SerialPart, Batch, jIS).", + "type" : "object", + "properties" : { + "catenaXsiteId" : { + "description" : "The identifier of the site according to Catena-X BPDM. The catenaXsiteId must be a valid Catena-X BPN. The BPN is a unique, unchangeable identifier for Business Partners / company locations from foundation to closure, regardless of the different business relationships / structures between or within the Business Partners or company locations.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnsTrait" + }, + "function" : { + "description" : "The function of the site in relation to the part(i.e. the activity within the value chain of the part that is performed at the site)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_FunctionCharacteristic" + } + }, + "required" : [ "catenaXsiteId", "function" ] + }, + "urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesCharacteristic" : { + "description" : "Sites Characteristic", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesEntity" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.serial_part_3.0.0_ManufacturingCharacteristic" : { + "description" : "Characteristic to describe manufacturing related data", + "type" : "object", + "properties" : { + "date" : { + "description" : "Timestamp of the manufacturing date as the final step in production process (e.g. final quality check, ready-for-shipment event)", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_DateTimeTrait" + }, + "country" : { + "description" : "Country code where the part was manufactured", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_ProductionCountryCodeTrait" + }, + "sites" : { + "description" : "A site is a delimited geographical area where a legal entity does business(geographical address with geo coordinates).A site always has a primary physical address. It is possible that further physical addresses are specified for the site. P.O. box details are only possible in addition to the physical address. A site has a 1:n relation to addresses, means at least 1 address is necessary and multiple addresses are possible.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_site_information_as_built_2.0.0_SitesCharacteristic" + } + }, + "required" : [ "date" ] + }, + "urn_samm_io.catenax.serial_part_3.0.0_PartIdCharacteristic" : { + "type" : "string", + "description" : "The part ID is a multi-character string, usually assigned by an ERP system" + }, + "urn_samm_io.catenax.serial_part_3.0.0_PartNameCharacteristic" : { + "type" : "string", + "description" : "Part Name in string format from the respective system in the value chain" + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationStandardCharacteristic" : { + "type" : "string", + "description" : "Identified classification standards that align to the Catena-X needs." + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationIDCharacteristic" : { + "type" : "string", + "description" : "It can be numeric or a string, depending on the chosen classification standard." + }, + "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" : { + "type" : "string", + "description" : "Describes a Property which contains plain text. This is intended exclusively for human readable strings, not for identifiers, measurement values, etc." + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationEntity" : { + "description" : "Encapsulates data related to the classification of the part.", + "type" : "object", + "properties" : { + "classificationStandard" : { + "description" : "Identified classification standards that align to the Catena-X needs.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationStandardCharacteristic" + }, + "classificationID" : { + "description" : "The classification ID of the part type according to the corresponding standard definition mentioned in the key value pair.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationIDCharacteristic" + }, + "classificationDescription" : { + "description" : "Optional property describing the classification standard.", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" + } + }, + "required" : [ "classificationStandard", "classificationID" ] + }, + "urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationCharacteristic" : { + "description" : "Classification characteristic enabling a set of further properties.", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationEntity" + }, + "uniqueItems" : true + }, + "urn_samm_io.catenax.serial_part_3.0.0_PartTypeInformationCharacteristic" : { + "description" : "The characteristics of the part type", + "type" : "object", + "properties" : { + "manufacturerPartId" : { + "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part (as designed)in the manufacturer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_PartIdCharacteristic" + }, + "customerPartId" : { + "description" : "Part ID as assigned by the manufacturer of the part. The Part ID identifies the part (as designed)in the customer`s dataspace. The Part ID does not reference a specific instance of a part and thus should not be confused with the serial number.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_PartIdCharacteristic" + }, + "nameAtManufacturer" : { + "description" : "Name of the part as assigned by the manufacturer", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_PartNameCharacteristic" + }, + "nameAtCustomer" : { + "description" : "Name of the part as assigned by the customer", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_PartNameCharacteristic" + }, + "partClassification" : { + "description" : "Property describing the classification of a part.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.part_classification_1.0.0_ClassificationCharacteristic" + } + }, + "required" : [ "manufacturerPartId", "nameAtManufacturer" ] + } + } + }, + "properties" : { + "catenaXId" : { + "description" : "The fully anonymous Catena-X ID of the serialized part, valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + }, + "localIdentifiers" : { + "description" : "A local identifier enables identification of a part in a specific dataspace, but is not unique in Catena-X dataspace. Multiple local identifiers may exist.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_LocalIdentifierCharacteristic" + }, + "manufacturingInformation" : { + "description" : "Information from manufacturing process, such as manufacturing date and manufacturing country", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_ManufacturingCharacteristic" + }, + "partTypeInformation" : { + "description" : "The part type from which the serialized part has been instantiated", + "$ref" : "#/components/schemas/urn_samm_io.catenax.serial_part_3.0.0_PartTypeInformationCharacteristic" + } + }, + "required" : [ "catenaXId", "localIdentifiers", "manufacturingInformation", "partTypeInformation" ] +} diff --git a/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsBuilt_2.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsBuilt_3.0.0-schema.json similarity index 50% rename from tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsBuilt_2.0.0-schema.json rename to tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsBuilt_3.0.0-schema.json index 70fbf22bb0..56f26d15f3 100644 --- a/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsBuilt_2.0.0-schema.json +++ b/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsBuilt_3.0.0-schema.json @@ -4,85 +4,86 @@ "type" : "object", "components" : { "schemas" : { - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_CatenaXIdTraitCharacteristic" : { + "urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { "type" : "string", "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" : { + "urn_samm_io.catenax.single_level_bom_as_built_3.0.0_DateTimeTrait" : { "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." + "description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", + "pattern" : "^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?$" }, - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_NumberOfObjects" : { + "urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" : { "type" : "number", - "description" : "Quantifiable number of objects in reference to the measurementUnit" + "description" : "The quantity value associated with the unit expressed as float." }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_UnitReference" : { + "urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" : { "type" : "string", "pattern" : "[a-zA-Z]*:[a-zA-Z]+", - "description" : "Describes a Property containing a reference to one of the units in the Unit Catalog." + "description" : "Enumeration for common item units.", + "enum" : [ "unit:piece", "unit:set", "unit:pair", "unit:page", "unit:cycle", "unit:kilowattHour", "unit:gram", "unit:kilogram", "unit:tonneMetricTon", "unit:tonUsOrShortTonUkorus", "unit:ounceAvoirdupois", "unit:pound", "unit:metre", "unit:centimetre", "unit:kilometre", "unit:inch", "unit:foot", "unit:yard", "unit:squareCentimetre", "unit:squareMetre", "unit:squareInch", "unit:squareFoot", "unit:squareYard", "unit:cubicCentimetre", "unit:cubicMetre", "unit:cubicInch", "unit:cubicFoot", "unit:cubicYard", "unit:litre", "unit:millilitre", "unit:hectolitre", "unit:secondUnitOfTime", "unit:minuteUnitOfTime", "unit:hourUnitOfTime", "unit:day" ] }, - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_QuantityCharacteristic" : { - "description" : "Describes the quantity in which the child item is assembled in the given parent item by providing a quantity value and the measurement unit in which the quantity is measured.", + "urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" : { + "description" : "Characteristic for measurements of an item (mass, count, linear, area, volume, misc).", "type" : "object", "properties" : { - "quantityNumber" : { - "description" : "The number of objects related to the measurement unit", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_NumberOfObjects" + "value" : { + "description" : "The quantity value associated with the unit.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" }, - "measurementUnit" : { - "description" : "Unit of Measurement for the quantity of serialized objects", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_UnitReference" + "unit" : { + "description" : "The unit of an item. Common units may be related to mass, count, linear, area, volume or misc.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" } }, - "required" : [ "quantityNumber", "measurementUnit" ] + "required" : [ "value", "unit" ] }, - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_BpnTrait" : { + "urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" : { "type" : "string", - "description" : "Business Partner Number Regular Expression allowing only BPNL which stands for a legal entity.", - "pattern" : "^(BPNL)([0-9]{8})([a-zA-Z0-9]{4})$" + "description" : "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNL[a-zA-Z0-9]{12}$" }, - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_HasAlternativesCharacteristic" : { + "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Boolean" : { "type" : "boolean", - "description" : "Describes the value whether the child data has alternatives." + "description" : "Represents a boolean value (i.e. a \"flag\")." }, - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_ChildData" : { + "urn_samm_io.catenax.single_level_bom_as_built_3.0.0_ChildData" : { "description" : "Catena-X ID and meta data of the assembled child item.", "type" : "object", "properties" : { "createdOn" : { "description" : "Timestamp when the relation between the parent item and the child item was created, e.g. when the serialized child part was assembled into the given part.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_DateTimeTrait" }, "quantity" : { "description" : "Quantity of which the child item is assembled into the parent item. In general it is '1' for serialized parts.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_QuantityCharacteristic" + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" }, "lastModifiedOn" : { "description" : "Timestamp when the assembly relationship between parent item and child item was last modified.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "catenaXId" : { - "description" : "The Catena-X ID of the given part (e.g. the assembly), valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_CatenaXIdTraitCharacteristic" + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_DateTimeTrait" }, "businessPartner" : { "description" : "The supplier of the given child item.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_BpnTrait" + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" }, "hasAlternatives" : { - "description" : "Expresses wether the part is built-in or wether it is one of several options. If the value is false, it can be assumend this exact item is built-in. If the value is true, it is unknown wether this or an alternative item is built-in.\nThis is the case when, e.g. the same item is supplied by two suppliers, the item is only tracked by a customer part ID during assembly. Thus, these items can not be differentiated from each other.\n\n", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_HasAlternativesCharacteristic" + "description" : "Expresses whether the part is built-in or wether it is one of several options. If the value is false, it can be assumed this exact item is built-in. If the value is true, it is unknown wether this or an alternative item is built-in.\nThis is the case when, e.g. the same item is supplied by two suppliers, the item is only tracked by a customer part ID during assembly. Thus, these items can not be differentiated from each other.\n\n", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Boolean" + }, + "catenaXId" : { + "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" } }, - "required" : [ "createdOn", "quantity", "catenaXId", "businessPartner", "hasAlternatives" ] + "required" : [ "createdOn", "quantity", "businessPartner", "hasAlternatives", "catenaXId" ] }, - "urn_samm_io.catenax.single_level_bom_as_built_2.0.0_SetOfChildItemsCharacteristic" : { - "description" : "Set of child items the parent item is assembled by (one structural level down).", + "urn_samm_io.catenax.single_level_bom_as_built_3.0.0_SetOfChildItemsCharacteristic" : { + "description" : "Set of child items the parent item was assembled by (one structural level down).", "type" : "array", "items" : { - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_ChildData" + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_ChildData" }, "uniqueItems" : true } @@ -90,12 +91,12 @@ }, "properties" : { "catenaXId" : { - "description" : "The Catena-X ID of the given part (e.g. the assembly), valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_CatenaXIdTraitCharacteristic" + "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" }, "childItems" : { - "description" : "Set of child items, of which the given parent item is assembled by (one structural level down).", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_2.0.0_SetOfChildItemsCharacteristic" + "description" : "Set of child items, of which the given parent item was assembled by (one structural level down).", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_SetOfChildItemsCharacteristic" } }, "required" : [ "catenaXId", "childItems" ] diff --git a/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsPlanned_2.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsPlanned_2.0.0-schema.json deleted file mode 100644 index 2e76a33c89..0000000000 --- a/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsPlanned_2.0.0-schema.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema", - "description" : "The single-level bill of material (BoM) represents one sub-level of an assembly and does not include any lower-level subassemblies. In the As-Planned lifecycle state all variants are covered (\"120% BoM\").\nIf multiple versions of child parts exist that can be assembled into the same parent part, all versions of the child part are included in the BoM.\nIf there are multiple suppliers for the same child part, each supplier has an entry for their child part in the BoM.", - "type" : "object", - "components" : { - "schemas" : { - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_CatenaXIdTraitCharacteristic" : { - "type" : "string", - "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", - "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" - }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" : { - "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." - }, - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_NumberofObjects" : { - "type" : "number", - "description" : "Quantifiable number of objects in reference to the measurementUnit" - }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_UnitReference" : { - "type" : "string", - "pattern" : "[a-zA-Z]*:[a-zA-Z]+", - "description" : "Describes a Property containing a reference to one of the units in the Unit Catalog." - }, - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_QuantityCharacteristic" : { - "description" : "Describes the quantity in which the child part is assembled in the given parent object by providing a quantity value and the measurement unit in which the quantity is measured.", - "type" : "object", - "properties" : { - "quantityNumber" : { - "description" : "The number of objects related to the measurement unit", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_NumberofObjects" - }, - "measurementUnit" : { - "description" : "Unit of measurement for the quantity of objects.\nIf possible, use units from the aspect meta model unit catalog, which is based on the UNECE Recommendation No. 20 \"Codes for Units of Measure used in International Trade\".", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_UnitReference" - } - }, - "required" : [ "quantityNumber", "measurementUnit" ] - }, - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_ValidityPeriodCharacteristic" : { - "description" : "Characteristic for a validity period defined by an (optional) start and an (optional) end timestamp.", - "type" : "object", - "properties" : { - "validFrom" : { - "description" : "Start date of validity period", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "validTo" : { - "description" : "End date of validity period", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - } - } - }, - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_BpnTrait" : { - "type" : "string", - "description" : "Business Partner Number Regular Expression allowing only BPNL which stands for a legal entity.", - "pattern" : "^(BPNL)([0-9]{8})([a-zA-Z0-9]{4})$" - }, - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_ChildData" : { - "description" : "Catena-X ID and meta data of the child part.", - "type" : "object", - "properties" : { - "createdOn" : { - "description" : "Timestamp when the relation between the parent part and the child part was created", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "quantity" : { - "description" : "Quantity of which the child part is assembled into the parent part.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_QuantityCharacteristic" - }, - "lastModifiedOn" : { - "description" : "Timestamp when the relationship between parent part and child part was last modified.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "validityPeriod" : { - "description" : "The period of time during which the parent-child relation is valid. This relates to whether a child part can be built into the parent part at a given time.\nIf no validity period is given the relation is considered valid at any point in time.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_ValidityPeriodCharacteristic" - }, - "catenaXId" : { - "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_CatenaXIdTraitCharacteristic" - }, - "businessPartner" : { - "description" : "The supplier of the given child item.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_BpnTrait" - } - }, - "required" : [ "createdOn", "quantity", "catenaXId", "businessPartner" ] - }, - "urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_SetOfChildItemsCharacteristic" : { - "description" : "Set of child items the parent object is assembled by (one structural level down).", - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_ChildData" - }, - "uniqueItems" : true - } - } - }, - "properties" : { - "catenaXId" : { - "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_CatenaXIdTraitCharacteristic" - }, - "childItems" : { - "description" : "Set of child items in As-Planned lifecycle phase, of which the given parent object is assembled by (one structural level down).", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_2.0.0_SetOfChildItemsCharacteristic" - } - }, - "required" : [ "catenaXId", "childItems" ] -} \ No newline at end of file diff --git a/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsPlanned_3.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsPlanned_3.0.0-schema.json new file mode 100644 index 0000000000..59737d1fce --- /dev/null +++ b/tx-backend/src/main/resources/schema/semantichub/SingleLevelBomAsPlanned_3.0.0-schema.json @@ -0,0 +1,113 @@ +{ + "$schema" : "http://json-schema.org/draft-04/schema", + "description" : "The single-level bill of material (BoM)represents one sub-level of an assembly and does not include any lower-level subassemblies. In the As-Planned lifecycle state all variants are covered (\"120% BoM\").\nIf multiple versions of child parts exist that can be assembled into the same parent part, all versions of the child part are included in the BoM.\nIf there are multiple suppliers for the same child part, each supplier has an entry for their child part in the BoM.", + "type" : "object", + "components" : { + "schemas" : { + "urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", + "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" + }, + "urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_DateTimeTrait" : { + "type" : "string", + "description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", + "pattern" : "^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?$" + }, + "urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" : { + "type" : "number", + "description" : "The quantity value associated with the unit expressed as float." + }, + "urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" : { + "type" : "string", + "pattern" : "[a-zA-Z]*:[a-zA-Z]+", + "description" : "Enumeration for common item units.", + "enum" : [ "unit:piece", "unit:set", "unit:pair", "unit:page", "unit:cycle", "unit:kilowattHour", "unit:gram", "unit:kilogram", "unit:tonneMetricTon", "unit:tonUsOrShortTonUkorus", "unit:ounceAvoirdupois", "unit:pound", "unit:metre", "unit:centimetre", "unit:kilometre", "unit:inch", "unit:foot", "unit:yard", "unit:squareCentimetre", "unit:squareMetre", "unit:squareInch", "unit:squareFoot", "unit:squareYard", "unit:cubicCentimetre", "unit:cubicMetre", "unit:cubicInch", "unit:cubicFoot", "unit:cubicYard", "unit:litre", "unit:millilitre", "unit:hectolitre", "unit:secondUnitOfTime", "unit:minuteUnitOfTime", "unit:hourUnitOfTime", "unit:day" ] + }, + "urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" : { + "description" : "Characteristic for measurements of an item (mass, count, linear, area, volume, misc).", + "type" : "object", + "properties" : { + "value" : { + "description" : "The quantity value associated with the unit.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" + }, + "unit" : { + "description" : "The unit of an item. Common units may be related to mass, count, linear, area, volume or misc.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" + } + }, + "required" : [ "value", "unit" ] + }, + "urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_ValidityPeriodCharacteristic" : { + "description" : "Characteristic for a validity period defined by an (optional)start and an (optional)end timestamp.", + "type" : "object", + "properties" : { + "validFrom" : { + "description" : "Start date of validity period.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_DateTimeTrait" + }, + "validTo" : { + "description" : "End date of validity period.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_DateTimeTrait" + } + } + }, + "urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNL[a-zA-Z0-9]{12}$" + }, + "urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_ChildData" : { + "description" : "Catena-X ID and meta data of the assembled child item.", + "type" : "object", + "properties" : { + "createdOn" : { + "description" : "Timestamp when the relation between the parent part and the child part was created", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_DateTimeTrait" + }, + "quantity" : { + "description" : "Quantity of which the child part will be assembled into the parent part.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" + }, + "lastModifiedOn" : { + "description" : "Timestamp when the relationship between parent part and child part was last modified.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_DateTimeTrait" + }, + "validityPeriod" : { + "description" : "The period of time during which the parent-child relation is valid. This relates to whether a child part can be built into the parent part at a given time.\nIf no validity period is given the relation is considered valid at any point in time.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_ValidityPeriodCharacteristic" + }, + "businessPartner" : { + "description" : "The supplier of the given child item.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" + }, + "catenaXId" : { + "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + } + }, + "required" : [ "createdOn", "quantity", "businessPartner", "catenaXId" ] + }, + "urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_SetOfChildItemsCharacteristic" : { + "description" : "Set of child items the parent object will be assembled by (one structural level down).", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_ChildData" + }, + "uniqueItems" : true + } + } + }, + "properties" : { + "catenaXId" : { + "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + }, + "childItems" : { + "description" : "Set of child items in As-Planned lifecycle phase, of which the given parent object is assembled by (one structural level down).", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_planned_3.0.0_SetOfChildItemsCharacteristic" + } + }, + "required" : [ "catenaXId", "childItems" ] +} \ No newline at end of file diff --git a/tx-backend/src/main/resources/schema/semantichub/SingleLevelUsageAsBuilt_2.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/SingleLevelUsageAsBuilt_2.0.0-schema.json deleted file mode 100644 index e57b316f66..0000000000 --- a/tx-backend/src/main/resources/schema/semantichub/SingleLevelUsageAsBuilt_2.0.0-schema.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "$schema" : "http://json-schema.org/draft-04/schema", - "description" : "The aspect provides the information in which parent part(s)/product(s) the given item is assembled in. Could be a 1:1 relationship in terms of a e.g. a brake component or 1:n for e.g. coatings. The given item as well as the parent item must refer to an object from as-built lifecycle phase, i.e. a batch or a serialized part.", - "type" : "object", - "components" : { - "schemas" : { - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_CatenaXIdTraitCharacteristic" : { - "type" : "string", - "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", - "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_NumberOfObjects" : { - "type" : "number", - "description" : "Quantifiable number of objects in reference to the measurementUnit" - }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_UnitReference" : { - "type" : "string", - "pattern" : "[a-zA-Z]*:[a-zA-Z]+", - "description" : "Describes a Property containing a reference to one of the units in the Unit Catalog." - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_QuantityCharacteristic" : { - "description" : "Describes the quantity in which the child part is assembled in the parent object by providing a quantity value and the measurement unit in which the quantity is measured.", - "type" : "object", - "properties" : { - "quantityNumber" : { - "description" : "The number of objects related to the measurement unit", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_NumberOfObjects" - }, - "measurementUnit" : { - "description" : "Unit of Measurement for the quantity of serialized objects", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_UnitReference" - } - }, - "required" : [ "quantityNumber", "measurementUnit" ] - }, - "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" : { - "type" : "string", - "pattern" : "-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?", - "description" : "Describes a Property which contains the date and time with an optional timezone." - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_ParentData" : { - "description" : "Catena-X ID and meta data of the parent item.", - "type" : "object", - "properties" : { - "quantity" : { - "description" : "Quantity of which the child part is assembled into the parent part. In general it is '1' for serialized parts.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_QuantityCharacteristic" - }, - "catenaXId" : { - "description" : "The Catena-X ID of the given part (e.g. the assembly), valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_CatenaXIdTraitCharacteristic" - }, - "createdOn" : { - "description" : "Timestamp when the relation between the parent part and the child part was created, e.g. when the given child part was assembled into the parent part.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "lastModifiedOn" : { - "description" : "Timestamp when the assembly relationship between parent part and child part was last modified.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - } - }, - "required" : [ "quantity", "catenaXId", "createdOn" ] - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_SetOfParentItemsCharacteristic" : { - "description" : "Set of parent items the given child object is assembled in (one structural level up).", - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_ParentData" - }, - "uniqueItems" : true - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_BpnTrait" : { - "type" : "string", - "description" : "Business Partner Number Regular Expression allowing only BPNL which stands for a legal entity.", - "pattern" : "^(BPNL)([0-9]{8})([a-zA-Z0-9]{4})$" - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_Customer" : { - "description" : "A customer and their related items, if known.", - "type" : "object", - "properties" : { - "parentItems" : { - "description" : "Set of parent items, in which the given child object is assembled in (one structural level up).\n\nFor serialized items the list should contain only one parent item.\nAs different subsets of a batch might be used by a customer in different items this is a list.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_SetOfParentItemsCharacteristic" - }, - "businessPartner" : { - "description" : "The supplier of the given child item.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_BpnTrait" - }, - "createdOn" : { - "description" : "Timestamp when the relation between the parent part and the child part was created, e.g. when the given child part was assembled into the parent part.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - }, - "lastModifiedOn" : { - "description" : "Timestamp when the assembly relationship between parent part and child part was last modified.", - "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Timestamp" - } - }, - "required" : [ "businessPartner", "createdOn" ] - }, - "urn_samm_io.catenax.single_level_usage_as_built_2.0.0_ListOfCustomersCharacteristic" : { - "description" : "A list of customers and their related parent items.", - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_Customer" - } - } - } - }, - "properties" : { - "catenaXId" : { - "description" : "The Catena-X ID of the given part (e.g. the assembly), valid for the Catena-X dataspace.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_CatenaXIdTraitCharacteristic" - }, - "customers" : { - "description" : "A list of all customers of this item. If the parent items in which this item is assembled into are known, they should be listed as well.\n\nFor serialized items the list should contain only one customer with one parent item.\nAs different subsets of a batch might be sold to different customers this is a list.", - "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_2.0.0_ListOfCustomersCharacteristic" - } - }, - "required" : [ "catenaXId", "customers" ] -} \ No newline at end of file diff --git a/tx-backend/src/main/resources/schema/semantichub/SingleLevelUsageAsBuilt_3.0.0-schema.json b/tx-backend/src/main/resources/schema/semantichub/SingleLevelUsageAsBuilt_3.0.0-schema.json new file mode 100644 index 0000000000..641635985e --- /dev/null +++ b/tx-backend/src/main/resources/schema/semantichub/SingleLevelUsageAsBuilt_3.0.0-schema.json @@ -0,0 +1,116 @@ +{ + "$schema" : "http://json-schema.org/draft-04/schema", + "description" : "The aspect provides the information in which parent part(s)/product(s)the given item is assembled in. Could be a 1:1 relationship in terms of an e.g. a brake component or 1:n for e.g. coatings. The parent item must refer to an object from as-built lifecycle phase, i.e. a batch or a serialized part.", + "type" : "object", + "components" : { + "schemas" : { + "urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", + "pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" + }, + "urn_samm_io.catenax.single_level_usage_as_built_3.0.0_ListOfCustomersCharacteristic" : { + "description" : "A list of customers and their related parent items.", + "type" : "array", + "items" : { + "type" : "string", + "description" : "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNL[a-zA-Z0-9]{12}$" + } + }, + "urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" : { + "type" : "number", + "description" : "The quantity value associated with the unit expressed as float." + }, + "urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" : { + "type" : "string", + "pattern" : "[a-zA-Z]*:[a-zA-Z]+", + "description" : "Enumeration for common item units.", + "enum" : [ "unit:piece", "unit:set", "unit:pair", "unit:page", "unit:cycle", "unit:kilowattHour", "unit:gram", "unit:kilogram", "unit:tonneMetricTon", "unit:tonUsOrShortTonUkorus", "unit:ounceAvoirdupois", "unit:pound", "unit:metre", "unit:centimetre", "unit:kilometre", "unit:inch", "unit:foot", "unit:yard", "unit:squareCentimetre", "unit:squareMetre", "unit:squareInch", "unit:squareFoot", "unit:squareYard", "unit:cubicCentimetre", "unit:cubicMetre", "unit:cubicInch", "unit:cubicFoot", "unit:cubicYard", "unit:litre", "unit:millilitre", "unit:hectolitre", "unit:secondUnitOfTime", "unit:minuteUnitOfTime", "unit:hourUnitOfTime", "unit:day" ] + }, + "urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" : { + "description" : "Characteristic for measurements of an item (mass, count, linear, area, volume, misc).", + "type" : "object", + "properties" : { + "value" : { + "description" : "The quantity value associated with the unit.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" + }, + "unit" : { + "description" : "The unit of an item. Common units may be related to mass, count, linear, area, volume or misc.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" + } + }, + "required" : [ "value", "unit" ] + }, + "urn_samm_io.catenax.single_level_usage_as_built_3.0.0_DateTimeTrait" : { + "type" : "string", + "description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", + "pattern" : "^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?$" + }, + "urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Boolean" : { + "type" : "boolean", + "description" : "Represents a boolean value (i.e. a \"flag\")." + }, + "urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" : { + "type" : "string", + "description" : "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two alphanumeric letters.", + "pattern" : "^BPNL[a-zA-Z0-9]{12}$" + }, + "urn_samm_io.catenax.single_level_usage_as_built_3.0.0_ParentData" : { + "description" : "Catena-X ID and meta data of the parent item.", + "type" : "object", + "properties" : { + "quantity" : { + "description" : "Quantity of which the child part is assembled into the parent part. In general it is '1' for serialized parts.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" + }, + "createdOn" : { + "description" : "Timestamp when the relation between the parent part and the child part was created, e.g. when the given child part was assembled into the parent part.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_3.0.0_DateTimeTrait" + }, + "lastModifiedOn" : { + "description" : "Timestamp when the assembly or usage relationship between parent part and child part was last modified.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_3.0.0_DateTimeTrait" + }, + "isOnlyPotentialParent" : { + "description" : "Expresses the certainty whether the part has been used as component or input material in the produced item. If the value is false, it can be assumed that the part has been used. If the value is true, there are alternatives for that part, and it is unknown if this part item or an alternative part item has been used.\nThis is the case when, e.g. the same item is supplied by two suppliers, and the item is only tracked by a customer part ID during assembly. Thus, these items cannot be differentiated from each other.\n", + "$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Boolean" + }, + "businessPartner" : { + "description" : "The supplier of the given child item.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" + }, + "catenaXId" : { + "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + } + }, + "required" : [ "createdOn", "isOnlyPotentialParent", "businessPartner", "catenaXId" ] + }, + "urn_samm_io.catenax.single_level_usage_as_built_3.0.0_SetOfParentItemsCharacteristic" : { + "description" : "Set of parent items the given child object is assembled in (one structural level up).", + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_3.0.0_ParentData" + }, + "uniqueItems" : true + } + } + }, + "properties" : { + "catenaXId" : { + "description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" + }, + "customers" : { + "description" : "A list of all customers of this item. If the parent items in which this item is assembled into are known, they should be listed as well.\n\nFor serialized items the list should contain only one customer with one parent item.\nAs different subsets of a batch might be sold to different customers this is a list.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_3.0.0_ListOfCustomersCharacteristic" + }, + "parentItems" : { + "description" : "Set of parent items, in which the given child object is assembled in (one structural level up).\n\nFor serialized items the list should contain only one parent item.\nAs different subsets of a batch might be used by a customer in different items this is a list.", + "$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_usage_as_built_3.0.0_SetOfParentItemsCharacteristic" + } + }, + "required" : [ "catenaXId", "customers", "parentItems" ] +} \ No newline at end of file diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/semanticdatamodel/SemanticDataModelTest.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/semanticdatamodel/SemanticDataModelTest.java index 74fcd3e86c..faff6e1ccc 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/semanticdatamodel/SemanticDataModelTest.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/assets/infrastructure/base/irs/model/response/semanticdatamodel/SemanticDataModelTest.java @@ -27,8 +27,8 @@ class SemanticDataModelTest { @ParameterizedTest @ValueSource(strings = { - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" }) void test_IsAsPlanned(String aspectType) { //GIVEN @@ -42,9 +42,9 @@ void test_IsAsPlanned(String aspectType) { @ParameterizedTest @ValueSource(strings = { - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", - "urn:samm:io.catenax.batch:2.0.0#Batch", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart"}) + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", + "urn:samm:io.catenax.batch:3.0.0#Batch", + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart"}) void test_IsAsBuilt(String aspectType) { //GIVEN SemanticDataModel semanticDataModel = new SemanticDataModel(); diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/importdata/ImportControllerIT.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/importdata/ImportControllerIT.java index 5f7bc24497..8f96f8f904 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/importdata/ImportControllerIT.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/integration/importdata/ImportControllerIT.java @@ -157,6 +157,7 @@ void givenValidFileWithAsPlannedOnly_whenImportData_thenValidationShouldPass() t .multiPart(file) .post("/api/assets/import") .then() + .log().all() .statusCode(200) .extract().as(ImportResponse.class); @@ -301,8 +302,8 @@ void givenInvalidFile_whenImportData_thenValidationShouldNotPass() throws JoseEx assertThat(result.validationResult().validationErrors()) .containsExactlyInAnyOrder( "Missing property aspectType", - "For Asset with ID: invalidUUID And aspectType: urn:bamm:io.catenax.serial_part:1.0.1#SerialPart Following error occurred: object has missing required properties ([\"localIdentifiers\"])", - "For Asset with ID: urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a And aspectType: urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt Following error occurred: object has missing required properties ([\"catenaXId\",\"childItems\"])" + "For Asset with ID: invalidUUID And aspectType: urn:samm:io.catenax.serial_part:3.0.0#SerialPart Following error occurred: object has missing required properties ([\"localIdentifiers\"])", + "For Asset with ID: urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a And aspectType: urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt Following error occurred: object has missing required properties ([\"catenaXId\",\"childItems\"])" ); } @@ -330,26 +331,6 @@ void givenInvalidFile_whenImportDataWithBadStructure_thenValidationShouldNotPass ); } - @Test - void givenValidFile_whenImportDataWithWrongBPN_thenValidationShouldNotPass() throws JoseException { - // given - String path = getClass().getResource("/testdata/importfiles/validImportFileButWrongBPN.json").getFile(); - File file = new File(path); - - // when/then - given() - .header(oAuth2Support.jwtAuthorization(JwtRole.ADMIN)) - .when() - .multiPart(file) - .post("/api/assets/import") - .then() - .statusCode(400) - .body("validationResult.validationErrors", Matchers.contains( - List.of( - "At least one asset does not match the application bpn BPNL00000003AXS3" - ).toArray())) - .body("jobId", Matchers.notNullValue()); - } @Test void givenInvalidFileExtension_whenImportData_thenValidationShouldPass() throws JoseException { @@ -450,6 +431,7 @@ void givenValidFile2_whenPublishData_thenStatusShouldChangeToPublishedToCx() thr .multiPart(file) .post("/api/assets/import") .then() + .log().all() .statusCode(200) .extract().as(ImportResponse.class); diff --git a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/shelldescriptor/infrastructure/rest/DecentralRegistryRepositoryImplTest.java b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/shelldescriptor/infrastructure/rest/DecentralRegistryRepositoryImplTest.java index 3415865af6..e73469b98a 100644 --- a/tx-backend/src/test/java/org/eclipse/tractusx/traceability/shelldescriptor/infrastructure/rest/DecentralRegistryRepositoryImplTest.java +++ b/tx-backend/src/test/java/org/eclipse/tractusx/traceability/shelldescriptor/infrastructure/rest/DecentralRegistryRepositoryImplTest.java @@ -58,7 +58,7 @@ void testRetrieveShellDescriptorsByBpnSuccess() throws RegistryServiceException .keys(List.of( SemanticId.builder() .type("GlobalReference") - .value("urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SerialPart").build() + .value("urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SerialPart").build() ) ) .build() @@ -76,7 +76,7 @@ void testRetrieveShellDescriptorsByBpnSuccess() throws RegistryServiceException .keys(List.of( SemanticId.builder() .type("GlobalReference") - .value("urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#PartAsPlanned").build() + .value("urn:samm:io.catenax.single_level_usage_as_built:2.0.0#PartAsPlanned").build() ) ) .build() diff --git a/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200.json b/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200.json index 52e9acd5c1..f17ceff94a 100644 --- a/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200.json +++ b/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200.json @@ -304,7 +304,7 @@ "identification" : "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0218", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -383,7 +383,7 @@ "identification" : "urn:uuid:ff82a14d-8730-488f-b965-89eeb2010991", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -462,7 +462,7 @@ "identification" : "urn:uuid:82b89a4c-0e98-499e-ba21-c2a5aa38d70b", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -565,7 +565,7 @@ "identification" : "urn:uuid:20c37755-2cb1-4eaf-be09-b44c9b9031fe", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -620,7 +620,7 @@ "identification" : "urn:uuid:2f11ec59-b8e8-4494-b3d8-0bbb7d1517b5", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -675,7 +675,7 @@ "identification" : "urn:uuid:985ae9ac-e810-4b69-b3c1-23dfb1f057b6", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -730,7 +730,7 @@ "identification" : "urn:uuid:bc51058d-fc37-42e8-b7ce-3be50754124f", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -809,7 +809,7 @@ "identification" : "urn:uuid:cbc837f1-d369-4ff8-9539-42e7bd249204", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -888,7 +888,7 @@ "identification" : "urn:uuid:162535e9-7baa-47b4-b778-17bc45427546", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -943,7 +943,7 @@ "identification" : "urn:uuid:9aeaac21-7d98-44cc-813c-8ba8a6618564", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1046,7 +1046,7 @@ "identification" : "urn:uuid:326acfa7-07d3-4ad0-bc91-67330c56071e", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1101,7 +1101,7 @@ "identification" : "urn:uuid:140e0654-765e-4136-ba36-7b1d85832377", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1156,7 +1156,7 @@ "identification" : "urn:uuid:263e254d-8b7c-4911-b46a-d8bef28970f7", "semanticId" : { "value" : [ - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" ] }, "endpoints" : [ @@ -1193,7 +1193,7 @@ "submodels": [ { "identification" : "urn:uuid:318f4d45-7856-4467-8238-4959b56e6841", - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -1206,7 +1206,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUR" }, "catenaXId" : "urn:uuid:580d3adf-1981-44a0-a214-13d6ceed6841", @@ -1221,7 +1221,7 @@ }, { "identification" : "urn:uuid:318f4d45-7856-4467-8238-4959b56e8912", - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -1249,7 +1249,7 @@ }, { "identification": "urn:uuid:781dabcb-93e7-442d-bc38-8ba1451c0218", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1331,7 +1331,7 @@ }, { "identification": "urn:uuid:ff82a14d-8730-488f-b965-89eeb2010991", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1411,7 +1411,7 @@ }, { "identification": "urn:uuid:82b89a4c-0e98-499e-ba21-c2a5aa38d70b", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1547,7 +1547,7 @@ }, { "identification": "urn:uuid:20c37755-2cb1-4eaf-be09-b44c9b9031fe", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1579,7 +1579,7 @@ }, { "identification": "urn:uuid:2f11ec59-b8e8-4494-b3d8-0bbb7d1517b5", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1611,7 +1611,7 @@ }, { "identification": "urn:uuid:985ae9ac-e810-4b69-b3c1-23dfb1f057b6", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1643,7 +1643,7 @@ }, { "identification": "urn:uuid:bc51058d-fc37-42e8-b7ce-3be50754124f", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1697,7 +1697,7 @@ }, { "identification": "urn:uuid:cbc837f1-d369-4ff8-9539-42e7bd249204", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1737,7 +1737,7 @@ }, { "identification": "urn:uuid:162535e9-7baa-47b4-b778-17bc45427546", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1769,7 +1769,7 @@ }, { "identification": "urn:uuid:9aeaac21-7d98-44cc-813c-8ba8a6618564", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1831,7 +1831,7 @@ }, { "identification": "urn:uuid:326acfa7-07d3-4ad0-bc91-67330c56071e", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1863,7 +1863,7 @@ }, { "identification": "urn:uuid:140e0654-765e-4136-ba36-7b1d85832377", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { @@ -1895,7 +1895,7 @@ }, { "identification": "urn:uuid:263e254d-8b7c-4911-b46a-d8bef28970f7", - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { diff --git a/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200_downward_asPlanned.json b/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200_downward_asPlanned.json index a367189a81..0df555feba 100644 --- a/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200_downward_asPlanned.json +++ b/tx-backend/src/test/resources/stubs/irs/get/jobs/id/response_200_downward_asPlanned.json @@ -102,7 +102,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "value" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "type" : "Submodel" } ], @@ -132,7 +132,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "value" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "type" : "Submodel" } ], @@ -188,7 +188,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "value" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "type" : "Submodel" } ], @@ -218,7 +218,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "value" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "type" : "Submodel" } ], @@ -274,7 +274,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "value" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "type" : "Submodel" } ], @@ -304,7 +304,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "value" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "type" : "Submodel" } ], @@ -334,7 +334,7 @@ "semanticId" : { "keys" : [ { - "value" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "value" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "type" : "Submodel" } ], @@ -376,7 +376,7 @@ "submodels" : [ { "identification" : "urn:uuid:9a1cf54a-56e1-4d20-9931-5479db0ce6f8", - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -387,12 +387,20 @@ "manufacturerPartId" : "ZX-55", "classification" : "product", "nameAtManufacturer" : "Vehicle Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { "identification" : "urn:uuid:6507e9fc-2544-4ce1-a41c-b0aa57d7b30a", - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", "sites" : [ @@ -407,7 +415,7 @@ }, { "identification" : "urn:uuid:81d16457-d9af-4b4d-a124-84d3ae17d951", - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -418,12 +426,20 @@ "manufacturerPartId" : "ZX-55", "classification" : "product", "nameAtManufacturer" : "Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { "identification" : "urn:uuid:3331cecf-8183-4966-aa4c-d99d61d20c0b", - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ diff --git a/tx-backend/src/test/resources/testdata/import-request.json b/tx-backend/src/test/resources/testdata/import-request.json index 62711da288..942f7ae4bf 100644 --- a/tx-backend/src/test/resources/testdata/import-request.json +++ b/tx-backend/src/test/resources/testdata/import-request.json @@ -6,17 +6,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "22782277-50", - "key" : "manufacturerPartId" - }, { "value" : "NO-313869652971440618042264", "key" : "partInstanceId" @@ -30,21 +26,27 @@ "partTypeInformation" : { "manufacturerPartId" : "22782277-50", "customerPartId" : "22782277-50", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Door f-l", "nameAtCustomer" : "b/test Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:d387fa8e-603c-42bd-98c3-4d87fef8d2bb", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2023-02-20T14:48:54.709Z", @@ -56,27 +58,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:d387fa8e-603c-42bd-98c3-4d87fef8d2bb", - "customers" : [ - { - "parentItems" : [ + "customers": ["BPNL00000003CML1"], + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", "createdOn" : "2023-05-29T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "isOnlyPotentialParent": false, + "businessPartner" : "BPNL00000003CML1" } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -87,17 +85,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "3880383-57", - "key" : "manufacturerPartId" - }, { "value" : "NO-989134870198932317923938", "key" : "partInstanceId" @@ -111,21 +105,27 @@ "partTypeInformation" : { "manufacturerPartId" : "3880383-57", "customerPartId" : "3880383-57", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2020-05-02T14:48:54.709Z", @@ -137,27 +137,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", - "customers" : [ - { - "parentItems" : [ + "customers": [ + "BPNL00000003CML1" + ], + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", "createdOn" : "2023-07-15T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -168,17 +166,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "9069675-60", - "key" : "manufacturerPartId" - }, { "value" : "NO-004314332935115065980115", "key" : "partInstanceId" @@ -192,21 +186,27 @@ "partTypeInformation" : { "manufacturerPartId" : "9069675-60", "customerPartId" : "9069675-60", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2018-09-17T14:48:54.709Z", @@ -218,27 +218,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", - "customers" : [ - { - "parentItems" : [ + "customers": [ + "BPNL00000003CML1" + ], + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", "createdOn" : "2023-02-16T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -249,17 +247,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "9879317-51", - "key" : "manufacturerPartId" - }, { "value" : "NO-477013846751358222215326", "key" : "partInstanceId" @@ -273,21 +267,27 @@ "partTypeInformation" : { "manufacturerPartId" : "9879317-51", "customerPartId" : "9879317-51", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2022-06-28T14:48:54.709Z", @@ -299,27 +299,26 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", - "customers" : [ - { + "customers": [ + "BPNL00000003CSGV" + ], + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", "createdOn" : "2023-03-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CSGV", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CSGV", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -330,17 +329,13 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "5894914-94", - "key" : "manufacturerPartId" - }, { "value" : "NO-341449848714937445621543", "key" : "batchId" @@ -353,33 +348,39 @@ "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", "partTypeInformation" : { "manufacturerPartId" : "5894914-94", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], + + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", "createdOn" : "2023-08-08T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -390,17 +391,13 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "6245773-32", - "key" : "manufacturerPartId" - }, { "value" : "NO-341449848714937445621543", "key" : "batchId" @@ -413,20 +410,26 @@ "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "partTypeInformation" : { "manufacturerPartId" : "6245773-32", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2019-08-15T14:48:54.709Z", @@ -445,17 +448,13 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "9770171-23", - "key" : "manufacturerPartId" - }, { "value" : "NO-341449848714937445621543", "key" : "batchId" @@ -468,7 +467,13 @@ "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb03", "partTypeInformation" : { "manufacturerPartId" : "9770171-23", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } @@ -481,22 +486,26 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2019-04-04T03:19:03.000Z", - "validTo" : "2024-12-29T10:25:12.000Z" - }, "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "partTypeInformation" : { "manufacturerPartId" : "7805659-25", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "childItems" : [ @@ -506,8 +515,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -518,7 +527,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ @@ -539,7 +548,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -559,7 +568,13 @@ "partTypeInformation" : { "manufacturerPartId" : "3578115-43", "customerPartId" : "PRT-12345", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Mirror left", "nameAtCustomer" : "b/test side element A" } @@ -573,22 +588,27 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2017-01-03T07:45:04.000Z", - "validTo" : "2029-11-15T11:57:45.000Z" - }, + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "partTypeInformation" : { "manufacturerPartId" : "2586427-48", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "childItems" : [ @@ -599,8 +619,8 @@ }, "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003AYRE", "createdOn" : "2022-12-03T14:48:54.709Z", @@ -610,7 +630,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "sites" : [ @@ -631,22 +651,27 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2016-04-28T20:00:55.000Z", - "validTo" : "2027-04-27T00:59:41.000Z" - }, + "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "partTypeInformation" : { "manufacturerPartId" : "8840374-09", "classification" : "product", "nameAtManufacturer" : "b/test ZB ZELLE" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "sites" : [ @@ -667,22 +692,27 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2015-05-18T23:10:44.000Z", - "validTo" : "2025-10-23T14:46:01.000Z" - }, + "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "partTypeInformation" : { "manufacturerPartId" : "6288246-67", "classification" : "product", "nameAtManufacturer" : "b/test OEM A High Voltage Battery" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "childItems" : [ @@ -693,8 +723,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-08T14:48:54.709Z", @@ -704,7 +734,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "sites" : [ @@ -725,22 +755,27 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2017-07-03T05:23:01.000Z", - "validTo" : "2032-09-25T10:26:27.000Z" - }, + "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "partTypeInformation" : { "manufacturerPartId" : "32494586-73", "classification" : "product", "nameAtManufacturer" : "b/test Tier A Gearbox" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "childItems" : [ @@ -751,8 +786,8 @@ }, "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-09T14:48:54.709Z", @@ -765,8 +800,8 @@ }, "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-10T14:48:54.709Z", @@ -776,7 +811,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "sites" : [ @@ -797,22 +832,26 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2016-04-24T08:26:56.000Z", - "validTo" : "2031-12-17T23:55:04.000Z" - }, "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "partTypeInformation" : { "manufacturerPartId" : "8583898-48", "classification" : "product", "nameAtManufacturer" : "b/test Tier B ECU1" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "childItems" : [ @@ -823,8 +862,8 @@ }, "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "quantity" : { - "quantityNumber" : 0.3301, - "measurementUnit" : "unit:kilogram" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-13T14:48:54.709Z", @@ -834,7 +873,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "sites" : [ @@ -855,22 +894,27 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { - "validityPeriod" : { - "validFrom" : "2019-11-02T11:14:15.000Z", - "validTo" : "2024-07-17T02:07:07.000Z" - }, + "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "partTypeInformation" : { "manufacturerPartId" : "1987361-42", "classification" : "product", "nameAtManufacturer" : "b/test Tire Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "sites" : [ @@ -891,17 +935,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "8840374-09", - "key" : "manufacturerPartId" - }, { "value" : "NO-917923082133064161014067", "key" : "partInstanceId" @@ -915,14 +955,20 @@ "partTypeInformation" : { "manufacturerPartId" : "8840374-09", "customerPartId" : "8840374-09", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test ZB ZELLE", "nameAtCustomer" : "ZB ZELLE" } } }, { - "aspectType" : "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "payload" : { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -942,17 +988,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "1142469-27", - "key" : "manufacturerPartId" - }, { "value" : "NO-655858074471261486971940", "key" : "partInstanceId" @@ -966,14 +1008,20 @@ "partTypeInformation" : { "manufacturerPartId" : "1142469-27", "customerPartId" : "1142469-27", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -989,7 +1037,13 @@ "partTypeInformation" : { "manufacturerPartId" : "1417058-05", "customerPartId" : "PRT-12345", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } @@ -1003,17 +1057,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" @@ -1027,22 +1077,28 @@ "partTypeInformation" : { "manufacturerPartId" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "businessPartner" : "BPNL00000003CML1", @@ -1053,15 +1109,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", - "customers" : [ + "customers": [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "businessPartner" : "BPNL00000003CML1", - "parentItems" : [], - "createdOn" : "2022-02-03T14:48:54.709Z", - "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "createdOn" : "2023-05-29T14:48:54.709Z", + "isOnlyPotentialParent": false, + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1" } ] } diff --git a/tx-backend/src/test/resources/testdata/importfiles/invalidImportFile.json b/tx-backend/src/test/resources/testdata/importfiles/invalidImportFile.json index cde1fa3962..828193e827 100644 --- a/tx-backend/src/test/resources/testdata/importfiles/invalidImportFile.json +++ b/tx-backend/src/test/resources/testdata/importfiles/invalidImportFile.json @@ -6,45 +6,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "invalidlocalIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "22782277-50", - "key" : "manufacturerPartId" - }, { "value" : "NO-313869652971440618042264", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "partTypeInformation" : { "manufacturerPartId" : "22782277-50", "customerPartId" : "22782277-50", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Door f-l", "nameAtCustomer" : "b/test Door front-left" } } }, { - "invalidaspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "invalidaspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2023-02-20T14:48:54.709Z", @@ -56,27 +58,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", "createdOn" : "2023-05-29T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -87,45 +87,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "3880383-57", - "key" : "manufacturerPartId" - }, { "value" : "NO-989134870198932317923938", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "partTypeInformation" : { "manufacturerPartId" : "3880383-57", "customerPartId" : "3880383-57", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaX1Id" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "invalidchildItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2020-05-02T14:48:54.709Z", @@ -137,27 +139,27 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", - "customers" : [ - { - "parentItems" : [ + "customers": [ + "BPNL00000003CML1" + ], + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", "createdOn" : "2023-07-15T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] + + } } ] @@ -168,45 +170,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9069675-60", - "key" : "manufacturerPartId" - }, { "value" : "NO-004314332935115065980115", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "partTypeInformation" : { "manufacturerPartId" : "9069675-60", "customerPartId" : "9069675-60", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2018-09-17T14:48:54.709Z", @@ -218,27 +222,26 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", "createdOn" : "2023-02-16T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] + } } ] @@ -249,45 +252,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9879317-51", - "key" : "manufacturerPartId" - }, { "value" : "NO-477013846751358222215326", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "partTypeInformation" : { "manufacturerPartId" : "9879317-51", "customerPartId" : "9879317-51", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2022-06-28T14:48:54.709Z", @@ -299,27 +304,26 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", - "customers" : [ - { + "customers": [ + "BPNL00000003CSGV" + ], + "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", "createdOn" : "2023-03-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CSGV", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CSGV", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -330,7 +334,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -343,7 +347,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", @@ -355,27 +359,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", - "customers" : [ - { + "customers": [ + "BPNL0987654321CD" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", "createdOn" : "2023-08-08T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -386,7 +388,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -399,7 +401,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", @@ -411,14 +413,14 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2019-08-15T14:48:54.709Z", @@ -437,7 +439,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -450,7 +452,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb03", @@ -469,7 +471,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -480,11 +482,19 @@ "manufacturerPartId" : "7805659-25", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "childItems" : [ @@ -494,8 +504,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -506,7 +516,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ @@ -527,7 +537,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -540,7 +550,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:580d3adf-1981-44a0-a214-13d6ceed6841", @@ -561,7 +571,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2017-01-03T07:45:04.000Z", @@ -572,11 +582,19 @@ "manufacturerPartId" : "2586427-48", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "childItems" : [ @@ -587,8 +605,8 @@ }, "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003AYRE", "createdOn" : "2022-12-03T14:48:54.709Z", @@ -598,7 +616,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "sites" : [ @@ -619,7 +637,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2016-04-28T20:00:55.000Z", @@ -630,11 +648,19 @@ "manufacturerPartId" : "8840374-09", "classification" : "product", "nameAtManufacturer" : "b/test ZB ZELLE" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "sites" : [ @@ -655,7 +681,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2015-05-18T23:10:44.000Z", @@ -666,11 +692,19 @@ "manufacturerPartId" : "6288246-67", "classification" : "product", "nameAtManufacturer" : "b/test OEM A High Voltage Battery" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "childItems" : [ @@ -681,8 +715,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-08T14:48:54.709Z", @@ -692,7 +726,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "sites" : [ @@ -713,7 +747,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2017-07-03T05:23:01.000Z", @@ -724,11 +758,19 @@ "manufacturerPartId" : "32494586-73", "classification" : "product", "nameAtManufacturer" : "b/test Tier A Gearbox" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "childItems" : [ @@ -739,8 +781,8 @@ }, "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-09T14:48:54.709Z", @@ -753,8 +795,8 @@ }, "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-10T14:48:54.709Z", @@ -764,7 +806,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "sites" : [ @@ -785,7 +827,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2016-04-24T08:26:56.000Z", @@ -796,11 +838,19 @@ "manufacturerPartId" : "8583898-48", "classification" : "product", "nameAtManufacturer" : "b/test Tier B ECU1" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "childItems" : [ @@ -811,8 +861,8 @@ }, "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "quantity" : { - "quantityNumber" : 0.3301, - "measurementUnit" : "unit:kilogram" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-13T14:48:54.709Z", @@ -822,7 +872,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "sites" : [ @@ -843,7 +893,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-11-02T11:14:15.000Z", @@ -854,11 +904,19 @@ "manufacturerPartId" : "1987361-42", "classification" : "product", "nameAtManufacturer" : "b/test Tire Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "sites" : [ @@ -879,38 +937,40 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840374-09", - "key" : "manufacturerPartId" - }, { "value" : "NO-917923082133064161014067", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:b0acf3e1-3fbe-46c0-aa0b-0724caae7772", "partTypeInformation" : { "manufacturerPartId" : "8840374-09", "customerPartId" : "8840374-09", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test ZB ZELLE", "nameAtCustomer" : "ZB ZELLE" } } }, { - "aspectType" : "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "payload" : { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -930,38 +990,40 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "1142469-27", - "key" : "manufacturerPartId" - }, { "value" : "NO-655858074471261486971940", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:da978a30-4dde-4d76-808a-b7946763ff0d", "partTypeInformation" : { "manufacturerPartId" : "1142469-27", "customerPartId" : "1142469-27", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -970,7 +1032,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:da978a30-4dde-4d76-808a-b7946763ff0d", @@ -991,46 +1053,48 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "partTypeInformation" : { "manufacturerPartId" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "businessPartner" : "BPNL00000003CNKC", @@ -1041,15 +1105,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", - "customers" : [ - { - "businessPartner" : "BPNL00000003CNKC", - "parentItems" : [], - "createdOn" : "2022-02-03T14:48:54.709Z", - "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + "customers": [ + "BPNL0987654321CD" + ], + "parentItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "createdOn" : "2023-05-29T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CNKC", + "isOnlyPotentialParent": false } ] } diff --git a/tx-backend/src/test/resources/testdata/importfiles/invalidImportFileBadStructure.json b/tx-backend/src/test/resources/testdata/importfiles/invalidImportFileBadStructure.json index 48a907f198..206b321166 100644 --- a/tx-backend/src/test/resources/testdata/importfiles/invalidImportFileBadStructure.json +++ b/tx-backend/src/test/resources/testdata/importfiles/invalidImportFileBadStructure.json @@ -6,17 +6,13 @@ }, "afd" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "invalidlocalIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "22782277-50", - "key" : "manufacturerPartId" - }, { "value" : "NO-313869652971440618042264", "key" : "partInstanceId" @@ -30,21 +26,27 @@ "partTypeInformation" : { "manufacturerPartId" : "22782277-50", "customerPartId" : "22782277-50", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Door f-l", "nameAtCustomer" : "b/test Door front-left" } } }, { - "invalidaspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "invalidaspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2023-02-20T14:48:54.709Z", @@ -56,25 +58,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", - "createdOn" : "2023-05-29T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "createdOn" : "2023-05-29T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -87,17 +87,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "3880383-57", - "key" : "manufacturerPartId" - }, { "value" : "NO-989134870198932317923938", "key" : "partInstanceId" @@ -111,21 +107,27 @@ "partTypeInformation" : { "manufacturerPartId" : "3880383-57", "customerPartId" : "3880383-57", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaX1Id" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "invalidchildItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2020-05-02T14:48:54.709Z", @@ -137,25 +139,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", - "createdOn" : "2023-07-15T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", + "createdOn" : "2023-07-15T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -168,17 +168,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9069675-60", - "key" : "manufacturerPartId" - }, { "value" : "NO-004314332935115065980115", "key" : "partInstanceId" @@ -192,21 +188,27 @@ "partTypeInformation" : { "manufacturerPartId" : "9069675-60", "customerPartId" : "9069675-60", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2018-09-17T14:48:54.709Z", @@ -218,25 +220,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", - "createdOn" : "2023-02-16T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", + "createdOn" : "2023-02-16T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -249,17 +249,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9879317-51", - "key" : "manufacturerPartId" - }, { "value" : "NO-477013846751358222215326", "key" : "partInstanceId" @@ -273,21 +269,27 @@ "partTypeInformation" : { "manufacturerPartId" : "9879317-51", "customerPartId" : "9879317-51", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2022-06-28T14:48:54.709Z", @@ -299,25 +301,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "customers" : [ + "BPNL00000003CSGV" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", - "createdOn" : "2023-03-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", + "createdOn" : "2023-03-03T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CSGV", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -330,7 +330,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -359,25 +359,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", - "createdOn" : "2023-08-08T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", + "createdOn" : "2023-08-08T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -390,7 +388,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -419,14 +417,14 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2019-08-15T14:48:54.709Z", @@ -445,7 +443,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -481,7 +479,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -492,11 +490,19 @@ "manufacturerPartId" : "7805659-25", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "childItems" : [ @@ -506,8 +512,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -518,7 +524,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ @@ -539,7 +545,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -573,7 +579,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2017-01-03T07:45:04.000Z", @@ -584,11 +590,19 @@ "manufacturerPartId" : "2586427-48", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "childItems" : [ @@ -599,8 +613,8 @@ }, "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003AYRE", "createdOn" : "2022-12-03T14:48:54.709Z", @@ -610,7 +624,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "sites" : [ @@ -631,7 +645,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2016-04-28T20:00:55.000Z", @@ -642,11 +656,19 @@ "manufacturerPartId" : "8840374-09", "classification" : "product", "nameAtManufacturer" : "b/test ZB ZELLE" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "sites" : [ @@ -667,7 +689,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2015-05-18T23:10:44.000Z", @@ -678,11 +700,19 @@ "manufacturerPartId" : "6288246-67", "classification" : "product", "nameAtManufacturer" : "b/test OEM A High Voltage Battery" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "childItems" : [ @@ -693,8 +723,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-08T14:48:54.709Z", @@ -704,7 +734,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "sites" : [ @@ -725,7 +755,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2017-07-03T05:23:01.000Z", @@ -736,11 +766,19 @@ "manufacturerPartId" : "32494586-73", "classification" : "product", "nameAtManufacturer" : "b/test Tier A Gearbox" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "childItems" : [ @@ -751,8 +789,8 @@ }, "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-09T14:48:54.709Z", @@ -776,7 +814,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "sites" : [ @@ -797,7 +835,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2016-04-24T08:26:56.000Z", @@ -808,11 +846,19 @@ "manufacturerPartId" : "8583898-48", "classification" : "product", "nameAtManufacturer" : "b/test Tier B ECU1" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "childItems" : [ @@ -823,8 +869,8 @@ }, "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "quantity" : { - "quantityNumber" : 0.3301, - "measurementUnit" : "unit:kilogram" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-13T14:48:54.709Z", @@ -834,7 +880,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "sites" : [ @@ -855,7 +901,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-11-02T11:14:15.000Z", @@ -866,11 +912,19 @@ "manufacturerPartId" : "1987361-42", "classification" : "product", "nameAtManufacturer" : "b/test Tire Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "sites" : [ @@ -891,17 +945,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840374-09", - "key" : "manufacturerPartId" - }, { "value" : "NO-917923082133064161014067", "key" : "partInstanceId" @@ -915,14 +965,20 @@ "partTypeInformation" : { "manufacturerPartId" : "8840374-09", "customerPartId" : "8840374-09", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test ZB ZELLE", "nameAtCustomer" : "ZB ZELLE" } } }, { - "aspectType" : "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "payload" : { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -942,17 +998,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "1142469-27", - "key" : "manufacturerPartId" - }, { "value" : "NO-655858074471261486971940", "key" : "partInstanceId" @@ -966,14 +1018,20 @@ "partTypeInformation" : { "manufacturerPartId" : "1142469-27", "customerPartId" : "1142469-27", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -1003,17 +1061,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" @@ -1027,22 +1081,28 @@ "partTypeInformation" : { "manufacturerPartId" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "businessPartner" : "BPNL00000003CNKC", @@ -1053,27 +1113,35 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "customers" : [ + "BPNL00000003CNKC" + ], + "parentItems" : [ { "businessPartner" : "BPNL00000003CNKC", - "parentItems" : [], "createdOn" : "2022-02-03T14:48:54.709Z", - "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", + "isOnlyPotentialParent" : false } ] } + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f" + }, + "submodels" : [ + ] } ] - }, - { - "assetMetaInfo" : { - "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f" - }, - "submodels" : [ - ] } ] } diff --git a/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsBuiltAsset.json b/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsBuiltAsset.json index 218c056bda..4fc0f9645f 100644 --- a/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsBuiltAsset.json +++ b/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsBuiltAsset.json @@ -6,17 +6,13 @@ }, "submodels": [ { - "aspectType": "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType": "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload": { "localIdentifiers": [ { "value": "BPNL00000003AXS3", "key": "manufacturerId" }, - { - "value": "3500011-11", - "key": "manufacturerPartId" - }, { "value": "OMAOYGBDTSRCMYSCX", "key": "partInstanceId" @@ -33,20 +29,26 @@ "catenaXId": "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36111", "partTypeInformation": { "manufacturerPartId": "3500011-11", - "classification": "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer": "a/dev Test Produkt AB" } } }, { - "aspectType": "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType": "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload": { "catenaXId": "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36111", "childItems": [ { "quantity": { - "quantityNumber": 1, - "measurementUnit": "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives": true, "createdOn": "2022-02-03T14:48:54.709Z", @@ -58,27 +60,26 @@ } }, { - "aspectType": "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType": "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload": { "catenaXId": "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36111", "customers": [ - { + "BPNL00000003CNKC" + ], + "parentItems": [ { "quantity": { - "quantityNumber": 1, - "measurementUnit": "unit:piece" + "value": 1, + "unit": "unit:piece" }, "catenaXId": "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "createdOn": "2023-04-13T14:48:54.709Z", - "lastModifiedOn": "2023-02-03T14:48:54.709Z" + "lastModifiedOn": "2023-02-03T14:48:54.709Z", + "businessPartner": "BPNL00000003CNKC", + "isOnlyPotentialParent": false } - ], - "businessPartner": "BPNL00000003CNKC", - "createdOn": "2023-02-03T14:48:54.709Z", - "lastModifiedOn": "2023-02-03T14:48:54.709Z" - } - ] + ] } } diff --git a/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsPlannedAsset.json b/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsPlannedAsset.json index 32b267c507..c74d988541 100644 --- a/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsPlannedAsset.json +++ b/tx-backend/src/test/resources/testdata/importfiles/validImportFile-onlyAsPlannedAsset.json @@ -6,7 +6,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -17,11 +17,19 @@ "manufacturerPartId" : "7805659-25", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb02", "childItems" : [ @@ -31,8 +39,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -43,7 +51,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb02", "sites" : [ diff --git a/tx-backend/src/test/resources/testdata/importfiles/validImportFile.json b/tx-backend/src/test/resources/testdata/importfiles/validImportFile.json index 8bb8c5ae63..6bb6d28f56 100644 --- a/tx-backend/src/test/resources/testdata/importfiles/validImportFile.json +++ b/tx-backend/src/test/resources/testdata/importfiles/validImportFile.json @@ -6,17 +6,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "22782277-50", - "key" : "manufacturerPartId" - }, { "value" : "NO-313869652971440618042264", "key" : "partInstanceId" @@ -30,21 +26,27 @@ "partTypeInformation" : { "manufacturerPartId" : "22782277-50", "customerPartId" : "22782277-50", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Door f-l", "nameAtCustomer" : "b/test Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2023-02-20T14:48:54.709Z", @@ -56,27 +58,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", "createdOn" : "2023-05-29T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -87,17 +87,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "3880383-57", - "key" : "manufacturerPartId" - }, { "value" : "NO-989134870198932317923938", "key" : "partInstanceId" @@ -111,21 +107,27 @@ "partTypeInformation" : { "manufacturerPartId" : "3880383-57", "customerPartId" : "3880383-57", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2020-05-02T14:48:54.709Z", @@ -137,27 +139,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", "createdOn" : "2023-07-15T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -168,17 +168,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "9069675-60", - "key" : "manufacturerPartId" - }, { "value" : "NO-004314332935115065980115", "key" : "partInstanceId" @@ -192,21 +188,27 @@ "partTypeInformation" : { "manufacturerPartId" : "9069675-60", "customerPartId" : "9069675-60", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2018-09-17T14:48:54.709Z", @@ -218,27 +220,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", "createdOn" : "2023-02-16T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -249,17 +249,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "9879317-51", - "key" : "manufacturerPartId" - }, { "value" : "NO-477013846751358222215326", "key" : "partInstanceId" @@ -273,21 +269,27 @@ "partTypeInformation" : { "manufacturerPartId" : "9879317-51", "customerPartId" : "9879317-51", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2022-06-28T14:48:54.709Z", @@ -299,27 +301,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", - "customers" : [ - { + "customers": [ + "BPNL00000003CSGV" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", "createdOn" : "2023-03-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CSGV", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CSGV", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -330,7 +330,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -355,27 +355,25 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", - "customers" : [ - { + "customers": [ + "BPNL00000003CML1" + ], "parentItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", "createdOn" : "2023-08-08T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent": false } - ], - "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ] + ] } } ] @@ -386,7 +384,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -411,14 +409,14 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2019-08-15T14:48:54.709Z", @@ -437,7 +435,7 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { @@ -469,7 +467,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", @@ -480,11 +478,19 @@ "manufacturerPartId" : "7805659-25", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "childItems" : [ @@ -494,8 +500,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -506,7 +512,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ @@ -527,7 +533,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -547,7 +553,13 @@ "partTypeInformation" : { "manufacturerPartId" : "3578115-43", "customerPartId" : "PRT-12345", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "Mirror left", "nameAtCustomer" : "b/test side element A" } @@ -561,7 +573,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2017-01-03T07:45:04.000Z", @@ -572,11 +584,19 @@ "manufacturerPartId" : "2586427-48", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "childItems" : [ @@ -587,8 +607,8 @@ }, "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003AYRE", "createdOn" : "2022-12-03T14:48:54.709Z", @@ -598,7 +618,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "sites" : [ @@ -619,7 +639,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2016-04-28T20:00:55.000Z", @@ -630,11 +650,19 @@ "manufacturerPartId" : "8840374-09", "classification" : "product", "nameAtManufacturer" : "b/test ZB ZELLE" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "sites" : [ @@ -655,7 +683,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2015-05-18T23:10:44.000Z", @@ -666,11 +694,19 @@ "manufacturerPartId" : "6288246-67", "classification" : "product", "nameAtManufacturer" : "b/test OEM A High Voltage Battery" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "childItems" : [ @@ -681,8 +717,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-08T14:48:54.709Z", @@ -692,7 +728,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "sites" : [ @@ -713,7 +749,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2017-07-03T05:23:01.000Z", @@ -724,11 +760,19 @@ "manufacturerPartId" : "32494586-73", "classification" : "product", "nameAtManufacturer" : "b/test Tier A Gearbox" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "childItems" : [ @@ -739,8 +783,8 @@ }, "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-09T14:48:54.709Z", @@ -753,8 +797,8 @@ }, "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-10T14:48:54.709Z", @@ -764,7 +808,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "sites" : [ @@ -785,7 +829,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2016-04-24T08:26:56.000Z", @@ -796,11 +840,19 @@ "manufacturerPartId" : "8583898-48", "classification" : "product", "nameAtManufacturer" : "b/test Tier B ECU1" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "childItems" : [ @@ -811,8 +863,8 @@ }, "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "quantity" : { - "quantityNumber" : 0.3301, - "measurementUnit" : "unit:kilogram" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-13T14:48:54.709Z", @@ -822,7 +874,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "sites" : [ @@ -843,7 +895,7 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { "validityPeriod" : { "validFrom" : "2019-11-02T11:14:15.000Z", @@ -854,11 +906,19 @@ "manufacturerPartId" : "1987361-42", "classification" : "product", "nameAtManufacturer" : "b/test Tire Model A" - } + }, + "partSitesInformationAsPlanned": [ + { + "catenaXsiteId": "BPNS123456789A", + "function": "production", + "functionValidFrom": "2024-04-25T10:00:00Z", + "functionValidUntil": "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "sites" : [ @@ -879,17 +939,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "8840374-09", - "key" : "manufacturerPartId" - }, { "value" : "NO-917923082133064161014067", "key" : "partInstanceId" @@ -903,14 +959,20 @@ "partTypeInformation" : { "manufacturerPartId" : "8840374-09", "customerPartId" : "8840374-09", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test ZB ZELLE", "nameAtCustomer" : "ZB ZELLE" } } }, { - "aspectType" : "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "payload" : { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -930,17 +992,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "1142469-27", - "key" : "manufacturerPartId" - }, { "value" : "NO-655858074471261486971940", "key" : "partInstanceId" @@ -954,14 +1012,20 @@ "partTypeInformation" : { "manufacturerPartId" : "1142469-27", "customerPartId" : "1142469-27", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -977,7 +1041,13 @@ "partTypeInformation" : { "manufacturerPartId" : "1417058-05", "customerPartId" : "PRT-12345", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } @@ -991,17 +1061,13 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { "value" : "BPNL00000003AXS3", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" @@ -1015,22 +1081,28 @@ "partTypeInformation" : { "manufacturerPartId" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "businessPartner" : "BPNL00000003AXS3", @@ -1041,16 +1113,24 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", - "customers" : [ - { - "businessPartner" : "BPNL00000003AXS3", - "parentItems" : [], - "createdOn" : "2022-02-03T14:48:54.709Z", - "lastModifiedOn" : "2022-02-03T14:48:54.709Z" - } + "customers": [ + "BPNL00000003CML1" + ], + "parentItems": [ + { + "catenaXId": "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "quantity": { + "value": 1, + "unit": "unit:piece" + }, + "createdOn": "2023-02-03T14:48:54.709Z", + "lastModifiedOn": "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003AXS3", + "isOnlyPotentialParent": false + } ] } } diff --git a/tx-backend/testdata/CX_Testdata_MessagingTest_v0.0.13.json b/tx-backend/testdata/CX_Testdata_MessagingTest_v0.0.13.json index 10a24fdba1..24badfba2b 100644 --- a/tx-backend/testdata/CX_Testdata_MessagingTest_v0.0.13.json +++ b/tx-backend/testdata/CX_Testdata_MessagingTest_v0.0.13.json @@ -46,14 +46,14 @@ { "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-02-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -63,17 +63,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "3500076-05", - "key" : "manufacturerPartId" - }, { "value" : "OMAOYGBDTSRCMYSCX", "key" : "partInstanceId" @@ -94,7 +90,13 @@ "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", "partTypeInformation" : { "manufacturerPartId" : "3500076-05", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Vehicle Hybrid" } } @@ -103,14 +105,14 @@ { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2023-02-20T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -120,17 +122,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "22782277-50", - "key" : "manufacturerPartId" - }, { "value" : "NO-313869652971440618042264", "key" : "partInstanceId" @@ -148,13 +146,19 @@ "partTypeInformation" : { "manufacturerPartId" : "22782277-50", "customerPartId" : "22782277-50", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Door f-l", "nameAtCustomer" : "b/test Door front-left" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "customers" : [ @@ -181,17 +185,13 @@ { "catenaXId" : "urn:uuid:1d2d8480-90a5-4a17-9ecb-2ff039d35fec", "bpnl" : "BPNL00000003CSGV", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CSGV", "key" : "manufacturerId" }, - { - "value" : "95657762-59", - "key" : "manufacturerPartId" - }, { "value" : "NO-584478761469608738361558", "key" : "partInstanceId" @@ -209,13 +209,19 @@ "partTypeInformation" : { "manufacturerPartId" : "95657762-59", "customerPartId" : "95657762-59", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Door Key", "nameAtCustomer" : "Door Key" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:1d2d8480-90a5-4a17-9ecb-2ff039d35fec", "customers" : [ @@ -242,14 +248,14 @@ { "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2021-01-15T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -259,17 +265,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "4922009-56", - "key" : "manufacturerPartId" - }, { "value" : "OMAYSKEITUGNVHKKX", "key" : "partInstanceId" @@ -290,7 +292,13 @@ "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", "partTypeInformation" : { "manufacturerPartId" : "4922009-56", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Vehicle Hybrid" } } @@ -299,14 +307,14 @@ { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2020-05-02T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -316,17 +324,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "3880383-57", - "key" : "manufacturerPartId" - }, { "value" : "NO-989134870198932317923938", "key" : "partInstanceId" @@ -344,13 +348,19 @@ "partTypeInformation" : { "manufacturerPartId" : "3880383-57", "customerPartId" : "3880383-57", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "customers" : [ @@ -377,17 +387,13 @@ { "catenaXId" : "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "6683834-82", - "key" : "manufacturerPartId" - }, { "value" : "NO-493575190274381019348907", "key" : "partInstanceId" @@ -405,13 +411,19 @@ "partTypeInformation" : { "manufacturerPartId" : "6683834-82", "customerPartId" : "6683834-82", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Door Key", "nameAtCustomer" : "Door Key" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37", "customers" : [ @@ -438,14 +450,14 @@ { "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-11-22T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -455,17 +467,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "5519583-63", - "key" : "manufacturerPartId" - }, { "value" : "OMAZRXWWMSPTQUEKI", "key" : "partInstanceId" @@ -486,7 +494,13 @@ "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", "partTypeInformation" : { "manufacturerPartId" : "5519583-63", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Vehicle Hybrid" } } @@ -495,14 +509,14 @@ { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2018-09-17T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -512,17 +526,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9069675-60", - "key" : "manufacturerPartId" - }, { "value" : "NO-004314332935115065980115", "key" : "partInstanceId" @@ -540,13 +550,19 @@ "partTypeInformation" : { "manufacturerPartId" : "9069675-60", "customerPartId" : "9069675-60", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "customers" : [ @@ -573,17 +589,13 @@ { "catenaXId" : "urn:uuid:4a5e9ff6-2d5c-4510-a90e-d55af3ba502f", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "8770123-80", - "key" : "manufacturerPartId" - }, { "value" : "NO-246880451848384868750731", "key" : "partInstanceId" @@ -601,13 +613,19 @@ "partTypeInformation" : { "manufacturerPartId" : "8770123-80", "customerPartId" : "8770123-80", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Door Key", "nameAtCustomer" : "Door Key" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:4a5e9ff6-2d5c-4510-a90e-d55af3ba502f", "customers" : [ @@ -634,14 +652,14 @@ { "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", "bpnl" : "BPNL00000003CSGV", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2021-10-24T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -651,17 +669,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CSGV", "key" : "manufacturerId" }, - { - "value" : "9321782-89", - "key" : "manufacturerPartId" - }, { "value" : "OMAFIVCDHEBNXKNHH", "key" : "partInstanceId" @@ -682,7 +696,13 @@ "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", "partTypeInformation" : { "manufacturerPartId" : "9321782-89", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Vehicle Hybrid" } } @@ -691,14 +711,14 @@ { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-06-28T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -708,17 +728,13 @@ ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9879317-51", - "key" : "manufacturerPartId" - }, { "value" : "NO-477013846751358222215326", "key" : "partInstanceId" @@ -736,13 +752,19 @@ "partTypeInformation" : { "manufacturerPartId" : "9879317-51", "customerPartId" : "9879317-51", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "customers" : [ @@ -769,17 +791,13 @@ { "catenaXId" : "urn:uuid:6ec3f1db-2798-454b-a73f-0d21a8966c74", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "5756987-94", - "key" : "manufacturerPartId" - }, { "value" : "NO-613963493493659233961306", "key" : "partInstanceId" @@ -797,13 +815,19 @@ "partTypeInformation" : { "manufacturerPartId" : "5756987-94", "customerPartId" : "5756987-94", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Door Key", "nameAtCustomer" : "Door Key" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:6ec3f1db-2798-454b-a73f-0d21a8966c74", "customers" : [ @@ -830,7 +854,7 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284b170", "bpnl" : "BPNL00000003CSGV", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { @@ -851,7 +875,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284b170", @@ -862,7 +886,7 @@ } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284b170", "customers" : [ @@ -889,7 +913,7 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa01", "bpnl" : "BPNL00000003CML1", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { @@ -910,7 +934,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa01", @@ -925,7 +949,7 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", "bpnl" : "BPNL00000003CML1", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { @@ -946,7 +970,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", @@ -957,14 +981,14 @@ } } ], - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2016-01-20T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -978,7 +1002,7 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", "bpnl" : "BPNL00000003CNKC", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { @@ -999,7 +1023,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", @@ -1010,7 +1034,7 @@ } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", "customers" : [ @@ -1037,17 +1061,13 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "bpnl" : "BPNL00000003CNKC", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "6245773-32", - "key" : "manufacturerPartId" - }, { "value" : "NO-341449848714937445621543", "key" : "batchId" @@ -1058,25 +1078,31 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "partTypeInformation" : { "manufacturerPartId" : "6245773-32", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } ], - "urn:bamm:io.catenax.single_level_bom_as_built:1.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2019-08-15T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -1090,17 +1116,13 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03", "bpnl" : "BPNL00000003CML1", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "4902203-92", - "key" : "manufacturerPartId" - }, { "value" : "NO-341449848714937445621543", "key" : "batchId" @@ -1111,18 +1133,24 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03", "partTypeInformation" : { "manufacturerPartId" : "4902203-92", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Door Key" } } ], - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03", "customers" : [ @@ -1149,17 +1177,13 @@ { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb03", "bpnl" : "BPNL00000003CNKC", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9770171-23", - "key" : "manufacturerPartId" - }, { "value" : "NO-341449848714937445621543", "key" : "batchId" @@ -1170,13 +1194,19 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb03", "partTypeInformation" : { "manufacturerPartId" : "9770171-23", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } @@ -1185,7 +1215,7 @@ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1200,13 +1230,27 @@ "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", "partTypeInformation" : { "manufacturerPartId" : "9649571-63", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Vehicle Model A", "digitalTwinType" : "PartType" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", "sites" : [ @@ -1219,7 +1263,7 @@ ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", "childItems" : [ @@ -1229,8 +1273,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-08-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -1244,7 +1288,7 @@ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1259,12 +1303,26 @@ "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "partTypeInformation" : { "manufacturerPartId" : "7805659-25", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ @@ -1277,7 +1335,7 @@ ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "childItems" : [ @@ -1287,8 +1345,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -1302,7 +1360,7 @@ { "catenaXId" : "urn:uuid:580d3adf-1981-44a0-a214-13d6ceed6841", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart" : [ + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart" : [ { "localIdentifiers" : [ { @@ -1319,7 +1377,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:580d3adf-1981-44a0-a214-13d6ceed6841", @@ -1336,7 +1394,7 @@ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e43842", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart" : [ + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart" : [ { "localIdentifiers" : [ { @@ -1353,7 +1411,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e43842", @@ -1370,7 +1428,7 @@ { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "sites" : [ @@ -1383,7 +1441,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1400,10 +1458,18 @@ "manufacturerPartId" : "38049661-08", "classification" : "product", "nameAtManufacturer" : "a/dev OEM A High Voltage Battery" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "childItems" : [ @@ -1414,8 +1480,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-10-03T14:48:54.709Z", @@ -1424,7 +1490,7 @@ ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -1449,7 +1515,7 @@ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "sites" : [ @@ -1462,7 +1528,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1479,10 +1545,18 @@ "manufacturerPartId" : "2586427-48", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model A" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "childItems" : [ @@ -1493,8 +1567,8 @@ }, "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003AYRE", "createdOn" : "2022-12-03T14:48:54.709Z", @@ -1507,7 +1581,7 @@ { "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "sites" : [ @@ -1520,7 +1594,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1537,10 +1611,18 @@ "manufacturerPartId" : "8840838-04", "classification" : "product", "nameAtManufacturer" : "a/dev HV Modul" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "childItems" : [ @@ -1551,8 +1633,8 @@ }, "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "quantity" : { - "quantityNumber" : 10, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CNKC", "createdOn" : "2022-01-03T14:48:54.709Z", @@ -1561,7 +1643,7 @@ ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -1586,7 +1668,7 @@ { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "sites" : [ @@ -1599,7 +1681,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1616,10 +1698,18 @@ "manufacturerPartId" : "8840374-09", "classification" : "product", "nameAtManufacturer" : "b/test ZB ZELLE" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -1643,7 +1733,7 @@ { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "sites" : [ @@ -1656,7 +1746,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1673,10 +1763,18 @@ "manufacturerPartId" : "6288246-67", "classification" : "product", "nameAtManufacturer" : "b/test OEM A High Voltage Battery" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "childItems" : [ @@ -1687,8 +1785,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-08T14:48:54.709Z", @@ -1701,7 +1799,7 @@ { "catenaXId" : "urn:uuid:4f7b1cf2-a598-4027-bc78-63f6d8e55699", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:4f7b1cf2-a598-4027-bc78-63f6d8e55699", "sites" : [ @@ -1714,7 +1812,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1731,14 +1829,22 @@ "manufacturerPartId" : "7A047C7-01", "classification" : "product", "nameAtManufacturer" : "a/dev N Tier A CathodeMaterial" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ] }, { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "sites" : [ @@ -1751,7 +1857,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1768,10 +1874,18 @@ "manufacturerPartId" : "32494586-73", "classification" : "product", "nameAtManufacturer" : "b/test Tier A Gearbox" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "childItems" : [ @@ -1782,8 +1896,8 @@ }, "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-09T14:48:54.709Z", @@ -1810,7 +1924,7 @@ { "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "sites" : [ @@ -1823,7 +1937,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1840,10 +1954,18 @@ "manufacturerPartId" : "6740244-02", "classification" : "product", "nameAtManufacturer" : "a/dev Sub Tier A Sensor" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -1868,7 +1990,7 @@ { "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", "sites" : [ @@ -1881,7 +2003,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1898,16 +2020,39 @@ "manufacturerPartId" : "7A987KK-04", "classification" : "product", "nameAtManufacturer" : "a/dev N Tier A Plastics" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", - "childItems" : [] + "childItems" : [ + { + "validityPeriod" : { + "validFrom" : "2023-03-21T08:17:29.187+01:00", + "validTo" : "2024-07-01T16:10:00.000+01:00" + }, + "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "businessPartner" : "BPNL00000003CNKC", + "createdOn" : "2022-01-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -1917,8 +2062,8 @@ }, "parentCatenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "createdOn" : "2022-02-12T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z" @@ -1932,7 +2077,7 @@ { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "sites" : [ @@ -1945,7 +2090,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -1962,10 +2107,18 @@ "manufacturerPartId" : "8583898-48", "classification" : "product", "nameAtManufacturer" : "b/test Tier B ECU1" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "childItems" : [ @@ -1976,8 +2129,8 @@ }, "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "quantity" : { - "quantityNumber" : 0.3301, - "measurementUnit" : "unit:kilogram" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-13T14:48:54.709Z", @@ -1986,7 +2139,7 @@ ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -2011,7 +2164,7 @@ { "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "sites" : [ @@ -2024,7 +2177,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -2041,10 +2194,18 @@ "manufacturerPartId" : "6775244-06", "classification" : "product", "nameAtManufacturer" : "a/dev Sub Tier B Glue" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ + "urn:samm:io.catenax.single_level_usage_as_planned:1.1.0#SingleLevelUsageAsPlanned" : [ { "parentParts" : [ { @@ -2069,7 +2230,7 @@ { "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b", "sites" : [ @@ -2082,7 +2243,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -2099,10 +2260,18 @@ "manufacturerPartId" : "6004474-20", "classification" : "product", "nameAtManufacturer" : "a/dev Vehicle Model B" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ], - "urn:bamm:io.catenax.single_level_bom_as_planned:1.1.0#SingleLevelBomAsPlanned" : [ + "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned" : [ { "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b", "childItems" : [ @@ -2113,8 +2282,8 @@ }, "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "businessPartner" : "BPNL00000003CNKC", "createdOn" : "2022-02-16T14:48:54.709Z", @@ -2127,7 +2296,7 @@ { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ + "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned" : [ { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "sites" : [ @@ -2140,7 +2309,7 @@ ] } ], - "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned" : [ + "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned" : [ { "localIdentifiers" : [ { @@ -2157,24 +2326,28 @@ "manufacturerPartId" : "1987361-42", "classification" : "product", "nameAtManufacturer" : "b/test Tire Model A" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } ] }, { "catenaXId" : "urn:uuid:44347dec-21d1-47aa-b2a7-f959bf9d424b", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-282209222605524629600815", "key" : "partInstanceId" @@ -2192,13 +2365,19 @@ "partTypeInformation" : { "manufacturerPartId" : "8840837-48", "customerPartId" : "9560617-12", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev HV MODUL", "nameAtCustomer" : "HV MODUL" } } ], - "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" : [ + "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" : [ { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -2238,17 +2417,13 @@ { "catenaXId" : "urn:uuid:b0acf3e1-3fbe-46c0-aa0b-0724caae7772", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840374-09", - "key" : "manufacturerPartId" - }, { "value" : "NO-917923082133064161014067", "key" : "partInstanceId" @@ -2266,13 +2441,19 @@ "partTypeInformation" : { "manufacturerPartId" : "8840374-09", "customerPartId" : "8840374-09", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test ZB ZELLE", "nameAtCustomer" : "ZB ZELLE" } } ], - "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" : [ + "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" : [ { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -2288,17 +2469,13 @@ { "catenaXId" : "urn:uuid:1233b405-5ac8-4867-93f8-6fdf37733737", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "4683655-00", - "key" : "manufacturerPartId" - }, { "value" : "NO-135342108157438763234738", "key" : "partInstanceId" @@ -2316,13 +2493,19 @@ "partTypeInformation" : { "manufacturerPartId" : "4683655-00", "customerPartId" : "4683655-00", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev ZB ZELLE", "nameAtCustomer" : "ZB ZELLE" } } ], - "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" : [ + "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode" : [ { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -2338,17 +2521,13 @@ { "catenaXId" : "urn:uuid:da978a30-4dde-4d76-808a-b7946763ff0d", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "1142469-27", - "key" : "manufacturerPartId" - }, { "value" : "NO-655858074471261486971940", "key" : "partInstanceId" @@ -2366,13 +2545,19 @@ "partTypeInformation" : { "manufacturerPartId" : "1142469-27", "customerPartId" : "1142469-27", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key", "nameAtCustomer" : "Door Key" } } ], - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart" : [ + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart" : [ { "localIdentifiers" : [ { @@ -2385,7 +2570,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:da978a30-4dde-4d76-808a-b7946763ff0d", @@ -2402,17 +2587,13 @@ { "catenaXId" : "urn:uuid:bcfae197-40fa-4be0-821d-5c1873a1b7c2", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "1261027-41", - "key" : "manufacturerPartId" - }, { "value" : "NO-200738629800530338038454", "key" : "partInstanceId" @@ -2430,13 +2611,19 @@ "partTypeInformation" : { "manufacturerPartId" : "1261027-41", "customerPartId" : "1261027-41", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "a/dev Door Key", "nameAtCustomer" : "Door Key" } } ], - "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart" : [ + "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart" : [ { "localIdentifiers" : [ { @@ -2449,7 +2636,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:bcfae197-40fa-4be0-821d-5c1873a1b7c2", @@ -2466,30 +2653,35 @@ { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e", "bpnl" : "BPNL00000003CML1", - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e", - "customers" : [ + "customers": [ + "BPNL00000003CML1" + ], + + "parentItems": [ { + "catenaXId": "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "quantity": { + "value": 1, + "unit": "unit:piece" + }, + "createdOn": "2023-02-03T14:48:54.709Z", + "lastModifiedOn": "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "parentItems" : [], - "createdOn" : "2022-02-03T14:48:54.709Z", - "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + "isOnlyPotentialParent": false } ] } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CML1", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" @@ -2507,21 +2699,27 @@ "partTypeInformation" : { "manufacturerPartId" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } } ], - "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fca4f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 2.5, + "unit" : "unit:litre" }, "hasAlternatives" : true, "businessPartner" : "BPNL00000003CML1", @@ -2535,7 +2733,7 @@ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fca4f", "bpnl" : "BPNL00000003CML1", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { @@ -2552,7 +2750,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fca4f", @@ -2567,30 +2765,27 @@ { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "bpnl" : "BPNL00000003CNKC", - "urn:bamm:io.catenax.single_level_usage_as_built:1.0.0#SingleLevelUsageAsBuilt" : [ + "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt" : [ { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", - "customers" : [ - { + "customers": [ + "BPNL00000003CNKC" + ], + "businessPartner" : "BPNL00000003CNKC", "parentItems" : [], "createdOn" : "2022-02-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z" - } - ] + } ], - "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart" : [ + "urn:samm:io.catenax.serial_part:3.0.0#SerialPart" : [ { "localIdentifiers" : [ { "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" @@ -2608,21 +2803,27 @@ "partTypeInformation" : { "manufacturerPartId" : "8840838-04", "customerPartId" : "8840838-04", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "HV MODUL", "nameAtCustomer" : "HV MODUL" } } ], - "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt" : [ + "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt" : [ { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 2.5, + "unit" : "unit:litre" }, "hasAlternatives" : true, "businessPartner" : "BPNL00000003CNKC", @@ -2636,7 +2837,7 @@ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "bpnl" : "BPNL00000003CNKC", - "urn:samm:io.catenax.batch:2.0.0#Batch" : [ + "urn:samm:io.catenax.batch:3.0.0#Batch" : [ { "localIdentifiers" : [ { @@ -2653,7 +2854,7 @@ } ], "manufacturingInformation" : { - "date" : "2022-02-04T14:48:54", + "date" : "2022-02-04T14:48:54Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", diff --git a/tx-backend/testdata/import-test-data-CML1_v0.0.13.json b/tx-backend/testdata/import-test-data-CML1_v0.0.13.json new file mode 100644 index 0000000000..12872f5d2d --- /dev/null +++ b/tx-backend/testdata/import-test-data-CML1_v0.0.13.json @@ -0,0 +1,1343 @@ +{ + "assets" : [ + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "OMAOYGBDTSRCMYSCX", + "key" : "partInstanceId" + }, + { + "value" : "OMAOYGBDTSRCMYSCX", + "key" : "van" + } + ], + "manufacturingInformation" : { + "date" : "2018-09-28T04:15:57.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "partTypeInformation" : { + "manufacturerPartId" : "3500076-05", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Vehicle Hybrid" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "childItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "hasAlternatives" : true, + "createdOn" : "2022-02-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "OMAYSKEITUGNVHKKX", + "key" : "partInstanceId" + }, + { + "value" : "OMAYSKEITUGNVHKKX", + "key" : "van" + } + ], + "manufacturingInformation" : { + "date" : "2015-03-07T19:38:12.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", + "partTypeInformation" : { + "manufacturerPartId" : "4922009-56", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Vehicle Hybrid" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", + "childItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "hasAlternatives" : true, + "createdOn" : "2021-01-15T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-493575190274381019348907", + "key" : "partInstanceId" + } + + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37", + "partTypeInformation" : { + "manufacturerPartId" : "6683834-82", + "customerPartId" : "6683834-82", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], + "nameAtManufacturer" : "Door Key", + "nameAtCustomer" : "Door Key" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:4e390dab-707f-446e-bfbe-653f6f5b1f37", + "customers" : [ + "BPNL00000003CNKC" + ], + "parentItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", + "createdOn" : "2023-12-05T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CNKC", + "isOnlyPotentialParent": false + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "OMAZRXWWMSPTQUEKI", + "key" : "partInstanceId" + }, + { + "value" : "OMAZRXWWMSPTQUEKI", + "key" : "van" + } + ], + "manufacturingInformation" : { + "date" : "2015-07-04T14:30:31.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", + "partTypeInformation" : { + "manufacturerPartId" : "5519583-63", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], + "nameAtManufacturer" : "Vehicle Hybrid" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", + "childItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "hasAlternatives" : true, + "createdOn" : "2022-11-22T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:4a5e9ff6-2d5c-4510-a90e-d55af3ba502f" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-246880451848384868750731", + "key" : "partInstanceId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:4a5e9ff6-2d5c-4510-a90e-d55af3ba502f", + "partTypeInformation" : { + "manufacturerPartId" : "8770123-80", + "customerPartId" : "8770123-80", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Door Key", + "nameAtCustomer" : "Door Key" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:4a5e9ff6-2d5c-4510-a90e-d55af3ba502f", + "customers" : [ + "BPNL00000003CNKC" + ], + "parentItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", + "createdOn" : "2023-04-13T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CNKC", + "isOnlyPotentialParent" : false + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:6ec3f1db-2798-454b-a73f-0d21a8966c74" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-613963493493659233961306", + "key" : "partInstanceId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:6ec3f1db-2798-454b-a73f-0d21a8966c74", + "partTypeInformation" : { + "manufacturerPartId" : "5756987-94", + "customerPartId" : "5756987-94", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Door Key", + "nameAtCustomer" : "Door Key" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:6ec3f1db-2798-454b-a73f-0d21a8966c74", + "customers" : [ + "BPNL00000003CNKC" + ], + "parentItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", + "createdOn" : "2023-08-21T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "isOnlyPotentialParent" : false, + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa01" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-341449848714937445621543", + "key" : "batchId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa01", + "partTypeInformation" : { + "manufacturerPartId" : "9858559-85", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Door Key" + } + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-341449848714937445621543", + "key" : "batchId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", + "partTypeInformation" : { + "manufacturerPartId" : "9623673-66", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Door Key" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", + "childItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "hasAlternatives" : true, + "createdOn" : "2016-01-20T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-341449848714937445621543", + "key" : "batchId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03", + "partTypeInformation" : { + "manufacturerPartId" : "4902203-92", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], + "nameAtManufacturer" : "a/dev Door Key" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa03", + "customers" : [ + "BPNL00000003CNKC" + ], + "parentItems" : [ + { + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", + "createdOn" : "2022-07-03T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "isOnlyPotentialParent" : false, + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2019-04-04T03:19:03.000Z", + "validTo" : "2024-12-29T10:25:12.000Z" + }, + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", + "partTypeInformation" : { + "manufacturerPartId" : "9649571-63", + "classification" : "product", + "nameAtManufacturer" : "a/dev Vehicle Model A" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", + "childItems" : [ + { + "validityPeriod" : { + "validFrom" : "2023-03-21T08:17:29.187+01:00", + "validTo" : "2024-07-01T16:10:00.000+01:00" + }, + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "createdOn" : "2022-08-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z", + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", + "businessPartner" : "BPNL00000003CNKC" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4da01", + "sites" : [ + { + "functionValidUntil" : "2025-02-08T04:30:48.000Z", + "function" : "production", + "functionValidFrom" : "2019-08-21T02:10:36.000Z", + "catenaXSiteId" : "BPNS000004711DMY" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e43842" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "12345678ABC", + "key" : "jisNumber" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "HUN" + }, + "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e43842", + "partTypeInformation" : { + "manufacturerPartId" : "8397292-13", + "customerPartId" : "PRT-12345", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], + "nameAtManufacturer" : "Mirror left", + "nameAtCustomer" : "a/dev side element A" + } + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2015-05-18T23:10:44.000Z", + "validTo" : "2025-10-23T14:46:01.000Z" + }, + "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", + "partTypeInformation" : { + "manufacturerPartId" : "38049661-08", + "classification" : "product", + "nameAtManufacturer" : "a/dev OEM A High Voltage Battery" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", + "childItems" : [ + { + "validityPeriod" : { + "validFrom" : "2023-03-21T08:17:29.187+01:00", + "validTo" : "2024-07-01T16:10:00.000+01:00" + }, + "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca97", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "businessPartner" : "BPNL00000003CML1", + "createdOn" : "2022-10-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", + "sites" : [ + { + "functionValidUntil" : "2027-05-23T09:16:30.000Z", + "catenaXSiteId" : "BPNS000004711DMY", + "function" : "production", + "functionValidFrom" : "2013-11-17T23:59:54.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2018-01-25T08:42:58.000Z", + "validTo" : "2029-02-10T03:24:30.000Z" + }, + "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", + "partTypeInformation" : { + "manufacturerPartId" : "7805659-25", + "classification" : "product", + "nameAtManufacturer" : "b/test Vehicle Model B" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", + "childItems" : [ + { + "validityPeriod" : { + "validFrom" : "2023-03-21T08:17:29.187+01:00", + "validTo" : "2024-07-01T16:10:00.000+01:00" + }, + "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "businessPartner" : "BPNL00000003CNKC", + "createdOn" : "2022-01-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", + "sites" : [ + { + "functionValidUntil" : "2031-11-21T03:24:27.000Z", + "catenaXSiteId" : "BPNS000004711DMY", + "function" : "production", + "functionValidFrom" : "2020-06-07T07:30:47.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:4f7b1cf2-a598-4027-bc78-63f6d8e55699" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2013-11-24T00:27:33.000Z", + "validTo" : "2025-08-16T09:18:35.000Z" + }, + "catenaXId" : "urn:uuid:4f7b1cf2-a598-4027-bc78-63f6d8e55699", + "partTypeInformation" : { + "manufacturerPartId" : "7A047C7-01", + "classification" : "product", + "nameAtManufacturer" : "a/dev N Tier A CathodeMaterial" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:4f7b1cf2-a598-4027-bc78-63f6d8e55699", + "sites" : [ + { + "functionValidUntil" : "2025-03-05T00:33:55.000Z", + "catenaXSiteId" : "BPNS00000003B0Q0", + "function" : "production", + "functionValidFrom" : "2019-09-10T14:41:50.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2013-06-18T03:47:22.000Z", + "validTo" : "2030-12-31T23:33:25.000Z" + }, + "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", + "partTypeInformation" : { + "manufacturerPartId" : "6740244-02", + "classification" : "product", + "nameAtManufacturer" : "a/dev Sub Tier A Sensor" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", + "sites" : [ + { + "functionValidUntil" : "2031-04-16T11:07:09.000Z", + "catenaXSiteId" : "BPNS00000003B3NX", + "function" : "production", + "functionValidFrom" : "2013-12-07T09:33:50.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2015-01-23T16:24:59.000Z", + "validTo" : "2031-05-04T12:01:38.000Z" + }, + "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", + "partTypeInformation" : { + "manufacturerPartId" : "7A987KK-04", + "classification" : "product", + "nameAtManufacturer" : "a/dev N Tier A Plastics" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", + "childItems" : [ + { + "validityPeriod" : { + "validFrom" : "2023-03-21T08:17:29.187+01:00", + "validTo" : "2024-07-01T16:10:00.000+01:00" + }, + "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", + "quantity" : { + "value" : 1, + "unit" : "unit:litre" + }, + "businessPartner" : "BPNL00000003CNKC", + "createdOn" : "2022-02-16T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", + "sites" : [ + { + "functionValidUntil" : "2030-01-29T19:43:54.000Z", + "catenaXSiteId" : "BPNS00000003B0Q0", + "function" : "production", + "functionValidFrom" : "2015-11-17T18:35:23.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2019-08-17T14:14:30.000Z", + "validTo" : "2032-08-30T04:32:28.000Z" + }, + "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", + "partTypeInformation" : { + "manufacturerPartId" : "6775244-06", + "classification" : "product", + "nameAtManufacturer" : "a/dev Sub Tier B Glue" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", + "sites" : [ + { + "functionValidUntil" : "2032-01-21T11:22:57.000Z", + "catenaXSiteId" : "BPNS00000003AXS3", + "function" : "production", + "functionValidFrom" : "2017-05-27T13:54:13.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", + "payload" : { + "localIdentifiers" : [ + + ], + "validityPeriod" : { + "validFrom" : "2016-04-09T20:41:14.000Z", + "validTo" : "2023-12-09T04:46:33.000Z" + }, + "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b", + "partTypeInformation" : { + "manufacturerPartId" : "6004474-20", + "classification" : "product", + "nameAtManufacturer" : "a/dev Vehicle Model B" + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b", + "childItems" : [ + { + "validityPeriod" : { + "validFrom" : "2023-03-21T08:17:29.187+01:00", + "validTo" : "2024-07-01T16:10:00.000+01:00" + }, + "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", + "quantity" : { + "value" : 1, + "unit" : "unit:litre" + }, + "businessPartner" : "BPNL00000003CNKC", + "createdOn" : "2022-02-16T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "payload" : { + "catenaXId" : "urn:uuid:68904173-ad59-4a77-8412-3e73fcafbd8b", + "sites" : [ + { + "functionValidUntil" : "2030-05-16T19:21:46.000Z", + "catenaXSiteId" : "BPNS000000815DMY", + "function" : "production", + "functionValidFrom" : "2019-10-17T03:16:09.000Z" + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:44347dec-21d1-47aa-b2a7-f959bf9d424b" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-282209222605524629600815", + "key" : "partInstanceId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:44347dec-21d1-47aa-b2a7-f959bf9d424b", + "partTypeInformation" : { + "manufacturerPartId" : "8840837-48", + "customerPartId" : "9560617-12", + "classification" : "component", + "nameAtManufacturer" : "a/dev HV MODUL", + "nameAtCustomer" : "HV MODUL" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "payload" : { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", + "subcomponents" : [ + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", + "productType" : "module" + }, + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382321", + "productType" : "module" + }, + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382322", + "productType" : "module" + }, + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382323", + "productType" : "module" + }, + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382324", + "productType" : "module" + }, + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382325", + "productType" : "module" + }, + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382326", + "productType" : "module" + } + ], + "productType" : "module" + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:1233b405-5ac8-4867-93f8-6fdf37733737" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-135342108157438763234738", + "key" : "partInstanceId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:1233b405-5ac8-4867-93f8-6fdf37733737", + "partTypeInformation" : { + "manufacturerPartId" : "4683655-00", + "customerPartId" : "4683655-00", + "classification" : "component", + "nameAtManufacturer" : "a/dev ZB ZELLE", + "nameAtCustomer" : "ZB ZELLE" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "payload" : { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", + "subcomponents" : [ + { + "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", + "productType" : "cell" + } + ], + "productType" : "cell" + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:bcfae197-40fa-4be0-821d-5c1873a1b7c2" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-200738629800530338038454", + "key" : "partInstanceId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:bcfae197-40fa-4be0-821d-5c1873a1b7c2", + "partTypeInformation" : { + "manufacturerPartId" : "1261027-41", + "customerPartId" : "1261027-41", + "classification" : "component", + "nameAtManufacturer" : "a/dev Door Key", + "nameAtCustomer" : "Door Key" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "85851549CBX", + "key" : "jisNumber" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "HUN" + }, + "catenaXId" : "urn:uuid:bcfae197-40fa-4be0-821d-5c1873a1b7c2", + "partTypeInformation" : { + "manufacturerPartId" : "5464168-83", + "customerPartId" : "PRT-12345", + "classification" : "product", + "nameAtManufacturer" : "a/dev Door Key", + "nameAtCustomer" : "Door Key" + } + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "NO-570196089623842018037372", + "key" : "partInstanceId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "DEU" + }, + "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e", + "partTypeInformation" : { + "manufacturerPartId" : "8840838-04", + "customerPartId" : "8840838-04", + "classification" : "component", + "nameAtManufacturer" : "HV MODUL", + "nameAtCustomer" : "HV MODUL" + } + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e", + "childItems" : [ + { + "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fca4f", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "hasAlternatives" : true, + "businessPartner" : "BPNL00000003CML1", + "createdOn" : "2022-02-03T14:48:54.709Z", + "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + } + ] + } + }, + { + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", + "payload" : { + "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4070e", + "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ + { + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "createdOn" : "2023-02-03T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CML1", + "isOnlyPotentialParent" : false + } + ] + } + } + ] + }, + { + "assetMetaInfo" : { + "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fca4f" + }, + "submodels" : [ + { + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", + "payload" : { + "localIdentifiers" : [ + { + "value" : "BPNL00000003CML1", + "key" : "manufacturerId" + }, + { + "value" : "BID12345678", + "key" : "batchId" + } + ], + "manufacturingInformation" : { + "date" : "2022-02-04T14:48:54.000Z", + "country" : "HUN" + }, + "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fca4f", + "partTypeInformation" : { + "manufacturerPartId" : "123-0.740-3434-A", + "partClassification" : [ + { + "classificationStandard": "classificationStandard", + "classificationID": "classificationID", + "classificationDescription": "classificationDescription" + } + ], + "nameAtManufacturer" : "Sealant" + } + } + } + ] + } + ] +} diff --git a/tx-backend/src/test/resources/testdata/importfiles/validImportFileButWrongBPN.json b/tx-backend/testdata/import-test-data-CNKC_v0.0.13.json similarity index 70% rename from tx-backend/src/test/resources/testdata/importfiles/validImportFileButWrongBPN.json rename to tx-backend/testdata/import-test-data-CNKC_v0.0.13.json index 3ff5f783fa..66676b3002 100644 --- a/tx-backend/src/test/resources/testdata/importfiles/validImportFileButWrongBPN.json +++ b/tx-backend/testdata/import-test-data-CNKC_v0.0.13.json @@ -6,45 +6,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003XXX1", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "22782277-50", - "key" : "manufacturerPartId" - }, { "value" : "NO-313869652971440618042264", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "partTypeInformation" : { "manufacturerPartId" : "22782277-50", "customerPartId" : "22782277-50", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Door f-l", "nameAtCustomer" : "b/test Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2023-02-20T14:48:54.709Z", @@ -56,25 +58,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:7eeeac86-7b69-444d-81e6-655d0f1513bd", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", - "createdOn" : "2023-05-29T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "createdOn" : "2023-05-29T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -87,45 +87,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "3880383-57", - "key" : "manufacturerPartId" - }, { "value" : "NO-989134870198932317923938", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "partTypeInformation" : { "manufacturerPartId" : "3880383-57", "customerPartId" : "3880383-57", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2020-05-02T14:48:54.709Z", @@ -137,25 +139,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:5205f736-8fc2-4585-b869-6bf36842369a", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", - "createdOn" : "2023-07-15T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:d8030bbf-a874-49fb-b2e1-7610f0ccad12", + "createdOn" : "2023-07-15T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -168,45 +168,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9069675-60", - "key" : "manufacturerPartId" - }, { "value" : "NO-004314332935115065980115", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "partTypeInformation" : { "manufacturerPartId" : "9069675-60", "customerPartId" : "9069675-60", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2018-09-17T14:48:54.709Z", @@ -218,25 +220,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:f11ddc62-3bd5-468f-b7b0-110fe13ed0cd", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", - "createdOn" : "2023-02-16T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:7c7d5aec-b15d-491c-8fbd-c61c6c02c69a", + "createdOn" : "2023-02-16T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -249,45 +249,47 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "9879317-51", - "key" : "manufacturerPartId" - }, { "value" : "NO-477013846751358222215326", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "partTypeInformation" : { "manufacturerPartId" : "9879317-51", "customerPartId" : "9879317-51", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door f-l", "nameAtCustomer" : "Door front-left" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2022-06-28T14:48:54.709Z", @@ -299,25 +301,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:c47b9f8b-48d0-4ef4-8f0b-e965a225cb8d", "customers" : [ + "BPNL00000003CSGV" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", - "createdOn" : "2023-03-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:4d33bfa6-0f1f-43a5-ad63-c3fe07a2d076", + "createdOn" : "2023-03-03T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CSGV", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -330,11 +330,11 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, { @@ -343,37 +343,41 @@ } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", "partTypeInformation" : { "manufacturerPartId" : "5894914-94", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb01", "customers" : [ + "BPNL00000003CML1" + ], + "parentItems" : [ { - "parentItems" : [ - { - "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" - }, - "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", - "createdOn" : "2023-08-08T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" - } - ], + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fa02", + "createdOn" : "2023-08-08T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", "businessPartner" : "BPNL00000003CML1", - "createdOn" : "2023-02-03T14:48:54.709Z", - "lastModifiedOn" : "2023-02-03T14:48:54.709Z" + "isOnlyPotentialParent" : false } ] } @@ -386,11 +390,11 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, { @@ -399,26 +403,32 @@ } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "partTypeInformation" : { "manufacturerPartId" : "6245773-32", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb02", "childItems" : [ { "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, "createdOn" : "2019-08-15T14:48:54.709Z", @@ -437,11 +447,11 @@ }, "submodels" : [ { - "aspectType" : "urn:samm:io.catenax.batch:2.0.0#Batch", + "aspectType" : "urn:samm:io.catenax.batch:3.0.0#Batch", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, { @@ -450,13 +460,19 @@ } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:1be6ec59-40fb-4993-9836-acb0e284fb03", "partTypeInformation" : { "manufacturerPartId" : "9770171-23", - "classification" : "component", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "b/test Door Key" } } @@ -469,8 +485,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2019-04-04T03:19:03.000Z", "validTo" : "2024-12-29T10:25:12.000Z" @@ -480,11 +498,19 @@ "manufacturerPartId" : "7805659-25", "classification" : "product", "nameAtManufacturer" : "b/test Vehicle Model B" - } + }, + "partSitesInformationAsPlanned" : [ + { + "catenaXsiteId" : "BPNS123456789A", + "function" : "production", + "functionValidFrom" : "2024-04-25T10:00:00Z", + "functionValidUntil" : "2024-04-30T10:00:00Z" + } + ] } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "childItems" : [ @@ -494,8 +520,8 @@ "validTo" : "2024-07-01T16:10:00.000+01:00" }, "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:piece" + "value" : 1, + "unit" : "unit:litre" }, "createdOn" : "2022-09-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z", @@ -506,7 +532,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4eb01", "sites" : [ @@ -527,11 +553,11 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, { @@ -540,14 +566,20 @@ } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:580d3adf-1981-44a0-a214-13d6ceed6841", "partTypeInformation" : { "manufacturerPartId" : "3578115-43", "customerPartId" : "PRT-12345", - "classification" : "product", + "partClassification" : [ + { + "classificationStandard" : "classificationStandard", + "classificationID" : "classificationID", + "classificationDescription" : "classificationDescription" + } + ], "nameAtManufacturer" : "Mirror left", "nameAtCustomer" : "b/test side element A" } @@ -561,8 +593,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2017-01-03T07:45:04.000Z", "validTo" : "2029-11-15T11:57:45.000Z" @@ -576,7 +610,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "childItems" : [ @@ -587,8 +621,8 @@ }, "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef127c", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003AYRE", "createdOn" : "2022-12-03T14:48:54.709Z", @@ -598,7 +632,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:0733946c-59c6-41ae-9570-cb43a6e4c79e", "sites" : [ @@ -619,8 +653,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2016-04-28T20:00:55.000Z", "validTo" : "2027-04-27T00:59:41.000Z" @@ -634,7 +670,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:c7a2b803-f8fe-4b79-b6fc-967ce847c9a1", "sites" : [ @@ -655,8 +691,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2015-05-18T23:10:44.000Z", "validTo" : "2025-10-23T14:46:01.000Z" @@ -670,7 +708,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "childItems" : [ @@ -681,8 +719,8 @@ }, "catenaXId" : "urn:uuid:e5c96ab5-896a-482c-8761-efd74777ca98", "quantity" : { - "quantityNumber" : 6, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-08T14:48:54.709Z", @@ -692,7 +730,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:aad27ddb-43aa-4e42-98c2-01e529ef128c", "sites" : [ @@ -713,8 +751,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2017-07-03T05:23:01.000Z", "validTo" : "2032-09-25T10:26:27.000Z" @@ -728,7 +768,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "childItems" : [ @@ -739,8 +779,8 @@ }, "catenaXId" : "urn:uuid:bee5614f-9e46-4c98-9209-61a6f2b2a7fc", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-09T14:48:54.709Z", @@ -753,8 +793,8 @@ }, "catenaXId" : "urn:uuid:4518c080-14fb-4252-b8de-4362d615868d", "quantity" : { - "quantityNumber" : 1, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-10T14:48:54.709Z", @@ -764,7 +804,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:2c57b0e9-a653-411d-bdcd-64787e9fd3a7", "sites" : [ @@ -785,8 +825,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2016-04-24T08:26:56.000Z", "validTo" : "2031-12-17T23:55:04.000Z" @@ -800,7 +842,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_planned:2.0.0#SingleLevelBomAsPlanned", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_planned:3.0.0#SingleLevelBomAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "childItems" : [ @@ -811,8 +853,8 @@ }, "catenaXId" : "urn:uuid:3cdd2826-5df0-4c7b-b540-9eeccecb2301", "quantity" : { - "quantityNumber" : 0.3301, - "measurementUnit" : "unit:kilogram" + "value" : 1, + "unit" : "unit:litre" }, "businessPartner" : "BPNL00000003CML1", "createdOn" : "2022-02-13T14:48:54.709Z", @@ -822,7 +864,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:07cb071f-8716-45fe-89f1-f2f77a1ce93b", "sites" : [ @@ -843,8 +885,10 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.part_as_planned:1.0.1#PartAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_as_planned:2.0.0#PartAsPlanned", "payload" : { + "localIdentifiers" : [ + ], "validityPeriod" : { "validFrom" : "2019-11-02T11:14:15.000Z", "validTo" : "2024-07-17T02:07:07.000Z" @@ -858,7 +902,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", + "aspectType" : "urn:samm:io.catenax.part_site_information_as_planned:1.0.0#PartSiteInformationAsPlanned", "payload" : { "catenaXId" : "urn:uuid:e8c48a8e-d2d7-43d9-a867-65c70c85f5b8", "sites" : [ @@ -879,24 +923,20 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840374-09", - "key" : "manufacturerPartId" - }, { "value" : "NO-917923082133064161014067", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:b0acf3e1-3fbe-46c0-aa0b-0724caae7772", @@ -910,7 +950,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", + "aspectType" : "urn:samm:io.catenax.traction_battery_code:1.0.0#TractionBatteryCode", "payload" : { "tractionBatteryCode" : "X12MCPM27KLPCLX2M2382320", "subcomponents" : [ @@ -930,24 +970,20 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "1142469-27", - "key" : "manufacturerPartId" - }, { "value" : "NO-655858074471261486971940", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:da978a30-4dde-4d76-808a-b7946763ff0d", @@ -961,7 +997,7 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.just_in_sequence_part:1.0.0#JustInSequencePart", + "aspectType" : "urn:samm:io.catenax.just_in_sequence_part:3.0.0#JustInSequencePart", "payload" : { "localIdentifiers" : [ { @@ -970,7 +1006,7 @@ } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "HUN" }, "catenaXId" : "urn:uuid:da978a30-4dde-4d76-808a-b7946763ff0d", @@ -991,24 +1027,20 @@ }, "submodels" : [ { - "aspectType" : "urn:bamm:io.catenax.serial_part:1.0.1#SerialPart", + "aspectType" : "urn:samm:io.catenax.serial_part:3.0.0#SerialPart", "payload" : { "localIdentifiers" : [ { - "value" : "BPNL00000003AXS3", + "value" : "BPNL00000003CNKC", "key" : "manufacturerId" }, - { - "value" : "8840837-48", - "key" : "manufacturerPartId" - }, { "value" : "NO-570196089623842018037372", "key" : "partInstanceId" } ], "manufacturingInformation" : { - "date" : "2018-09-28T04:15:57.000Z", + "date" : "2022-02-04T14:48:54.000Z", "country" : "DEU" }, "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", @@ -1022,18 +1054,18 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_bom_as_built:2.0.0#SingleLevelBomAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_bom_as_built:3.0.0#SingleLevelBomAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "childItems" : [ { "catenaXId" : "urn:uuid:e3b2f5e2-5be5-4ea6-98f0-6876de0fcb5f", "quantity" : { - "quantityNumber" : 2.5, - "measurementUnit" : "unit:litre" + "value" : 1, + "unit" : "unit:piece" }, "hasAlternatives" : true, - "businessPartner" : "BPNL00000003AXS3", + "businessPartner" : "BPNL00000003CNKC", "createdOn" : "2022-02-03T14:48:54.709Z", "lastModifiedOn" : "2022-02-03T14:48:54.709Z" } @@ -1041,15 +1073,23 @@ } }, { - "aspectType" : "urn:bamm:io.catenax.single_level_usage_as_built:2.0.0#SingleLevelUsageAsBuilt", + "aspectType" : "urn:samm:io.catenax.single_level_usage_as_built:3.0.0#SingleLevelUsageAsBuilt", "payload" : { "catenaXId" : "urn:uuid:254604ab-2153-45fb-8cad-54ef09f4080f", "customers" : [ + "BPNL00000003CNKC" + ], + "parentItems" : [ { - "businessPartner" : "BPNL00000003AXS3", - "parentItems" : [], - "createdOn" : "2022-02-03T14:48:54.709Z", - "lastModifiedOn" : "2022-02-03T14:48:54.709Z" + "catenaXId" : "urn:uuid:6b2296cc-26c0-4f38-8a22-092338c36e22", + "quantity" : { + "value" : 1, + "unit" : "unit:piece" + }, + "createdOn" : "2023-02-03T14:48:54.709Z", + "lastModifiedOn" : "2023-02-03T14:48:54.709Z", + "businessPartner" : "BPNL00000003CNKC", + "isOnlyPotentialParent" : false } ] }