@open-dpp/dto 2.6.0 → 2.8.0
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/aas/submodel-base/create-group-from-column-schema.d.ts +61 -0
- package/dist/aas/submodel-base/create-group-from-column-schema.d.ts.map +1 -0
- package/dist/aas/submodel-base/create-group-from-column-schema.js +9 -0
- package/dist/activity-history/activity-history.dto.d.ts +47 -28
- package/dist/activity-history/activity-history.dto.d.ts.map +1 -1
- package/dist/activity-history/activity-types.dto.d.ts +10 -8
- package/dist/activity-history/activity-types.dto.d.ts.map +1 -1
- package/dist/activity-history/activity-types.dto.js +5 -4
- package/dist/activity-history/change-event-types.dto.d.ts +8 -0
- package/dist/activity-history/change-event-types.dto.d.ts.map +1 -1
- package/dist/activity-history/change-event-types.dto.js +4 -0
- package/dist/api-version.dto.d.ts +14 -0
- package/dist/api-version.dto.d.ts.map +1 -0
- package/dist/api-version.dto.js +12 -0
- package/dist/digital-product-document/digital-product-document.dto.d.ts +11 -0
- package/dist/digital-product-document/digital-product-document.dto.d.ts.map +1 -0
- package/dist/digital-product-document/digital-product-document.dto.js +9 -0
- package/dist/digital-product-document/digital-product-document.schemas.d.ts.map +1 -0
- package/dist/index.d.ts +16 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -1
- package/dist/organizations/member.dto.d.ts +8 -2
- package/dist/organizations/member.dto.d.ts.map +1 -1
- package/dist/organizations/member.dto.js +7 -1
- package/dist/passports/passport.dto.js +1 -1
- package/dist/permalinks/permalink.dto.js +1 -1
- package/dist/presentation-configurations/presentation-configuration.dto.d.ts +0 -9
- package/dist/presentation-configurations/presentation-configuration.dto.d.ts.map +1 -1
- package/dist/presentation-configurations/presentation-configuration.dto.js +5 -9
- package/dist/shared/filter.dto.js +1 -1
- package/dist/templates/template.dto.js +1 -1
- package/dist/unique-product-identifiers/gs1/gs1-ai-constants.d.ts +574 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-constants.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-constants.js +570 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-description.d.ts +15 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-description.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-description.js +47 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-i18n.d.ts +27 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-i18n.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-i18n.js +523 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-table.d.ts +47 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-table.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-ai-table.js +4363 -0
- package/dist/unique-product-identifiers/gs1/gs1-data-attributes.dto.d.ts +540 -0
- package/dist/unique-product-identifiers/gs1/gs1-data-attributes.dto.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-data-attributes.dto.js +62 -0
- package/dist/unique-product-identifiers/gs1/gs1-digital-link.d.ts +158 -0
- package/dist/unique-product-identifiers/gs1/gs1-digital-link.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-digital-link.js +321 -0
- package/dist/unique-product-identifiers/gs1/gs1-identity.dto.d.ts +39 -0
- package/dist/unique-product-identifiers/gs1/gs1-identity.dto.d.ts.map +1 -0
- package/dist/unique-product-identifiers/gs1/gs1-identity.dto.js +40 -0
- package/dist/unique-product-identifiers/unique-product-identifier-type.d.ts +36 -0
- package/dist/unique-product-identifiers/unique-product-identifier-type.d.ts.map +1 -0
- package/dist/unique-product-identifiers/unique-product-identifier-type.js +27 -0
- package/dist/users/create-user.dto.d.ts +2 -2
- package/dist/users/create-user.dto.js +2 -2
- package/dist/users/me.dto.d.ts +24 -0
- package/dist/users/me.dto.d.ts.map +1 -0
- package/dist/users/me.dto.js +10 -0
- package/dist/users/pending-email-change.dto.d.ts +7 -0
- package/dist/users/pending-email-change.dto.d.ts.map +1 -0
- package/dist/users/pending-email-change.dto.js +8 -0
- package/dist/users/request-email-change.dto.d.ts +7 -0
- package/dist/users/request-email-change.dto.d.ts.map +1 -0
- package/dist/users/request-email-change.dto.js +8 -0
- package/dist/users/update-profile.dto.d.ts +11 -0
- package/dist/users/update-profile.dto.d.ts.map +1 -0
- package/dist/users/update-profile.dto.js +12 -0
- package/dist/users/user.dto.d.ts +16 -9
- package/dist/users/user.dto.d.ts.map +1 -1
- package/dist/users/user.dto.js +14 -1
- package/package.json +7 -5
- package/src/aas/submodel-base/create-group-from-column-schema.ts +9 -0
- package/src/activity-history/activity-types.dto.ts +5 -4
- package/src/activity-history/change-event-types.dto.ts +4 -0
- package/src/api-version.dto.ts +13 -0
- package/src/digital-product-document/digital-product-document.dto.ts +8 -0
- package/src/index.ts +16 -1
- package/src/organizations/member.dto.ts +11 -2
- package/src/passports/passport.dto.ts +1 -1
- package/src/permalinks/permalink.dto.ts +1 -1
- package/src/presentation-configurations/presentation-configuration.dto.spec.ts +2 -2
- package/src/presentation-configurations/presentation-configuration.dto.ts +4 -11
- package/src/shared/filter.dto.ts +1 -1
- package/src/shared/permalink-base-url.schema.spec.ts +8 -6
- package/src/templates/template.dto.ts +1 -1
- package/src/unique-product-identifiers/gs1/gs1-ai-constants.spec.ts +99 -0
- package/src/unique-product-identifiers/gs1/gs1-ai-constants.ts +581 -0
- package/src/unique-product-identifiers/gs1/gs1-ai-description.spec.ts +64 -0
- package/src/unique-product-identifiers/gs1/gs1-ai-description.ts +47 -0
- package/src/unique-product-identifiers/gs1/gs1-ai-i18n.ts +530 -0
- package/src/unique-product-identifiers/gs1/gs1-ai-table.spec.ts +86 -0
- package/src/unique-product-identifiers/gs1/gs1-ai-table.ts +4389 -0
- package/src/unique-product-identifiers/gs1/gs1-data-attributes.dto.spec.ts +28 -0
- package/src/unique-product-identifiers/gs1/gs1-data-attributes.dto.ts +67 -0
- package/src/unique-product-identifiers/gs1/gs1-digital-link.spec.ts +126 -0
- package/src/unique-product-identifiers/gs1/gs1-digital-link.ts +368 -0
- package/src/unique-product-identifiers/gs1/gs1-identity.dto.ts +51 -0
- package/src/unique-product-identifiers/unique-product-identifier-type.ts +31 -0
- package/src/users/create-user.dto.spec.ts +80 -0
- package/src/users/create-user.dto.ts +2 -2
- package/src/users/me.dto.spec.ts +76 -0
- package/src/users/me.dto.ts +10 -0
- package/src/users/pending-email-change.dto.spec.ts +47 -0
- package/src/users/pending-email-change.dto.ts +8 -0
- package/src/users/request-email-change.dto.spec.ts +60 -0
- package/src/users/request-email-change.dto.ts +8 -0
- package/src/users/update-profile.dto.spec.ts +93 -0
- package/src/users/update-profile.dto.ts +12 -0
- package/src/users/user.dto.spec.ts +70 -0
- package/src/users/user.dto.ts +15 -9
- package/dist/shared/digital-product-document.schemas.d.ts.map +0 -1
- /package/dist/{shared → digital-product-document}/digital-product-document.schemas.d.ts +0 -0
- /package/dist/{shared → digital-product-document}/digital-product-document.schemas.js +0 -0
- /package/src/{shared → digital-product-document}/digital-product-document.schemas.ts +0 -0
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Zod schema for a map of GS1 data-attribute Application Identifiers to their values.
|
|
4
|
+
*
|
|
5
|
+
* Keys are constrained to the known GS1 data-attribute AIs (type 'D' in the
|
|
6
|
+
* vendored AI table — i.e. not a primary identifier like "01" or a key
|
|
7
|
+
* qualifier like "10"/"21") via {@link Gs1DataAttributeAi}, so the inferred
|
|
8
|
+
* type is `Partial<Record<Gs1DataAttributeAi, string>>`. Each value must
|
|
9
|
+
* satisfy the format/length rules for the corresponding AI.
|
|
10
|
+
*
|
|
11
|
+
* An empty map `{}` is accepted.
|
|
12
|
+
* Non-object input (array, string, null, undefined) is rejected by the base
|
|
13
|
+
* `z.partialRecord` schema before the custom check runs.
|
|
14
|
+
*
|
|
15
|
+
* Error reporting is keys-first: when a map contains both an unknown AI and an
|
|
16
|
+
* invalid value for a valid AI, only the unknown-key issue is reported (the
|
|
17
|
+
* value check runs only once the base parse succeeds). Among invalid values,
|
|
18
|
+
* only the first (in key order) is reported: a single value check can cost
|
|
19
|
+
* ~100ms on adversarial input (see GS1_DATA_ATTRIBUTE_MAX_LENGTH), so checking
|
|
20
|
+
* every entry would let one request multiply that by the number of entries.
|
|
21
|
+
*
|
|
22
|
+
* Pure module: no DOM or Node-only globals required at import time.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Gs1DataAttributesSchema: z.ZodRecord<z.ZodEnum<{
|
|
25
|
+
readonly GLOBAL_TRADE_ITEM_NUMBER_OF_CONTAINED_TRADE_ITEMS: "02";
|
|
26
|
+
readonly PRODUCTION_DATE: "11";
|
|
27
|
+
readonly DUE_DATE: "12";
|
|
28
|
+
readonly PACKAGING_DATE: "13";
|
|
29
|
+
readonly BEST_BEFORE_DATE: "15";
|
|
30
|
+
readonly SELL_BY_DATE: "16";
|
|
31
|
+
readonly EXPIRATION_DATE: "17";
|
|
32
|
+
readonly INTERNAL_PRODUCT_VARIANT: "20";
|
|
33
|
+
readonly ADDITIONAL_PRODUCT_IDENTIFICATION_ASSIGNED_BY_THE_MANUFACTURER: "240";
|
|
34
|
+
readonly CUSTOMER_PART_NUMBER: "241";
|
|
35
|
+
readonly MADE_TO_ORDER_VARIATION_NUMBER: "242";
|
|
36
|
+
readonly PACKAGING_COMPONENT_NUMBER: "243";
|
|
37
|
+
readonly SECONDARY_SERIAL_NUMBER: "250";
|
|
38
|
+
readonly REFERENCE_TO_SOURCE_ENTITY: "251";
|
|
39
|
+
readonly VARIABLE_COUNT_OF_ITEMS: "30";
|
|
40
|
+
readonly NET_WEIGHT_KILOGRAMS_3100: "3100";
|
|
41
|
+
readonly NET_WEIGHT_KILOGRAMS_3101: "3101";
|
|
42
|
+
readonly NET_WEIGHT_KILOGRAMS_3102: "3102";
|
|
43
|
+
readonly NET_WEIGHT_KILOGRAMS_3103: "3103";
|
|
44
|
+
readonly NET_WEIGHT_KILOGRAMS_3104: "3104";
|
|
45
|
+
readonly NET_WEIGHT_KILOGRAMS_3105: "3105";
|
|
46
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3110: "3110";
|
|
47
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3111: "3111";
|
|
48
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3112: "3112";
|
|
49
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3113: "3113";
|
|
50
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3114: "3114";
|
|
51
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3115: "3115";
|
|
52
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3120: "3120";
|
|
53
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3121: "3121";
|
|
54
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3122: "3122";
|
|
55
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3123: "3123";
|
|
56
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3124: "3124";
|
|
57
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3125: "3125";
|
|
58
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3130: "3130";
|
|
59
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3131: "3131";
|
|
60
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3132: "3132";
|
|
61
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3133: "3133";
|
|
62
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3134: "3134";
|
|
63
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3135: "3135";
|
|
64
|
+
readonly AREA_SQUARE_METRES_3140: "3140";
|
|
65
|
+
readonly AREA_SQUARE_METRES_3141: "3141";
|
|
66
|
+
readonly AREA_SQUARE_METRES_3142: "3142";
|
|
67
|
+
readonly AREA_SQUARE_METRES_3143: "3143";
|
|
68
|
+
readonly AREA_SQUARE_METRES_3144: "3144";
|
|
69
|
+
readonly AREA_SQUARE_METRES_3145: "3145";
|
|
70
|
+
readonly NET_VOLUME_LITRES_3150: "3150";
|
|
71
|
+
readonly NET_VOLUME_LITRES_3151: "3151";
|
|
72
|
+
readonly NET_VOLUME_LITRES_3152: "3152";
|
|
73
|
+
readonly NET_VOLUME_LITRES_3153: "3153";
|
|
74
|
+
readonly NET_VOLUME_LITRES_3154: "3154";
|
|
75
|
+
readonly NET_VOLUME_LITRES_3155: "3155";
|
|
76
|
+
readonly NET_VOLUME_CUBIC_METRES_3160: "3160";
|
|
77
|
+
readonly NET_VOLUME_CUBIC_METRES_3161: "3161";
|
|
78
|
+
readonly NET_VOLUME_CUBIC_METRES_3162: "3162";
|
|
79
|
+
readonly NET_VOLUME_CUBIC_METRES_3163: "3163";
|
|
80
|
+
readonly NET_VOLUME_CUBIC_METRES_3164: "3164";
|
|
81
|
+
readonly NET_VOLUME_CUBIC_METRES_3165: "3165";
|
|
82
|
+
readonly NET_WEIGHT_POUNDS_3200: "3200";
|
|
83
|
+
readonly NET_WEIGHT_POUNDS_3201: "3201";
|
|
84
|
+
readonly NET_WEIGHT_POUNDS_3202: "3202";
|
|
85
|
+
readonly NET_WEIGHT_POUNDS_3203: "3203";
|
|
86
|
+
readonly NET_WEIGHT_POUNDS_3204: "3204";
|
|
87
|
+
readonly NET_WEIGHT_POUNDS_3205: "3205";
|
|
88
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3210: "3210";
|
|
89
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3211: "3211";
|
|
90
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3212: "3212";
|
|
91
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3213: "3213";
|
|
92
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3214: "3214";
|
|
93
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3215: "3215";
|
|
94
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3220: "3220";
|
|
95
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3221: "3221";
|
|
96
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3222: "3222";
|
|
97
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3223: "3223";
|
|
98
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3224: "3224";
|
|
99
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3225: "3225";
|
|
100
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3230: "3230";
|
|
101
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3231: "3231";
|
|
102
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3232: "3232";
|
|
103
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3233: "3233";
|
|
104
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3234: "3234";
|
|
105
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3235: "3235";
|
|
106
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3240: "3240";
|
|
107
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3241: "3241";
|
|
108
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3242: "3242";
|
|
109
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3243: "3243";
|
|
110
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3244: "3244";
|
|
111
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3245: "3245";
|
|
112
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3250: "3250";
|
|
113
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3251: "3251";
|
|
114
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3252: "3252";
|
|
115
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3253: "3253";
|
|
116
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3254: "3254";
|
|
117
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3255: "3255";
|
|
118
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARDS_3260: "3260";
|
|
119
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARDS_3261: "3261";
|
|
120
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARDS_3262: "3262";
|
|
121
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARDS_3263: "3263";
|
|
122
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARDS_3264: "3264";
|
|
123
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARDS_3265: "3265";
|
|
124
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3270: "3270";
|
|
125
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3271: "3271";
|
|
126
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3272: "3272";
|
|
127
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3273: "3273";
|
|
128
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3274: "3274";
|
|
129
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3275: "3275";
|
|
130
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3280: "3280";
|
|
131
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3281: "3281";
|
|
132
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3282: "3282";
|
|
133
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3283: "3283";
|
|
134
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3284: "3284";
|
|
135
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3285: "3285";
|
|
136
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3290: "3290";
|
|
137
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3291: "3291";
|
|
138
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3292: "3292";
|
|
139
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3293: "3293";
|
|
140
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3294: "3294";
|
|
141
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3295: "3295";
|
|
142
|
+
readonly LOGISTIC_WEIGHT_KILOGRAMS_3300: "3300";
|
|
143
|
+
readonly LOGISTIC_WEIGHT_KILOGRAMS_3301: "3301";
|
|
144
|
+
readonly LOGISTIC_WEIGHT_KILOGRAMS_3302: "3302";
|
|
145
|
+
readonly LOGISTIC_WEIGHT_KILOGRAMS_3303: "3303";
|
|
146
|
+
readonly LOGISTIC_WEIGHT_KILOGRAMS_3304: "3304";
|
|
147
|
+
readonly LOGISTIC_WEIGHT_KILOGRAMS_3305: "3305";
|
|
148
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3310: "3310";
|
|
149
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3311: "3311";
|
|
150
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3312: "3312";
|
|
151
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3313: "3313";
|
|
152
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3314: "3314";
|
|
153
|
+
readonly LENGTH_OR_FIRST_DIMENSION_METRES_3315: "3315";
|
|
154
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3320: "3320";
|
|
155
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3321: "3321";
|
|
156
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3322: "3322";
|
|
157
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3323: "3323";
|
|
158
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3324: "3324";
|
|
159
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_METRES_3325: "3325";
|
|
160
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3330: "3330";
|
|
161
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3331: "3331";
|
|
162
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3332: "3332";
|
|
163
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3333: "3333";
|
|
164
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3334: "3334";
|
|
165
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_METRES_3335: "3335";
|
|
166
|
+
readonly AREA_SQUARE_METRES_3340: "3340";
|
|
167
|
+
readonly AREA_SQUARE_METRES_3341: "3341";
|
|
168
|
+
readonly AREA_SQUARE_METRES_3342: "3342";
|
|
169
|
+
readonly AREA_SQUARE_METRES_3343: "3343";
|
|
170
|
+
readonly AREA_SQUARE_METRES_3344: "3344";
|
|
171
|
+
readonly AREA_SQUARE_METRES_3345: "3345";
|
|
172
|
+
readonly LOGISTIC_VOLUME_LITRES_3350: "3350";
|
|
173
|
+
readonly LOGISTIC_VOLUME_LITRES_3351: "3351";
|
|
174
|
+
readonly LOGISTIC_VOLUME_LITRES_3352: "3352";
|
|
175
|
+
readonly LOGISTIC_VOLUME_LITRES_3353: "3353";
|
|
176
|
+
readonly LOGISTIC_VOLUME_LITRES_3354: "3354";
|
|
177
|
+
readonly LOGISTIC_VOLUME_LITRES_3355: "3355";
|
|
178
|
+
readonly LOGISTIC_VOLUME_CUBIC_METRES_3360: "3360";
|
|
179
|
+
readonly LOGISTIC_VOLUME_CUBIC_METRES_3361: "3361";
|
|
180
|
+
readonly LOGISTIC_VOLUME_CUBIC_METRES_3362: "3362";
|
|
181
|
+
readonly LOGISTIC_VOLUME_CUBIC_METRES_3363: "3363";
|
|
182
|
+
readonly LOGISTIC_VOLUME_CUBIC_METRES_3364: "3364";
|
|
183
|
+
readonly LOGISTIC_VOLUME_CUBIC_METRES_3365: "3365";
|
|
184
|
+
readonly KILOGRAMS_PER_SQUARE_METRE_3370: "3370";
|
|
185
|
+
readonly KILOGRAMS_PER_SQUARE_METRE_3371: "3371";
|
|
186
|
+
readonly KILOGRAMS_PER_SQUARE_METRE_3372: "3372";
|
|
187
|
+
readonly KILOGRAMS_PER_SQUARE_METRE_3373: "3373";
|
|
188
|
+
readonly KILOGRAMS_PER_SQUARE_METRE_3374: "3374";
|
|
189
|
+
readonly KILOGRAMS_PER_SQUARE_METRE_3375: "3375";
|
|
190
|
+
readonly LOGISTIC_WEIGHT_POUNDS_3400: "3400";
|
|
191
|
+
readonly LOGISTIC_WEIGHT_POUNDS_3401: "3401";
|
|
192
|
+
readonly LOGISTIC_WEIGHT_POUNDS_3402: "3402";
|
|
193
|
+
readonly LOGISTIC_WEIGHT_POUNDS_3403: "3403";
|
|
194
|
+
readonly LOGISTIC_WEIGHT_POUNDS_3404: "3404";
|
|
195
|
+
readonly LOGISTIC_WEIGHT_POUNDS_3405: "3405";
|
|
196
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3410: "3410";
|
|
197
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3411: "3411";
|
|
198
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3412: "3412";
|
|
199
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3413: "3413";
|
|
200
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3414: "3414";
|
|
201
|
+
readonly LENGTH_OR_FIRST_DIMENSION_INCHES_3415: "3415";
|
|
202
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3420: "3420";
|
|
203
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3421: "3421";
|
|
204
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3422: "3422";
|
|
205
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3423: "3423";
|
|
206
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3424: "3424";
|
|
207
|
+
readonly LENGTH_OR_FIRST_DIMENSION_FEET_3425: "3425";
|
|
208
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3430: "3430";
|
|
209
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3431: "3431";
|
|
210
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3432: "3432";
|
|
211
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3433: "3433";
|
|
212
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3434: "3434";
|
|
213
|
+
readonly LENGTH_OR_FIRST_DIMENSION_YARDS_3435: "3435";
|
|
214
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3440: "3440";
|
|
215
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3441: "3441";
|
|
216
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3442: "3442";
|
|
217
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3443: "3443";
|
|
218
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3444: "3444";
|
|
219
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_INCHES_3445: "3445";
|
|
220
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3450: "3450";
|
|
221
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3451: "3451";
|
|
222
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3452: "3452";
|
|
223
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3453: "3453";
|
|
224
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3454: "3454";
|
|
225
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_FEET_3455: "3455";
|
|
226
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARD_3460: "3460";
|
|
227
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARD_3461: "3461";
|
|
228
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARD_3462: "3462";
|
|
229
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARD_3463: "3463";
|
|
230
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARD_3464: "3464";
|
|
231
|
+
readonly WIDTH_DIAMETER_OR_SECOND_DIMENSION_YARD_3465: "3465";
|
|
232
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3470: "3470";
|
|
233
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3471: "3471";
|
|
234
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3472: "3472";
|
|
235
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3473: "3473";
|
|
236
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3474: "3474";
|
|
237
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_INCHES_3475: "3475";
|
|
238
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3480: "3480";
|
|
239
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3481: "3481";
|
|
240
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3482: "3482";
|
|
241
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3483: "3483";
|
|
242
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3484: "3484";
|
|
243
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_FEET_3485: "3485";
|
|
244
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3490: "3490";
|
|
245
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3491: "3491";
|
|
246
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3492: "3492";
|
|
247
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3493: "3493";
|
|
248
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3494: "3494";
|
|
249
|
+
readonly DEPTH_THICKNESS_HEIGHT_OR_THIRD_DIMENSION_YARDS_3495: "3495";
|
|
250
|
+
readonly AREA_SQUARE_INCHES_3500: "3500";
|
|
251
|
+
readonly AREA_SQUARE_INCHES_3501: "3501";
|
|
252
|
+
readonly AREA_SQUARE_INCHES_3502: "3502";
|
|
253
|
+
readonly AREA_SQUARE_INCHES_3503: "3503";
|
|
254
|
+
readonly AREA_SQUARE_INCHES_3504: "3504";
|
|
255
|
+
readonly AREA_SQUARE_INCHES_3505: "3505";
|
|
256
|
+
readonly AREA_SQUARE_FEET_3510: "3510";
|
|
257
|
+
readonly AREA_SQUARE_FEET_3511: "3511";
|
|
258
|
+
readonly AREA_SQUARE_FEET_3512: "3512";
|
|
259
|
+
readonly AREA_SQUARE_FEET_3513: "3513";
|
|
260
|
+
readonly AREA_SQUARE_FEET_3514: "3514";
|
|
261
|
+
readonly AREA_SQUARE_FEET_3515: "3515";
|
|
262
|
+
readonly AREA_SQUARE_YARDS_3520: "3520";
|
|
263
|
+
readonly AREA_SQUARE_YARDS_3521: "3521";
|
|
264
|
+
readonly AREA_SQUARE_YARDS_3522: "3522";
|
|
265
|
+
readonly AREA_SQUARE_YARDS_3523: "3523";
|
|
266
|
+
readonly AREA_SQUARE_YARDS_3524: "3524";
|
|
267
|
+
readonly AREA_SQUARE_YARDS_3525: "3525";
|
|
268
|
+
readonly AREA_SQUARE_INCHES_3530: "3530";
|
|
269
|
+
readonly AREA_SQUARE_INCHES_3531: "3531";
|
|
270
|
+
readonly AREA_SQUARE_INCHES_3532: "3532";
|
|
271
|
+
readonly AREA_SQUARE_INCHES_3533: "3533";
|
|
272
|
+
readonly AREA_SQUARE_INCHES_3534: "3534";
|
|
273
|
+
readonly AREA_SQUARE_INCHES_3535: "3535";
|
|
274
|
+
readonly AREA_SQUARE_FEET_3540: "3540";
|
|
275
|
+
readonly AREA_SQUARE_FEET_3541: "3541";
|
|
276
|
+
readonly AREA_SQUARE_FEET_3542: "3542";
|
|
277
|
+
readonly AREA_SQUARE_FEET_3543: "3543";
|
|
278
|
+
readonly AREA_SQUARE_FEET_3544: "3544";
|
|
279
|
+
readonly AREA_SQUARE_FEET_3545: "3545";
|
|
280
|
+
readonly AREA_SQUARE_YARDS_3550: "3550";
|
|
281
|
+
readonly AREA_SQUARE_YARDS_3551: "3551";
|
|
282
|
+
readonly AREA_SQUARE_YARDS_3552: "3552";
|
|
283
|
+
readonly AREA_SQUARE_YARDS_3553: "3553";
|
|
284
|
+
readonly AREA_SQUARE_YARDS_3554: "3554";
|
|
285
|
+
readonly AREA_SQUARE_YARDS_3555: "3555";
|
|
286
|
+
readonly NET_WEIGHT_TROY_OUNCES_3560: "3560";
|
|
287
|
+
readonly NET_WEIGHT_TROY_OUNCES_3561: "3561";
|
|
288
|
+
readonly NET_WEIGHT_TROY_OUNCES_3562: "3562";
|
|
289
|
+
readonly NET_WEIGHT_TROY_OUNCES_3563: "3563";
|
|
290
|
+
readonly NET_WEIGHT_TROY_OUNCES_3564: "3564";
|
|
291
|
+
readonly NET_WEIGHT_TROY_OUNCES_3565: "3565";
|
|
292
|
+
readonly NET_WEIGHT_OUNCES_3570: "3570";
|
|
293
|
+
readonly NET_WEIGHT_OUNCES_3571: "3571";
|
|
294
|
+
readonly NET_WEIGHT_OUNCES_3572: "3572";
|
|
295
|
+
readonly NET_WEIGHT_OUNCES_3573: "3573";
|
|
296
|
+
readonly NET_WEIGHT_OUNCES_3574: "3574";
|
|
297
|
+
readonly NET_WEIGHT_OUNCES_3575: "3575";
|
|
298
|
+
readonly NET_VOLUME_QUARTS_3600: "3600";
|
|
299
|
+
readonly NET_VOLUME_QUARTS_3601: "3601";
|
|
300
|
+
readonly NET_VOLUME_QUARTS_3602: "3602";
|
|
301
|
+
readonly NET_VOLUME_QUARTS_3603: "3603";
|
|
302
|
+
readonly NET_VOLUME_QUARTS_3604: "3604";
|
|
303
|
+
readonly NET_VOLUME_QUARTS_3605: "3605";
|
|
304
|
+
readonly NET_VOLUME_GALLONS_U_S_3610: "3610";
|
|
305
|
+
readonly NET_VOLUME_GALLONS_U_S_3611: "3611";
|
|
306
|
+
readonly NET_VOLUME_GALLONS_U_S_3612: "3612";
|
|
307
|
+
readonly NET_VOLUME_GALLONS_U_S_3613: "3613";
|
|
308
|
+
readonly NET_VOLUME_GALLONS_U_S_3614: "3614";
|
|
309
|
+
readonly NET_VOLUME_GALLONS_U_S_3615: "3615";
|
|
310
|
+
readonly LOGISTIC_VOLUME_QUARTS_3620: "3620";
|
|
311
|
+
readonly LOGISTIC_VOLUME_QUARTS_3621: "3621";
|
|
312
|
+
readonly LOGISTIC_VOLUME_QUARTS_3622: "3622";
|
|
313
|
+
readonly LOGISTIC_VOLUME_QUARTS_3623: "3623";
|
|
314
|
+
readonly LOGISTIC_VOLUME_QUARTS_3624: "3624";
|
|
315
|
+
readonly LOGISTIC_VOLUME_QUARTS_3625: "3625";
|
|
316
|
+
readonly LOGISTIC_VOLUME_GALLONS_U_S_3630: "3630";
|
|
317
|
+
readonly LOGISTIC_VOLUME_GALLONS_U_S_3631: "3631";
|
|
318
|
+
readonly LOGISTIC_VOLUME_GALLONS_U_S_3632: "3632";
|
|
319
|
+
readonly LOGISTIC_VOLUME_GALLONS_U_S_3633: "3633";
|
|
320
|
+
readonly LOGISTIC_VOLUME_GALLONS_U_S_3634: "3634";
|
|
321
|
+
readonly LOGISTIC_VOLUME_GALLONS_U_S_3635: "3635";
|
|
322
|
+
readonly NET_VOLUME_CUBIC_INCHES_3640: "3640";
|
|
323
|
+
readonly NET_VOLUME_CUBIC_INCHES_3641: "3641";
|
|
324
|
+
readonly NET_VOLUME_CUBIC_INCHES_3642: "3642";
|
|
325
|
+
readonly NET_VOLUME_CUBIC_INCHES_3643: "3643";
|
|
326
|
+
readonly NET_VOLUME_CUBIC_INCHES_3644: "3644";
|
|
327
|
+
readonly NET_VOLUME_CUBIC_INCHES_3645: "3645";
|
|
328
|
+
readonly NET_VOLUME_CUBIC_FEET_3650: "3650";
|
|
329
|
+
readonly NET_VOLUME_CUBIC_FEET_3651: "3651";
|
|
330
|
+
readonly NET_VOLUME_CUBIC_FEET_3652: "3652";
|
|
331
|
+
readonly NET_VOLUME_CUBIC_FEET_3653: "3653";
|
|
332
|
+
readonly NET_VOLUME_CUBIC_FEET_3654: "3654";
|
|
333
|
+
readonly NET_VOLUME_CUBIC_FEET_3655: "3655";
|
|
334
|
+
readonly NET_VOLUME_CUBIC_YARDS_3660: "3660";
|
|
335
|
+
readonly NET_VOLUME_CUBIC_YARDS_3661: "3661";
|
|
336
|
+
readonly NET_VOLUME_CUBIC_YARDS_3662: "3662";
|
|
337
|
+
readonly NET_VOLUME_CUBIC_YARDS_3663: "3663";
|
|
338
|
+
readonly NET_VOLUME_CUBIC_YARDS_3664: "3664";
|
|
339
|
+
readonly NET_VOLUME_CUBIC_YARDS_3665: "3665";
|
|
340
|
+
readonly LOGISTIC_VOLUME_CUBIC_INCHES_3670: "3670";
|
|
341
|
+
readonly LOGISTIC_VOLUME_CUBIC_INCHES_3671: "3671";
|
|
342
|
+
readonly LOGISTIC_VOLUME_CUBIC_INCHES_3672: "3672";
|
|
343
|
+
readonly LOGISTIC_VOLUME_CUBIC_INCHES_3673: "3673";
|
|
344
|
+
readonly LOGISTIC_VOLUME_CUBIC_INCHES_3674: "3674";
|
|
345
|
+
readonly LOGISTIC_VOLUME_CUBIC_INCHES_3675: "3675";
|
|
346
|
+
readonly LOGISTIC_VOLUME_CUBIC_FEET_3680: "3680";
|
|
347
|
+
readonly LOGISTIC_VOLUME_CUBIC_FEET_3681: "3681";
|
|
348
|
+
readonly LOGISTIC_VOLUME_CUBIC_FEET_3682: "3682";
|
|
349
|
+
readonly LOGISTIC_VOLUME_CUBIC_FEET_3683: "3683";
|
|
350
|
+
readonly LOGISTIC_VOLUME_CUBIC_FEET_3684: "3684";
|
|
351
|
+
readonly LOGISTIC_VOLUME_CUBIC_FEET_3685: "3685";
|
|
352
|
+
readonly LOGISTIC_VOLUME_CUBIC_YARDS_3690: "3690";
|
|
353
|
+
readonly LOGISTIC_VOLUME_CUBIC_YARDS_3691: "3691";
|
|
354
|
+
readonly LOGISTIC_VOLUME_CUBIC_YARDS_3692: "3692";
|
|
355
|
+
readonly LOGISTIC_VOLUME_CUBIC_YARDS_3693: "3693";
|
|
356
|
+
readonly LOGISTIC_VOLUME_CUBIC_YARDS_3694: "3694";
|
|
357
|
+
readonly LOGISTIC_VOLUME_CUBIC_YARDS_3695: "3695";
|
|
358
|
+
readonly COUNT_OF_TRADE_ITEMS_OR_TRADE_ITEM_PIECES_CONTAINED_IN_A_LOGISTIC_UNIT: "37";
|
|
359
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3900: "3900";
|
|
360
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3901: "3901";
|
|
361
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3902: "3902";
|
|
362
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3903: "3903";
|
|
363
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3904: "3904";
|
|
364
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3905: "3905";
|
|
365
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3906: "3906";
|
|
366
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3907: "3907";
|
|
367
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3908: "3908";
|
|
368
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_OR_COUPON_VALUE_LOCAL_CURRENCY_3909: "3909";
|
|
369
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3910: "3910";
|
|
370
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3911: "3911";
|
|
371
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3912: "3912";
|
|
372
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3913: "3913";
|
|
373
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3914: "3914";
|
|
374
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3915: "3915";
|
|
375
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3916: "3916";
|
|
376
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3917: "3917";
|
|
377
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3918: "3918";
|
|
378
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3919: "3919";
|
|
379
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3920: "3920";
|
|
380
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3921: "3921";
|
|
381
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3922: "3922";
|
|
382
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3923: "3923";
|
|
383
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3924: "3924";
|
|
384
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3925: "3925";
|
|
385
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3926: "3926";
|
|
386
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3927: "3927";
|
|
387
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3928: "3928";
|
|
388
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_SINGLE_MONETARY_AREA_3929: "3929";
|
|
389
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3930: "3930";
|
|
390
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3931: "3931";
|
|
391
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3932: "3932";
|
|
392
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3933: "3933";
|
|
393
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3934: "3934";
|
|
394
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3935: "3935";
|
|
395
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3936: "3936";
|
|
396
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3937: "3937";
|
|
397
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3938: "3938";
|
|
398
|
+
readonly APPLICABLE_AMOUNT_PAYABLE_WITH_ISO_CURRENCY_CODE_3939: "3939";
|
|
399
|
+
readonly PERCENTAGE_DISCOUNT_OF_A_COUPON_3940: "3940";
|
|
400
|
+
readonly PERCENTAGE_DISCOUNT_OF_A_COUPON_3941: "3941";
|
|
401
|
+
readonly PERCENTAGE_DISCOUNT_OF_A_COUPON_3942: "3942";
|
|
402
|
+
readonly PERCENTAGE_DISCOUNT_OF_A_COUPON_3943: "3943";
|
|
403
|
+
readonly AMOUNT_PAYABLE_PER_UNIT_OF_MEASURE_SINGLE_MONETARY_AREA_3950: "3950";
|
|
404
|
+
readonly AMOUNT_PAYABLE_PER_UNIT_OF_MEASURE_SINGLE_MONETARY_AREA_3951: "3951";
|
|
405
|
+
readonly AMOUNT_PAYABLE_PER_UNIT_OF_MEASURE_SINGLE_MONETARY_AREA_3952: "3952";
|
|
406
|
+
readonly AMOUNT_PAYABLE_PER_UNIT_OF_MEASURE_SINGLE_MONETARY_AREA_3953: "3953";
|
|
407
|
+
readonly AMOUNT_PAYABLE_PER_UNIT_OF_MEASURE_SINGLE_MONETARY_AREA_3954: "3954";
|
|
408
|
+
readonly AMOUNT_PAYABLE_PER_UNIT_OF_MEASURE_SINGLE_MONETARY_AREA_3955: "3955";
|
|
409
|
+
readonly CUSTOMERS_PURCHASE_ORDER_NUMBER: "400";
|
|
410
|
+
readonly ROUTING_CODE: "403";
|
|
411
|
+
readonly SHIP_TO_DELIVER_TO_GLOBAL_LOCATION_NUMBER: "410";
|
|
412
|
+
readonly BILL_TO_INVOICE_TO_GLOBAL_LOCATION_NUMBER: "411";
|
|
413
|
+
readonly PURCHASED_FROM_GLOBAL_LOCATION_NUMBER: "412";
|
|
414
|
+
readonly SHIP_FOR_DELIVER_FOR_FORWARD_TO_GLOBAL_LOCATION_NUMBER: "413";
|
|
415
|
+
readonly GLOBAL_LOCATION_NUMBER_OF_THE_PRODUCTION_OR_SERVICE_LOCATION: "416";
|
|
416
|
+
readonly SHIP_TO_DELIVER_TO_POSTAL_CODE_WITHIN_A_SINGLE_POSTAL_AUTHORITY: "420";
|
|
417
|
+
readonly SHIP_TO_DELIVER_TO_POSTAL_CODE_WITH_ISO_COUNTRY_CODE: "421";
|
|
418
|
+
readonly COUNTRY_OF_ORIGIN_OF_A_TRADE_ITEM: "422";
|
|
419
|
+
readonly COUNTRY_OF_INITIAL_PROCESSING: "423";
|
|
420
|
+
readonly COUNTRY_OF_PROCESSING: "424";
|
|
421
|
+
readonly COUNTRY_OF_DISASSEMBLY: "425";
|
|
422
|
+
readonly COUNTRY_COVERING_FULL_PROCESS_CHAIN: "426";
|
|
423
|
+
readonly COUNTRY_SUBDIVISION_OF_ORIGIN: "427";
|
|
424
|
+
readonly SHIP_TO_DELIVER_TO_COMPANY_NAME: "4300";
|
|
425
|
+
readonly SHIP_TO_DELIVER_TO_CONTACT: "4301";
|
|
426
|
+
readonly SHIP_TO_DELIVER_TO_ADDRESS_LINE_1: "4302";
|
|
427
|
+
readonly SHIP_TO_DELIVER_TO_ADDRESS_LINE_2: "4303";
|
|
428
|
+
readonly SHIP_TO_DELIVER_TO_SUBURB: "4304";
|
|
429
|
+
readonly SHIP_TO_DELIVER_TO_LOCALITY: "4305";
|
|
430
|
+
readonly SHIP_TO_DELIVER_TO_REGION: "4306";
|
|
431
|
+
readonly SHIP_TO_DELIVER_TO_COUNTRY_CODE: "4307";
|
|
432
|
+
readonly SHIP_TO_DELIVER_TO_TELEPHONE_NUMBER: "4308";
|
|
433
|
+
readonly SHIP_TO_DELIVER_TO_GEO_LOCATION: "4309";
|
|
434
|
+
readonly RETURN_TO_COMPANY_NAME: "4310";
|
|
435
|
+
readonly RETURN_TO_CONTACT: "4311";
|
|
436
|
+
readonly RETURN_TO_ADDRESS_LINE_1: "4312";
|
|
437
|
+
readonly RETURN_TO_ADDRESS_LINE_2: "4313";
|
|
438
|
+
readonly RETURN_TO_SUBURB: "4314";
|
|
439
|
+
readonly RETURN_TO_LOCALITY: "4315";
|
|
440
|
+
readonly RETURN_TO_REGION: "4316";
|
|
441
|
+
readonly RETURN_TO_COUNTRY_CODE: "4317";
|
|
442
|
+
readonly RETURN_TO_POSTAL_CODE: "4318";
|
|
443
|
+
readonly RETURN_TO_TELEPHONE_NUMBER: "4319";
|
|
444
|
+
readonly SERVICE_CODE_DESCRIPTION: "4320";
|
|
445
|
+
readonly DANGEROUS_GOODS_FLAG: "4321";
|
|
446
|
+
readonly AUTHORITY_TO_LEAVE: "4322";
|
|
447
|
+
readonly SIGNATURE_REQUIRED_FLAG: "4323";
|
|
448
|
+
readonly NOT_BEFORE_DELIVERY_DATE_TIME: "4324";
|
|
449
|
+
readonly NOT_AFTER_DELIVERY_DATE_TIME: "4325";
|
|
450
|
+
readonly RELEASE_DATE: "4326";
|
|
451
|
+
readonly MAXIMUM_TEMPERATURE_IN_FAHRENHEIT: "4330";
|
|
452
|
+
readonly MAXIMUM_TEMPERATURE_IN_CELSIUS: "4331";
|
|
453
|
+
readonly MINIMUM_TEMPERATURE_IN_FAHRENHEIT: "4332";
|
|
454
|
+
readonly MINIMUM_TEMPERATURE_IN_CELSIUS: "4333";
|
|
455
|
+
readonly NATO_STOCK_NUMBER: "7001";
|
|
456
|
+
readonly UN_ECE_MEAT_CARCASSES_AND_CUTS_CLASSIFICATION: "7002";
|
|
457
|
+
readonly EXPIRATION_DATE_AND_TIME: "7003";
|
|
458
|
+
readonly ACTIVE_POTENCY: "7004";
|
|
459
|
+
readonly CATCH_AREA: "7005";
|
|
460
|
+
readonly FIRST_FREEZE_DATE: "7006";
|
|
461
|
+
readonly HARVEST_DATE: "7007";
|
|
462
|
+
readonly SPECIES_FOR_FISHERY_PURPOSES: "7008";
|
|
463
|
+
readonly FISHING_GEAR_TYPE: "7009";
|
|
464
|
+
readonly PRODUCTION_METHOD: "7010";
|
|
465
|
+
readonly TEST_BY_DATE: "7011";
|
|
466
|
+
readonly REFURBISHMENT_LOT_ID: "7020";
|
|
467
|
+
readonly FUNCTIONAL_STATUS: "7021";
|
|
468
|
+
readonly REVISION_STATUS: "7022";
|
|
469
|
+
readonly GLOBAL_INDIVIDUAL_ASSET_IDENTIFIER_OF_AN_ASSEMBLY: "7023";
|
|
470
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7030: "7030";
|
|
471
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7031: "7031";
|
|
472
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7032: "7032";
|
|
473
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7033: "7033";
|
|
474
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7034: "7034";
|
|
475
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7035: "7035";
|
|
476
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7036: "7036";
|
|
477
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7037: "7037";
|
|
478
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7038: "7038";
|
|
479
|
+
readonly NUMBER_OF_PROCESSOR_WITH_THREE_DIGIT_ISO_COUNTRY_CODE_7039: "7039";
|
|
480
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_GERMANY_PZN: "710";
|
|
481
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_FRANCE_CIP: "711";
|
|
482
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_SPAIN_CN: "712";
|
|
483
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_BRASIL_DRN: "713";
|
|
484
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_PORTUGAL_AIM: "714";
|
|
485
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_UNITED_STATES_OF_AMERICA_NDC: "715";
|
|
486
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_ITALY_AIC: "716";
|
|
487
|
+
readonly NATIONAL_HEALTHCARE_REIMBURSEMENT_NUMBER_COSTA_RICA_SANITARY_REGISTER_NUMBER: "717";
|
|
488
|
+
readonly CERTIFICATION_REFERENCE_7230: "7230";
|
|
489
|
+
readonly CERTIFICATION_REFERENCE_7231: "7231";
|
|
490
|
+
readonly CERTIFICATION_REFERENCE_7232: "7232";
|
|
491
|
+
readonly CERTIFICATION_REFERENCE_7233: "7233";
|
|
492
|
+
readonly CERTIFICATION_REFERENCE_7234: "7234";
|
|
493
|
+
readonly CERTIFICATION_REFERENCE_7235: "7235";
|
|
494
|
+
readonly CERTIFICATION_REFERENCE_7236: "7236";
|
|
495
|
+
readonly CERTIFICATION_REFERENCE_7237: "7237";
|
|
496
|
+
readonly CERTIFICATION_REFERENCE_7238: "7238";
|
|
497
|
+
readonly CERTIFICATION_REFERENCE_7239: "7239";
|
|
498
|
+
readonly PROTOCOL_ID: "7240";
|
|
499
|
+
readonly AIDC_MEDIA_TYPE: "7241";
|
|
500
|
+
readonly VERSION_CONTROL_NUMBER: "7242";
|
|
501
|
+
readonly DATE_OF_BIRTH: "7250";
|
|
502
|
+
readonly DATE_AND_TIME_OF_BIRTH: "7251";
|
|
503
|
+
readonly BIOLOGICAL_SEX: "7252";
|
|
504
|
+
readonly FAMILY_NAME_OF_PERSON: "7253";
|
|
505
|
+
readonly GIVEN_NAME_OF_PERSON: "7254";
|
|
506
|
+
readonly NAME_SUFFIX_OF_PERSON: "7255";
|
|
507
|
+
readonly FULL_NAME_OF_PERSON: "7256";
|
|
508
|
+
readonly ADDRESS_OF_PERSON: "7257";
|
|
509
|
+
readonly BABY_BIRTH_SEQUENCE: "7258";
|
|
510
|
+
readonly BABY_OF_FAMILY_NAME: "7259";
|
|
511
|
+
readonly ROLL_PRODUCTS: "8001";
|
|
512
|
+
readonly CELLULAR_MOBILE_TELEPHONE_IDENTIFIER: "8002";
|
|
513
|
+
readonly PRICE_PER_UNIT_OF_MEASURE: "8005";
|
|
514
|
+
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "8007";
|
|
515
|
+
readonly DATE_AND_TIME_OF_PRODUCTION: "8008";
|
|
516
|
+
readonly OPTICALLY_READABLE_SENSOR_INDICATOR: "8009";
|
|
517
|
+
readonly SOFTWARE_VERSION: "8012";
|
|
518
|
+
readonly IDENTIFICATION_OF_PIECES_OF_A_TRADE_ITEM_CONTAINED_IN_A_LOGISTIC_UNIT: "8026";
|
|
519
|
+
readonly DIGITAL_SIGNATURE: "8030";
|
|
520
|
+
readonly INTERNATIONAL_MOBILE_EQUIPMENT_IDENTITY: "8040";
|
|
521
|
+
readonly INTERNATIONAL_MOBILE_EQUIPMENT_IDENTITY_2: "8041";
|
|
522
|
+
readonly EMBEDDED_SIM_NUMBER: "8042";
|
|
523
|
+
readonly PHYSICAL_SIM_NUMBER: "8043";
|
|
524
|
+
readonly COUPON_CODE_IDENTIFICATION_FOR_USE_IN_NORTH_AMERICA: "8110";
|
|
525
|
+
readonly LOYALTY_POINTS_OF_A_COUPON: "8111";
|
|
526
|
+
readonly POSITIVE_OFFER_FILE_COUPON_CODE_IDENTIFICATION_FOR_USE_IN_NORTH_AMERICA: "8112";
|
|
527
|
+
readonly INFORMATION_MUTUALLY_AGREED_BETWEEN_TRADING_PARTNERS: "90";
|
|
528
|
+
readonly COMPANY_INTERNAL_INFORMATION_91: "91";
|
|
529
|
+
readonly COMPANY_INTERNAL_INFORMATION_92: "92";
|
|
530
|
+
readonly COMPANY_INTERNAL_INFORMATION_93: "93";
|
|
531
|
+
readonly COMPANY_INTERNAL_INFORMATION_94: "94";
|
|
532
|
+
readonly COMPANY_INTERNAL_INFORMATION_95: "95";
|
|
533
|
+
readonly COMPANY_INTERNAL_INFORMATION_96: "96";
|
|
534
|
+
readonly COMPANY_INTERNAL_INFORMATION_97: "97";
|
|
535
|
+
readonly COMPANY_INTERNAL_INFORMATION_98: "98";
|
|
536
|
+
readonly COMPANY_INTERNAL_INFORMATION_99: "99";
|
|
537
|
+
}> & z.core.$partial, z.ZodString>;
|
|
538
|
+
/** The inferred TypeScript type for a validated GS1 data-attributes map. */
|
|
539
|
+
export type Gs1DataAttributes = z.infer<typeof Gs1DataAttributesSchema>;
|
|
540
|
+
//# sourceMappingURL=gs1-data-attributes.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gs1-data-attributes.dto.d.ts","sourceRoot":"","sources":["../../../src/unique-product-identifiers/gs1/gs1-data-attributes.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAiBA,CAAC;AAErC,4EAA4E;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Gs1DataAttributesSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const gs1_ai_constants_1 = require("./gs1-ai-constants");
|
|
6
|
+
const gs1_digital_link_1 = require("./gs1-digital-link");
|
|
7
|
+
/** Cap on how much of an unknown AI key is echoed back in an error message. */
|
|
8
|
+
const MAX_ECHOED_KEY_LENGTH = 50;
|
|
9
|
+
const unknownAiMessage = (input) => {
|
|
10
|
+
const key = String(input);
|
|
11
|
+
const echoed = key.length > MAX_ECHOED_KEY_LENGTH ? `${key.slice(0, MAX_ECHOED_KEY_LENGTH)}…` : key;
|
|
12
|
+
return `"${echoed}" is not a known GS1 data-attribute AI`;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Zod schema for a single GS1 data-attribute Application Identifier key.
|
|
16
|
+
*
|
|
17
|
+
* The custom error map replaces zod's default enum message, which would join
|
|
18
|
+
* every permitted AI into one multi-kilobyte string.
|
|
19
|
+
*/
|
|
20
|
+
const Gs1DataAttributeAiSchema = zod_1.z.enum(gs1_ai_constants_1.Gs1DataAttributeAi, {
|
|
21
|
+
error: (issue) => unknownAiMessage(issue.input),
|
|
22
|
+
});
|
|
23
|
+
/**
|
|
24
|
+
* Zod schema for a map of GS1 data-attribute Application Identifiers to their values.
|
|
25
|
+
*
|
|
26
|
+
* Keys are constrained to the known GS1 data-attribute AIs (type 'D' in the
|
|
27
|
+
* vendored AI table — i.e. not a primary identifier like "01" or a key
|
|
28
|
+
* qualifier like "10"/"21") via {@link Gs1DataAttributeAi}, so the inferred
|
|
29
|
+
* type is `Partial<Record<Gs1DataAttributeAi, string>>`. Each value must
|
|
30
|
+
* satisfy the format/length rules for the corresponding AI.
|
|
31
|
+
*
|
|
32
|
+
* An empty map `{}` is accepted.
|
|
33
|
+
* Non-object input (array, string, null, undefined) is rejected by the base
|
|
34
|
+
* `z.partialRecord` schema before the custom check runs.
|
|
35
|
+
*
|
|
36
|
+
* Error reporting is keys-first: when a map contains both an unknown AI and an
|
|
37
|
+
* invalid value for a valid AI, only the unknown-key issue is reported (the
|
|
38
|
+
* value check runs only once the base parse succeeds). Among invalid values,
|
|
39
|
+
* only the first (in key order) is reported: a single value check can cost
|
|
40
|
+
* ~100ms on adversarial input (see GS1_DATA_ATTRIBUTE_MAX_LENGTH), so checking
|
|
41
|
+
* every entry would let one request multiply that by the number of entries.
|
|
42
|
+
*
|
|
43
|
+
* Pure module: no DOM or Node-only globals required at import time.
|
|
44
|
+
*/
|
|
45
|
+
exports.Gs1DataAttributesSchema = zod_1.z
|
|
46
|
+
.partialRecord(Gs1DataAttributeAiSchema, zod_1.z.string(), {
|
|
47
|
+
error: (issue) => (issue.code === "invalid_key" ? unknownAiMessage(issue.input) : undefined),
|
|
48
|
+
})
|
|
49
|
+
.check((ctx) => {
|
|
50
|
+
for (const [ai, value] of Object.entries(ctx.value)) {
|
|
51
|
+
if (!(0, gs1_digital_link_1.isValidGs1DataAttributeValue)(ai, value)) {
|
|
52
|
+
ctx.issues.push({
|
|
53
|
+
code: "custom",
|
|
54
|
+
input: ctx.value,
|
|
55
|
+
message: `value for AI "${ai}" is invalid`,
|
|
56
|
+
path: [ai],
|
|
57
|
+
});
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
.meta({ id: "Gs1DataAttributes" });
|