@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,96 @@
1
+ import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
2
+ import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
3
+ import type { EpcisTypes } from "./epcisTypes.js";
4
+ import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
5
+ import type { IEpcisDestination } from "./IEpcisDestination.js";
6
+ import type { IEpcisEvent } from "./IEpcisEvent.js";
7
+ import type { IEpcisIlmd } from "./IEpcisIlmd.js";
8
+ import type { IEpcisLocation } from "./IEpcisLocation.js";
9
+ import type { IEpcisPersistentDisposition } from "./IEpcisPersistentDisposition.js";
10
+ import type { IEpcisQuantity } from "./IEpcisQuantity.js";
11
+ import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
12
+ import type { IEpcisSource } from "./IEpcisSource.js";
13
+ /**
14
+ * EPCIS 2.0 TransformationEvent describing how inputs are transformed into
15
+ * outputs during a business process.
16
+ * @see https://ref.gs1.org/epcis/TransformationEvent
17
+ */
18
+ export interface IEpcisTransformationEvent extends IEpcisEvent {
19
+ /**
20
+ * Fixed to TransformationEvent.
21
+ */
22
+ type: typeof EpcisTypes.TransformationEvent;
23
+ /**
24
+ * (Optional) Unordered list of one or more EPCs identifying (at the instance
25
+ * level) objects that were inputs to the transformation.
26
+ */
27
+ inputEPCList?: string[];
28
+ /**
29
+ * (Optional) Unordered list of one or more QuantityElements identifying
30
+ * class-level inputs; may be omitted subject to the EPCIS quantity-list
31
+ * constraints.
32
+ */
33
+ inputQuantityList?: IEpcisQuantity[];
34
+ /**
35
+ * (Optional) Unordered list of one or more EPCs naming (at the instance level)
36
+ * objects that were outputs from the transformation.
37
+ */
38
+ outputEPCList?: string[];
39
+ /**
40
+ * (Optional) Unordered list of one or more QuantityElements identifying
41
+ * class-level outputs; may be omitted subject to the EPCIS quantity-list
42
+ * constraints.
43
+ */
44
+ outputQuantityList?: IEpcisQuantity[];
45
+ /**
46
+ * A unique identifier linking TransformationEvents; shared values connect inputs
47
+ * and outputs across those events.
48
+ */
49
+ transformationID?: string;
50
+ /**
51
+ * (Optional) The business step of which this event was a part.
52
+ */
53
+ bizStep?: EpcisBizStepTypes | string;
54
+ /**
55
+ * (Optional) The business condition of the objects associated with the EPCs,
56
+ * presumed to hold true until contradicted by a subsequent event.
57
+ */
58
+ disposition?: EpcisDispositionTypes | string;
59
+ /**
60
+ * Persistent disposition.
61
+ */
62
+ persistentDisposition?: IEpcisPersistentDisposition;
63
+ /**
64
+ * (Optional) The read point at which the event took place.
65
+ */
66
+ readPoint?: IEpcisLocation;
67
+ /**
68
+ * (Optional) The business location where the objects associated with the EPCs
69
+ * may be found, until contradicted by a subsequent event.
70
+ */
71
+ bizLocation?: IEpcisLocation;
72
+ /**
73
+ * An unordered list of business transactions that define the context of this
74
+ * event.
75
+ */
76
+ bizTransactionList?: IEpcisBizTransaction[];
77
+ /**
78
+ * (Optional) Unordered list of Source elements that provide context about the
79
+ * originating endpoint of a business transfer of which this event is a part.
80
+ */
81
+ sourceList?: IEpcisSource[];
82
+ /**
83
+ * (Optional) Unordered list of Destination elements that provide context about
84
+ * the terminating endpoint of a business transfer of which this event is a part.
85
+ */
86
+ destinationList?: IEpcisDestination[];
87
+ /**
88
+ * (Optional) Connects event to one or more SensorElements.
89
+ */
90
+ sensorElementList?: IEpcisSensorElement[];
91
+ /**
92
+ * (Optional) Instance/Lot master data that describes the objects created during
93
+ * this event.
94
+ */
95
+ ilmd?: IEpcisIlmd;
96
+ }
@@ -0,0 +1,15 @@
1
+ import type { IEpcisVocabularyElement } from "./IEpcisVocabularyElement.js";
2
+ /**
3
+ * EPCIS 2.0 Vocabulary container that groups related vocabulary elements.
4
+ * @see https://ref.gs1.org/epcis/Vocabulary
5
+ */
6
+ export interface IEpcisVocabulary {
7
+ /**
8
+ * Vocabulary type.
9
+ */
10
+ type: string;
11
+ /**
12
+ * List of vocabulary elements.
13
+ */
14
+ vocabularyElementList?: IEpcisVocabularyElement[];
15
+ }
@@ -0,0 +1,20 @@
1
+ import type { IEpcisAttribute } from "./IEpcisAttribute.js";
2
+ /**
3
+ * EPCIS 2.0 VocabularyElement representing a master data entity with
4
+ * attributes and optional children.
5
+ * @see https://ref.gs1.org/epcis/VocabularyElement
6
+ */
7
+ export interface IEpcisVocabularyElement {
8
+ /**
9
+ * Element id.
10
+ */
11
+ id: string;
12
+ /**
13
+ * Attributes.
14
+ */
15
+ attributes?: IEpcisAttribute[];
16
+ /**
17
+ * Children.
18
+ */
19
+ children?: string[];
20
+ }
@@ -1,21 +1,25 @@
1
1
  /**
2
- * EPCIS 2.0 action types.
2
+ * GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or
3
+ * removes associations.
3
4
  */
4
5
  export declare const EpcisActionTypes: {
5
6
  /**
6
- * ADD action.
7
+ * Indicates that associations described by the event are created as of
8
+ * eventTime.
7
9
  */
8
10
  readonly Add: "ADD";
9
11
  /**
10
- * OBSERVE action.
12
+ * Reports an observation of existing associations without changing them.
11
13
  */
12
14
  readonly Observe: "OBSERVE";
13
15
  /**
14
- * DELETE action.
16
+ * Indicates that associations described by the event no longer hold as of
17
+ * eventTime.
15
18
  */
16
19
  readonly Delete: "DELETE";
17
20
  };
18
21
  /**
19
- * EPCIS 2.0 action types.
22
+ * GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or
23
+ * removes associations.
20
24
  */
21
25
  export type EpcisActionTypes = (typeof EpcisActionTypes)[keyof typeof EpcisActionTypes];
@@ -1,52 +1,193 @@
1
1
  /**
2
- * Supported EPCIS 2.0 bizStep.
2
+ * Supported EPCIS 2.0 `bizStep` values.
3
3
  *
4
- * See EPCIS CVB specification for details.
4
+ * These values come from the GS1 EPCIS / CBV (Core Business Vocabulary).
5
+ * Use the union type `EpcisBizStepTypes` when you want to restrict a field to known CBV values.
5
6
  */
6
7
  export declare const EpcisBizStepTypes: {
8
+ /**
9
+ * Activity where an object changes possession and/or ownership.
10
+ */
7
11
  readonly Accepting: "accepting";
12
+ /**
13
+ * Activity where an object arrives at a location.
14
+ */
8
15
  readonly Arriving: "arriving";
16
+ /**
17
+ * Combining one or more objects to create a new finished product while originals
18
+ * remain recognisable.
19
+ */
9
20
  readonly Assembling: "assembling";
21
+ /**
22
+ * Picking up and collecting an object for future disposal, recycling, or re-use.
23
+ */
10
24
  readonly Collecting: "collecting";
25
+ /**
26
+ * Associating a new instance- or class-level identifier with a specific object
27
+ * for the first time.
28
+ */
11
29
  readonly Commissioning: "commissioning";
30
+ /**
31
+ * Overall process covering staging_outbound, loading, departing, and accepting
32
+ * when granular steps are unknown.
33
+ */
12
34
  readonly Consigning: "consigning";
35
+ /**
36
+ * Step where an instance or increased quantity of a class-level identifier is
37
+ * produced and may repeat.
38
+ */
13
39
  readonly CreatingClassInstance: "creating_class_instance";
40
+ /**
41
+ * Counting objects within a location for business needs other than accounting.
42
+ */
14
43
  readonly CycleCounting: "cycle_counting";
44
+ /**
45
+ * Disassociating an instance-level identifier from an object; it may be
46
+ * re-commissioned later with a new identifier.
47
+ */
15
48
  readonly Decommissioning: "decommissioning";
49
+ /**
50
+ * Activity where an object leaves a location on its way to a destination.
51
+ */
16
52
  readonly Departing: "departing";
53
+ /**
54
+ * Process of terminating an object so it should not be subject of subsequent events.
55
+ */
17
56
  readonly Destroying: "destroying";
57
+ /**
58
+ * Breaking down an object into separate, uniquely identified component parts.
59
+ */
18
60
  readonly Disassembling: "disassembling";
61
+ /**
62
+ * Making a product available in full or part to a consumer.
63
+ */
19
64
  readonly Dispensing: "dispensing";
65
+ /**
66
+ * Writing an instance-level identifier to a barcode or RFID tag before
67
+ * association with an object.
68
+ */
20
69
  readonly Encoding: "encoding";
70
+ /**
71
+ * Activity at a facility entrance/exit where customers leave with purchases or
72
+ * enter with returns.
73
+ */
21
74
  readonly EnteringExiting: "entering_exiting";
75
+ /**
76
+ * Segregating an object for further review.
77
+ */
22
78
  readonly Holding: "holding";
79
+ /**
80
+ * Reviewing objects to address potential defects while keeping them viable in the
81
+ * supply chain.
82
+ */
23
83
  readonly Inspecting: "inspecting";
84
+ /**
85
+ * Putting an object into a composite object that already exists.
86
+ */
24
87
  readonly Installing: "installing";
88
+ /**
89
+ * Terminating an RFID tag previously associated with an object while the object
90
+ * continues to exist.
91
+ */
25
92
  readonly Killing: "killing";
93
+ /**
94
+ * Loading an object into a shipping conveyance.
95
+ */
26
96
  readonly Loading: "loading";
97
+ /**
98
+ * A business step not identified by the CBV list.
99
+ */
27
100
  readonly Other: "other";
101
+ /**
102
+ * Putting objects into a larger container for shipping, typically where
103
+ * aggregation occurs.
104
+ */
28
105
  readonly Packing: "packing";
106
+ /**
107
+ * Selecting objects to fill an order.
108
+ */
29
109
  readonly Picking: "picking";
110
+ /**
111
+ * Indicating an object is being received at a location and added to inventory.
112
+ */
30
113
  readonly Receiving: "receiving";
114
+ /**
115
+ * Taking an object out of a composite object; opposite of installing.
116
+ */
31
117
  readonly Removing: "removing";
118
+ /**
119
+ * Changing an object's packaging configuration.
120
+ */
32
121
  readonly Repackaging: "repackaging";
122
+ /**
123
+ * Repairing a malfunctioning product without replacing it.
124
+ */
33
125
  readonly Repairing: "repairing";
126
+ /**
127
+ * Substituting or exchanging an object for another object.
128
+ */
34
129
  readonly Replacing: "replacing";
130
+ /**
131
+ * Providing a set of not-yet-commissioned instance identifiers for use by another party.
132
+ */
35
133
  readonly Reserving: "reserving";
134
+ /**
135
+ * Point-of-sale activity transferring ownership to a customer for value.
136
+ */
36
137
  readonly RetailSelling: "retail_selling";
138
+ /**
139
+ * Overall process covering staging_outbound, loading, and departing when finer
140
+ * detail is unavailable.
141
+ */
37
142
  readonly Shipping: "shipping";
143
+ /**
144
+ * Moving an object from a facility to an area where it awaits transport pick-up.
145
+ */
38
146
  readonly StagingOutbound: "staging_outbound";
147
+ /**
148
+ * Counting objects within a location following established rules for accounting purposes.
149
+ */
39
150
  readonly StockTaking: "stock_taking";
151
+ /**
152
+ * Activity within a location to make an object available to customers or order
153
+ * fulfilment.
154
+ */
40
155
  readonly Stocking: "stocking";
156
+ /**
157
+ * Moving an object into and out of storage within a location.
158
+ */
41
159
  readonly Storing: "storing";
160
+ /**
161
+ * Moving an object from one location to another using a vehicle.
162
+ */
42
163
  readonly Transporting: "transporting";
164
+ /**
165
+ * Unloading an object from a shipping conveyance.
166
+ */
43
167
  readonly Unloading: "unloading";
168
+ /**
169
+ * Removing products from a larger container, usually after receiving or
170
+ * accepting.
171
+ */
44
172
  readonly Unpacking: "unpacking";
173
+ /**
174
+ * Declaring that objects in a prior outbound process were not shipped as previously indicated.
175
+ */
45
176
  readonly VoidShipping: "void_shipping";
177
+ /**
178
+ * Returning sensor data about the physical properties or condition of an object or location.
179
+ */
46
180
  readonly SensorReporting: "sensor_reporting";
181
+ /**
182
+ * Testing activity where portions of an object are examined, rendering the
183
+ * sampled object no longer viable.
184
+ */
47
185
  readonly Sampling: "sampling";
48
186
  };
49
187
  /**
50
- * EPCIS 2.0 action types.
188
+ * Supported EPCIS 2.0 `bizStep` values.
189
+ *
190
+ * These values come from the GS1 EPCIS / CBV (Core Business Vocabulary).
191
+ * Use the union type `EpcisBizStepTypes` when you want to restrict a field to known CBV values.
51
192
  */
52
193
  export type EpcisBizStepTypes = (typeof EpcisBizStepTypes)[keyof typeof EpcisBizStepTypes];
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Supported EPCIS 2.0 `bizTransaction-type` values.
3
+ */
4
+ export declare const EpcisBizTransactionTypes: {
5
+ /**
6
+ * A document issued by a carrier to a shipper, listing and acknowledging receipt
7
+ * of goods for transport and specifying terms of delivery.
8
+ */
9
+ readonly Bol: "bol";
10
+ /**
11
+ * A document confirming certain characteristics of an object, person, or
12
+ * organisation, typically issued by a third party.
13
+ */
14
+ readonly Cert: "cert";
15
+ /**
16
+ * A document/message by which the seller or consignor informs the consignee
17
+ * about the despatch of goods (Advanced Shipment Notice).
18
+ */
19
+ readonly Desadv: "desadv";
20
+ /**
21
+ * A document/message claiming payment for goods or services supplied under agreed
22
+ * conditions.
23
+ */
24
+ readonly Inv: "inv";
25
+ /**
26
+ * A record that traces the ownership or custody and transactions of a product as
27
+ * it moves among trading partners.
28
+ */
29
+ readonly Pedigree: "pedigree";
30
+ /**
31
+ * A document/message that specifies details for goods and services ordered under
32
+ * agreed conditions.
33
+ */
34
+ readonly Po: "po";
35
+ /**
36
+ * A document that provides confirmation from an external supplier to the request
37
+ * of a purchaser to deliver a specified quantity/service.
38
+ */
39
+ readonly Poc: "poc";
40
+ /**
41
+ * An organisation-internal document or message issued by a producer that
42
+ * initiates a manufacturing process of goods.
43
+ */
44
+ readonly Prodorder: "prodorder";
45
+ /**
46
+ * A document/message that lets the receiver inform the shipper of actual goods
47
+ * received compared to what was advised.
48
+ */
49
+ readonly Recadv: "recadv";
50
+ /**
51
+ * A document issued by the seller that authorises a buyer to return merchandise
52
+ * for credit determination.
53
+ */
54
+ readonly Rma: "rma";
55
+ /**
56
+ * A document that provides a formal specification of a sequence of instructions
57
+ * for verifying one or several criteria.
58
+ */
59
+ readonly Testprd: "testprd";
60
+ /**
61
+ * A document that includes the outcome of the execution of a given test
62
+ * procedure.
63
+ */
64
+ readonly Testres: "testres";
65
+ /**
66
+ * Event ID URI(s) of event(s) provided by an upstream supplier, such as packing
67
+ * and shipping events.
68
+ */
69
+ readonly Upevt: "upevt";
70
+ };
71
+ /**
72
+ * Supported EPCIS 2.0 `bizTransaction-type` values.
73
+ */
74
+ export type EpcisBizTransactionTypes = (typeof EpcisBizTransactionTypes)[keyof typeof EpcisBizTransactionTypes];
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Supported EPCIS 2.0 `component` values.
3
+ */
4
+ export declare const EpcisComponentTypes: {
5
+ /**
6
+ * Component or projection along the x axis in Cartesian coordinates (X, Y, Z).
7
+ */
8
+ readonly X: "x";
9
+ /**
10
+ * Component or projection along the y axis in Cartesian coordinates (X, Y, Z).
11
+ */
12
+ readonly Y: "y";
13
+ /**
14
+ * Component or projection along the z axis in Cartesian coordinates (X, Y, Z).
15
+ */
16
+ readonly Z: "z";
17
+ /**
18
+ * Radial distance from the cylindrical axis in a cylindrical polar coordinate
19
+ * system.
20
+ */
21
+ readonly AxialDistance: "axial_distance";
22
+ /**
23
+ * Angle measured in the XY plane, anticlockwise from the X axis to the plane
24
+ * containing the vector and the Z axis.
25
+ */
26
+ readonly Azimuth: "azimuth";
27
+ /**
28
+ * Height parallel to the cylindrical axis in a cylindrical polar coordinate
29
+ * system.
30
+ */
31
+ readonly Height: "height";
32
+ /**
33
+ * Radial distance from the centre of a sphere in a spherical polar coordinate
34
+ * system.
35
+ */
36
+ readonly SphericalRadius: "spherical_radius";
37
+ /**
38
+ * Angle measured from the Z axis to the vector in a spherical polar coordinate
39
+ * system.
40
+ */
41
+ readonly PolarAngle: "polar_angle";
42
+ /**
43
+ * Angle measured from the XY plane to the vector in a spherical polar coordinate
44
+ * system.
45
+ */
46
+ readonly ElevationAngle: "elevation_angle";
47
+ /**
48
+ * Component or projection along an east-pointing axis in a geographic Cartesian
49
+ * coordinate system.
50
+ */
51
+ readonly Easting: "easting";
52
+ /**
53
+ * Component or projection along a north-pointing axis in a geographic Cartesian
54
+ * coordinate system.
55
+ */
56
+ readonly Northing: "northing";
57
+ /**
58
+ * Angle of elevation from the equatorial plane in a geographic coordinate
59
+ * system.
60
+ */
61
+ readonly Latitude: "latitude";
62
+ /**
63
+ * Angle, measured within the equatorial plane, east of the prime meridian in a
64
+ * geographic coordinate system.
65
+ */
66
+ readonly Longitude: "longitude";
67
+ /**
68
+ * Height above a defined surface (such as mean sea level) in a geographic
69
+ * coordinate system.
70
+ */
71
+ readonly Altitude: "altitude";
72
+ };
73
+ /**
74
+ * Supported EPCIS 2.0 `component` values.
75
+ */
76
+ export type EpcisComponentTypes = (typeof EpcisComponentTypes)[keyof typeof EpcisComponentTypes];
@@ -0,0 +1,8 @@
1
+ import type { SingleOccurrenceArray } from "@twin.org/core";
2
+ import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
3
+ import type { EpcisContexts } from "./epcisContexts.js";
4
+ /**
5
+ * Allowed shapes for an EPCIS 2.0 JSON-LD `@context`, anchored on the GS1
6
+ * context root and optionally augmented with custom entries.
7
+ */
8
+ export type EpcisContextType = typeof EpcisContexts.Context | SingleOccurrenceArray<IJsonLdContextDefinitionElement, typeof EpcisContexts.Context>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Canonical EPCIS JSON-LD context IRIs as defined by GS1.
3
+ */
4
+ export declare const EpcisContexts: {
5
+ /**
6
+ * The canonical RDF namespace URI.
7
+ */
8
+ readonly Namespace: "https://ref.gs1.org/epcis/";
9
+ /**
10
+ * The value to use in JSON-LD context.
11
+ * Note: Context differs from Namespace (no trailing slash) as per GS1 EPCIS standard specification.
12
+ * The EPCIS JSON-LD context URL format does not include a trailing slash.
13
+ */
14
+ readonly Context: "https://ref.gs1.org/epcis";
15
+ /**
16
+ * The JSON-LD Context URL.
17
+ */
18
+ readonly JsonLdContext: "https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld";
19
+ /**
20
+ * The namespace location of the hosted version of the JSON Schema.
21
+ */
22
+ readonly JsonSchemaNamespace: "https://schema.twindev.org/gs1/";
23
+ };
24
+ /**
25
+ * Canonical EPCIS JSON-LD context IRIs as defined by GS1.
26
+ */
27
+ export type EpcisContexts = (typeof EpcisContexts)[keyof typeof EpcisContexts];