@twin.org/standards-gs1 0.0.3-next.10 → 0.0.3-next.12
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 +15 -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
|
@@ -1,10 +1,81 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EpcisActionTypes } from "./epcisActionTypes.js";
|
|
2
|
+
import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
|
|
3
|
+
import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
|
|
4
|
+
import type { EpcisTypes } from "./epcisTypes.js";
|
|
5
|
+
import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
|
|
6
|
+
import type { IEpcisDestination } from "./IEpcisDestination.js";
|
|
7
|
+
import type { IEpcisEvent } from "./IEpcisEvent.js";
|
|
8
|
+
import type { IEpcisLocation } from "./IEpcisLocation.js";
|
|
9
|
+
import type { IEpcisQuantity } from "./IEpcisQuantity.js";
|
|
10
|
+
import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
|
|
11
|
+
import type { IEpcisSource } from "./IEpcisSource.js";
|
|
2
12
|
/**
|
|
3
|
-
*
|
|
13
|
+
* EPCIS 2.0 AggregationEvent describing how child objects are associated with or
|
|
14
|
+
* disassociated from a parent object.
|
|
15
|
+
* @see https://ref.gs1.org/epcis/AggregationEvent
|
|
4
16
|
*/
|
|
5
|
-
export interface
|
|
17
|
+
export interface IEpcisAggregationEvent extends IEpcisEvent {
|
|
6
18
|
/**
|
|
7
19
|
* The type.
|
|
8
20
|
*/
|
|
9
|
-
type:
|
|
21
|
+
type: typeof EpcisTypes.AggregationEvent;
|
|
22
|
+
/**
|
|
23
|
+
* (Optional when action is OBSERVE, required otherwise) Identifier of the parent
|
|
24
|
+
* of the aggregation or association; use the pure identity URI when the parent is
|
|
25
|
+
* an EPC.
|
|
26
|
+
*/
|
|
27
|
+
parentID?: string;
|
|
28
|
+
/**
|
|
29
|
+
* (Optional) Unordered list of contained objects identified at the instance
|
|
30
|
+
* level; AggregationEvents normally include childEPCs or childQuantityList unless
|
|
31
|
+
* action is DELETE.
|
|
32
|
+
*/
|
|
33
|
+
childEPCs?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* Unordered list of one or more QuantityElements identifying contained objects
|
|
36
|
+
* at the class level; may be empty only with action DELETE when disaggregating
|
|
37
|
+
* all children.
|
|
38
|
+
*/
|
|
39
|
+
childQuantityList?: IEpcisQuantity[];
|
|
40
|
+
/**
|
|
41
|
+
* How this event relates to the lifecycle of the EPCs named in this event.
|
|
42
|
+
*/
|
|
43
|
+
action: EpcisActionTypes;
|
|
44
|
+
/**
|
|
45
|
+
* (Optional) The business step of which this event was a part.
|
|
46
|
+
*/
|
|
47
|
+
bizStep?: EpcisBizStepTypes | string;
|
|
48
|
+
/**
|
|
49
|
+
* (Optional) The business condition of the objects associated with the EPCs,
|
|
50
|
+
* presumed to hold true until contradicted by a subsequent event.
|
|
51
|
+
*/
|
|
52
|
+
disposition?: EpcisDispositionTypes | string;
|
|
53
|
+
/**
|
|
54
|
+
* (Optional) The read point at which the event took place.
|
|
55
|
+
*/
|
|
56
|
+
readPoint?: IEpcisLocation;
|
|
57
|
+
/**
|
|
58
|
+
* (Optional) The business location where the objects associated with the EPCs
|
|
59
|
+
* may be found, until contradicted by a subsequent event.
|
|
60
|
+
*/
|
|
61
|
+
bizLocation?: IEpcisLocation;
|
|
62
|
+
/**
|
|
63
|
+
* (Optional) An unordered list of business transactions that define the context
|
|
64
|
+
* of this event.
|
|
65
|
+
*/
|
|
66
|
+
bizTransactionList?: IEpcisBizTransaction[];
|
|
67
|
+
/**
|
|
68
|
+
* (Optional) Unordered list of Source elements that provide context about the
|
|
69
|
+
* originating endpoint of a business transfer of which this event is a part.
|
|
70
|
+
*/
|
|
71
|
+
sourceList?: IEpcisSource[];
|
|
72
|
+
/**
|
|
73
|
+
* (Optional) Unordered list of Destination elements that provide context about the
|
|
74
|
+
* terminating endpoint of a business transfer of which this event is a part.
|
|
75
|
+
*/
|
|
76
|
+
destinationList?: IEpcisDestination[];
|
|
77
|
+
/**
|
|
78
|
+
* (Optional) Connects event to one or more SensorElements.
|
|
79
|
+
*/
|
|
80
|
+
sensorElementList?: IEpcisSensorElement[];
|
|
10
81
|
}
|
|
@@ -1,10 +1,80 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EpcisActionTypes } from "./epcisActionTypes.js";
|
|
2
|
+
import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
|
|
3
|
+
import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
|
|
4
|
+
import type { EpcisTypes } from "./epcisTypes.js";
|
|
5
|
+
import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
|
|
6
|
+
import type { IEpcisDestination } from "./IEpcisDestination.js";
|
|
7
|
+
import type { IEpcisEvent } from "./IEpcisEvent.js";
|
|
8
|
+
import type { IEpcisLocation } from "./IEpcisLocation.js";
|
|
9
|
+
import type { IEpcisQuantity } from "./IEpcisQuantity.js";
|
|
10
|
+
import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
|
|
11
|
+
import type { IEpcisSource } from "./IEpcisSource.js";
|
|
2
12
|
/**
|
|
3
|
-
*
|
|
13
|
+
* EPCIS 2.0 AssociationEvent describing membership relationships between parent
|
|
14
|
+
* and child objects without implying physical containment.
|
|
15
|
+
* @see https://ref.gs1.org/epcis/AssociationEvent
|
|
4
16
|
*/
|
|
5
|
-
export interface
|
|
17
|
+
export interface IEpcisAssociationEvent extends IEpcisEvent {
|
|
6
18
|
/**
|
|
7
19
|
* Type.
|
|
8
20
|
*/
|
|
9
|
-
type:
|
|
21
|
+
type: typeof EpcisTypes.AssociationEvent;
|
|
22
|
+
/**
|
|
23
|
+
* Identifier of the parent of the aggregation or association; use the pure
|
|
24
|
+
* identity URI when the parent is an EPC.
|
|
25
|
+
*/
|
|
26
|
+
parentID: string;
|
|
27
|
+
/**
|
|
28
|
+
* (Optional) Unordered list of contained objects identified at the instance
|
|
29
|
+
* level; AssociationEvents normally include childEPCs or childQuantityList
|
|
30
|
+
* unless action is DELETE.
|
|
31
|
+
*/
|
|
32
|
+
childEPCs?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Unordered list of one or more QuantityElements identifying contained objects
|
|
35
|
+
* at the class level; may be empty only with action DELETE when disassociating
|
|
36
|
+
* all children.
|
|
37
|
+
*/
|
|
38
|
+
childQuantityList?: IEpcisQuantity[];
|
|
39
|
+
/**
|
|
40
|
+
* How this event relates to the lifecycle of the EPCs named in this event.
|
|
41
|
+
*/
|
|
42
|
+
action: EpcisActionTypes;
|
|
43
|
+
/**
|
|
44
|
+
* (Optional) The business step of which this event was a part.
|
|
45
|
+
*/
|
|
46
|
+
bizStep?: EpcisBizStepTypes | string;
|
|
47
|
+
/**
|
|
48
|
+
* (Optional) The business condition of the objects associated with the EPCs,
|
|
49
|
+
* presumed to hold true until contradicted by a subsequent event.
|
|
50
|
+
*/
|
|
51
|
+
disposition?: EpcisDispositionTypes | string;
|
|
52
|
+
/**
|
|
53
|
+
* (Optional) The read point at which the event took place.
|
|
54
|
+
*/
|
|
55
|
+
readPoint?: IEpcisLocation;
|
|
56
|
+
/**
|
|
57
|
+
* (Optional) The business location where the objects associated with the EPCs
|
|
58
|
+
* may be found, until contradicted by a subsequent event.
|
|
59
|
+
*/
|
|
60
|
+
bizLocation?: IEpcisLocation;
|
|
61
|
+
/**
|
|
62
|
+
* (Optional) An unordered list of business transactions that define the context
|
|
63
|
+
* of this event.
|
|
64
|
+
*/
|
|
65
|
+
bizTransactionList?: IEpcisBizTransaction[];
|
|
66
|
+
/**
|
|
67
|
+
* (Optional) Unordered list of Source elements that provide context about the
|
|
68
|
+
* originating endpoint of a business transfer of which this event is a part.
|
|
69
|
+
*/
|
|
70
|
+
sourceList?: IEpcisSource[];
|
|
71
|
+
/**
|
|
72
|
+
* (Optional) Unordered list of Destination elements that provide context about
|
|
73
|
+
* the terminating endpoint of a business transfer of which this event is a part.
|
|
74
|
+
*/
|
|
75
|
+
destinationList?: IEpcisDestination[];
|
|
76
|
+
/**
|
|
77
|
+
* (Optional) Connects event to one or more SensorElements.
|
|
78
|
+
*/
|
|
79
|
+
sensorElementList?: IEpcisSensorElement[];
|
|
10
80
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject, IJsonLdNodePrimitive } from "@twin.org/data-json-ld";
|
|
2
|
+
/**
|
|
3
|
+
* EPCIS 2.0 Vocabulary Attribute describing metadata on vocabulary elements.
|
|
4
|
+
* @see https://ref.gs1.org/epcis/Attribute
|
|
5
|
+
*/
|
|
6
|
+
export interface IEpcisAttribute extends IJsonLdNodeObject {
|
|
7
|
+
/**
|
|
8
|
+
* Attribute id.
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Attribute value.
|
|
13
|
+
*/
|
|
14
|
+
attribute?: IJsonLdNodePrimitive;
|
|
15
|
+
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisBizTransactionTypes } from "./epcisBizTransactionTypes.js";
|
|
1
3
|
/**
|
|
2
|
-
* EPCIS
|
|
4
|
+
* EPCIS 2.0 BizTransaction element identifying a business document and its type.
|
|
5
|
+
* @see https://ref.gs1.org/epcis/BizTransaction
|
|
3
6
|
*/
|
|
4
|
-
export interface
|
|
7
|
+
export interface IEpcisBizTransaction extends IJsonLdNodeObject {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Identifier that indicates the type of BizTransaction document (e.g. Purchase
|
|
10
|
+
* Order, Despatch Advice).
|
|
11
|
+
*
|
|
12
|
+
* Use {@link EpcisBizTransactionTypes} for known values.
|
|
7
13
|
*/
|
|
8
|
-
type
|
|
14
|
+
type?: EpcisBizTransactionTypes | string;
|
|
9
15
|
/**
|
|
10
|
-
*
|
|
16
|
+
* URI identifier of the specific business transaction document (alias of id in
|
|
17
|
+
* JSON or XML).
|
|
11
18
|
*/
|
|
12
19
|
bizTransaction: string;
|
|
13
20
|
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisSourceDestTypes } from "./epcisSourceDestTypes.js";
|
|
1
3
|
/**
|
|
2
|
-
* EPCIS Destination
|
|
4
|
+
* EPCIS 2.0 Destination element identifying the terminating endpoint of a
|
|
5
|
+
* business transfer.
|
|
6
|
+
* @see https://ref.gs1.org/epcis/SourceOrDestination
|
|
3
7
|
*/
|
|
4
|
-
export interface
|
|
8
|
+
export interface IEpcisDestination extends IJsonLdNodeObject {
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Identifier indicating the role of SourceOrDestination in a transfer (Owning
|
|
11
|
+
* Party, Possessing Party, or Location).
|
|
12
|
+
*
|
|
13
|
+
* Use {@link EpcisSourceDestTypes} for known values.
|
|
7
14
|
*/
|
|
8
|
-
type: string;
|
|
15
|
+
type: EpcisSourceDestTypes | string;
|
|
9
16
|
/**
|
|
10
|
-
*
|
|
17
|
+
* Identifier that denotes the specific source or destination of a business
|
|
18
|
+
* transfer; must correlate with the selected type.
|
|
11
19
|
*/
|
|
12
20
|
destination: string;
|
|
13
21
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisContextType } from "./epcisContextType.js";
|
|
3
|
+
import type { EpcisEvents } from "./epcisEvents.js";
|
|
4
|
+
import type { EpcisTypes } from "./epcisTypes.js";
|
|
5
|
+
import type { IEpcisHeader } from "./IEpcisHeader.js";
|
|
3
6
|
/**
|
|
4
|
-
* EPCIS
|
|
7
|
+
* EPCIS 2.0 capture document containing header metadata and an event list.
|
|
8
|
+
* @see https://ref.gs1.org/epcis/EPCISDocument
|
|
5
9
|
*/
|
|
6
|
-
export interface IEpcisDocument {
|
|
10
|
+
export interface IEpcisDocument extends IJsonLdNodeObject {
|
|
7
11
|
/**
|
|
8
12
|
* The @context.
|
|
9
13
|
*/
|
|
10
|
-
"@context":
|
|
14
|
+
"@context": EpcisContextType;
|
|
11
15
|
/**
|
|
12
16
|
* The JSON-LD document id.
|
|
13
17
|
*/
|
|
@@ -15,7 +19,31 @@ export interface IEpcisDocument {
|
|
|
15
19
|
/**
|
|
16
20
|
* JSON-LD Type.
|
|
17
21
|
*/
|
|
18
|
-
type:
|
|
22
|
+
type: typeof EpcisTypes.EPCISDocument;
|
|
23
|
+
/**
|
|
24
|
+
* Schema version.
|
|
25
|
+
*/
|
|
26
|
+
schemaVersion: string;
|
|
27
|
+
/**
|
|
28
|
+
* Creation Date.
|
|
29
|
+
*/
|
|
30
|
+
creationDate: string;
|
|
31
|
+
/**
|
|
32
|
+
* (Optional) The instance identifier of an EPCISDocument.
|
|
33
|
+
*/
|
|
34
|
+
instanceIdentifier?: string;
|
|
35
|
+
/**
|
|
36
|
+
* (Optional) The sender of an EPCISDocument.
|
|
37
|
+
*/
|
|
38
|
+
sender?: string;
|
|
39
|
+
/**
|
|
40
|
+
* (Optional) The intended receiver of an EPCISDocument.
|
|
41
|
+
*/
|
|
42
|
+
receiver?: string;
|
|
43
|
+
/**
|
|
44
|
+
* EPCIS Header.
|
|
45
|
+
*/
|
|
46
|
+
epcisHeader?: IEpcisHeader;
|
|
19
47
|
/**
|
|
20
48
|
* The EPCIS Body.
|
|
21
49
|
*/
|
|
@@ -23,6 +51,6 @@ export interface IEpcisDocument {
|
|
|
23
51
|
/**
|
|
24
52
|
* The list of events.
|
|
25
53
|
*/
|
|
26
|
-
eventList:
|
|
54
|
+
eventList: EpcisEvents[];
|
|
27
55
|
};
|
|
28
56
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisErrorReasonTypes } from "./epcisErrorReasonTypes.js";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS 2.0 ErrorDeclaration describing corrections to previously captured
|
|
5
|
+
* events.
|
|
6
|
+
* @see https://ref.gs1.org/epcis/ErrorDeclaration
|
|
7
|
+
*/
|
|
8
|
+
export interface IEpcisErrorDeclaration extends IJsonLdNodeObject {
|
|
9
|
+
/**
|
|
10
|
+
* The date and time at which the declaration of error is made.
|
|
11
|
+
*/
|
|
12
|
+
declarationTime: string;
|
|
13
|
+
/**
|
|
14
|
+
* Reason for the error.
|
|
15
|
+
*
|
|
16
|
+
* Use {@link EpcisErrorReasonTypes} for known values.
|
|
17
|
+
*/
|
|
18
|
+
reason?: EpcisErrorReasonTypes | string;
|
|
19
|
+
/**
|
|
20
|
+
* (Optional) If present, indicates that the events having the specified URIs as
|
|
21
|
+
* the value of their eventID fields are to be considered as "corrections" to
|
|
22
|
+
* the event declared erroneous by this event.
|
|
23
|
+
*/
|
|
24
|
+
correctiveEventIDs?: string[];
|
|
25
|
+
}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisContextType } from "./epcisContextType.js";
|
|
3
|
+
import type { IEpcisErrorDeclaration } from "./IEpcisErrorDeclaration.js";
|
|
4
4
|
/**
|
|
5
|
-
* EPCIS Event.
|
|
5
|
+
* Base EPCIS 2.0 Event carrying shared fields across all event types.
|
|
6
|
+
* @see https://ref.gs1.org/epcis/Event
|
|
6
7
|
*/
|
|
7
|
-
export interface IEpcisEvent {
|
|
8
|
+
export interface IEpcisEvent extends IJsonLdNodeObject {
|
|
8
9
|
/**
|
|
9
10
|
* JSON-LD @context.
|
|
10
11
|
*/
|
|
11
|
-
"@context"
|
|
12
|
+
"@context": EpcisContextType;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Type of Event.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
type: string;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* URI identifier of a specific EPCIS event (alias of id in JSON or XML).
|
|
18
19
|
*/
|
|
19
20
|
eventID?: string;
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* (Optional) CertificationDetails relevant for Objects, Places and/or
|
|
23
|
+
* Organizations mentioned in this Event.
|
|
22
24
|
*/
|
|
23
|
-
|
|
25
|
+
certificationInfo?: string | string[];
|
|
26
|
+
/**
|
|
27
|
+
* Error declaration.
|
|
28
|
+
*/
|
|
29
|
+
errorDeclaration?: IEpcisErrorDeclaration;
|
|
24
30
|
/**
|
|
25
|
-
*
|
|
31
|
+
* The date and time at which the EPCIS Capturing Applications asserts the event
|
|
32
|
+
* occurred.
|
|
26
33
|
*/
|
|
27
34
|
eventTime: string;
|
|
28
35
|
/**
|
|
29
|
-
*
|
|
36
|
+
* The time zone offset in effect at the time and place the event occurred,
|
|
37
|
+
* expressed as an offset from UTC.
|
|
30
38
|
*/
|
|
31
39
|
eventTimeZoneOffset: string;
|
|
32
40
|
/**
|
|
33
|
-
*
|
|
41
|
+
* (Optional) The date and time at which this event was recorded by an EPCIS
|
|
42
|
+
* Repository; ignored at capture and present on query results.
|
|
34
43
|
*/
|
|
35
44
|
recordTime?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Source list. Semantics according to EPCIS standard.
|
|
38
|
-
*/
|
|
39
|
-
sourceList?: ISource[];
|
|
40
|
-
/**
|
|
41
|
-
* Destination list. Semantics according to EPCIS standard.
|
|
42
|
-
*/
|
|
43
|
-
destinationList?: IDestination[];
|
|
44
45
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { IEpcisVocabulary } from "./IEpcisVocabulary.js";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS 2.0 Header carrying optional master data alongside an EPCIS document.
|
|
5
|
+
* @see https://ref.gs1.org/epcis/EPCISHeader
|
|
6
|
+
*/
|
|
7
|
+
export interface IEpcisHeader extends IJsonLdNodeObject {
|
|
8
|
+
/**
|
|
9
|
+
* EPCIS master data.
|
|
10
|
+
*/
|
|
11
|
+
epcisMasterData?: IJsonLdNodeObject & {
|
|
12
|
+
/**
|
|
13
|
+
* Vocabulary list.
|
|
14
|
+
*/
|
|
15
|
+
vocabularyList?: IEpcisVocabulary[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
/**
|
|
3
|
+
* EPCIS 2.0 Instance/Lot Master Data (ILMD) container for event-level master
|
|
4
|
+
* data extensions.
|
|
5
|
+
* @see https://ref.gs1.org/epcis/ILMD
|
|
6
|
+
*/
|
|
7
|
+
export interface IEpcisIlmd extends IJsonLdNodeObject {
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
/**
|
|
3
|
+
* EPCIS 2.0 Location reference (readPoint/bizLocation) that wraps a location
|
|
4
|
+
* identifier.
|
|
5
|
+
* @see https://ref.gs1.org/epcis/ReadPoint
|
|
6
|
+
*/
|
|
7
|
+
export interface IEpcisLocation extends IJsonLdNodeObject {
|
|
8
|
+
/**
|
|
9
|
+
* The location identifier (URI/IRI per EPCIS schema and SHACL).
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
@@ -1,25 +1,85 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { EpcisActionTypes } from "./epcisActionTypes.js";
|
|
2
|
+
import type { EpcisBizStepTypes } from "./epcisBizStepTypes.js";
|
|
3
|
+
import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
|
|
4
|
+
import type { EpcisTypes } from "./epcisTypes.js";
|
|
5
|
+
import type { IEpcisBizTransaction } from "./IEpcisBizTransaction.js";
|
|
6
|
+
import type { IEpcisDestination } from "./IEpcisDestination.js";
|
|
7
|
+
import type { IEpcisEvent } from "./IEpcisEvent.js";
|
|
8
|
+
import type { IEpcisIlmd } from "./IEpcisIlmd.js";
|
|
9
|
+
import type { IEpcisLocation } from "./IEpcisLocation.js";
|
|
10
|
+
import type { IEpcisPersistentDisposition } from "./IEpcisPersistentDisposition.js";
|
|
11
|
+
import type { IEpcisQuantity } from "./IEpcisQuantity.js";
|
|
12
|
+
import type { IEpcisSensorElement } from "./IEpcisSensorElement.js";
|
|
13
|
+
import type { IEpcisSource } from "./IEpcisSource.js";
|
|
4
14
|
/**
|
|
5
|
-
*
|
|
15
|
+
* EPCIS 2.0 ObjectEvent describing one or more objects (instance- or class-level)
|
|
16
|
+
* observed at a point in the business process.
|
|
6
17
|
*
|
|
18
|
+
* @see https://ref.gs1.org/epcis/ObjectEvent
|
|
7
19
|
*/
|
|
8
|
-
export interface
|
|
20
|
+
export interface IEpcisObjectEvent extends IEpcisEvent {
|
|
9
21
|
/**
|
|
10
22
|
* Fixed to ObjectEvent.
|
|
11
23
|
*/
|
|
12
|
-
type:
|
|
24
|
+
type: typeof EpcisTypes.ObjectEvent;
|
|
13
25
|
/**
|
|
14
|
-
*
|
|
26
|
+
* (Optional) Unordered list of one or more EPCs naming specific objects to which
|
|
27
|
+
* the event pertained.
|
|
15
28
|
*/
|
|
16
|
-
epcList
|
|
29
|
+
epcList?: string[];
|
|
17
30
|
/**
|
|
18
|
-
*
|
|
31
|
+
* Unordered list of one or more QuantityElements identifying contained objects at
|
|
32
|
+
* the class level.
|
|
19
33
|
*/
|
|
20
|
-
quantityList?:
|
|
34
|
+
quantityList?: IEpcisQuantity[];
|
|
21
35
|
/**
|
|
22
|
-
*
|
|
36
|
+
* How this event relates to the lifecycle of the EPCs named in this event.
|
|
23
37
|
*/
|
|
24
|
-
|
|
38
|
+
action: EpcisActionTypes;
|
|
39
|
+
/**
|
|
40
|
+
* (Optional) The business step of which this event was a part.
|
|
41
|
+
*/
|
|
42
|
+
bizStep?: EpcisBizStepTypes | string;
|
|
43
|
+
/**
|
|
44
|
+
* (Optional) The business condition of the objects associated with the EPCs,
|
|
45
|
+
* presumed to hold true until contradicted by a subsequent event.
|
|
46
|
+
*/
|
|
47
|
+
disposition?: EpcisDispositionTypes | string;
|
|
48
|
+
/**
|
|
49
|
+
* Persistent disposition.
|
|
50
|
+
*/
|
|
51
|
+
persistentDisposition?: IEpcisPersistentDisposition;
|
|
52
|
+
/**
|
|
53
|
+
* (Optional) The read point at which the event took place.
|
|
54
|
+
*/
|
|
55
|
+
readPoint?: IEpcisLocation;
|
|
56
|
+
/**
|
|
57
|
+
* (Optional) The business location where the objects associated with the EPCs may
|
|
58
|
+
* be found, until contradicted by a subsequent event.
|
|
59
|
+
*/
|
|
60
|
+
bizLocation?: IEpcisLocation;
|
|
61
|
+
/**
|
|
62
|
+
* (Optional) Unordered list of business transactions that define the context of
|
|
63
|
+
* this event.
|
|
64
|
+
*/
|
|
65
|
+
bizTransactionList?: IEpcisBizTransaction[];
|
|
66
|
+
/**
|
|
67
|
+
* (Optional) Unordered list of Source elements that provide context about the
|
|
68
|
+
* originating endpoint of a business transfer of which this event is a part.
|
|
69
|
+
*/
|
|
70
|
+
sourceList?: IEpcisSource[];
|
|
71
|
+
/**
|
|
72
|
+
* (Optional) Unordered list of Destination elements that provide context about the
|
|
73
|
+
* terminating endpoint of a business transfer of which this event is a part.
|
|
74
|
+
*/
|
|
75
|
+
destinationList?: IEpcisDestination[];
|
|
76
|
+
/**
|
|
77
|
+
* (Optional) Connects event to one or more SensorElements.
|
|
78
|
+
*/
|
|
79
|
+
sensorElementList?: IEpcisSensorElement[];
|
|
80
|
+
/**
|
|
81
|
+
* (Optional) Instance/Lot master data that describes the objects created during
|
|
82
|
+
* this event.
|
|
83
|
+
*/
|
|
84
|
+
ilmd?: IEpcisIlmd;
|
|
25
85
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisDispositionTypes } from "./epcisDispositionTypes.js";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS 2.0 PersistentDisposition indicating business conditions to set or unset
|
|
5
|
+
* independently of event disposition.
|
|
6
|
+
* @see https://ref.gs1.org/epcis/PersistentDisposition
|
|
7
|
+
*/
|
|
8
|
+
export interface IEpcisPersistentDisposition extends IJsonLdNodeObject {
|
|
9
|
+
/**
|
|
10
|
+
* (Optional) List of persistentDisposition URI values to be set.
|
|
11
|
+
*/
|
|
12
|
+
set?: (EpcisDispositionTypes | string)[];
|
|
13
|
+
/**
|
|
14
|
+
* (Optional) List of persistentDisposition URI values to be unset (revoked).
|
|
15
|
+
*/
|
|
16
|
+
unset?: (EpcisDispositionTypes | string)[];
|
|
17
|
+
}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
1
2
|
/**
|
|
2
|
-
* EPCIS
|
|
3
|
+
* EPCIS 2.0 QuantityElement defining class-level identifiers and amounts.
|
|
4
|
+
* @see https://ref.gs1.org/epcis/QuantityElement
|
|
3
5
|
*/
|
|
4
|
-
export interface
|
|
6
|
+
export interface IEpcisQuantity extends IJsonLdNodeObject {
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
8
|
+
* A class-level identifier for the class to which the specified quantity of
|
|
9
|
+
* objects belongs.
|
|
7
10
|
*/
|
|
8
11
|
epcClass: string;
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
13
|
+
* (Optional) A number that specifies how many or how much of the specified
|
|
14
|
+
* EPCClass is denoted by this QuantityElement.
|
|
11
15
|
*/
|
|
12
|
-
quantity
|
|
16
|
+
quantity?: number;
|
|
17
|
+
/**
|
|
18
|
+
* (Optional) Unit of measure by which the specified value(s) of the property
|
|
19
|
+
* specified by type should be interpreted.
|
|
20
|
+
*/
|
|
21
|
+
uom?: string;
|
|
13
22
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { EpcisContextType } from "./epcisContextType.js";
|
|
3
|
+
import type { EpcisTypes } from "./epcisTypes.js";
|
|
4
|
+
import type { IEpcisQueryDocumentBody } from "./IEpcisQueryDocumentBody.js";
|
|
3
5
|
/**
|
|
4
|
-
* EPCIS
|
|
6
|
+
* EPCIS 2.0 QueryDocument used to submit queries to an EPCIS repository.
|
|
7
|
+
* @see https://ref.gs1.org/epcis/EPCISQueryDocument
|
|
5
8
|
*/
|
|
6
|
-
export interface IEpcisQueryDocument {
|
|
9
|
+
export interface IEpcisQueryDocument extends IJsonLdNodeObject {
|
|
7
10
|
/**
|
|
8
11
|
* The @context.
|
|
9
12
|
*/
|
|
10
|
-
"@context":
|
|
13
|
+
"@context": EpcisContextType;
|
|
11
14
|
/**
|
|
12
15
|
* The JSON-LD document id.
|
|
13
16
|
*/
|
|
@@ -15,7 +18,7 @@ export interface IEpcisQueryDocument {
|
|
|
15
18
|
/**
|
|
16
19
|
* JSON-LD Type.
|
|
17
20
|
*/
|
|
18
|
-
type:
|
|
21
|
+
type: typeof EpcisTypes.EPCISQueryDocument;
|
|
19
22
|
/**
|
|
20
23
|
* Schema version.
|
|
21
24
|
*/
|
|
@@ -27,28 +30,5 @@ export interface IEpcisQueryDocument {
|
|
|
27
30
|
/**
|
|
28
31
|
* The EPCIS Body.
|
|
29
32
|
*/
|
|
30
|
-
epcisBody:
|
|
31
|
-
/**
|
|
32
|
-
* The results of the query.
|
|
33
|
-
*/
|
|
34
|
-
queryResults: {
|
|
35
|
-
/**
|
|
36
|
-
* The concerned subscription.
|
|
37
|
-
*/
|
|
38
|
-
subscriptionID?: string;
|
|
39
|
-
/**
|
|
40
|
-
* The concerned query.
|
|
41
|
-
*/
|
|
42
|
-
queryName: string;
|
|
43
|
-
/**
|
|
44
|
-
* And now the results.
|
|
45
|
-
*/
|
|
46
|
-
resultsBody: {
|
|
47
|
-
/**
|
|
48
|
-
* The list of events.
|
|
49
|
-
*/
|
|
50
|
-
eventList: IEpcisEvent[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
33
|
+
epcisBody: IEpcisQueryDocumentBody;
|
|
54
34
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { IEpcisQueryResults } from "./IEpcisQueryResults.js";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS 2.0 QueryDocumentBody wrapper that carries query results.
|
|
5
|
+
* @see https://ref.gs1.org/epcis/QueryDocumentBody
|
|
6
|
+
*/
|
|
7
|
+
export interface IEpcisQueryDocumentBody extends IJsonLdNodeObject {
|
|
8
|
+
/**
|
|
9
|
+
* The results of the query.
|
|
10
|
+
*/
|
|
11
|
+
queryResults: IEpcisQueryResults;
|
|
12
|
+
}
|