@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,13 +1,16 @@
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 { EpcisTypes } from "./epcisTypes.js";
4
+ import type { IEpcisQueryDocumentBody } from "./IEpcisQueryDocumentBody.js";
3
5
  /**
4
- * EPCIS Query Document.
6
+ * EPCIS 2.0 QueryDocument used to submit queries to an EPCIS repository.
7
+ * @see https://ref.gs1.org/epcis/EPCISQueryDocument
5
8
  */
6
- export interface IEpcisQueryDocument {
9
+ export interface IEpcisQueryDocument extends IJsonLdNodeObject {
7
10
  /**
8
11
  * The @context.
9
12
  */
10
- "@context": IJsonLdContextDefinition;
13
+ "@context": EpcisContextType;
11
14
  /**
12
15
  * The JSON-LD document id.
13
16
  */
@@ -15,7 +18,7 @@ export interface IEpcisQueryDocument {
15
18
  /**
16
19
  * JSON-LD Type.
17
20
  */
18
- type: string;
21
+ type: typeof EpcisTypes.EPCISQueryDocument;
19
22
  /**
20
23
  * Schema version.
21
24
  */
@@ -27,28 +30,5 @@ export interface IEpcisQueryDocument {
27
30
  /**
28
31
  * The EPCIS Body.
29
32
  */
30
- epcisBody: {
31
- /**
32
- * The results of the query.
33
- */
34
- queryResults: {
35
- /**
36
- * The concerned subscription.
37
- */
38
- subscriptionID?: string;
39
- /**
40
- * The concerned query.
41
- */
42
- queryName: string;
43
- /**
44
- * And now the results.
45
- */
46
- resultsBody: {
47
- /**
48
- * The list of events.
49
- */
50
- eventList: IEpcisEvent[];
51
- };
52
- };
53
- };
33
+ epcisBody: IEpcisQueryDocumentBody;
54
34
  }
@@ -0,0 +1,12 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { IEpcisQueryResults } from "./IEpcisQueryResults.js";
3
+ /**
4
+ * EPCIS 2.0 QueryDocumentBody wrapper that carries query results.
5
+ * @see https://ref.gs1.org/epcis/QueryDocumentBody
6
+ */
7
+ export interface IEpcisQueryDocumentBody extends IJsonLdNodeObject {
8
+ /**
9
+ * The results of the query.
10
+ */
11
+ queryResults: IEpcisQueryResults;
12
+ }
@@ -0,0 +1,20 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { IEpcisQueryResultsBody } from "./IEpcisQueryResultsBody.js";
3
+ /**
4
+ * EPCIS 2.0 QueryResults payload returned from a repository query.
5
+ * @see https://ref.gs1.org/epcis/QueryResults
6
+ */
7
+ export interface IEpcisQueryResults extends IJsonLdNodeObject {
8
+ /**
9
+ * The concerned subscription.
10
+ */
11
+ subscriptionID?: string;
12
+ /**
13
+ * The concerned query.
14
+ */
15
+ queryName: string;
16
+ /**
17
+ * The query results payload.
18
+ */
19
+ resultsBody: IEpcisQueryResultsBody;
20
+ }
@@ -0,0 +1,17 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisEvents } from "./epcisEvents.js";
3
+ import type { IEpcisVocabulary } from "./IEpcisVocabulary.js";
4
+ /**
5
+ * EPCIS 2.0 QueryResultsBody containing events and optional master data.
6
+ * @see https://ref.gs1.org/epcis/QueryResultsBody
7
+ */
8
+ export interface IEpcisQueryResultsBody extends IJsonLdNodeObject {
9
+ /**
10
+ * The list of events.
11
+ */
12
+ eventList: EpcisEvents[];
13
+ /**
14
+ * Optional master data.
15
+ */
16
+ vocabularyList?: IEpcisVocabulary[];
17
+ }
@@ -0,0 +1,20 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { IEpcisSensorMetadata } from "./IEpcisSensorMetadata.js";
3
+ import type { IEpcisSensorReport } from "./IEpcisSensorReport.js";
4
+ /**
5
+ * EPCIS 2.0 SensorElement grouping metadata and one or more SensorReport
6
+ * entries.
7
+ * @see https://ref.gs1.org/epcis/SensorElement
8
+ */
9
+ export interface IEpcisSensorElement extends IJsonLdNodeObject {
10
+ /**
11
+ * (Optional) Element containing metadata attributes applicable to all
12
+ * sensorReport entries within this sensorElement.
13
+ */
14
+ sensorMetadata?: IEpcisSensorMetadata;
15
+ /**
16
+ * An element containing one or several attributes that pertain to a specific
17
+ * sensor observation.
18
+ */
19
+ sensorReport: IEpcisSensorReport[];
20
+ }
@@ -0,0 +1,48 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ /**
3
+ * EPCIS 2.0 SensorMetadata describing timing, device, and processing details for
4
+ * sensor observations.
5
+ * @see https://ref.gs1.org/epcis/SensorMetadata
6
+ */
7
+ export interface IEpcisSensorMetadata extends IJsonLdNodeObject {
8
+ /**
9
+ * (Optional) The actual point in time of an observation as transmitted by a
10
+ * sensor device.
11
+ */
12
+ time?: string;
13
+ /**
14
+ * (Optional) Device from which the sensor data originates.
15
+ */
16
+ deviceID?: string;
17
+ /**
18
+ * (Optional) Storage location of an electronic document accommodating metadata
19
+ * of the device from which the sensor data originates.
20
+ */
21
+ deviceMetadata?: string;
22
+ /**
23
+ * (Optional) Storage/service location of the raw sensor data on which the
24
+ * aggregated/business-oriented data contained in the sensorElement is based.
25
+ */
26
+ rawData?: string;
27
+ /**
28
+ * (Optional) The lowest (earliest) value of a given observation period as
29
+ * transmitted by a sensor device.
30
+ */
31
+ startTime?: string;
32
+ /**
33
+ * (Optional) The highest (most recent) value of a given observation period, as
34
+ * transmitted by a sensor device.
35
+ */
36
+ endTime?: string;
37
+ /**
38
+ * (Optional) Storage location of an electronic document accommodating the data
39
+ * processing method of the contained sensor data, if applicable.
40
+ */
41
+ dataProcessingMethod?: string;
42
+ /**
43
+ * (Optional) Storage location of an electronic document accommodating product- or
44
+ * application-specific business rules on which basis the EPCIS event was
45
+ * triggered.
46
+ */
47
+ bizRules?: string;
48
+ }
@@ -0,0 +1,131 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisComponentTypes } from "./epcisComponentTypes.js";
3
+ import type { EpcisMeasurementTypes } from "./epcisMeasurementTypes.js";
4
+ import type { EpcisSensorAlertTypes } from "./epcisSensorAlertTypes.js";
5
+ /**
6
+ * EPCIS 2.0 SensorReport containing measurement values and related sensor
7
+ * observation details.
8
+ * @see https://ref.gs1.org/epcis/SensorReport
9
+ */
10
+ export interface IEpcisSensorReport extends IJsonLdNodeObject {
11
+ /**
12
+ * Identifier indicating what kind of measurement the SensorReport pertains to
13
+ * (e.g. Length, Mass, Temperature).
14
+ *
15
+ * Use {@link EpcisMeasurementTypes} for known values.
16
+ */
17
+ type: EpcisMeasurementTypes | string;
18
+ /**
19
+ * A sensor alert value (alarm condition or error condition); extra details may
20
+ * be provided via booleanValue or uriValue.
21
+ *
22
+ * Use {@link EpcisSensorAlertTypes} for known values.
23
+ */
24
+ exception?: EpcisSensorAlertTypes | string;
25
+ /**
26
+ * (Optional) Device from which the sensor data originates.
27
+ */
28
+ deviceID?: string;
29
+ /**
30
+ * (Optional) Storage location of an electronic document accommodating metadata
31
+ * of the device from which the sensor data originates.
32
+ */
33
+ deviceMetadata?: string;
34
+ /**
35
+ * (Optional) Storage/service location of the raw sensor data on which the
36
+ * aggregated/business-oriented data contained in the sensorElement is based.
37
+ */
38
+ rawData?: string;
39
+ /**
40
+ * (Optional) Storage location of an electronic document accommodating the data
41
+ * processing method of the contained sensor data, if applicable.
42
+ */
43
+ dataProcessingMethod?: string;
44
+ /**
45
+ * (Optional) Storage location of an electronic document accommodating product- or
46
+ * application-specific business rules on which basis the EPCIS event was
47
+ * triggered.
48
+ */
49
+ bizRules?: string;
50
+ /**
51
+ * (Optional) The actual point in time of an observation as transmitted by a
52
+ * sensor device.
53
+ */
54
+ time?: string;
55
+ /**
56
+ * (Optional) Identifies a specific microorganism species; SHALL NOT be present
57
+ * if chemicalSubstance is included.
58
+ */
59
+ microorganism?: string;
60
+ /**
61
+ * (Optional) Identifies a specific chemical substance; SHALL NOT be present
62
+ * together with microorganism.
63
+ */
64
+ chemicalSubstance?: string;
65
+ /**
66
+ * (Optional) A URI identifying the Coordinate Reference System; if omitted,
67
+ * WGS-84 is assumed.
68
+ */
69
+ coordinateReferenceSystem?: string;
70
+ /**
71
+ * (Optional) Value of the property specified by the type; if a time field is
72
+ * present, it pertains to that time, otherwise to the eventTime.
73
+ */
74
+ value?: number;
75
+ /**
76
+ * (Optional) Vector component identifier for measurements with magnitude and
77
+ * direction (e.g. force, pressure); repeat SensorReport per component.
78
+ */
79
+ component?: EpcisComponentTypes | string;
80
+ /**
81
+ * (Optional) The String value of the property specified by the type as part of
82
+ * the sensorReport element.
83
+ */
84
+ stringValue?: string;
85
+ /**
86
+ * (Optional) Similar to stringValue, for Boolean value.
87
+ */
88
+ booleanValue?: boolean;
89
+ /**
90
+ * (Optional) Similar to stringValue, for HexBinary value.
91
+ */
92
+ hexBinaryValue?: string;
93
+ /**
94
+ * (Optional) Similar to stringValue, for a URI value.
95
+ */
96
+ uriValue?: string;
97
+ /**
98
+ * (Optional) Minimum quantitative value of the property specified by type, as
99
+ * part of the sensorReport element.
100
+ */
101
+ minValue?: number;
102
+ /**
103
+ * (Optional) Similar to minValue, for the maximum quantitative value.
104
+ */
105
+ maxValue?: number;
106
+ /**
107
+ * (Optional) The arithmetic mean of the values of the property specified by the
108
+ * type as part of the sensorReport element.
109
+ */
110
+ meanValue?: number;
111
+ /**
112
+ * (Optional) Standard deviation of the values of the property specified by type,
113
+ * as part of the sensorReport element.
114
+ */
115
+ sDev?: number;
116
+ /**
117
+ * (Optional) Percentile rank, signifying the percentage of observations in a
118
+ * frequency distribution that are equal to or lower than it.
119
+ */
120
+ percRank?: number;
121
+ /**
122
+ * (Optional) The percentile value, at or below which a given percentage of
123
+ * observations may be found.
124
+ */
125
+ percValue?: number;
126
+ /**
127
+ * (Optional) Unit of measure by which the specified value(s) of the property
128
+ * specified by type should be interpreted.
129
+ */
130
+ uom?: string;
131
+ }
@@ -0,0 +1,20 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { EpcisSourceDestTypes } from "./epcisSourceDestTypes.js";
3
+ /**
4
+ * EPCIS 2.0 Source element identifying the origin of a business transfer.
5
+ * @see https://ref.gs1.org/epcis/SourceOrDestination
6
+ */
7
+ export interface IEpcisSource extends IJsonLdNodeObject {
8
+ /**
9
+ * Identifier indicating the role of SourceOrDestination in a transfer (Owning
10
+ * Party, Possessing Party, or Location).
11
+ *
12
+ * Use {@link EpcisSourceDestTypes} for known values.
13
+ */
14
+ type: EpcisSourceDestTypes | string;
15
+ /**
16
+ * Identifier that denotes the specific source or destination of a business
17
+ * transfer; must correlate with the selected type.
18
+ */
19
+ source: string;
20
+ }
@@ -0,0 +1,78 @@
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 TransactionEvent relating objects or quantities to one or more
14
+ * business transactions, optionally with a parent identifier.
15
+ * @see https://ref.gs1.org/epcis/TransactionEvent
16
+ */
17
+ export interface IEpcisTransactionEvent extends IEpcisEvent {
18
+ /**
19
+ * Fixed to TransactionEvent.
20
+ */
21
+ type: typeof EpcisTypes.TransactionEvent;
22
+ /**
23
+ * Business transaction list (required by schema).
24
+ */
25
+ bizTransactionList: IEpcisBizTransaction[];
26
+ /**
27
+ * (Optional when action is OBSERVE, required otherwise) Identifier of the parent
28
+ * of the aggregation or association; use the pure identity URI when the parent is
29
+ * an EPC.
30
+ */
31
+ parentID?: string;
32
+ /**
33
+ * (Optional) An unordered list of one or more EPCs naming specific objects to
34
+ * which the event pertained.
35
+ */
36
+ epcList?: string[];
37
+ /**
38
+ * An unordered list of one or more QuantityElements identifying (at the class
39
+ * level) contained objects.
40
+ */
41
+ quantityList?: IEpcisQuantity[];
42
+ /**
43
+ * How this event relates to the lifecycle of the EPCs named in this event.
44
+ */
45
+ action: EpcisActionTypes;
46
+ /**
47
+ * (Optional) The business step of which this event was a part.
48
+ */
49
+ bizStep?: EpcisBizStepTypes | string;
50
+ /**
51
+ * (Optional) The business condition of the objects associated with the EPCs,
52
+ * presumed to hold true until contradicted by a subsequent event.
53
+ */
54
+ disposition?: EpcisDispositionTypes | string;
55
+ /**
56
+ * (Optional) The read point at which the event took place.
57
+ */
58
+ readPoint?: IEpcisLocation;
59
+ /**
60
+ * (Optional) The business location where the objects associated with the EPCs
61
+ * may be found, until contradicted by a subsequent event.
62
+ */
63
+ bizLocation?: IEpcisLocation;
64
+ /**
65
+ * (Optional) Unordered list of Source elements that provide context about the
66
+ * originating endpoint of a business transfer of which this event is a part.
67
+ */
68
+ sourceList?: IEpcisSource[];
69
+ /**
70
+ * (Optional) Unordered list of Destination elements that provide context about the
71
+ * terminating endpoint of a business transfer of which this event is a part.
72
+ */
73
+ destinationList?: IEpcisDestination[];
74
+ /**
75
+ * (Optional) Connects event to one or more SensorElements.
76
+ */
77
+ sensorElementList?: IEpcisSensorElement[];
78
+ }
@@ -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,16 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { IEpcisVocabularyElement } from "./IEpcisVocabularyElement.js";
3
+ /**
4
+ * EPCIS 2.0 Vocabulary container that groups related vocabulary elements.
5
+ * @see https://ref.gs1.org/epcis/Vocabulary
6
+ */
7
+ export interface IEpcisVocabulary extends IJsonLdNodeObject {
8
+ /**
9
+ * Vocabulary type.
10
+ */
11
+ type: string;
12
+ /**
13
+ * List of vocabulary elements.
14
+ */
15
+ vocabularyElementList?: IEpcisVocabularyElement[];
16
+ }
@@ -0,0 +1,21 @@
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { IEpcisAttribute } from "./IEpcisAttribute.js";
3
+ /**
4
+ * EPCIS 2.0 VocabularyElement representing a master data entity with
5
+ * attributes and optional children.
6
+ * @see https://ref.gs1.org/epcis/VocabularyElement
7
+ */
8
+ export interface IEpcisVocabularyElement extends IJsonLdNodeObject {
9
+ /**
10
+ * Element id.
11
+ */
12
+ id: string;
13
+ /**
14
+ * Attributes.
15
+ */
16
+ attributes?: IEpcisAttribute[];
17
+ /**
18
+ * Children.
19
+ */
20
+ children?: string[];
21
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or
3
+ * removes associations.
4
+ */
5
+ export declare const EpcisActionTypes: {
6
+ /**
7
+ * Indicates that associations described by the event are created as of
8
+ * eventTime.
9
+ */
10
+ readonly Add: "ADD";
11
+ /**
12
+ * Reports an observation of existing associations without changing them.
13
+ */
14
+ readonly Observe: "OBSERVE";
15
+ /**
16
+ * Indicates that associations described by the event no longer hold as of
17
+ * eventTime.
18
+ */
19
+ readonly Delete: "DELETE";
20
+ };
21
+ /**
22
+ * GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or
23
+ * removes associations.
24
+ */
25
+ export type EpcisActionTypes = (typeof EpcisActionTypes)[keyof typeof EpcisActionTypes];