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