@twin.org/standards-gs1 0.0.3-next.9 → 0.9.0

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.
Files changed (238) hide show
  1. package/README.md +2 -2
  2. package/dist/es/dataTypes/epcisDataTypes.js +69 -0
  3. package/dist/es/dataTypes/epcisDataTypes.js.map +1 -0
  4. package/dist/es/dataTypes/gs1DataTypes.js +3 -3
  5. package/dist/es/dataTypes/gs1DataTypes.js.map +1 -1
  6. package/dist/es/entities/gs1Location.js +2 -3
  7. package/dist/es/entities/gs1Location.js.map +1 -1
  8. package/dist/es/index.js +26 -7
  9. package/dist/es/index.js.map +1 -1
  10. package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -1
  11. package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -1
  12. package/dist/es/models/epcis20/IEpcisAttribute.js +2 -0
  13. package/dist/es/models/epcis20/IEpcisAttribute.js.map +1 -0
  14. package/dist/es/models/epcis20/IEpcisBizTransaction.js +0 -2
  15. package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -1
  16. package/dist/es/models/epcis20/IEpcisDestination.js +0 -2
  17. package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -1
  18. package/dist/es/models/epcis20/IEpcisDocument.js.map +1 -1
  19. package/dist/es/models/epcis20/IEpcisErrorDeclaration.js +2 -0
  20. package/dist/es/models/epcis20/IEpcisErrorDeclaration.js.map +1 -0
  21. package/dist/es/models/epcis20/IEpcisEvent.js.map +1 -1
  22. package/dist/es/models/epcis20/IEpcisHeader.js +2 -0
  23. package/dist/es/models/epcis20/IEpcisHeader.js.map +1 -0
  24. package/dist/es/models/epcis20/{IEpcisSimpleLocation.js → IEpcisIlmd.js} +1 -1
  25. package/dist/es/models/epcis20/IEpcisIlmd.js.map +1 -0
  26. package/dist/es/models/epcis20/IEpcisLocation.js +4 -0
  27. package/dist/es/models/epcis20/IEpcisLocation.js.map +1 -0
  28. package/dist/es/models/epcis20/IEpcisObjectEvent.js.map +1 -1
  29. package/dist/es/models/epcis20/IEpcisPersistentDisposition.js +2 -0
  30. package/dist/es/models/epcis20/IEpcisPersistentDisposition.js.map +1 -0
  31. package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -1
  32. package/dist/es/models/epcis20/IEpcisQuery.js.map +1 -1
  33. package/dist/es/models/epcis20/IEpcisQueryDocument.js.map +1 -1
  34. package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js +2 -0
  35. package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js.map +1 -0
  36. package/dist/es/models/epcis20/IEpcisQueryResults.js +2 -0
  37. package/dist/es/models/epcis20/IEpcisQueryResults.js.map +1 -0
  38. package/dist/es/models/epcis20/IEpcisQueryResultsBody.js +2 -0
  39. package/dist/es/models/epcis20/IEpcisQueryResultsBody.js.map +1 -0
  40. package/dist/es/models/epcis20/IEpcisSensorElement.js.map +1 -1
  41. package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -1
  42. package/dist/es/models/epcis20/IEpcisSensorReport.js +0 -2
  43. package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -1
  44. package/dist/es/models/epcis20/IEpcisSource.js +0 -2
  45. package/dist/es/models/epcis20/IEpcisSource.js.map +1 -1
  46. package/dist/es/models/epcis20/IEpcisTransactionEvent.js +2 -0
  47. package/dist/es/models/epcis20/IEpcisTransactionEvent.js.map +1 -0
  48. package/dist/es/models/epcis20/IEpcisTransformationEvent.js +2 -0
  49. package/dist/es/models/epcis20/IEpcisTransformationEvent.js.map +1 -0
  50. package/dist/es/models/epcis20/IEpcisVocabulary.js +2 -0
  51. package/dist/es/models/epcis20/IEpcisVocabulary.js.map +1 -0
  52. package/dist/es/models/epcis20/IEpcisVocabularyElement.js +2 -0
  53. package/dist/es/models/epcis20/IEpcisVocabularyElement.js.map +1 -0
  54. package/dist/es/models/epcis20/epcisActionTypes.js +7 -4
  55. package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -1
  56. package/dist/es/models/epcis20/epcisBizStepTypes.js +140 -2
  57. package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -1
  58. package/dist/es/models/epcis20/epcisBizTransactionTypes.js +75 -0
  59. package/dist/es/models/epcis20/epcisBizTransactionTypes.js.map +1 -0
  60. package/dist/es/models/epcis20/epcisComponentTypes.js +77 -0
  61. package/dist/es/models/epcis20/epcisComponentTypes.js.map +1 -0
  62. package/dist/es/models/epcis20/epcisContextType.js +2 -0
  63. package/dist/es/models/epcis20/epcisContextType.js.map +1 -0
  64. package/dist/es/models/epcis20/epcisContexts.js +27 -0
  65. package/dist/es/models/epcis20/epcisContexts.js.map +1 -0
  66. package/dist/es/models/epcis20/epcisDispositionTypes.js +112 -2
  67. package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -1
  68. package/dist/es/models/epcis20/epcisErrorReasonTypes.js +20 -0
  69. package/dist/es/models/epcis20/epcisErrorReasonTypes.js.map +1 -0
  70. package/dist/es/models/epcis20/epcisEventTypes.js +6 -6
  71. package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -1
  72. package/dist/es/models/epcis20/epcisEvents.js +2 -0
  73. package/dist/es/models/epcis20/epcisEvents.js.map +1 -0
  74. package/dist/es/models/epcis20/epcisMeasurementTypes.js +301 -0
  75. package/dist/es/models/epcis20/epcisMeasurementTypes.js.map +1 -0
  76. package/dist/es/models/epcis20/epcisSensorAlertTypes.js +19 -0
  77. package/dist/es/models/epcis20/epcisSensorAlertTypes.js.map +1 -0
  78. package/dist/es/models/epcis20/epcisSourceDestTypes.js +26 -0
  79. package/dist/es/models/epcis20/epcisSourceDestTypes.js.map +1 -0
  80. package/dist/es/models/epcis20/epcisTypes.js +37 -0
  81. package/dist/es/models/epcis20/epcisTypes.js.map +1 -0
  82. package/dist/es/models/gs1/gs1Contexts.js +8 -2
  83. package/dist/es/models/gs1/gs1Contexts.js.map +1 -1
  84. package/dist/es/schemas/EpcisAggregationEvent.json +102 -0
  85. package/dist/es/schemas/EpcisAssociationEvent.json +103 -0
  86. package/dist/es/schemas/EpcisContextType.json +30 -0
  87. package/dist/es/schemas/EpcisDocument.json +68 -0
  88. package/dist/es/schemas/EpcisObjectEvent.json +106 -0
  89. package/dist/es/schemas/EpcisQueryDocument.json +38 -0
  90. package/dist/es/schemas/EpcisTransactionEvent.json +103 -0
  91. package/dist/es/schemas/EpcisTransformationEvent.json +119 -0
  92. package/dist/es/utils/gs1Is.js +3 -2
  93. package/dist/es/utils/gs1Is.js.map +1 -1
  94. package/dist/types/dataTypes/epcisDataTypes.d.ts +13 -0
  95. package/dist/types/dataTypes/gs1DataTypes.d.ts +1 -1
  96. package/dist/types/entities/gs1Location.d.ts +2 -3
  97. package/dist/types/index.d.ts +26 -7
  98. package/dist/types/models/epcis20/IEpcisAggregationEvent.d.ts +75 -4
  99. package/dist/types/models/epcis20/IEpcisAssociationEvent.d.ts +74 -4
  100. package/dist/types/models/epcis20/IEpcisAttribute.d.ts +15 -0
  101. package/dist/types/models/epcis20/IEpcisBizTransaction.d.ts +11 -5
  102. package/dist/types/models/epcis20/IEpcisDestination.d.ts +12 -5
  103. package/dist/types/models/epcis20/IEpcisDocument.d.ts +33 -6
  104. package/dist/types/models/epcis20/IEpcisErrorDeclaration.d.ts +24 -0
  105. package/dist/types/models/epcis20/IEpcisEvent.d.ts +22 -21
  106. package/dist/types/models/epcis20/IEpcisHeader.d.ts +17 -0
  107. package/dist/types/models/epcis20/IEpcisIlmd.d.ts +7 -0
  108. package/dist/types/models/epcis20/IEpcisLocation.d.ts +11 -0
  109. package/dist/types/models/epcis20/IEpcisObjectEvent.d.ts +72 -12
  110. package/dist/types/models/epcis20/IEpcisPersistentDisposition.d.ts +16 -0
  111. package/dist/types/models/epcis20/IEpcisQuantity.d.ts +13 -5
  112. package/dist/types/models/epcis20/IEpcisQuery.d.ts +2 -1
  113. package/dist/types/models/epcis20/IEpcisQueryDocument.d.ts +8 -29
  114. package/dist/types/models/epcis20/IEpcisQueryDocumentBody.d.ts +11 -0
  115. package/dist/types/models/epcis20/IEpcisQueryResults.d.ts +19 -0
  116. package/dist/types/models/epcis20/IEpcisQueryResultsBody.d.ts +16 -0
  117. package/dist/types/models/epcis20/IEpcisSensorElement.d.ts +12 -8
  118. package/dist/types/models/epcis20/IEpcisSensorMetadata.d.ts +36 -10
  119. package/dist/types/models/epcis20/IEpcisSensorReport.d.ts +121 -8
  120. package/dist/types/models/epcis20/IEpcisSource.d.ts +11 -5
  121. package/dist/types/models/epcis20/IEpcisTransactionEvent.d.ts +78 -0
  122. package/dist/types/models/epcis20/IEpcisTransformationEvent.d.ts +96 -0
  123. package/dist/types/models/epcis20/IEpcisVocabulary.d.ts +15 -0
  124. package/dist/types/models/epcis20/IEpcisVocabularyElement.d.ts +20 -0
  125. package/dist/types/models/epcis20/epcisActionTypes.d.ts +9 -5
  126. package/dist/types/models/epcis20/epcisBizStepTypes.d.ts +144 -3
  127. package/dist/types/models/epcis20/epcisBizTransactionTypes.d.ts +74 -0
  128. package/dist/types/models/epcis20/epcisComponentTypes.d.ts +76 -0
  129. package/dist/types/models/epcis20/epcisContextType.d.ts +8 -0
  130. package/dist/types/models/epcis20/epcisContexts.d.ts +27 -0
  131. package/dist/types/models/epcis20/epcisDispositionTypes.d.ts +117 -3
  132. package/dist/types/models/epcis20/epcisErrorReasonTypes.d.ts +19 -0
  133. package/dist/types/models/epcis20/epcisEventTypes.d.ts +7 -7
  134. package/dist/types/models/epcis20/epcisEvents.d.ts +11 -0
  135. package/dist/types/models/epcis20/epcisMeasurementTypes.d.ts +303 -0
  136. package/dist/types/models/epcis20/epcisSensorAlertTypes.d.ts +19 -0
  137. package/dist/types/models/epcis20/epcisSourceDestTypes.d.ts +26 -0
  138. package/dist/types/models/epcis20/epcisTypes.d.ts +37 -0
  139. package/dist/types/models/gs1/gs1Contexts.d.ts +8 -2
  140. package/dist/types/utils/gs1Is.d.ts +3 -2
  141. package/docs/changelog.md +535 -60
  142. package/docs/examples.md +58 -1
  143. package/docs/reference/classes/EpcisDataTypes.md +37 -0
  144. package/docs/reference/classes/Gs1DataTypes.md +5 -2
  145. package/docs/reference/classes/Gs1Identifiers.md +1 -1
  146. package/docs/reference/classes/Gs1IdentifiersValidation.md +7 -7
  147. package/docs/reference/classes/Gs1Is.md +8 -4
  148. package/docs/reference/classes/Gs1Location.md +34 -32
  149. package/docs/reference/classes/Gs1Validation.md +1 -1
  150. package/docs/reference/index.md +40 -15
  151. package/docs/reference/interfaces/IEPCClassUri.md +3 -3
  152. package/docs/reference/interfaces/IEpcisAggregationEvent.md +219 -0
  153. package/docs/reference/interfaces/IEpcisAssociationEvent.md +218 -0
  154. package/docs/reference/interfaces/IEpcisAttribute.md +23 -0
  155. package/docs/reference/interfaces/IEpcisBizTransaction.md +27 -0
  156. package/docs/reference/interfaces/IEpcisDestination.md +28 -0
  157. package/docs/reference/interfaces/IEpcisDocument.md +60 -8
  158. package/docs/reference/interfaces/IEpcisErrorDeclaration.md +36 -0
  159. package/docs/reference/interfaces/IEpcisEvent.md +37 -33
  160. package/docs/reference/interfaces/IEpcisHeader.md +23 -0
  161. package/docs/reference/interfaces/IEpcisIlmd.md +8 -0
  162. package/docs/reference/interfaces/IEpcisLocation.md +16 -0
  163. package/docs/reference/interfaces/IEpcisObjectEvent.md +224 -0
  164. package/docs/reference/interfaces/IEpcisPersistentDisposition.md +24 -0
  165. package/docs/reference/interfaces/IEpcisQuantity.md +34 -0
  166. package/docs/reference/interfaces/IEpcisQuery.md +6 -2
  167. package/docs/reference/interfaces/IEpcisQueryDocument.md +17 -43
  168. package/docs/reference/interfaces/IEpcisQueryDocumentBody.md +15 -0
  169. package/docs/reference/interfaces/IEpcisQueryResults.md +31 -0
  170. package/docs/reference/interfaces/IEpcisQueryResultsBody.md +23 -0
  171. package/docs/reference/interfaces/IEpcisSensorElement.md +26 -0
  172. package/docs/reference/interfaces/IEpcisSensorMetadata.md +80 -0
  173. package/docs/reference/interfaces/IEpcisSensorReport.md +224 -0
  174. package/docs/reference/interfaces/IEpcisSource.md +27 -0
  175. package/docs/reference/interfaces/IEpcisTransactionEvent.md +216 -0
  176. package/docs/reference/interfaces/IEpcisTransformationEvent.md +245 -0
  177. package/docs/reference/interfaces/IEpcisVocabulary.md +23 -0
  178. package/docs/reference/interfaces/IEpcisVocabularyElement.md +32 -0
  179. package/docs/reference/type-aliases/EpcisActionTypes.md +2 -1
  180. package/docs/reference/type-aliases/EpcisBizStepTypes.md +4 -1
  181. package/docs/reference/type-aliases/EpcisBizTransactionTypes.md +5 -0
  182. package/docs/reference/type-aliases/EpcisComponentTypes.md +5 -0
  183. package/docs/reference/type-aliases/EpcisContextType.md +6 -0
  184. package/docs/reference/type-aliases/EpcisContexts.md +5 -0
  185. package/docs/reference/type-aliases/EpcisDispositionTypes.md +5 -1
  186. package/docs/reference/type-aliases/EpcisErrorReasonTypes.md +5 -0
  187. package/docs/reference/type-aliases/EpcisEventTypes.md +1 -1
  188. package/docs/reference/type-aliases/EpcisEvents.md +6 -0
  189. package/docs/reference/type-aliases/EpcisMeasurementTypes.md +8 -0
  190. package/docs/reference/type-aliases/EpcisSensorAlertTypes.md +6 -0
  191. package/docs/reference/type-aliases/EpcisSourceDestTypes.md +6 -0
  192. package/docs/reference/variables/EpcisActionTypes.md +10 -7
  193. package/docs/reference/variables/EpcisBizStepTypes.md +140 -43
  194. package/docs/reference/variables/EpcisBizTransactionTypes.md +98 -0
  195. package/docs/reference/variables/EpcisComponentTypes.md +102 -0
  196. package/docs/reference/variables/EpcisContexts.md +33 -0
  197. package/docs/reference/variables/EpcisDispositionTypes.md +112 -35
  198. package/docs/reference/variables/EpcisErrorReasonTypes.md +21 -0
  199. package/docs/reference/variables/EpcisEventTypes.md +11 -11
  200. package/docs/reference/variables/EpcisMeasurementTypes.md +442 -0
  201. package/docs/reference/variables/EpcisSensorAlertTypes.md +20 -0
  202. package/docs/reference/variables/EpcisSourceDestTypes.md +29 -0
  203. package/docs/reference/variables/GS1Contexts.md +11 -3
  204. package/docs/reference/variables/Gs1IdTypes.md +20 -20
  205. package/docs/reference/variables/Gs1IdentifierTypes.md +4 -4
  206. package/docs/reference/variables/Gs1SubSiteAttributes.md +33 -33
  207. package/docs/reference/variables/Gs1SubSiteTypes.md +16 -16
  208. package/docs/reference/variables/Gs1Types.md +1 -1
  209. package/package.json +9 -9
  210. package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js +0 -2
  211. package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js.map +0 -1
  212. package/dist/es/models/epcis20/IEpcisEventDetails.js +0 -2
  213. package/dist/es/models/epcis20/IEpcisEventDetails.js.map +0 -1
  214. package/dist/es/models/epcis20/IEpcisSimpleLocation.js.map +0 -1
  215. package/dist/es/models/epcis20/epcisErrorTypes.js +0 -11
  216. package/dist/es/models/epcis20/epcisErrorTypes.js.map +0 -1
  217. package/dist/es/models/epcis20/epcisEventUnionType.js +0 -2
  218. package/dist/es/models/epcis20/epcisEventUnionType.js.map +0 -1
  219. package/dist/types/models/epcis20/IEpcisBaseAggregationEvent.d.ts +0 -19
  220. package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +0 -35
  221. package/dist/types/models/epcis20/IEpcisSimpleLocation.d.ts +0 -9
  222. package/dist/types/models/epcis20/epcisErrorTypes.d.ts +0 -11
  223. package/dist/types/models/epcis20/epcisEventUnionType.d.ts +0 -7
  224. package/docs/reference/interfaces/IAggregationEvent.md +0 -223
  225. package/docs/reference/interfaces/IAssociationEvent.md +0 -223
  226. package/docs/reference/interfaces/IBizTransaction.md +0 -19
  227. package/docs/reference/interfaces/IDestination.md +0 -19
  228. package/docs/reference/interfaces/IEpcisEventDetails.md +0 -167
  229. package/docs/reference/interfaces/IObjectEvent.md +0 -211
  230. package/docs/reference/interfaces/IQuantity.md +0 -19
  231. package/docs/reference/interfaces/ISensorElement.md +0 -19
  232. package/docs/reference/interfaces/ISensorMetadata.md +0 -35
  233. package/docs/reference/interfaces/ISensorReport.md +0 -27
  234. package/docs/reference/interfaces/ISimpleLocation.md +0 -11
  235. package/docs/reference/interfaces/ISource.md +0 -19
  236. package/docs/reference/type-aliases/EpcisErrorTypes.md +0 -5
  237. package/docs/reference/type-aliases/EpcisEventUnionType.md +0 -5
  238. package/docs/reference/variables/EpcisErrorTypes.md +0 -15
@@ -0,0 +1,102 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisAggregationEvent",
4
+ "title": "EpcisAggregationEvent",
5
+ "description": "EPCIS 2.0 AggregationEvent describing how child objects are associated with or\ndisassociated from a parent object.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "const": "AggregationEvent",
10
+ "description": "The type."
11
+ },
12
+ "parentID": {
13
+ "type": "string",
14
+ "description": "(Optional when action is OBSERVE, required otherwise) Identifier of the parent\nof the aggregation or association; use the pure identity URI when the parent is\nan EPC."
15
+ },
16
+ "childEPCs": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ },
21
+ "description": "(Optional) Unordered list of contained objects identified at the instance\nlevel; AggregationEvents normally include childEPCs or childQuantityList unless\naction is DELETE."
22
+ },
23
+ "childQuantityList": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
27
+ },
28
+ "description": "Unordered list of one or more QuantityElements identifying contained objects\nat the class level; may be empty only with action DELETE when disaggregating\nall children."
29
+ },
30
+ "action": {
31
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisActionTypes",
32
+ "description": "How this event relates to the lifecycle of the EPCs named in this event."
33
+ },
34
+ "bizStep": {
35
+ "anyOf": [
36
+ {
37
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
38
+ },
39
+ {
40
+ "type": "string"
41
+ }
42
+ ],
43
+ "description": "(Optional) The business step of which this event was a part."
44
+ },
45
+ "disposition": {
46
+ "anyOf": [
47
+ {
48
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
49
+ },
50
+ {
51
+ "type": "string"
52
+ }
53
+ ],
54
+ "description": "(Optional) The business condition of the objects associated with the EPCs,\npresumed to hold true until contradicted by a subsequent event."
55
+ },
56
+ "readPoint": {
57
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
58
+ "description": "(Optional) The read point at which the event took place."
59
+ },
60
+ "bizLocation": {
61
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
62
+ "description": "(Optional) The business location where the objects associated with the EPCs\nmay be found, until contradicted by a subsequent event."
63
+ },
64
+ "bizTransactionList": {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
68
+ },
69
+ "description": "(Optional) An unordered list of business transactions that define the context\nof this event."
70
+ },
71
+ "sourceList": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSource"
75
+ },
76
+ "description": "(Optional) Unordered list of Source elements that provide context about the\noriginating endpoint of a business transfer of which this event is a part."
77
+ },
78
+ "destinationList": {
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDestination"
82
+ },
83
+ "description": "(Optional) Unordered list of Destination elements that provide context about the\nterminating endpoint of a business transfer of which this event is a part."
84
+ },
85
+ "sensorElementList": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSensorElement"
89
+ },
90
+ "description": "(Optional) Connects event to one or more SensorElements."
91
+ }
92
+ },
93
+ "required": [
94
+ "type",
95
+ "action"
96
+ ],
97
+ "allOf": [
98
+ {
99
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisEvent"
100
+ }
101
+ ]
102
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisAssociationEvent",
4
+ "title": "EpcisAssociationEvent",
5
+ "description": "EPCIS 2.0 AssociationEvent describing membership relationships between parent\nand child objects without implying physical containment.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "const": "AssociationEvent",
10
+ "description": "Type."
11
+ },
12
+ "parentID": {
13
+ "type": "string",
14
+ "description": "Identifier of the parent of the aggregation or association; use the pure\nidentity URI when the parent is an EPC."
15
+ },
16
+ "childEPCs": {
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ },
21
+ "description": "(Optional) Unordered list of contained objects identified at the instance\nlevel; AssociationEvents normally include childEPCs or childQuantityList\nunless action is DELETE."
22
+ },
23
+ "childQuantityList": {
24
+ "type": "array",
25
+ "items": {
26
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
27
+ },
28
+ "description": "Unordered list of one or more QuantityElements identifying contained objects\nat the class level; may be empty only with action DELETE when disassociating\nall children."
29
+ },
30
+ "action": {
31
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisActionTypes",
32
+ "description": "How this event relates to the lifecycle of the EPCs named in this event."
33
+ },
34
+ "bizStep": {
35
+ "anyOf": [
36
+ {
37
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
38
+ },
39
+ {
40
+ "type": "string"
41
+ }
42
+ ],
43
+ "description": "(Optional) The business step of which this event was a part."
44
+ },
45
+ "disposition": {
46
+ "anyOf": [
47
+ {
48
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
49
+ },
50
+ {
51
+ "type": "string"
52
+ }
53
+ ],
54
+ "description": "(Optional) The business condition of the objects associated with the EPCs,\npresumed to hold true until contradicted by a subsequent event."
55
+ },
56
+ "readPoint": {
57
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
58
+ "description": "(Optional) The read point at which the event took place."
59
+ },
60
+ "bizLocation": {
61
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
62
+ "description": "(Optional) The business location where the objects associated with the EPCs\nmay be found, until contradicted by a subsequent event."
63
+ },
64
+ "bizTransactionList": {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
68
+ },
69
+ "description": "(Optional) An unordered list of business transactions that define the context\nof this event."
70
+ },
71
+ "sourceList": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSource"
75
+ },
76
+ "description": "(Optional) Unordered list of Source elements that provide context about the\noriginating endpoint of a business transfer of which this event is a part."
77
+ },
78
+ "destinationList": {
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDestination"
82
+ },
83
+ "description": "(Optional) Unordered list of Destination elements that provide context about\nthe terminating endpoint of a business transfer of which this event is a part."
84
+ },
85
+ "sensorElementList": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSensorElement"
89
+ },
90
+ "description": "(Optional) Connects event to one or more SensorElements."
91
+ }
92
+ },
93
+ "required": [
94
+ "type",
95
+ "parentID",
96
+ "action"
97
+ ],
98
+ "allOf": [
99
+ {
100
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisEvent"
101
+ }
102
+ ]
103
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisContextType",
4
+ "title": "EpcisContextType",
5
+ "description": "Allowed shapes for an EPCIS 2.0 JSON-LD `@context`, anchored on the GS1\ncontext root and optionally augmented with custom entries.",
6
+ "anyOf": [
7
+ {
8
+ "const": "https://ref.gs1.org/epcis"
9
+ },
10
+ {
11
+ "type": "array",
12
+ "items": {
13
+ "anyOf": [
14
+ {
15
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
16
+ },
17
+ {
18
+ "const": "https://ref.gs1.org/epcis"
19
+ }
20
+ ]
21
+ },
22
+ "contains": {
23
+ "const": "https://ref.gs1.org/epcis"
24
+ },
25
+ "minContains": 1,
26
+ "maxContains": 1,
27
+ "minItems": 1
28
+ }
29
+ ]
30
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisDocument",
4
+ "title": "EpcisDocument",
5
+ "description": "EPCIS 2.0 capture document containing header metadata and an event list.",
6
+ "type": "object",
7
+ "properties": {
8
+ "@context": {
9
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisContextType",
10
+ "description": "The"
11
+ },
12
+ "id": {
13
+ "type": "string",
14
+ "description": "The JSON-LD document id."
15
+ },
16
+ "type": {
17
+ "const": "EPCISDocument",
18
+ "description": "JSON-LD Type."
19
+ },
20
+ "schemaVersion": {
21
+ "type": "string",
22
+ "description": "Schema version."
23
+ },
24
+ "creationDate": {
25
+ "type": "string",
26
+ "description": "Creation Date."
27
+ },
28
+ "instanceIdentifier": {
29
+ "type": "string",
30
+ "description": "(Optional) The instance identifier of an EPCISDocument."
31
+ },
32
+ "sender": {
33
+ "type": "string",
34
+ "description": "(Optional) The sender of an EPCISDocument."
35
+ },
36
+ "receiver": {
37
+ "type": "string",
38
+ "description": "(Optional) The intended receiver of an EPCISDocument."
39
+ },
40
+ "epcisHeader": {
41
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisHeader",
42
+ "description": "EPCIS Header."
43
+ },
44
+ "epcisBody": {
45
+ "type": "object",
46
+ "properties": {
47
+ "eventList": {
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisEvents"
51
+ },
52
+ "description": "The list of events."
53
+ }
54
+ },
55
+ "required": [
56
+ "eventList"
57
+ ],
58
+ "description": "The EPCIS Body."
59
+ }
60
+ },
61
+ "required": [
62
+ "@context",
63
+ "type",
64
+ "schemaVersion",
65
+ "creationDate",
66
+ "epcisBody"
67
+ ]
68
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisObjectEvent",
4
+ "title": "EpcisObjectEvent",
5
+ "description": "EPCIS 2.0 ObjectEvent describing one or more objects (instance- or class-level)\nobserved at a point in the business process.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "const": "ObjectEvent",
10
+ "description": "Fixed to ObjectEvent."
11
+ },
12
+ "epcList": {
13
+ "type": "array",
14
+ "items": {
15
+ "type": "string"
16
+ },
17
+ "description": "(Optional) Unordered list of one or more EPCs naming specific objects to which\nthe event pertained."
18
+ },
19
+ "quantityList": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
23
+ },
24
+ "description": "Unordered list of one or more QuantityElements identifying contained objects at\nthe class level."
25
+ },
26
+ "action": {
27
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisActionTypes",
28
+ "description": "How this event relates to the lifecycle of the EPCs named in this event."
29
+ },
30
+ "bizStep": {
31
+ "anyOf": [
32
+ {
33
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
34
+ },
35
+ {
36
+ "type": "string"
37
+ }
38
+ ],
39
+ "description": "(Optional) The business step of which this event was a part."
40
+ },
41
+ "disposition": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
45
+ },
46
+ {
47
+ "type": "string"
48
+ }
49
+ ],
50
+ "description": "(Optional) The business condition of the objects associated with the EPCs,\npresumed to hold true until contradicted by a subsequent event."
51
+ },
52
+ "persistentDisposition": {
53
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisPersistentDisposition",
54
+ "description": "Persistent disposition."
55
+ },
56
+ "readPoint": {
57
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
58
+ "description": "(Optional) The read point at which the event took place."
59
+ },
60
+ "bizLocation": {
61
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
62
+ "description": "(Optional) The business location where the objects associated with the EPCs may\nbe found, until contradicted by a subsequent event."
63
+ },
64
+ "bizTransactionList": {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
68
+ },
69
+ "description": "(Optional) Unordered list of business transactions that define the context of\nthis event."
70
+ },
71
+ "sourceList": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSource"
75
+ },
76
+ "description": "(Optional) Unordered list of Source elements that provide context about the\noriginating endpoint of a business transfer of which this event is a part."
77
+ },
78
+ "destinationList": {
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDestination"
82
+ },
83
+ "description": "(Optional) Unordered list of Destination elements that provide context about the\nterminating endpoint of a business transfer of which this event is a part."
84
+ },
85
+ "sensorElementList": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSensorElement"
89
+ },
90
+ "description": "(Optional) Connects event to one or more SensorElements."
91
+ },
92
+ "ilmd": {
93
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisIlmd",
94
+ "description": "(Optional) Instance/Lot master data that describes the objects created during\nthis event."
95
+ }
96
+ },
97
+ "required": [
98
+ "type",
99
+ "action"
100
+ ],
101
+ "allOf": [
102
+ {
103
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisEvent"
104
+ }
105
+ ]
106
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisQueryDocument",
4
+ "title": "EpcisQueryDocument",
5
+ "description": "EPCIS 2.0 QueryDocument used to submit queries to an EPCIS repository.",
6
+ "type": "object",
7
+ "properties": {
8
+ "@context": {
9
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisContextType",
10
+ "description": "The"
11
+ },
12
+ "id": {
13
+ "type": "string",
14
+ "description": "The JSON-LD document id."
15
+ },
16
+ "type": {
17
+ "const": "EPCISQueryDocument",
18
+ "description": "JSON-LD Type."
19
+ },
20
+ "schemaVersion": {
21
+ "type": "string",
22
+ "description": "Schema version."
23
+ },
24
+ "creationDate": {
25
+ "type": "string",
26
+ "description": "Creation Date."
27
+ },
28
+ "epcisBody": {
29
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisQueryDocumentBody",
30
+ "description": "The EPCIS Body."
31
+ }
32
+ },
33
+ "required": [
34
+ "@context",
35
+ "type",
36
+ "epcisBody"
37
+ ]
38
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://schema.twindev.org/gs1-epcis/EpcisTransactionEvent",
4
+ "title": "EpcisTransactionEvent",
5
+ "description": "EPCIS 2.0 TransactionEvent relating objects or quantities to one or more\nbusiness transactions, optionally with a parent identifier.",
6
+ "type": "object",
7
+ "properties": {
8
+ "type": {
9
+ "const": "TransactionEvent",
10
+ "description": "Fixed to TransactionEvent."
11
+ },
12
+ "bizTransactionList": {
13
+ "type": "array",
14
+ "items": {
15
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizTransaction"
16
+ },
17
+ "description": "Business transaction list (required by schema)."
18
+ },
19
+ "parentID": {
20
+ "type": "string",
21
+ "description": "(Optional when action is OBSERVE, required otherwise) Identifier of the parent\nof the aggregation or association; use the pure identity URI when the parent is\nan EPC."
22
+ },
23
+ "epcList": {
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string"
27
+ },
28
+ "description": "(Optional) An unordered list of one or more EPCs naming specific objects to\nwhich the event pertained."
29
+ },
30
+ "quantityList": {
31
+ "type": "array",
32
+ "items": {
33
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisQuantity"
34
+ },
35
+ "description": "An unordered list of one or more QuantityElements identifying (at the class\nlevel) contained objects."
36
+ },
37
+ "action": {
38
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisActionTypes",
39
+ "description": "How this event relates to the lifecycle of the EPCs named in this event."
40
+ },
41
+ "bizStep": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisBizStepTypes"
45
+ },
46
+ {
47
+ "type": "string"
48
+ }
49
+ ],
50
+ "description": "(Optional) The business step of which this event was a part."
51
+ },
52
+ "disposition": {
53
+ "anyOf": [
54
+ {
55
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDispositionTypes"
56
+ },
57
+ {
58
+ "type": "string"
59
+ }
60
+ ],
61
+ "description": "(Optional) The business condition of the objects associated with the EPCs,\npresumed to hold true until contradicted by a subsequent event."
62
+ },
63
+ "readPoint": {
64
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
65
+ "description": "(Optional) The read point at which the event took place."
66
+ },
67
+ "bizLocation": {
68
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisLocation",
69
+ "description": "(Optional) The business location where the objects associated with the EPCs\nmay be found, until contradicted by a subsequent event."
70
+ },
71
+ "sourceList": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSource"
75
+ },
76
+ "description": "(Optional) Unordered list of Source elements that provide context about the\noriginating endpoint of a business transfer of which this event is a part."
77
+ },
78
+ "destinationList": {
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisDestination"
82
+ },
83
+ "description": "(Optional) Unordered list of Destination elements that provide context about the\nterminating endpoint of a business transfer of which this event is a part."
84
+ },
85
+ "sensorElementList": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisSensorElement"
89
+ },
90
+ "description": "(Optional) Connects event to one or more SensorElements."
91
+ }
92
+ },
93
+ "required": [
94
+ "type",
95
+ "bizTransactionList",
96
+ "action"
97
+ ],
98
+ "allOf": [
99
+ {
100
+ "$ref": "https://schema.twindev.org/gs1-epcis/EpcisEvent"
101
+ }
102
+ ]
103
+ }