@twin.org/standards-gs1 0.0.3-next.6 → 0.0.3-next.8
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.
- package/dist/es/entities/gs1Location.js.map +1 -1
- package/dist/es/index.js +17 -17
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAggregationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisAssociationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js.map +1 -0
- package/dist/es/models/epcis20/{ISensorMetadata.js → IEpcisBizTransaction.js} +1 -1
- package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -0
- package/dist/es/models/epcis20/{IBizTransaction.js → IEpcisDestination.js} +1 -1
- package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisEventDetails.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisObjectEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisObjectEvent.js.map +1 -0
- package/dist/es/models/epcis20/{ISensorReport.js → IEpcisQuantity.js} +1 -1
- package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSensorElement.js +2 -0
- package/dist/es/models/epcis20/IEpcisSensorElement.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js +4 -0
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -0
- package/dist/es/models/epcis20/{IQuantity.js → IEpcisSensorReport.js} +1 -1
- package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSimpleLocation.js +4 -0
- package/dist/es/models/epcis20/IEpcisSimpleLocation.js.map +1 -0
- package/dist/es/models/epcis20/{IDestination.js → IEpcisSource.js} +1 -1
- package/dist/es/models/epcis20/IEpcisSource.js.map +1 -0
- package/dist/es/models/epcis20/{actionTypes.js → epcisActionTypes.js} +2 -2
- package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -0
- package/dist/es/models/epcis20/{bizStepTypes.js → epcisBizStepTypes.js} +2 -2
- package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -0
- package/dist/es/models/epcis20/{dispositionTypes.js → epcisDispositionTypes.js} +2 -2
- package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -0
- package/dist/es/models/epcis20/{eventTypes.js → epcisEventTypes.js} +2 -2
- package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisEventUnionType.js.map +1 -1
- package/dist/es/models/gs1/{subSiteAttributes.js → gs1SubSiteAttributes.js} +2 -2
- package/dist/es/models/gs1/gs1SubSiteAttributes.js.map +1 -0
- package/dist/es/models/gs1/{subSiteTypes.js → gs1SubSiteTypes.js} +2 -2
- package/dist/es/models/gs1/gs1SubSiteTypes.js.map +1 -0
- package/dist/es/utils/gs1Validation.js +4 -4
- package/dist/es/utils/gs1Validation.js.map +1 -1
- package/dist/types/entities/gs1Location.d.ts +4 -4
- package/dist/types/index.d.ts +17 -17
- package/dist/types/models/epcis20/{IAggregationEvent.d.ts → IEpcisAggregationEvent.d.ts} +1 -1
- package/dist/types/models/epcis20/{IAssociationEvent.d.ts → IEpcisAssociationEvent.d.ts} +1 -1
- package/dist/types/models/epcis20/{IBaseAggregationEvent.d.ts → IEpcisBaseAggregationEvent.d.ts} +1 -1
- package/dist/types/models/epcis20/IEpcisEvent.d.ts +2 -2
- package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +8 -8
- package/dist/types/models/epcis20/{IObjectEvent.d.ts → IEpcisObjectEvent.d.ts} +2 -2
- package/dist/types/models/epcis20/{ISensorElement.d.ts → IEpcisSensorElement.d.ts} +2 -2
- package/dist/types/models/epcis20/{actionTypes.d.ts → epcisActionTypes.d.ts} +2 -2
- package/dist/types/models/epcis20/{bizStepTypes.d.ts → epcisBizStepTypes.d.ts} +2 -2
- package/dist/types/models/epcis20/{dispositionTypes.d.ts → epcisDispositionTypes.d.ts} +2 -2
- package/dist/types/models/epcis20/{eventTypes.d.ts → epcisEventTypes.d.ts} +2 -2
- package/dist/types/models/epcis20/epcisEventUnionType.d.ts +3 -3
- package/dist/types/models/gs1/{subSiteAttributes.d.ts → gs1SubSiteAttributes.d.ts} +2 -2
- package/dist/types/models/gs1/{subSiteTypes.d.ts → gs1SubSiteTypes.d.ts} +2 -2
- package/docs/changelog.md +14 -0
- package/docs/reference/classes/Gs1Location.md +2 -2
- package/docs/reference/index.md +14 -14
- package/docs/reference/interfaces/IAggregationEvent.md +3 -3
- package/docs/reference/interfaces/IAssociationEvent.md +3 -3
- package/docs/reference/interfaces/IEpcisEventDetails.md +3 -3
- package/docs/reference/interfaces/IObjectEvent.md +3 -3
- package/docs/reference/type-aliases/EpcisActionTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisBizStepTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisDispositionTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisEventTypes.md +5 -0
- package/docs/reference/type-aliases/Gs1SubSiteAttributes.md +7 -0
- package/docs/reference/type-aliases/Gs1SubSiteTypes.md +7 -0
- package/docs/reference/variables/{ActionTypes.md → EpcisActionTypes.md} +2 -2
- package/docs/reference/variables/{BizStepTypes.md → EpcisBizStepTypes.md} +2 -2
- package/docs/reference/variables/{DispositionTypes.md → EpcisDispositionTypes.md} +2 -2
- package/docs/reference/variables/{EventTypes.md → EpcisEventTypes.md} +2 -2
- package/docs/reference/variables/{SubSiteAttributes.md → Gs1SubSiteAttributes.md} +2 -2
- package/docs/reference/variables/{SubSiteTypes.md → Gs1SubSiteTypes.md} +2 -2
- package/package.json +1 -1
- package/dist/es/models/epcis20/IAggregationEvent.js +0 -2
- package/dist/es/models/epcis20/IAggregationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IAssociationEvent.js +0 -2
- package/dist/es/models/epcis20/IAssociationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IBaseAggregationEvent.js +0 -2
- package/dist/es/models/epcis20/IBaseAggregationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IBizTransaction.js.map +0 -1
- package/dist/es/models/epcis20/IDestination.js.map +0 -1
- package/dist/es/models/epcis20/IObjectEvent.js +0 -2
- package/dist/es/models/epcis20/IObjectEvent.js.map +0 -1
- package/dist/es/models/epcis20/IQuantity.js.map +0 -1
- package/dist/es/models/epcis20/ISensorElement.js +0 -2
- package/dist/es/models/epcis20/ISensorElement.js.map +0 -1
- package/dist/es/models/epcis20/ISensorMetadata.js.map +0 -1
- package/dist/es/models/epcis20/ISensorReport.js.map +0 -1
- package/dist/es/models/epcis20/ISimpleLocation.js +0 -4
- package/dist/es/models/epcis20/ISimpleLocation.js.map +0 -1
- package/dist/es/models/epcis20/ISource.js +0 -4
- package/dist/es/models/epcis20/ISource.js.map +0 -1
- package/dist/es/models/epcis20/actionTypes.js.map +0 -1
- package/dist/es/models/epcis20/bizStepTypes.js.map +0 -1
- package/dist/es/models/epcis20/dispositionTypes.js.map +0 -1
- package/dist/es/models/epcis20/eventTypes.js.map +0 -1
- package/dist/es/models/gs1/subSiteAttributes.js.map +0 -1
- package/dist/es/models/gs1/subSiteTypes.js.map +0 -1
- package/docs/reference/type-aliases/ActionTypes.md +0 -5
- package/docs/reference/type-aliases/BizStepTypes.md +0 -5
- package/docs/reference/type-aliases/DispositionTypes.md +0 -5
- package/docs/reference/type-aliases/EventTypes.md +0 -5
- package/docs/reference/type-aliases/SubSiteAttributes.md +0 -7
- package/docs/reference/type-aliases/SubSiteTypes.md +0 -7
- /package/dist/types/models/epcis20/{IBizTransaction.d.ts → IEpcisBizTransaction.d.ts} +0 -0
- /package/dist/types/models/epcis20/{IDestination.d.ts → IEpcisDestination.d.ts} +0 -0
- /package/dist/types/models/epcis20/{IQuantity.d.ts → IEpcisQuantity.d.ts} +0 -0
- /package/dist/types/models/epcis20/{ISensorMetadata.d.ts → IEpcisSensorMetadata.d.ts} +0 -0
- /package/dist/types/models/epcis20/{ISensorReport.d.ts → IEpcisSensorReport.d.ts} +0 -0
- /package/dist/types/models/epcis20/{ISimpleLocation.d.ts → IEpcisSimpleLocation.d.ts} +0 -0
- /package/dist/types/models/epcis20/{ISource.d.ts → IEpcisSource.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gs1Location.js","sourceRoot":"","sources":["../../../src/entities/gs1Location.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;;;GAIG;AAKI,IAAM,WAAW,GAAjB,MAAM,WAAW;IACvB;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAMI,IAAI,CAAU;IAErB;;OAEG;IAMI,GAAG,
|
|
1
|
+
{"version":3,"file":"gs1Location.js","sourceRoot":"","sources":["../../../src/entities/gs1Location.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;;;GAIG;AAKI,IAAM,WAAW,GAAjB,MAAM,WAAW;IACvB;;OAEG;IAEI,EAAE,CAAU;IAEnB;;OAEG;IAMI,IAAI,CAAU;IAErB;;OAEG;IAMI,GAAG,CAAmB;IAE7B;;OAEG;IAMI,GAAG,CAAwB;IAElC;;OAEG;IAMI,GAAG,CAAU;IAEpB;;OAEG;IAMI,IAAI,CAAU;IAErB;;OAEG;IAMI,gBAAgB,CAAU;IAEjC;;OAEG;IAMI,gBAAgB,CAAU;IAEjC;;OAEG;IAMI,kBAAkB,CAAU;IAEnC;;OAEG;IAMI,IAAI,CAAU;IAErB;;OAEG;IAMI,KAAK,CAAU;IAEtB;;OAEG;IAMI,UAAU,CAAU;IAE3B;;OAEG;IAMI,WAAW,CAAU;IAE5B;;OAEG;IAMI,QAAQ,CAAU;IAEzB;;OAEG;IAMI,SAAS,CAAU;CAC1B,CAAA;AA7IO;IADN,QAAQ,CAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;uCAC/E;AAUZ;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;yCACmB;AAUd;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;wCAC2B;AAUtB;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;wCACgC;AAU3B;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;wCACkB;AAUb;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;yCACmB;AAUd;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;qDAC+B;AAU1B;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;qDAC+B;AAU1B;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;uDACiC;AAU5B;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;yCACmB;AAUd;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;0CACoB;AAUf;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;+CACyB;AAUpB;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;gDAC0B;AAUrB;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,sCAAsC;QACnD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;6CACuB;AAUlB;IALN,QAAQ,CAAC;QACT,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;KACd,CAAC;;8CACwB;AAjJd,WAAW;IAJvB,MAAM,CAAC;QACP,WAAW,EACV,6FAA6F;KAC9F,CAAC;GACW,WAAW,CAkJvB","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { entity, property } from \"@twin.org/entity\";\nimport type { Gs1SubSiteAttributes } from \"../models/gs1/gs1SubSiteAttributes.js\";\nimport type { Gs1SubSiteTypes } from \"../models/gs1/gs1SubSiteTypes.js\";\n\n/**\n * Interface describing a GS1 Location master data.\n * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .\n * Section 10.2 .\n */\n@entity({\n\tdescription:\n\t\t\"Stores detailed information about locations, including addresses and geographic coordinates\"\n})\nexport class Gs1Location {\n\t/**\n\t * The GS1 sgln identifier.\n\t */\n\t@property({ description: \"Unique identifier for the location.\", type: \"string\", isPrimary: true })\n\tpublic id!: string;\n\n\t/**\n\t * Identifies the site in which the location is contained.\n\t */\n\t@property({\n\t\tdescription: \"Site identifier or name, if applicable.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic site?: string;\n\n\t/**\n\t * Sub site type describes the primary business function of the sub site location.\n\t */\n\t@property({\n\t\tdescription: \"Additional site-specific information or code.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic sst?: Gs1SubSiteTypes;\n\n\t/**\n\t * Sub site attribute further qualifies the business function of the sub site location.\n\t */\n\t@property({\n\t\tdescription: \"Sub-site area or section information.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic ssa?: Gs1SubSiteAttributes;\n\n\t/**\n\t * Sub site detail provides additional proprietary information.\n\t */\n\t@property({\n\t\tdescription: \"Detailed site description or additional data.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic ssd?: string;\n\n\t/**\n\t * The name of the location.\n\t */\n\t@property({\n\t\tdescription: \"Name of the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic name?: string;\n\n\t/**\n\t * The street address line 1.\n\t */\n\t@property({\n\t\tdescription: \"Primary street address.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressOne?: string;\n\n\t/**\n\t * The street address line 2.\n\t */\n\t@property({\n\t\tdescription: \"Secondary street address, if needed.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressTwo?: string;\n\n\t/**\n\t * The street address line 3.\n\t */\n\t@property({\n\t\tdescription: \"Tertiary street address, if applicable.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic streetAddressThree?: string;\n\n\t/**\n\t * City.\n\t */\n\t@property({\n\t\tdescription: \"City where the location is situated.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic city?: string;\n\n\t/**\n\t * State.\n\t */\n\t@property({\n\t\tdescription: \"State or province of the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic state?: string;\n\n\t/**\n\t * Postal Code.\n\t */\n\t@property({\n\t\tdescription: \"Postal or ZIP code for the location.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic postalCode?: string;\n\n\t/**\n\t * Country Code The ISO 3166-1 alpha-2 code specifying the country for the address.\n\t */\n\t@property({\n\t\tdescription: \"Country code where the location is located.\",\n\t\ttype: \"string\",\n\t\toptional: true\n\t})\n\tpublic countryCode?: string;\n\n\t/**\n\t * The latitude of the location in degrees.\n\t */\n\t@property({\n\t\tdescription: \"Latitude coordinate of the location.\",\n\t\ttype: \"number\",\n\t\toptional: true\n\t})\n\tpublic latitude?: number;\n\n\t/**\n\t * The longitude of the location in degrees.\n\t */\n\t@property({\n\t\tdescription: \"Longitude coordinate of the location.\",\n\t\ttype: \"number\",\n\t\toptional: true\n\t})\n\tpublic longitude?: number;\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -4,34 +4,34 @@ export * from "./dataTypes/gs1DataTypes.js";
|
|
|
4
4
|
export * from "./entities/gs1Location.js";
|
|
5
5
|
export * from "./identifiers/gs1Identifiers.js";
|
|
6
6
|
export * from "./models/epc/IEPCClassUri.js";
|
|
7
|
-
export * from "./models/epcis20/
|
|
8
|
-
export * from "./models/epcis20/
|
|
9
|
-
export * from "./models/epcis20/
|
|
7
|
+
export * from "./models/epcis20/epcisActionTypes.js";
|
|
8
|
+
export * from "./models/epcis20/epcisBizStepTypes.js";
|
|
9
|
+
export * from "./models/epcis20/epcisDispositionTypes.js";
|
|
10
10
|
export * from "./models/epcis20/epcisErrorTypes.js";
|
|
11
11
|
export * from "./models/epcis20/epcisEventUnionType.js";
|
|
12
|
-
export * from "./models/epcis20/
|
|
13
|
-
export * from "./models/epcis20/
|
|
14
|
-
export * from "./models/epcis20/
|
|
15
|
-
export * from "./models/epcis20/
|
|
16
|
-
export * from "./models/epcis20/
|
|
12
|
+
export * from "./models/epcis20/epcisEventTypes.js";
|
|
13
|
+
export * from "./models/epcis20/IEpcisAggregationEvent.js";
|
|
14
|
+
export * from "./models/epcis20/IEpcisAssociationEvent.js";
|
|
15
|
+
export * from "./models/epcis20/IEpcisBizTransaction.js";
|
|
16
|
+
export * from "./models/epcis20/IEpcisDestination.js";
|
|
17
17
|
export * from "./models/epcis20/IEpcisDocument.js";
|
|
18
18
|
export * from "./models/epcis20/IEpcisEvent.js";
|
|
19
19
|
export * from "./models/epcis20/IEpcisEventDetails.js";
|
|
20
20
|
export * from "./models/epcis20/IEpcisQuery.js";
|
|
21
21
|
export * from "./models/epcis20/IEpcisQueryDocument.js";
|
|
22
|
-
export * from "./models/epcis20/
|
|
23
|
-
export * from "./models/epcis20/
|
|
24
|
-
export * from "./models/epcis20/
|
|
25
|
-
export * from "./models/epcis20/
|
|
26
|
-
export * from "./models/epcis20/
|
|
27
|
-
export * from "./models/epcis20/
|
|
28
|
-
export * from "./models/epcis20/
|
|
22
|
+
export * from "./models/epcis20/IEpcisObjectEvent.js";
|
|
23
|
+
export * from "./models/epcis20/IEpcisQuantity.js";
|
|
24
|
+
export * from "./models/epcis20/IEpcisSensorElement.js";
|
|
25
|
+
export * from "./models/epcis20/IEpcisSensorMetadata.js";
|
|
26
|
+
export * from "./models/epcis20/IEpcisSensorReport.js";
|
|
27
|
+
export * from "./models/epcis20/IEpcisSimpleLocation.js";
|
|
28
|
+
export * from "./models/epcis20/IEpcisSource.js";
|
|
29
29
|
export * from "./models/gs1/gs1Contexts.js";
|
|
30
30
|
export * from "./models/gs1/gs1IdentifierTypes.js";
|
|
31
31
|
export * from "./models/gs1/gs1IdTypes.js";
|
|
32
32
|
export * from "./models/gs1/gs1Types.js";
|
|
33
|
-
export * from "./models/gs1/
|
|
34
|
-
export * from "./models/gs1/
|
|
33
|
+
export * from "./models/gs1/gs1SubSiteAttributes.js";
|
|
34
|
+
export * from "./models/gs1/gs1SubSiteTypes.js";
|
|
35
35
|
export * from "./utils/gs1IdentifiersValidation.js";
|
|
36
36
|
export * from "./utils/gs1Is.js";
|
|
37
37
|
export * from "./utils/gs1Validation.js";
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/gs1DataTypes.js\";\nexport * from \"./entities/gs1Location.js\";\nexport * from \"./identifiers/gs1Identifiers.js\";\nexport * from \"./models/epc/IEPCClassUri.js\";\nexport * from \"./models/epcis20/epcisActionTypes.js\";\nexport * from \"./models/epcis20/epcisBizStepTypes.js\";\nexport * from \"./models/epcis20/epcisDispositionTypes.js\";\nexport * from \"./models/epcis20/epcisErrorTypes.js\";\nexport * from \"./models/epcis20/epcisEventUnionType.js\";\nexport * from \"./models/epcis20/epcisEventTypes.js\";\nexport * from \"./models/epcis20/IEpcisAggregationEvent.js\";\nexport * from \"./models/epcis20/IEpcisAssociationEvent.js\";\nexport * from \"./models/epcis20/IEpcisBizTransaction.js\";\nexport * from \"./models/epcis20/IEpcisDestination.js\";\nexport * from \"./models/epcis20/IEpcisDocument.js\";\nexport * from \"./models/epcis20/IEpcisEvent.js\";\nexport * from \"./models/epcis20/IEpcisEventDetails.js\";\nexport * from \"./models/epcis20/IEpcisQuery.js\";\nexport * from \"./models/epcis20/IEpcisQueryDocument.js\";\nexport * from \"./models/epcis20/IEpcisObjectEvent.js\";\nexport * from \"./models/epcis20/IEpcisQuantity.js\";\nexport * from \"./models/epcis20/IEpcisSensorElement.js\";\nexport * from \"./models/epcis20/IEpcisSensorMetadata.js\";\nexport * from \"./models/epcis20/IEpcisSensorReport.js\";\nexport * from \"./models/epcis20/IEpcisSimpleLocation.js\";\nexport * from \"./models/epcis20/IEpcisSource.js\";\nexport * from \"./models/gs1/gs1Contexts.js\";\nexport * from \"./models/gs1/gs1IdentifierTypes.js\";\nexport * from \"./models/gs1/gs1IdTypes.js\";\nexport * from \"./models/gs1/gs1Types.js\";\nexport * from \"./models/gs1/gs1SubSiteAttributes.js\";\nexport * from \"./models/gs1/gs1SubSiteTypes.js\";\nexport * from \"./utils/gs1IdentifiersValidation.js\";\nexport * from \"./utils/gs1Is.js\";\nexport * from \"./utils/gs1Validation.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisAggregationEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisAggregationEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IBaseAggregationEvent } from \"./IEpcisBaseAggregationEvent.js\";\n\n/**\n * Describes an AggregationEvent.\n */\nexport interface IAggregationEvent extends IBaseAggregationEvent {\n\t/**\n\t * The type.\n\t */\n\ttype: \"AggregationEvent\";\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisAssociationEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisAssociationEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IBaseAggregationEvent } from \"./IEpcisBaseAggregationEvent.js\";\n\n/**\n * Association Event.\n */\nexport interface IAssociationEvent extends IBaseAggregationEvent {\n\t/**\n\t * Type.\n\t */\n\ttype: \"AssociationEvent\";\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisBaseAggregationEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisBaseAggregationEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEpcisEventDetails } from \"./IEpcisEventDetails.js\";\nimport type { IQuantity } from \"./IEpcisQuantity.js\";\n\n/**\n * Describes an AggregationEvent.\n */\nexport interface IBaseAggregationEvent extends IEpcisEventDetails {\n\t/**\n\t * Parent is only optional when action is OBSERVE.\n\t */\n\tparentID?: string;\n\n\t/**\n\t * The children EPC which can be empty when action is DELETE.\n\t */\n\tchildEPCs?: string[];\n\n\t/**\n\t * Quantity in case of class-level event visibility data.\n\t */\n\tchildQuantityList?: IQuantity[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisBizTransaction.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisBizTransaction.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Biz Transaction.\n */\nexport interface IBizTransaction {\n\t/**\n\t * Type.\n\t */\n\ttype: string;\n\n\t/**\n\t * The transaction.\n\t */\n\tbizTransaction: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisDestination.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisDestination.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Destination.\n */\nexport interface IDestination {\n\t/**\n\t * Type.\n\t */\n\ttype: string;\n\n\t/**\n\t * The destination.\n\t */\n\tdestination: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinition } from \"@twin.org/data-json-ld\";\nimport type { IDestination } from \"./
|
|
1
|
+
{"version":3,"file":"IEpcisEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinition } from \"@twin.org/data-json-ld\";\nimport type { IDestination } from \"./IEpcisDestination.js\";\nimport type { ISource } from \"./IEpcisSource.js\";\n\n/**\n * EPCIS Event.\n */\nexport interface IEpcisEvent {\n\t/**\n\t * JSON-LD @context.\n\t */\n\t\"@context\"?: IJsonLdContextDefinition;\n\n\t/**\n\t * UUID of the event.\n\t */\n\tid?: string;\n\n\t/**\n\t * The id of the event. Marked here as optional as we usually won't store it on Tangle.\n\t */\n\teventID?: string;\n\n\t/**\n\t * Type of Event.\n\t */\n\ttype: string;\n\n\t/**\n\t * Timestamp in UTC.\n\t */\n\teventTime: string;\n\n\t/**\n\t * Timezone offset. Useful if we want to represent timestamp in local timezone.\n\t */\n\teventTimeZoneOffset: string;\n\n\t/**\n\t * When the event was recorded. It will be automatically generated.\n\t */\n\trecordTime?: string;\n\n\t/**\n\t * Source list. Semantics according to EPCIS standard.\n\t */\n\tsourceList?: ISource[];\n\n\t/**\n\t * Destination list. Semantics according to EPCIS standard.\n\t */\n\tdestinationList?: IDestination[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisEventDetails.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisEventDetails.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IEpcisEventDetails.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisEventDetails.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { EpcisActionTypes } from \"./epcisActionTypes.js\";\nimport type { EpcisBizStepTypes } from \"./epcisBizStepTypes.js\";\nimport type { EpcisDispositionTypes } from \"./epcisDispositionTypes.js\";\nimport type { IBizTransaction } from \"./IEpcisBizTransaction.js\";\nimport type { IEpcisEvent } from \"./IEpcisEvent.js\";\nimport type { ISimpleLocation } from \"./IEpcisSimpleLocation.js\";\n\n/**\n * EPCIS Event Details.\n */\nexport interface IEpcisEventDetails extends IEpcisEvent {\n\t/**\n\t * Action: ADD, OBSERVE, DELETE.\n\t */\n\taction: EpcisActionTypes;\n\n\t/**\n\t * The location of reading point.\n\t */\n\treadPoint?: ISimpleLocation;\n\n\t/**\n\t * The biz location where the item ends up.\n\t */\n\tbizLocation?: ISimpleLocation;\n\n\t/**\n\t * The business step as per EPCIS.\n\t */\n\tbizStep?: EpcisBizStepTypes;\n\n\t/**\n\t * The disposition as per EPCIS.\n\t */\n\tdisposition?: EpcisDispositionTypes;\n\n\t/**\n\t * The list of related business transactions.\n\t */\n\tbizTransactionList?: IBizTransaction[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisObjectEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisObjectEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IEpcisEventDetails } from \"./IEpcisEventDetails.js\";\nimport type { IQuantity } from \"./IEpcisQuantity.js\";\nimport type { ISensorElement } from \"./IEpcisSensorElement.js\";\n\n/**\n * Defines an EPCIS 2.0 Object Event.\n *\n */\nexport interface IObjectEvent extends IEpcisEventDetails {\n\t/**\n\t * Fixed to ObjectEvent.\n\t */\n\ttype: \"ObjectEvent\";\n\n\t/**\n\t * List of EPCs involved.\n\t */\n\tepcList: string[];\n\n\t/**\n\t * Quantity in case of class-level event visibility data.\n\t */\n\tquantityList?: IQuantity[];\n\n\t/**\n\t * Sensor element list.\n\t */\n\tsensorElementList?: ISensorElement[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisQuantity.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQuantity.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Quantity.\n */\nexport interface IQuantity {\n\t/**\n\t * EPC Class.\n\t */\n\tepcClass: string;\n\n\t/**\n\t * Quantity.\n\t */\n\tquantity: number;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisSensorElement.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorElement.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ISensorMetadata } from \"./IEpcisSensorMetadata.js\";\nimport type { ISensorReport } from \"./IEpcisSensorReport.js\";\n\n/**\n * EPCIS SensorElement.\n */\nexport interface ISensorElement {\n\t/**\n\t * Sensor metadata.\n\t */\n\tsensorMetadata?: ISensorMetadata;\n\n\t/**\n\t * Sensor report.\n\t */\n\tsensorReport: ISensorReport[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisSensorMetadata.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorMetadata.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Sensor metadata.\n */\nexport interface ISensorMetadata {\n\t/**\n\t * Time.\n\t */\n\ttime: string;\n\n\t/**\n\t * Device ID.\n\t */\n\tdeviceID: string;\n\n\t/**\n\t * Device Metadata.\n\t */\n\tdeviceMetadata: string;\n\n\t/**\n\t * Raw data.\n\t */\n\trawData: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisSensorReport.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorReport.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS SensorReport.\n */\nexport interface ISensorReport {\n\t/**\n\t * Type.\n\t */\n\ttype: string;\n\n\t/**\n\t * Value.\n\t */\n\tvalue: number;\n\n\t/**\n\t * Unit of measurement.\n\t */\n\tuom: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisSimpleLocation.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSimpleLocation.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Location.\n */\nexport interface ISimpleLocation {\n\t/**\n\t * The id.\n\t */\n\tid: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisSource.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSource.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Biz Transaction.\n */\nexport interface ISource {\n\t/**\n\t * Type.\n\t */\n\ttype: string;\n\n\t/**\n\t * The source.\n\t */\n\tsource: string;\n}\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* EPCIS 2.0 action types.
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const
|
|
7
|
+
export const EpcisActionTypes = {
|
|
8
8
|
/**
|
|
9
9
|
* ADD action.
|
|
10
10
|
*/
|
|
@@ -18,4 +18,4 @@ export const ActionTypes = {
|
|
|
18
18
|
*/
|
|
19
19
|
Delete: "DELETE"
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=
|
|
21
|
+
//# sourceMappingURL=epcisActionTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epcisActionTypes.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisActionTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B;;OAEG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS 2.0 action types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const EpcisActionTypes = {\n\t/**\n\t * ADD action.\n\t */\n\tAdd: \"ADD\",\n\n\t/**\n\t * OBSERVE action.\n\t */\n\tObserve: \"OBSERVE\",\n\n\t/**\n\t * DELETE action.\n\t */\n\tDelete: \"DELETE\"\n} as const;\n\n/**\n * EPCIS 2.0 action types.\n */\nexport type EpcisActionTypes = (typeof EpcisActionTypes)[keyof typeof EpcisActionTypes];\n"]}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* See EPCIS CVB specification for details.
|
|
7
7
|
*/
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
-
export const
|
|
9
|
+
export const EpcisBizStepTypes = {
|
|
10
10
|
Accepting: "accepting",
|
|
11
11
|
Arriving: "arriving",
|
|
12
12
|
Assembling: "assembling",
|
|
@@ -49,4 +49,4 @@ export const BizStepTypes = {
|
|
|
49
49
|
SensorReporting: "sensor_reporting",
|
|
50
50
|
Sampling: "sampling"
|
|
51
51
|
};
|
|
52
|
-
//# sourceMappingURL=
|
|
52
|
+
//# sourceMappingURL=epcisBizStepTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epcisBizStepTypes.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisBizStepTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,SAAS,EAAE,WAAW;IAEtB,QAAQ,EAAE,UAAU;IAEpB,UAAU,EAAE,YAAY;IAExB,UAAU,EAAE,YAAY;IAExB,aAAa,EAAE,eAAe;IAE9B,UAAU,EAAE,YAAY;IAExB,qBAAqB,EAAE,yBAAyB;IAEhD,aAAa,EAAE,gBAAgB;IAE/B,eAAe,EAAE,iBAAiB;IAElC,SAAS,EAAE,WAAW;IAEtB,UAAU,EAAE,YAAY;IAExB,aAAa,EAAE,eAAe;IAE9B,UAAU,EAAE,YAAY;IAExB,QAAQ,EAAE,UAAU;IAEpB,eAAe,EAAE,kBAAkB;IAEnC,OAAO,EAAE,SAAS;IAElB,UAAU,EAAE,YAAY;IAExB,UAAU,EAAE,YAAY;IAExB,OAAO,EAAE,SAAS;IAElB,OAAO,EAAE,SAAS;IAElB,KAAK,EAAE,OAAO;IAEd,OAAO,EAAE,SAAS;IAElB,OAAO,EAAE,SAAS;IAElB,SAAS,EAAE,WAAW;IAEtB,QAAQ,EAAE,UAAU;IAEpB,WAAW,EAAE,aAAa;IAE1B,SAAS,EAAE,WAAW;IAEtB,SAAS,EAAE,WAAW;IAEtB,SAAS,EAAE,WAAW;IAEtB,aAAa,EAAE,gBAAgB;IAE/B,QAAQ,EAAE,UAAU;IAEpB,eAAe,EAAE,kBAAkB;IAEnC,WAAW,EAAE,cAAc;IAE3B,QAAQ,EAAE,UAAU;IAEpB,OAAO,EAAE,SAAS;IAElB,YAAY,EAAE,cAAc;IAE5B,SAAS,EAAE,WAAW;IAEtB,SAAS,EAAE,WAAW;IAEtB,YAAY,EAAE,eAAe;IAE7B,eAAe,EAAE,kBAAkB;IAEnC,QAAQ,EAAE,UAAU;CACX,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Supported EPCIS 2.0 bizStep.\n *\n * See EPCIS CVB specification for details.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const EpcisBizStepTypes = {\n\tAccepting: \"accepting\",\n\n\tArriving: \"arriving\",\n\n\tAssembling: \"assembling\",\n\n\tCollecting: \"collecting\",\n\n\tCommissioning: \"commissioning\",\n\n\tConsigning: \"consigning\",\n\n\tCreatingClassInstance: \"creating_class_instance\",\n\n\tCycleCounting: \"cycle_counting\",\n\n\tDecommissioning: \"decommissioning\",\n\n\tDeparting: \"departing\",\n\n\tDestroying: \"destroying\",\n\n\tDisassembling: \"disassembling\",\n\n\tDispensing: \"dispensing\",\n\n\tEncoding: \"encoding\",\n\n\tEnteringExiting: \"entering_exiting\",\n\n\tHolding: \"holding\",\n\n\tInspecting: \"inspecting\",\n\n\tInstalling: \"installing\",\n\n\tKilling: \"killing\",\n\n\tLoading: \"loading\",\n\n\tOther: \"other\",\n\n\tPacking: \"packing\",\n\n\tPicking: \"picking\",\n\n\tReceiving: \"receiving\",\n\n\tRemoving: \"removing\",\n\n\tRepackaging: \"repackaging\",\n\n\tRepairing: \"repairing\",\n\n\tReplacing: \"replacing\",\n\n\tReserving: \"reserving\",\n\n\tRetailSelling: \"retail_selling\",\n\n\tShipping: \"shipping\",\n\n\tStagingOutbound: \"staging_outbound\",\n\n\tStockTaking: \"stock_taking\",\n\n\tStocking: \"stocking\",\n\n\tStoring: \"storing\",\n\n\tTransporting: \"transporting\",\n\n\tUnloading: \"unloading\",\n\n\tUnpacking: \"unpacking\",\n\n\tVoidShipping: \"void_shipping\",\n\n\tSensorReporting: \"sensor_reporting\",\n\n\tSampling: \"sampling\"\n} as const;\n\n/**\n * EPCIS 2.0 action types.\n */\nexport type EpcisBizStepTypes = (typeof EpcisBizStepTypes)[keyof typeof EpcisBizStepTypes];\n"]}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* See EPCIS CVB for more details.
|
|
8
8
|
*/
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
|
-
export const
|
|
10
|
+
export const EpcisDispositionTypes = {
|
|
11
11
|
Active: "active",
|
|
12
12
|
ContainerClosed: "container_closed",
|
|
13
13
|
Damaged: "damaged",
|
|
@@ -42,4 +42,4 @@ export const DispositionTypes = {
|
|
|
42
42
|
NonConformant: "non_conformant",
|
|
43
43
|
Unavailable: "unavailable"
|
|
44
44
|
};
|
|
45
|
-
//# sourceMappingURL=
|
|
45
|
+
//# sourceMappingURL=epcisDispositionTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epcisDispositionTypes.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisDispositionTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,oBAAoB;AAEpB;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACpC,MAAM,EAAE,QAAQ;IAEhB,eAAe,EAAE,kBAAkB;IAEnC,OAAO,EAAE,SAAS;IAElB,SAAS,EAAE,WAAW;IAEtB,SAAS,EAAE,WAAW;IAEtB,QAAQ,EAAE,UAAU;IAEpB,OAAO,EAAE,SAAS;IAElB,OAAO,EAAE,SAAS;IAElB,UAAU,EAAE,aAAa;IAEzB,SAAS,EAAE,YAAY;IAEvB,QAAQ,EAAE,UAAU;IAEpB,eAAe,EAAE,mBAAmB;IAEpC,gBAAgB,EAAE,oBAAoB;IAEtC,kBAAkB,EAAE,qBAAqB;IAEzC,QAAQ,EAAE,UAAU;IAEpB,QAAQ,EAAE,UAAU;IAEpB,UAAU,EAAE,aAAa;IAEzB,QAAQ,EAAE,UAAU;IAEpB,kBAAkB,EAAE,qBAAqB;IAEzC,qBAAqB,EAAE,yBAAyB;IAEhD,MAAM,EAAE,QAAQ;IAEhB,OAAO,EAAE,SAAS;IAElB,SAAS,EAAE,WAAW;IAEtB,oBAAoB,EAAE,uBAAuB;IAE7C,oBAAoB,EAAE,uBAAuB;IAE7C,UAAU,EAAE,YAAY;IAExB,aAAa,EAAE,gBAAgB;IAE/B,gBAAgB,EAAE,mBAAmB;IAErC,aAAa,EAAE,gBAAgB;IAE/B,gBAAgB,EAAE,mBAAmB;IAErC,gBAAgB,EAAE,mBAAmB;IAErC,aAAa,EAAE,gBAAgB;IAE/B,WAAW,EAAE,aAAa;CACjB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n/* cSpell:disable */\n\n/**\n * EPCIS 2.0 disposition types.\n *\n * See EPCIS CVB for more details.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const EpcisDispositionTypes = {\n\tActive: \"active\",\n\n\tContainerClosed: \"container_closed\",\n\n\tDamaged: \"damaged\",\n\n\tDestroyed: \"destroyed\",\n\n\tDispensed: \"dispensed\",\n\n\tDisposed: \"disposed\",\n\n\tEncoded: \"encoded\",\n\n\tExpired: \"expired\",\n\n\tInProgress: \"in_progress\",\n\n\tInTransit: \"in_transit\",\n\n\tInactive: \"inactive\",\n\n\tNoPedigreeMatch: \"no_pedigree_match\",\n\n\tNonSellableOther: \"non_sellable_other\",\n\n\tPartiallyDispensed: \"partially_dispensed\",\n\n\tRecalled: \"recalled\",\n\n\tReserved: \"reserved\",\n\n\tRetailSold: \"retail_sold\",\n\n\tReturned: \"returned\",\n\n\tSellableAccessible: \"sellable_accessible\",\n\n\tSellableNotAccessible: \"sellable_not_accessible\",\n\n\tStolen: \"stolen\",\n\n\tUnknown: \"unknown\",\n\n\tAvailable: \"available\",\n\n\tCompletenessVerified: \"completeness_verified\",\n\n\tCompletenessInferred: \"completeness_inferred\",\n\n\tConformant: \"conformant\",\n\n\tContainerOpen: \"container_open\",\n\n\tMismatchInstance: \"mismatch_instance\",\n\n\tMismatchClass: \"mismatch_class\",\n\n\tMismatchQuantity: \"mismatch_quantity\",\n\n\tNeedsReplacement: \"needs_replacement\",\n\n\tNonConformant: \"non_conformant\",\n\n\tUnavailable: \"unavailable\"\n} as const;\n\n/**\n * EPCIS 2.0 disposition types.\n */\nexport type EpcisDispositionTypes =\n\t(typeof EpcisDispositionTypes)[keyof typeof EpcisDispositionTypes];\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* EPCIS 2.0 event types.
|
|
5
5
|
*/
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
-
export const
|
|
7
|
+
export const EpcisEventTypes = {
|
|
8
8
|
/**
|
|
9
9
|
* ObjectEvent.
|
|
10
10
|
*/
|
|
@@ -26,4 +26,4 @@ export const EventTypes = {
|
|
|
26
26
|
*/
|
|
27
27
|
TransactionEvent: "TransactionEvent"
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=epcisEventTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epcisEventTypes.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisEventTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS 2.0 event types.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const EpcisEventTypes = {\n\t/**\n\t * ObjectEvent.\n\t */\n\tObjectEvent: \"ObjectEvent\",\n\n\t/**\n\t * Aggregation Event.\n\t */\n\tAggregationEvent: \"AggregationEvent\",\n\n\t/**\n\t * Association Event.\n\t */\n\tAssociationEvent: \"AssociationEvent\",\n\n\t/**\n\t * Transformation Event.\n\t */\n\tTransformationEvent: \"TransformationEvent\",\n\n\t/**\n\t * Transaction Event.\n\t */\n\tTransactionEvent: \"TransactionEvent\"\n} as const;\n\n/**\n * EPCIS 2.0 event types.\n */\nexport type EpcisEventTypes = (typeof EpcisEventTypes)[keyof typeof EpcisEventTypes];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epcisEventUnionType.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisEventUnionType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAggregationEvent } from \"./
|
|
1
|
+
{"version":3,"file":"epcisEventUnionType.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisEventUnionType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IAggregationEvent } from \"./IEpcisAggregationEvent.js\";\nimport type { IAssociationEvent } from \"./IEpcisAssociationEvent.js\";\nimport type { IObjectEvent } from \"./IEpcisObjectEvent.js\";\n\n/**\n * The type that subsumes an EPCIS Event.\n */\nexport type EpcisEventUnionType = IObjectEvent | IAssociationEvent | IAggregationEvent;\n"]}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Section 10.3.2 .
|
|
7
7
|
*/
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
-
export const
|
|
9
|
+
export const Gs1SubSiteAttributes = {
|
|
10
10
|
/**
|
|
11
11
|
* Electronics.
|
|
12
12
|
*/
|
|
@@ -140,4 +140,4 @@ export const SubSiteAttributes = {
|
|
|
140
140
|
*/
|
|
141
141
|
ReadPointVerificationSpot: "434"
|
|
142
142
|
};
|
|
143
|
-
//# sourceMappingURL=
|
|
143
|
+
//# sourceMappingURL=gs1SubSiteAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gs1SubSiteAttributes.js","sourceRoot":"","sources":["../../../../src/models/gs1/gs1SubSiteAttributes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,KAAK,EAAE,KAAK;IAEZ;;OAEG;IACH,MAAM,EAAE,KAAK;IAEb;;OAEG;IACH,KAAK,EAAE,KAAK;IAEZ;;OAEG;IACH,SAAS,EAAE,KAAK;IAEhB;;OAEG;IACH,MAAM,EAAE,KAAK;IAEb;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,QAAQ,EAAE,KAAK;IAEf;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,OAAO,EAAE,KAAK;IAEd;;OAEG;IACH,UAAU,EAAE,KAAK;IAEjB;;OAEG;IACH,QAAQ,EAAE,KAAK;IAEf;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,aAAa,EAAE,KAAK;IAEpB;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,OAAO,EAAE,KAAK;IAEd;;OAEG;IACH,OAAO,EAAE,KAAK;IAEd;;OAEG;IACH,QAAQ,EAAE,KAAK;IAEf;;OAEG;IACH,OAAO,EAAE,KAAK;IAEd;;OAEG;IACH,SAAS,EAAE,KAAK;IAEhB;;OAEG;IACH,UAAU,EAAE,KAAK;IAEjB;;OAEG;IACH,mBAAmB,EAAE,KAAK;IAE1B;;OAEG;IACH,eAAe,EAAE,KAAK;IAEtB;;OAEG;IACH,cAAc,EAAE,KAAK;IAErB;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,QAAQ,EAAE,KAAK;IAEf;;OAEG;IACH,IAAI,EAAE,KAAK;IAEX;;OAEG;IACH,yBAAyB,EAAE,KAAK;CACvB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Sub Site Attributes.\n * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .\n * Section 10.3.2 .\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const Gs1SubSiteAttributes = {\n\t/**\n\t * Electronics.\n\t */\n\tElectronics: \"401\",\n\n\t/**\n\t * Cold Storage.\n\t */\n\tColdStorage: \"402\",\n\n\t/**\n\t * Shelf.\n\t */\n\tShelf: \"403\",\n\n\t/**\n\t * Frozen.\n\t */\n\tFrozen: \"404\",\n\n\t/**\n\t * Fresh.\n\t */\n\tFresh: \"405\",\n\n\t/**\n\t * Promotion.\n\t */\n\tPromotion: \"406\",\n\n\t/**\n\t * End Cap.\n\t */\n\tEndCap: \"407\",\n\n\t/**\n\t * Point of Sale.\n\t */\n\tPointOfSale: \"408\",\n\n\t/**\n\t * Security.\n\t */\n\tSecurity: \"409\",\n\n\t/**\n\t * General Mdse.\n\t */\n\tGeneralMdse: \"411\",\n\n\t/**\n\t * Grocery.\n\t */\n\tGrocery: \"412\",\n\n\t/**\n\t * Box crusher.\n\t */\n\tBoxCrusher: \"413\",\n\n\t/**\n\t * Dock/Door.\n\t */\n\tDockDoor: \"414\",\n\n\t/**\n\t * Conveyor Belt.\n\t */\n\tConveyorBelt: \"415\",\n\n\t/**\n\t * Pallet Wrapper.\n\t */\n\tPalletWrapper: \"416\",\n\n\t/**\n\t * Fixed Reader.\n\t */\n\tFixedReader: \"417\",\n\n\t/**\n\t * Mobile Reader.\n\t */\n\tMobileReader: \"418\",\n\n\t/**\n\t * Shelf Storage.\n\t */\n\tShelfStorage: \"419\",\n\n\t/**\n\t * Returns.\n\t */\n\tReturns: \"420\",\n\n\t/**\n\t * Staging.\n\t */\n\tStaging: \"421\",\n\n\t/**\n\t * Assembly.\n\t */\n\tAssembly: \"422\",\n\n\t/**\n\t * Lay-Away.\n\t */\n\tLayAway: \"423\",\n\n\t/**\n\t * Dispenser.\n\t */\n\tDispenser: \"424\",\n\n\t/**\n\t * Quarantine.\n\t */\n\tQuarantine: \"425\",\n\n\t/**\n\t * Controlled Substance.\n\t */\n\tControlledSubstance: \"426\",\n\n\t/**\n\t * Recalled Product.\n\t */\n\tRecalledProduct: \"427\",\n\n\t/**\n\t * Quality Control.\n\t */\n\tQualityControl: \"428\",\n\n\t/**\n\t * Printing Room.\n\t */\n\tPrintingRoom: \"429\",\n\n\t/**\n\t * Loading Dock.\n\t */\n\tLoadingDock: \"420\",\n\n\t/**\n\t * Entrance Gate.\n\t */\n\tEntranceGate: \"431\",\n\n\t/**\n\t * Exit Gate.\n\t */\n\tExitGate: \"432\",\n\n\t/**\n\t * Gate.\n\t */\n\tGate: \"433\",\n\n\t/**\n\t * Read Point Verification Spot.\n\t */\n\tReadPointVerificationSpot: \"434\"\n} as const;\n\n/**\n * Sub Site Attributes.\n * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .\n * Section 10.3.2 .\n */\nexport type Gs1SubSiteAttributes = (typeof Gs1SubSiteAttributes)[keyof typeof Gs1SubSiteAttributes];\n"]}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Section 10.3.1 .
|
|
7
7
|
*/
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
-
export const
|
|
9
|
+
export const Gs1SubSiteTypes = {
|
|
10
10
|
/**
|
|
11
11
|
* The Backroom.
|
|
12
12
|
*/
|
|
@@ -72,4 +72,4 @@ export const SubSiteTypes = {
|
|
|
72
72
|
*/
|
|
73
73
|
Undefined: "299"
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=
|
|
75
|
+
//# sourceMappingURL=gs1SubSiteTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gs1SubSiteTypes.js","sourceRoot":"","sources":["../../../../src/models/gs1/gs1SubSiteTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;;GAIG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B;;OAEG;IACH,QAAQ,EAAE,KAAK;IAEf;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,UAAU,EAAE,KAAK;IAEjB;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,cAAc,EAAE,KAAK;IAErB;;OAEG;IACH,aAAa,EAAE,KAAK;IAEpB;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,wBAAwB,EAAE,KAAK;IAE/B;;OAEG;IACH,kBAAkB,EAAE,KAAK;IAEzB;;OAEG;IACH,IAAI,EAAE,KAAK;IAEX;;OAEG;IACH,aAAa,EAAE,KAAK;IAEpB;;OAEG;IACH,aAAa,EAAE,KAAK;IAEpB;;OAEG;IACH,aAAa,EAAE,KAAK;IAEpB;;OAEG;IACH,WAAW,EAAE,KAAK;IAElB;;OAEG;IACH,YAAY,EAAE,KAAK;IAEnB;;OAEG;IACH,SAAS,EAAE,KAAK;CACP,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Sub Site Identifier Types.\n * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .\n * Section 10.3.1 .\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const Gs1SubSiteTypes = {\n\t/**\n\t * The Backroom.\n\t */\n\tBackroom: \"201\",\n\n\t/**\n\t * The Storage Area.\n\t */\n\tStorageArea: \"202\",\n\n\t/**\n\t * The Sales Floor.\n\t */\n\tSalesFloor: \"203\",\n\n\t/**\n\t * The Returns Area.\n\t */\n\tReturnsArea: \"207\",\n\n\t/**\n\t * The Production Area.\n\t */\n\tProductionArea: \"208\",\n\n\t/**\n\t * The Receiving Area.\n\t */\n\tReceivingArea: \"209\",\n\n\t/**\n\t * The Shipping Area.\n\t */\n\tShippingArea: \"210\",\n\n\t/**\n\t * The Sales Floor Transition Area.\n\t */\n\tSalesFloorTransitionArea: \"211\",\n\n\t/**\n\t * The Customer Pick-Up Area.\n\t */\n\tCustomerPickupArea: \"212\",\n\n\t/**\n\t * The Yard.\n\t */\n\tYard: \"213\",\n\n\t/**\n\t * The Container Deck.\n\t */\n\tContainerDeck: \"214\",\n\n\t/**\n\t * The Cargo Terminal.\n\t */\n\tCargoTerminal: \"215\",\n\n\t/**\n\t * The Packaging Area.\n\t */\n\tPackagingArea: \"251\",\n\n\t/**\n\t * The Picking Area.\n\t */\n\tPickingArea: \"252\",\n\n\t/**\n\t * The Pharmacy Area.\n\t */\n\tPharmacyArea: \"253\",\n\n\t/**\n\t * Undefined.\n\t */\n\tUndefined: \"299\"\n} as const;\n\n/**\n * Sub Site Identifier Types.\n * Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .\n * Section 10.3.1 .\n */\nexport type Gs1SubSiteTypes = (typeof Gs1SubSiteTypes)[keyof typeof Gs1SubSiteTypes];\n"]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { Is, Validation } from "@twin.org/core";
|
|
4
4
|
import { IdentifierHandlerFactory } from "@twin.org/data-core";
|
|
5
5
|
import { Gs1IdentifierTypes } from "../models/gs1/gs1IdentifierTypes.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { Gs1SubSiteAttributes } from "../models/gs1/gs1SubSiteAttributes.js";
|
|
7
|
+
import { Gs1SubSiteTypes } from "../models/gs1/gs1SubSiteTypes.js";
|
|
8
8
|
/**
|
|
9
9
|
* Validation for GS1 types.
|
|
10
10
|
*/
|
|
@@ -39,10 +39,10 @@ export class Gs1Validation {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
if (Is.notEmpty(value.sst)) {
|
|
42
|
-
Validation.arrayOneOf("value.sst", value.sst, Object.values(
|
|
42
|
+
Validation.arrayOneOf("value.sst", value.sst, Object.values(Gs1SubSiteTypes), failures);
|
|
43
43
|
}
|
|
44
44
|
if (Is.notEmpty(value.ssa)) {
|
|
45
|
-
Validation.arrayOneOf("value.ssa", value.ssa, Object.values(
|
|
45
|
+
Validation.arrayOneOf("value.ssa", value.ssa, Object.values(Gs1SubSiteAttributes), failures);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
return is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gs1Validation.js","sourceRoot":"","sources":["../../../src/utils/gs1Validation.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,EAAE,EAA2B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"gs1Validation.js","sourceRoot":"","sources":["../../../src/utils/gs1Validation.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,EAAE,EAA2B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE;;GAEG;AACH,MAAM,OAAO,aAAa;IACzB;;;;;;;OAOG;IACI,MAAM,CAAC,kBAAkB,CAC/B,YAAoB,EACpB,KAAkB,EAClB,QAA8B,EAC9B,SAAmB;QAEnB,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAc,KAAK,CAAC,CAAC;QAEzC,IAAI,EAAE,EAAE,CAAC;YACR,IAAI,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;gBAC9B,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;gBACpF,IAAI,iBAAiB,EAAE,CAAC;oBACvB,iBAAiB,CAAC,QAAQ,uBAAiC,KAAK,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;gBAChF,CAAC;YACF,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC/D,QAAQ,CAAC,IAAI,CAAC;oBACb,QAAQ,4BAAsC;oBAC9C,MAAM,EAAE,mCAAmC;iBAC3C,CAAC,CAAC;YACJ,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;gBACjE,QAAQ,CAAC,IAAI,CAAC;oBACb,QAAQ,6BAAuC;oBAC/C,MAAM,EAAE,oCAAoC;iBAC5C,CAAC,CAAC;YACJ,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,UAAU,CAAC,UAAU,cAEpB,KAAK,CAAC,GAAG,EACT,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,EAC9B,QAAQ,CACR,CAAC;YACH,CAAC;YAED,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,UAAU,CAAC,UAAU,cAEpB,KAAK,CAAC,GAAG,EACT,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,EACnC,QAAQ,CACR,CAAC;YACH,CAAC;QACF,CAAC;QAED,OAAO,EAAE,CAAC;IACX,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Is, type IValidationFailure, Validation } from \"@twin.org/core\";\nimport { IdentifierHandlerFactory } from \"@twin.org/data-core\";\nimport { nameof } from \"@twin.org/nameof\";\nimport type { Gs1Location } from \"../entities/gs1Location.js\";\nimport { Gs1IdentifierTypes } from \"../models/gs1/gs1IdentifierTypes.js\";\nimport { Gs1SubSiteAttributes } from \"../models/gs1/gs1SubSiteAttributes.js\";\nimport { Gs1SubSiteTypes } from \"../models/gs1/gs1SubSiteTypes.js\";\n\n/**\n * Validation for GS1 types.\n */\nexport class Gs1Validation {\n\t/**\n\t * Validate if the property is a valid location.\n\t * @param propertyName The name of the property being validated.\n\t * @param value The value to test.\n\t * @param failures The list of failures to add to.\n\t * @param container The object which contains this one.\n\t * @returns True if the value is a location.\n\t */\n\tpublic static locationMasterData(\n\t\tpropertyName: string,\n\t\tvalue: Gs1Location,\n\t\tfailures: IValidationFailure[],\n\t\tcontainer?: unknown\n\t): value is Gs1Location {\n\t\tconst is = Is.object<Gs1Location>(value);\n\n\t\tif (is) {\n\t\t\tif (Is.stringValue(value.id)) {\n\t\t\t\tconst identifierHandler = IdentifierHandlerFactory.get(Gs1IdentifierTypes.EpcIdGln);\n\t\t\t\tif (identifierHandler) {\n\t\t\t\t\tidentifierHandler.validate(nameof(value.id, propertyName), value.id, failures);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.latitude) && !Is.number(value.latitude)) {\n\t\t\t\tfailures.push({\n\t\t\t\t\tproperty: nameof(value.latitude, propertyName),\n\t\t\t\t\treason: \"validation.geoCoordinatesLatitude\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.longitude) && !Is.number(value.longitude)) {\n\t\t\t\tfailures.push({\n\t\t\t\t\tproperty: nameof(value.longitude, propertyName),\n\t\t\t\t\treason: \"validation.geoCoordinatesLongitude\"\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.sst)) {\n\t\t\t\tValidation.arrayOneOf(\n\t\t\t\t\tnameof(value.sst),\n\t\t\t\t\tvalue.sst,\n\t\t\t\t\tObject.values(Gs1SubSiteTypes),\n\t\t\t\t\tfailures\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (Is.notEmpty(value.ssa)) {\n\t\t\t\tValidation.arrayOneOf(\n\t\t\t\t\tnameof(value.ssa),\n\t\t\t\t\tvalue.ssa,\n\t\t\t\t\tObject.values(Gs1SubSiteAttributes),\n\t\t\t\t\tfailures\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn is;\n\t}\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Gs1SubSiteAttributes } from "../models/gs1/gs1SubSiteAttributes.js";
|
|
2
|
+
import type { Gs1SubSiteTypes } from "../models/gs1/gs1SubSiteTypes.js";
|
|
3
3
|
/**
|
|
4
4
|
* Interface describing a GS1 Location master data.
|
|
5
5
|
* Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
|
|
@@ -17,11 +17,11 @@ export declare class Gs1Location {
|
|
|
17
17
|
/**
|
|
18
18
|
* Sub site type describes the primary business function of the sub site location.
|
|
19
19
|
*/
|
|
20
|
-
sst?:
|
|
20
|
+
sst?: Gs1SubSiteTypes;
|
|
21
21
|
/**
|
|
22
22
|
* Sub site attribute further qualifies the business function of the sub site location.
|
|
23
23
|
*/
|
|
24
|
-
ssa?:
|
|
24
|
+
ssa?: Gs1SubSiteAttributes;
|
|
25
25
|
/**
|
|
26
26
|
* Sub site detail provides additional proprietary information.
|
|
27
27
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,34 +2,34 @@ export * from "./dataTypes/gs1DataTypes.js";
|
|
|
2
2
|
export * from "./entities/gs1Location.js";
|
|
3
3
|
export * from "./identifiers/gs1Identifiers.js";
|
|
4
4
|
export * from "./models/epc/IEPCClassUri.js";
|
|
5
|
-
export * from "./models/epcis20/
|
|
6
|
-
export * from "./models/epcis20/
|
|
7
|
-
export * from "./models/epcis20/
|
|
5
|
+
export * from "./models/epcis20/epcisActionTypes.js";
|
|
6
|
+
export * from "./models/epcis20/epcisBizStepTypes.js";
|
|
7
|
+
export * from "./models/epcis20/epcisDispositionTypes.js";
|
|
8
8
|
export * from "./models/epcis20/epcisErrorTypes.js";
|
|
9
9
|
export * from "./models/epcis20/epcisEventUnionType.js";
|
|
10
|
-
export * from "./models/epcis20/
|
|
11
|
-
export * from "./models/epcis20/
|
|
12
|
-
export * from "./models/epcis20/
|
|
13
|
-
export * from "./models/epcis20/
|
|
14
|
-
export * from "./models/epcis20/
|
|
10
|
+
export * from "./models/epcis20/epcisEventTypes.js";
|
|
11
|
+
export * from "./models/epcis20/IEpcisAggregationEvent.js";
|
|
12
|
+
export * from "./models/epcis20/IEpcisAssociationEvent.js";
|
|
13
|
+
export * from "./models/epcis20/IEpcisBizTransaction.js";
|
|
14
|
+
export * from "./models/epcis20/IEpcisDestination.js";
|
|
15
15
|
export * from "./models/epcis20/IEpcisDocument.js";
|
|
16
16
|
export * from "./models/epcis20/IEpcisEvent.js";
|
|
17
17
|
export * from "./models/epcis20/IEpcisEventDetails.js";
|
|
18
18
|
export * from "./models/epcis20/IEpcisQuery.js";
|
|
19
19
|
export * from "./models/epcis20/IEpcisQueryDocument.js";
|
|
20
|
-
export * from "./models/epcis20/
|
|
21
|
-
export * from "./models/epcis20/
|
|
22
|
-
export * from "./models/epcis20/
|
|
23
|
-
export * from "./models/epcis20/
|
|
24
|
-
export * from "./models/epcis20/
|
|
25
|
-
export * from "./models/epcis20/
|
|
26
|
-
export * from "./models/epcis20/
|
|
20
|
+
export * from "./models/epcis20/IEpcisObjectEvent.js";
|
|
21
|
+
export * from "./models/epcis20/IEpcisQuantity.js";
|
|
22
|
+
export * from "./models/epcis20/IEpcisSensorElement.js";
|
|
23
|
+
export * from "./models/epcis20/IEpcisSensorMetadata.js";
|
|
24
|
+
export * from "./models/epcis20/IEpcisSensorReport.js";
|
|
25
|
+
export * from "./models/epcis20/IEpcisSimpleLocation.js";
|
|
26
|
+
export * from "./models/epcis20/IEpcisSource.js";
|
|
27
27
|
export * from "./models/gs1/gs1Contexts.js";
|
|
28
28
|
export * from "./models/gs1/gs1IdentifierTypes.js";
|
|
29
29
|
export * from "./models/gs1/gs1IdTypes.js";
|
|
30
30
|
export * from "./models/gs1/gs1Types.js";
|
|
31
|
-
export * from "./models/gs1/
|
|
32
|
-
export * from "./models/gs1/
|
|
31
|
+
export * from "./models/gs1/gs1SubSiteAttributes.js";
|
|
32
|
+
export * from "./models/gs1/gs1SubSiteTypes.js";
|
|
33
33
|
export * from "./utils/gs1IdentifiersValidation.js";
|
|
34
34
|
export * from "./utils/gs1Is.js";
|
|
35
35
|
export * from "./utils/gs1Validation.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
|
|
2
|
-
import type { IDestination } from "./
|
|
3
|
-
import type { ISource } from "./
|
|
2
|
+
import type { IDestination } from "./IEpcisDestination.js";
|
|
3
|
+
import type { ISource } from "./IEpcisSource.js";
|
|
4
4
|
/**
|
|
5
5
|
* EPCIS Event.
|
|
6
6
|
*/
|