@twin.org/standards-gs1 0.0.3-next.10 → 0.0.3-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/es/dataTypes/epcisDataTypes.js +61 -0
  2. package/dist/es/dataTypes/epcisDataTypes.js.map +1 -0
  3. package/dist/es/dataTypes/gs1DataTypes.js +2 -2
  4. package/dist/es/dataTypes/gs1DataTypes.js.map +1 -1
  5. package/dist/es/index.js +26 -7
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -1
  8. package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -1
  9. package/dist/es/models/epcis20/IEpcisAttribute.js +2 -0
  10. package/dist/es/models/epcis20/IEpcisAttribute.js.map +1 -0
  11. package/dist/es/models/epcis20/IEpcisBizTransaction.js +0 -2
  12. package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -1
  13. package/dist/es/models/epcis20/IEpcisDestination.js +0 -2
  14. package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -1
  15. package/dist/es/models/epcis20/IEpcisDocument.js.map +1 -1
  16. package/dist/es/models/epcis20/IEpcisErrorDeclaration.js +2 -0
  17. package/dist/es/models/epcis20/IEpcisErrorDeclaration.js.map +1 -0
  18. package/dist/es/models/epcis20/IEpcisEvent.js.map +1 -1
  19. package/dist/es/models/epcis20/IEpcisHeader.js +2 -0
  20. package/dist/es/models/epcis20/IEpcisHeader.js.map +1 -0
  21. package/dist/es/models/epcis20/IEpcisIlmd.js +2 -0
  22. package/dist/es/models/epcis20/IEpcisIlmd.js.map +1 -0
  23. package/dist/es/models/epcis20/IEpcisLocation.js +2 -0
  24. package/dist/es/models/epcis20/IEpcisLocation.js.map +1 -0
  25. package/dist/es/models/epcis20/IEpcisObjectEvent.js.map +1 -1
  26. package/dist/es/models/epcis20/IEpcisPersistentDisposition.js +2 -0
  27. package/dist/es/models/epcis20/IEpcisPersistentDisposition.js.map +1 -0
  28. package/dist/es/models/epcis20/IEpcisQuantity.js +0 -2
  29. package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -1
  30. package/dist/es/models/epcis20/IEpcisQuery.js.map +1 -1
  31. package/dist/es/models/epcis20/IEpcisQueryDocument.js.map +1 -1
  32. package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js +2 -0
  33. package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js.map +1 -0
  34. package/dist/es/models/epcis20/IEpcisQueryResults.js +2 -0
  35. package/dist/es/models/epcis20/IEpcisQueryResults.js.map +1 -0
  36. package/dist/es/models/epcis20/IEpcisQueryResultsBody.js +2 -0
  37. package/dist/es/models/epcis20/IEpcisQueryResultsBody.js.map +1 -0
  38. package/dist/es/models/epcis20/IEpcisSensorElement.js.map +1 -1
  39. package/dist/es/models/epcis20/IEpcisSensorMetadata.js +0 -2
  40. package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -1
  41. package/dist/es/models/epcis20/IEpcisSensorReport.js +0 -2
  42. package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -1
  43. package/dist/es/models/epcis20/IEpcisSource.js +0 -2
  44. package/dist/es/models/epcis20/IEpcisSource.js.map +1 -1
  45. package/dist/es/models/epcis20/IEpcisTransactionEvent.js +2 -0
  46. package/dist/es/models/epcis20/IEpcisTransactionEvent.js.map +1 -0
  47. package/dist/es/models/epcis20/IEpcisTransformationEvent.js +2 -0
  48. package/dist/es/models/epcis20/IEpcisTransformationEvent.js.map +1 -0
  49. package/dist/es/models/epcis20/IEpcisVocabulary.js +2 -0
  50. package/dist/es/models/epcis20/IEpcisVocabulary.js.map +1 -0
  51. package/dist/es/models/epcis20/IEpcisVocabularyElement.js +2 -0
  52. package/dist/es/models/epcis20/IEpcisVocabularyElement.js.map +1 -0
  53. package/dist/es/models/epcis20/epcisActionTypes.js +7 -4
  54. package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -1
  55. package/dist/es/models/epcis20/epcisBizStepTypes.js +140 -2
  56. package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -1
  57. package/dist/es/models/epcis20/epcisBizTransactionTypes.js +75 -0
  58. package/dist/es/models/epcis20/epcisBizTransactionTypes.js.map +1 -0
  59. package/dist/es/models/epcis20/epcisComponentTypes.js +77 -0
  60. package/dist/es/models/epcis20/epcisComponentTypes.js.map +1 -0
  61. package/dist/es/models/epcis20/epcisContextType.js +2 -0
  62. package/dist/es/models/epcis20/epcisContextType.js.map +1 -0
  63. package/dist/es/models/epcis20/epcisContexts.js +17 -0
  64. package/dist/es/models/epcis20/epcisContexts.js.map +1 -0
  65. package/dist/es/models/epcis20/epcisDispositionTypes.js +112 -2
  66. package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -1
  67. package/dist/es/models/epcis20/epcisErrorReasonTypes.js +20 -0
  68. package/dist/es/models/epcis20/epcisErrorReasonTypes.js.map +1 -0
  69. package/dist/es/models/epcis20/epcisEventTypes.js +6 -6
  70. package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -1
  71. package/dist/es/models/epcis20/epcisEvents.js +2 -0
  72. package/dist/es/models/epcis20/epcisEvents.js.map +1 -0
  73. package/dist/es/models/epcis20/epcisMeasurementTypes.js +301 -0
  74. package/dist/es/models/epcis20/epcisMeasurementTypes.js.map +1 -0
  75. package/dist/es/models/epcis20/epcisSensorAlertTypes.js +19 -0
  76. package/dist/es/models/epcis20/epcisSensorAlertTypes.js.map +1 -0
  77. package/dist/es/models/epcis20/epcisSourceDestTypes.js +26 -0
  78. package/dist/es/models/epcis20/epcisSourceDestTypes.js.map +1 -0
  79. package/dist/es/models/epcis20/epcisTypes.js +37 -0
  80. package/dist/es/models/epcis20/epcisTypes.js.map +1 -0
  81. package/dist/es/models/gs1/gs1Contexts.js +2 -2
  82. package/dist/es/models/gs1/gs1Contexts.js.map +1 -1
  83. package/dist/es/schemas/EpcisAggregationEvent.json +273 -0
  84. package/dist/es/schemas/EpcisAssociationEvent.json +274 -0
  85. package/dist/es/schemas/EpcisDocument.json +204 -0
  86. package/dist/es/schemas/EpcisObjectEvent.json +277 -0
  87. package/dist/es/schemas/EpcisQueryDocument.json +173 -0
  88. package/dist/es/schemas/EpcisTransactionEvent.json +274 -0
  89. package/dist/es/schemas/EpcisTransformationEvent.json +290 -0
  90. package/dist/types/dataTypes/epcisDataTypes.d.ts +13 -0
  91. package/dist/types/index.d.ts +26 -7
  92. package/dist/types/models/epcis20/IEpcisAggregationEvent.d.ts +75 -4
  93. package/dist/types/models/epcis20/IEpcisAssociationEvent.d.ts +74 -4
  94. package/dist/types/models/epcis20/IEpcisAttribute.d.ts +15 -0
  95. package/dist/types/models/epcis20/IEpcisBizTransaction.d.ts +12 -5
  96. package/dist/types/models/epcis20/IEpcisDestination.d.ts +13 -5
  97. package/dist/types/models/epcis20/IEpcisDocument.d.ts +35 -7
  98. package/dist/types/models/epcis20/IEpcisErrorDeclaration.d.ts +25 -0
  99. package/dist/types/models/epcis20/IEpcisEvent.d.ts +23 -22
  100. package/dist/types/models/epcis20/IEpcisHeader.d.ts +17 -0
  101. package/dist/types/models/epcis20/IEpcisIlmd.d.ts +8 -0
  102. package/dist/types/models/epcis20/IEpcisLocation.d.ts +12 -0
  103. package/dist/types/models/epcis20/IEpcisObjectEvent.d.ts +72 -12
  104. package/dist/types/models/epcis20/IEpcisPersistentDisposition.d.ts +17 -0
  105. package/dist/types/models/epcis20/IEpcisQuantity.d.ts +14 -5
  106. package/dist/types/models/epcis20/IEpcisQuery.d.ts +2 -1
  107. package/dist/types/models/epcis20/IEpcisQueryDocument.d.ts +10 -30
  108. package/dist/types/models/epcis20/IEpcisQueryDocumentBody.d.ts +12 -0
  109. package/dist/types/models/epcis20/IEpcisQueryResults.d.ts +20 -0
  110. package/dist/types/models/epcis20/IEpcisQueryResultsBody.d.ts +17 -0
  111. package/dist/types/models/epcis20/IEpcisSensorElement.d.ts +13 -8
  112. package/dist/types/models/epcis20/IEpcisSensorMetadata.d.ts +37 -10
  113. package/dist/types/models/epcis20/IEpcisSensorReport.d.ts +122 -8
  114. package/dist/types/models/epcis20/IEpcisSource.d.ts +12 -5
  115. package/dist/types/models/epcis20/IEpcisTransactionEvent.d.ts +78 -0
  116. package/dist/types/models/epcis20/IEpcisTransformationEvent.d.ts +96 -0
  117. package/dist/types/models/epcis20/IEpcisVocabulary.d.ts +16 -0
  118. package/dist/types/models/epcis20/IEpcisVocabularyElement.d.ts +21 -0
  119. package/dist/types/models/epcis20/epcisActionTypes.d.ts +9 -5
  120. package/dist/types/models/epcis20/epcisBizStepTypes.d.ts +144 -3
  121. package/dist/types/models/epcis20/epcisBizTransactionTypes.d.ts +74 -0
  122. package/dist/types/models/epcis20/epcisComponentTypes.d.ts +76 -0
  123. package/dist/types/models/epcis20/epcisContextType.d.ts +15 -0
  124. package/dist/types/models/epcis20/epcisContexts.d.ts +17 -0
  125. package/dist/types/models/epcis20/epcisDispositionTypes.d.ts +117 -3
  126. package/dist/types/models/epcis20/epcisErrorReasonTypes.d.ts +19 -0
  127. package/dist/types/models/epcis20/epcisEventTypes.d.ts +7 -7
  128. package/dist/types/models/epcis20/epcisEvents.d.ts +11 -0
  129. package/dist/types/models/epcis20/epcisMeasurementTypes.d.ts +303 -0
  130. package/dist/types/models/epcis20/epcisSensorAlertTypes.d.ts +19 -0
  131. package/dist/types/models/epcis20/epcisSourceDestTypes.d.ts +26 -0
  132. package/dist/types/models/epcis20/epcisTypes.d.ts +37 -0
  133. package/dist/types/models/gs1/gs1Contexts.d.ts +2 -2
  134. package/docs/changelog.md +8 -0
  135. package/docs/reference/classes/EpcisDataTypes.md +37 -0
  136. package/docs/reference/index.md +40 -15
  137. package/docs/reference/interfaces/IEpcisAggregationEvent.md +223 -0
  138. package/docs/reference/interfaces/IEpcisAssociationEvent.md +222 -0
  139. package/docs/reference/interfaces/IEpcisAttribute.md +31 -0
  140. package/docs/reference/interfaces/IEpcisBizTransaction.md +35 -0
  141. package/docs/reference/interfaces/IEpcisDestination.md +36 -0
  142. package/docs/reference/interfaces/IEpcisDocument.md +67 -3
  143. package/docs/reference/interfaces/IEpcisErrorDeclaration.md +44 -0
  144. package/docs/reference/interfaces/IEpcisEvent.md +46 -30
  145. package/docs/reference/interfaces/IEpcisHeader.md +31 -0
  146. package/docs/reference/interfaces/IEpcisIlmd.md +16 -0
  147. package/docs/reference/interfaces/IEpcisLocation.md +24 -0
  148. package/docs/reference/interfaces/IEpcisObjectEvent.md +228 -0
  149. package/docs/reference/interfaces/IEpcisPersistentDisposition.md +32 -0
  150. package/docs/reference/interfaces/IEpcisQuantity.md +42 -0
  151. package/docs/reference/interfaces/IEpcisQuery.md +5 -1
  152. package/docs/reference/interfaces/IEpcisQueryDocument.md +20 -34
  153. package/docs/reference/interfaces/IEpcisQueryDocumentBody.md +23 -0
  154. package/docs/reference/interfaces/IEpcisQueryResults.md +39 -0
  155. package/docs/reference/interfaces/IEpcisQueryResultsBody.md +31 -0
  156. package/docs/reference/interfaces/IEpcisSensorElement.md +34 -0
  157. package/docs/reference/interfaces/IEpcisSensorMetadata.md +88 -0
  158. package/docs/reference/interfaces/IEpcisSensorReport.md +232 -0
  159. package/docs/reference/interfaces/IEpcisSource.md +35 -0
  160. package/docs/reference/interfaces/IEpcisTransactionEvent.md +220 -0
  161. package/docs/reference/interfaces/IEpcisTransformationEvent.md +249 -0
  162. package/docs/reference/interfaces/IEpcisVocabulary.md +31 -0
  163. package/docs/reference/interfaces/IEpcisVocabularyElement.md +40 -0
  164. package/docs/reference/type-aliases/EpcisActionTypes.md +2 -1
  165. package/docs/reference/type-aliases/EpcisBizStepTypes.md +4 -1
  166. package/docs/reference/type-aliases/EpcisBizTransactionTypes.md +5 -0
  167. package/docs/reference/type-aliases/EpcisComponentTypes.md +5 -0
  168. package/docs/reference/type-aliases/EpcisContextType.md +6 -0
  169. package/docs/reference/type-aliases/EpcisContexts.md +5 -0
  170. package/docs/reference/type-aliases/EpcisDispositionTypes.md +5 -1
  171. package/docs/reference/type-aliases/EpcisErrorReasonTypes.md +5 -0
  172. package/docs/reference/type-aliases/EpcisEventTypes.md +1 -1
  173. package/docs/reference/type-aliases/EpcisEvents.md +6 -0
  174. package/docs/reference/type-aliases/EpcisMeasurementTypes.md +8 -0
  175. package/docs/reference/type-aliases/EpcisSensorAlertTypes.md +6 -0
  176. package/docs/reference/type-aliases/EpcisSourceDestTypes.md +6 -0
  177. package/docs/reference/variables/EpcisActionTypes.md +7 -4
  178. package/docs/reference/variables/EpcisBizStepTypes.md +99 -2
  179. package/docs/reference/variables/EpcisBizTransactionTypes.md +98 -0
  180. package/docs/reference/variables/EpcisComponentTypes.md +102 -0
  181. package/docs/reference/variables/EpcisContexts.md +19 -0
  182. package/docs/reference/variables/EpcisDispositionTypes.md +79 -2
  183. package/docs/reference/variables/EpcisErrorReasonTypes.md +21 -0
  184. package/docs/reference/variables/EpcisEventTypes.md +6 -6
  185. package/docs/reference/variables/EpcisMeasurementTypes.md +442 -0
  186. package/docs/reference/variables/EpcisSensorAlertTypes.md +20 -0
  187. package/docs/reference/variables/EpcisSourceDestTypes.md +29 -0
  188. package/docs/reference/variables/GS1Contexts.md +3 -3
  189. package/package.json +1 -1
  190. package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js +0 -2
  191. package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js.map +0 -1
  192. package/dist/es/models/epcis20/IEpcisEventDetails.js +0 -2
  193. package/dist/es/models/epcis20/IEpcisEventDetails.js.map +0 -1
  194. package/dist/es/models/epcis20/IEpcisSimpleLocation.js +0 -4
  195. package/dist/es/models/epcis20/IEpcisSimpleLocation.js.map +0 -1
  196. package/dist/es/models/epcis20/epcisErrorTypes.js +0 -11
  197. package/dist/es/models/epcis20/epcisErrorTypes.js.map +0 -1
  198. package/dist/es/models/epcis20/epcisEventUnionType.js +0 -2
  199. package/dist/es/models/epcis20/epcisEventUnionType.js.map +0 -1
  200. package/dist/types/models/epcis20/IEpcisBaseAggregationEvent.d.ts +0 -19
  201. package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +0 -35
  202. package/dist/types/models/epcis20/IEpcisSimpleLocation.d.ts +0 -9
  203. package/dist/types/models/epcis20/epcisErrorTypes.d.ts +0 -11
  204. package/dist/types/models/epcis20/epcisEventUnionType.d.ts +0 -7
  205. package/docs/reference/interfaces/IAggregationEvent.md +0 -223
  206. package/docs/reference/interfaces/IAssociationEvent.md +0 -223
  207. package/docs/reference/interfaces/IBizTransaction.md +0 -19
  208. package/docs/reference/interfaces/IDestination.md +0 -19
  209. package/docs/reference/interfaces/IEpcisEventDetails.md +0 -167
  210. package/docs/reference/interfaces/IObjectEvent.md +0 -211
  211. package/docs/reference/interfaces/IQuantity.md +0 -19
  212. package/docs/reference/interfaces/ISensorElement.md +0 -19
  213. package/docs/reference/interfaces/ISensorMetadata.md +0 -35
  214. package/docs/reference/interfaces/ISensorReport.md +0 -27
  215. package/docs/reference/interfaces/ISimpleLocation.md +0 -11
  216. package/docs/reference/interfaces/ISource.md +0 -19
  217. package/docs/reference/type-aliases/EpcisErrorTypes.md +0 -5
  218. package/docs/reference/type-aliases/EpcisEventUnionType.md +0 -5
  219. package/docs/reference/variables/EpcisErrorTypes.md +0 -15
@@ -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,15 @@
1
+ import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
+ import type { EpcisContexts } from "./epcisContexts.js";
3
+ /**
4
+ * Allowed shapes for an EPCIS 2.0 JSON-LD `@context`, anchored on the GS1
5
+ * context root and optionally augmented with custom entries.
6
+ */
7
+ export type EpcisContextType = typeof EpcisContexts.Namespace | [typeof EpcisContexts.Namespace] | [
8
+ ...IJsonLdContextDefinitionElement[],
9
+ typeof EpcisContexts.Namespace,
10
+ IJsonLdContextDefinitionElement
11
+ ] | [
12
+ IJsonLdContextDefinitionElement,
13
+ typeof EpcisContexts.Namespace,
14
+ ...IJsonLdContextDefinitionElement[]
15
+ ];
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Canonical EPCIS JSON-LD context IRIs as defined by GS1.
3
+ */
4
+ export declare const EpcisContexts: {
5
+ /**
6
+ * The namespace for the objects.
7
+ */
8
+ readonly Namespace: "https://ref.gs1.org/epcis/";
9
+ /**
10
+ * The JSON-LD Context URL.
11
+ */
12
+ readonly JsonLdContext: "https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld";
13
+ };
14
+ /**
15
+ * Canonical EPCIS JSON-LD context IRIs as defined by GS1.
16
+ */
17
+ export type EpcisContexts = (typeof EpcisContexts)[keyof typeof EpcisContexts];
@@ -1,44 +1,158 @@
1
1
  /**
2
- * EPCIS 2.0 disposition types.
2
+ * Supported EPCIS 2.0 `disposition` values from the GS1 Core Business
3
+ * Vocabulary (CBV).
3
4
  *
4
- * See EPCIS CVB for more details.
5
+ * Use the union type `EpcisDispositionTypes` to restrict a field to known CBV
6
+ * values.
5
7
  */
6
8
  export declare const EpcisDispositionTypes: {
9
+ /**
10
+ * A commissioned object has just been introduced into the supply chain.
11
+ */
7
12
  readonly Active: "active";
13
+ /**
14
+ * Object has been loaded onto a container, the doors closed, and the shipment
15
+ * sealed.
16
+ */
8
17
  readonly ContainerClosed: "container_closed";
18
+ /**
19
+ * Object is impaired in usefulness or value due to a defect.
20
+ */
9
21
  readonly Damaged: "damaged";
22
+ /**
23
+ * Object has been fully rendered non-usable.
24
+ */
10
25
  readonly Destroyed: "destroyed";
26
+ /**
27
+ * A full quantity of product is distributed to a consumer.
28
+ */
11
29
  readonly Dispensed: "dispensed";
30
+ /**
31
+ * Object has been returned for disposal.
32
+ */
12
33
  readonly Disposed: "disposed";
34
+ /**
35
+ * An instance-level identifier has been written to a barcode or RFID tag, but
36
+ * not yet commissioned.
37
+ */
13
38
  readonly Encoded: "encoded";
39
+ /**
40
+ * Object's expiration date is in the past.
41
+ */
14
42
  readonly Expired: "expired";
43
+ /**
44
+ * Optional disposition for objects proceeding through points in the supply
45
+ * chain.
46
+ */
15
47
  readonly InProgress: "in_progress";
48
+ /**
49
+ * Object is being shipped between two trading partners.
50
+ */
16
51
  readonly InTransit: "in_transit";
52
+ /**
53
+ * Decommissioned object that may be reintroduced to the supply chain.
54
+ */
17
55
  readonly Inactive: "inactive";
56
+ /**
57
+ * No pedigree match was found during validation, so the product is quarantined
58
+ * for investigation.
59
+ */
18
60
  readonly NoPedigreeMatch: "no_pedigree_match";
61
+ /**
62
+ * Object cannot be sold to a customer.
63
+ */
19
64
  readonly NonSellableOther: "non_sellable_other";
65
+ /**
66
+ * A portion of a product is distributed to a customer while additional product
67
+ * is retained.
68
+ */
20
69
  readonly PartiallyDispensed: "partially_dispensed";
70
+ /**
71
+ * Object is non-sellable because of public safety reasons.
72
+ */
21
73
  readonly Recalled: "recalled";
74
+ /**
75
+ * Instance-level identifier has been allocated for a third party.
76
+ */
22
77
  readonly Reserved: "reserved";
78
+ /**
79
+ * Product has been purchased by a customer.
80
+ */
23
81
  readonly RetailSold: "retail_sold";
82
+ /**
83
+ * Object has been sent or brought back for various reasons; it may or may not
84
+ * be sellable.
85
+ */
24
86
  readonly Returned: "returned";
87
+ /**
88
+ * Product can be sold as is and a customer can access it for purchase.
89
+ */
25
90
  readonly SellableAccessible: "sellable_accessible";
91
+ /**
92
+ * Product can be sold as is, but a customer cannot access it for purchase.
93
+ */
26
94
  readonly SellableNotAccessible: "sellable_not_accessible";
95
+ /**
96
+ * An object has been taken without permission or right.
97
+ */
27
98
  readonly Stolen: "stolen";
99
+ /**
100
+ * An object's condition is not known.
101
+ */
28
102
  readonly Unknown: "unknown";
103
+ /**
104
+ * Object has been returned to service or the supply chain after repair.
105
+ */
29
106
  readonly Available: "available";
107
+ /**
108
+ * Explicitly indicates verified integrity of an aggregation when children are
109
+ * unpacked or verified.
110
+ */
30
111
  readonly CompletenessVerified: "completeness_verified";
112
+ /**
113
+ * Indicates inferred integrity of an aggregation based on upstream aggregation
114
+ * information.
115
+ */
31
116
  readonly CompletenessInferred: "completeness_inferred";
117
+ /**
118
+ * Outcome of a successful inspection in an inspecting or repairing step.
119
+ */
32
120
  readonly Conformant: "conformant";
121
+ /**
122
+ * Container doors have been opened or a shipment seal has been broken.
123
+ */
33
124
  readonly ContainerOpen: "container_open";
125
+ /**
126
+ * Instance-level identifiers do not match what was expected.
127
+ */
34
128
  readonly MismatchInstance: "mismatch_instance";
129
+ /**
130
+ * Class-level identifiers do not match what was expected.
131
+ */
35
132
  readonly MismatchClass: "mismatch_class";
133
+ /**
134
+ * Quantities do not match what was expected.
135
+ */
36
136
  readonly MismatchQuantity: "mismatch_quantity";
137
+ /**
138
+ * Components or assets must be replaced to ensure functional requirements.
139
+ */
37
140
  readonly NeedsReplacement: "needs_replacement";
141
+ /**
142
+ * Outcome of an unsuccessful inspection in an inspecting or repairing step.
143
+ */
38
144
  readonly NonConformant: "non_conformant";
145
+ /**
146
+ * Object has been removed from service or the supply chain, for example pending
147
+ * repair.
148
+ */
39
149
  readonly Unavailable: "unavailable";
40
150
  };
41
151
  /**
42
- * EPCIS 2.0 disposition types.
152
+ * Supported EPCIS 2.0 `disposition` values from the GS1 Core Business
153
+ * Vocabulary (CBV).
154
+ *
155
+ * Use the union type `EpcisDispositionTypes` to restrict a field to known CBV
156
+ * values.
43
157
  */
44
158
  export type EpcisDispositionTypes = (typeof EpcisDispositionTypes)[keyof typeof EpcisDispositionTypes];
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Supported EPCIS 2.0 `error-reason` values from the GS1 EPCIS JSON Schema.
3
+ */
4
+ export declare const EpcisErrorReasonTypes: {
5
+ /**
6
+ * Prior event is erroneous because it did not actually occur; no corrective
7
+ * events exist.
8
+ */
9
+ readonly DidNotOccur: "did_not_occur";
10
+ /**
11
+ * Prior event has incorrect data and may be corrected by subsequent linked
12
+ * events.
13
+ */
14
+ readonly IncorrectData: "incorrect_data";
15
+ };
16
+ /**
17
+ * Supported EPCIS 2.0 `error-reason` values from the GS1 EPCIS JSON Schema.
18
+ */
19
+ export type EpcisErrorReasonTypes = (typeof EpcisErrorReasonTypes)[keyof typeof EpcisErrorReasonTypes];
@@ -1,29 +1,29 @@
1
1
  /**
2
- * EPCIS 2.0 event types.
2
+ * EPCIS 2.0 event type identifiers used in EPCIS JSON and XML documents.
3
3
  */
4
4
  export declare const EpcisEventTypes: {
5
5
  /**
6
- * ObjectEvent.
6
+ * Event that observes one or more instance- or class-level objects.
7
7
  */
8
8
  readonly ObjectEvent: "ObjectEvent";
9
9
  /**
10
- * Aggregation Event.
10
+ * Event recording child objects aggregated under a parent identifier.
11
11
  */
12
12
  readonly AggregationEvent: "AggregationEvent";
13
13
  /**
14
- * Association Event.
14
+ * Event recording parent/child associations without implying containment.
15
15
  */
16
16
  readonly AssociationEvent: "AssociationEvent";
17
17
  /**
18
- * Transformation Event.
18
+ * Event recording how inputs are transformed into outputs.
19
19
  */
20
20
  readonly TransformationEvent: "TransformationEvent";
21
21
  /**
22
- * Transaction Event.
22
+ * Event linking objects or quantities to business transactions.
23
23
  */
24
24
  readonly TransactionEvent: "TransactionEvent";
25
25
  };
26
26
  /**
27
- * EPCIS 2.0 event types.
27
+ * EPCIS 2.0 event type identifiers used in EPCIS JSON and XML documents.
28
28
  */
29
29
  export type EpcisEventTypes = (typeof EpcisEventTypes)[keyof typeof EpcisEventTypes];
@@ -0,0 +1,11 @@
1
+ import type { IEpcisAggregationEvent } from "./IEpcisAggregationEvent.js";
2
+ import type { IEpcisAssociationEvent } from "./IEpcisAssociationEvent.js";
3
+ import type { IEpcisEvent } from "./IEpcisEvent.js";
4
+ import type { IEpcisObjectEvent } from "./IEpcisObjectEvent.js";
5
+ import type { IEpcisTransactionEvent } from "./IEpcisTransactionEvent.js";
6
+ import type { IEpcisTransformationEvent } from "./IEpcisTransformationEvent.js";
7
+ /**
8
+ * Discriminated union covering all EPCIS 2.0 event interfaces used in this
9
+ * package.
10
+ */
11
+ export type EpcisEvents = IEpcisObjectEvent | IEpcisAssociationEvent | IEpcisAggregationEvent | IEpcisTransactionEvent | IEpcisTransformationEvent | IEpcisEvent;