@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,215 @@
|
|
|
1
|
+
# Class: Gs1IdentifiersValidation
|
|
2
|
+
|
|
3
|
+
Validation for GS1 identifiers.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### new Gs1IdentifiersValidation()
|
|
8
|
+
|
|
9
|
+
> **new Gs1IdentifiersValidation**(): [`Gs1IdentifiersValidation`](Gs1IdentifiersValidation.md)
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
[`Gs1IdentifiersValidation`](Gs1IdentifiersValidation.md)
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### epcId()
|
|
18
|
+
|
|
19
|
+
> `static` **epcId**(`propertyName`, `value`, `failures`): `value is string`
|
|
20
|
+
|
|
21
|
+
Validate if the property is a valid epc.
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### propertyName
|
|
26
|
+
|
|
27
|
+
`string`
|
|
28
|
+
|
|
29
|
+
The name of the property being validated.
|
|
30
|
+
|
|
31
|
+
##### value
|
|
32
|
+
|
|
33
|
+
`unknown`
|
|
34
|
+
|
|
35
|
+
The value to test.
|
|
36
|
+
|
|
37
|
+
##### failures
|
|
38
|
+
|
|
39
|
+
`IValidationFailure`[]
|
|
40
|
+
|
|
41
|
+
The list of failures to add to.
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
`value is string`
|
|
46
|
+
|
|
47
|
+
True if the value is valid epc.
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### epcIdGtin()
|
|
52
|
+
|
|
53
|
+
> `static` **epcIdGtin**(`propertyName`, `value`, `failures`): `value is string`
|
|
54
|
+
|
|
55
|
+
Validate if the property is a valid epc id gtin.
|
|
56
|
+
|
|
57
|
+
#### Parameters
|
|
58
|
+
|
|
59
|
+
##### propertyName
|
|
60
|
+
|
|
61
|
+
`string`
|
|
62
|
+
|
|
63
|
+
The name of the property being validated.
|
|
64
|
+
|
|
65
|
+
##### value
|
|
66
|
+
|
|
67
|
+
`unknown`
|
|
68
|
+
|
|
69
|
+
The value to test.
|
|
70
|
+
|
|
71
|
+
##### failures
|
|
72
|
+
|
|
73
|
+
`IValidationFailure`[]
|
|
74
|
+
|
|
75
|
+
The list of failures to add to.
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`value is string`
|
|
80
|
+
|
|
81
|
+
True if the value is valid epc.
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### epcIdGln()
|
|
86
|
+
|
|
87
|
+
> `static` **epcIdGln**(`propertyName`, `value`, `failures`): `value is string`
|
|
88
|
+
|
|
89
|
+
Validate if the property is a valid epc id gln.
|
|
90
|
+
|
|
91
|
+
#### Parameters
|
|
92
|
+
|
|
93
|
+
##### propertyName
|
|
94
|
+
|
|
95
|
+
`string`
|
|
96
|
+
|
|
97
|
+
The name of the property being validated.
|
|
98
|
+
|
|
99
|
+
##### value
|
|
100
|
+
|
|
101
|
+
`unknown`
|
|
102
|
+
|
|
103
|
+
The value to test.
|
|
104
|
+
|
|
105
|
+
##### failures
|
|
106
|
+
|
|
107
|
+
`IValidationFailure`[]
|
|
108
|
+
|
|
109
|
+
The list of failures to add to.
|
|
110
|
+
|
|
111
|
+
#### Returns
|
|
112
|
+
|
|
113
|
+
`value is string`
|
|
114
|
+
|
|
115
|
+
True if the value is valid epc.
|
|
116
|
+
|
|
117
|
+
***
|
|
118
|
+
|
|
119
|
+
### epcClass()
|
|
120
|
+
|
|
121
|
+
> `static` **epcClass**(`propertyName`, `value`, `failures`): `value is string`
|
|
122
|
+
|
|
123
|
+
Validate if the property is a valid epc class.
|
|
124
|
+
|
|
125
|
+
#### Parameters
|
|
126
|
+
|
|
127
|
+
##### propertyName
|
|
128
|
+
|
|
129
|
+
`string`
|
|
130
|
+
|
|
131
|
+
The name of the property being validated.
|
|
132
|
+
|
|
133
|
+
##### value
|
|
134
|
+
|
|
135
|
+
`unknown`
|
|
136
|
+
|
|
137
|
+
The value to test.
|
|
138
|
+
|
|
139
|
+
##### failures
|
|
140
|
+
|
|
141
|
+
`IValidationFailure`[]
|
|
142
|
+
|
|
143
|
+
The list of failures to add to.
|
|
144
|
+
|
|
145
|
+
#### Returns
|
|
146
|
+
|
|
147
|
+
`value is string`
|
|
148
|
+
|
|
149
|
+
True if the value is valid epc.
|
|
150
|
+
|
|
151
|
+
***
|
|
152
|
+
|
|
153
|
+
### extractEpcIdGtin()
|
|
154
|
+
|
|
155
|
+
> `static` **extractEpcIdGtin**(`epc`): `undefined` \| `string`
|
|
156
|
+
|
|
157
|
+
Extract the EPC gtin from the URI.
|
|
158
|
+
|
|
159
|
+
#### Parameters
|
|
160
|
+
|
|
161
|
+
##### epc
|
|
162
|
+
|
|
163
|
+
`string`
|
|
164
|
+
|
|
165
|
+
The uri to extract from.
|
|
166
|
+
|
|
167
|
+
#### Returns
|
|
168
|
+
|
|
169
|
+
`undefined` \| `string`
|
|
170
|
+
|
|
171
|
+
The extracted data or undefined.
|
|
172
|
+
|
|
173
|
+
***
|
|
174
|
+
|
|
175
|
+
### extractEpcIdGln()
|
|
176
|
+
|
|
177
|
+
> `static` **extractEpcIdGln**(`epc`): `undefined` \| `string`
|
|
178
|
+
|
|
179
|
+
Extract the EPC gln from the URI.
|
|
180
|
+
|
|
181
|
+
#### Parameters
|
|
182
|
+
|
|
183
|
+
##### epc
|
|
184
|
+
|
|
185
|
+
`string`
|
|
186
|
+
|
|
187
|
+
The uri to extract from.
|
|
188
|
+
|
|
189
|
+
#### Returns
|
|
190
|
+
|
|
191
|
+
`undefined` \| `string`
|
|
192
|
+
|
|
193
|
+
The extracted data or undefined.
|
|
194
|
+
|
|
195
|
+
***
|
|
196
|
+
|
|
197
|
+
### extractEpcClassUri()
|
|
198
|
+
|
|
199
|
+
> `static` **extractEpcClassUri**(`epc`): `undefined` \| [`IEPCClassUri`](../interfaces/IEPCClassUri.md)
|
|
200
|
+
|
|
201
|
+
Extract The EPC Class from the URI.
|
|
202
|
+
|
|
203
|
+
#### Parameters
|
|
204
|
+
|
|
205
|
+
##### epc
|
|
206
|
+
|
|
207
|
+
`string`
|
|
208
|
+
|
|
209
|
+
The uri to extract from.
|
|
210
|
+
|
|
211
|
+
#### Returns
|
|
212
|
+
|
|
213
|
+
`undefined` \| [`IEPCClassUri`](../interfaces/IEPCClassUri.md)
|
|
214
|
+
|
|
215
|
+
The extracted data or undefined.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Class: Gs1Is
|
|
2
|
+
|
|
3
|
+
Is checks for GS1 data.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### new Gs1Is()
|
|
8
|
+
|
|
9
|
+
> **new Gs1Is**(): [`Gs1Is`](Gs1Is.md)
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
[`Gs1Is`](Gs1Is.md)
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### isEpcHex()
|
|
18
|
+
|
|
19
|
+
> `static` **isEpcHex**(`value`): `boolean`
|
|
20
|
+
|
|
21
|
+
Is the value an EPC identifier.
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### value
|
|
26
|
+
|
|
27
|
+
`string`
|
|
28
|
+
|
|
29
|
+
The value to test.
|
|
30
|
+
|
|
31
|
+
#### Returns
|
|
32
|
+
|
|
33
|
+
`boolean`
|
|
34
|
+
|
|
35
|
+
True if the value is an epc.
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### isGeoUri()
|
|
40
|
+
|
|
41
|
+
> `static` **isGeoUri**(`value`): `boolean`
|
|
42
|
+
|
|
43
|
+
Is the value a valid geo uri https://en.wikipedia.org/wiki/Geo_URI_scheme.
|
|
44
|
+
|
|
45
|
+
#### Parameters
|
|
46
|
+
|
|
47
|
+
##### value
|
|
48
|
+
|
|
49
|
+
`string`
|
|
50
|
+
|
|
51
|
+
The value to check.
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`boolean`
|
|
56
|
+
|
|
57
|
+
True if the value matches a geo uri.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Class: Gs1Location
|
|
2
|
+
|
|
3
|
+
Interface describing a GS1 Location master data.
|
|
4
|
+
Spec https://www.gs1.org/sites/default/files/docs/epc/CBV-Standard-1-2-1-r-2017-05-05.pdf .
|
|
5
|
+
Section 10.2 .
|
|
6
|
+
|
|
7
|
+
## Constructors
|
|
8
|
+
|
|
9
|
+
### new Gs1Location()
|
|
10
|
+
|
|
11
|
+
> **new Gs1Location**(): [`Gs1Location`](Gs1Location.md)
|
|
12
|
+
|
|
13
|
+
#### Returns
|
|
14
|
+
|
|
15
|
+
[`Gs1Location`](Gs1Location.md)
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
### id
|
|
20
|
+
|
|
21
|
+
> **id**: `string`
|
|
22
|
+
|
|
23
|
+
The GS1 sgln identifier.
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### site?
|
|
28
|
+
|
|
29
|
+
> `optional` **site**: `string`
|
|
30
|
+
|
|
31
|
+
Identifies the site in which the location is contained.
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### sst?
|
|
36
|
+
|
|
37
|
+
> `optional` **sst**: [`SubSiteTypes`](../type-aliases/SubSiteTypes.md)
|
|
38
|
+
|
|
39
|
+
Sub site type describes the primary business function of the sub site location.
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
|
|
43
|
+
### ssa?
|
|
44
|
+
|
|
45
|
+
> `optional` **ssa**: [`SubSiteAttributes`](../type-aliases/SubSiteAttributes.md)
|
|
46
|
+
|
|
47
|
+
Sub site attribute further qualifies the business function of the sub site location.
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### ssd?
|
|
52
|
+
|
|
53
|
+
> `optional` **ssd**: `string`
|
|
54
|
+
|
|
55
|
+
Sub site detail provides additional proprietary information.
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### name?
|
|
60
|
+
|
|
61
|
+
> `optional` **name**: `string`
|
|
62
|
+
|
|
63
|
+
The name of the location.
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### streetAddressOne?
|
|
68
|
+
|
|
69
|
+
> `optional` **streetAddressOne**: `string`
|
|
70
|
+
|
|
71
|
+
The street address line 1.
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### streetAddressTwo?
|
|
76
|
+
|
|
77
|
+
> `optional` **streetAddressTwo**: `string`
|
|
78
|
+
|
|
79
|
+
The street address line 2.
|
|
80
|
+
|
|
81
|
+
***
|
|
82
|
+
|
|
83
|
+
### streetAddressThree?
|
|
84
|
+
|
|
85
|
+
> `optional` **streetAddressThree**: `string`
|
|
86
|
+
|
|
87
|
+
The street address line 3.
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
91
|
+
### city?
|
|
92
|
+
|
|
93
|
+
> `optional` **city**: `string`
|
|
94
|
+
|
|
95
|
+
City.
|
|
96
|
+
|
|
97
|
+
***
|
|
98
|
+
|
|
99
|
+
### state?
|
|
100
|
+
|
|
101
|
+
> `optional` **state**: `string`
|
|
102
|
+
|
|
103
|
+
State.
|
|
104
|
+
|
|
105
|
+
***
|
|
106
|
+
|
|
107
|
+
### postalCode?
|
|
108
|
+
|
|
109
|
+
> `optional` **postalCode**: `string`
|
|
110
|
+
|
|
111
|
+
Postal Code.
|
|
112
|
+
|
|
113
|
+
***
|
|
114
|
+
|
|
115
|
+
### countryCode?
|
|
116
|
+
|
|
117
|
+
> `optional` **countryCode**: `string`
|
|
118
|
+
|
|
119
|
+
Country Code The ISO 3166-1 alpha-2 code specifying the country for the address.
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### latitude?
|
|
124
|
+
|
|
125
|
+
> `optional` **latitude**: `number`
|
|
126
|
+
|
|
127
|
+
The latitude of the location in degrees.
|
|
128
|
+
|
|
129
|
+
***
|
|
130
|
+
|
|
131
|
+
### longitude?
|
|
132
|
+
|
|
133
|
+
> `optional` **longitude**: `number`
|
|
134
|
+
|
|
135
|
+
The longitude of the location in degrees.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Class: Gs1Validation
|
|
2
|
+
|
|
3
|
+
Validation for GS1 types.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### new Gs1Validation()
|
|
8
|
+
|
|
9
|
+
> **new Gs1Validation**(): [`Gs1Validation`](Gs1Validation.md)
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
[`Gs1Validation`](Gs1Validation.md)
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### locationMasterData()
|
|
18
|
+
|
|
19
|
+
> `static` **locationMasterData**(`propertyName`, `value`, `failures`, `container`?): `value is Gs1Location`
|
|
20
|
+
|
|
21
|
+
Validate if the property is a valid location.
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### propertyName
|
|
26
|
+
|
|
27
|
+
`string`
|
|
28
|
+
|
|
29
|
+
The name of the property being validated.
|
|
30
|
+
|
|
31
|
+
##### value
|
|
32
|
+
|
|
33
|
+
[`Gs1Location`](Gs1Location.md)
|
|
34
|
+
|
|
35
|
+
The value to test.
|
|
36
|
+
|
|
37
|
+
##### failures
|
|
38
|
+
|
|
39
|
+
`IValidationFailure`[]
|
|
40
|
+
|
|
41
|
+
The list of failures to add to.
|
|
42
|
+
|
|
43
|
+
##### container?
|
|
44
|
+
|
|
45
|
+
`unknown`
|
|
46
|
+
|
|
47
|
+
The object which contains this one.
|
|
48
|
+
|
|
49
|
+
#### Returns
|
|
50
|
+
|
|
51
|
+
`value is Gs1Location`
|
|
52
|
+
|
|
53
|
+
True if the value is a location.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @twin.org/standards-gs1
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
- [Gs1DataTypes](classes/Gs1DataTypes.md)
|
|
6
|
+
- [Gs1Location](classes/Gs1Location.md)
|
|
7
|
+
- [Gs1Identifiers](classes/Gs1Identifiers.md)
|
|
8
|
+
- [Gs1IdentifiersValidation](classes/Gs1IdentifiersValidation.md)
|
|
9
|
+
- [Gs1Is](classes/Gs1Is.md)
|
|
10
|
+
- [Gs1Validation](classes/Gs1Validation.md)
|
|
11
|
+
|
|
12
|
+
## Interfaces
|
|
13
|
+
|
|
14
|
+
- [IEPCClassUri](interfaces/IEPCClassUri.md)
|
|
15
|
+
- [IAggregationEvent](interfaces/IAggregationEvent.md)
|
|
16
|
+
- [IAssociationEvent](interfaces/IAssociationEvent.md)
|
|
17
|
+
- [IBizTransaction](interfaces/IBizTransaction.md)
|
|
18
|
+
- [IDestination](interfaces/IDestination.md)
|
|
19
|
+
- [IEpcisDocument](interfaces/IEpcisDocument.md)
|
|
20
|
+
- [IEpcisEvent](interfaces/IEpcisEvent.md)
|
|
21
|
+
- [IEpcisEventDetails](interfaces/IEpcisEventDetails.md)
|
|
22
|
+
- [IEpcisQuery](interfaces/IEpcisQuery.md)
|
|
23
|
+
- [IEpcisQueryDocument](interfaces/IEpcisQueryDocument.md)
|
|
24
|
+
- [IObjectEvent](interfaces/IObjectEvent.md)
|
|
25
|
+
- [IQuantity](interfaces/IQuantity.md)
|
|
26
|
+
- [ISensorElement](interfaces/ISensorElement.md)
|
|
27
|
+
- [ISensorMetadata](interfaces/ISensorMetadata.md)
|
|
28
|
+
- [ISensorReport](interfaces/ISensorReport.md)
|
|
29
|
+
- [ISimpleLocation](interfaces/ISimpleLocation.md)
|
|
30
|
+
- [ISource](interfaces/ISource.md)
|
|
31
|
+
|
|
32
|
+
## Type Aliases
|
|
33
|
+
|
|
34
|
+
- [ActionTypes](type-aliases/ActionTypes.md)
|
|
35
|
+
- [BizStepTypes](type-aliases/BizStepTypes.md)
|
|
36
|
+
- [DispositionTypes](type-aliases/DispositionTypes.md)
|
|
37
|
+
- [EpcisErrorTypes](type-aliases/EpcisErrorTypes.md)
|
|
38
|
+
- [EpcisEventUnionType](type-aliases/EpcisEventUnionType.md)
|
|
39
|
+
- [EventTypes](type-aliases/EventTypes.md)
|
|
40
|
+
- [Gs1IdTypes](type-aliases/Gs1IdTypes.md)
|
|
41
|
+
- [Gs1IdentifierTypes](type-aliases/Gs1IdentifierTypes.md)
|
|
42
|
+
- [Gs1Types](type-aliases/Gs1Types.md)
|
|
43
|
+
- [SubSiteAttributes](type-aliases/SubSiteAttributes.md)
|
|
44
|
+
- [SubSiteTypes](type-aliases/SubSiteTypes.md)
|
|
45
|
+
|
|
46
|
+
## Variables
|
|
47
|
+
|
|
48
|
+
- [ActionTypes](variables/ActionTypes.md)
|
|
49
|
+
- [BizStepTypes](variables/BizStepTypes.md)
|
|
50
|
+
- [DispositionTypes](variables/DispositionTypes.md)
|
|
51
|
+
- [EpcisErrorTypes](variables/EpcisErrorTypes.md)
|
|
52
|
+
- [EventTypes](variables/EventTypes.md)
|
|
53
|
+
- [Gs1IdTypes](variables/Gs1IdTypes.md)
|
|
54
|
+
- [Gs1IdentifierTypes](variables/Gs1IdentifierTypes.md)
|
|
55
|
+
- [Gs1Types](variables/Gs1Types.md)
|
|
56
|
+
- [SubSiteAttributes](variables/SubSiteAttributes.md)
|
|
57
|
+
- [SubSiteTypes](variables/SubSiteTypes.md)
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Interface: IAggregationEvent
|
|
2
|
+
|
|
3
|
+
Describes an AggregationEvent.
|
|
4
|
+
|
|
5
|
+
## Extends
|
|
6
|
+
|
|
7
|
+
- `IBaseAggregationEvent`
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### type
|
|
12
|
+
|
|
13
|
+
> **type**: `"AggregationEvent"`
|
|
14
|
+
|
|
15
|
+
The type.
|
|
16
|
+
|
|
17
|
+
#### Overrides
|
|
18
|
+
|
|
19
|
+
`IBaseAggregationEvent.type`
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### parentID?
|
|
24
|
+
|
|
25
|
+
> `optional` **parentID**: `string`
|
|
26
|
+
|
|
27
|
+
Parent is only optional when action is OBSERVE.
|
|
28
|
+
|
|
29
|
+
#### Inherited from
|
|
30
|
+
|
|
31
|
+
`IBaseAggregationEvent.parentID`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### childEPCs?
|
|
36
|
+
|
|
37
|
+
> `optional` **childEPCs**: `string`[]
|
|
38
|
+
|
|
39
|
+
The children EPC which can be empty when action is DELETE.
|
|
40
|
+
|
|
41
|
+
#### Inherited from
|
|
42
|
+
|
|
43
|
+
`IBaseAggregationEvent.childEPCs`
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### childQuantityList?
|
|
48
|
+
|
|
49
|
+
> `optional` **childQuantityList**: [`IQuantity`](IQuantity.md)[]
|
|
50
|
+
|
|
51
|
+
Quantity in case of class-level event visibility data.
|
|
52
|
+
|
|
53
|
+
#### Inherited from
|
|
54
|
+
|
|
55
|
+
`IBaseAggregationEvent.childQuantityList`
|
|
56
|
+
|
|
57
|
+
***
|
|
58
|
+
|
|
59
|
+
### @context?
|
|
60
|
+
|
|
61
|
+
> `optional` **@context**: `IJsonLdContextDefinition`
|
|
62
|
+
|
|
63
|
+
JSON-LD @context.
|
|
64
|
+
|
|
65
|
+
#### Inherited from
|
|
66
|
+
|
|
67
|
+
`IBaseAggregationEvent.@context`
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### id?
|
|
72
|
+
|
|
73
|
+
> `optional` **id**: `string`
|
|
74
|
+
|
|
75
|
+
UUID of the event.
|
|
76
|
+
|
|
77
|
+
#### Inherited from
|
|
78
|
+
|
|
79
|
+
`IBaseAggregationEvent.id`
|
|
80
|
+
|
|
81
|
+
***
|
|
82
|
+
|
|
83
|
+
### eventID?
|
|
84
|
+
|
|
85
|
+
> `optional` **eventID**: `string`
|
|
86
|
+
|
|
87
|
+
The id of the event. Marked here as optional as we usually won't store it on Tangle.
|
|
88
|
+
|
|
89
|
+
#### Inherited from
|
|
90
|
+
|
|
91
|
+
`IBaseAggregationEvent.eventID`
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
### eventTime
|
|
96
|
+
|
|
97
|
+
> **eventTime**: `string`
|
|
98
|
+
|
|
99
|
+
Timestamp in UTC.
|
|
100
|
+
|
|
101
|
+
#### Inherited from
|
|
102
|
+
|
|
103
|
+
`IBaseAggregationEvent.eventTime`
|
|
104
|
+
|
|
105
|
+
***
|
|
106
|
+
|
|
107
|
+
### eventTimeZoneOffset
|
|
108
|
+
|
|
109
|
+
> **eventTimeZoneOffset**: `string`
|
|
110
|
+
|
|
111
|
+
Timezone offset. Useful if we want to represent timestamp in local timezone.
|
|
112
|
+
|
|
113
|
+
#### Inherited from
|
|
114
|
+
|
|
115
|
+
`IBaseAggregationEvent.eventTimeZoneOffset`
|
|
116
|
+
|
|
117
|
+
***
|
|
118
|
+
|
|
119
|
+
### recordTime?
|
|
120
|
+
|
|
121
|
+
> `optional` **recordTime**: `string`
|
|
122
|
+
|
|
123
|
+
When the event was recorded. It will be automatically generated.
|
|
124
|
+
|
|
125
|
+
#### Inherited from
|
|
126
|
+
|
|
127
|
+
`IBaseAggregationEvent.recordTime`
|
|
128
|
+
|
|
129
|
+
***
|
|
130
|
+
|
|
131
|
+
### sourceList?
|
|
132
|
+
|
|
133
|
+
> `optional` **sourceList**: [`ISource`](ISource.md)[]
|
|
134
|
+
|
|
135
|
+
Source list. Semantics according to EPCIS standard.
|
|
136
|
+
|
|
137
|
+
#### Inherited from
|
|
138
|
+
|
|
139
|
+
`IBaseAggregationEvent.sourceList`
|
|
140
|
+
|
|
141
|
+
***
|
|
142
|
+
|
|
143
|
+
### destinationList?
|
|
144
|
+
|
|
145
|
+
> `optional` **destinationList**: [`IDestination`](IDestination.md)[]
|
|
146
|
+
|
|
147
|
+
Destination list. Semantics according to EPCIS standard.
|
|
148
|
+
|
|
149
|
+
#### Inherited from
|
|
150
|
+
|
|
151
|
+
`IBaseAggregationEvent.destinationList`
|
|
152
|
+
|
|
153
|
+
***
|
|
154
|
+
|
|
155
|
+
### action
|
|
156
|
+
|
|
157
|
+
> **action**: [`ActionTypes`](../type-aliases/ActionTypes.md)
|
|
158
|
+
|
|
159
|
+
Action: ADD, OBSERVE, DELETE.
|
|
160
|
+
|
|
161
|
+
#### Inherited from
|
|
162
|
+
|
|
163
|
+
`IBaseAggregationEvent.action`
|
|
164
|
+
|
|
165
|
+
***
|
|
166
|
+
|
|
167
|
+
### readPoint?
|
|
168
|
+
|
|
169
|
+
> `optional` **readPoint**: [`ISimpleLocation`](ISimpleLocation.md)
|
|
170
|
+
|
|
171
|
+
The location of reading point.
|
|
172
|
+
|
|
173
|
+
#### Inherited from
|
|
174
|
+
|
|
175
|
+
`IBaseAggregationEvent.readPoint`
|
|
176
|
+
|
|
177
|
+
***
|
|
178
|
+
|
|
179
|
+
### bizLocation?
|
|
180
|
+
|
|
181
|
+
> `optional` **bizLocation**: [`ISimpleLocation`](ISimpleLocation.md)
|
|
182
|
+
|
|
183
|
+
The biz location where the item ends up.
|
|
184
|
+
|
|
185
|
+
#### Inherited from
|
|
186
|
+
|
|
187
|
+
`IBaseAggregationEvent.bizLocation`
|
|
188
|
+
|
|
189
|
+
***
|
|
190
|
+
|
|
191
|
+
### bizStep?
|
|
192
|
+
|
|
193
|
+
> `optional` **bizStep**: [`BizStepTypes`](../type-aliases/BizStepTypes.md)
|
|
194
|
+
|
|
195
|
+
The business step as per EPCIS.
|
|
196
|
+
|
|
197
|
+
#### Inherited from
|
|
198
|
+
|
|
199
|
+
`IBaseAggregationEvent.bizStep`
|
|
200
|
+
|
|
201
|
+
***
|
|
202
|
+
|
|
203
|
+
### disposition?
|
|
204
|
+
|
|
205
|
+
> `optional` **disposition**: [`DispositionTypes`](../type-aliases/DispositionTypes.md)
|
|
206
|
+
|
|
207
|
+
The disposition as per EPCIS.
|
|
208
|
+
|
|
209
|
+
#### Inherited from
|
|
210
|
+
|
|
211
|
+
`IBaseAggregationEvent.disposition`
|
|
212
|
+
|
|
213
|
+
***
|
|
214
|
+
|
|
215
|
+
### bizTransactionList?
|
|
216
|
+
|
|
217
|
+
> `optional` **bizTransactionList**: [`IBizTransaction`](IBizTransaction.md)[]
|
|
218
|
+
|
|
219
|
+
The list of related business transactions.
|
|
220
|
+
|
|
221
|
+
#### Inherited from
|
|
222
|
+
|
|
223
|
+
`IBaseAggregationEvent.bizTransactionList`
|