@twin.org/standards-gs1 0.0.3-next.10 → 0.0.3-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/dataTypes/epcisDataTypes.js +61 -0
- package/dist/es/dataTypes/epcisDataTypes.js.map +1 -0
- package/dist/es/dataTypes/gs1DataTypes.js +2 -2
- package/dist/es/dataTypes/gs1DataTypes.js.map +1 -1
- package/dist/es/index.js +26 -7
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAggregationEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAssociationEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisAttribute.js +2 -0
- package/dist/es/models/epcis20/IEpcisAttribute.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisBizTransaction.js +0 -2
- package/dist/es/models/epcis20/IEpcisBizTransaction.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisDestination.js +0 -2
- package/dist/es/models/epcis20/IEpcisDestination.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisDocument.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisErrorDeclaration.js +2 -0
- package/dist/es/models/epcis20/IEpcisErrorDeclaration.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisHeader.js +2 -0
- package/dist/es/models/epcis20/IEpcisHeader.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisIlmd.js +2 -0
- package/dist/es/models/epcis20/IEpcisIlmd.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisLocation.js +2 -0
- package/dist/es/models/epcis20/IEpcisLocation.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisObjectEvent.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisPersistentDisposition.js +2 -0
- package/dist/es/models/epcis20/IEpcisPersistentDisposition.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQuantity.js +0 -2
- package/dist/es/models/epcis20/IEpcisQuantity.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisQuery.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisQueryDocument.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js +2 -0
- package/dist/es/models/epcis20/IEpcisQueryDocumentBody.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQueryResults.js +2 -0
- package/dist/es/models/epcis20/IEpcisQueryResults.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisQueryResultsBody.js +2 -0
- package/dist/es/models/epcis20/IEpcisQueryResultsBody.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisSensorElement.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js +0 -2
- package/dist/es/models/epcis20/IEpcisSensorMetadata.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisSensorReport.js +0 -2
- package/dist/es/models/epcis20/IEpcisSensorReport.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisSource.js +0 -2
- package/dist/es/models/epcis20/IEpcisSource.js.map +1 -1
- package/dist/es/models/epcis20/IEpcisTransactionEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisTransactionEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisTransformationEvent.js +2 -0
- package/dist/es/models/epcis20/IEpcisTransformationEvent.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisVocabulary.js +2 -0
- package/dist/es/models/epcis20/IEpcisVocabulary.js.map +1 -0
- package/dist/es/models/epcis20/IEpcisVocabularyElement.js +2 -0
- package/dist/es/models/epcis20/IEpcisVocabularyElement.js.map +1 -0
- package/dist/es/models/epcis20/epcisActionTypes.js +7 -4
- package/dist/es/models/epcis20/epcisActionTypes.js.map +1 -1
- package/dist/es/models/epcis20/epcisBizStepTypes.js +140 -2
- package/dist/es/models/epcis20/epcisBizStepTypes.js.map +1 -1
- package/dist/es/models/epcis20/epcisBizTransactionTypes.js +75 -0
- package/dist/es/models/epcis20/epcisBizTransactionTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisComponentTypes.js +77 -0
- package/dist/es/models/epcis20/epcisComponentTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisContextType.js +2 -0
- package/dist/es/models/epcis20/epcisContextType.js.map +1 -0
- package/dist/es/models/epcis20/epcisContexts.js +17 -0
- package/dist/es/models/epcis20/epcisContexts.js.map +1 -0
- package/dist/es/models/epcis20/epcisDispositionTypes.js +112 -2
- package/dist/es/models/epcis20/epcisDispositionTypes.js.map +1 -1
- package/dist/es/models/epcis20/epcisErrorReasonTypes.js +20 -0
- package/dist/es/models/epcis20/epcisErrorReasonTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisEventTypes.js +6 -6
- package/dist/es/models/epcis20/epcisEventTypes.js.map +1 -1
- package/dist/es/models/epcis20/epcisEvents.js +2 -0
- package/dist/es/models/epcis20/epcisEvents.js.map +1 -0
- package/dist/es/models/epcis20/epcisMeasurementTypes.js +301 -0
- package/dist/es/models/epcis20/epcisMeasurementTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisSensorAlertTypes.js +19 -0
- package/dist/es/models/epcis20/epcisSensorAlertTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisSourceDestTypes.js +26 -0
- package/dist/es/models/epcis20/epcisSourceDestTypes.js.map +1 -0
- package/dist/es/models/epcis20/epcisTypes.js +37 -0
- package/dist/es/models/epcis20/epcisTypes.js.map +1 -0
- package/dist/es/models/gs1/gs1Contexts.js +2 -2
- package/dist/es/models/gs1/gs1Contexts.js.map +1 -1
- package/dist/es/schemas/EpcisAggregationEvent.json +273 -0
- package/dist/es/schemas/EpcisAssociationEvent.json +274 -0
- package/dist/es/schemas/EpcisDocument.json +204 -0
- package/dist/es/schemas/EpcisObjectEvent.json +277 -0
- package/dist/es/schemas/EpcisQueryDocument.json +173 -0
- package/dist/es/schemas/EpcisTransactionEvent.json +274 -0
- package/dist/es/schemas/EpcisTransformationEvent.json +290 -0
- package/dist/types/dataTypes/epcisDataTypes.d.ts +13 -0
- package/dist/types/index.d.ts +26 -7
- package/dist/types/models/epcis20/IEpcisAggregationEvent.d.ts +75 -4
- package/dist/types/models/epcis20/IEpcisAssociationEvent.d.ts +74 -4
- package/dist/types/models/epcis20/IEpcisAttribute.d.ts +15 -0
- package/dist/types/models/epcis20/IEpcisBizTransaction.d.ts +12 -5
- package/dist/types/models/epcis20/IEpcisDestination.d.ts +13 -5
- package/dist/types/models/epcis20/IEpcisDocument.d.ts +35 -7
- package/dist/types/models/epcis20/IEpcisErrorDeclaration.d.ts +25 -0
- package/dist/types/models/epcis20/IEpcisEvent.d.ts +23 -22
- package/dist/types/models/epcis20/IEpcisHeader.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisIlmd.d.ts +8 -0
- package/dist/types/models/epcis20/IEpcisLocation.d.ts +12 -0
- package/dist/types/models/epcis20/IEpcisObjectEvent.d.ts +72 -12
- package/dist/types/models/epcis20/IEpcisPersistentDisposition.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisQuantity.d.ts +14 -5
- package/dist/types/models/epcis20/IEpcisQuery.d.ts +2 -1
- package/dist/types/models/epcis20/IEpcisQueryDocument.d.ts +10 -30
- package/dist/types/models/epcis20/IEpcisQueryDocumentBody.d.ts +12 -0
- package/dist/types/models/epcis20/IEpcisQueryResults.d.ts +20 -0
- package/dist/types/models/epcis20/IEpcisQueryResultsBody.d.ts +17 -0
- package/dist/types/models/epcis20/IEpcisSensorElement.d.ts +13 -8
- package/dist/types/models/epcis20/IEpcisSensorMetadata.d.ts +37 -10
- package/dist/types/models/epcis20/IEpcisSensorReport.d.ts +122 -8
- package/dist/types/models/epcis20/IEpcisSource.d.ts +12 -5
- package/dist/types/models/epcis20/IEpcisTransactionEvent.d.ts +78 -0
- package/dist/types/models/epcis20/IEpcisTransformationEvent.d.ts +96 -0
- package/dist/types/models/epcis20/IEpcisVocabulary.d.ts +16 -0
- package/dist/types/models/epcis20/IEpcisVocabularyElement.d.ts +21 -0
- package/dist/types/models/epcis20/epcisActionTypes.d.ts +9 -5
- package/dist/types/models/epcis20/epcisBizStepTypes.d.ts +144 -3
- package/dist/types/models/epcis20/epcisBizTransactionTypes.d.ts +74 -0
- package/dist/types/models/epcis20/epcisComponentTypes.d.ts +76 -0
- package/dist/types/models/epcis20/epcisContextType.d.ts +15 -0
- package/dist/types/models/epcis20/epcisContexts.d.ts +17 -0
- package/dist/types/models/epcis20/epcisDispositionTypes.d.ts +117 -3
- package/dist/types/models/epcis20/epcisErrorReasonTypes.d.ts +19 -0
- package/dist/types/models/epcis20/epcisEventTypes.d.ts +7 -7
- package/dist/types/models/epcis20/epcisEvents.d.ts +11 -0
- package/dist/types/models/epcis20/epcisMeasurementTypes.d.ts +303 -0
- package/dist/types/models/epcis20/epcisSensorAlertTypes.d.ts +19 -0
- package/dist/types/models/epcis20/epcisSourceDestTypes.d.ts +26 -0
- package/dist/types/models/epcis20/epcisTypes.d.ts +37 -0
- package/dist/types/models/gs1/gs1Contexts.d.ts +2 -2
- package/docs/changelog.md +8 -0
- package/docs/reference/classes/EpcisDataTypes.md +37 -0
- package/docs/reference/index.md +40 -15
- package/docs/reference/interfaces/IEpcisAggregationEvent.md +223 -0
- package/docs/reference/interfaces/IEpcisAssociationEvent.md +222 -0
- package/docs/reference/interfaces/IEpcisAttribute.md +31 -0
- package/docs/reference/interfaces/IEpcisBizTransaction.md +35 -0
- package/docs/reference/interfaces/IEpcisDestination.md +36 -0
- package/docs/reference/interfaces/IEpcisDocument.md +67 -3
- package/docs/reference/interfaces/IEpcisErrorDeclaration.md +44 -0
- package/docs/reference/interfaces/IEpcisEvent.md +46 -30
- package/docs/reference/interfaces/IEpcisHeader.md +31 -0
- package/docs/reference/interfaces/IEpcisIlmd.md +16 -0
- package/docs/reference/interfaces/IEpcisLocation.md +24 -0
- package/docs/reference/interfaces/IEpcisObjectEvent.md +228 -0
- package/docs/reference/interfaces/IEpcisPersistentDisposition.md +32 -0
- package/docs/reference/interfaces/IEpcisQuantity.md +42 -0
- package/docs/reference/interfaces/IEpcisQuery.md +5 -1
- package/docs/reference/interfaces/IEpcisQueryDocument.md +20 -34
- package/docs/reference/interfaces/IEpcisQueryDocumentBody.md +23 -0
- package/docs/reference/interfaces/IEpcisQueryResults.md +39 -0
- package/docs/reference/interfaces/IEpcisQueryResultsBody.md +31 -0
- package/docs/reference/interfaces/IEpcisSensorElement.md +34 -0
- package/docs/reference/interfaces/IEpcisSensorMetadata.md +88 -0
- package/docs/reference/interfaces/IEpcisSensorReport.md +232 -0
- package/docs/reference/interfaces/IEpcisSource.md +35 -0
- package/docs/reference/interfaces/IEpcisTransactionEvent.md +220 -0
- package/docs/reference/interfaces/IEpcisTransformationEvent.md +249 -0
- package/docs/reference/interfaces/IEpcisVocabulary.md +31 -0
- package/docs/reference/interfaces/IEpcisVocabularyElement.md +40 -0
- package/docs/reference/type-aliases/EpcisActionTypes.md +2 -1
- package/docs/reference/type-aliases/EpcisBizStepTypes.md +4 -1
- package/docs/reference/type-aliases/EpcisBizTransactionTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisComponentTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisContextType.md +6 -0
- package/docs/reference/type-aliases/EpcisContexts.md +5 -0
- package/docs/reference/type-aliases/EpcisDispositionTypes.md +5 -1
- package/docs/reference/type-aliases/EpcisErrorReasonTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisEventTypes.md +1 -1
- package/docs/reference/type-aliases/EpcisEvents.md +6 -0
- package/docs/reference/type-aliases/EpcisMeasurementTypes.md +8 -0
- package/docs/reference/type-aliases/EpcisSensorAlertTypes.md +6 -0
- package/docs/reference/type-aliases/EpcisSourceDestTypes.md +6 -0
- package/docs/reference/variables/EpcisActionTypes.md +7 -4
- package/docs/reference/variables/EpcisBizStepTypes.md +99 -2
- package/docs/reference/variables/EpcisBizTransactionTypes.md +98 -0
- package/docs/reference/variables/EpcisComponentTypes.md +102 -0
- package/docs/reference/variables/EpcisContexts.md +19 -0
- package/docs/reference/variables/EpcisDispositionTypes.md +79 -2
- package/docs/reference/variables/EpcisErrorReasonTypes.md +21 -0
- package/docs/reference/variables/EpcisEventTypes.md +6 -6
- package/docs/reference/variables/EpcisMeasurementTypes.md +442 -0
- package/docs/reference/variables/EpcisSensorAlertTypes.md +20 -0
- package/docs/reference/variables/EpcisSourceDestTypes.md +29 -0
- package/docs/reference/variables/GS1Contexts.md +3 -3
- package/package.json +1 -1
- package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js +0 -2
- package/dist/es/models/epcis20/IEpcisBaseAggregationEvent.js.map +0 -1
- package/dist/es/models/epcis20/IEpcisEventDetails.js +0 -2
- package/dist/es/models/epcis20/IEpcisEventDetails.js.map +0 -1
- package/dist/es/models/epcis20/IEpcisSimpleLocation.js +0 -4
- package/dist/es/models/epcis20/IEpcisSimpleLocation.js.map +0 -1
- package/dist/es/models/epcis20/epcisErrorTypes.js +0 -11
- package/dist/es/models/epcis20/epcisErrorTypes.js.map +0 -1
- package/dist/es/models/epcis20/epcisEventUnionType.js +0 -2
- package/dist/es/models/epcis20/epcisEventUnionType.js.map +0 -1
- package/dist/types/models/epcis20/IEpcisBaseAggregationEvent.d.ts +0 -19
- package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +0 -35
- package/dist/types/models/epcis20/IEpcisSimpleLocation.d.ts +0 -9
- package/dist/types/models/epcis20/epcisErrorTypes.d.ts +0 -11
- package/dist/types/models/epcis20/epcisEventUnionType.d.ts +0 -7
- package/docs/reference/interfaces/IAggregationEvent.md +0 -223
- package/docs/reference/interfaces/IAssociationEvent.md +0 -223
- package/docs/reference/interfaces/IBizTransaction.md +0 -19
- package/docs/reference/interfaces/IDestination.md +0 -19
- package/docs/reference/interfaces/IEpcisEventDetails.md +0 -167
- package/docs/reference/interfaces/IObjectEvent.md +0 -211
- package/docs/reference/interfaces/IQuantity.md +0 -19
- package/docs/reference/interfaces/ISensorElement.md +0 -19
- package/docs/reference/interfaces/ISensorMetadata.md +0 -35
- package/docs/reference/interfaces/ISensorReport.md +0 -27
- package/docs/reference/interfaces/ISimpleLocation.md +0 -11
- package/docs/reference/interfaces/ISource.md +0 -19
- package/docs/reference/type-aliases/EpcisErrorTypes.md +0 -5
- package/docs/reference/type-aliases/EpcisEventUnionType.md +0 -5
- package/docs/reference/variables/EpcisErrorTypes.md +0 -15
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { DataTypeHelper } from "@twin.org/data-core";
|
|
4
|
+
import { JsonLdProcessor } from "@twin.org/data-json-ld";
|
|
5
|
+
import { EpcisContexts } from "../models/epcis20/epcisContexts.js";
|
|
6
|
+
import { EpcisTypes } from "../models/epcis20/epcisTypes.js";
|
|
7
|
+
import AggregationEventSchema from "../schemas/EpcisAggregationEvent.json" with { type: "json" };
|
|
8
|
+
import AssociationEventSchema from "../schemas/EpcisAssociationEvent.json" with { type: "json" };
|
|
9
|
+
import DocumentSchema from "../schemas/EpcisDocument.json" with { type: "json" };
|
|
10
|
+
import ObjectEventSchema from "../schemas/EpcisObjectEvent.json" with { type: "json" };
|
|
11
|
+
import QueryDocumentSchema from "../schemas/EpcisQueryDocument.json" with { type: "json" };
|
|
12
|
+
import TransactionEventSchema from "../schemas/EpcisTransactionEvent.json" with { type: "json" };
|
|
13
|
+
import TransformationEventSchema from "../schemas/EpcisTransformationEvent.json" with { type: "json" };
|
|
14
|
+
/**
|
|
15
|
+
* Handle all the data types for EPCIS.
|
|
16
|
+
*/
|
|
17
|
+
export class EpcisDataTypes {
|
|
18
|
+
/**
|
|
19
|
+
* Register the JSON-LD Redirects.
|
|
20
|
+
*/
|
|
21
|
+
static registerRedirects() {
|
|
22
|
+
JsonLdProcessor.addRedirect(/https?:\/\/ref.gs1.org\/epcis\/?/, EpcisContexts.JsonLdContext);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Register all the data types.
|
|
26
|
+
*/
|
|
27
|
+
static registerTypes() {
|
|
28
|
+
const types = [
|
|
29
|
+
{
|
|
30
|
+
type: EpcisTypes.EPCISDocument,
|
|
31
|
+
schema: DocumentSchema
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: EpcisTypes.EPCISQueryDocument,
|
|
35
|
+
schema: QueryDocumentSchema
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: EpcisTypes.AggregationEvent,
|
|
39
|
+
schema: AggregationEventSchema
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
type: EpcisTypes.AssociationEvent,
|
|
43
|
+
schema: AssociationEventSchema
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
type: EpcisTypes.ObjectEvent,
|
|
47
|
+
schema: ObjectEventSchema
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: EpcisTypes.TransactionEvent,
|
|
51
|
+
schema: TransactionEventSchema
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
type: EpcisTypes.TransformationEvent,
|
|
55
|
+
schema: TransformationEventSchema
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
DataTypeHelper.registerTypes(EpcisContexts.Namespace, EpcisContexts.JsonLdContext, types);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=epcisDataTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"epcisDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/epcisDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,sBAAsB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjG,OAAO,sBAAsB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjG,OAAO,cAAc,MAAM,+BAA+B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjF,OAAO,iBAAiB,MAAM,kCAAkC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACvF,OAAO,mBAAmB,MAAM,oCAAoC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3F,OAAO,sBAAsB,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjG,OAAO,yBAAyB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEvG;;GAEG;AACH,MAAM,OAAO,cAAc;IAC1B;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAAC,kCAAkC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,MAAM,KAAK,GAAG;YACb;gBACC,IAAI,EAAE,UAAU,CAAC,aAAa;gBAC9B,MAAM,EAAE,cAAc;aACtB;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,kBAAkB;gBACnC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,gBAAgB;gBACjC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,gBAAgB;gBACjC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,WAAW;gBAC5B,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,gBAAgB;gBACjC,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,UAAU,CAAC,mBAAmB;gBACpC,MAAM,EAAE,yBAAyB;aACjC;SACD,CAAC;QAEF,cAAc,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,EAAE,aAAa,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IAC3F,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { EpcisContexts } from \"../models/epcis20/epcisContexts.js\";\nimport { EpcisTypes } from \"../models/epcis20/epcisTypes.js\";\nimport AggregationEventSchema from \"../schemas/EpcisAggregationEvent.json\" with { type: \"json\" };\nimport AssociationEventSchema from \"../schemas/EpcisAssociationEvent.json\" with { type: \"json\" };\nimport DocumentSchema from \"../schemas/EpcisDocument.json\" with { type: \"json\" };\nimport ObjectEventSchema from \"../schemas/EpcisObjectEvent.json\" with { type: \"json\" };\nimport QueryDocumentSchema from \"../schemas/EpcisQueryDocument.json\" with { type: \"json\" };\nimport TransactionEventSchema from \"../schemas/EpcisTransactionEvent.json\" with { type: \"json\" };\nimport TransformationEventSchema from \"../schemas/EpcisTransformationEvent.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for EPCIS.\n */\nexport class EpcisDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/ref.gs1.org\\/epcis\\/?/, EpcisContexts.JsonLdContext);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.EPCISDocument,\n\t\t\t\tschema: DocumentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.EPCISQueryDocument,\n\t\t\t\tschema: QueryDocumentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.AggregationEvent,\n\t\t\t\tschema: AggregationEventSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.AssociationEvent,\n\t\t\t\tschema: AssociationEventSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.ObjectEvent,\n\t\t\t\tschema: ObjectEventSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.TransactionEvent,\n\t\t\t\tschema: TransactionEventSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: EpcisTypes.TransformationEvent,\n\t\t\t\tschema: TransformationEventSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(EpcisContexts.Namespace, EpcisContexts.JsonLdContext, types);\n\t}\n}\n"]}
|
|
@@ -13,8 +13,8 @@ export class Gs1DataTypes {
|
|
|
13
13
|
* Register all the data types.
|
|
14
14
|
*/
|
|
15
15
|
static registerTypes() {
|
|
16
|
-
DataTypeHandlerFactory.register(`${GS1Contexts.
|
|
17
|
-
|
|
16
|
+
DataTypeHandlerFactory.register(`${GS1Contexts.Namespace}${Gs1Types.LocationMasterData}`, () => ({
|
|
17
|
+
namespace: GS1Contexts.Namespace,
|
|
18
18
|
type: Gs1Types.LocationMasterData,
|
|
19
19
|
defaultValue: {},
|
|
20
20
|
validate: async (propertyName, value, failures, container) => Gs1Validation.locationMasterData(propertyName, value, failures, container)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gs1DataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gs1DataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,YAAY;IACxB;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"gs1DataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gs1DataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,YAAY;IACxB;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,WAAW,CAAC,SAAS,GAAG,QAAQ,CAAC,kBAAkB,EAAE,EACxD,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,WAAW,CAAC,SAAS;YAChC,IAAI,EAAE,QAAQ,CAAC,kBAAkB;YACjC,YAAY,EAAE,EAAE;YAChB,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,aAAa,CAAC,kBAAkB,CAAC,YAAY,EAAE,KAAoB,EAAE,QAAQ,EAAE,SAAS,CAAC;SAC1F,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport type { Gs1Location } from \"../entities/gs1Location.js\";\nimport { GS1Contexts } from \"../models/gs1/gs1Contexts.js\";\nimport { Gs1Types } from \"../models/gs1/gs1Types.js\";\nimport { Gs1Validation } from \"../utils/gs1Validation.js\";\n\n/**\n * Handle all the data types for GS1.\n * Vocabulary https://www.gs1.org/voc .\n */\nexport class Gs1DataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GS1Contexts.Namespace}${Gs1Types.LocationMasterData}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: GS1Contexts.Namespace,\n\t\t\t\ttype: Gs1Types.LocationMasterData,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tGs1Validation.locationMasterData(propertyName, value as Gs1Location, failures, container)\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -1,37 +1,56 @@
|
|
|
1
1
|
// Copyright 2024 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
export * from "./dataTypes/epcisDataTypes.js";
|
|
3
4
|
export * from "./dataTypes/gs1DataTypes.js";
|
|
4
5
|
export * from "./entities/gs1Location.js";
|
|
5
6
|
export * from "./identifiers/gs1Identifiers.js";
|
|
6
7
|
export * from "./models/epc/IEPCClassUri.js";
|
|
7
8
|
export * from "./models/epcis20/epcisActionTypes.js";
|
|
8
9
|
export * from "./models/epcis20/epcisBizStepTypes.js";
|
|
10
|
+
export * from "./models/epcis20/epcisBizTransactionTypes.js";
|
|
11
|
+
export * from "./models/epcis20/epcisComponentTypes.js";
|
|
12
|
+
export * from "./models/epcis20/epcisContexts.js";
|
|
13
|
+
export * from "./models/epcis20/epcisContextType.js";
|
|
9
14
|
export * from "./models/epcis20/epcisDispositionTypes.js";
|
|
10
|
-
export * from "./models/epcis20/
|
|
11
|
-
export * from "./models/epcis20/
|
|
15
|
+
export * from "./models/epcis20/epcisErrorReasonTypes.js";
|
|
16
|
+
export * from "./models/epcis20/epcisEvents.js";
|
|
12
17
|
export * from "./models/epcis20/epcisEventTypes.js";
|
|
18
|
+
export * from "./models/epcis20/epcisMeasurementTypes.js";
|
|
19
|
+
export * from "./models/epcis20/epcisSensorAlertTypes.js";
|
|
20
|
+
export * from "./models/epcis20/epcisSourceDestTypes.js";
|
|
13
21
|
export * from "./models/epcis20/IEpcisAggregationEvent.js";
|
|
14
22
|
export * from "./models/epcis20/IEpcisAssociationEvent.js";
|
|
23
|
+
export * from "./models/epcis20/IEpcisAttribute.js";
|
|
15
24
|
export * from "./models/epcis20/IEpcisBizTransaction.js";
|
|
16
25
|
export * from "./models/epcis20/IEpcisDestination.js";
|
|
17
26
|
export * from "./models/epcis20/IEpcisDocument.js";
|
|
27
|
+
export * from "./models/epcis20/IEpcisErrorDeclaration.js";
|
|
18
28
|
export * from "./models/epcis20/IEpcisEvent.js";
|
|
19
|
-
export * from "./models/epcis20/
|
|
20
|
-
export * from "./models/epcis20/
|
|
21
|
-
export * from "./models/epcis20/
|
|
29
|
+
export * from "./models/epcis20/IEpcisHeader.js";
|
|
30
|
+
export * from "./models/epcis20/IEpcisIlmd.js";
|
|
31
|
+
export * from "./models/epcis20/IEpcisLocation.js";
|
|
22
32
|
export * from "./models/epcis20/IEpcisObjectEvent.js";
|
|
33
|
+
export * from "./models/epcis20/IEpcisPersistentDisposition.js";
|
|
23
34
|
export * from "./models/epcis20/IEpcisQuantity.js";
|
|
35
|
+
export * from "./models/epcis20/IEpcisQuery.js";
|
|
36
|
+
export * from "./models/epcis20/IEpcisQueryDocument.js";
|
|
37
|
+
export * from "./models/epcis20/IEpcisQueryDocumentBody.js";
|
|
38
|
+
export * from "./models/epcis20/IEpcisQueryResults.js";
|
|
39
|
+
export * from "./models/epcis20/IEpcisQueryResultsBody.js";
|
|
24
40
|
export * from "./models/epcis20/IEpcisSensorElement.js";
|
|
25
41
|
export * from "./models/epcis20/IEpcisSensorMetadata.js";
|
|
26
42
|
export * from "./models/epcis20/IEpcisSensorReport.js";
|
|
27
|
-
export * from "./models/epcis20/IEpcisSimpleLocation.js";
|
|
28
43
|
export * from "./models/epcis20/IEpcisSource.js";
|
|
44
|
+
export * from "./models/epcis20/IEpcisTransactionEvent.js";
|
|
45
|
+
export * from "./models/epcis20/IEpcisTransformationEvent.js";
|
|
46
|
+
export * from "./models/epcis20/IEpcisVocabulary.js";
|
|
47
|
+
export * from "./models/epcis20/IEpcisVocabularyElement.js";
|
|
29
48
|
export * from "./models/gs1/gs1Contexts.js";
|
|
30
49
|
export * from "./models/gs1/gs1IdentifierTypes.js";
|
|
31
50
|
export * from "./models/gs1/gs1IdTypes.js";
|
|
32
|
-
export * from "./models/gs1/gs1Types.js";
|
|
33
51
|
export * from "./models/gs1/gs1SubSiteAttributes.js";
|
|
34
52
|
export * from "./models/gs1/gs1SubSiteTypes.js";
|
|
53
|
+
export * from "./models/gs1/gs1Types.js";
|
|
35
54
|
export * from "./utils/gs1IdentifiersValidation.js";
|
|
36
55
|
export * from "./utils/gs1Is.js";
|
|
37
56
|
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,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,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,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sCAAsC,CAAC;AACrD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,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/epcisDataTypes.js\";\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/epcisBizTransactionTypes.js\";\nexport * from \"./models/epcis20/epcisComponentTypes.js\";\nexport * from \"./models/epcis20/epcisContexts.js\";\nexport * from \"./models/epcis20/epcisContextType.js\";\nexport * from \"./models/epcis20/epcisDispositionTypes.js\";\nexport * from \"./models/epcis20/epcisErrorReasonTypes.js\";\nexport * from \"./models/epcis20/epcisEvents.js\";\nexport * from \"./models/epcis20/epcisEventTypes.js\";\nexport * from \"./models/epcis20/epcisMeasurementTypes.js\";\nexport * from \"./models/epcis20/epcisSensorAlertTypes.js\";\nexport * from \"./models/epcis20/epcisSourceDestTypes.js\";\nexport * from \"./models/epcis20/IEpcisAggregationEvent.js\";\nexport * from \"./models/epcis20/IEpcisAssociationEvent.js\";\nexport * from \"./models/epcis20/IEpcisAttribute.js\";\nexport * from \"./models/epcis20/IEpcisBizTransaction.js\";\nexport * from \"./models/epcis20/IEpcisDestination.js\";\nexport * from \"./models/epcis20/IEpcisDocument.js\";\nexport * from \"./models/epcis20/IEpcisErrorDeclaration.js\";\nexport * from \"./models/epcis20/IEpcisEvent.js\";\nexport * from \"./models/epcis20/IEpcisHeader.js\";\nexport * from \"./models/epcis20/IEpcisIlmd.js\";\nexport * from \"./models/epcis20/IEpcisLocation.js\";\nexport * from \"./models/epcis20/IEpcisObjectEvent.js\";\nexport * from \"./models/epcis20/IEpcisPersistentDisposition.js\";\nexport * from \"./models/epcis20/IEpcisQuantity.js\";\nexport * from \"./models/epcis20/IEpcisQuery.js\";\nexport * from \"./models/epcis20/IEpcisQueryDocument.js\";\nexport * from \"./models/epcis20/IEpcisQueryDocumentBody.js\";\nexport * from \"./models/epcis20/IEpcisQueryResults.js\";\nexport * from \"./models/epcis20/IEpcisQueryResultsBody.js\";\nexport * from \"./models/epcis20/IEpcisSensorElement.js\";\nexport * from \"./models/epcis20/IEpcisSensorMetadata.js\";\nexport * from \"./models/epcis20/IEpcisSensorReport.js\";\nexport * from \"./models/epcis20/IEpcisSource.js\";\nexport * from \"./models/epcis20/IEpcisTransactionEvent.js\";\nexport * from \"./models/epcis20/IEpcisTransformationEvent.js\";\nexport * from \"./models/epcis20/IEpcisVocabulary.js\";\nexport * from \"./models/epcis20/IEpcisVocabularyElement.js\";\nexport * from \"./models/gs1/gs1Contexts.js\";\nexport * from \"./models/gs1/gs1IdentifierTypes.js\";\nexport * from \"./models/gs1/gs1IdTypes.js\";\nexport * from \"./models/gs1/gs1SubSiteAttributes.js\";\nexport * from \"./models/gs1/gs1SubSiteTypes.js\";\nexport * from \"./models/gs1/gs1Types.js\";\nexport * from \"./utils/gs1IdentifiersValidation.js\";\nexport * from \"./utils/gs1Is.js\";\nexport * from \"./utils/gs1Validation.js\";\n"]}
|
|
@@ -1 +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 {
|
|
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 { EpcisActionTypes } from \"./epcisActionTypes.js\";\nimport type { EpcisBizStepTypes } from \"./epcisBizStepTypes.js\";\nimport type { EpcisDispositionTypes } from \"./epcisDispositionTypes.js\";\nimport type { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisBizTransaction } from \"./IEpcisBizTransaction.js\";\nimport type { IEpcisDestination } from \"./IEpcisDestination.js\";\nimport type { IEpcisEvent } from \"./IEpcisEvent.js\";\nimport type { IEpcisLocation } from \"./IEpcisLocation.js\";\nimport type { IEpcisQuantity } from \"./IEpcisQuantity.js\";\nimport type { IEpcisSensorElement } from \"./IEpcisSensorElement.js\";\nimport type { IEpcisSource } from \"./IEpcisSource.js\";\n\n/**\n * EPCIS 2.0 AggregationEvent describing how child objects are associated with or\n * disassociated from a parent object.\n * @see https://ref.gs1.org/epcis/AggregationEvent\n */\nexport interface IEpcisAggregationEvent extends IEpcisEvent {\n\t/**\n\t * The type.\n\t */\n\ttype: typeof EpcisTypes.AggregationEvent;\n\n\t/**\n\t * (Optional when action is OBSERVE, required otherwise) Identifier of the parent\n\t * of the aggregation or association; use the pure identity URI when the parent is\n\t * an EPC.\n\t */\n\tparentID?: string;\n\n\t/**\n\t * (Optional) Unordered list of contained objects identified at the instance\n\t * level; AggregationEvents normally include childEPCs or childQuantityList unless\n\t * action is DELETE.\n\t */\n\tchildEPCs?: string[];\n\n\t/**\n\t * Unordered list of one or more QuantityElements identifying contained objects\n\t * at the class level; may be empty only with action DELETE when disaggregating\n\t * all children.\n\t */\n\tchildQuantityList?: IEpcisQuantity[];\n\n\t/**\n\t * How this event relates to the lifecycle of the EPCs named in this event.\n\t */\n\taction: EpcisActionTypes;\n\n\t/**\n\t * (Optional) The business step of which this event was a part.\n\t */\n\tbizStep?: EpcisBizStepTypes | string;\n\n\t/**\n\t * (Optional) The business condition of the objects associated with the EPCs,\n\t * presumed to hold true until contradicted by a subsequent event.\n\t */\n\tdisposition?: EpcisDispositionTypes | string;\n\n\t/**\n\t * (Optional) The read point at which the event took place.\n\t */\n\treadPoint?: IEpcisLocation;\n\n\t/**\n\t * (Optional) The business location where the objects associated with the EPCs\n\t * may be found, until contradicted by a subsequent event.\n\t */\n\tbizLocation?: IEpcisLocation;\n\n\t/**\n\t * (Optional) An unordered list of business transactions that define the context\n\t * of this event.\n\t */\n\tbizTransactionList?: IEpcisBizTransaction[];\n\n\t/**\n\t * (Optional) Unordered list of Source elements that provide context about the\n\t * originating endpoint of a business transfer of which this event is a part.\n\t */\n\tsourceList?: IEpcisSource[];\n\n\t/**\n\t * (Optional) Unordered list of Destination elements that provide context about the\n\t * terminating endpoint of a business transfer of which this event is a part.\n\t */\n\tdestinationList?: IEpcisDestination[];\n\n\t/**\n\t * (Optional) Connects event to one or more SensorElements.\n\t */\n\tsensorElementList?: IEpcisSensorElement[];\n}\n"]}
|
|
@@ -1 +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 {
|
|
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 { EpcisActionTypes } from \"./epcisActionTypes.js\";\nimport type { EpcisBizStepTypes } from \"./epcisBizStepTypes.js\";\nimport type { EpcisDispositionTypes } from \"./epcisDispositionTypes.js\";\nimport type { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisBizTransaction } from \"./IEpcisBizTransaction.js\";\nimport type { IEpcisDestination } from \"./IEpcisDestination.js\";\nimport type { IEpcisEvent } from \"./IEpcisEvent.js\";\nimport type { IEpcisLocation } from \"./IEpcisLocation.js\";\nimport type { IEpcisQuantity } from \"./IEpcisQuantity.js\";\nimport type { IEpcisSensorElement } from \"./IEpcisSensorElement.js\";\nimport type { IEpcisSource } from \"./IEpcisSource.js\";\n\n/**\n * EPCIS 2.0 AssociationEvent describing membership relationships between parent\n * and child objects without implying physical containment.\n * @see https://ref.gs1.org/epcis/AssociationEvent\n */\nexport interface IEpcisAssociationEvent extends IEpcisEvent {\n\t/**\n\t * Type.\n\t */\n\ttype: typeof EpcisTypes.AssociationEvent;\n\n\t/**\n\t * Identifier of the parent of the aggregation or association; use the pure\n\t * identity URI when the parent is an EPC.\n\t */\n\tparentID: string;\n\n\t/**\n\t * (Optional) Unordered list of contained objects identified at the instance\n\t * level; AssociationEvents normally include childEPCs or childQuantityList\n\t * unless action is DELETE.\n\t */\n\tchildEPCs?: string[];\n\n\t/**\n\t * Unordered list of one or more QuantityElements identifying contained objects\n\t * at the class level; may be empty only with action DELETE when disassociating\n\t * all children.\n\t */\n\tchildQuantityList?: IEpcisQuantity[];\n\n\t/**\n\t * How this event relates to the lifecycle of the EPCs named in this event.\n\t */\n\taction: EpcisActionTypes;\n\n\t/**\n\t * (Optional) The business step of which this event was a part.\n\t */\n\tbizStep?: EpcisBizStepTypes | string;\n\n\t/**\n\t * (Optional) The business condition of the objects associated with the EPCs,\n\t * presumed to hold true until contradicted by a subsequent event.\n\t */\n\tdisposition?: EpcisDispositionTypes | string;\n\n\t/**\n\t * (Optional) The read point at which the event took place.\n\t */\n\treadPoint?: IEpcisLocation;\n\n\t/**\n\t * (Optional) The business location where the objects associated with the EPCs\n\t * may be found, until contradicted by a subsequent event.\n\t */\n\tbizLocation?: IEpcisLocation;\n\n\t/**\n\t * (Optional) An unordered list of business transactions that define the context\n\t * of this event.\n\t */\n\tbizTransactionList?: IEpcisBizTransaction[];\n\n\t/**\n\t * (Optional) Unordered list of Source elements that provide context about the\n\t * originating endpoint of a business transfer of which this event is a part.\n\t */\n\tsourceList?: IEpcisSource[];\n\n\t/**\n\t * (Optional) Unordered list of Destination elements that provide context about\n\t * the terminating endpoint of a business transfer of which this event is a part.\n\t */\n\tdestinationList?: IEpcisDestination[];\n\n\t/**\n\t * (Optional) Connects event to one or more SensorElements.\n\t */\n\tsensorElementList?: IEpcisSensorElement[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisAttribute.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisAttribute.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject, IJsonLdNodePrimitive } from \"@twin.org/data-json-ld\";\n\n/**\n * EPCIS 2.0 Vocabulary Attribute describing metadata on vocabulary elements.\n * @see https://ref.gs1.org/epcis/Attribute\n */\nexport interface IEpcisAttribute extends IJsonLdNodeObject {\n\t/**\n\t * Attribute id.\n\t */\n\tid: string;\n\n\t/**\n\t * Attribute value.\n\t */\n\tattribute?: IJsonLdNodePrimitive;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisBizTransaction.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisBizTransaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEpcisBizTransaction.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisBizTransaction.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisBizTransactionTypes } from \"./epcisBizTransactionTypes.js\";\n\n/**\n * EPCIS 2.0 BizTransaction element identifying a business document and its type.\n * @see https://ref.gs1.org/epcis/BizTransaction\n */\nexport interface IEpcisBizTransaction extends IJsonLdNodeObject {\n\t/**\n\t * Identifier that indicates the type of BizTransaction document (e.g. Purchase\n\t * Order, Despatch Advice).\n\t *\n\t * Use {@link EpcisBizTransactionTypes} for known values.\n\t */\n\ttype?: EpcisBizTransactionTypes | string;\n\n\t/**\n\t * URI identifier of the specific business transaction document (alias of id in\n\t * JSON or XML).\n\t */\n\tbizTransaction: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisDestination.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisDestination.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEpcisDestination.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisDestination.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisSourceDestTypes } from \"./epcisSourceDestTypes.js\";\n\n/**\n * EPCIS 2.0 Destination element identifying the terminating endpoint of a\n * business transfer.\n * @see https://ref.gs1.org/epcis/SourceOrDestination\n */\nexport interface IEpcisDestination extends IJsonLdNodeObject {\n\t/**\n\t * Identifier indicating the role of SourceOrDestination in a transfer (Owning\n\t * Party, Possessing Party, or Location).\n\t *\n\t * Use {@link EpcisSourceDestTypes} for known values.\n\t */\n\ttype: EpcisSourceDestTypes | string;\n\n\t/**\n\t * Identifier that denotes the specific source or destination of a business\n\t * transfer; must correlate with the selected type.\n\t */\n\tdestination: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisDocument.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisDocument.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IEpcisDocument.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisDocument.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisContextType } from \"./epcisContextType.js\";\nimport type { EpcisEvents } from \"./epcisEvents.js\";\nimport type { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisHeader } from \"./IEpcisHeader.js\";\n\n/**\n * EPCIS 2.0 capture document containing header metadata and an event list.\n * @see https://ref.gs1.org/epcis/EPCISDocument\n */\nexport interface IEpcisDocument extends IJsonLdNodeObject {\n\t/**\n\t * The @context.\n\t */\n\t\"@context\": EpcisContextType;\n\n\t/**\n\t * The JSON-LD document id.\n\t */\n\tid?: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof EpcisTypes.EPCISDocument;\n\n\t/**\n\t * Schema version.\n\t */\n\tschemaVersion: string;\n\n\t/**\n\t * Creation Date.\n\t */\n\tcreationDate: string;\n\n\t/**\n\t * (Optional) The instance identifier of an EPCISDocument.\n\t */\n\tinstanceIdentifier?: string;\n\n\t/**\n\t * (Optional) The sender of an EPCISDocument.\n\t */\n\tsender?: string;\n\n\t/**\n\t * (Optional) The intended receiver of an EPCISDocument.\n\t */\n\treceiver?: string;\n\n\t/**\n\t * EPCIS Header.\n\t */\n\tepcisHeader?: IEpcisHeader;\n\n\t/**\n\t * The EPCIS Body.\n\t */\n\tepcisBody: {\n\t\t/**\n\t\t * The list of events.\n\t\t */\n\t\teventList: EpcisEvents[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisErrorDeclaration.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisErrorDeclaration.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisErrorReasonTypes } from \"./epcisErrorReasonTypes.js\";\n\n/**\n * EPCIS 2.0 ErrorDeclaration describing corrections to previously captured\n * events.\n * @see https://ref.gs1.org/epcis/ErrorDeclaration\n */\nexport interface IEpcisErrorDeclaration extends IJsonLdNodeObject {\n\t/**\n\t * The date and time at which the declaration of error is made.\n\t */\n\tdeclarationTime: string;\n\n\t/**\n\t * Reason for the error.\n\t *\n\t * Use {@link EpcisErrorReasonTypes} for known values.\n\t */\n\treason?: EpcisErrorReasonTypes | string;\n\n\t/**\n\t * (Optional) If present, indicates that the events having the specified URIs as\n\t * the value of their eventID fields are to be considered as \"corrections\" to\n\t * the event declared erroneous by this event.\n\t */\n\tcorrectiveEventIDs?: 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 {
|
|
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 { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisContextType } from \"./epcisContextType.js\";\nimport type { IEpcisErrorDeclaration } from \"./IEpcisErrorDeclaration.js\";\n\n/**\n * Base EPCIS 2.0 Event carrying shared fields across all event types.\n * @see https://ref.gs1.org/epcis/Event\n */\nexport interface IEpcisEvent extends IJsonLdNodeObject {\n\t/**\n\t * JSON-LD @context.\n\t */\n\t\"@context\": EpcisContextType;\n\n\t/**\n\t * Type of Event.\n\t */\n\ttype: string;\n\n\t/**\n\t * URI identifier of a specific EPCIS event (alias of id in JSON or XML).\n\t */\n\teventID?: string;\n\n\t/**\n\t * (Optional) CertificationDetails relevant for Objects, Places and/or\n\t * Organizations mentioned in this Event.\n\t */\n\tcertificationInfo?: string | string[];\n\n\t/**\n\t * Error declaration.\n\t */\n\terrorDeclaration?: IEpcisErrorDeclaration;\n\n\t/**\n\t * The date and time at which the EPCIS Capturing Applications asserts the event\n\t * occurred.\n\t */\n\teventTime: string;\n\n\t/**\n\t * The time zone offset in effect at the time and place the event occurred,\n\t * expressed as an offset from UTC.\n\t */\n\teventTimeZoneOffset: string;\n\n\t/**\n\t * (Optional) The date and time at which this event was recorded by an EPCIS\n\t * Repository; ignored at capture and present on query results.\n\t */\n\trecordTime?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisHeader.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisHeader.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IEpcisVocabulary } from \"./IEpcisVocabulary.js\";\n\n/**\n * EPCIS 2.0 Header carrying optional master data alongside an EPCIS document.\n * @see https://ref.gs1.org/epcis/EPCISHeader\n */\nexport interface IEpcisHeader extends IJsonLdNodeObject {\n\t/**\n\t * EPCIS master data.\n\t */\n\tepcisMasterData?: IJsonLdNodeObject & {\n\t\t/**\n\t\t * Vocabulary list.\n\t\t */\n\t\tvocabularyList?: IEpcisVocabulary[];\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisIlmd.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisIlmd.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * EPCIS 2.0 Instance/Lot Master Data (ILMD) container for event-level master\n * data extensions.\n * @see https://ref.gs1.org/epcis/ILMD\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface IEpcisIlmd extends IJsonLdNodeObject {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisLocation.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisLocation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * EPCIS 2.0 Location reference (readPoint/bizLocation) that wraps a location\n * identifier.\n * @see https://ref.gs1.org/epcis/ReadPoint\n */\nexport interface IEpcisLocation extends IJsonLdNodeObject {\n\t/**\n\t * The location identifier (URI/IRI per EPCIS schema and SHACL).\n\t */\n\tid: string;\n}\n"]}
|
|
@@ -1 +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 {
|
|
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 { EpcisActionTypes } from \"./epcisActionTypes.js\";\nimport type { EpcisBizStepTypes } from \"./epcisBizStepTypes.js\";\nimport type { EpcisDispositionTypes } from \"./epcisDispositionTypes.js\";\nimport type { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisBizTransaction } from \"./IEpcisBizTransaction.js\";\nimport type { IEpcisDestination } from \"./IEpcisDestination.js\";\nimport type { IEpcisEvent } from \"./IEpcisEvent.js\";\nimport type { IEpcisIlmd } from \"./IEpcisIlmd.js\";\nimport type { IEpcisLocation } from \"./IEpcisLocation.js\";\nimport type { IEpcisPersistentDisposition } from \"./IEpcisPersistentDisposition.js\";\nimport type { IEpcisQuantity } from \"./IEpcisQuantity.js\";\nimport type { IEpcisSensorElement } from \"./IEpcisSensorElement.js\";\nimport type { IEpcisSource } from \"./IEpcisSource.js\";\n\n/**\n * EPCIS 2.0 ObjectEvent describing one or more objects (instance- or class-level)\n * observed at a point in the business process.\n *\n * @see https://ref.gs1.org/epcis/ObjectEvent\n */\nexport interface IEpcisObjectEvent extends IEpcisEvent {\n\t/**\n\t * Fixed to ObjectEvent.\n\t */\n\ttype: typeof EpcisTypes.ObjectEvent;\n\n\t/**\n\t * (Optional) Unordered list of one or more EPCs naming specific objects to which\n\t * the event pertained.\n\t */\n\tepcList?: string[];\n\n\t/**\n\t * Unordered list of one or more QuantityElements identifying contained objects at\n\t * the class level.\n\t */\n\tquantityList?: IEpcisQuantity[];\n\n\t/**\n\t * How this event relates to the lifecycle of the EPCs named in this event.\n\t */\n\taction: EpcisActionTypes;\n\n\t/**\n\t * (Optional) The business step of which this event was a part.\n\t */\n\tbizStep?: EpcisBizStepTypes | string;\n\n\t/**\n\t * (Optional) The business condition of the objects associated with the EPCs,\n\t * presumed to hold true until contradicted by a subsequent event.\n\t */\n\tdisposition?: EpcisDispositionTypes | string;\n\n\t/**\n\t * Persistent disposition.\n\t */\n\tpersistentDisposition?: IEpcisPersistentDisposition;\n\n\t/**\n\t * (Optional) The read point at which the event took place.\n\t */\n\treadPoint?: IEpcisLocation;\n\n\t/**\n\t * (Optional) The business location where the objects associated with the EPCs may\n\t * be found, until contradicted by a subsequent event.\n\t */\n\tbizLocation?: IEpcisLocation;\n\n\t/**\n\t * (Optional) Unordered list of business transactions that define the context of\n\t * this event.\n\t */\n\tbizTransactionList?: IEpcisBizTransaction[];\n\n\t/**\n\t * (Optional) Unordered list of Source elements that provide context about the\n\t * originating endpoint of a business transfer of which this event is a part.\n\t */\n\tsourceList?: IEpcisSource[];\n\n\t/**\n\t * (Optional) Unordered list of Destination elements that provide context about the\n\t * terminating endpoint of a business transfer of which this event is a part.\n\t */\n\tdestinationList?: IEpcisDestination[];\n\n\t/**\n\t * (Optional) Connects event to one or more SensorElements.\n\t */\n\tsensorElementList?: IEpcisSensorElement[];\n\n\t/**\n\t * (Optional) Instance/Lot master data that describes the objects created during\n\t * this event.\n\t */\n\tilmd?: IEpcisIlmd;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisPersistentDisposition.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisPersistentDisposition.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisDispositionTypes } from \"./epcisDispositionTypes.js\";\n\n/**\n * EPCIS 2.0 PersistentDisposition indicating business conditions to set or unset\n * independently of event disposition.\n * @see https://ref.gs1.org/epcis/PersistentDisposition\n */\nexport interface IEpcisPersistentDisposition extends IJsonLdNodeObject {\n\t/**\n\t * (Optional) List of persistentDisposition URI values to be set.\n\t */\n\tset?: (EpcisDispositionTypes | string)[];\n\n\t/**\n\t * (Optional) List of persistentDisposition URI values to be unset (revoked).\n\t */\n\tunset?: (EpcisDispositionTypes | string)[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisQuantity.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQuantity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEpcisQuantity.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQuantity.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * EPCIS 2.0 QuantityElement defining class-level identifiers and amounts.\n * @see https://ref.gs1.org/epcis/QuantityElement\n */\nexport interface IEpcisQuantity extends IJsonLdNodeObject {\n\t/**\n\t * A class-level identifier for the class to which the specified quantity of\n\t * objects belongs.\n\t */\n\tepcClass: string;\n\n\t/**\n\t * (Optional) A number that specifies how many or how much of the specified\n\t * EPCClass is denoted by this QuantityElement.\n\t */\n\tquantity?: number;\n\n\t/**\n\t * (Optional) Unit of measure by which the specified value(s) of the property\n\t * specified by type should be interpreted.\n\t */\n\tuom?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisQuery.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQuery.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS Query
|
|
1
|
+
{"version":3,"file":"IEpcisQuery.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQuery.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * EPCIS 2.0 Query key/value parameter map used in query documents.\n * @see https://ref.gs1.org/epcis/Query\n */\nexport interface IEpcisQuery {\n\t[key: string]: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisQueryDocument.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQueryDocument.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type {
|
|
1
|
+
{"version":3,"file":"IEpcisQueryDocument.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQueryDocument.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisContextType } from \"./epcisContextType.js\";\nimport type { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisQueryDocumentBody } from \"./IEpcisQueryDocumentBody.js\";\n\n/**\n * EPCIS 2.0 QueryDocument used to submit queries to an EPCIS repository.\n * @see https://ref.gs1.org/epcis/EPCISQueryDocument\n */\nexport interface IEpcisQueryDocument extends IJsonLdNodeObject {\n\t/**\n\t * The @context.\n\t */\n\t\"@context\": EpcisContextType;\n\n\t/**\n\t * The JSON-LD document id.\n\t */\n\tid?: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof EpcisTypes.EPCISQueryDocument;\n\n\t/**\n\t * Schema version.\n\t */\n\tschemaVersion?: string;\n\n\t/**\n\t * Creation Date.\n\t */\n\tcreationDate?: string;\n\n\t/**\n\t * The EPCIS Body.\n\t */\n\tepcisBody: IEpcisQueryDocumentBody;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisQueryDocumentBody.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQueryDocumentBody.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IEpcisQueryResults } from \"./IEpcisQueryResults.js\";\n\n/**\n * EPCIS 2.0 QueryDocumentBody wrapper that carries query results.\n * @see https://ref.gs1.org/epcis/QueryDocumentBody\n */\nexport interface IEpcisQueryDocumentBody extends IJsonLdNodeObject {\n\t/**\n\t * The results of the query.\n\t */\n\tqueryResults: IEpcisQueryResults;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisQueryResults.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQueryResults.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IEpcisQueryResultsBody } from \"./IEpcisQueryResultsBody.js\";\n\n/**\n * EPCIS 2.0 QueryResults payload returned from a repository query.\n * @see https://ref.gs1.org/epcis/QueryResults\n */\nexport interface IEpcisQueryResults extends IJsonLdNodeObject {\n\t/**\n\t * The concerned subscription.\n\t */\n\tsubscriptionID?: string;\n\n\t/**\n\t * The concerned query.\n\t */\n\tqueryName: string;\n\n\t/**\n\t * The query results payload.\n\t */\n\tresultsBody: IEpcisQueryResultsBody;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisQueryResultsBody.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisQueryResultsBody.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisEvents } from \"./epcisEvents.js\";\nimport type { IEpcisVocabulary } from \"./IEpcisVocabulary.js\";\n\n/**\n * EPCIS 2.0 QueryResultsBody containing events and optional master data.\n * @see https://ref.gs1.org/epcis/QueryResultsBody\n */\nexport interface IEpcisQueryResultsBody extends IJsonLdNodeObject {\n\t/**\n\t * The list of events.\n\t */\n\teventList: EpcisEvents[];\n\n\t/**\n\t * Optional master data.\n\t */\n\tvocabularyList?: IEpcisVocabulary[];\n}\n"]}
|
|
@@ -1 +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 {
|
|
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 { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IEpcisSensorMetadata } from \"./IEpcisSensorMetadata.js\";\nimport type { IEpcisSensorReport } from \"./IEpcisSensorReport.js\";\n\n/**\n * EPCIS 2.0 SensorElement grouping metadata and one or more SensorReport\n * entries.\n * @see https://ref.gs1.org/epcis/SensorElement\n */\nexport interface IEpcisSensorElement extends IJsonLdNodeObject {\n\t/**\n\t * (Optional) Element containing metadata attributes applicable to all\n\t * sensorReport entries within this sensorElement.\n\t */\n\tsensorMetadata?: IEpcisSensorMetadata;\n\n\t/**\n\t * An element containing one or several attributes that pertain to a specific\n\t * sensor observation.\n\t */\n\tsensorReport: IEpcisSensorReport[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisSensorMetadata.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorMetadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEpcisSensorMetadata.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorMetadata.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\n\n/**\n * EPCIS 2.0 SensorMetadata describing timing, device, and processing details for\n * sensor observations.\n * @see https://ref.gs1.org/epcis/SensorMetadata\n */\nexport interface IEpcisSensorMetadata extends IJsonLdNodeObject {\n\t/**\n\t * (Optional) The actual point in time of an observation as transmitted by a\n\t * sensor device.\n\t */\n\ttime?: string;\n\n\t/**\n\t * (Optional) Device from which the sensor data originates.\n\t */\n\tdeviceID?: string;\n\n\t/**\n\t * (Optional) Storage location of an electronic document accommodating metadata\n\t * of the device from which the sensor data originates.\n\t */\n\tdeviceMetadata?: string;\n\n\t/**\n\t * (Optional) Storage/service location of the raw sensor data on which the\n\t * aggregated/business-oriented data contained in the sensorElement is based.\n\t */\n\trawData?: string;\n\n\t/**\n\t * (Optional) The lowest (earliest) value of a given observation period as\n\t * transmitted by a sensor device.\n\t */\n\tstartTime?: string;\n\n\t/**\n\t * (Optional) The highest (most recent) value of a given observation period, as\n\t * transmitted by a sensor device.\n\t */\n\tendTime?: string;\n\n\t/**\n\t * (Optional) Storage location of an electronic document accommodating the data\n\t * processing method of the contained sensor data, if applicable.\n\t */\n\tdataProcessingMethod?: string;\n\n\t/**\n\t * (Optional) Storage location of an electronic document accommodating product- or\n\t * application-specific business rules on which basis the EPCIS event was\n\t * triggered.\n\t */\n\tbizRules?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisSensorReport.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorReport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEpcisSensorReport.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSensorReport.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisComponentTypes } from \"./epcisComponentTypes.js\";\nimport type { EpcisMeasurementTypes } from \"./epcisMeasurementTypes.js\";\nimport type { EpcisSensorAlertTypes } from \"./epcisSensorAlertTypes.js\";\n\n/**\n * EPCIS 2.0 SensorReport containing measurement values and related sensor\n * observation details.\n * @see https://ref.gs1.org/epcis/SensorReport\n */\nexport interface IEpcisSensorReport extends IJsonLdNodeObject {\n\t/**\n\t * Identifier indicating what kind of measurement the SensorReport pertains to\n\t * (e.g. Length, Mass, Temperature).\n\t *\n\t * Use {@link EpcisMeasurementTypes} for known values.\n\t */\n\ttype: EpcisMeasurementTypes | string;\n\n\t/**\n\t * A sensor alert value (alarm condition or error condition); extra details may\n\t * be provided via booleanValue or uriValue.\n\t *\n\t * Use {@link EpcisSensorAlertTypes} for known values.\n\t */\n\texception?: EpcisSensorAlertTypes | string;\n\n\t/**\n\t * (Optional) Device from which the sensor data originates.\n\t */\n\tdeviceID?: string;\n\n\t/**\n\t * (Optional) Storage location of an electronic document accommodating metadata\n\t * of the device from which the sensor data originates.\n\t */\n\tdeviceMetadata?: string;\n\n\t/**\n\t * (Optional) Storage/service location of the raw sensor data on which the\n\t * aggregated/business-oriented data contained in the sensorElement is based.\n\t */\n\trawData?: string;\n\n\t/**\n\t * (Optional) Storage location of an electronic document accommodating the data\n\t * processing method of the contained sensor data, if applicable.\n\t */\n\tdataProcessingMethod?: string;\n\n\t/**\n\t * (Optional) Storage location of an electronic document accommodating product- or\n\t * application-specific business rules on which basis the EPCIS event was\n\t * triggered.\n\t */\n\tbizRules?: string;\n\n\t/**\n\t * (Optional) The actual point in time of an observation as transmitted by a\n\t * sensor device.\n\t */\n\ttime?: string;\n\n\t/**\n\t * (Optional) Identifies a specific microorganism species; SHALL NOT be present\n\t * if chemicalSubstance is included.\n\t */\n\tmicroorganism?: string;\n\n\t/**\n\t * (Optional) Identifies a specific chemical substance; SHALL NOT be present\n\t * together with microorganism.\n\t */\n\tchemicalSubstance?: string;\n\n\t/**\n\t * (Optional) A URI identifying the Coordinate Reference System; if omitted,\n\t * WGS-84 is assumed.\n\t */\n\tcoordinateReferenceSystem?: string;\n\n\t/**\n\t * (Optional) Value of the property specified by the type; if a time field is\n\t * present, it pertains to that time, otherwise to the eventTime.\n\t */\n\tvalue?: number;\n\n\t/**\n\t * (Optional) Vector component identifier for measurements with magnitude and\n\t * direction (e.g. force, pressure); repeat SensorReport per component.\n\t */\n\tcomponent?: EpcisComponentTypes | string;\n\n\t/**\n\t * (Optional) The String value of the property specified by the type as part of\n\t * the sensorReport element.\n\t */\n\tstringValue?: string;\n\n\t/**\n\t * (Optional) Similar to stringValue, for Boolean value.\n\t */\n\tbooleanValue?: boolean;\n\n\t/**\n\t * (Optional) Similar to stringValue, for HexBinary value.\n\t */\n\thexBinaryValue?: string;\n\n\t/**\n\t * (Optional) Similar to stringValue, for a URI value.\n\t */\n\turiValue?: string;\n\n\t/**\n\t * (Optional) Minimum quantitative value of the property specified by type, as\n\t * part of the sensorReport element.\n\t */\n\tminValue?: number;\n\n\t/**\n\t * (Optional) Similar to minValue, for the maximum quantitative value.\n\t */\n\tmaxValue?: number;\n\n\t/**\n\t * (Optional) The arithmetic mean of the values of the property specified by the\n\t * type as part of the sensorReport element.\n\t */\n\tmeanValue?: number;\n\n\t/**\n\t * (Optional) Standard deviation of the values of the property specified by type,\n\t * as part of the sensorReport element.\n\t */\n\tsDev?: number;\n\n\t/**\n\t * (Optional) Percentile rank, signifying the percentage of observations in a\n\t * frequency distribution that are equal to or lower than it.\n\t */\n\tpercRank?: number;\n\n\t/**\n\t * (Optional) The percentile value, at or below which a given percentage of\n\t * observations may be found.\n\t */\n\tpercValue?: number;\n\n\t/**\n\t * (Optional) Unit of measure by which the specified value(s) of the property\n\t * specified by type should be interpreted.\n\t */\n\tuom?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEpcisSource.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IEpcisSource.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisSource.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { EpcisSourceDestTypes } from \"./epcisSourceDestTypes.js\";\n\n/**\n * EPCIS 2.0 Source element identifying the origin of a business transfer.\n * @see https://ref.gs1.org/epcis/SourceOrDestination\n */\nexport interface IEpcisSource extends IJsonLdNodeObject {\n\t/**\n\t * Identifier indicating the role of SourceOrDestination in a transfer (Owning\n\t * Party, Possessing Party, or Location).\n\t *\n\t * Use {@link EpcisSourceDestTypes} for known values.\n\t */\n\ttype: EpcisSourceDestTypes | string;\n\n\t/**\n\t * Identifier that denotes the specific source or destination of a business\n\t * transfer; must correlate with the selected type.\n\t */\n\tsource: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisTransactionEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisTransactionEvent.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 { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisBizTransaction } from \"./IEpcisBizTransaction.js\";\nimport type { IEpcisDestination } from \"./IEpcisDestination.js\";\nimport type { IEpcisEvent } from \"./IEpcisEvent.js\";\nimport type { IEpcisLocation } from \"./IEpcisLocation.js\";\nimport type { IEpcisQuantity } from \"./IEpcisQuantity.js\";\nimport type { IEpcisSensorElement } from \"./IEpcisSensorElement.js\";\nimport type { IEpcisSource } from \"./IEpcisSource.js\";\n\n/**\n * EPCIS 2.0 TransactionEvent relating objects or quantities to one or more\n * business transactions, optionally with a parent identifier.\n * @see https://ref.gs1.org/epcis/TransactionEvent\n */\nexport interface IEpcisTransactionEvent extends IEpcisEvent {\n\t/**\n\t * Fixed to TransactionEvent.\n\t */\n\ttype: typeof EpcisTypes.TransactionEvent;\n\n\t/**\n\t * Business transaction list (required by schema).\n\t */\n\tbizTransactionList: IEpcisBizTransaction[];\n\n\t/**\n\t * (Optional when action is OBSERVE, required otherwise) Identifier of the parent\n\t * of the aggregation or association; use the pure identity URI when the parent is\n\t * an EPC.\n\t */\n\tparentID?: string;\n\n\t/**\n\t * (Optional) An unordered list of one or more EPCs naming specific objects to\n\t * which the event pertained.\n\t */\n\tepcList?: string[];\n\n\t/**\n\t * An unordered list of one or more QuantityElements identifying (at the class\n\t * level) contained objects.\n\t */\n\tquantityList?: IEpcisQuantity[];\n\n\t/**\n\t * How this event relates to the lifecycle of the EPCs named in this event.\n\t */\n\taction: EpcisActionTypes;\n\n\t/**\n\t * (Optional) The business step of which this event was a part.\n\t */\n\tbizStep?: EpcisBizStepTypes | string;\n\n\t/**\n\t * (Optional) The business condition of the objects associated with the EPCs,\n\t * presumed to hold true until contradicted by a subsequent event.\n\t */\n\tdisposition?: EpcisDispositionTypes | string;\n\n\t/**\n\t * (Optional) The read point at which the event took place.\n\t */\n\treadPoint?: IEpcisLocation;\n\n\t/**\n\t * (Optional) The business location where the objects associated with the EPCs\n\t * may be found, until contradicted by a subsequent event.\n\t */\n\tbizLocation?: IEpcisLocation;\n\n\t/**\n\t * (Optional) Unordered list of Source elements that provide context about the\n\t * originating endpoint of a business transfer of which this event is a part.\n\t */\n\tsourceList?: IEpcisSource[];\n\n\t/**\n\t * (Optional) Unordered list of Destination elements that provide context about the\n\t * terminating endpoint of a business transfer of which this event is a part.\n\t */\n\tdestinationList?: IEpcisDestination[];\n\n\t/**\n\t * (Optional) Connects event to one or more SensorElements.\n\t */\n\tsensorElementList?: IEpcisSensorElement[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisTransformationEvent.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisTransformationEvent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { EpcisBizStepTypes } from \"./epcisBizStepTypes.js\";\nimport type { EpcisDispositionTypes } from \"./epcisDispositionTypes.js\";\nimport type { EpcisTypes } from \"./epcisTypes.js\";\nimport type { IEpcisBizTransaction } from \"./IEpcisBizTransaction.js\";\nimport type { IEpcisDestination } from \"./IEpcisDestination.js\";\nimport type { IEpcisEvent } from \"./IEpcisEvent.js\";\nimport type { IEpcisIlmd } from \"./IEpcisIlmd.js\";\nimport type { IEpcisLocation } from \"./IEpcisLocation.js\";\nimport type { IEpcisPersistentDisposition } from \"./IEpcisPersistentDisposition.js\";\nimport type { IEpcisQuantity } from \"./IEpcisQuantity.js\";\nimport type { IEpcisSensorElement } from \"./IEpcisSensorElement.js\";\nimport type { IEpcisSource } from \"./IEpcisSource.js\";\n\n/**\n * EPCIS 2.0 TransformationEvent describing how inputs are transformed into\n * outputs during a business process.\n * @see https://ref.gs1.org/epcis/TransformationEvent\n */\nexport interface IEpcisTransformationEvent extends IEpcisEvent {\n\t/**\n\t * Fixed to TransformationEvent.\n\t */\n\ttype: typeof EpcisTypes.TransformationEvent;\n\n\t/**\n\t * (Optional) Unordered list of one or more EPCs identifying (at the instance\n\t * level) objects that were inputs to the transformation.\n\t */\n\tinputEPCList?: string[];\n\n\t/**\n\t * (Optional) Unordered list of one or more QuantityElements identifying\n\t * class-level inputs; may be omitted subject to the EPCIS quantity-list\n\t * constraints.\n\t */\n\tinputQuantityList?: IEpcisQuantity[];\n\n\t/**\n\t * (Optional) Unordered list of one or more EPCs naming (at the instance level)\n\t * objects that were outputs from the transformation.\n\t */\n\toutputEPCList?: string[];\n\n\t/**\n\t * (Optional) Unordered list of one or more QuantityElements identifying\n\t * class-level outputs; may be omitted subject to the EPCIS quantity-list\n\t * constraints.\n\t */\n\toutputQuantityList?: IEpcisQuantity[];\n\n\t/**\n\t * A unique identifier linking TransformationEvents; shared values connect inputs\n\t * and outputs across those events.\n\t */\n\ttransformationID?: string;\n\n\t/**\n\t * (Optional) The business step of which this event was a part.\n\t */\n\tbizStep?: EpcisBizStepTypes | string;\n\n\t/**\n\t * (Optional) The business condition of the objects associated with the EPCs,\n\t * presumed to hold true until contradicted by a subsequent event.\n\t */\n\tdisposition?: EpcisDispositionTypes | string;\n\n\t/**\n\t * Persistent disposition.\n\t */\n\tpersistentDisposition?: IEpcisPersistentDisposition;\n\n\t/**\n\t * (Optional) The read point at which the event took place.\n\t */\n\treadPoint?: IEpcisLocation;\n\n\t/**\n\t * (Optional) The business location where the objects associated with the EPCs\n\t * may be found, until contradicted by a subsequent event.\n\t */\n\tbizLocation?: IEpcisLocation;\n\n\t/**\n\t * An unordered list of business transactions that define the context of this\n\t * event.\n\t */\n\tbizTransactionList?: IEpcisBizTransaction[];\n\n\t/**\n\t * (Optional) Unordered list of Source elements that provide context about the\n\t * originating endpoint of a business transfer of which this event is a part.\n\t */\n\tsourceList?: IEpcisSource[];\n\n\t/**\n\t * (Optional) Unordered list of Destination elements that provide context about\n\t * the terminating endpoint of a business transfer of which this event is a part.\n\t */\n\tdestinationList?: IEpcisDestination[];\n\n\t/**\n\t * (Optional) Connects event to one or more SensorElements.\n\t */\n\tsensorElementList?: IEpcisSensorElement[];\n\n\t/**\n\t * (Optional) Instance/Lot master data that describes the objects created during\n\t * this event.\n\t */\n\tilmd?: IEpcisIlmd;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisVocabulary.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisVocabulary.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IEpcisVocabularyElement } from \"./IEpcisVocabularyElement.js\";\n\n/**\n * EPCIS 2.0 Vocabulary container that groups related vocabulary elements.\n * @see https://ref.gs1.org/epcis/Vocabulary\n */\nexport interface IEpcisVocabulary extends IJsonLdNodeObject {\n\t/**\n\t * Vocabulary type.\n\t */\n\ttype: string;\n\n\t/**\n\t * List of vocabulary elements.\n\t */\n\tvocabularyElementList?: IEpcisVocabularyElement[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEpcisVocabularyElement.js","sourceRoot":"","sources":["../../../../src/models/epcis20/IEpcisVocabularyElement.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IEpcisAttribute } from \"./IEpcisAttribute.js\";\n\n/**\n * EPCIS 2.0 VocabularyElement representing a master data entity with\n * attributes and optional children.\n * @see https://ref.gs1.org/epcis/VocabularyElement\n */\nexport interface IEpcisVocabularyElement extends IJsonLdNodeObject {\n\t/**\n\t * Element id.\n\t */\n\tid: string;\n\n\t/**\n\t * Attributes.\n\t */\n\tattributes?: IEpcisAttribute[];\n\n\t/**\n\t * Children.\n\t */\n\tchildren?: string[];\n}\n"]}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
// Copyright 2024 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
/**
|
|
4
|
-
* EPCIS 2.0 action
|
|
4
|
+
* GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or
|
|
5
|
+
* removes associations.
|
|
5
6
|
*/
|
|
6
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
8
|
export const EpcisActionTypes = {
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Indicates that associations described by the event are created as of
|
|
11
|
+
* eventTime.
|
|
10
12
|
*/
|
|
11
13
|
Add: "ADD",
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Reports an observation of existing associations without changing them.
|
|
14
16
|
*/
|
|
15
17
|
Observe: "OBSERVE",
|
|
16
18
|
/**
|
|
17
|
-
*
|
|
19
|
+
* Indicates that associations described by the event no longer hold as of
|
|
20
|
+
* eventTime.
|
|
18
21
|
*/
|
|
19
22
|
Delete: "DELETE"
|
|
20
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epcisActionTypes.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisActionTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC
|
|
1
|
+
{"version":3,"file":"epcisActionTypes.js","sourceRoot":"","sources":["../../../../src/models/epcis20/epcisActionTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B;;;OAGG;IACH,GAAG,EAAE,KAAK;IAEV;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;;OAGG;IACH,MAAM,EAAE,QAAQ;CACP,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or\n * removes associations.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const EpcisActionTypes = {\n\t/**\n\t * Indicates that associations described by the event are created as of\n\t * eventTime.\n\t */\n\tAdd: \"ADD\",\n\n\t/**\n\t * Reports an observation of existing associations without changing them.\n\t */\n\tObserve: \"OBSERVE\",\n\n\t/**\n\t * Indicates that associations described by the event no longer hold as of\n\t * eventTime.\n\t */\n\tDelete: \"DELETE\"\n} as const;\n\n/**\n * GS1 EPCIS 2.0 action values capturing whether an event adds, observes, or\n * removes associations.\n */\nexport type EpcisActionTypes = (typeof EpcisActionTypes)[keyof typeof EpcisActionTypes];\n"]}
|