@twin.org/standards-gs1 0.0.3-next.1 → 0.0.3-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/dataTypes/epcisDataTypes.js +61 -0
- package/dist/es/dataTypes/epcisDataTypes.js.map +1 -0
- package/dist/es/dataTypes/gs1DataTypes.js +2 -2
- package/dist/es/dataTypes/gs1DataTypes.js.map +1 -1
- package/dist/es/entities/gs1Location.js.map +1 -1
- package/dist/es/index.js +39 -20
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAggregationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisAssociationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisAttribute.js +2 -0
- package/dist/es/models/epcis20/IEpcisAttribute.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisBizTransaction.js +2 -0
- package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisDestination.js +2 -0
- package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisDocument.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisErrorDeclaration.js +2 -0
- package/dist/es/models/epcis20/IEpcisErrorDeclaration.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisHeader.js +2 -0
- package/dist/es/models/epcis20/IEpcisHeader.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisIlmd.js +2 -0
- package/dist/es/models/epcis20/IEpcisIlmd.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisLocation.js +2 -0
- package/dist/es/models/epcis20/IEpcisLocation.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisObjectEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisObjectEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisPersistentDisposition.js +2 -0
- package/dist/es/models/epcis20/IEpcisPersistentDisposition.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQuantity.js +2 -0
- package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQuery.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisQueryDocument.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js +2 -0
- package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQueryResults.js +2 -0
- package/dist/es/models/epcis20/IEpcisQueryResults.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQueryResultsBody.js +2 -0
- package/dist/es/models/epcis20/IEpcisQueryResultsBody.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSensorElement.js +2 -0
- package/dist/es/models/epcis20/IEpcisSensorElement.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js +2 -0
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSensorReport.js +2 -0
- package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSource.js +2 -0
- package/dist/es/models/epcis20/IEpcisSource.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisTransactionEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisTransactionEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisTransformationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisTransformationEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisVocabulary.js +2 -0
- package/dist/es/models/epcis20/IEpcisVocabulary.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisVocabularyElement.js +2 -0
- package/dist/es/models/epcis20/IEpcisVocabularyElement.js.map +1 -0
- package/dist/es/models/epcis20/epcisActionTypes.js +24 -0
- package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisBizStepTypes.js +190 -0
- package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisBizTransactionTypes.js +75 -0
- package/dist/es/models/epcis20/epcisBizTransactionTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisComponentTypes.js +77 -0
- package/dist/es/models/epcis20/epcisComponentTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisContextType.js +2 -0
- package/dist/es/models/epcis20/epcisContextType.js.map +1 -0
- package/dist/es/models/epcis20/epcisContexts.js +17 -0
- package/dist/es/models/epcis20/epcisContexts.js.map +1 -0
- package/dist/es/models/epcis20/epcisDispositionTypes.js +155 -0
- package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisErrorReasonTypes.js +20 -0
- package/dist/es/models/epcis20/epcisErrorReasonTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisEventTypes.js +29 -0
- package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisEvents.js +2 -0
- package/dist/es/models/epcis20/epcisEvents.js.map +1 -0
- package/dist/es/models/epcis20/epcisMeasurementTypes.js +301 -0
- package/dist/es/models/epcis20/epcisMeasurementTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisSensorAlertTypes.js +19 -0
- package/dist/es/models/epcis20/epcisSensorAlertTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisSourceDestTypes.js +26 -0
- package/dist/es/models/epcis20/epcisSourceDestTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisTypes.js +37 -0
- package/dist/es/models/epcis20/epcisTypes.js.map +1 -0
- package/dist/es/models/gs1/gs1Contexts.js +2 -2
- package/dist/es/models/gs1/gs1Contexts.js.map +1 -1
- package/dist/es/models/gs1/{subSiteAttributes.js → gs1SubSiteAttributes.js} +2 -2
- package/dist/es/models/gs1/gs1SubSiteAttributes.js.map +1 -0
- package/dist/es/models/gs1/{subSiteTypes.js → gs1SubSiteTypes.js} +2 -2
- package/dist/es/models/gs1/gs1SubSiteTypes.js.map +1 -0
- package/dist/es/schemas/EpcisAggregationEvent.json +273 -0
- package/dist/es/schemas/EpcisAssociationEvent.json +274 -0
- package/dist/es/schemas/EpcisDocument.json +204 -0
- package/dist/es/schemas/EpcisObjectEvent.json +277 -0
- package/dist/es/schemas/EpcisQueryDocument.json +173 -0
- package/dist/es/schemas/EpcisTransactionEvent.json +274 -0
- package/dist/es/schemas/EpcisTransformationEvent.json +290 -0
- package/dist/es/utils/gs1Validation.js +4 -4
- package/dist/es/utils/gs1Validation.js.map +1 -1
- package/dist/types/dataTypes/epcisDataTypes.d.ts +13 -0
- package/dist/types/entities/gs1Location.d.ts +4 -4
- package/dist/types/index.d.ts +39 -20
- package/dist/types/models/epcis20/IEpcisAggregationEvent.d.ts +81 -0
- package/dist/types/models/epcis20/IEpcisAssociationEvent.d.ts +80 -0
- package/dist/types/models/epcis20/IEpcisAttribute.d.ts +15 -0
- package/dist/types/models/epcis20/IEpcisBizTransaction.d.ts +20 -0
- package/dist/types/models/epcis20/IEpcisDestination.d.ts +21 -0
- package/dist/types/models/epcis20/IEpcisDocument.d.ts +35 -7
- package/dist/types/models/epcis20/IEpcisErrorDeclaration.d.ts +25 -0
- package/dist/types/models/epcis20/IEpcisEvent.d.ts +23 -22
- package/dist/types/models/epcis20/IEpcisHeader.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisIlmd.d.ts +8 -0
- package/dist/types/models/epcis20/IEpcisLocation.d.ts +12 -0
- package/dist/types/models/epcis20/IEpcisObjectEvent.d.ts +85 -0
- package/dist/types/models/epcis20/IEpcisPersistentDisposition.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisQuantity.d.ts +22 -0
- package/dist/types/models/epcis20/IEpcisQuery.d.ts +2 -1
- package/dist/types/models/epcis20/IEpcisQueryDocument.d.ts +10 -30
- package/dist/types/models/epcis20/IEpcisQueryDocumentBody.d.ts +12 -0
- package/dist/types/models/epcis20/IEpcisQueryResults.d.ts +20 -0
- package/dist/types/models/epcis20/IEpcisQueryResultsBody.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisSensorElement.d.ts +20 -0
- package/dist/types/models/epcis20/IEpcisSensorMetadata.d.ts +48 -0
- package/dist/types/models/epcis20/IEpcisSensorReport.d.ts +131 -0
- package/dist/types/models/epcis20/IEpcisSource.d.ts +20 -0
- package/dist/types/models/epcis20/IEpcisTransactionEvent.d.ts +78 -0
- package/dist/types/models/epcis20/IEpcisTransformationEvent.d.ts +96 -0
- package/dist/types/models/epcis20/IEpcisVocabulary.d.ts +16 -0
- package/dist/types/models/epcis20/IEpcisVocabularyElement.d.ts +21 -0
- package/dist/types/models/epcis20/epcisActionTypes.d.ts +25 -0
- package/dist/types/models/epcis20/epcisBizStepTypes.d.ts +193 -0
- package/dist/types/models/epcis20/epcisBizTransactionTypes.d.ts +74 -0
- package/dist/types/models/epcis20/epcisComponentTypes.d.ts +76 -0
- package/dist/types/models/epcis20/epcisContextType.d.ts +15 -0
- package/dist/types/models/epcis20/epcisContexts.d.ts +17 -0
- package/dist/types/models/epcis20/epcisDispositionTypes.d.ts +158 -0
- package/dist/types/models/epcis20/epcisErrorReasonTypes.d.ts +19 -0
- package/dist/types/models/epcis20/epcisEventTypes.d.ts +29 -0
- package/dist/types/models/epcis20/epcisEvents.d.ts +11 -0
- package/dist/types/models/epcis20/epcisMeasurementTypes.d.ts +303 -0
- package/dist/types/models/epcis20/epcisSensorAlertTypes.d.ts +19 -0
- package/dist/types/models/epcis20/epcisSourceDestTypes.d.ts +26 -0
- package/dist/types/models/epcis20/epcisTypes.d.ts +37 -0
- package/dist/types/models/gs1/gs1Contexts.d.ts +2 -2
- package/dist/types/models/gs1/{subSiteAttributes.d.ts → gs1SubSiteAttributes.d.ts} +2 -2
- package/dist/types/models/gs1/{subSiteTypes.d.ts → gs1SubSiteTypes.d.ts} +2 -2
- package/docs/changelog.md +71 -0
- package/docs/reference/classes/EpcisDataTypes.md +37 -0
- package/docs/reference/classes/Gs1Location.md +2 -2
- package/docs/reference/index.md +52 -27
- package/docs/reference/interfaces/IEpcisAggregationEvent.md +223 -0
- package/docs/reference/interfaces/IEpcisAssociationEvent.md +222 -0
- package/docs/reference/interfaces/IEpcisAttribute.md +31 -0
- package/docs/reference/interfaces/IEpcisBizTransaction.md +35 -0
- package/docs/reference/interfaces/IEpcisDestination.md +36 -0
- package/docs/reference/interfaces/IEpcisDocument.md +67 -3
- package/docs/reference/interfaces/IEpcisErrorDeclaration.md +44 -0
- package/docs/reference/interfaces/IEpcisEvent.md +46 -30
- package/docs/reference/interfaces/IEpcisHeader.md +31 -0
- package/docs/reference/interfaces/IEpcisIlmd.md +16 -0
- package/docs/reference/interfaces/IEpcisLocation.md +24 -0
- package/docs/reference/interfaces/IEpcisObjectEvent.md +228 -0
- package/docs/reference/interfaces/IEpcisPersistentDisposition.md +32 -0
- package/docs/reference/interfaces/IEpcisQuantity.md +42 -0
- package/docs/reference/interfaces/IEpcisQuery.md +5 -1
- package/docs/reference/interfaces/IEpcisQueryDocument.md +20 -34
- package/docs/reference/interfaces/IEpcisQueryDocumentBody.md +23 -0
- package/docs/reference/interfaces/IEpcisQueryResults.md +39 -0
- package/docs/reference/interfaces/IEpcisQueryResultsBody.md +31 -0
- package/docs/reference/interfaces/IEpcisSensorElement.md +34 -0
- package/docs/reference/interfaces/IEpcisSensorMetadata.md +88 -0
- package/docs/reference/interfaces/IEpcisSensorReport.md +232 -0
- package/docs/reference/interfaces/IEpcisSource.md +35 -0
- package/docs/reference/interfaces/IEpcisTransactionEvent.md +220 -0
- package/docs/reference/interfaces/IEpcisTransformationEvent.md +249 -0
- package/docs/reference/interfaces/IEpcisVocabulary.md +31 -0
- package/docs/reference/interfaces/IEpcisVocabularyElement.md +40 -0
- package/docs/reference/type-aliases/EpcisActionTypes.md +6 -0
- package/docs/reference/type-aliases/EpcisBizStepTypes.md +8 -0
- package/docs/reference/type-aliases/EpcisBizTransactionTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisComponentTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisContextType.md +6 -0
- package/docs/reference/type-aliases/EpcisContexts.md +5 -0
- package/docs/reference/type-aliases/EpcisDispositionTypes.md +9 -0
- package/docs/reference/type-aliases/EpcisErrorReasonTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisEventTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisEvents.md +6 -0
- package/docs/reference/type-aliases/EpcisMeasurementTypes.md +8 -0
- package/docs/reference/type-aliases/EpcisSensorAlertTypes.md +6 -0
- package/docs/reference/type-aliases/EpcisSourceDestTypes.md +6 -0
- package/docs/reference/type-aliases/Gs1SubSiteAttributes.md +7 -0
- package/docs/reference/type-aliases/Gs1SubSiteTypes.md +7 -0
- package/docs/reference/variables/EpcisActionTypes.md +28 -0
- package/docs/reference/variables/EpcisBizStepTypes.md +270 -0
- package/docs/reference/variables/EpcisBizTransactionTypes.md +98 -0
- package/docs/reference/variables/EpcisComponentTypes.md +102 -0
- package/docs/reference/variables/EpcisContexts.md +19 -0
- package/docs/reference/variables/{DispositionTypes.md → EpcisDispositionTypes.md} +81 -4
- package/docs/reference/variables/EpcisErrorReasonTypes.md +21 -0
- package/docs/reference/variables/{EventTypes.md → EpcisEventTypes.md} +8 -8
- package/docs/reference/variables/EpcisMeasurementTypes.md +442 -0
- package/docs/reference/variables/EpcisSensorAlertTypes.md +20 -0
- package/docs/reference/variables/EpcisSourceDestTypes.md +29 -0
- package/docs/reference/variables/GS1Contexts.md +3 -3
- package/docs/reference/variables/{SubSiteAttributes.md → Gs1SubSiteAttributes.md} +2 -2
- package/docs/reference/variables/{SubSiteTypes.md → Gs1SubSiteTypes.md} +2 -2
- package/package.json +1 -1
- package/dist/es/models/epcis20/IAggregationEvent.js +0 -2
- package/dist/es/models/epcis20/IAggregationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IAssociationEvent.js +0 -2
- package/dist/es/models/epcis20/IAssociationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IBaseAggregationEvent.js +0 -2
- package/dist/es/models/epcis20/IBaseAggregationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IBizTransaction.js +0 -4
- package/dist/es/models/epcis20/IBizTransaction.js.map +0 -1
- package/dist/es/models/epcis20/IDestination.js +0 -4
- package/dist/es/models/epcis20/IDestination.js.map +0 -1
- package/dist/es/models/epcis20/IEpcisEventDetails.js +0 -2
- package/dist/es/models/epcis20/IEpcisEventDetails.js.map +0 -1
- package/dist/es/models/epcis20/IObjectEvent.js +0 -2
- package/dist/es/models/epcis20/IObjectEvent.js.map +0 -1
- package/dist/es/models/epcis20/IQuantity.js +0 -4
- package/dist/es/models/epcis20/IQuantity.js.map +0 -1
- package/dist/es/models/epcis20/ISensorElement.js +0 -2
- package/dist/es/models/epcis20/ISensorElement.js.map +0 -1
- package/dist/es/models/epcis20/ISensorMetadata.js +0 -4
- package/dist/es/models/epcis20/ISensorMetadata.js.map +0 -1
- package/dist/es/models/epcis20/ISensorReport.js +0 -4
- package/dist/es/models/epcis20/ISensorReport.js.map +0 -1
- package/dist/es/models/epcis20/ISimpleLocation.js +0 -4
- package/dist/es/models/epcis20/ISimpleLocation.js.map +0 -1
- package/dist/es/models/epcis20/ISource.js +0 -4
- package/dist/es/models/epcis20/ISource.js.map +0 -1
- package/dist/es/models/epcis20/actionTypes.js +0 -21
- package/dist/es/models/epcis20/actionTypes.js.map +0 -1
- package/dist/es/models/epcis20/bizStepTypes.js +0 -52
- package/dist/es/models/epcis20/bizStepTypes.js.map +0 -1
- package/dist/es/models/epcis20/dispositionTypes.js +0 -45
- package/dist/es/models/epcis20/dispositionTypes.js.map +0 -1
- package/dist/es/models/epcis20/epcisErrorTypes.js +0 -11
- package/dist/es/models/epcis20/epcisErrorTypes.js.map +0 -1
- package/dist/es/models/epcis20/epcisEventUnionType.js +0 -2
- package/dist/es/models/epcis20/epcisEventUnionType.js.map +0 -1
- package/dist/es/models/epcis20/eventTypes.js +0 -29
- package/dist/es/models/epcis20/eventTypes.js.map +0 -1
- package/dist/es/models/gs1/subSiteAttributes.js.map +0 -1
- package/dist/es/models/gs1/subSiteTypes.js.map +0 -1
- package/dist/types/models/epcis20/IAggregationEvent.d.ts +0 -10
- package/dist/types/models/epcis20/IAssociationEvent.d.ts +0 -10
- package/dist/types/models/epcis20/IBaseAggregationEvent.d.ts +0 -19
- package/dist/types/models/epcis20/IBizTransaction.d.ts +0 -13
- package/dist/types/models/epcis20/IDestination.d.ts +0 -13
- package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +0 -35
- package/dist/types/models/epcis20/IObjectEvent.d.ts +0 -25
- package/dist/types/models/epcis20/IQuantity.d.ts +0 -13
- package/dist/types/models/epcis20/ISensorElement.d.ts +0 -15
- package/dist/types/models/epcis20/ISensorMetadata.d.ts +0 -21
- package/dist/types/models/epcis20/ISensorReport.d.ts +0 -17
- package/dist/types/models/epcis20/ISimpleLocation.d.ts +0 -9
- package/dist/types/models/epcis20/ISource.d.ts +0 -13
- package/dist/types/models/epcis20/actionTypes.d.ts +0 -21
- package/dist/types/models/epcis20/bizStepTypes.d.ts +0 -52
- package/dist/types/models/epcis20/dispositionTypes.d.ts +0 -44
- package/dist/types/models/epcis20/epcisErrorTypes.d.ts +0 -11
- package/dist/types/models/epcis20/epcisEventUnionType.d.ts +0 -7
- package/dist/types/models/epcis20/eventTypes.d.ts +0 -29
- package/docs/reference/interfaces/IAggregationEvent.md +0 -223
- package/docs/reference/interfaces/IAssociationEvent.md +0 -223
- package/docs/reference/interfaces/IBizTransaction.md +0 -19
- package/docs/reference/interfaces/IDestination.md +0 -19
- package/docs/reference/interfaces/IEpcisEventDetails.md +0 -167
- package/docs/reference/interfaces/IObjectEvent.md +0 -211
- package/docs/reference/interfaces/IQuantity.md +0 -19
- package/docs/reference/interfaces/ISensorElement.md +0 -19
- package/docs/reference/interfaces/ISensorMetadata.md +0 -35
- package/docs/reference/interfaces/ISensorReport.md +0 -27
- package/docs/reference/interfaces/ISimpleLocation.md +0 -11
- package/docs/reference/interfaces/ISource.md +0 -19
- package/docs/reference/type-aliases/ActionTypes.md +0 -5
- package/docs/reference/type-aliases/BizStepTypes.md +0 -5
- package/docs/reference/type-aliases/DispositionTypes.md +0 -5
- package/docs/reference/type-aliases/EpcisErrorTypes.md +0 -5
- package/docs/reference/type-aliases/EpcisEventUnionType.md +0 -5
- package/docs/reference/type-aliases/EventTypes.md +0 -5
- package/docs/reference/type-aliases/SubSiteAttributes.md +0 -7
- package/docs/reference/type-aliases/SubSiteTypes.md +0 -7
- package/docs/reference/variables/ActionTypes.md +0 -25
- package/docs/reference/variables/BizStepTypes.md +0 -173
- package/docs/reference/variables/EpcisErrorTypes.md +0 -15
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/gs1-epcis/EpcisTransactionEvent",
|
|
4
|
+
"description": "EPCIS 2.0 TransactionEvent relating objects or quantities to one or more business transactions, optionally with a parent identifier.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"description": "Allowed shapes for an EPCIS 2.0 JSON-LD `@context`, anchored on the GS1 context root and optionally augmented with custom entries.",
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
19
|
+
},
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"maxItems": 1
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "array",
|
|
25
|
+
"minItems": 2,
|
|
26
|
+
"prefixItems": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string",
|
|
29
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "array",
|
|
41
|
+
"minItems": 2,
|
|
42
|
+
"prefixItems": [
|
|
43
|
+
{
|
|
44
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "string",
|
|
48
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"items": {
|
|
52
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"@id": {
|
|
58
|
+
"anyOf": [
|
|
59
|
+
{
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"@included": {
|
|
71
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
72
|
+
},
|
|
73
|
+
"@graph": {
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{
|
|
76
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"@nest": {
|
|
87
|
+
"anyOf": [
|
|
88
|
+
{
|
|
89
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"@type": {
|
|
100
|
+
"anyOf": [
|
|
101
|
+
{
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"@reverse": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"@index": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"type": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"const": "TransactionEvent",
|
|
124
|
+
"description": "Fixed to TransactionEvent."
|
|
125
|
+
},
|
|
126
|
+
"eventID": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "URI identifier of a specific EPCIS event (alias of id in JSON or XML)."
|
|
129
|
+
},
|
|
130
|
+
"certificationInfo": {
|
|
131
|
+
"anyOf": [
|
|
132
|
+
{
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "array",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"description": "(Optional) CertificationDetails relevant for Objects, Places and/or Organizations mentioned in this Event."
|
|
143
|
+
},
|
|
144
|
+
"errorDeclaration": {
|
|
145
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisErrorDeclaration",
|
|
146
|
+
"description": "Error declaration."
|
|
147
|
+
},
|
|
148
|
+
"eventTime": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "The date and time at which the EPCIS Capturing Applications asserts the event occurred."
|
|
151
|
+
},
|
|
152
|
+
"eventTimeZoneOffset": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"description": "The time zone offset in effect at the time and place the event occurred, expressed as an offset from UTC."
|
|
155
|
+
},
|
|
156
|
+
"recordTime": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"description": "(Optional) The date and time at which this event was recorded by an EPCIS Repository; ignored at capture and present on query results."
|
|
159
|
+
},
|
|
160
|
+
"bizTransactionList": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
|
|
164
|
+
},
|
|
165
|
+
"description": "Business transaction list (required by schema)."
|
|
166
|
+
},
|
|
167
|
+
"parentID": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "(Optional when action is OBSERVE, required otherwise) Identifier of the parent of the aggregation or association; use the pure identity URI when the parent is an EPC."
|
|
170
|
+
},
|
|
171
|
+
"epcList": {
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"description": "(Optional) An unordered list of one or more EPCs naming specific objects to which the event pertained."
|
|
177
|
+
},
|
|
178
|
+
"quantityList": {
|
|
179
|
+
"type": "array",
|
|
180
|
+
"items": {
|
|
181
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
|
|
182
|
+
},
|
|
183
|
+
"description": "An unordered list of one or more QuantityElements identifying (at the class level) contained objects."
|
|
184
|
+
},
|
|
185
|
+
"action": {
|
|
186
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisActionTypes",
|
|
187
|
+
"description": "How this event relates to the lifecycle of the EPCs named in this event."
|
|
188
|
+
},
|
|
189
|
+
"bizStep": {
|
|
190
|
+
"anyOf": [
|
|
191
|
+
{
|
|
192
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "string"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"description": "(Optional) The business step of which this event was a part."
|
|
199
|
+
},
|
|
200
|
+
"disposition": {
|
|
201
|
+
"anyOf": [
|
|
202
|
+
{
|
|
203
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"description": "(Optional) The business condition of the objects associated with the EPCs, presumed to hold true until contradicted by a subsequent event."
|
|
210
|
+
},
|
|
211
|
+
"readPoint": {
|
|
212
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
|
|
213
|
+
"description": "(Optional) The read point at which the event took place."
|
|
214
|
+
},
|
|
215
|
+
"bizLocation": {
|
|
216
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
|
|
217
|
+
"description": "(Optional) The business location where the objects associated with the EPCs may be found, until contradicted by a subsequent event."
|
|
218
|
+
},
|
|
219
|
+
"sourceList": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisSource"
|
|
223
|
+
},
|
|
224
|
+
"description": "(Optional) Unordered list of Source elements that provide context about the originating endpoint of a business transfer of which this event is a part."
|
|
225
|
+
},
|
|
226
|
+
"destinationList": {
|
|
227
|
+
"type": "array",
|
|
228
|
+
"items": {
|
|
229
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisDestination"
|
|
230
|
+
},
|
|
231
|
+
"description": "(Optional) Unordered list of Destination elements that provide context about the terminating endpoint of a business transfer of which this event is a part."
|
|
232
|
+
},
|
|
233
|
+
"sensorElementList": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {
|
|
236
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisSensorElement"
|
|
237
|
+
},
|
|
238
|
+
"description": "(Optional) Connects event to one or more SensorElements."
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"required": [
|
|
242
|
+
"@context",
|
|
243
|
+
"action",
|
|
244
|
+
"bizTransactionList",
|
|
245
|
+
"eventTime",
|
|
246
|
+
"eventTimeZoneOffset",
|
|
247
|
+
"type"
|
|
248
|
+
],
|
|
249
|
+
"additionalProperties": {
|
|
250
|
+
"anyOf": [
|
|
251
|
+
{
|
|
252
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "array"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/gs1-epcis/EpcisTransformationEvent",
|
|
4
|
+
"description": "EPCIS 2.0 TransformationEvent describing how inputs are transformed into outputs during a business process.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"@context": {
|
|
8
|
+
"description": "Allowed shapes for an EPCIS 2.0 JSON-LD `@context`, anchored on the GS1 context root and optionally augmented with custom entries.",
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "array",
|
|
16
|
+
"items": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
19
|
+
},
|
|
20
|
+
"minItems": 1,
|
|
21
|
+
"maxItems": 1
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "array",
|
|
25
|
+
"minItems": 2,
|
|
26
|
+
"prefixItems": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string",
|
|
29
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"items": {
|
|
36
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "array",
|
|
41
|
+
"minItems": 2,
|
|
42
|
+
"prefixItems": [
|
|
43
|
+
{
|
|
44
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "string",
|
|
48
|
+
"const": "https://ref.gs1.org/epcis/"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"items": {
|
|
52
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"@id": {
|
|
58
|
+
"anyOf": [
|
|
59
|
+
{
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"@included": {
|
|
71
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
72
|
+
},
|
|
73
|
+
"@graph": {
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{
|
|
76
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"@nest": {
|
|
87
|
+
"anyOf": [
|
|
88
|
+
{
|
|
89
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdJsonObject"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"@type": {
|
|
100
|
+
"anyOf": [
|
|
101
|
+
{
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "array",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"@reverse": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": {
|
|
115
|
+
"type": "string"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"@index": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"type": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"const": "TransformationEvent",
|
|
124
|
+
"description": "Fixed to TransformationEvent."
|
|
125
|
+
},
|
|
126
|
+
"eventID": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"description": "URI identifier of a specific EPCIS event (alias of id in JSON or XML)."
|
|
129
|
+
},
|
|
130
|
+
"certificationInfo": {
|
|
131
|
+
"anyOf": [
|
|
132
|
+
{
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "array",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"description": "(Optional) CertificationDetails relevant for Objects, Places and/or Organizations mentioned in this Event."
|
|
143
|
+
},
|
|
144
|
+
"errorDeclaration": {
|
|
145
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisErrorDeclaration",
|
|
146
|
+
"description": "Error declaration."
|
|
147
|
+
},
|
|
148
|
+
"eventTime": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "The date and time at which the EPCIS Capturing Applications asserts the event occurred."
|
|
151
|
+
},
|
|
152
|
+
"eventTimeZoneOffset": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"description": "The time zone offset in effect at the time and place the event occurred, expressed as an offset from UTC."
|
|
155
|
+
},
|
|
156
|
+
"recordTime": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"description": "(Optional) The date and time at which this event was recorded by an EPCIS Repository; ignored at capture and present on query results."
|
|
159
|
+
},
|
|
160
|
+
"inputEPCList": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"description": "(Optional) Unordered list of one or more EPCs identifying (at the instance level) objects that were inputs to the transformation."
|
|
166
|
+
},
|
|
167
|
+
"inputQuantityList": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
|
|
171
|
+
},
|
|
172
|
+
"description": "(Optional) Unordered list of one or more QuantityElements identifying class-level inputs; may be omitted subject to the EPCIS quantity-list constraints."
|
|
173
|
+
},
|
|
174
|
+
"outputEPCList": {
|
|
175
|
+
"type": "array",
|
|
176
|
+
"items": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"description": "(Optional) Unordered list of one or more EPCs naming (at the instance level) objects that were outputs from the transformation."
|
|
180
|
+
},
|
|
181
|
+
"outputQuantityList": {
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
|
|
185
|
+
},
|
|
186
|
+
"description": "(Optional) Unordered list of one or more QuantityElements identifying class-level outputs; may be omitted subject to the EPCIS quantity-list constraints."
|
|
187
|
+
},
|
|
188
|
+
"transformationID": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"description": "A unique identifier linking TransformationEvents; shared values connect inputs and outputs across those events."
|
|
191
|
+
},
|
|
192
|
+
"bizStep": {
|
|
193
|
+
"anyOf": [
|
|
194
|
+
{
|
|
195
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"type": "string"
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"description": "(Optional) The business step of which this event was a part."
|
|
202
|
+
},
|
|
203
|
+
"disposition": {
|
|
204
|
+
"anyOf": [
|
|
205
|
+
{
|
|
206
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "string"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"description": "(Optional) The business condition of the objects associated with the EPCs, presumed to hold true until contradicted by a subsequent event."
|
|
213
|
+
},
|
|
214
|
+
"persistentDisposition": {
|
|
215
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisPersistentDisposition",
|
|
216
|
+
"description": "Persistent disposition."
|
|
217
|
+
},
|
|
218
|
+
"readPoint": {
|
|
219
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
|
|
220
|
+
"description": "(Optional) The read point at which the event took place."
|
|
221
|
+
},
|
|
222
|
+
"bizLocation": {
|
|
223
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
|
|
224
|
+
"description": "(Optional) The business location where the objects associated with the EPCs may be found, until contradicted by a subsequent event."
|
|
225
|
+
},
|
|
226
|
+
"bizTransactionList": {
|
|
227
|
+
"type": "array",
|
|
228
|
+
"items": {
|
|
229
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
|
|
230
|
+
},
|
|
231
|
+
"description": "An unordered list of business transactions that define the context of this event."
|
|
232
|
+
},
|
|
233
|
+
"sourceList": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {
|
|
236
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisSource"
|
|
237
|
+
},
|
|
238
|
+
"description": "(Optional) Unordered list of Source elements that provide context about the originating endpoint of a business transfer of which this event is a part."
|
|
239
|
+
},
|
|
240
|
+
"destinationList": {
|
|
241
|
+
"type": "array",
|
|
242
|
+
"items": {
|
|
243
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisDestination"
|
|
244
|
+
},
|
|
245
|
+
"description": "(Optional) Unordered list of Destination elements that provide context about the terminating endpoint of a business transfer of which this event is a part."
|
|
246
|
+
},
|
|
247
|
+
"sensorElementList": {
|
|
248
|
+
"type": "array",
|
|
249
|
+
"items": {
|
|
250
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisSensorElement"
|
|
251
|
+
},
|
|
252
|
+
"description": "(Optional) Connects event to one or more SensorElements."
|
|
253
|
+
},
|
|
254
|
+
"ilmd": {
|
|
255
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisIlmd",
|
|
256
|
+
"description": "(Optional) Instance/Lot master data that describes the objects created during this event."
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"required": [
|
|
260
|
+
"@context",
|
|
261
|
+
"eventTime",
|
|
262
|
+
"eventTimeZoneOffset",
|
|
263
|
+
"type"
|
|
264
|
+
],
|
|
265
|
+
"additionalProperties": {
|
|
266
|
+
"anyOf": [
|
|
267
|
+
{
|
|
268
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"type": "array"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { Is, Validation } from "@twin.org/core";
|
|
4
4
|
import { IdentifierHandlerFactory } from "@twin.org/data-core";
|
|
5
5
|
import { Gs1IdentifierTypes } from "../models/gs1/gs1IdentifierTypes.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { Gs1SubSiteAttributes } from "../models/gs1/gs1SubSiteAttributes.js";
|
|
7
|
+
import { Gs1SubSiteTypes } from "../models/gs1/gs1SubSiteTypes.js";
|
|
8
8
|
/**
|
|
9
9
|
* Validation for GS1 types.
|
|
10
10
|
*/
|
|
@@ -39,10 +39,10 @@ export class Gs1Validation {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
if (Is.notEmpty(value.sst)) {
|
|
42
|
-
Validation.arrayOneOf("value.sst", value.sst, Object.values(
|
|
42
|
+
Validation.arrayOneOf("value.sst", value.sst, Object.values(Gs1SubSiteTypes), failures);
|
|
43
43
|
}
|
|
44
44
|
if (Is.notEmpty(value.ssa)) {
|
|
45
|
-
Validation.arrayOneOf("value.ssa", value.ssa, Object.values(
|
|
45
|
+
Validation.arrayOneOf("value.ssa", value.ssa, Object.values(Gs1SubSiteAttributes), failures);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
return is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gs1Validation.js","sourceRoot":"","sources":["../../../src/utils/gs1Validation.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,EAAE,EAA2B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"gs1Validation.js","sourceRoot":"","sources":["../../../src/utils/gs1Validation.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,EAAE,EAA2B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,aAAa;IACzB;;;;;;;OAOG;IACI,MAAM,CAAC,kBAAkB,CAC/B,YAAoB,EACpB,KAAkB,EAClB,QAA8B,EAC9B,SAAmB;QAEnB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAc,KAAK,CAAC,CAAC;QAEzC,IAAI,EAAE,EAAE,CAAC;YACR,IAAI,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC9B,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;gBACpF,IAAI,iBAAiB,EAAE,CAAC;oBACvB,iBAAiB,CAAC,QAAQ,uBAAiC,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;gBAChF,CAAC;YACF,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC/D,QAAQ,CAAC,IAAI,CAAC;oBACb,QAAQ,4BAAsC;oBAC9C,MAAM,EAAE,mCAAmC;iBAC3C,CAAC,CAAC;YACJ,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;gBACjE,QAAQ,CAAC,IAAI,CAAC;oBACb,QAAQ,6BAAuC;oBAC/C,MAAM,EAAE,oCAAoC;iBAC5C,CAAC,CAAC;YACJ,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,UAAU,CAAC,UAAU,cAEpB,KAAK,CAAC,GAAG,EACT,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAC9B,QAAQ,CACR,CAAC;YACH,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,UAAU,CAAC,UAAU,cAEpB,KAAK,CAAC,GAAG,EACT,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,EACnC,QAAQ,CACR,CAAC;YACH,CAAC;QACF,CAAC;QAED,OAAO,EAAE,CAAC;IACX,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Is, type IValidationFailure, Validation } from \"@twin.org/core\";\nimport { IdentifierHandlerFactory } from \"@twin.org/data-core\";\nimport { nameof } from \"@twin.org/nameof\";\nimport type { Gs1Location } from \"../entities/gs1Location.js\";\nimport { Gs1IdentifierTypes } from \"../models/gs1/gs1IdentifierTypes.js\";\nimport { Gs1SubSiteAttributes } from \"../models/gs1/gs1SubSiteAttributes.js\";\nimport { Gs1SubSiteTypes } from \"../models/gs1/gs1SubSiteTypes.js\";\n\n/**\n * Validation for GS1 types.\n */\nexport class Gs1Validation {\n\t/**\n\t * Validate if the property is a valid location.\n\t * @param propertyName The name of the property being validated.\n\t * @param value The value to test.\n\t * @param failures The list of failures to add to.\n\t * @param container The object which contains this one.\n\t * @returns True if the value is a location.\n\t */\n\tpublic static locationMasterData(\n\t\tpropertyName: string,\n\t\tvalue: Gs1Location,\n\t\tfailures: IValidationFailure[],\n\t\tcontainer?: unknown\n\t): value is Gs1Location {\n\t\tconst is = Is.object<Gs1Location>(value);\n\n\t\tif (is) {\n\t\t\tif (Is.stringValue(value.id)) {\n\t\t\t\tconst identifierHandler = IdentifierHandlerFactory.get(Gs1IdentifierTypes.EpcIdGln);\n\t\t\t\tif (identifierHandler) {\n\t\t\t\t\tidentifierHandler.validate(nameof(value.id, propertyName), value.id, failures);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.latitude) && !Is.number(value.latitude)) {\n\t\t\t\tfailures.push({\n\t\t\t\t\tproperty: nameof(value.latitude, propertyName),\n\t\t\t\t\treason: \"validation.geoCoordinatesLatitude\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.longitude) && !Is.number(value.longitude)) {\n\t\t\t\tfailures.push({\n\t\t\t\t\tproperty: nameof(value.longitude, propertyName),\n\t\t\t\t\treason: \"validation.geoCoordinatesLongitude\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.sst)) {\n\t\t\t\tValidation.arrayOneOf(\n\t\t\t\t\tnameof(value.sst),\n\t\t\t\t\tvalue.sst,\n\t\t\t\t\tObject.values(Gs1SubSiteTypes),\n\t\t\t\t\tfailures\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.ssa)) {\n\t\t\t\tValidation.arrayOneOf(\n\t\t\t\t\tnameof(value.ssa),\n\t\t\t\t\tvalue.ssa,\n\t\t\t\t\tObject.values(Gs1SubSiteAttributes),\n\t\t\t\t\tfailures\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn is;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Handle all the data types for EPCIS.
|
|
3
|
+
*/
|
|
4
|
+
export declare class EpcisDataTypes {
|
|
5
|
+
/**
|
|
6
|
+
* Register the JSON-LD Redirects.
|
|
7
|
+
*/
|
|
8
|
+
static registerRedirects(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Register all the data types.
|
|
11
|
+
*/
|
|
12
|
+
static registerTypes(): void;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Gs1SubSiteAttributes } from "../models/gs1/gs1SubSiteAttributes.js";
|
|
2
|
+
import type { Gs1SubSiteTypes } from "../models/gs1/gs1SubSiteTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface describing a GS1 Location master data.
|
|
5
5
|
* Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
|
|
@@ -17,11 +17,11 @@ export declare class Gs1Location {
|
|
|
17
17
|
/**
|
|
18
18
|
* Sub site type describes the primary business function of the sub site location.
|
|
19
19
|
*/
|
|
20
|
-
sst?:
|
|
20
|
+
sst?: Gs1SubSiteTypes;
|
|
21
21
|
/**
|
|
22
22
|
* Sub site attribute further qualifies the business function of the sub site location.
|
|
23
23
|
*/
|
|
24
|
-
ssa?:
|
|
24
|
+
ssa?: Gs1SubSiteAttributes;
|
|
25
25
|
/**
|
|
26
26
|
* Sub site detail provides additional proprietary information.
|
|
27
27
|
*/
|