@twin.org/standards-vda 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.
Files changed (36) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +21 -0
  3. package/dist/cjs/index.cjs +334 -0
  4. package/dist/esm/index.mjs +327 -0
  5. package/dist/types/identifiers/vdaIdentifiers.d.ts +9 -0
  6. package/dist/types/index.d.ts +11 -0
  7. package/dist/types/models/IVdaBizLocation.d.ts +14 -0
  8. package/dist/types/models/IVdaCommon.d.ts +13 -0
  9. package/dist/types/models/IVdaObjectIdentifier.d.ts +18 -0
  10. package/dist/types/models/IVdaReadPoint.d.ts +22 -0
  11. package/dist/types/models/IVdaUriPlates.d.ts +25 -0
  12. package/dist/types/models/vdaIdTypes.d.ts +17 -0
  13. package/dist/types/models/vdaIdentifierTypes.d.ts +21 -0
  14. package/dist/types/models/vdaUriIdentifiers.d.ts +53 -0
  15. package/dist/types/models/vdaUriPackages.d.ts +29 -0
  16. package/dist/types/utils/vdaIdentifiersValidation.d.ts +66 -0
  17. package/docs/changelog.md +5 -0
  18. package/docs/examples.md +1 -0
  19. package/docs/reference/classes/VdaIdentifiers.md +25 -0
  20. package/docs/reference/classes/VdaIdentifiersValidation.md +237 -0
  21. package/docs/reference/index.md +28 -0
  22. package/docs/reference/interfaces/IVdaBizLocation.md +47 -0
  23. package/docs/reference/interfaces/IVdaCommon.md +25 -0
  24. package/docs/reference/interfaces/IVdaObjectIdentifier.md +55 -0
  25. package/docs/reference/interfaces/IVdaReadPoint.md +63 -0
  26. package/docs/reference/interfaces/IVdaUriPlates.md +43 -0
  27. package/docs/reference/type-aliases/VdaIdTypes.md +5 -0
  28. package/docs/reference/type-aliases/VdaIdentifierTypes.md +5 -0
  29. package/docs/reference/type-aliases/VdaUriIdentifiers.md +5 -0
  30. package/docs/reference/type-aliases/VdaUriPackages.md +5 -0
  31. package/docs/reference/variables/VdaIdTypes.md +19 -0
  32. package/docs/reference/variables/VdaIdentifierTypes.md +25 -0
  33. package/docs/reference/variables/VdaUriIdentifiers.md +73 -0
  34. package/docs/reference/variables/VdaUriPackages.md +37 -0
  35. package/locales/en.json +1 -0
  36. package/package.json +41 -0
@@ -0,0 +1,237 @@
1
+ # Class: VdaIdentifiersValidation
2
+
3
+ Validation for identifier types for VDA.
4
+
5
+ ## Constructors
6
+
7
+ ### new VdaIdentifiersValidation()
8
+
9
+ > **new VdaIdentifiersValidation**(): [`VdaIdentifiersValidation`](VdaIdentifiersValidation.md)
10
+
11
+ #### Returns
12
+
13
+ [`VdaIdentifiersValidation`](VdaIdentifiersValidation.md)
14
+
15
+ ## Methods
16
+
17
+ ### jaifId()
18
+
19
+ > `static` **jaifId**(`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
+ ### jaifIdLocation()
52
+
53
+ > `static` **jaifIdLocation**(`propertyName`, `value`, `failures`): `value is string`
54
+
55
+ Validate if the property is a valid epc vda id location.
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
+ ### jaifIdItem()
86
+
87
+ > `static` **jaifIdItem**(`propertyName`, `value`, `failures`): `value is string`
88
+
89
+ Validate if the property is a valid epc vda id item.
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
+ ### uriPlp()
120
+
121
+ > `static` **uriPlp**(`propertyName`, `value`, `failures`): `value is string`
122
+
123
+ Validate if the property is a valid epc id gtin.
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
+ ### extractReadPoint()
154
+
155
+ > `static` **extractReadPoint**(`urn`): `undefined` \| [`IVdaReadPoint`](../interfaces/IVdaReadPoint.md)
156
+
157
+ Function to validate and extract RFID read points URNs.
158
+
159
+ #### Parameters
160
+
161
+ ##### urn
162
+
163
+ `string`
164
+
165
+ The URN to validate.
166
+
167
+ #### Returns
168
+
169
+ `undefined` \| [`IVdaReadPoint`](../interfaces/IVdaReadPoint.md)
170
+
171
+ The extracted read point object or undefined.
172
+
173
+ ***
174
+
175
+ ### extractBizLocation()
176
+
177
+ > `static` **extractBizLocation**(`urn`): `undefined` \| [`IVdaBizLocation`](../interfaces/IVdaBizLocation.md)
178
+
179
+ Function to validate and extract Biz Location URN.
180
+
181
+ #### Parameters
182
+
183
+ ##### urn
184
+
185
+ `string`
186
+
187
+ The URN to validate.
188
+
189
+ #### Returns
190
+
191
+ `undefined` \| [`IVdaBizLocation`](../interfaces/IVdaBizLocation.md)
192
+
193
+ The extracted biz location object or undefined.
194
+
195
+ ***
196
+
197
+ ### extractUriPlp()
198
+
199
+ > `static` **extractUriPlp**(`id`): `undefined` \| [`IVdaUriPlates`](../interfaces/IVdaUriPlates.md)
200
+
201
+ Function to validate VDA URI Packages License Plates.
202
+
203
+ #### Parameters
204
+
205
+ ##### id
206
+
207
+ `string`
208
+
209
+ The VDA URI to validate.
210
+
211
+ #### Returns
212
+
213
+ `undefined` \| [`IVdaUriPlates`](../interfaces/IVdaUriPlates.md)
214
+
215
+ The VDA URI object or undefined.
216
+
217
+ ***
218
+
219
+ ### extractIdentifier()
220
+
221
+ > `static` **extractIdentifier**(`epc`): `undefined` \| [`IVdaObjectIdentifier`](../interfaces/IVdaObjectIdentifier.md)
222
+
223
+ VDA object identifier verifier function.
224
+
225
+ #### Parameters
226
+
227
+ ##### epc
228
+
229
+ `string`
230
+
231
+ The epc to validate.
232
+
233
+ #### Returns
234
+
235
+ `undefined` \| [`IVdaObjectIdentifier`](../interfaces/IVdaObjectIdentifier.md)
236
+
237
+ The VDA object or undefined.
@@ -0,0 +1,28 @@
1
+ # @twin.org/standards-vda
2
+
3
+ ## Classes
4
+
5
+ - [VdaIdentifiers](classes/VdaIdentifiers.md)
6
+ - [VdaIdentifiersValidation](classes/VdaIdentifiersValidation.md)
7
+
8
+ ## Interfaces
9
+
10
+ - [IVdaBizLocation](interfaces/IVdaBizLocation.md)
11
+ - [IVdaCommon](interfaces/IVdaCommon.md)
12
+ - [IVdaObjectIdentifier](interfaces/IVdaObjectIdentifier.md)
13
+ - [IVdaReadPoint](interfaces/IVdaReadPoint.md)
14
+ - [IVdaUriPlates](interfaces/IVdaUriPlates.md)
15
+
16
+ ## Type Aliases
17
+
18
+ - [VdaIdTypes](type-aliases/VdaIdTypes.md)
19
+ - [VdaIdentifierTypes](type-aliases/VdaIdentifierTypes.md)
20
+ - [VdaUriIdentifiers](type-aliases/VdaUriIdentifiers.md)
21
+ - [VdaUriPackages](type-aliases/VdaUriPackages.md)
22
+
23
+ ## Variables
24
+
25
+ - [VdaIdTypes](variables/VdaIdTypes.md)
26
+ - [VdaIdentifierTypes](variables/VdaIdentifierTypes.md)
27
+ - [VdaUriIdentifiers](variables/VdaUriIdentifiers.md)
28
+ - [VdaUriPackages](variables/VdaUriPackages.md)
@@ -0,0 +1,47 @@
1
+ # Interface: IVdaBizLocation
2
+
3
+ Interface for a VDA Biz Location.
4
+
5
+ ## Extends
6
+
7
+ - [`IVdaCommon`](IVdaCommon.md)
8
+
9
+ ## Properties
10
+
11
+ ### dunsNumber
12
+
13
+ > **dunsNumber**: `string`
14
+
15
+ DUNS Number.
16
+
17
+ ***
18
+
19
+ ### plantBuildingFloorRoom
20
+
21
+ > **plantBuildingFloorRoom**: `string`
22
+
23
+ Plant Building Floor and Room.
24
+
25
+ ***
26
+
27
+ ### dataIdentifier
28
+
29
+ > **dataIdentifier**: `string`
30
+
31
+ Data Identifier (DI).
32
+
33
+ #### Inherited from
34
+
35
+ [`IVdaCommon`](IVdaCommon.md).[`dataIdentifier`](IVdaCommon.md#dataidentifier)
36
+
37
+ ***
38
+
39
+ ### issuingAgencyCode
40
+
41
+ > **issuingAgencyCode**: `string`
42
+
43
+ Issuing Agency Code (IAC).
44
+
45
+ #### Inherited from
46
+
47
+ [`IVdaCommon`](IVdaCommon.md).[`issuingAgencyCode`](IVdaCommon.md#issuingagencycode)
@@ -0,0 +1,25 @@
1
+ # Interface: IVdaCommon
2
+
3
+ Common VDA interface.
4
+
5
+ ## Extended by
6
+
7
+ - [`IVdaBizLocation`](IVdaBizLocation.md)
8
+ - [`IVdaObjectIdentifier`](IVdaObjectIdentifier.md)
9
+ - [`IVdaReadPoint`](IVdaReadPoint.md)
10
+
11
+ ## Properties
12
+
13
+ ### dataIdentifier
14
+
15
+ > **dataIdentifier**: `string`
16
+
17
+ Data Identifier (DI).
18
+
19
+ ***
20
+
21
+ ### issuingAgencyCode
22
+
23
+ > **issuingAgencyCode**: `string`
24
+
25
+ Issuing Agency Code (IAC).
@@ -0,0 +1,55 @@
1
+ # Interface: IVdaObjectIdentifier
2
+
3
+ Interface for VDA object identifier.
4
+
5
+ ## Extends
6
+
7
+ - [`IVdaCommon`](IVdaCommon.md)
8
+
9
+ ## Properties
10
+
11
+ ### dataIdentifier
12
+
13
+ > **dataIdentifier**: `string`
14
+
15
+ Data Identifier (DI).
16
+
17
+ #### Inherited from
18
+
19
+ [`IVdaCommon`](IVdaCommon.md).[`dataIdentifier`](IVdaCommon.md#dataidentifier)
20
+
21
+ ***
22
+
23
+ ### issuingAgencyCode
24
+
25
+ > **issuingAgencyCode**: `string`
26
+
27
+ Issuing Agency Code (IAC).
28
+
29
+ #### Inherited from
30
+
31
+ [`IVdaCommon`](IVdaCommon.md).[`issuingAgencyCode`](IVdaCommon.md#issuingagencycode)
32
+
33
+ ***
34
+
35
+ ### companyIdNumber
36
+
37
+ > **companyIdNumber**: `string`
38
+
39
+ The company identification number.
40
+
41
+ ***
42
+
43
+ ### partNumber
44
+
45
+ > **partNumber**: `string`
46
+
47
+ The part number.
48
+
49
+ ***
50
+
51
+ ### partSerialNumber
52
+
53
+ > **partSerialNumber**: `string`
54
+
55
+ The part serial number.
@@ -0,0 +1,63 @@
1
+ # Interface: IVdaReadPoint
2
+
3
+ Interface for VDA read point.
4
+
5
+ ## Extends
6
+
7
+ - [`IVdaCommon`](IVdaCommon.md)
8
+
9
+ ## Properties
10
+
11
+ ### dataIdentifier
12
+
13
+ > **dataIdentifier**: `string`
14
+
15
+ Data Identifier (DI).
16
+
17
+ #### Inherited from
18
+
19
+ [`IVdaCommon`](IVdaCommon.md).[`dataIdentifier`](IVdaCommon.md#dataidentifier)
20
+
21
+ ***
22
+
23
+ ### issuingAgencyCode
24
+
25
+ > **issuingAgencyCode**: `string`
26
+
27
+ Issuing Agency Code (IAC).
28
+
29
+ #### Inherited from
30
+
31
+ [`IVdaCommon`](IVdaCommon.md).[`issuingAgencyCode`](IVdaCommon.md#issuingagencycode)
32
+
33
+ ***
34
+
35
+ ### dunsNumber
36
+
37
+ > **dunsNumber**: `string`
38
+
39
+ DUNS Number.
40
+
41
+ ***
42
+
43
+ ### plant
44
+
45
+ > **plant**: `string`
46
+
47
+ Plant.
48
+
49
+ ***
50
+
51
+ ### costCenter
52
+
53
+ > **costCenter**: `string`
54
+
55
+ Cost Center.
56
+
57
+ ***
58
+
59
+ ### serialNumber
60
+
61
+ > **serialNumber**: `string`
62
+
63
+ Device Name/Serial Number.
@@ -0,0 +1,43 @@
1
+ # Interface: IVdaUriPlates
2
+
3
+ Interface for VDA URI plates.
4
+
5
+ ## Properties
6
+
7
+ ### applicationFamilyIdentifier
8
+
9
+ > **applicationFamilyIdentifier**: `string`
10
+
11
+ Application family identifier A2 or A5.
12
+
13
+ ***
14
+
15
+ ### typeOfPackage
16
+
17
+ > **typeOfPackage**: `string`
18
+
19
+ The type of package 2. Alphanumeric characters.
20
+
21
+ ***
22
+
23
+ ### issuingAgencyCode
24
+
25
+ > **issuingAgencyCode**: `string`
26
+
27
+ The issuing agency. 2 alphanumeric characters.
28
+
29
+ ***
30
+
31
+ ### companyIdentificationNumber
32
+
33
+ > **companyIdentificationNumber**: `string`
34
+
35
+ The company identification number.
36
+
37
+ ***
38
+
39
+ ### packageSerialNumber
40
+
41
+ > **packageSerialNumber**: `string`
42
+
43
+ The serial number of the package.
@@ -0,0 +1,5 @@
1
+ # Type Alias: VdaIdTypes
2
+
3
+ > **VdaIdTypes**: *typeof* [`VdaIdTypes`](../variables/VdaIdTypes.md)\[keyof *typeof* [`VdaIdTypes`](../variables/VdaIdTypes.md)\]
4
+
5
+ VDA identifiers.
@@ -0,0 +1,5 @@
1
+ # Type Alias: VdaIdentifierTypes
2
+
3
+ > **VdaIdentifierTypes**: *typeof* [`VdaIdentifierTypes`](../variables/VdaIdentifierTypes.md)\[keyof *typeof* [`VdaIdentifierTypes`](../variables/VdaIdentifierTypes.md)\]
4
+
5
+ The types of VDA Identifier data.
@@ -0,0 +1,5 @@
1
+ # Type Alias: VdaUriIdentifiers
2
+
3
+ > **VdaUriIdentifiers**: *typeof* [`VdaUriIdentifiers`](../variables/VdaUriIdentifiers.md)\[keyof *typeof* [`VdaUriIdentifiers`](../variables/VdaUriIdentifiers.md)\]
4
+
5
+ VDA URI Packages License Plates identifiers.
@@ -0,0 +1,5 @@
1
+ # Type Alias: VdaUriPackages
2
+
3
+ > **VdaUriPackages**: *typeof* [`VdaUriPackages`](../variables/VdaUriPackages.md)\[keyof *typeof* [`VdaUriPackages`](../variables/VdaUriPackages.md)\]
4
+
5
+ VDA URI Packages License Plates identifiers.
@@ -0,0 +1,19 @@
1
+ # Variable: VdaIdTypes
2
+
3
+ > `const` **VdaIdTypes**: `object`
4
+
5
+ VDA identifiers.
6
+
7
+ ## Type declaration
8
+
9
+ ### Obj
10
+
11
+ > `readonly` **Obj**: `"obj"` = `"obj"`
12
+
13
+ Object.
14
+
15
+ ### Loc
16
+
17
+ > `readonly` **Loc**: `"loc"` = `"loc"`
18
+
19
+ Location.
@@ -0,0 +1,25 @@
1
+ # Variable: VdaIdentifierTypes
2
+
3
+ > `const` **VdaIdentifierTypes**: `object`
4
+
5
+ The types of VDA Identifier data.
6
+
7
+ ## Type declaration
8
+
9
+ ### JaifId
10
+
11
+ > `readonly` **JaifId**: `"jaif:id"` = `"jaif:id"`
12
+
13
+ Identifier Joint Automotive Industry Format namespace.
14
+
15
+ ### JaifLocation
16
+
17
+ > `readonly` **JaifLocation**: `"jaif:id@location"` = `"jaif:id@location"`
18
+
19
+ Specific extended namespace for location validation.
20
+
21
+ ### JaifItem
22
+
23
+ > `readonly` **JaifItem**: `"jaif:id@item"` = `"jaif:id@item"`
24
+
25
+ Specific extended namespace for item validation.
@@ -0,0 +1,73 @@
1
+ # Variable: VdaUriIdentifiers
2
+
3
+ > `const` **VdaUriIdentifiers**: `object`
4
+
5
+ VDA URI Packages License Plates identifiers.
6
+
7
+ ## Type declaration
8
+
9
+ ### RfidProductTagging
10
+
11
+ > `readonly` **RfidProductTagging**: `"A1"` = `"A1"`
12
+
13
+ ISO 17367 Supply chain applications for RFID - Product tagging.
14
+
15
+ ### RfidTransportUnit
16
+
17
+ > `readonly` **RfidTransportUnit**: `"A2"` = `"A2"`
18
+
19
+ ISO 17365 Supply chain applications for RFID - Transport unit.
20
+
21
+ ### RfidReturnableTransportItem
22
+
23
+ > `readonly` **RfidReturnableTransportItem**: `"A3"` = `"A3"`
24
+
25
+ ISO 17364 Supply chain applications for RFID - Returnable transport item.
26
+
27
+ ### RfidProductTaggingHazmat
28
+
29
+ > `readonly` **RfidProductTaggingHazmat**: `"A4"` = `"A4"`
30
+
31
+ ISO 17367 Supply chain applications for RFID - Product tagging (HazMat).
32
+
33
+ ### RfidProductPackaging
34
+
35
+ > `readonly` **RfidProductPackaging**: `"A5"` = `"A5"`
36
+
37
+ ISO 17366 Supply chain applications for RFID - Product packaging.
38
+
39
+ ### RfidProductPackagingHazmat
40
+
41
+ > `readonly` **RfidProductPackagingHazmat**: `"A6"` = `"A6"`
42
+
43
+ ISO 17366 Supply chain applications for RFID - Product packaging (HazMat).
44
+
45
+ ### RfidTransportUnitHazmat
46
+
47
+ > `readonly` **RfidTransportUnitHazmat**: `"A7"` = `"A7"`
48
+
49
+ ISO 17365 Supply chain applications for RFID - Transport unit (HazMat).
50
+
51
+ ### RfidReturnableTransportItemHazmat
52
+
53
+ > `readonly` **RfidReturnableTransportItemHazmat**: `"A8"` = `"A8"`
54
+
55
+ ISO 17364 Supply chain applications for RFID - Returnable transport item (Hazmat).
56
+
57
+ ### RfidFreightContainer
58
+
59
+ > `readonly` **RfidFreightContainer**: `"A9"` = `"A9"`
60
+
61
+ ISO 17363 Supply chain applications for RFID - Freight container.
62
+
63
+ ### RfidFreightContainerHazmat
64
+
65
+ > `readonly` **RfidFreightContainerHazmat**: `"AA"` = `"AA"`
66
+
67
+ ISO 17363 Supply chain applications for RFID - Freight container (HazMat).
68
+
69
+ ### VehicleIdentificationNumber
70
+
71
+ > `readonly` **VehicleIdentificationNumber**: `"90"` = `"90"`
72
+
73
+ Vehicle identified with the Vehicle Identification Number (VIN) as defined in ISO 3779.
@@ -0,0 +1,37 @@
1
+ # Variable: VdaUriPackages
2
+
3
+ > `const` **VdaUriPackages**: `object`
4
+
5
+ VDA URI Packages License Plates identifiers.
6
+
7
+ ## Type declaration
8
+
9
+ ### Package1J
10
+
11
+ > `readonly` **Package1J**: `"1J"` = `"1J"`
12
+
13
+ Unique package ID of inner packaging (Single Label).
14
+
15
+ ### Package3J
16
+
17
+ > `readonly` **Package3J**: `"3J"` = `"3J"`
18
+
19
+ Unique package ID of JIS loading unit with compartments.
20
+
21
+ ### Package4J
22
+
23
+ > `readonly` **Package4J**: `"4J"` = `"4J"`
24
+
25
+ Unique package ID of JIS loading unit with 1...n JIS packages.
26
+
27
+ ### Package5J
28
+
29
+ > `readonly` **Package5J**: `"5J"` = `"5J"`
30
+
31
+ Unique package ID of mixed loading unit with intermediate packaging level (mixed master).
32
+
33
+ ### Package67
34
+
35
+ > `readonly` **Package67**: `"6J"` = `"6J"`
36
+
37
+ Unique package ID of loading unit or intermediate packaging containing identical parts.
@@ -0,0 +1 @@
1
+ {}