@twin.org/standards-gs1 0.0.1-next.21
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/LICENSE +201 -0
- package/README.md +21 -0
- package/dist/cjs/index.cjs +977 -0
- package/dist/esm/index.mjs +961 -0
- package/dist/types/dataTypes/gs1DataTypes.d.ts +10 -0
- package/dist/types/entities/gs1Location.d.ts +69 -0
- package/dist/types/identifiers/gs1Identifiers.d.ts +9 -0
- package/dist/types/index.d.ts +34 -0
- package/dist/types/models/epc/IEPCClassUri.d.ts +17 -0
- package/dist/types/models/epcis20/IAggregationEvent.d.ts +10 -0
- package/dist/types/models/epcis20/IAssociationEvent.d.ts +10 -0
- package/dist/types/models/epcis20/IBaseAggregationEvent.d.ts +19 -0
- package/dist/types/models/epcis20/IBizTransaction.d.ts +13 -0
- package/dist/types/models/epcis20/IDestination.d.ts +13 -0
- package/dist/types/models/epcis20/IEpcisDocument.d.ts +28 -0
- package/dist/types/models/epcis20/IEpcisEvent.d.ts +44 -0
- package/dist/types/models/epcis20/IEpcisEventDetails.d.ts +35 -0
- package/dist/types/models/epcis20/IEpcisQuery.d.ts +6 -0
- package/dist/types/models/epcis20/IEpcisQueryDocument.d.ts +54 -0
- package/dist/types/models/epcis20/IObjectEvent.d.ts +25 -0
- package/dist/types/models/epcis20/IQuantity.d.ts +13 -0
- package/dist/types/models/epcis20/ISensorElement.d.ts +15 -0
- package/dist/types/models/epcis20/ISensorMetadata.d.ts +21 -0
- package/dist/types/models/epcis20/ISensorReport.d.ts +17 -0
- package/dist/types/models/epcis20/ISimpleLocation.d.ts +9 -0
- package/dist/types/models/epcis20/ISource.d.ts +13 -0
- package/dist/types/models/epcis20/actionTypes.d.ts +21 -0
- package/dist/types/models/epcis20/bizStepTypes.d.ts +52 -0
- package/dist/types/models/epcis20/dispositionTypes.d.ts +44 -0
- package/dist/types/models/epcis20/epcisErrorTypes.d.ts +11 -0
- package/dist/types/models/epcis20/epcisEventUnionType.d.ts +7 -0
- package/dist/types/models/epcis20/eventTypes.d.ts +29 -0
- package/dist/types/models/gs1/gs1IdTypes.d.ts +89 -0
- package/dist/types/models/gs1/gs1IdentifierTypes.d.ts +25 -0
- package/dist/types/models/gs1/gs1Types.d.ts +13 -0
- package/dist/types/models/gs1/subSiteAttributes.d.ts +145 -0
- package/dist/types/models/gs1/subSiteTypes.d.ts +77 -0
- package/dist/types/utils/gs1IdentifiersValidation.d.ts +57 -0
- package/dist/types/utils/gs1Is.d.ts +17 -0
- package/dist/types/utils/gs1Validation.d.ts +16 -0
- package/docs/changelog.md +5 -0
- package/docs/examples.md +1 -0
- package/docs/reference/classes/Gs1DataTypes.md +26 -0
- package/docs/reference/classes/Gs1Identifiers.md +25 -0
- package/docs/reference/classes/Gs1IdentifiersValidation.md +215 -0
- package/docs/reference/classes/Gs1Is.md +57 -0
- package/docs/reference/classes/Gs1Location.md +135 -0
- package/docs/reference/classes/Gs1Validation.md +53 -0
- package/docs/reference/index.md +57 -0
- package/docs/reference/interfaces/IAggregationEvent.md +223 -0
- package/docs/reference/interfaces/IAssociationEvent.md +223 -0
- package/docs/reference/interfaces/IBizTransaction.md +19 -0
- package/docs/reference/interfaces/IDestination.md +19 -0
- package/docs/reference/interfaces/IEPCClassUri.md +27 -0
- package/docs/reference/interfaces/IEpcisDocument.md +41 -0
- package/docs/reference/interfaces/IEpcisEvent.md +79 -0
- package/docs/reference/interfaces/IEpcisEventDetails.md +167 -0
- package/docs/reference/interfaces/IEpcisQuery.md +7 -0
- package/docs/reference/interfaces/IEpcisQueryDocument.md +81 -0
- package/docs/reference/interfaces/IObjectEvent.md +211 -0
- package/docs/reference/interfaces/IQuantity.md +19 -0
- package/docs/reference/interfaces/ISensorElement.md +19 -0
- package/docs/reference/interfaces/ISensorMetadata.md +35 -0
- package/docs/reference/interfaces/ISensorReport.md +27 -0
- package/docs/reference/interfaces/ISimpleLocation.md +11 -0
- package/docs/reference/interfaces/ISource.md +19 -0
- package/docs/reference/type-aliases/ActionTypes.md +5 -0
- package/docs/reference/type-aliases/BizStepTypes.md +5 -0
- package/docs/reference/type-aliases/DispositionTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisErrorTypes.md +5 -0
- package/docs/reference/type-aliases/EpcisEventUnionType.md +5 -0
- package/docs/reference/type-aliases/EventTypes.md +5 -0
- package/docs/reference/type-aliases/Gs1IdTypes.md +5 -0
- package/docs/reference/type-aliases/Gs1IdentifierTypes.md +5 -0
- package/docs/reference/type-aliases/Gs1Types.md +5 -0
- package/docs/reference/type-aliases/SubSiteAttributes.md +7 -0
- package/docs/reference/type-aliases/SubSiteTypes.md +7 -0
- package/docs/reference/variables/ActionTypes.md +25 -0
- package/docs/reference/variables/BizStepTypes.md +173 -0
- package/docs/reference/variables/DispositionTypes.md +141 -0
- package/docs/reference/variables/EpcisErrorTypes.md +15 -0
- package/docs/reference/variables/EventTypes.md +37 -0
- package/docs/reference/variables/Gs1IdTypes.md +127 -0
- package/docs/reference/variables/Gs1IdentifierTypes.md +31 -0
- package/docs/reference/variables/Gs1Types.md +13 -0
- package/docs/reference/variables/SubSiteAttributes.md +207 -0
- package/docs/reference/variables/SubSiteTypes.md +105 -0
- package/locales/en.json +12 -0
- package/package.json +41 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { SubSiteAttributes } from "../models/gs1/subSiteAttributes";
|
|
2
|
+
import type { SubSiteTypes } from "../models/gs1/subSiteTypes";
|
|
3
|
+
/**
|
|
4
|
+
* Interface describing a GS1 Location master data.
|
|
5
|
+
* Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
|
|
6
|
+
* Section 10.2 .
|
|
7
|
+
*/
|
|
8
|
+
export declare class Gs1Location {
|
|
9
|
+
/**
|
|
10
|
+
* The GS1 sgln identifier.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* Identifies the site in which the location is contained.
|
|
15
|
+
*/
|
|
16
|
+
site?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Sub site type describes the primary business function of the sub site location.
|
|
19
|
+
*/
|
|
20
|
+
sst?: SubSiteTypes;
|
|
21
|
+
/**
|
|
22
|
+
* Sub site attribute further qualifies the business function of the sub site location.
|
|
23
|
+
*/
|
|
24
|
+
ssa?: SubSiteAttributes;
|
|
25
|
+
/**
|
|
26
|
+
* Sub site detail provides additional proprietary information.
|
|
27
|
+
*/
|
|
28
|
+
ssd?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the location.
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The street address line 1.
|
|
35
|
+
*/
|
|
36
|
+
streetAddressOne?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address line 2.
|
|
39
|
+
*/
|
|
40
|
+
streetAddressTwo?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The street address line 3.
|
|
43
|
+
*/
|
|
44
|
+
streetAddressThree?: string;
|
|
45
|
+
/**
|
|
46
|
+
* City.
|
|
47
|
+
*/
|
|
48
|
+
city?: string;
|
|
49
|
+
/**
|
|
50
|
+
* State.
|
|
51
|
+
*/
|
|
52
|
+
state?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Postal Code.
|
|
55
|
+
*/
|
|
56
|
+
postalCode?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Country Code The ISO 3166-1 alpha-2 code specifying the country for the address.
|
|
59
|
+
*/
|
|
60
|
+
countryCode?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The latitude of the location in degrees.
|
|
63
|
+
*/
|
|
64
|
+
latitude?: number;
|
|
65
|
+
/**
|
|
66
|
+
* The longitude of the location in degrees.
|
|
67
|
+
*/
|
|
68
|
+
longitude?: number;
|
|
69
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export * from "./dataTypes/gs1DataTypes";
|
|
2
|
+
export * from "./entities/gs1Location";
|
|
3
|
+
export * from "./identifiers/gs1Identifiers";
|
|
4
|
+
export * from "./models/epc/IEPCClassUri";
|
|
5
|
+
export * from "./models/epcis20/actionTypes";
|
|
6
|
+
export * from "./models/epcis20/bizStepTypes";
|
|
7
|
+
export * from "./models/epcis20/dispositionTypes";
|
|
8
|
+
export * from "./models/epcis20/epcisErrorTypes";
|
|
9
|
+
export * from "./models/epcis20/epcisEventUnionType";
|
|
10
|
+
export * from "./models/epcis20/eventTypes";
|
|
11
|
+
export * from "./models/epcis20/IAggregationEvent";
|
|
12
|
+
export * from "./models/epcis20/IAssociationEvent";
|
|
13
|
+
export * from "./models/epcis20/IBizTransaction";
|
|
14
|
+
export * from "./models/epcis20/IDestination";
|
|
15
|
+
export * from "./models/epcis20/IEpcisDocument";
|
|
16
|
+
export * from "./models/epcis20/IEpcisEvent";
|
|
17
|
+
export * from "./models/epcis20/IEpcisEventDetails";
|
|
18
|
+
export * from "./models/epcis20/IEpcisQuery";
|
|
19
|
+
export * from "./models/epcis20/IEpcisQueryDocument";
|
|
20
|
+
export * from "./models/epcis20/IObjectEvent";
|
|
21
|
+
export * from "./models/epcis20/IQuantity";
|
|
22
|
+
export * from "./models/epcis20/ISensorElement";
|
|
23
|
+
export * from "./models/epcis20/ISensorMetadata";
|
|
24
|
+
export * from "./models/epcis20/ISensorReport";
|
|
25
|
+
export * from "./models/epcis20/ISimpleLocation";
|
|
26
|
+
export * from "./models/epcis20/ISource";
|
|
27
|
+
export * from "./models/gs1/gs1IdentifierTypes";
|
|
28
|
+
export * from "./models/gs1/gs1IdTypes";
|
|
29
|
+
export * from "./models/gs1/gs1Types";
|
|
30
|
+
export * from "./models/gs1/subSiteAttributes";
|
|
31
|
+
export * from "./models/gs1/subSiteTypes";
|
|
32
|
+
export * from "./utils/gs1IdentifiersValidation";
|
|
33
|
+
export * from "./utils/gs1Is";
|
|
34
|
+
export * from "./utils/gs1Validation";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for EPC class URI.
|
|
3
|
+
*/
|
|
4
|
+
export interface IEPCClassUri {
|
|
5
|
+
/**
|
|
6
|
+
* The company prefix.
|
|
7
|
+
*/
|
|
8
|
+
companyPrefix: string;
|
|
9
|
+
/**
|
|
10
|
+
* The item reference number.
|
|
11
|
+
*/
|
|
12
|
+
itemRefAndIndicator: string;
|
|
13
|
+
/**
|
|
14
|
+
* The batch/lot.
|
|
15
|
+
*/
|
|
16
|
+
lot: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IEpcisEventDetails } from "./IEpcisEventDetails";
|
|
2
|
+
import type { IQuantity } from "./IQuantity";
|
|
3
|
+
/**
|
|
4
|
+
* Describes an AggregationEvent.
|
|
5
|
+
*/
|
|
6
|
+
export interface IBaseAggregationEvent extends IEpcisEventDetails {
|
|
7
|
+
/**
|
|
8
|
+
* Parent is only optional when action is OBSERVE.
|
|
9
|
+
*/
|
|
10
|
+
parentID?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The children EPC which can be empty when action is DELETE.
|
|
13
|
+
*/
|
|
14
|
+
childEPCs?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Quantity in case of class-level event visibility data.
|
|
17
|
+
*/
|
|
18
|
+
childQuantityList?: IQuantity[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { IEpcisEvent } from "./IEpcisEvent";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS Document.
|
|
5
|
+
*/
|
|
6
|
+
export interface IEpcisDocument {
|
|
7
|
+
/**
|
|
8
|
+
* The @context.
|
|
9
|
+
*/
|
|
10
|
+
"@context": IJsonLdContextDefinition;
|
|
11
|
+
/**
|
|
12
|
+
* The JSON-LD document id.
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* JSON-LD Type.
|
|
17
|
+
*/
|
|
18
|
+
type: "EPCISDocument";
|
|
19
|
+
/**
|
|
20
|
+
* The EPCIS Body.
|
|
21
|
+
*/
|
|
22
|
+
epcisBody: {
|
|
23
|
+
/**
|
|
24
|
+
* The list of events.
|
|
25
|
+
*/
|
|
26
|
+
eventList: IEpcisEvent[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { IDestination } from "./IDestination";
|
|
3
|
+
import type { ISource } from "./ISource";
|
|
4
|
+
/**
|
|
5
|
+
* EPCIS Event.
|
|
6
|
+
*/
|
|
7
|
+
export interface IEpcisEvent {
|
|
8
|
+
/**
|
|
9
|
+
* JSON-LD @context.
|
|
10
|
+
*/
|
|
11
|
+
"@context"?: IJsonLdContextDefinition;
|
|
12
|
+
/**
|
|
13
|
+
* UUID of the event.
|
|
14
|
+
*/
|
|
15
|
+
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The id of the event. Marked here as optional as we usually won't store it on Tangle.
|
|
18
|
+
*/
|
|
19
|
+
eventID?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Type of Event.
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
* Timestamp in UTC.
|
|
26
|
+
*/
|
|
27
|
+
eventTime: string;
|
|
28
|
+
/**
|
|
29
|
+
* Timezone offset. Useful if we want to represent timestamp in local timezone.
|
|
30
|
+
*/
|
|
31
|
+
eventTimeZoneOffset: string;
|
|
32
|
+
/**
|
|
33
|
+
* When the event was recorded. It will be automatically generated.
|
|
34
|
+
*/
|
|
35
|
+
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
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ActionTypes } from "./actionTypes";
|
|
2
|
+
import type { BizStepTypes } from "./bizStepTypes";
|
|
3
|
+
import type { DispositionTypes } from "./dispositionTypes";
|
|
4
|
+
import type { IBizTransaction } from "./IBizTransaction";
|
|
5
|
+
import type { IEpcisEvent } from "./IEpcisEvent";
|
|
6
|
+
import type { ISimpleLocation } from "./ISimpleLocation";
|
|
7
|
+
/**
|
|
8
|
+
* EPCIS Event Details.
|
|
9
|
+
*/
|
|
10
|
+
export interface IEpcisEventDetails extends IEpcisEvent {
|
|
11
|
+
/**
|
|
12
|
+
* Action: ADD, OBSERVE, DELETE.
|
|
13
|
+
*/
|
|
14
|
+
action: ActionTypes;
|
|
15
|
+
/**
|
|
16
|
+
* The location of reading point.
|
|
17
|
+
*/
|
|
18
|
+
readPoint?: ISimpleLocation;
|
|
19
|
+
/**
|
|
20
|
+
* The biz location where the item ends up.
|
|
21
|
+
*/
|
|
22
|
+
bizLocation?: ISimpleLocation;
|
|
23
|
+
/**
|
|
24
|
+
* The business step as per EPCIS.
|
|
25
|
+
*/
|
|
26
|
+
bizStep?: BizStepTypes;
|
|
27
|
+
/**
|
|
28
|
+
* The disposition as per EPCIS.
|
|
29
|
+
*/
|
|
30
|
+
disposition?: DispositionTypes;
|
|
31
|
+
/**
|
|
32
|
+
* The list of related business transactions.
|
|
33
|
+
*/
|
|
34
|
+
bizTransactionList?: IBizTransaction[];
|
|
35
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinition } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { IEpcisEvent } from "./IEpcisEvent";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS Query Document.
|
|
5
|
+
*/
|
|
6
|
+
export interface IEpcisQueryDocument {
|
|
7
|
+
/**
|
|
8
|
+
* The @context.
|
|
9
|
+
*/
|
|
10
|
+
"@context": IJsonLdContextDefinition;
|
|
11
|
+
/**
|
|
12
|
+
* The JSON-LD document id.
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* JSON-LD Type.
|
|
17
|
+
*/
|
|
18
|
+
type: string;
|
|
19
|
+
/**
|
|
20
|
+
* Schema version.
|
|
21
|
+
*/
|
|
22
|
+
schemaVersion?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Creation Date.
|
|
25
|
+
*/
|
|
26
|
+
creationDate?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The EPCIS Body.
|
|
29
|
+
*/
|
|
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
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IEpcisEventDetails } from "./IEpcisEventDetails";
|
|
2
|
+
import type { IQuantity } from "./IQuantity";
|
|
3
|
+
import type { ISensorElement } from "./ISensorElement";
|
|
4
|
+
/**
|
|
5
|
+
* Defines an EPCIS 2.0 Object Event.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface IObjectEvent extends IEpcisEventDetails {
|
|
9
|
+
/**
|
|
10
|
+
* Fixed to ObjectEvent.
|
|
11
|
+
*/
|
|
12
|
+
type: "ObjectEvent";
|
|
13
|
+
/**
|
|
14
|
+
* List of EPCs involved.
|
|
15
|
+
*/
|
|
16
|
+
epcList: string[];
|
|
17
|
+
/**
|
|
18
|
+
* Quantity in case of class-level event visibility data.
|
|
19
|
+
*/
|
|
20
|
+
quantityList?: IQuantity[];
|
|
21
|
+
/**
|
|
22
|
+
* Sensor element list.
|
|
23
|
+
*/
|
|
24
|
+
sensorElementList?: ISensorElement[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ISensorMetadata } from "./ISensorMetadata";
|
|
2
|
+
import type { ISensorReport } from "./ISensorReport";
|
|
3
|
+
/**
|
|
4
|
+
* EPCIS SensorElement.
|
|
5
|
+
*/
|
|
6
|
+
export interface ISensorElement {
|
|
7
|
+
/**
|
|
8
|
+
* Sensor metadata.
|
|
9
|
+
*/
|
|
10
|
+
sensorMetadata?: ISensorMetadata;
|
|
11
|
+
/**
|
|
12
|
+
* Sensor report.
|
|
13
|
+
*/
|
|
14
|
+
sensorReport: ISensorReport[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EPCIS Sensor metadata.
|
|
3
|
+
*/
|
|
4
|
+
export interface ISensorMetadata {
|
|
5
|
+
/**
|
|
6
|
+
* Time.
|
|
7
|
+
*/
|
|
8
|
+
time: string;
|
|
9
|
+
/**
|
|
10
|
+
* Device ID.
|
|
11
|
+
*/
|
|
12
|
+
deviceID: string;
|
|
13
|
+
/**
|
|
14
|
+
* Device Metadata.
|
|
15
|
+
*/
|
|
16
|
+
deviceMetadata: string;
|
|
17
|
+
/**
|
|
18
|
+
* Raw data.
|
|
19
|
+
*/
|
|
20
|
+
rawData: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EPCIS 2.0 action types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const ActionTypes: {
|
|
5
|
+
/**
|
|
6
|
+
* ADD action.
|
|
7
|
+
*/
|
|
8
|
+
readonly Add: "ADD";
|
|
9
|
+
/**
|
|
10
|
+
* OBSERVE action.
|
|
11
|
+
*/
|
|
12
|
+
readonly Observe: "OBSERVE";
|
|
13
|
+
/**
|
|
14
|
+
* DELETE action.
|
|
15
|
+
*/
|
|
16
|
+
readonly Delete: "DELETE";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* EPCIS 2.0 action types.
|
|
20
|
+
*/
|
|
21
|
+
export type ActionTypes = (typeof ActionTypes)[keyof typeof ActionTypes];
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported EPCIS 2.0 bizStep.
|
|
3
|
+
*
|
|
4
|
+
* See EPCIS CVB specification for details.
|
|
5
|
+
*/
|
|
6
|
+
export declare const BizStepTypes: {
|
|
7
|
+
readonly Accepting: "accepting";
|
|
8
|
+
readonly Arriving: "arriving";
|
|
9
|
+
readonly Assembling: "assembling";
|
|
10
|
+
readonly Collecting: "collecting";
|
|
11
|
+
readonly Commissioning: "commissioning";
|
|
12
|
+
readonly Consigning: "consigning";
|
|
13
|
+
readonly CreatingClassInstance: "creating_class_instance";
|
|
14
|
+
readonly CycleCounting: "cycle_counting";
|
|
15
|
+
readonly Decommissioning: "decommissioning";
|
|
16
|
+
readonly Departing: "departing";
|
|
17
|
+
readonly Destroying: "destroying";
|
|
18
|
+
readonly Disassembling: "disassembling";
|
|
19
|
+
readonly Dispensing: "dispensing";
|
|
20
|
+
readonly Encoding: "encoding";
|
|
21
|
+
readonly EnteringExiting: "entering_exiting";
|
|
22
|
+
readonly Holding: "holding";
|
|
23
|
+
readonly Inspecting: "inspecting";
|
|
24
|
+
readonly Installing: "installing";
|
|
25
|
+
readonly Killing: "killing";
|
|
26
|
+
readonly Loading: "loading";
|
|
27
|
+
readonly Other: "other";
|
|
28
|
+
readonly Packing: "packing";
|
|
29
|
+
readonly Picking: "picking";
|
|
30
|
+
readonly Receiving: "receiving";
|
|
31
|
+
readonly Removing: "removing";
|
|
32
|
+
readonly Repackaging: "repackaging";
|
|
33
|
+
readonly Repairing: "repairing";
|
|
34
|
+
readonly Replacing: "replacing";
|
|
35
|
+
readonly Reserving: "reserving";
|
|
36
|
+
readonly RetailSelling: "retail_selling";
|
|
37
|
+
readonly Shipping: "shipping";
|
|
38
|
+
readonly StagingOutbound: "staging_outbound";
|
|
39
|
+
readonly StockTaking: "stock_taking";
|
|
40
|
+
readonly Stocking: "stocking";
|
|
41
|
+
readonly Storing: "storing";
|
|
42
|
+
readonly Transporting: "transporting";
|
|
43
|
+
readonly Unloading: "unloading";
|
|
44
|
+
readonly Unpacking: "unpacking";
|
|
45
|
+
readonly VoidShipping: "void_shipping";
|
|
46
|
+
readonly SensorReporting: "sensor_reporting";
|
|
47
|
+
readonly Sampling: "sampling";
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* EPCIS 2.0 action types.
|
|
51
|
+
*/
|
|
52
|
+
export type BizStepTypes = (typeof BizStepTypes)[keyof typeof BizStepTypes];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EPCIS 2.0 disposition types.
|
|
3
|
+
*
|
|
4
|
+
* See EPCIS CVB for more details.
|
|
5
|
+
*/
|
|
6
|
+
export declare const DispositionTypes: {
|
|
7
|
+
readonly Active: "active";
|
|
8
|
+
readonly ContainerClosed: "container_closed";
|
|
9
|
+
readonly Damaged: "damaged";
|
|
10
|
+
readonly Destroyed: "destroyed";
|
|
11
|
+
readonly Dispensed: "dispensed";
|
|
12
|
+
readonly Disposed: "disposed";
|
|
13
|
+
readonly Encoded: "encoded";
|
|
14
|
+
readonly Expired: "expired";
|
|
15
|
+
readonly InProgress: "in_progress";
|
|
16
|
+
readonly InTransit: "in_transit";
|
|
17
|
+
readonly Inactive: "inactive";
|
|
18
|
+
readonly NoPedigreeMatch: "no_pedigree_match";
|
|
19
|
+
readonly NonSellableOther: "non_sellable_other";
|
|
20
|
+
readonly PartiallyDispensed: "partially_dispensed";
|
|
21
|
+
readonly Recalled: "recalled";
|
|
22
|
+
readonly Reserved: "reserved";
|
|
23
|
+
readonly RetailSold: "retail_sold";
|
|
24
|
+
readonly Returned: "returned";
|
|
25
|
+
readonly SellableAccessible: "sellable_accessible";
|
|
26
|
+
readonly SellableNotAccessible: "sellable_not_accessible";
|
|
27
|
+
readonly Stolen: "stolen";
|
|
28
|
+
readonly Unknown: "unknown";
|
|
29
|
+
readonly Available: "available";
|
|
30
|
+
readonly CompletenessVerified: "completeness_verified";
|
|
31
|
+
readonly CompletenessInferred: "completeness_inferred";
|
|
32
|
+
readonly Conformant: "conformant";
|
|
33
|
+
readonly ContainerOpen: "container_open";
|
|
34
|
+
readonly MismatchInstance: "mismatch_instance";
|
|
35
|
+
readonly MismatchClass: "mismatch_class";
|
|
36
|
+
readonly MismatchQuantity: "mismatch_quantity";
|
|
37
|
+
readonly NeedsReplacement: "needs_replacement";
|
|
38
|
+
readonly NonConformant: "non_conformant";
|
|
39
|
+
readonly Unavailable: "unavailable";
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* EPCIS 2.0 disposition types.
|
|
43
|
+
*/
|
|
44
|
+
export type DispositionTypes = (typeof DispositionTypes)[keyof typeof DispositionTypes];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EPCIS Error types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const EpcisErrorTypes: {
|
|
5
|
+
readonly ValidationFailed: "epcisException:ValidationException";
|
|
6
|
+
readonly NoSuchResource: "epcisException:NoSuchResourceException";
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* EPCIS Error types.
|
|
10
|
+
*/
|
|
11
|
+
export type EpcisErrorTypes = (typeof EpcisErrorTypes)[keyof typeof EpcisErrorTypes];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IAggregationEvent } from "./IAggregationEvent";
|
|
2
|
+
import type { IAssociationEvent } from "./IAssociationEvent";
|
|
3
|
+
import type { IObjectEvent } from "./IObjectEvent";
|
|
4
|
+
/**
|
|
5
|
+
* The type that subsumes an EPCIS Event.
|
|
6
|
+
*/
|
|
7
|
+
export type EpcisEventUnionType = IObjectEvent | IAssociationEvent | IAggregationEvent;
|