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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) 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/entities/gs1Location.js.map +1 -1
  6. package/dist/es/index.js +39 -20
  7. package/dist/es/index.js.map +1 -1
  8. package/dist/es/models/epcis20/IEpcisAggregationEvent.js +2 -0
  9. package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -0
  10. package/dist/es/models/epcis20/IEpcisAssociationEvent.js +2 -0
  11. package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -0
  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 +2 -0
  15. package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -0
  16. package/dist/es/models/epcis20/IEpcisDestination.js +2 -0
  17. package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -0
  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/IEpcisIlmd.js +2 -0
  25. package/dist/es/models/epcis20/IEpcisIlmd.js.map +1 -0
  26. package/dist/es/models/epcis20/IEpcisLocation.js +2 -0
  27. package/dist/es/models/epcis20/IEpcisLocation.js.map +1 -0
  28. package/dist/es/models/epcis20/IEpcisObjectEvent.js +2 -0
  29. package/dist/es/models/epcis20/IEpcisObjectEvent.js.map +1 -0
  30. package/dist/es/models/epcis20/IEpcisPersistentDisposition.js +2 -0
  31. package/dist/es/models/epcis20/IEpcisPersistentDisposition.js.map +1 -0
  32. package/dist/es/models/epcis20/IEpcisQuantity.js +2 -0
  33. package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -0
  34. package/dist/es/models/epcis20/IEpcisQuery.js.map +1 -1
  35. package/dist/es/models/epcis20/IEpcisQueryDocument.js.map +1 -1
  36. package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js +2 -0
  37. package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js.map +1 -0
  38. package/dist/es/models/epcis20/IEpcisQueryResults.js +2 -0
  39. package/dist/es/models/epcis20/IEpcisQueryResults.js.map +1 -0
  40. package/dist/es/models/epcis20/IEpcisQueryResultsBody.js +2 -0
  41. package/dist/es/models/epcis20/IEpcisQueryResultsBody.js.map +1 -0
  42. package/dist/es/models/epcis20/IEpcisSensorElement.js +2 -0
  43. package/dist/es/models/epcis20/IEpcisSensorElement.js.map +1 -0
  44. package/dist/es/models/epcis20/IEpcisSensorMetadata.js +2 -0
  45. package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -0
  46. package/dist/es/models/epcis20/IEpcisSensorReport.js +2 -0
  47. package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -0
  48. package/dist/es/models/epcis20/IEpcisSource.js +2 -0
  49. package/dist/es/models/epcis20/IEpcisSource.js.map +1 -0
  50. package/dist/es/models/epcis20/IEpcisTransactionEvent.js +2 -0
  51. package/dist/es/models/epcis20/IEpcisTransactionEvent.js.map +1 -0
  52. package/dist/es/models/epcis20/IEpcisTransformationEvent.js +2 -0
  53. package/dist/es/models/epcis20/IEpcisTransformationEvent.js.map +1 -0
  54. package/dist/es/models/epcis20/IEpcisVocabulary.js +2 -0
  55. package/dist/es/models/epcis20/IEpcisVocabulary.js.map +1 -0
  56. package/dist/es/models/epcis20/IEpcisVocabularyElement.js +2 -0
  57. package/dist/es/models/epcis20/IEpcisVocabularyElement.js.map +1 -0
  58. package/dist/es/models/epcis20/epcisActionTypes.js +24 -0
  59. package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -0
  60. package/dist/es/models/epcis20/epcisBizStepTypes.js +190 -0
  61. package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -0
  62. package/dist/es/models/epcis20/epcisBizTransactionTypes.js +75 -0
  63. package/dist/es/models/epcis20/epcisBizTransactionTypes.js.map +1 -0
  64. package/dist/es/models/epcis20/epcisComponentTypes.js +77 -0
  65. package/dist/es/models/epcis20/epcisComponentTypes.js.map +1 -0
  66. package/dist/es/models/epcis20/epcisContextType.js +2 -0
  67. package/dist/es/models/epcis20/epcisContextType.js.map +1 -0
  68. package/dist/es/models/epcis20/epcisContexts.js +17 -0
  69. package/dist/es/models/epcis20/epcisContexts.js.map +1 -0
  70. package/dist/es/models/epcis20/epcisDispositionTypes.js +155 -0
  71. package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -0
  72. package/dist/es/models/epcis20/epcisErrorReasonTypes.js +20 -0
  73. package/dist/es/models/epcis20/epcisErrorReasonTypes.js.map +1 -0
  74. package/dist/es/models/epcis20/epcisEventTypes.js +29 -0
  75. package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -0
  76. package/dist/es/models/epcis20/epcisEvents.js +2 -0
  77. package/dist/es/models/epcis20/epcisEvents.js.map +1 -0
  78. package/dist/es/models/epcis20/epcisMeasurementTypes.js +301 -0
  79. package/dist/es/models/epcis20/epcisMeasurementTypes.js.map +1 -0
  80. package/dist/es/models/epcis20/epcisSensorAlertTypes.js +19 -0
  81. package/dist/es/models/epcis20/epcisSensorAlertTypes.js.map +1 -0
  82. package/dist/es/models/epcis20/epcisSourceDestTypes.js +26 -0
  83. package/dist/es/models/epcis20/epcisSourceDestTypes.js.map +1 -0
  84. package/dist/es/models/epcis20/epcisTypes.js +37 -0
  85. package/dist/es/models/epcis20/epcisTypes.js.map +1 -0
  86. package/dist/es/models/gs1/gs1Contexts.js +2 -2
  87. package/dist/es/models/gs1/gs1Contexts.js.map +1 -1
  88. package/dist/es/models/gs1/{subSiteAttributes.js → gs1SubSiteAttributes.js} +2 -2
  89. package/dist/es/models/gs1/gs1SubSiteAttributes.js.map +1 -0
  90. package/dist/es/models/gs1/{subSiteTypes.js → gs1SubSiteTypes.js} +2 -2
  91. package/dist/es/models/gs1/gs1SubSiteTypes.js.map +1 -0
  92. package/dist/es/schemas/EpcisAggregationEvent.json +273 -0
  93. package/dist/es/schemas/EpcisAssociationEvent.json +274 -0
  94. package/dist/es/schemas/EpcisDocument.json +204 -0
  95. package/dist/es/schemas/EpcisObjectEvent.json +277 -0
  96. package/dist/es/schemas/EpcisQueryDocument.json +173 -0
  97. package/dist/es/schemas/EpcisTransactionEvent.json +274 -0
  98. package/dist/es/schemas/EpcisTransformationEvent.json +290 -0
  99. package/dist/es/utils/gs1Validation.js +4 -4
  100. package/dist/es/utils/gs1Validation.js.map +1 -1
  101. package/dist/types/dataTypes/epcisDataTypes.d.ts +13 -0
  102. package/dist/types/entities/gs1Location.d.ts +4 -4
  103. package/dist/types/index.d.ts +39 -20
  104. package/dist/types/models/epcis20/IEpcisAggregationEvent.d.ts +81 -0
  105. package/dist/types/models/epcis20/IEpcisAssociationEvent.d.ts +80 -0
  106. package/dist/types/models/epcis20/IEpcisAttribute.d.ts +15 -0
  107. package/dist/types/models/epcis20/IEpcisBizTransaction.d.ts +20 -0
  108. package/dist/types/models/epcis20/IEpcisDestination.d.ts +21 -0
  109. package/dist/types/models/epcis20/IEpcisDocument.d.ts +35 -7
  110. package/dist/types/models/epcis20/IEpcisErrorDeclaration.d.ts +25 -0
  111. package/dist/types/models/epcis20/IEpcisEvent.d.ts +23 -22
  112. package/dist/types/models/epcis20/IEpcisHeader.d.ts +17 -0
  113. package/dist/types/models/epcis20/IEpcisIlmd.d.ts +8 -0
  114. package/dist/types/models/epcis20/IEpcisLocation.d.ts +12 -0
  115. package/dist/types/models/epcis20/IEpcisObjectEvent.d.ts +85 -0
  116. package/dist/types/models/epcis20/IEpcisPersistentDisposition.d.ts +17 -0
  117. package/dist/types/models/epcis20/IEpcisQuantity.d.ts +22 -0
  118. package/dist/types/models/epcis20/IEpcisQuery.d.ts +2 -1
  119. package/dist/types/models/epcis20/IEpcisQueryDocument.d.ts +10 -30
  120. package/dist/types/models/epcis20/IEpcisQueryDocumentBody.d.ts +12 -0
  121. package/dist/types/models/epcis20/IEpcisQueryResults.d.ts +20 -0
  122. package/dist/types/models/epcis20/IEpcisQueryResultsBody.d.ts +17 -0
  123. package/dist/types/models/epcis20/IEpcisSensorElement.d.ts +20 -0
  124. package/dist/types/models/epcis20/IEpcisSensorMetadata.d.ts +48 -0
  125. package/dist/types/models/epcis20/IEpcisSensorReport.d.ts +131 -0
  126. package/dist/types/models/epcis20/IEpcisSource.d.ts +20 -0
  127. package/dist/types/models/epcis20/IEpcisTransactionEvent.d.ts +78 -0
  128. package/dist/types/models/epcis20/IEpcisTransformationEvent.d.ts +96 -0
  129. package/dist/types/models/epcis20/IEpcisVocabulary.d.ts +16 -0
  130. package/dist/types/models/epcis20/IEpcisVocabularyElement.d.ts +21 -0
  131. package/dist/types/models/epcis20/epcisActionTypes.d.ts +25 -0
  132. package/dist/types/models/epcis20/epcisBizStepTypes.d.ts +193 -0
  133. package/dist/types/models/epcis20/epcisBizTransactionTypes.d.ts +74 -0
  134. package/dist/types/models/epcis20/epcisComponentTypes.d.ts +76 -0
  135. package/dist/types/models/epcis20/epcisContextType.d.ts +15 -0
  136. package/dist/types/models/epcis20/epcisContexts.d.ts +17 -0
  137. package/dist/types/models/epcis20/epcisDispositionTypes.d.ts +158 -0
  138. package/dist/types/models/epcis20/epcisErrorReasonTypes.d.ts +19 -0
  139. package/dist/types/models/epcis20/epcisEventTypes.d.ts +29 -0
  140. package/dist/types/models/epcis20/epcisEvents.d.ts +11 -0
  141. package/dist/types/models/epcis20/epcisMeasurementTypes.d.ts +303 -0
  142. package/dist/types/models/epcis20/epcisSensorAlertTypes.d.ts +19 -0
  143. package/dist/types/models/epcis20/epcisSourceDestTypes.d.ts +26 -0
  144. package/dist/types/models/epcis20/epcisTypes.d.ts +37 -0
  145. package/dist/types/models/gs1/gs1Contexts.d.ts +2 -2
  146. package/dist/types/models/gs1/{subSiteAttributes.d.ts → gs1SubSiteAttributes.d.ts} +2 -2
  147. package/dist/types/models/gs1/{subSiteTypes.d.ts → gs1SubSiteTypes.d.ts} +2 -2
  148. package/docs/changelog.md +71 -0
  149. package/docs/reference/classes/EpcisDataTypes.md +37 -0
  150. package/docs/reference/classes/Gs1Location.md +2 -2
  151. package/docs/reference/index.md +52 -27
  152. package/docs/reference/interfaces/IEpcisAggregationEvent.md +223 -0
  153. package/docs/reference/interfaces/IEpcisAssociationEvent.md +222 -0
  154. package/docs/reference/interfaces/IEpcisAttribute.md +31 -0
  155. package/docs/reference/interfaces/IEpcisBizTransaction.md +35 -0
  156. package/docs/reference/interfaces/IEpcisDestination.md +36 -0
  157. package/docs/reference/interfaces/IEpcisDocument.md +67 -3
  158. package/docs/reference/interfaces/IEpcisErrorDeclaration.md +44 -0
  159. package/docs/reference/interfaces/IEpcisEvent.md +46 -30
  160. package/docs/reference/interfaces/IEpcisHeader.md +31 -0
  161. package/docs/reference/interfaces/IEpcisIlmd.md +16 -0
  162. package/docs/reference/interfaces/IEpcisLocation.md +24 -0
  163. package/docs/reference/interfaces/IEpcisObjectEvent.md +228 -0
  164. package/docs/reference/interfaces/IEpcisPersistentDisposition.md +32 -0
  165. package/docs/reference/interfaces/IEpcisQuantity.md +42 -0
  166. package/docs/reference/interfaces/IEpcisQuery.md +5 -1
  167. package/docs/reference/interfaces/IEpcisQueryDocument.md +20 -34
  168. package/docs/reference/interfaces/IEpcisQueryDocumentBody.md +23 -0
  169. package/docs/reference/interfaces/IEpcisQueryResults.md +39 -0
  170. package/docs/reference/interfaces/IEpcisQueryResultsBody.md +31 -0
  171. package/docs/reference/interfaces/IEpcisSensorElement.md +34 -0
  172. package/docs/reference/interfaces/IEpcisSensorMetadata.md +88 -0
  173. package/docs/reference/interfaces/IEpcisSensorReport.md +232 -0
  174. package/docs/reference/interfaces/IEpcisSource.md +35 -0
  175. package/docs/reference/interfaces/IEpcisTransactionEvent.md +220 -0
  176. package/docs/reference/interfaces/IEpcisTransformationEvent.md +249 -0
  177. package/docs/reference/interfaces/IEpcisVocabulary.md +31 -0
  178. package/docs/reference/interfaces/IEpcisVocabularyElement.md +40 -0
  179. package/docs/reference/type-aliases/EpcisActionTypes.md +6 -0
  180. package/docs/reference/type-aliases/EpcisBizStepTypes.md +8 -0
  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 +9 -0
  186. package/docs/reference/type-aliases/EpcisErrorReasonTypes.md +5 -0
  187. package/docs/reference/type-aliases/EpcisEventTypes.md +5 -0
  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/type-aliases/Gs1SubSiteAttributes.md +7 -0
  193. package/docs/reference/type-aliases/Gs1SubSiteTypes.md +7 -0
  194. package/docs/reference/variables/EpcisActionTypes.md +28 -0
  195. package/docs/reference/variables/EpcisBizStepTypes.md +270 -0
  196. package/docs/reference/variables/EpcisBizTransactionTypes.md +98 -0
  197. package/docs/reference/variables/EpcisComponentTypes.md +102 -0
  198. package/docs/reference/variables/EpcisContexts.md +19 -0
  199. package/docs/reference/variables/{DispositionTypes.md → EpcisDispositionTypes.md} +81 -4
  200. package/docs/reference/variables/EpcisErrorReasonTypes.md +21 -0
  201. package/docs/reference/variables/{EventTypes.md → EpcisEventTypes.md} +8 -8
  202. package/docs/reference/variables/EpcisMeasurementTypes.md +442 -0
  203. package/docs/reference/variables/EpcisSensorAlertTypes.md +20 -0
  204. package/docs/reference/variables/EpcisSourceDestTypes.md +29 -0
  205. package/docs/reference/variables/GS1Contexts.md +3 -3
  206. package/docs/reference/variables/{SubSiteAttributes.md → Gs1SubSiteAttributes.md} +2 -2
  207. package/docs/reference/variables/{SubSiteTypes.md → Gs1SubSiteTypes.md} +2 -2
  208. package/package.json +1 -1
  209. package/dist/es/models/epcis20/IAggregationEvent.js +0 -2
  210. package/dist/es/models/epcis20/IAggregationEvent.js.map +0 -1
  211. package/dist/es/models/epcis20/IAssociationEvent.js +0 -2
  212. package/dist/es/models/epcis20/IAssociationEvent.js.map +0 -1
  213. package/dist/es/models/epcis20/IBaseAggregationEvent.js +0 -2
  214. package/dist/es/models/epcis20/IBaseAggregationEvent.js.map +0 -1
  215. package/dist/es/models/epcis20/IBizTransaction.js +0 -4
  216. package/dist/es/models/epcis20/IBizTransaction.js.map +0 -1
  217. package/dist/es/models/epcis20/IDestination.js +0 -4
  218. package/dist/es/models/epcis20/IDestination.js.map +0 -1
  219. package/dist/es/models/epcis20/IEpcisEventDetails.js +0 -2
  220. package/dist/es/models/epcis20/IEpcisEventDetails.js.map +0 -1
  221. package/dist/es/models/epcis20/IObjectEvent.js +0 -2
  222. package/dist/es/models/epcis20/IObjectEvent.js.map +0 -1
  223. package/dist/es/models/epcis20/IQuantity.js +0 -4
  224. package/dist/es/models/epcis20/IQuantity.js.map +0 -1
  225. package/dist/es/models/epcis20/ISensorElement.js +0 -2
  226. package/dist/es/models/epcis20/ISensorElement.js.map +0 -1
  227. package/dist/es/models/epcis20/ISensorMetadata.js +0 -4
  228. package/dist/es/models/epcis20/ISensorMetadata.js.map +0 -1
  229. package/dist/es/models/epcis20/ISensorReport.js +0 -4
  230. package/dist/es/models/epcis20/ISensorReport.js.map +0 -1
  231. package/dist/es/models/epcis20/ISimpleLocation.js +0 -4
  232. package/dist/es/models/epcis20/ISimpleLocation.js.map +0 -1
  233. package/dist/es/models/epcis20/ISource.js +0 -4
  234. package/dist/es/models/epcis20/ISource.js.map +0 -1
  235. package/dist/es/models/epcis20/actionTypes.js +0 -21
  236. package/dist/es/models/epcis20/actionTypes.js.map +0 -1
  237. package/dist/es/models/epcis20/bizStepTypes.js +0 -52
  238. package/dist/es/models/epcis20/bizStepTypes.js.map +0 -1
  239. package/dist/es/models/epcis20/dispositionTypes.js +0 -45
  240. package/dist/es/models/epcis20/dispositionTypes.js.map +0 -1
  241. package/dist/es/models/epcis20/epcisErrorTypes.js +0 -11
  242. package/dist/es/models/epcis20/epcisErrorTypes.js.map +0 -1
  243. package/dist/es/models/epcis20/epcisEventUnionType.js +0 -2
  244. package/dist/es/models/epcis20/epcisEventUnionType.js.map +0 -1
  245. package/dist/es/models/epcis20/eventTypes.js +0 -29
  246. package/dist/es/models/epcis20/eventTypes.js.map +0 -1
  247. package/dist/es/models/gs1/subSiteAttributes.js.map +0 -1
  248. package/dist/es/models/gs1/subSiteTypes.js.map +0 -1
  249. package/dist/types/models/epcis20/IAggregationEvent.d.ts +0 -10
  250. package/dist/types/models/epcis20/IAssociationEvent.d.ts +0 -10
  251. package/dist/types/models/epcis20/IBaseAggregationEvent.d.ts +0 -19
  252. package/dist/types/models/epcis20/IBizTransaction.d.ts +0 -13
  253. package/dist/types/models/epcis20/IDestination.d.ts +0 -13
  254. package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +0 -35
  255. package/dist/types/models/epcis20/IObjectEvent.d.ts +0 -25
  256. package/dist/types/models/epcis20/IQuantity.d.ts +0 -13
  257. package/dist/types/models/epcis20/ISensorElement.d.ts +0 -15
  258. package/dist/types/models/epcis20/ISensorMetadata.d.ts +0 -21
  259. package/dist/types/models/epcis20/ISensorReport.d.ts +0 -17
  260. package/dist/types/models/epcis20/ISimpleLocation.d.ts +0 -9
  261. package/dist/types/models/epcis20/ISource.d.ts +0 -13
  262. package/dist/types/models/epcis20/actionTypes.d.ts +0 -21
  263. package/dist/types/models/epcis20/bizStepTypes.d.ts +0 -52
  264. package/dist/types/models/epcis20/dispositionTypes.d.ts +0 -44
  265. package/dist/types/models/epcis20/epcisErrorTypes.d.ts +0 -11
  266. package/dist/types/models/epcis20/epcisEventUnionType.d.ts +0 -7
  267. package/dist/types/models/epcis20/eventTypes.d.ts +0 -29
  268. package/docs/reference/interfaces/IAggregationEvent.md +0 -223
  269. package/docs/reference/interfaces/IAssociationEvent.md +0 -223
  270. package/docs/reference/interfaces/IBizTransaction.md +0 -19
  271. package/docs/reference/interfaces/IDestination.md +0 -19
  272. package/docs/reference/interfaces/IEpcisEventDetails.md +0 -167
  273. package/docs/reference/interfaces/IObjectEvent.md +0 -211
  274. package/docs/reference/interfaces/IQuantity.md +0 -19
  275. package/docs/reference/interfaces/ISensorElement.md +0 -19
  276. package/docs/reference/interfaces/ISensorMetadata.md +0 -35
  277. package/docs/reference/interfaces/ISensorReport.md +0 -27
  278. package/docs/reference/interfaces/ISimpleLocation.md +0 -11
  279. package/docs/reference/interfaces/ISource.md +0 -19
  280. package/docs/reference/type-aliases/ActionTypes.md +0 -5
  281. package/docs/reference/type-aliases/BizStepTypes.md +0 -5
  282. package/docs/reference/type-aliases/DispositionTypes.md +0 -5
  283. package/docs/reference/type-aliases/EpcisErrorTypes.md +0 -5
  284. package/docs/reference/type-aliases/EpcisEventUnionType.md +0 -5
  285. package/docs/reference/type-aliases/EventTypes.md +0 -5
  286. package/docs/reference/type-aliases/SubSiteAttributes.md +0 -7
  287. package/docs/reference/type-aliases/SubSiteTypes.md +0 -7
  288. package/docs/reference/variables/ActionTypes.md +0 -25
  289. package/docs/reference/variables/BizStepTypes.md +0 -173
  290. package/docs/reference/variables/EpcisErrorTypes.md +0 -15
@@ -1,35 +1,54 @@
1
+ export * from "./dataTypes/epcisDataTypes.js";
1
2
  export * from "./dataTypes/gs1DataTypes.js";
2
3
  export * from "./entities/gs1Location.js";
3
4
  export * from "./identifiers/gs1Identifiers.js";
4
5
  export * from "./models/epc/IEPCClassUri.js";
5
- export * from "./models/epcis20/actionTypes.js";
6
- export * from "./models/epcis20/bizStepTypes.js";
7
- export * from "./models/epcis20/dispositionTypes.js";
8
- export * from "./models/epcis20/epcisErrorTypes.js";
9
- export * from "./models/epcis20/epcisEventUnionType.js";
10
- export * from "./models/epcis20/eventTypes.js";
11
- export * from "./models/epcis20/IAggregationEvent.js";
12
- export * from "./models/epcis20/IAssociationEvent.js";
13
- export * from "./models/epcis20/IBizTransaction.js";
14
- export * from "./models/epcis20/IDestination.js";
6
+ export * from "./models/epcis20/epcisActionTypes.js";
7
+ export * from "./models/epcis20/epcisBizStepTypes.js";
8
+ export * from "./models/epcis20/epcisBizTransactionTypes.js";
9
+ export * from "./models/epcis20/epcisComponentTypes.js";
10
+ export * from "./models/epcis20/epcisContexts.js";
11
+ export * from "./models/epcis20/epcisContextType.js";
12
+ export * from "./models/epcis20/epcisDispositionTypes.js";
13
+ export * from "./models/epcis20/epcisErrorReasonTypes.js";
14
+ export * from "./models/epcis20/epcisEvents.js";
15
+ export * from "./models/epcis20/epcisEventTypes.js";
16
+ export * from "./models/epcis20/epcisMeasurementTypes.js";
17
+ export * from "./models/epcis20/epcisSensorAlertTypes.js";
18
+ export * from "./models/epcis20/epcisSourceDestTypes.js";
19
+ export * from "./models/epcis20/IEpcisAggregationEvent.js";
20
+ export * from "./models/epcis20/IEpcisAssociationEvent.js";
21
+ export * from "./models/epcis20/IEpcisAttribute.js";
22
+ export * from "./models/epcis20/IEpcisBizTransaction.js";
23
+ export * from "./models/epcis20/IEpcisDestination.js";
15
24
  export * from "./models/epcis20/IEpcisDocument.js";
25
+ export * from "./models/epcis20/IEpcisErrorDeclaration.js";
16
26
  export * from "./models/epcis20/IEpcisEvent.js";
17
- export * from "./models/epcis20/IEpcisEventDetails.js";
27
+ export * from "./models/epcis20/IEpcisHeader.js";
28
+ export * from "./models/epcis20/IEpcisIlmd.js";
29
+ export * from "./models/epcis20/IEpcisLocation.js";
30
+ export * from "./models/epcis20/IEpcisObjectEvent.js";
31
+ export * from "./models/epcis20/IEpcisPersistentDisposition.js";
32
+ export * from "./models/epcis20/IEpcisQuantity.js";
18
33
  export * from "./models/epcis20/IEpcisQuery.js";
19
34
  export * from "./models/epcis20/IEpcisQueryDocument.js";
20
- export * from "./models/epcis20/IObjectEvent.js";
21
- export * from "./models/epcis20/IQuantity.js";
22
- export * from "./models/epcis20/ISensorElement.js";
23
- export * from "./models/epcis20/ISensorMetadata.js";
24
- export * from "./models/epcis20/ISensorReport.js";
25
- export * from "./models/epcis20/ISimpleLocation.js";
26
- export * from "./models/epcis20/ISource.js";
35
+ export * from "./models/epcis20/IEpcisQueryDocumentBody.js";
36
+ export * from "./models/epcis20/IEpcisQueryResults.js";
37
+ export * from "./models/epcis20/IEpcisQueryResultsBody.js";
38
+ export * from "./models/epcis20/IEpcisSensorElement.js";
39
+ export * from "./models/epcis20/IEpcisSensorMetadata.js";
40
+ export * from "./models/epcis20/IEpcisSensorReport.js";
41
+ export * from "./models/epcis20/IEpcisSource.js";
42
+ export * from "./models/epcis20/IEpcisTransactionEvent.js";
43
+ export * from "./models/epcis20/IEpcisTransformationEvent.js";
44
+ export * from "./models/epcis20/IEpcisVocabulary.js";
45
+ export * from "./models/epcis20/IEpcisVocabularyElement.js";
27
46
  export * from "./models/gs1/gs1Contexts.js";
28
47
  export * from "./models/gs1/gs1IdentifierTypes.js";
29
48
  export * from "./models/gs1/gs1IdTypes.js";
49
+ export * from "./models/gs1/gs1SubSiteAttributes.js";
50
+ export * from "./models/gs1/gs1SubSiteTypes.js";
30
51
  export * from "./models/gs1/gs1Types.js";
31
- export * from "./models/gs1/subSiteAttributes.js";
32
- export * from "./models/gs1/subSiteTypes.js";
33
52
  export * from "./utils/gs1IdentifiersValidation.js";
34
53
  export * from "./utils/gs1Is.js";
35
54
  export * from "./utils/gs1Validation.js";
@@ -0,0 +1,81 @@
1
+ import type { EpcisActionTypes } from "./epcisActionTypes.js";
2
+ import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
3
+ import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
4
+ import type { EpcisTypes } from "./epcisTypes.js";
5
+ import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
6
+ import type { IEpcisDestination } from "./IEpcisDestination.js";
7
+ import type { IEpcisEvent } from "./IEpcisEvent.js";
8
+ import type { IEpcisLocation } from "./IEpcisLocation.js";
9
+ import type { IEpcisQuantity } from "./IEpcisQuantity.js";
10
+ import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
11
+ import type { IEpcisSource } from "./IEpcisSource.js";
12
+ /**
13
+ * EPCIS 2.0 AggregationEvent describing how child objects are associated with or
14
+ * disassociated from a parent object.
15
+ * @see https://ref.gs1.org/epcis/AggregationEvent
16
+ */
17
+ export interface IEpcisAggregationEvent extends IEpcisEvent {
18
+ /**
19
+ * The type.
20
+ */
21
+ type: typeof EpcisTypes.AggregationEvent;
22
+ /**
23
+ * (Optional when action is OBSERVE, required otherwise) Identifier of the parent
24
+ * of the aggregation or association; use the pure identity URI when the parent is
25
+ * an EPC.
26
+ */
27
+ parentID?: string;
28
+ /**
29
+ * (Optional) Unordered list of contained objects identified at the instance
30
+ * level; AggregationEvents normally include childEPCs or childQuantityList unless
31
+ * action is DELETE.
32
+ */
33
+ childEPCs?: string[];
34
+ /**
35
+ * Unordered list of one or more QuantityElements identifying contained objects
36
+ * at the class level; may be empty only with action DELETE when disaggregating
37
+ * all children.
38
+ */
39
+ childQuantityList?: IEpcisQuantity[];
40
+ /**
41
+ * How this event relates to the lifecycle of the EPCs named in this event.
42
+ */
43
+ action: EpcisActionTypes;
44
+ /**
45
+ * (Optional) The business step of which this event was a part.
46
+ */
47
+ bizStep?: EpcisBizStepTypes | string;
48
+ /**
49
+ * (Optional) The business condition of the objects associated with the EPCs,
50
+ * presumed to hold true until contradicted by a subsequent event.
51
+ */
52
+ disposition?: EpcisDispositionTypes | string;
53
+ /**
54
+ * (Optional) The read point at which the event took place.
55
+ */
56
+ readPoint?: IEpcisLocation;
57
+ /**
58
+ * (Optional) The business location where the objects associated with the EPCs
59
+ * may be found, until contradicted by a subsequent event.
60
+ */
61
+ bizLocation?: IEpcisLocation;
62
+ /**
63
+ * (Optional) An unordered list of business transactions that define the context
64
+ * of this event.
65
+ */
66
+ bizTransactionList?: IEpcisBizTransaction[];
67
+ /**
68
+ * (Optional) Unordered list of Source elements that provide context about the
69
+ * originating endpoint of a business transfer of which this event is a part.
70
+ */
71
+ sourceList?: IEpcisSource[];
72
+ /**
73
+ * (Optional) Unordered list of Destination elements that provide context about the
74
+ * terminating endpoint of a business transfer of which this event is a part.
75
+ */
76
+ destinationList?: IEpcisDestination[];
77
+ /**
78
+ * (Optional) Connects event to one or more SensorElements.
79
+ */
80
+ sensorElementList?: IEpcisSensorElement[];
81
+ }
@@ -0,0 +1,80 @@
1
+ import type { EpcisActionTypes } from "./epcisActionTypes.js";
2
+ import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
3
+ import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
4
+ import type { EpcisTypes } from "./epcisTypes.js";
5
+ import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
6
+ import type { IEpcisDestination } from "./IEpcisDestination.js";
7
+ import type { IEpcisEvent } from "./IEpcisEvent.js";
8
+ import type { IEpcisLocation } from "./IEpcisLocation.js";
9
+ import type { IEpcisQuantity } from "./IEpcisQuantity.js";
10
+ import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
11
+ import type { IEpcisSource } from "./IEpcisSource.js";
12
+ /**
13
+ * EPCIS 2.0 AssociationEvent describing membership relationships between parent
14
+ * and child objects without implying physical containment.
15
+ * @see https://ref.gs1.org/epcis/AssociationEvent
16
+ */
17
+ export interface IEpcisAssociationEvent extends IEpcisEvent {
18
+ /**
19
+ * Type.
20
+ */
21
+ type: typeof EpcisTypes.AssociationEvent;
22
+ /**
23
+ * Identifier of the parent of the aggregation or association; use the pure
24
+ * identity URI when the parent is an EPC.
25
+ */
26
+ parentID: string;
27
+ /**
28
+ * (Optional) Unordered list of contained objects identified at the instance
29
+ * level; AssociationEvents normally include childEPCs or childQuantityList
30
+ * unless action is DELETE.
31
+ */
32
+ childEPCs?: string[];
33
+ /**
34
+ * Unordered list of one or more QuantityElements identifying contained objects
35
+ * at the class level; may be empty only with action DELETE when disassociating
36
+ * all children.
37
+ */
38
+ childQuantityList?: IEpcisQuantity[];
39
+ /**
40
+ * How this event relates to the lifecycle of the EPCs named in this event.
41
+ */
42
+ action: EpcisActionTypes;
43
+ /**
44
+ * (Optional) The business step of which this event was a part.
45
+ */
46
+ bizStep?: EpcisBizStepTypes | string;
47
+ /**
48
+ * (Optional) The business condition of the objects associated with the EPCs,
49
+ * presumed to hold true until contradicted by a subsequent event.
50
+ */
51
+ disposition?: EpcisDispositionTypes | string;
52
+ /**
53
+ * (Optional) The read point at which the event took place.
54
+ */
55
+ readPoint?: IEpcisLocation;
56
+ /**
57
+ * (Optional) The business location where the objects associated with the EPCs
58
+ * may be found, until contradicted by a subsequent event.
59
+ */
60
+ bizLocation?: IEpcisLocation;
61
+ /**
62
+ * (Optional) An unordered list of business transactions that define the context
63
+ * of this event.
64
+ */
65
+ bizTransactionList?: IEpcisBizTransaction[];
66
+ /**
67
+ * (Optional) Unordered list of Source elements that provide context about the
68
+ * originating endpoint of a business transfer of which this event is a part.
69
+ */
70
+ sourceList?: IEpcisSource[];
71
+ /**
72
+ * (Optional) Unordered list of Destination elements that provide context about
73
+ * the terminating endpoint of a business transfer of which this event is a part.
74
+ */
75
+ destinationList?: IEpcisDestination[];
76
+ /**
77
+ * (Optional) Connects event to one or more SensorElements.
78
+ */
79
+ sensorElementList?: IEpcisSensorElement[];
80
+ }
@@ -0,0 +1,15 @@
1
+ import type { IJsonLdNodeObject, IJsonLdNodePrimitive } from "@twin.org/data-json-ld";
2
+ /**
3
+ * EPCIS 2.0 Vocabulary Attribute describing metadata on vocabulary elements.
4
+ * @see https://ref.gs1.org/epcis/Attribute
5
+ */
6
+ export interface IEpcisAttribute extends IJsonLdNodeObject {
7
+ /**
8
+ * Attribute id.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Attribute value.
13
+ */
14
+ attribute?: IJsonLdNodePrimitive;
15
+ }
@@ -0,0 +1,20 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisBizTransactionTypes } from "./epcisBizTransactionTypes.js";
3
+ /**
4
+ * EPCIS 2.0 BizTransaction element identifying a business document and its type.
5
+ * @see https://ref.gs1.org/epcis/BizTransaction
6
+ */
7
+ export interface IEpcisBizTransaction extends IJsonLdNodeObject {
8
+ /**
9
+ * Identifier that indicates the type of BizTransaction document (e.g. Purchase
10
+ * Order, Despatch Advice).
11
+ *
12
+ * Use {@link EpcisBizTransactionTypes} for known values.
13
+ */
14
+ type?: EpcisBizTransactionTypes | string;
15
+ /**
16
+ * URI identifier of the specific business transaction document (alias of id in
17
+ * JSON or XML).
18
+ */
19
+ bizTransaction: string;
20
+ }
@@ -0,0 +1,21 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisSourceDestTypes } from "./epcisSourceDestTypes.js";
3
+ /**
4
+ * EPCIS 2.0 Destination element identifying the terminating endpoint of a
5
+ * business transfer.
6
+ * @see https://ref.gs1.org/epcis/SourceOrDestination
7
+ */
8
+ export interface IEpcisDestination extends IJsonLdNodeObject {
9
+ /**
10
+ * Identifier indicating the role of SourceOrDestination in a transfer (Owning
11
+ * Party, Possessing Party, or Location).
12
+ *
13
+ * Use {@link EpcisSourceDestTypes} for known values.
14
+ */
15
+ type: EpcisSourceDestTypes | string;
16
+ /**
17
+ * Identifier that denotes the specific source or destination of a business
18
+ * transfer; must correlate with the selected type.
19
+ */
20
+ destination: string;
21
+ }
@@ -1,13 +1,17 @@
1
- import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
2
- import type { IEpcisEvent } from "./IEpcisEvent.js";
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisContextType } from "./epcisContextType.js";
3
+ import type { EpcisEvents } from "./epcisEvents.js";
4
+ import type { EpcisTypes } from "./epcisTypes.js";
5
+ import type { IEpcisHeader } from "./IEpcisHeader.js";
3
6
  /**
4
- * EPCIS Document.
7
+ * EPCIS 2.0 capture document containing header metadata and an event list.
8
+ * @see https://ref.gs1.org/epcis/EPCISDocument
5
9
  */
6
- export interface IEpcisDocument {
10
+ export interface IEpcisDocument extends IJsonLdNodeObject {
7
11
  /**
8
12
  * The @context.
9
13
  */
10
- "@context": IJsonLdContextDefinition;
14
+ "@context": EpcisContextType;
11
15
  /**
12
16
  * The JSON-LD document id.
13
17
  */
@@ -15,7 +19,31 @@ export interface IEpcisDocument {
15
19
  /**
16
20
  * JSON-LD Type.
17
21
  */
18
- type: "EPCISDocument";
22
+ type: typeof EpcisTypes.EPCISDocument;
23
+ /**
24
+ * Schema version.
25
+ */
26
+ schemaVersion: string;
27
+ /**
28
+ * Creation Date.
29
+ */
30
+ creationDate: string;
31
+ /**
32
+ * (Optional) The instance identifier of an EPCISDocument.
33
+ */
34
+ instanceIdentifier?: string;
35
+ /**
36
+ * (Optional) The sender of an EPCISDocument.
37
+ */
38
+ sender?: string;
39
+ /**
40
+ * (Optional) The intended receiver of an EPCISDocument.
41
+ */
42
+ receiver?: string;
43
+ /**
44
+ * EPCIS Header.
45
+ */
46
+ epcisHeader?: IEpcisHeader;
19
47
  /**
20
48
  * The EPCIS Body.
21
49
  */
@@ -23,6 +51,6 @@ export interface IEpcisDocument {
23
51
  /**
24
52
  * The list of events.
25
53
  */
26
- eventList: IEpcisEvent[];
54
+ eventList: EpcisEvents[];
27
55
  };
28
56
  }
@@ -0,0 +1,25 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisErrorReasonTypes } from "./epcisErrorReasonTypes.js";
3
+ /**
4
+ * EPCIS 2.0 ErrorDeclaration describing corrections to previously captured
5
+ * events.
6
+ * @see https://ref.gs1.org/epcis/ErrorDeclaration
7
+ */
8
+ export interface IEpcisErrorDeclaration extends IJsonLdNodeObject {
9
+ /**
10
+ * The date and time at which the declaration of error is made.
11
+ */
12
+ declarationTime: string;
13
+ /**
14
+ * Reason for the error.
15
+ *
16
+ * Use {@link EpcisErrorReasonTypes} for known values.
17
+ */
18
+ reason?: EpcisErrorReasonTypes | string;
19
+ /**
20
+ * (Optional) If present, indicates that the events having the specified URIs as
21
+ * the value of their eventID fields are to be considered as "corrections" to
22
+ * the event declared erroneous by this event.
23
+ */
24
+ correctiveEventIDs?: string[];
25
+ }
@@ -1,44 +1,45 @@
1
- import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
2
- import type { IDestination } from "./IDestination.js";
3
- import type { ISource } from "./ISource.js";
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisContextType } from "./epcisContextType.js";
3
+ import type { IEpcisErrorDeclaration } from "./IEpcisErrorDeclaration.js";
4
4
  /**
5
- * EPCIS Event.
5
+ * Base EPCIS 2.0 Event carrying shared fields across all event types.
6
+ * @see https://ref.gs1.org/epcis/Event
6
7
  */
7
- export interface IEpcisEvent {
8
+ export interface IEpcisEvent extends IJsonLdNodeObject {
8
9
  /**
9
10
  * JSON-LD @context.
10
11
  */
11
- "@context"?: IJsonLdContextDefinition;
12
+ "@context": EpcisContextType;
12
13
  /**
13
- * UUID of the event.
14
+ * Type of Event.
14
15
  */
15
- id?: string;
16
+ type: string;
16
17
  /**
17
- * The id of the event. Marked here as optional as we usually won't store it on Tangle.
18
+ * URI identifier of a specific EPCIS event (alias of id in JSON or XML).
18
19
  */
19
20
  eventID?: string;
20
21
  /**
21
- * Type of Event.
22
+ * (Optional) CertificationDetails relevant for Objects, Places and/or
23
+ * Organizations mentioned in this Event.
22
24
  */
23
- type: string;
25
+ certificationInfo?: string | string[];
26
+ /**
27
+ * Error declaration.
28
+ */
29
+ errorDeclaration?: IEpcisErrorDeclaration;
24
30
  /**
25
- * Timestamp in UTC.
31
+ * The date and time at which the EPCIS Capturing Applications asserts the event
32
+ * occurred.
26
33
  */
27
34
  eventTime: string;
28
35
  /**
29
- * Timezone offset. Useful if we want to represent timestamp in local timezone.
36
+ * The time zone offset in effect at the time and place the event occurred,
37
+ * expressed as an offset from UTC.
30
38
  */
31
39
  eventTimeZoneOffset: string;
32
40
  /**
33
- * When the event was recorded. It will be automatically generated.
41
+ * (Optional) The date and time at which this event was recorded by an EPCIS
42
+ * Repository; ignored at capture and present on query results.
34
43
  */
35
44
  recordTime?: string;
36
- /**
37
- * Source list. Semantics according to EPCIS standard.
38
- */
39
- sourceList?: ISource[];
40
- /**
41
- * Destination list. Semantics according to EPCIS standard.
42
- */
43
- destinationList?: IDestination[];
44
45
  }
@@ -0,0 +1,17 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { IEpcisVocabulary } from "./IEpcisVocabulary.js";
3
+ /**
4
+ * EPCIS 2.0 Header carrying optional master data alongside an EPCIS document.
5
+ * @see https://ref.gs1.org/epcis/EPCISHeader
6
+ */
7
+ export interface IEpcisHeader extends IJsonLdNodeObject {
8
+ /**
9
+ * EPCIS master data.
10
+ */
11
+ epcisMasterData?: IJsonLdNodeObject & {
12
+ /**
13
+ * Vocabulary list.
14
+ */
15
+ vocabularyList?: IEpcisVocabulary[];
16
+ };
17
+ }
@@ -0,0 +1,8 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ /**
3
+ * EPCIS 2.0 Instance/Lot Master Data (ILMD) container for event-level master
4
+ * data extensions.
5
+ * @see https://ref.gs1.org/epcis/ILMD
6
+ */
7
+ export interface IEpcisIlmd extends IJsonLdNodeObject {
8
+ }
@@ -0,0 +1,12 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ /**
3
+ * EPCIS 2.0 Location reference (readPoint/bizLocation) that wraps a location
4
+ * identifier.
5
+ * @see https://ref.gs1.org/epcis/ReadPoint
6
+ */
7
+ export interface IEpcisLocation extends IJsonLdNodeObject {
8
+ /**
9
+ * The location identifier (URI/IRI per EPCIS schema and SHACL).
10
+ */
11
+ id: string;
12
+ }
@@ -0,0 +1,85 @@
1
+ import type { EpcisActionTypes } from "./epcisActionTypes.js";
2
+ import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
3
+ import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
4
+ import type { EpcisTypes } from "./epcisTypes.js";
5
+ import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
6
+ import type { IEpcisDestination } from "./IEpcisDestination.js";
7
+ import type { IEpcisEvent } from "./IEpcisEvent.js";
8
+ import type { IEpcisIlmd } from "./IEpcisIlmd.js";
9
+ import type { IEpcisLocation } from "./IEpcisLocation.js";
10
+ import type { IEpcisPersistentDisposition } from "./IEpcisPersistentDisposition.js";
11
+ import type { IEpcisQuantity } from "./IEpcisQuantity.js";
12
+ import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
13
+ import type { IEpcisSource } from "./IEpcisSource.js";
14
+ /**
15
+ * EPCIS 2.0 ObjectEvent describing one or more objects (instance- or class-level)
16
+ * observed at a point in the business process.
17
+ *
18
+ * @see https://ref.gs1.org/epcis/ObjectEvent
19
+ */
20
+ export interface IEpcisObjectEvent extends IEpcisEvent {
21
+ /**
22
+ * Fixed to ObjectEvent.
23
+ */
24
+ type: typeof EpcisTypes.ObjectEvent;
25
+ /**
26
+ * (Optional) Unordered list of one or more EPCs naming specific objects to which
27
+ * the event pertained.
28
+ */
29
+ epcList?: string[];
30
+ /**
31
+ * Unordered list of one or more QuantityElements identifying contained objects at
32
+ * the class level.
33
+ */
34
+ quantityList?: IEpcisQuantity[];
35
+ /**
36
+ * How this event relates to the lifecycle of the EPCs named in this event.
37
+ */
38
+ action: EpcisActionTypes;
39
+ /**
40
+ * (Optional) The business step of which this event was a part.
41
+ */
42
+ bizStep?: EpcisBizStepTypes | string;
43
+ /**
44
+ * (Optional) The business condition of the objects associated with the EPCs,
45
+ * presumed to hold true until contradicted by a subsequent event.
46
+ */
47
+ disposition?: EpcisDispositionTypes | string;
48
+ /**
49
+ * Persistent disposition.
50
+ */
51
+ persistentDisposition?: IEpcisPersistentDisposition;
52
+ /**
53
+ * (Optional) The read point at which the event took place.
54
+ */
55
+ readPoint?: IEpcisLocation;
56
+ /**
57
+ * (Optional) The business location where the objects associated with the EPCs may
58
+ * be found, until contradicted by a subsequent event.
59
+ */
60
+ bizLocation?: IEpcisLocation;
61
+ /**
62
+ * (Optional) Unordered list of business transactions that define the context of
63
+ * this event.
64
+ */
65
+ bizTransactionList?: IEpcisBizTransaction[];
66
+ /**
67
+ * (Optional) Unordered list of Source elements that provide context about the
68
+ * originating endpoint of a business transfer of which this event is a part.
69
+ */
70
+ sourceList?: IEpcisSource[];
71
+ /**
72
+ * (Optional) Unordered list of Destination elements that provide context about the
73
+ * terminating endpoint of a business transfer of which this event is a part.
74
+ */
75
+ destinationList?: IEpcisDestination[];
76
+ /**
77
+ * (Optional) Connects event to one or more SensorElements.
78
+ */
79
+ sensorElementList?: IEpcisSensorElement[];
80
+ /**
81
+ * (Optional) Instance/Lot master data that describes the objects created during
82
+ * this event.
83
+ */
84
+ ilmd?: IEpcisIlmd;
85
+ }
@@ -0,0 +1,17 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
3
+ /**
4
+ * EPCIS 2.0 PersistentDisposition indicating business conditions to set or unset
5
+ * independently of event disposition.
6
+ * @see https://ref.gs1.org/epcis/PersistentDisposition
7
+ */
8
+ export interface IEpcisPersistentDisposition extends IJsonLdNodeObject {
9
+ /**
10
+ * (Optional) List of persistentDisposition URI values to be set.
11
+ */
12
+ set?: (EpcisDispositionTypes | string)[];
13
+ /**
14
+ * (Optional) List of persistentDisposition URI values to be unset (revoked).
15
+ */
16
+ unset?: (EpcisDispositionTypes | string)[];
17
+ }
@@ -0,0 +1,22 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ /**
3
+ * EPCIS 2.0 QuantityElement defining class-level identifiers and amounts.
4
+ * @see https://ref.gs1.org/epcis/QuantityElement
5
+ */
6
+ export interface IEpcisQuantity extends IJsonLdNodeObject {
7
+ /**
8
+ * A class-level identifier for the class to which the specified quantity of
9
+ * objects belongs.
10
+ */
11
+ epcClass: string;
12
+ /**
13
+ * (Optional) A number that specifies how many or how much of the specified
14
+ * EPCClass is denoted by this QuantityElement.
15
+ */
16
+ quantity?: number;
17
+ /**
18
+ * (Optional) Unit of measure by which the specified value(s) of the property
19
+ * specified by type should be interpreted.
20
+ */
21
+ uom?: string;
22
+ }
@@ -1,5 +1,6 @@
1
1
  /**
2
- * EPCIS Query type.
2
+ * EPCIS 2.0 Query key/value parameter map used in query documents.
3
+ * @see https://ref.gs1.org/epcis/Query
3
4
  */
4
5
  export interface IEpcisQuery {
5
6
  [key: string]: string;