@twin.org/standards-gs1 0.0.3-next.10 → 0.0.3-next.12
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/index.js +26 -7
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -1
- 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 +0 -2
- package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisDestination.js +0 -2
- package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -1
- 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.map +1 -1
- 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 +0 -2
- package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -1
- 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.map +1 -1
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js +0 -2
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisSensorReport.js +0 -2
- package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisSource.js +0 -2
- package/dist/es/models/epcis20/IEpcisSource.js.map +1 -1
- 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 +7 -4
- package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -1
- package/dist/es/models/epcis20/epcisBizStepTypes.js +140 -2
- package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -1
- 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 +112 -2
- package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -1
- 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 +6 -6
- package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -1
- 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/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/types/dataTypes/epcisDataTypes.d.ts +13 -0
- package/dist/types/index.d.ts +26 -7
- package/dist/types/models/epcis20/IEpcisAggregationEvent.d.ts +75 -4
- package/dist/types/models/epcis20/IEpcisAssociationEvent.d.ts +74 -4
- package/dist/types/models/epcis20/IEpcisAttribute.d.ts +15 -0
- package/dist/types/models/epcis20/IEpcisBizTransaction.d.ts +12 -5
- package/dist/types/models/epcis20/IEpcisDestination.d.ts +13 -5
- 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 +72 -12
- package/dist/types/models/epcis20/IEpcisPersistentDisposition.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisQuantity.d.ts +14 -5
- 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 +13 -8
- package/dist/types/models/epcis20/IEpcisSensorMetadata.d.ts +37 -10
- package/dist/types/models/epcis20/IEpcisSensorReport.d.ts +122 -8
- package/dist/types/models/epcis20/IEpcisSource.d.ts +12 -5
- 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 +9 -5
- package/dist/types/models/epcis20/epcisBizStepTypes.d.ts +144 -3
- 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 +117 -3
- package/dist/types/models/epcis20/epcisErrorReasonTypes.d.ts +19 -0
- package/dist/types/models/epcis20/epcisEventTypes.d.ts +7 -7
- 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/docs/changelog.md +15 -0
- package/docs/reference/classes/EpcisDataTypes.md +37 -0
- package/docs/reference/index.md +40 -15
- 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 +2 -1
- package/docs/reference/type-aliases/EpcisBizStepTypes.md +4 -1
- 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 +5 -1
- package/docs/reference/type-aliases/EpcisErrorReasonTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisEventTypes.md +1 -1
- 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/variables/EpcisActionTypes.md +7 -4
- package/docs/reference/variables/EpcisBizStepTypes.md +99 -2
- 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/EpcisDispositionTypes.md +79 -2
- package/docs/reference/variables/EpcisErrorReasonTypes.md +21 -0
- package/docs/reference/variables/EpcisEventTypes.md +6 -6
- 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/package.json +1 -1
- package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js +0 -2
- package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.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/IEpcisSimpleLocation.js +0 -4
- package/dist/es/models/epcis20/IEpcisSimpleLocation.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/types/models/epcis20/IEpcisBaseAggregationEvent.d.ts +0 -19
- package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +0 -35
- package/dist/types/models/epcis20/IEpcisSimpleLocation.d.ts +0 -9
- package/dist/types/models/epcis20/epcisErrorTypes.d.ts +0 -11
- package/dist/types/models/epcis20/epcisEventUnionType.d.ts +0 -7
- 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/EpcisErrorTypes.md +0 -5
- package/docs/reference/type-aliases/EpcisEventUnionType.md +0 -5
- package/docs/reference/variables/EpcisErrorTypes.md +0 -15
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/gs1-epcis/EpcisDocument",
|
|
4
|
+
"description": "EPCIS 2.0 capture document containing header metadata and an event list.",
|
|
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
|
+
"id": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "The JSON-LD document id."
|
|
124
|
+
},
|
|
125
|
+
"type": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"const": "EPCISDocument",
|
|
128
|
+
"description": "JSON-LD Type."
|
|
129
|
+
},
|
|
130
|
+
"schemaVersion": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"description": "Schema version."
|
|
133
|
+
},
|
|
134
|
+
"creationDate": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Creation Date."
|
|
137
|
+
},
|
|
138
|
+
"instanceIdentifier": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "(Optional) The instance identifier of an EPCISDocument."
|
|
141
|
+
},
|
|
142
|
+
"sender": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "(Optional) The sender of an EPCISDocument."
|
|
145
|
+
},
|
|
146
|
+
"receiver": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "(Optional) The intended receiver of an EPCISDocument."
|
|
149
|
+
},
|
|
150
|
+
"epcisHeader": {
|
|
151
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisHeader",
|
|
152
|
+
"description": "EPCIS Header."
|
|
153
|
+
},
|
|
154
|
+
"epcisBody": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"eventList": {
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisEvents"
|
|
161
|
+
},
|
|
162
|
+
"description": "The list of events."
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": [
|
|
166
|
+
"eventList"
|
|
167
|
+
],
|
|
168
|
+
"additionalProperties": false,
|
|
169
|
+
"description": "The EPCIS Body."
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": [
|
|
173
|
+
"@context",
|
|
174
|
+
"type",
|
|
175
|
+
"schemaVersion",
|
|
176
|
+
"creationDate",
|
|
177
|
+
"epcisBody"
|
|
178
|
+
],
|
|
179
|
+
"additionalProperties": {
|
|
180
|
+
"anyOf": [
|
|
181
|
+
{
|
|
182
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "array"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/gs1-epcis/EpcisObjectEvent",
|
|
4
|
+
"description": "EPCIS 2.0 ObjectEvent describing one or more objects (instance- or class-level) observed at a point in the 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": "ObjectEvent",
|
|
124
|
+
"description": "Fixed to ObjectEvent."
|
|
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
|
+
"epcList": {
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"description": "(Optional) Unordered list of one or more EPCs naming specific objects to which the event pertained."
|
|
166
|
+
},
|
|
167
|
+
"quantityList": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
|
|
171
|
+
},
|
|
172
|
+
"description": "Unordered list of one or more QuantityElements identifying contained objects at the class level."
|
|
173
|
+
},
|
|
174
|
+
"action": {
|
|
175
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisActionTypes",
|
|
176
|
+
"description": "How this event relates to the lifecycle of the EPCs named in this event."
|
|
177
|
+
},
|
|
178
|
+
"bizStep": {
|
|
179
|
+
"anyOf": [
|
|
180
|
+
{
|
|
181
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "string"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"description": "(Optional) The business step of which this event was a part."
|
|
188
|
+
},
|
|
189
|
+
"disposition": {
|
|
190
|
+
"anyOf": [
|
|
191
|
+
{
|
|
192
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "string"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"description": "(Optional) The business condition of the objects associated with the EPCs, presumed to hold true until contradicted by a subsequent event."
|
|
199
|
+
},
|
|
200
|
+
"persistentDisposition": {
|
|
201
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisPersistentDisposition",
|
|
202
|
+
"description": "Persistent disposition."
|
|
203
|
+
},
|
|
204
|
+
"readPoint": {
|
|
205
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
|
|
206
|
+
"description": "(Optional) The read point at which the event took place."
|
|
207
|
+
},
|
|
208
|
+
"bizLocation": {
|
|
209
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
|
|
210
|
+
"description": "(Optional) The business location where the objects associated with the EPCs may be found, until contradicted by a subsequent event."
|
|
211
|
+
},
|
|
212
|
+
"bizTransactionList": {
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
|
|
216
|
+
},
|
|
217
|
+
"description": "(Optional) Unordered list of business transactions that define the context of this 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
|
+
"ilmd": {
|
|
241
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisIlmd",
|
|
242
|
+
"description": "(Optional) Instance/Lot master data that describes the objects created during this event."
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": [
|
|
246
|
+
"@context",
|
|
247
|
+
"action",
|
|
248
|
+
"eventTime",
|
|
249
|
+
"eventTimeZoneOffset",
|
|
250
|
+
"type"
|
|
251
|
+
],
|
|
252
|
+
"additionalProperties": {
|
|
253
|
+
"anyOf": [
|
|
254
|
+
{
|
|
255
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "array"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/gs1-epcis/EpcisQueryDocument",
|
|
4
|
+
"description": "EPCIS 2.0 QueryDocument used to submit queries to an EPCIS repository.",
|
|
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
|
+
"id": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "The JSON-LD document id."
|
|
124
|
+
},
|
|
125
|
+
"type": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"const": "EPCISQueryDocument",
|
|
128
|
+
"description": "JSON-LD Type."
|
|
129
|
+
},
|
|
130
|
+
"schemaVersion": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"description": "Schema version."
|
|
133
|
+
},
|
|
134
|
+
"creationDate": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "Creation Date."
|
|
137
|
+
},
|
|
138
|
+
"epcisBody": {
|
|
139
|
+
"$ref": "https://schema.twindev.org/gs1-epcis/EpcisQueryDocumentBody",
|
|
140
|
+
"description": "The EPCIS Body."
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"@context",
|
|
145
|
+
"type",
|
|
146
|
+
"epcisBody"
|
|
147
|
+
],
|
|
148
|
+
"additionalProperties": {
|
|
149
|
+
"anyOf": [
|
|
150
|
+
{
|
|
151
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodePrimitive"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdLanguageMap"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIndexMap"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIncludedBlock"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdIdMap"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdTypeMap"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "array"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}
|