@aidc-toolkit/app-extension 1.0.22-beta → 1.0.24-beta
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/index.cjs +3414 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1747 -0
- package/dist/index.d.ts +1747 -26
- package/dist/index.js +3379 -9
- package/dist/index.js.map +1 -1
- package/package.json +7 -10
- package/src/app-extension.ts +3 -10
- package/src/app-utility-proxy.ts +5 -4
- package/src/descriptor.ts +12 -8
- package/src/generator/descriptor.ts +1 -1
- package/src/generator/generator.ts +4 -4
- package/src/generator/index.ts +2 -2
- package/src/generator/{locale-strings-generator.ts → locale-resources-generator.ts} +66 -62
- package/src/gs1/character-set-proxy.ts +5 -5
- package/src/gs1/check-proxy.ts +3 -3
- package/src/gs1/identifier-proxy.ts +9 -8
- package/src/gs1/index.ts +3 -3
- package/src/index.ts +9 -9
- package/src/lib-proxy.ts +3 -3
- package/src/locale/en/{locale-strings.ts → locale-resources.ts} +1 -1
- package/src/locale/fr/{locale-strings.ts → locale-resources.ts} +1 -1
- package/src/locale/i18n.ts +7 -9
- package/src/locale/i18next.d.ts +6 -6
- package/{dist/types.d.ts → src/type.ts} +10 -38
- package/src/utility/character-set-descriptor.ts +1 -1
- package/src/utility/character-set-proxy.ts +9 -8
- package/src/utility/index.ts +3 -3
- package/src/utility/reg-exp-proxy.ts +5 -4
- package/src/utility/string-descriptor.ts +1 -1
- package/src/utility/string-proxy.ts +2 -2
- package/src/utility/transformer-descriptor.ts +1 -1
- package/src/utility/transformer-proxy.ts +5 -4
- package/tsup.config.ts +3 -0
- package/dist/app-extension.d.ts +0 -169
- package/dist/app-extension.d.ts.map +0 -1
- package/dist/app-extension.js +0 -148
- package/dist/app-extension.js.map +0 -1
- package/dist/app-utility-proxy.d.ts +0 -66
- package/dist/app-utility-proxy.d.ts.map +0 -1
- package/dist/app-utility-proxy.js +0 -233
- package/dist/app-utility-proxy.js.map +0 -1
- package/dist/descriptor.d.ts +0 -172
- package/dist/descriptor.d.ts.map +0 -1
- package/dist/descriptor.js +0 -174
- package/dist/descriptor.js.map +0 -1
- package/dist/generator/descriptor.d.ts +0 -107
- package/dist/generator/descriptor.d.ts.map +0 -1
- package/dist/generator/descriptor.js +0 -2
- package/dist/generator/descriptor.js.map +0 -1
- package/dist/generator/generator.d.ts +0 -120
- package/dist/generator/generator.d.ts.map +0 -1
- package/dist/generator/generator.js +0 -213
- package/dist/generator/generator.js.map +0 -1
- package/dist/generator/index.d.ts +0 -3
- package/dist/generator/index.d.ts.map +0 -1
- package/dist/generator/index.js +0 -2
- package/dist/generator/index.js.map +0 -1
- package/dist/gs1/character-set-proxy.d.ts +0 -10
- package/dist/gs1/character-set-proxy.d.ts.map +0 -1
- package/dist/gs1/character-set-proxy.js +0 -47
- package/dist/gs1/character-set-proxy.js.map +0 -1
- package/dist/gs1/check-proxy.d.ts +0 -11
- package/dist/gs1/check-proxy.d.ts.map +0 -1
- package/dist/gs1/check-proxy.js +0 -120
- package/dist/gs1/check-proxy.js.map +0 -1
- package/dist/gs1/identifier-proxy.d.ts +0 -136
- package/dist/gs1/identifier-proxy.d.ts.map +0 -1
- package/dist/gs1/identifier-proxy.js +0 -782
- package/dist/gs1/identifier-proxy.js.map +0 -1
- package/dist/gs1/index.d.ts +0 -4
- package/dist/gs1/index.d.ts.map +0 -1
- package/dist/gs1/index.js +0 -4
- package/dist/gs1/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib-proxy.d.ts +0 -135
- package/dist/lib-proxy.d.ts.map +0 -1
- package/dist/lib-proxy.js +0 -235
- package/dist/lib-proxy.js.map +0 -1
- package/dist/locale/en/locale-strings.d.ts +0 -616
- package/dist/locale/en/locale-strings.d.ts.map +0 -1
- package/dist/locale/en/locale-strings.js +0 -616
- package/dist/locale/en/locale-strings.js.map +0 -1
- package/dist/locale/fr/locale-strings.d.ts +0 -616
- package/dist/locale/fr/locale-strings.d.ts.map +0 -1
- package/dist/locale/fr/locale-strings.js +0 -616
- package/dist/locale/fr/locale-strings.js.map +0 -1
- package/dist/locale/i18n.d.ts +0 -27
- package/dist/locale/i18n.d.ts.map +0 -1
- package/dist/locale/i18n.js +0 -39
- package/dist/locale/i18n.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -13
- package/dist/types.js.map +0 -1
- package/dist/utility/character-set-descriptor.d.ts +0 -6
- package/dist/utility/character-set-descriptor.d.ts.map +0 -1
- package/dist/utility/character-set-descriptor.js +0 -28
- package/dist/utility/character-set-descriptor.js.map +0 -1
- package/dist/utility/character-set-proxy.d.ts +0 -26
- package/dist/utility/character-set-proxy.d.ts.map +0 -1
- package/dist/utility/character-set-proxy.js +0 -167
- package/dist/utility/character-set-proxy.js.map +0 -1
- package/dist/utility/index.d.ts +0 -4
- package/dist/utility/index.d.ts.map +0 -1
- package/dist/utility/index.js +0 -4
- package/dist/utility/index.js.map +0 -1
- package/dist/utility/reg-exp-proxy.d.ts +0 -7
- package/dist/utility/reg-exp-proxy.d.ts.map +0 -1
- package/dist/utility/reg-exp-proxy.js +0 -61
- package/dist/utility/reg-exp-proxy.js.map +0 -1
- package/dist/utility/string-descriptor.d.ts +0 -4
- package/dist/utility/string-descriptor.d.ts.map +0 -1
- package/dist/utility/string-descriptor.js +0 -12
- package/dist/utility/string-descriptor.js.map +0 -1
- package/dist/utility/string-proxy.d.ts +0 -8
- package/dist/utility/string-proxy.d.ts.map +0 -1
- package/dist/utility/string-proxy.js +0 -12
- package/dist/utility/string-proxy.js.map +0 -1
- package/dist/utility/transformer-descriptor.d.ts +0 -6
- package/dist/utility/transformer-descriptor.d.ts.map +0 -1
- package/dist/utility/transformer-descriptor.js +0 -24
- package/dist/utility/transformer-descriptor.js.map +0 -1
- package/dist/utility/transformer-proxy.d.ts +0 -8
- package/dist/utility/transformer-proxy.d.ts.map +0 -1
- package/dist/utility/transformer-proxy.js +0 -74
- package/dist/utility/transformer-proxy.js.map +0 -1
- package/src/generator/logger.ts +0 -45
- package/src/types.ts +0 -144
|
@@ -1,782 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
8
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
-
};
|
|
10
|
-
import { CPID_VALIDATOR, GCN_VALIDATOR, GDTI_VALIDATOR, GIAI_VALIDATOR, GINC_VALIDATOR, GLN_VALIDATOR, GMN_VALIDATOR, GRAI_VALIDATOR, GSIN_VALIDATOR, GSRN_VALIDATOR, GTIN12_VALIDATOR, GTIN13_VALIDATOR, GTIN8_VALIDATOR, GTINCreator, GTINValidator, PrefixManager, PrefixTypes, PrefixValidator, SSCC_VALIDATOR } from "@aidc-toolkit/gs1";
|
|
11
|
-
import { Sequence } from "@aidc-toolkit/utility";
|
|
12
|
-
import { expandParameterDescriptor, ProxyClass, ProxyMethod, ProxyParameter, Types } from "../descriptor.js";
|
|
13
|
-
import { LibProxy } from "../lib-proxy.js";
|
|
14
|
-
import { i18nextAppExtension } from "../locale/i18n.js";
|
|
15
|
-
import { isNullish } from "../types.js";
|
|
16
|
-
import { exclusionAllNumericParameterDescriptor } from "../utility/character-set-descriptor.js";
|
|
17
|
-
import { StringProxy } from "../utility/string-proxy.js";
|
|
18
|
-
import { countParameterDescriptor, startValueParameterDescriptor, valueParameterDescriptor } from "../utility/transformer-descriptor.js";
|
|
19
|
-
const identifierParameterDescriptor = {
|
|
20
|
-
name: "identifier",
|
|
21
|
-
type: Types.String,
|
|
22
|
-
isMatrix: true,
|
|
23
|
-
isRequired: true
|
|
24
|
-
};
|
|
25
|
-
const validateIdentifierParameterDescriptor = {
|
|
26
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
27
|
-
sortOrder: 0,
|
|
28
|
-
name: "validateIdentifier"
|
|
29
|
-
};
|
|
30
|
-
class IdentifierValidatorProxy extends StringProxy {
|
|
31
|
-
_validator;
|
|
32
|
-
constructor(appExtension, validator) {
|
|
33
|
-
super(appExtension);
|
|
34
|
-
this._validator = validator;
|
|
35
|
-
}
|
|
36
|
-
get validator() {
|
|
37
|
-
return this._validator;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
class NumericIdentifierValidatorProxy extends IdentifierValidatorProxy {
|
|
41
|
-
validate(matrixIdentifiers) {
|
|
42
|
-
return this.validateString(this.validator, matrixIdentifiers);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
__decorate([
|
|
46
|
-
ProxyMethod({
|
|
47
|
-
type: Types.String,
|
|
48
|
-
isMatrix: true
|
|
49
|
-
}),
|
|
50
|
-
__param(0, ProxyParameter(validateIdentifierParameterDescriptor))
|
|
51
|
-
], NumericIdentifierValidatorProxy.prototype, "validate", null);
|
|
52
|
-
class GTINValidatorProxy extends NumericIdentifierValidatorProxy {
|
|
53
|
-
}
|
|
54
|
-
class NonGTINNumericIdentifierValidatorProxy extends NumericIdentifierValidatorProxy {
|
|
55
|
-
}
|
|
56
|
-
class SerializableNumericIdentifierValidatorProxy extends NonGTINNumericIdentifierValidatorProxy {
|
|
57
|
-
}
|
|
58
|
-
class NonNumericIdentifierValidatorProxy extends IdentifierValidatorProxy {
|
|
59
|
-
validate(matrixIdentifiers, exclusion) {
|
|
60
|
-
return this.validateString(this.validator, matrixIdentifiers, {
|
|
61
|
-
exclusion: exclusion ?? undefined
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
__decorate([
|
|
66
|
-
ProxyMethod({
|
|
67
|
-
type: Types.String,
|
|
68
|
-
isMatrix: true
|
|
69
|
-
}),
|
|
70
|
-
__param(0, ProxyParameter(validateIdentifierParameterDescriptor)),
|
|
71
|
-
__param(1, ProxyParameter(exclusionAllNumericParameterDescriptor))
|
|
72
|
-
], NonNumericIdentifierValidatorProxy.prototype, "validate", null);
|
|
73
|
-
let GTIN13ValidatorProxy = class GTIN13ValidatorProxy extends GTINValidatorProxy {
|
|
74
|
-
constructor(appExtension) {
|
|
75
|
-
super(appExtension, GTIN13_VALIDATOR);
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
GTIN13ValidatorProxy = __decorate([
|
|
79
|
-
ProxyClass({
|
|
80
|
-
namespace: "GS1",
|
|
81
|
-
methodInfix: "GTIN13"
|
|
82
|
-
})
|
|
83
|
-
], GTIN13ValidatorProxy);
|
|
84
|
-
export { GTIN13ValidatorProxy };
|
|
85
|
-
let GTIN12ValidatorProxy = class GTIN12ValidatorProxy extends GTINValidatorProxy {
|
|
86
|
-
constructor(appExtension) {
|
|
87
|
-
super(appExtension, GTIN12_VALIDATOR);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
GTIN12ValidatorProxy = __decorate([
|
|
91
|
-
ProxyClass({
|
|
92
|
-
namespace: "GS1",
|
|
93
|
-
methodInfix: "GTIN12"
|
|
94
|
-
})
|
|
95
|
-
], GTIN12ValidatorProxy);
|
|
96
|
-
export { GTIN12ValidatorProxy };
|
|
97
|
-
let GTIN8ValidatorProxy = class GTIN8ValidatorProxy extends GTINValidatorProxy {
|
|
98
|
-
constructor(appExtension) {
|
|
99
|
-
super(appExtension, GTIN8_VALIDATOR);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
GTIN8ValidatorProxy = __decorate([
|
|
103
|
-
ProxyClass({
|
|
104
|
-
namespace: "GS1",
|
|
105
|
-
methodInfix: "GTIN8"
|
|
106
|
-
})
|
|
107
|
-
], GTIN8ValidatorProxy);
|
|
108
|
-
export { GTIN8ValidatorProxy };
|
|
109
|
-
const zeroSuppressibleGTIN12ParameterDescriptor = {
|
|
110
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
111
|
-
name: "zeroSuppressibleGTIN12"
|
|
112
|
-
};
|
|
113
|
-
const zeroSuppressedGTIN12ParameterDescriptor = {
|
|
114
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
115
|
-
name: "zeroSuppressedGTIN12"
|
|
116
|
-
};
|
|
117
|
-
const indicatorDigitParameterDescriptor = {
|
|
118
|
-
name: "indicatorDigit",
|
|
119
|
-
type: Types.String,
|
|
120
|
-
isMatrix: false,
|
|
121
|
-
isRequired: true
|
|
122
|
-
};
|
|
123
|
-
const convertGTINParameterDescriptor = {
|
|
124
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
125
|
-
name: "convertGTIN"
|
|
126
|
-
};
|
|
127
|
-
const normalizeGTINParameterDescriptor = {
|
|
128
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
129
|
-
name: "normalizeGTIN"
|
|
130
|
-
};
|
|
131
|
-
const validateGTINParameterDescriptor = {
|
|
132
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
133
|
-
name: "validateGTIN"
|
|
134
|
-
};
|
|
135
|
-
const gtinLevelParameterDescriptor = {
|
|
136
|
-
name: "gtinLevel",
|
|
137
|
-
type: Types.Number,
|
|
138
|
-
isMatrix: false,
|
|
139
|
-
isRequired: false
|
|
140
|
-
};
|
|
141
|
-
const validateGTIN14ParameterDescriptor = {
|
|
142
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
143
|
-
name: "validateGTIN14"
|
|
144
|
-
};
|
|
145
|
-
const rcnFormatParameterDescriptor = {
|
|
146
|
-
name: "rcnFormat",
|
|
147
|
-
type: Types.String,
|
|
148
|
-
isMatrix: false,
|
|
149
|
-
isRequired: true
|
|
150
|
-
};
|
|
151
|
-
const rcnParameterDescriptor = {
|
|
152
|
-
name: "rcn",
|
|
153
|
-
type: Types.String,
|
|
154
|
-
isMatrix: true,
|
|
155
|
-
isRequired: true
|
|
156
|
-
};
|
|
157
|
-
const rcnItemReferenceParameterDescriptor = {
|
|
158
|
-
name: "rcnItemReference",
|
|
159
|
-
type: Types.Number,
|
|
160
|
-
isMatrix: false,
|
|
161
|
-
isRequired: true
|
|
162
|
-
};
|
|
163
|
-
const rcnPriceOrWeightParameterDescriptor = {
|
|
164
|
-
name: "rcnPriceOrWeight",
|
|
165
|
-
type: Types.Number,
|
|
166
|
-
isMatrix: true,
|
|
167
|
-
isRequired: true
|
|
168
|
-
};
|
|
169
|
-
let GTINValidatorStaticProxy = class GTINValidatorStaticProxy extends LibProxy {
|
|
170
|
-
zeroSuppressGTIN12(matrixGTIN12s) {
|
|
171
|
-
return this.mapMatrix(matrixGTIN12s, gtin12 => GTINValidator.zeroSuppress(gtin12));
|
|
172
|
-
}
|
|
173
|
-
zeroExpandGTIN12(matrixZeroSuppressedGTIN12s) {
|
|
174
|
-
return this.mapMatrix(matrixZeroSuppressedGTIN12s, zeroSuppressedGTIN12 => GTINValidator.zeroExpand(zeroSuppressedGTIN12));
|
|
175
|
-
}
|
|
176
|
-
convertToGTIN14(indicatorDigit, matrixGTINs) {
|
|
177
|
-
return this.mapMatrix(matrixGTINs, gtin => GTINValidator.convertToGTIN14(indicatorDigit, gtin));
|
|
178
|
-
}
|
|
179
|
-
normalizeGTIN(matrixGTINs) {
|
|
180
|
-
return this.mapMatrix(matrixGTINs, gtin => GTINValidator.normalize(gtin));
|
|
181
|
-
}
|
|
182
|
-
validateGTIN(matrixGTINs, gtinLevel) {
|
|
183
|
-
const gtinLevelOrUndefined = gtinLevel ?? undefined;
|
|
184
|
-
return LibProxy.mapMatrixRangeError(matrixGTINs, (gtin) => {
|
|
185
|
-
GTINValidator.validateAny(gtin, gtinLevelOrUndefined);
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
validateGTIN14(matrixGTIN14s) {
|
|
189
|
-
return LibProxy.mapMatrixRangeError(matrixGTIN14s, (gtin14) => {
|
|
190
|
-
GTINValidator.validateGTIN14(gtin14);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
parseVariableMeasureRCN(format, matrixRCNs) {
|
|
194
|
-
return this.mapArray(matrixRCNs, (rcn) => {
|
|
195
|
-
const rcnReference = GTINValidator.parseVariableMeasureRCN(format, rcn);
|
|
196
|
-
return [rcnReference.itemReference, rcnReference.priceOrWeight];
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
__decorate([
|
|
201
|
-
ProxyMethod({
|
|
202
|
-
type: Types.String,
|
|
203
|
-
isMatrix: true
|
|
204
|
-
}),
|
|
205
|
-
__param(0, ProxyParameter(zeroSuppressibleGTIN12ParameterDescriptor))
|
|
206
|
-
], GTINValidatorStaticProxy.prototype, "zeroSuppressGTIN12", null);
|
|
207
|
-
__decorate([
|
|
208
|
-
ProxyMethod({
|
|
209
|
-
type: Types.String,
|
|
210
|
-
isMatrix: true
|
|
211
|
-
}),
|
|
212
|
-
__param(0, ProxyParameter(zeroSuppressedGTIN12ParameterDescriptor))
|
|
213
|
-
], GTINValidatorStaticProxy.prototype, "zeroExpandGTIN12", null);
|
|
214
|
-
__decorate([
|
|
215
|
-
ProxyMethod({
|
|
216
|
-
type: Types.String,
|
|
217
|
-
isMatrix: true
|
|
218
|
-
}),
|
|
219
|
-
__param(0, ProxyParameter(indicatorDigitParameterDescriptor)),
|
|
220
|
-
__param(1, ProxyParameter(convertGTINParameterDescriptor))
|
|
221
|
-
], GTINValidatorStaticProxy.prototype, "convertToGTIN14", null);
|
|
222
|
-
__decorate([
|
|
223
|
-
ProxyMethod({
|
|
224
|
-
type: Types.String,
|
|
225
|
-
isMatrix: true
|
|
226
|
-
}),
|
|
227
|
-
__param(0, ProxyParameter(normalizeGTINParameterDescriptor))
|
|
228
|
-
], GTINValidatorStaticProxy.prototype, "normalizeGTIN", null);
|
|
229
|
-
__decorate([
|
|
230
|
-
ProxyMethod({
|
|
231
|
-
type: Types.String,
|
|
232
|
-
isMatrix: true
|
|
233
|
-
}),
|
|
234
|
-
__param(0, ProxyParameter(validateGTINParameterDescriptor)),
|
|
235
|
-
__param(1, ProxyParameter(gtinLevelParameterDescriptor))
|
|
236
|
-
], GTINValidatorStaticProxy.prototype, "validateGTIN", null);
|
|
237
|
-
__decorate([
|
|
238
|
-
ProxyMethod({
|
|
239
|
-
type: Types.String,
|
|
240
|
-
isMatrix: true
|
|
241
|
-
}),
|
|
242
|
-
__param(0, ProxyParameter(validateGTIN14ParameterDescriptor))
|
|
243
|
-
], GTINValidatorStaticProxy.prototype, "validateGTIN14", null);
|
|
244
|
-
__decorate([
|
|
245
|
-
ProxyMethod({
|
|
246
|
-
type: Types.Number,
|
|
247
|
-
isMatrix: true
|
|
248
|
-
}),
|
|
249
|
-
__param(0, ProxyParameter(rcnFormatParameterDescriptor)),
|
|
250
|
-
__param(1, ProxyParameter(rcnParameterDescriptor))
|
|
251
|
-
], GTINValidatorStaticProxy.prototype, "parseVariableMeasureRCN", null);
|
|
252
|
-
GTINValidatorStaticProxy = __decorate([
|
|
253
|
-
ProxyClass({
|
|
254
|
-
namespace: "GS1"
|
|
255
|
-
})
|
|
256
|
-
], GTINValidatorStaticProxy);
|
|
257
|
-
export { GTINValidatorStaticProxy };
|
|
258
|
-
let GLNValidatorProxy = class GLNValidatorProxy extends NonGTINNumericIdentifierValidatorProxy {
|
|
259
|
-
constructor(appExtension) {
|
|
260
|
-
super(appExtension, GLN_VALIDATOR);
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
GLNValidatorProxy = __decorate([
|
|
264
|
-
ProxyClass({
|
|
265
|
-
namespace: "GS1",
|
|
266
|
-
methodInfix: "GLN"
|
|
267
|
-
})
|
|
268
|
-
], GLNValidatorProxy);
|
|
269
|
-
export { GLNValidatorProxy };
|
|
270
|
-
let SSCCValidatorProxy = class SSCCValidatorProxy extends NonGTINNumericIdentifierValidatorProxy {
|
|
271
|
-
constructor(appExtension) {
|
|
272
|
-
super(appExtension, SSCC_VALIDATOR);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
SSCCValidatorProxy = __decorate([
|
|
276
|
-
ProxyClass({
|
|
277
|
-
namespace: "GS1",
|
|
278
|
-
methodInfix: "SSCC"
|
|
279
|
-
})
|
|
280
|
-
], SSCCValidatorProxy);
|
|
281
|
-
export { SSCCValidatorProxy };
|
|
282
|
-
let GRAIValidatorProxy = class GRAIValidatorProxy extends SerializableNumericIdentifierValidatorProxy {
|
|
283
|
-
constructor(appExtension) {
|
|
284
|
-
super(appExtension, GRAI_VALIDATOR);
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
GRAIValidatorProxy = __decorate([
|
|
288
|
-
ProxyClass({
|
|
289
|
-
namespace: "GS1",
|
|
290
|
-
methodInfix: "GRAI"
|
|
291
|
-
})
|
|
292
|
-
], GRAIValidatorProxy);
|
|
293
|
-
export { GRAIValidatorProxy };
|
|
294
|
-
let GIAIValidatorProxy = class GIAIValidatorProxy extends NonNumericIdentifierValidatorProxy {
|
|
295
|
-
constructor(appExtension) {
|
|
296
|
-
super(appExtension, GIAI_VALIDATOR);
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
GIAIValidatorProxy = __decorate([
|
|
300
|
-
ProxyClass({
|
|
301
|
-
namespace: "GS1",
|
|
302
|
-
methodInfix: "GIAI"
|
|
303
|
-
})
|
|
304
|
-
], GIAIValidatorProxy);
|
|
305
|
-
export { GIAIValidatorProxy };
|
|
306
|
-
let GSRNValidatorProxy = class GSRNValidatorProxy extends NonGTINNumericIdentifierValidatorProxy {
|
|
307
|
-
constructor(appExtension) {
|
|
308
|
-
super(appExtension, GSRN_VALIDATOR);
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
GSRNValidatorProxy = __decorate([
|
|
312
|
-
ProxyClass({
|
|
313
|
-
namespace: "GS1",
|
|
314
|
-
methodInfix: "GSRN"
|
|
315
|
-
})
|
|
316
|
-
], GSRNValidatorProxy);
|
|
317
|
-
export { GSRNValidatorProxy };
|
|
318
|
-
let GDTIValidatorProxy = class GDTIValidatorProxy extends SerializableNumericIdentifierValidatorProxy {
|
|
319
|
-
constructor(appExtension) {
|
|
320
|
-
super(appExtension, GDTI_VALIDATOR);
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
GDTIValidatorProxy = __decorate([
|
|
324
|
-
ProxyClass({
|
|
325
|
-
namespace: "GS1",
|
|
326
|
-
methodInfix: "GDTI"
|
|
327
|
-
})
|
|
328
|
-
], GDTIValidatorProxy);
|
|
329
|
-
export { GDTIValidatorProxy };
|
|
330
|
-
let GINCValidatorProxy = class GINCValidatorProxy extends NonNumericIdentifierValidatorProxy {
|
|
331
|
-
constructor(appExtension) {
|
|
332
|
-
super(appExtension, GINC_VALIDATOR);
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
GINCValidatorProxy = __decorate([
|
|
336
|
-
ProxyClass({
|
|
337
|
-
namespace: "GS1",
|
|
338
|
-
methodInfix: "GINC"
|
|
339
|
-
})
|
|
340
|
-
], GINCValidatorProxy);
|
|
341
|
-
export { GINCValidatorProxy };
|
|
342
|
-
let GSINValidatorProxy = class GSINValidatorProxy extends NonGTINNumericIdentifierValidatorProxy {
|
|
343
|
-
constructor(appExtension) {
|
|
344
|
-
super(appExtension, GSIN_VALIDATOR);
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
GSINValidatorProxy = __decorate([
|
|
348
|
-
ProxyClass({
|
|
349
|
-
namespace: "GS1",
|
|
350
|
-
methodInfix: "GSIN"
|
|
351
|
-
})
|
|
352
|
-
], GSINValidatorProxy);
|
|
353
|
-
export { GSINValidatorProxy };
|
|
354
|
-
let GCNValidatorProxy = class GCNValidatorProxy extends SerializableNumericIdentifierValidatorProxy {
|
|
355
|
-
constructor(appExtension) {
|
|
356
|
-
super(appExtension, GCN_VALIDATOR);
|
|
357
|
-
}
|
|
358
|
-
};
|
|
359
|
-
GCNValidatorProxy = __decorate([
|
|
360
|
-
ProxyClass({
|
|
361
|
-
namespace: "GS1",
|
|
362
|
-
methodInfix: "GCN"
|
|
363
|
-
})
|
|
364
|
-
], GCNValidatorProxy);
|
|
365
|
-
export { GCNValidatorProxy };
|
|
366
|
-
let CPIDValidatorProxy = class CPIDValidatorProxy extends NonNumericIdentifierValidatorProxy {
|
|
367
|
-
constructor(appExtension) {
|
|
368
|
-
super(appExtension, CPID_VALIDATOR);
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
CPIDValidatorProxy = __decorate([
|
|
372
|
-
ProxyClass({
|
|
373
|
-
namespace: "GS1",
|
|
374
|
-
methodInfix: "CPID"
|
|
375
|
-
})
|
|
376
|
-
], CPIDValidatorProxy);
|
|
377
|
-
export { CPIDValidatorProxy };
|
|
378
|
-
let GMNValidatorProxy = class GMNValidatorProxy extends NonNumericIdentifierValidatorProxy {
|
|
379
|
-
constructor(appExtension) {
|
|
380
|
-
super(appExtension, GMN_VALIDATOR);
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
GMNValidatorProxy = __decorate([
|
|
384
|
-
ProxyClass({
|
|
385
|
-
namespace: "GS1",
|
|
386
|
-
methodInfix: "GMN"
|
|
387
|
-
})
|
|
388
|
-
], GMNValidatorProxy);
|
|
389
|
-
export { GMNValidatorProxy };
|
|
390
|
-
const prefixParameterDescriptor = {
|
|
391
|
-
name: "prefix",
|
|
392
|
-
type: Types.String,
|
|
393
|
-
isMatrix: false,
|
|
394
|
-
isRequired: true
|
|
395
|
-
};
|
|
396
|
-
const prefixTypeParameterDescriptor = {
|
|
397
|
-
name: "prefixType",
|
|
398
|
-
type: Types.Number,
|
|
399
|
-
isMatrix: false,
|
|
400
|
-
isRequired: false
|
|
401
|
-
};
|
|
402
|
-
const tweakFactorParameterDescriptor = {
|
|
403
|
-
name: "tweakFactor",
|
|
404
|
-
type: Types.Number,
|
|
405
|
-
isMatrix: false,
|
|
406
|
-
isRequired: false
|
|
407
|
-
};
|
|
408
|
-
const prefixDefinitionParameterDescriptor = {
|
|
409
|
-
name: "prefixDefinition",
|
|
410
|
-
type: Types.Any,
|
|
411
|
-
isMatrix: true,
|
|
412
|
-
isRequired: true
|
|
413
|
-
};
|
|
414
|
-
const prefixDefinitionGS1UPCParameterDescriptor = {
|
|
415
|
-
extendsDescriptor: prefixDefinitionParameterDescriptor,
|
|
416
|
-
name: "prefixDefinitionGS1UPC"
|
|
417
|
-
};
|
|
418
|
-
const prefixDefinitionAnyParameterDescriptor = {
|
|
419
|
-
extendsDescriptor: prefixDefinitionParameterDescriptor,
|
|
420
|
-
name: "prefixDefinitionAny"
|
|
421
|
-
};
|
|
422
|
-
let PrefixManagerProxy = class PrefixManagerProxy extends LibProxy {
|
|
423
|
-
definePrefix(prefix, prefixType, tweakFactor) {
|
|
424
|
-
// Parameters will be validated by IdentifierCreatorProxy.getCreator().
|
|
425
|
-
return [[prefix, prefixType, tweakFactor]];
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
__decorate([
|
|
429
|
-
ProxyMethod({
|
|
430
|
-
type: Types.Any,
|
|
431
|
-
isMatrix: true
|
|
432
|
-
}),
|
|
433
|
-
__param(0, ProxyParameter(prefixParameterDescriptor)),
|
|
434
|
-
__param(1, ProxyParameter(prefixTypeParameterDescriptor)),
|
|
435
|
-
__param(2, ProxyParameter(tweakFactorParameterDescriptor))
|
|
436
|
-
], PrefixManagerProxy.prototype, "definePrefix", null);
|
|
437
|
-
PrefixManagerProxy = __decorate([
|
|
438
|
-
ProxyClass({
|
|
439
|
-
namespace: "GS1"
|
|
440
|
-
})
|
|
441
|
-
], PrefixManagerProxy);
|
|
442
|
-
export { PrefixManagerProxy };
|
|
443
|
-
class IdentifierCreatorProxy extends LibProxy {
|
|
444
|
-
static PREFIX_TYPES = [PrefixTypes.GS1CompanyPrefix, PrefixTypes.UPCCompanyPrefix, PrefixTypes.GS18Prefix];
|
|
445
|
-
_getCreator;
|
|
446
|
-
constructor(appExtension, getCreator) {
|
|
447
|
-
super(appExtension);
|
|
448
|
-
this._getCreator = getCreator;
|
|
449
|
-
}
|
|
450
|
-
getCreator(prefixDefinition) {
|
|
451
|
-
const reducedPrefixDefinition = prefixDefinition.length === 1 ?
|
|
452
|
-
// Prefix definition is horizontal.
|
|
453
|
-
prefixDefinition[0] :
|
|
454
|
-
// Prefix definition is vertical.
|
|
455
|
-
prefixDefinition.map((prefixDefinitionRow) => {
|
|
456
|
-
if (prefixDefinitionRow.length !== 1) {
|
|
457
|
-
throw new RangeError(i18nextAppExtension.t("IdentifierCreatorProxy.prefixDefinitionMustBeOneDimensional"));
|
|
458
|
-
}
|
|
459
|
-
return prefixDefinitionRow[0];
|
|
460
|
-
});
|
|
461
|
-
if (reducedPrefixDefinition.length > 3) {
|
|
462
|
-
throw new RangeError(i18nextAppExtension.t("IdentifierCreatorProxy.prefixDefinitionMustHaveMaximumThreeElements"));
|
|
463
|
-
}
|
|
464
|
-
const prefix = reducedPrefixDefinition[0];
|
|
465
|
-
if (typeof prefix !== "string") {
|
|
466
|
-
throw new RangeError(i18nextAppExtension.t("IdentifierCreatorProxy.prefixMustBeString"));
|
|
467
|
-
}
|
|
468
|
-
const prefixTypeIndex = reducedPrefixDefinition[1] ?? 0;
|
|
469
|
-
if (typeof prefixTypeIndex !== "number" || prefixTypeIndex < 0 || prefixTypeIndex >= IdentifierCreatorProxy.PREFIX_TYPES.length) {
|
|
470
|
-
throw new RangeError(i18nextAppExtension.t("IdentifierCreatorProxy.prefixTypeMustBeNumber", {
|
|
471
|
-
maximumPrefixType: IdentifierCreatorProxy.PREFIX_TYPES.length - 1
|
|
472
|
-
}));
|
|
473
|
-
}
|
|
474
|
-
const prefixManager = PrefixManager.get(IdentifierCreatorProxy.PREFIX_TYPES[prefixTypeIndex], prefix);
|
|
475
|
-
const tweakFactor = reducedPrefixDefinition[2];
|
|
476
|
-
if (!isNullish(tweakFactor)) {
|
|
477
|
-
if (typeof tweakFactor !== "number") {
|
|
478
|
-
throw new RangeError(i18nextAppExtension.t("IdentifierCreatorProxy.tweakFactorMustBeNumber"));
|
|
479
|
-
}
|
|
480
|
-
prefixManager.tweakFactor = tweakFactor;
|
|
481
|
-
}
|
|
482
|
-
else {
|
|
483
|
-
prefixManager.resetTweakFactor();
|
|
484
|
-
}
|
|
485
|
-
return this._getCreator(prefixManager);
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
const sparseParameterDescriptor = {
|
|
489
|
-
name: "sparse",
|
|
490
|
-
type: Types.Boolean,
|
|
491
|
-
isMatrix: false,
|
|
492
|
-
isRequired: false
|
|
493
|
-
};
|
|
494
|
-
class NumericIdentifierCreatorProxy extends IdentifierCreatorProxy {
|
|
495
|
-
create(prefixDefinition, matrixValues, sparse) {
|
|
496
|
-
const creator = this.getCreator(prefixDefinition);
|
|
497
|
-
const sparseOrUndefined = sparse ?? undefined;
|
|
498
|
-
return this.mapMatrix(matrixValues, value => creator.create(value, sparseOrUndefined));
|
|
499
|
-
}
|
|
500
|
-
createSequence(prefixDefinition, startValue, count, sparse) {
|
|
501
|
-
this.appExtension.validateSequenceCount(count);
|
|
502
|
-
return LibProxy.matrixResult(this.getCreator(prefixDefinition).create(new Sequence(startValue, count), sparse ?? undefined));
|
|
503
|
-
}
|
|
504
|
-
createAll(prefixDefinition) {
|
|
505
|
-
const creator = this.getCreator(prefixDefinition);
|
|
506
|
-
this.appExtension.validateSequenceCount(creator.capacity);
|
|
507
|
-
return LibProxy.matrixResult(creator.createAll());
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
__decorate([
|
|
511
|
-
ProxyMethod({
|
|
512
|
-
type: Types.String,
|
|
513
|
-
isMatrix: true
|
|
514
|
-
}),
|
|
515
|
-
__param(0, ProxyParameter(prefixDefinitionGS1UPCParameterDescriptor)),
|
|
516
|
-
__param(1, ProxyParameter(valueParameterDescriptor)),
|
|
517
|
-
__param(2, ProxyParameter(sparseParameterDescriptor))
|
|
518
|
-
], NumericIdentifierCreatorProxy.prototype, "create", null);
|
|
519
|
-
__decorate([
|
|
520
|
-
ProxyMethod({
|
|
521
|
-
infixBefore: "Sequence",
|
|
522
|
-
type: Types.String,
|
|
523
|
-
isMatrix: true
|
|
524
|
-
}),
|
|
525
|
-
__param(0, ProxyParameter(prefixDefinitionGS1UPCParameterDescriptor)),
|
|
526
|
-
__param(1, ProxyParameter(startValueParameterDescriptor)),
|
|
527
|
-
__param(2, ProxyParameter(countParameterDescriptor)),
|
|
528
|
-
__param(3, ProxyParameter(sparseParameterDescriptor))
|
|
529
|
-
], NumericIdentifierCreatorProxy.prototype, "createSequence", null);
|
|
530
|
-
__decorate([
|
|
531
|
-
ProxyMethod({
|
|
532
|
-
type: Types.String,
|
|
533
|
-
isMatrix: true
|
|
534
|
-
}),
|
|
535
|
-
__param(0, ProxyParameter(prefixDefinitionGS1UPCParameterDescriptor))
|
|
536
|
-
], NumericIdentifierCreatorProxy.prototype, "createAll", null);
|
|
537
|
-
class NonGTINNumericIdentifierCreatorProxy extends NumericIdentifierCreatorProxy {
|
|
538
|
-
}
|
|
539
|
-
const singleValueParameterDescriptor = {
|
|
540
|
-
extendsDescriptor: valueParameterDescriptor,
|
|
541
|
-
isMatrix: false
|
|
542
|
-
};
|
|
543
|
-
const baseIdentifierParameterDescriptor = {
|
|
544
|
-
extendsDescriptor: identifierParameterDescriptor,
|
|
545
|
-
name: "baseIdentifier",
|
|
546
|
-
isMatrix: false
|
|
547
|
-
};
|
|
548
|
-
const serialComponentParameterDescriptor = {
|
|
549
|
-
name: "serialComponent",
|
|
550
|
-
type: Types.String,
|
|
551
|
-
isMatrix: true,
|
|
552
|
-
isRequired: true
|
|
553
|
-
};
|
|
554
|
-
class SerializableNumericIdentifierCreatorProxy extends NonGTINNumericIdentifierCreatorProxy {
|
|
555
|
-
createSerialized(prefixDefinition, value, matrixSerialComponents, sparse) {
|
|
556
|
-
const creator = this.getCreator(prefixDefinition);
|
|
557
|
-
const sparseOrUndefined = sparse ?? undefined;
|
|
558
|
-
return this.mapMatrix(matrixSerialComponents, serialComponent => creator.createSerialized(value, serialComponent, sparseOrUndefined));
|
|
559
|
-
}
|
|
560
|
-
concatenate(baseIdentifier, matrixSerialComponents) {
|
|
561
|
-
const creator = this.getCreator([[baseIdentifier.substring(0, !baseIdentifier.startsWith("0") ? PrefixValidator.GS1_COMPANY_PREFIX_MINIMUM_LENGTH : PrefixValidator.UPC_COMPANY_PREFIX_MINIMUM_LENGTH + 1), PrefixTypes.GS1CompanyPrefix]]);
|
|
562
|
-
return this.mapMatrix(matrixSerialComponents, serialComponent => creator.concatenate(baseIdentifier, serialComponent));
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
__decorate([
|
|
566
|
-
ProxyMethod({
|
|
567
|
-
type: Types.String,
|
|
568
|
-
isMatrix: true
|
|
569
|
-
}),
|
|
570
|
-
__param(0, ProxyParameter(prefixDefinitionGS1UPCParameterDescriptor)),
|
|
571
|
-
__param(1, ProxyParameter(singleValueParameterDescriptor)),
|
|
572
|
-
__param(2, ProxyParameter(serialComponentParameterDescriptor)),
|
|
573
|
-
__param(3, ProxyParameter(sparseParameterDescriptor))
|
|
574
|
-
], SerializableNumericIdentifierCreatorProxy.prototype, "createSerialized", null);
|
|
575
|
-
__decorate([
|
|
576
|
-
ProxyMethod({
|
|
577
|
-
type: Types.String,
|
|
578
|
-
isMatrix: true
|
|
579
|
-
}),
|
|
580
|
-
__param(0, ProxyParameter(baseIdentifierParameterDescriptor)),
|
|
581
|
-
__param(1, ProxyParameter(serialComponentParameterDescriptor))
|
|
582
|
-
], SerializableNumericIdentifierCreatorProxy.prototype, "concatenate", null);
|
|
583
|
-
const referenceParameterDescriptor = {
|
|
584
|
-
name: "reference",
|
|
585
|
-
type: Types.String,
|
|
586
|
-
isMatrix: true,
|
|
587
|
-
isRequired: true
|
|
588
|
-
};
|
|
589
|
-
class NonNumericIdentifierCreatorProxy extends IdentifierCreatorProxy {
|
|
590
|
-
create(prefixDefinition, matrixReferences) {
|
|
591
|
-
const creator = this.getCreator(prefixDefinition);
|
|
592
|
-
return this.mapMatrix(matrixReferences, reference => creator.create(reference));
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
__decorate([
|
|
596
|
-
ProxyMethod({
|
|
597
|
-
type: Types.String,
|
|
598
|
-
isMatrix: true
|
|
599
|
-
}),
|
|
600
|
-
__param(0, ProxyParameter(prefixDefinitionGS1UPCParameterDescriptor)),
|
|
601
|
-
__param(1, ProxyParameter(referenceParameterDescriptor))
|
|
602
|
-
], NonNumericIdentifierCreatorProxy.prototype, "create", null);
|
|
603
|
-
let GTINCreatorProxy = class GTINCreatorProxy extends NumericIdentifierCreatorProxy {
|
|
604
|
-
constructor(appExtension) {
|
|
605
|
-
super(appExtension, prefixManager => prefixManager.gtinCreator);
|
|
606
|
-
}
|
|
607
|
-
createGTIN14(indicatorDigit, prefixDefinition, matrixValues, sparse) {
|
|
608
|
-
const creator = this.getCreator(prefixDefinition);
|
|
609
|
-
const sparseOrUndefined = sparse ?? undefined;
|
|
610
|
-
return this.mapMatrix(matrixValues, value => creator.createGTIN14(indicatorDigit, value, sparseOrUndefined));
|
|
611
|
-
}
|
|
612
|
-
createVariableMeasureRCN(format, itemReference, matrixPricesOrWeights) {
|
|
613
|
-
return this.mapMatrix(matrixPricesOrWeights, priceOrWeight => GTINCreator.createVariableMeasureRCN(format, itemReference, priceOrWeight));
|
|
614
|
-
}
|
|
615
|
-
};
|
|
616
|
-
__decorate([
|
|
617
|
-
ProxyMethod({
|
|
618
|
-
type: Types.String,
|
|
619
|
-
isMatrix: true,
|
|
620
|
-
ignoreInfix: true
|
|
621
|
-
}),
|
|
622
|
-
__param(0, ProxyParameter(indicatorDigitParameterDescriptor)),
|
|
623
|
-
__param(1, ProxyParameter(prefixDefinitionAnyParameterDescriptor)),
|
|
624
|
-
__param(2, ProxyParameter(valueParameterDescriptor)),
|
|
625
|
-
__param(3, ProxyParameter(sparseParameterDescriptor))
|
|
626
|
-
], GTINCreatorProxy.prototype, "createGTIN14", null);
|
|
627
|
-
__decorate([
|
|
628
|
-
ProxyMethod({
|
|
629
|
-
type: Types.String,
|
|
630
|
-
isMatrix: true,
|
|
631
|
-
ignoreInfix: true
|
|
632
|
-
}),
|
|
633
|
-
__param(0, ProxyParameter(rcnFormatParameterDescriptor)),
|
|
634
|
-
__param(1, ProxyParameter(rcnItemReferenceParameterDescriptor)),
|
|
635
|
-
__param(2, ProxyParameter(rcnPriceOrWeightParameterDescriptor))
|
|
636
|
-
], GTINCreatorProxy.prototype, "createVariableMeasureRCN", null);
|
|
637
|
-
GTINCreatorProxy = __decorate([
|
|
638
|
-
ProxyClass({
|
|
639
|
-
namespace: "GS1",
|
|
640
|
-
methodInfix: "GTIN",
|
|
641
|
-
replaceParameterDescriptors: [
|
|
642
|
-
{
|
|
643
|
-
name: expandParameterDescriptor(prefixDefinitionGS1UPCParameterDescriptor).name,
|
|
644
|
-
replacement: prefixDefinitionAnyParameterDescriptor
|
|
645
|
-
}
|
|
646
|
-
]
|
|
647
|
-
})
|
|
648
|
-
], GTINCreatorProxy);
|
|
649
|
-
export { GTINCreatorProxy };
|
|
650
|
-
let GLNCreatorProxy = class GLNCreatorProxy extends NonGTINNumericIdentifierCreatorProxy {
|
|
651
|
-
constructor(appExtension) {
|
|
652
|
-
super(appExtension, prefixManager => prefixManager.glnCreator);
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
GLNCreatorProxy = __decorate([
|
|
656
|
-
ProxyClass({
|
|
657
|
-
namespace: "GS1",
|
|
658
|
-
methodInfix: "GLN"
|
|
659
|
-
})
|
|
660
|
-
], GLNCreatorProxy);
|
|
661
|
-
export { GLNCreatorProxy };
|
|
662
|
-
let SSCCCreatorProxy = class SSCCCreatorProxy extends NonGTINNumericIdentifierCreatorProxy {
|
|
663
|
-
constructor(appExtension) {
|
|
664
|
-
super(appExtension, prefixManager => prefixManager.ssccCreator);
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
SSCCCreatorProxy = __decorate([
|
|
668
|
-
ProxyClass({
|
|
669
|
-
namespace: "GS1",
|
|
670
|
-
methodInfix: "SSCC"
|
|
671
|
-
})
|
|
672
|
-
], SSCCCreatorProxy);
|
|
673
|
-
export { SSCCCreatorProxy };
|
|
674
|
-
let GRAICreatorProxy = class GRAICreatorProxy extends SerializableNumericIdentifierCreatorProxy {
|
|
675
|
-
constructor(appExtension) {
|
|
676
|
-
super(appExtension, prefixManager => prefixManager.graiCreator);
|
|
677
|
-
}
|
|
678
|
-
};
|
|
679
|
-
GRAICreatorProxy = __decorate([
|
|
680
|
-
ProxyClass({
|
|
681
|
-
namespace: "GS1",
|
|
682
|
-
methodInfix: "GRAI"
|
|
683
|
-
})
|
|
684
|
-
], GRAICreatorProxy);
|
|
685
|
-
export { GRAICreatorProxy };
|
|
686
|
-
let GIAICreatorProxy = class GIAICreatorProxy extends NonNumericIdentifierCreatorProxy {
|
|
687
|
-
constructor(appExtension) {
|
|
688
|
-
super(appExtension, prefixManager => prefixManager.giaiCreator);
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
GIAICreatorProxy = __decorate([
|
|
692
|
-
ProxyClass({
|
|
693
|
-
namespace: "GS1",
|
|
694
|
-
methodInfix: "GIAI"
|
|
695
|
-
})
|
|
696
|
-
], GIAICreatorProxy);
|
|
697
|
-
export { GIAICreatorProxy };
|
|
698
|
-
let GSRNCreatorProxy = class GSRNCreatorProxy extends NonGTINNumericIdentifierCreatorProxy {
|
|
699
|
-
constructor(appExtension) {
|
|
700
|
-
super(appExtension, prefixManager => prefixManager.gsrnCreator);
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
GSRNCreatorProxy = __decorate([
|
|
704
|
-
ProxyClass({
|
|
705
|
-
namespace: "GS1",
|
|
706
|
-
methodInfix: "GSRN"
|
|
707
|
-
})
|
|
708
|
-
], GSRNCreatorProxy);
|
|
709
|
-
export { GSRNCreatorProxy };
|
|
710
|
-
let GDTICreatorProxy = class GDTICreatorProxy extends SerializableNumericIdentifierCreatorProxy {
|
|
711
|
-
constructor(appExtension) {
|
|
712
|
-
super(appExtension, prefixManager => prefixManager.gdtiCreator);
|
|
713
|
-
}
|
|
714
|
-
};
|
|
715
|
-
GDTICreatorProxy = __decorate([
|
|
716
|
-
ProxyClass({
|
|
717
|
-
namespace: "GS1",
|
|
718
|
-
methodInfix: "GDTI"
|
|
719
|
-
})
|
|
720
|
-
], GDTICreatorProxy);
|
|
721
|
-
export { GDTICreatorProxy };
|
|
722
|
-
let GINCCreatorProxy = class GINCCreatorProxy extends NonNumericIdentifierCreatorProxy {
|
|
723
|
-
constructor(appExtension) {
|
|
724
|
-
super(appExtension, prefixManager => prefixManager.gincCreator);
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
GINCCreatorProxy = __decorate([
|
|
728
|
-
ProxyClass({
|
|
729
|
-
namespace: "GS1",
|
|
730
|
-
methodInfix: "GINC"
|
|
731
|
-
})
|
|
732
|
-
], GINCCreatorProxy);
|
|
733
|
-
export { GINCCreatorProxy };
|
|
734
|
-
let GSINCreatorProxy = class GSINCreatorProxy extends NonGTINNumericIdentifierCreatorProxy {
|
|
735
|
-
constructor(appExtension) {
|
|
736
|
-
super(appExtension, prefixManager => prefixManager.gsinCreator);
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
GSINCreatorProxy = __decorate([
|
|
740
|
-
ProxyClass({
|
|
741
|
-
namespace: "GS1",
|
|
742
|
-
methodInfix: "GSIN"
|
|
743
|
-
})
|
|
744
|
-
], GSINCreatorProxy);
|
|
745
|
-
export { GSINCreatorProxy };
|
|
746
|
-
let GCNCreatorProxy = class GCNCreatorProxy extends SerializableNumericIdentifierCreatorProxy {
|
|
747
|
-
constructor(appExtension) {
|
|
748
|
-
super(appExtension, prefixManager => prefixManager.gcnCreator);
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
|
-
GCNCreatorProxy = __decorate([
|
|
752
|
-
ProxyClass({
|
|
753
|
-
namespace: "GS1",
|
|
754
|
-
methodInfix: "GCN"
|
|
755
|
-
})
|
|
756
|
-
], GCNCreatorProxy);
|
|
757
|
-
export { GCNCreatorProxy };
|
|
758
|
-
let CPIDCreatorProxy = class CPIDCreatorProxy extends NonNumericIdentifierCreatorProxy {
|
|
759
|
-
constructor(appExtension) {
|
|
760
|
-
super(appExtension, prefixManager => prefixManager.cpidCreator);
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
CPIDCreatorProxy = __decorate([
|
|
764
|
-
ProxyClass({
|
|
765
|
-
namespace: "GS1",
|
|
766
|
-
methodInfix: "CPID"
|
|
767
|
-
})
|
|
768
|
-
], CPIDCreatorProxy);
|
|
769
|
-
export { CPIDCreatorProxy };
|
|
770
|
-
let GMNCreatorProxy = class GMNCreatorProxy extends NonNumericIdentifierCreatorProxy {
|
|
771
|
-
constructor(appExtension) {
|
|
772
|
-
super(appExtension, prefixManager => prefixManager.gmnCreator);
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
GMNCreatorProxy = __decorate([
|
|
776
|
-
ProxyClass({
|
|
777
|
-
namespace: "GS1",
|
|
778
|
-
methodInfix: "GMN"
|
|
779
|
-
})
|
|
780
|
-
], GMNCreatorProxy);
|
|
781
|
-
export { GMNCreatorProxy };
|
|
782
|
-
//# sourceMappingURL=identifier-proxy.js.map
|