@aidc-toolkit/app-extension 1.0.23-beta → 1.0.25-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 +3457 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1769 -0
- package/dist/index.d.ts +1769 -26
- package/dist/index.js +3409 -9
- package/dist/index.js.map +1 -1
- package/package.json +10 -13
- package/src/app-extension.ts +3 -10
- package/src/app-utility-proxy.ts +5 -4
- package/src/descriptor.ts +18 -9
- 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-resources-generator.ts +14 -10
- package/src/gs1/character-set-proxy.ts +18 -8
- package/src/gs1/check-proxy.ts +3 -3
- package/src/gs1/identifier-proxy.ts +71 -66
- 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-resources.ts +9 -0
- package/src/locale/fr/locale-resources.ts +9 -0
- package/src/locale/i18n.ts +3 -5
- package/src/locale/i18next.d.ts +1 -1
- package/{dist/types.d.ts → src/type.ts} +11 -39
- package/src/utility/character-set-descriptor.ts +1 -1
- package/src/utility/character-set-proxy.ts +29 -17
- 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-resources.d.ts +0 -617
- package/dist/locale/en/locale-resources.d.ts.map +0 -1
- package/dist/locale/en/locale-resources.js +0 -616
- package/dist/locale/en/locale-resources.js.map +0 -1
- package/dist/locale/fr/locale-resources.d.ts +0 -617
- package/dist/locale/fr/locale-resources.d.ts.map +0 -1
- package/dist/locale/fr/locale-resources.js +0 -616
- package/dist/locale/fr/locale-resources.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
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,1769 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { I18nEnvironment, TypedSyncFunction, TypedFunction, TypedAsyncFunction, Nullishable } from '@aidc-toolkit/core';
|
|
2
|
+
import { Resource, i18n } from 'i18next';
|
|
3
|
+
import { StringValidation, StringValidator, CharacterSetValidator, Exclusion, CharacterSetCreator } from '@aidc-toolkit/utility';
|
|
4
|
+
import { NumericIdentifierType, IdentifierType, IdentifierTypeValidator, IdentifierTypes, GTINLevel, NonGTINNumericIdentifierType, SerializableNumericIdentifierType, NonNumericIdentifierType, NonNumericIdentifierValidation, PrefixType, NumericIdentifierDescriptor, NumericIdentifierCreator, IdentifierDescriptor, IdentifierValidation, IdentifierCreator, PrefixManager, NumericIdentifierValidation, GTINDescriptor, GTINCreator, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator, SerializableNumericIdentifierDescriptor, SerializableNumericIdentifierCreator, NonNumericIdentifierDescriptor, NonNumericIdentifierCreator } from '@aidc-toolkit/gs1';
|
|
5
|
+
|
|
6
|
+
declare const _default: {
|
|
7
|
+
AppExtension: {
|
|
8
|
+
sequenceCountMustBeLessThanOrEqualTo: string;
|
|
9
|
+
};
|
|
10
|
+
Proxy: {
|
|
11
|
+
vSpillMustBeHorizontalArray: string;
|
|
12
|
+
hSpillMustBeVerticalArray: string;
|
|
13
|
+
matrixMustBeArray: string;
|
|
14
|
+
};
|
|
15
|
+
IdentifierCreatorProxy: {
|
|
16
|
+
prefixDefinitionMustBeOneDimensional: string;
|
|
17
|
+
prefixDefinitionMustHaveMaximumThreeElements: string;
|
|
18
|
+
prefixMustBeString: string;
|
|
19
|
+
prefixTypeMustBeNumber: string;
|
|
20
|
+
invalidPrefixType: string;
|
|
21
|
+
tweakFactorMustBeNumber: string;
|
|
22
|
+
};
|
|
23
|
+
Parameters: {
|
|
24
|
+
spillMatrix: {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
spillMaximumWidth: {
|
|
29
|
+
name: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
spillMaximumHeight: {
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
domain: {
|
|
37
|
+
name: string;
|
|
38
|
+
description: string;
|
|
39
|
+
};
|
|
40
|
+
value: {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
startValue: {
|
|
45
|
+
name: string;
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
count: {
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
transformedValue: {
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
tweak: {
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
regExp: {
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
validateS: {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
valueForS: {
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
errorMessage: {
|
|
73
|
+
name: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
exclusionNone: {
|
|
77
|
+
name: string;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
exclusionFirstZero: {
|
|
81
|
+
name: string;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
exclusionAllNumeric: {
|
|
85
|
+
name: string;
|
|
86
|
+
description: string;
|
|
87
|
+
};
|
|
88
|
+
exclusionAny: {
|
|
89
|
+
name: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
length: {
|
|
93
|
+
name: string;
|
|
94
|
+
description: string;
|
|
95
|
+
};
|
|
96
|
+
numericS: {
|
|
97
|
+
name: string;
|
|
98
|
+
description: string;
|
|
99
|
+
};
|
|
100
|
+
numericSFourOrFiveDigits: {
|
|
101
|
+
name: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
104
|
+
numericSWithCheckDigit: {
|
|
105
|
+
name: string;
|
|
106
|
+
description: string;
|
|
107
|
+
};
|
|
108
|
+
checkDigit: {
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
ai82S: {
|
|
113
|
+
name: string;
|
|
114
|
+
description: string;
|
|
115
|
+
};
|
|
116
|
+
ai82SWithCheckCharacterPair: {
|
|
117
|
+
name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
};
|
|
120
|
+
validateIdentifier: {
|
|
121
|
+
name: string;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
zeroSuppressibleGTIN12: {
|
|
125
|
+
name: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
zeroSuppressedGTIN12: {
|
|
129
|
+
name: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
convertGTIN: {
|
|
133
|
+
name: string;
|
|
134
|
+
description: string;
|
|
135
|
+
};
|
|
136
|
+
normalizeGTIN: {
|
|
137
|
+
name: string;
|
|
138
|
+
description: string;
|
|
139
|
+
};
|
|
140
|
+
validateGTIN: {
|
|
141
|
+
name: string;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
validateGTIN14: {
|
|
145
|
+
name: string;
|
|
146
|
+
description: string;
|
|
147
|
+
};
|
|
148
|
+
baseIdentifier: {
|
|
149
|
+
name: string;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
indicatorDigit: {
|
|
153
|
+
name: string;
|
|
154
|
+
description: string;
|
|
155
|
+
};
|
|
156
|
+
gtinLevel: {
|
|
157
|
+
name: string;
|
|
158
|
+
description: string;
|
|
159
|
+
};
|
|
160
|
+
rcnFormat: {
|
|
161
|
+
name: string;
|
|
162
|
+
description: string;
|
|
163
|
+
};
|
|
164
|
+
rcn: {
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
};
|
|
168
|
+
prefix: {
|
|
169
|
+
name: string;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
prefixType: {
|
|
173
|
+
name: string;
|
|
174
|
+
description: string;
|
|
175
|
+
};
|
|
176
|
+
tweakFactor: {
|
|
177
|
+
name: string;
|
|
178
|
+
description: string;
|
|
179
|
+
};
|
|
180
|
+
prefixDefinitionAny: {
|
|
181
|
+
name: string;
|
|
182
|
+
description: string;
|
|
183
|
+
};
|
|
184
|
+
prefixDefinitionGS1UPC: {
|
|
185
|
+
name: string;
|
|
186
|
+
description: string;
|
|
187
|
+
};
|
|
188
|
+
sparse: {
|
|
189
|
+
name: string;
|
|
190
|
+
description: string;
|
|
191
|
+
};
|
|
192
|
+
rcnItemReference: {
|
|
193
|
+
name: string;
|
|
194
|
+
description: string;
|
|
195
|
+
};
|
|
196
|
+
rcnPriceOrWeight: {
|
|
197
|
+
name: string;
|
|
198
|
+
description: string;
|
|
199
|
+
};
|
|
200
|
+
serialComponent: {
|
|
201
|
+
name: string;
|
|
202
|
+
description: string;
|
|
203
|
+
};
|
|
204
|
+
reference: {
|
|
205
|
+
name: string;
|
|
206
|
+
description: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
Functions: {
|
|
210
|
+
version: {
|
|
211
|
+
name: string;
|
|
212
|
+
description: string;
|
|
213
|
+
};
|
|
214
|
+
vSpill: {
|
|
215
|
+
name: string;
|
|
216
|
+
description: string;
|
|
217
|
+
};
|
|
218
|
+
hSpill: {
|
|
219
|
+
name: string;
|
|
220
|
+
description: string;
|
|
221
|
+
};
|
|
222
|
+
forwardTransform: {
|
|
223
|
+
name: string;
|
|
224
|
+
description: string;
|
|
225
|
+
};
|
|
226
|
+
forwardTransformSequence: {
|
|
227
|
+
name: string;
|
|
228
|
+
description: string;
|
|
229
|
+
};
|
|
230
|
+
reverseTransform: {
|
|
231
|
+
name: string;
|
|
232
|
+
description: string;
|
|
233
|
+
};
|
|
234
|
+
validateRegExp: {
|
|
235
|
+
name: string;
|
|
236
|
+
description: string;
|
|
237
|
+
};
|
|
238
|
+
isValidRegExp: {
|
|
239
|
+
name: string;
|
|
240
|
+
description: string;
|
|
241
|
+
};
|
|
242
|
+
validateNumeric: {
|
|
243
|
+
name: string;
|
|
244
|
+
description: string;
|
|
245
|
+
};
|
|
246
|
+
isValidNumeric: {
|
|
247
|
+
name: string;
|
|
248
|
+
description: string;
|
|
249
|
+
};
|
|
250
|
+
createNumeric: {
|
|
251
|
+
name: string;
|
|
252
|
+
description: string;
|
|
253
|
+
};
|
|
254
|
+
createNumericSequence: {
|
|
255
|
+
name: string;
|
|
256
|
+
description: string;
|
|
257
|
+
};
|
|
258
|
+
valueForNumeric: {
|
|
259
|
+
name: string;
|
|
260
|
+
description: string;
|
|
261
|
+
};
|
|
262
|
+
validateHexadecimal: {
|
|
263
|
+
name: string;
|
|
264
|
+
description: string;
|
|
265
|
+
};
|
|
266
|
+
isValidHexadecimal: {
|
|
267
|
+
name: string;
|
|
268
|
+
description: string;
|
|
269
|
+
};
|
|
270
|
+
createHexadecimal: {
|
|
271
|
+
name: string;
|
|
272
|
+
description: string;
|
|
273
|
+
};
|
|
274
|
+
createHexadecimalSequence: {
|
|
275
|
+
name: string;
|
|
276
|
+
description: string;
|
|
277
|
+
};
|
|
278
|
+
valueForHexadecimal: {
|
|
279
|
+
name: string;
|
|
280
|
+
description: string;
|
|
281
|
+
};
|
|
282
|
+
validateAlphabetic: {
|
|
283
|
+
name: string;
|
|
284
|
+
description: string;
|
|
285
|
+
};
|
|
286
|
+
isValidAlphabetic: {
|
|
287
|
+
name: string;
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
createAlphabetic: {
|
|
291
|
+
name: string;
|
|
292
|
+
description: string;
|
|
293
|
+
};
|
|
294
|
+
createAlphabeticSequence: {
|
|
295
|
+
name: string;
|
|
296
|
+
description: string;
|
|
297
|
+
};
|
|
298
|
+
valueForAlphabetic: {
|
|
299
|
+
name: string;
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
validateAlphanumeric: {
|
|
303
|
+
name: string;
|
|
304
|
+
description: string;
|
|
305
|
+
};
|
|
306
|
+
isValidAlphanumeric: {
|
|
307
|
+
name: string;
|
|
308
|
+
description: string;
|
|
309
|
+
};
|
|
310
|
+
createAlphanumeric: {
|
|
311
|
+
name: string;
|
|
312
|
+
description: string;
|
|
313
|
+
};
|
|
314
|
+
createAlphanumericSequence: {
|
|
315
|
+
name: string;
|
|
316
|
+
description: string;
|
|
317
|
+
};
|
|
318
|
+
valueForAlphanumeric: {
|
|
319
|
+
name: string;
|
|
320
|
+
description: string;
|
|
321
|
+
};
|
|
322
|
+
GS1: {
|
|
323
|
+
validateAI82: {
|
|
324
|
+
name: string;
|
|
325
|
+
description: string;
|
|
326
|
+
};
|
|
327
|
+
isValidAI82: {
|
|
328
|
+
name: string;
|
|
329
|
+
description: string;
|
|
330
|
+
};
|
|
331
|
+
createAI82: {
|
|
332
|
+
name: string;
|
|
333
|
+
description: string;
|
|
334
|
+
};
|
|
335
|
+
createAI82Sequence: {
|
|
336
|
+
name: string;
|
|
337
|
+
description: string;
|
|
338
|
+
};
|
|
339
|
+
valueForAI82: {
|
|
340
|
+
name: string;
|
|
341
|
+
description: string;
|
|
342
|
+
};
|
|
343
|
+
validateAI39: {
|
|
344
|
+
name: string;
|
|
345
|
+
description: string;
|
|
346
|
+
};
|
|
347
|
+
isValidAI39: {
|
|
348
|
+
name: string;
|
|
349
|
+
description: string;
|
|
350
|
+
};
|
|
351
|
+
createAI39: {
|
|
352
|
+
name: string;
|
|
353
|
+
description: string;
|
|
354
|
+
};
|
|
355
|
+
createAI39Sequence: {
|
|
356
|
+
name: string;
|
|
357
|
+
description: string;
|
|
358
|
+
};
|
|
359
|
+
valueForAI39: {
|
|
360
|
+
name: string;
|
|
361
|
+
description: string;
|
|
362
|
+
};
|
|
363
|
+
validateAI64: {
|
|
364
|
+
name: string;
|
|
365
|
+
description: string;
|
|
366
|
+
};
|
|
367
|
+
isValidAI64: {
|
|
368
|
+
name: string;
|
|
369
|
+
description: string;
|
|
370
|
+
};
|
|
371
|
+
checkDigit: {
|
|
372
|
+
name: string;
|
|
373
|
+
description: string;
|
|
374
|
+
};
|
|
375
|
+
hasValidCheckDigit: {
|
|
376
|
+
name: string;
|
|
377
|
+
description: string;
|
|
378
|
+
};
|
|
379
|
+
priceOrWeightCheckDigit: {
|
|
380
|
+
name: string;
|
|
381
|
+
description: string;
|
|
382
|
+
};
|
|
383
|
+
isValidPriceOrWeightCheckDigit: {
|
|
384
|
+
name: string;
|
|
385
|
+
description: string;
|
|
386
|
+
};
|
|
387
|
+
checkCharacterPair: {
|
|
388
|
+
name: string;
|
|
389
|
+
description: string;
|
|
390
|
+
};
|
|
391
|
+
hasValidCheckCharacterPair: {
|
|
392
|
+
name: string;
|
|
393
|
+
description: string;
|
|
394
|
+
};
|
|
395
|
+
validateGTIN13: {
|
|
396
|
+
name: string;
|
|
397
|
+
description: string;
|
|
398
|
+
};
|
|
399
|
+
validateGTIN12: {
|
|
400
|
+
name: string;
|
|
401
|
+
description: string;
|
|
402
|
+
};
|
|
403
|
+
validateGTIN8: {
|
|
404
|
+
name: string;
|
|
405
|
+
description: string;
|
|
406
|
+
};
|
|
407
|
+
zeroSuppressGTIN12: {
|
|
408
|
+
name: string;
|
|
409
|
+
description: string;
|
|
410
|
+
};
|
|
411
|
+
zeroExpandGTIN12: {
|
|
412
|
+
name: string;
|
|
413
|
+
description: string;
|
|
414
|
+
};
|
|
415
|
+
convertToGTIN14: {
|
|
416
|
+
name: string;
|
|
417
|
+
description: string;
|
|
418
|
+
};
|
|
419
|
+
normalizeGTIN: {
|
|
420
|
+
name: string;
|
|
421
|
+
description: string;
|
|
422
|
+
};
|
|
423
|
+
validateGTIN: {
|
|
424
|
+
name: string;
|
|
425
|
+
description: string;
|
|
426
|
+
};
|
|
427
|
+
validateGTIN14: {
|
|
428
|
+
name: string;
|
|
429
|
+
description: string;
|
|
430
|
+
};
|
|
431
|
+
parseVariableMeasureRCN: {
|
|
432
|
+
name: string;
|
|
433
|
+
description: string;
|
|
434
|
+
};
|
|
435
|
+
validateGLN: {
|
|
436
|
+
name: string;
|
|
437
|
+
description: string;
|
|
438
|
+
};
|
|
439
|
+
validateSSCC: {
|
|
440
|
+
name: string;
|
|
441
|
+
description: string;
|
|
442
|
+
};
|
|
443
|
+
validateGRAI: {
|
|
444
|
+
name: string;
|
|
445
|
+
description: string;
|
|
446
|
+
};
|
|
447
|
+
validateGIAI: {
|
|
448
|
+
name: string;
|
|
449
|
+
description: string;
|
|
450
|
+
};
|
|
451
|
+
validateGSRN: {
|
|
452
|
+
name: string;
|
|
453
|
+
description: string;
|
|
454
|
+
};
|
|
455
|
+
validateGDTI: {
|
|
456
|
+
name: string;
|
|
457
|
+
description: string;
|
|
458
|
+
};
|
|
459
|
+
validateGINC: {
|
|
460
|
+
name: string;
|
|
461
|
+
description: string;
|
|
462
|
+
};
|
|
463
|
+
validateGSIN: {
|
|
464
|
+
name: string;
|
|
465
|
+
description: string;
|
|
466
|
+
};
|
|
467
|
+
validateGCN: {
|
|
468
|
+
name: string;
|
|
469
|
+
description: string;
|
|
470
|
+
};
|
|
471
|
+
validateCPID: {
|
|
472
|
+
name: string;
|
|
473
|
+
description: string;
|
|
474
|
+
};
|
|
475
|
+
validateGMN: {
|
|
476
|
+
name: string;
|
|
477
|
+
description: string;
|
|
478
|
+
};
|
|
479
|
+
definePrefix: {
|
|
480
|
+
name: string;
|
|
481
|
+
description: string;
|
|
482
|
+
};
|
|
483
|
+
createGTIN: {
|
|
484
|
+
name: string;
|
|
485
|
+
description: string;
|
|
486
|
+
};
|
|
487
|
+
createGTINSequence: {
|
|
488
|
+
name: string;
|
|
489
|
+
description: string;
|
|
490
|
+
};
|
|
491
|
+
createAllGTIN: {
|
|
492
|
+
name: string;
|
|
493
|
+
description: string;
|
|
494
|
+
};
|
|
495
|
+
createGTIN14: {
|
|
496
|
+
name: string;
|
|
497
|
+
description: string;
|
|
498
|
+
};
|
|
499
|
+
createVariableMeasureRCN: {
|
|
500
|
+
name: string;
|
|
501
|
+
description: string;
|
|
502
|
+
};
|
|
503
|
+
createGLN: {
|
|
504
|
+
name: string;
|
|
505
|
+
description: string;
|
|
506
|
+
};
|
|
507
|
+
createGLNSequence: {
|
|
508
|
+
name: string;
|
|
509
|
+
description: string;
|
|
510
|
+
};
|
|
511
|
+
createAllGLN: {
|
|
512
|
+
name: string;
|
|
513
|
+
description: string;
|
|
514
|
+
};
|
|
515
|
+
createSSCC: {
|
|
516
|
+
name: string;
|
|
517
|
+
description: string;
|
|
518
|
+
};
|
|
519
|
+
createSSCCSequence: {
|
|
520
|
+
name: string;
|
|
521
|
+
description: string;
|
|
522
|
+
};
|
|
523
|
+
createAllSSCC: {
|
|
524
|
+
name: string;
|
|
525
|
+
description: string;
|
|
526
|
+
};
|
|
527
|
+
createGRAI: {
|
|
528
|
+
name: string;
|
|
529
|
+
description: string;
|
|
530
|
+
};
|
|
531
|
+
createGRAISequence: {
|
|
532
|
+
name: string;
|
|
533
|
+
description: string;
|
|
534
|
+
};
|
|
535
|
+
createAllGRAI: {
|
|
536
|
+
name: string;
|
|
537
|
+
description: string;
|
|
538
|
+
};
|
|
539
|
+
createSerializedGRAI: {
|
|
540
|
+
name: string;
|
|
541
|
+
description: string;
|
|
542
|
+
};
|
|
543
|
+
concatenateGRAI: {
|
|
544
|
+
name: string;
|
|
545
|
+
description: string;
|
|
546
|
+
};
|
|
547
|
+
createGIAI: {
|
|
548
|
+
name: string;
|
|
549
|
+
description: string;
|
|
550
|
+
};
|
|
551
|
+
createGSRN: {
|
|
552
|
+
name: string;
|
|
553
|
+
description: string;
|
|
554
|
+
};
|
|
555
|
+
createGSRNSequence: {
|
|
556
|
+
name: string;
|
|
557
|
+
description: string;
|
|
558
|
+
};
|
|
559
|
+
createAllGSRN: {
|
|
560
|
+
name: string;
|
|
561
|
+
description: string;
|
|
562
|
+
};
|
|
563
|
+
createGDTI: {
|
|
564
|
+
name: string;
|
|
565
|
+
description: string;
|
|
566
|
+
};
|
|
567
|
+
createGDTISequence: {
|
|
568
|
+
name: string;
|
|
569
|
+
description: string;
|
|
570
|
+
};
|
|
571
|
+
createAllGDTI: {
|
|
572
|
+
name: string;
|
|
573
|
+
description: string;
|
|
574
|
+
};
|
|
575
|
+
createSerializedGDTI: {
|
|
576
|
+
name: string;
|
|
577
|
+
description: string;
|
|
578
|
+
};
|
|
579
|
+
concatenateGDTI: {
|
|
580
|
+
name: string;
|
|
581
|
+
description: string;
|
|
582
|
+
};
|
|
583
|
+
createGINC: {
|
|
584
|
+
name: string;
|
|
585
|
+
description: string;
|
|
586
|
+
};
|
|
587
|
+
createGSIN: {
|
|
588
|
+
name: string;
|
|
589
|
+
description: string;
|
|
590
|
+
};
|
|
591
|
+
createGSINSequence: {
|
|
592
|
+
name: string;
|
|
593
|
+
description: string;
|
|
594
|
+
};
|
|
595
|
+
createAllGSIN: {
|
|
596
|
+
name: string;
|
|
597
|
+
description: string;
|
|
598
|
+
};
|
|
599
|
+
createGCN: {
|
|
600
|
+
name: string;
|
|
601
|
+
description: string;
|
|
602
|
+
};
|
|
603
|
+
createGCNSequence: {
|
|
604
|
+
name: string;
|
|
605
|
+
description: string;
|
|
606
|
+
};
|
|
607
|
+
createAllGCN: {
|
|
608
|
+
name: string;
|
|
609
|
+
description: string;
|
|
610
|
+
};
|
|
611
|
+
createSerializedGCN: {
|
|
612
|
+
name: string;
|
|
613
|
+
description: string;
|
|
614
|
+
};
|
|
615
|
+
concatenateGCN: {
|
|
616
|
+
name: string;
|
|
617
|
+
description: string;
|
|
618
|
+
};
|
|
619
|
+
createCPID: {
|
|
620
|
+
name: string;
|
|
621
|
+
description: string;
|
|
622
|
+
};
|
|
623
|
+
createGMN: {
|
|
624
|
+
name: string;
|
|
625
|
+
description: string;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
declare const appExtensionNS = "aidct_app_extension";
|
|
632
|
+
/**
|
|
633
|
+
* Locale resources type is extracted from the English locale resources object.
|
|
634
|
+
*/
|
|
635
|
+
type AppExtensionLocaleResources = typeof _default;
|
|
636
|
+
/**
|
|
637
|
+
* App extension resources.
|
|
638
|
+
*/
|
|
639
|
+
declare const appExtensionResources: Resource;
|
|
640
|
+
declare const i18nextAppExtension: i18n;
|
|
641
|
+
/**
|
|
642
|
+
* Initialize internationalization.
|
|
643
|
+
*
|
|
644
|
+
* @param environment
|
|
645
|
+
* Environment in which the application is running.
|
|
646
|
+
*
|
|
647
|
+
* @param debug
|
|
648
|
+
* Debug setting.
|
|
649
|
+
*
|
|
650
|
+
* @returns
|
|
651
|
+
* Void promise.
|
|
652
|
+
*/
|
|
653
|
+
declare function i18nAppExtensionInit(environment: I18nEnvironment, debug?: boolean): Promise<void>;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Type that error type is expected to extend. If the application framework reports errors through the throw/catch
|
|
657
|
+
* mechanism, the error type is expected to extend {@linkcode Error}. Otherwise, it may extend any object type.
|
|
658
|
+
*
|
|
659
|
+
* @template ThrowError
|
|
660
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
661
|
+
*/
|
|
662
|
+
type ErrorExtends<ThrowError extends boolean> = ThrowError extends true ? Error : object;
|
|
663
|
+
/**
|
|
664
|
+
* Sheet.
|
|
665
|
+
*/
|
|
666
|
+
interface Sheet {
|
|
667
|
+
/**
|
|
668
|
+
* Sheet name.
|
|
669
|
+
*/
|
|
670
|
+
readonly name: string;
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* Single cell address.
|
|
674
|
+
*/
|
|
675
|
+
interface Address {
|
|
676
|
+
/**
|
|
677
|
+
* Zero-indexed row.
|
|
678
|
+
*/
|
|
679
|
+
readonly rowIndex: number;
|
|
680
|
+
/**
|
|
681
|
+
* Zero-indexed column.
|
|
682
|
+
*/
|
|
683
|
+
readonly columnIndex: number;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Sheet address.
|
|
687
|
+
*/
|
|
688
|
+
interface SheetAddress extends Sheet, Address {
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Range of cells.
|
|
692
|
+
*/
|
|
693
|
+
interface Range {
|
|
694
|
+
/**
|
|
695
|
+
* Start address, inclusive.
|
|
696
|
+
*/
|
|
697
|
+
readonly startAddress: Address;
|
|
698
|
+
/**
|
|
699
|
+
* End address, exclusive.
|
|
700
|
+
*/
|
|
701
|
+
readonly endAddress: Address;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Sheet range.
|
|
705
|
+
*/
|
|
706
|
+
interface SheetRange extends Sheet, Range {
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Matrix type; shorthand for defining a two-dimensional matrix (array of array) of a type.
|
|
710
|
+
*
|
|
711
|
+
* @template T
|
|
712
|
+
* Type.
|
|
713
|
+
*/
|
|
714
|
+
type Matrix<T> = T[][];
|
|
715
|
+
/**
|
|
716
|
+
* Function result, possibly including an error result. If the application framework reports errors through the return
|
|
717
|
+
* value, the result is the union of the result type and the error type; otherwise, it's just the result type.
|
|
718
|
+
*
|
|
719
|
+
* @template TResult
|
|
720
|
+
* Result type.
|
|
721
|
+
*
|
|
722
|
+
* @template ThrowError
|
|
723
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
724
|
+
*
|
|
725
|
+
* @template TError
|
|
726
|
+
* Error type.
|
|
727
|
+
*/
|
|
728
|
+
type ResultError<TResult, ThrowError extends boolean, TError extends ErrorExtends<ThrowError>> = ThrowError extends false ? TResult | TError : TResult;
|
|
729
|
+
/**
|
|
730
|
+
* Function result as matrix, possibly including an error result in each element. If the application framework reports
|
|
731
|
+
* errors through the return value, the individual element result is the union of the result type and the error type;
|
|
732
|
+
* otherwise, it's just the result type.
|
|
733
|
+
*
|
|
734
|
+
* @template TResult
|
|
735
|
+
* Result type.
|
|
736
|
+
*
|
|
737
|
+
* @template ThrowError
|
|
738
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
739
|
+
*
|
|
740
|
+
* @template TError
|
|
741
|
+
* Error type.
|
|
742
|
+
*/
|
|
743
|
+
type MatrixResultError<TResult, ThrowError extends boolean, TError extends ErrorExtends<ThrowError>> = Matrix<ResultError<TResult, ThrowError, TError>>;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* Application extension.
|
|
747
|
+
*
|
|
748
|
+
* @template TBigInt
|
|
749
|
+
* Type to which big integer is mapped.
|
|
750
|
+
*
|
|
751
|
+
* @template ThrowError
|
|
752
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
753
|
+
*
|
|
754
|
+
* @template TError
|
|
755
|
+
* Error type.
|
|
756
|
+
*/
|
|
757
|
+
declare abstract class AppExtension<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> {
|
|
758
|
+
/**
|
|
759
|
+
* Application version.
|
|
760
|
+
*/
|
|
761
|
+
private readonly _version;
|
|
762
|
+
/**
|
|
763
|
+
* Maximum sequence count supported by application.
|
|
764
|
+
*/
|
|
765
|
+
private readonly _maximumSequenceCount;
|
|
766
|
+
/**
|
|
767
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
768
|
+
*/
|
|
769
|
+
private readonly _throwError;
|
|
770
|
+
/**
|
|
771
|
+
* Maximum width supported by application.
|
|
772
|
+
*/
|
|
773
|
+
private _maximumWidth?;
|
|
774
|
+
/**
|
|
775
|
+
* Maximum height supported by application.
|
|
776
|
+
*/
|
|
777
|
+
private _maximumHeight?;
|
|
778
|
+
/**
|
|
779
|
+
* Constructor.
|
|
780
|
+
*
|
|
781
|
+
* @param version
|
|
782
|
+
* Application version.
|
|
783
|
+
*
|
|
784
|
+
* @param maximumSequenceCount
|
|
785
|
+
* Maximum sequence count supported by application.
|
|
786
|
+
*
|
|
787
|
+
* @param throwError
|
|
788
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
789
|
+
*/
|
|
790
|
+
protected constructor(version: string, maximumSequenceCount: number, throwError: ThrowError);
|
|
791
|
+
/**
|
|
792
|
+
* Get the version.
|
|
793
|
+
*
|
|
794
|
+
* @returns
|
|
795
|
+
* Version.
|
|
796
|
+
*/
|
|
797
|
+
get version(): string;
|
|
798
|
+
/**
|
|
799
|
+
* Determine if errors are reported through the throw/catch mechanism.
|
|
800
|
+
*/
|
|
801
|
+
get throwError(): ThrowError;
|
|
802
|
+
/**
|
|
803
|
+
* Get the maximum width supported by the application.
|
|
804
|
+
*
|
|
805
|
+
* @returns
|
|
806
|
+
* Maximum width supported by the application.
|
|
807
|
+
*/
|
|
808
|
+
maximumWidth(): Promise<number>;
|
|
809
|
+
/**
|
|
810
|
+
* Get the maximum width supported by the application.
|
|
811
|
+
*
|
|
812
|
+
* @returns
|
|
813
|
+
* Maximum width supported by the application.
|
|
814
|
+
*/
|
|
815
|
+
protected abstract getMaximumWidth(): Promise<number>;
|
|
816
|
+
/**
|
|
817
|
+
* Get the maximum height supported by the application.
|
|
818
|
+
*
|
|
819
|
+
* @returns
|
|
820
|
+
* Maximum height supported by the application.
|
|
821
|
+
*/
|
|
822
|
+
maximumHeight(): Promise<number>;
|
|
823
|
+
/**
|
|
824
|
+
* Get the maximum height supported by the application.
|
|
825
|
+
*
|
|
826
|
+
* @returns
|
|
827
|
+
* Maximum height supported by the application.
|
|
828
|
+
*/
|
|
829
|
+
protected abstract getMaximumHeight(): Promise<number>;
|
|
830
|
+
/**
|
|
831
|
+
* Get the sheet address from an invocation context.
|
|
832
|
+
*
|
|
833
|
+
* @param invocationContext
|
|
834
|
+
* Invocation context.
|
|
835
|
+
*
|
|
836
|
+
* @returns
|
|
837
|
+
* Sheet address.
|
|
838
|
+
*/
|
|
839
|
+
abstract getSheetAddress(invocationContext: TInvocationContext): Promise<SheetAddress>;
|
|
840
|
+
/**
|
|
841
|
+
* Get a parameter range from an invocation context.
|
|
842
|
+
*
|
|
843
|
+
* @param invocationContext
|
|
844
|
+
* Invocation context.
|
|
845
|
+
*
|
|
846
|
+
* @param parameterNumber
|
|
847
|
+
* Parameter number.
|
|
848
|
+
*
|
|
849
|
+
* @returns
|
|
850
|
+
* Sheet range or null if parameter is not a range.
|
|
851
|
+
*/
|
|
852
|
+
abstract getParameterSheetRange(invocationContext: TInvocationContext, parameterNumber: number): Promise<SheetRange | null>;
|
|
853
|
+
/**
|
|
854
|
+
* Validate a sequence count against the maximum supported by application.
|
|
855
|
+
*
|
|
856
|
+
* @param sequenceCount
|
|
857
|
+
* Sequence count.
|
|
858
|
+
*/
|
|
859
|
+
validateSequenceCount(sequenceCount: number): void;
|
|
860
|
+
/**
|
|
861
|
+
* Map big integer to another type if necessary.
|
|
862
|
+
*
|
|
863
|
+
* @param value
|
|
864
|
+
* Big integer value to map.
|
|
865
|
+
*
|
|
866
|
+
* @returns
|
|
867
|
+
* Mapped big integer value.
|
|
868
|
+
*/
|
|
869
|
+
abstract mapBigInt(value: bigint): ResultError<TBigInt, ThrowError, TError>;
|
|
870
|
+
/**
|
|
871
|
+
* Map a range error (thrown by the library) to an application-specific error. If errors are reported through the
|
|
872
|
+
* throw/catch mechanism, the implementation may return the range error unmodified if that is supported.
|
|
873
|
+
*
|
|
874
|
+
* @param rangeError
|
|
875
|
+
*/
|
|
876
|
+
abstract mapRangeError(rangeError: RangeError): TError;
|
|
877
|
+
/**
|
|
878
|
+
* Handle an error with a message; called when an exception occurs outside the control of the AIDC Toolkit library.
|
|
879
|
+
* Implementation must not return, most likely by throwing the message wrapped in an error type.
|
|
880
|
+
*
|
|
881
|
+
* @param message
|
|
882
|
+
* Message to include in the error.
|
|
883
|
+
*/
|
|
884
|
+
abstract handleError(message: string): never;
|
|
885
|
+
/**
|
|
886
|
+
* Bind a synchronous method and wrap it in a try/catch for comprehensive error handling.
|
|
887
|
+
*
|
|
888
|
+
* @param thisArg
|
|
889
|
+
* The value to be passed as the `this` parameter to the method.
|
|
890
|
+
*
|
|
891
|
+
* @param method
|
|
892
|
+
* Method to call.
|
|
893
|
+
*
|
|
894
|
+
* @returns
|
|
895
|
+
* Function wrapped around the method.
|
|
896
|
+
*/
|
|
897
|
+
bindSync<TMethod extends TypedSyncFunction<TMethod>>(thisArg: ThisParameterType<TMethod>, method: TMethod): TypedFunction<TMethod>;
|
|
898
|
+
/**
|
|
899
|
+
* Bind an asynchronous method and wrap it in a try/catch for comprehensive error handling.
|
|
900
|
+
*
|
|
901
|
+
* @param thisArg
|
|
902
|
+
* The value to be passed as the `this` parameter to the method.
|
|
903
|
+
*
|
|
904
|
+
* @param method
|
|
905
|
+
* Method to call.
|
|
906
|
+
*
|
|
907
|
+
* @returns
|
|
908
|
+
* Function wrapped around the method.
|
|
909
|
+
*/
|
|
910
|
+
bindAsync<TMethod extends TypedAsyncFunction<TMethod>>(thisArg: ThisParameterType<TMethod>, method: TMethod): TypedAsyncFunction<TMethod>;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Library proxy.
|
|
915
|
+
*
|
|
916
|
+
* @template TBigInt
|
|
917
|
+
* Type to which big integer is mapped.
|
|
918
|
+
*
|
|
919
|
+
* @template ThrowError
|
|
920
|
+
* If true, errors are reported through the throw/catch mechanism.
|
|
921
|
+
*
|
|
922
|
+
* @template TError
|
|
923
|
+
* Error type.
|
|
924
|
+
*/
|
|
925
|
+
declare abstract class LibProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> {
|
|
926
|
+
/**
|
|
927
|
+
* Application extension.
|
|
928
|
+
*/
|
|
929
|
+
private readonly _appExtension;
|
|
930
|
+
/**
|
|
931
|
+
* Constructor.
|
|
932
|
+
*
|
|
933
|
+
* @param appExtension
|
|
934
|
+
* Application extension.
|
|
935
|
+
*/
|
|
936
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
937
|
+
/**
|
|
938
|
+
* Get the application extension.
|
|
939
|
+
*/
|
|
940
|
+
protected get appExtension(): AppExtension<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
941
|
+
/**
|
|
942
|
+
* Map big integer to another type if necessary.
|
|
943
|
+
*
|
|
944
|
+
* @param value
|
|
945
|
+
* Big integer value to map.
|
|
946
|
+
*
|
|
947
|
+
* @returns
|
|
948
|
+
* Mapped big integer value.
|
|
949
|
+
*/
|
|
950
|
+
mapBigInt(value: bigint): ResultError<TBigInt, ThrowError, TError>;
|
|
951
|
+
/**
|
|
952
|
+
* Handle an error thrown by a function call.
|
|
953
|
+
*
|
|
954
|
+
* @param e
|
|
955
|
+
* Error.
|
|
956
|
+
*
|
|
957
|
+
* @returns
|
|
958
|
+
* Error if errors are not thrown.
|
|
959
|
+
*/
|
|
960
|
+
private handleError;
|
|
961
|
+
/**
|
|
962
|
+
* Do the callback for a simple return.
|
|
963
|
+
*
|
|
964
|
+
* @param value
|
|
965
|
+
* Value.
|
|
966
|
+
*
|
|
967
|
+
* @param callback
|
|
968
|
+
* Callback.
|
|
969
|
+
*
|
|
970
|
+
* @returns
|
|
971
|
+
* Callback result or error if errors are not thrown.
|
|
972
|
+
*/
|
|
973
|
+
private doCallback;
|
|
974
|
+
/**
|
|
975
|
+
* Map a matrix of values using a callback.
|
|
976
|
+
*
|
|
977
|
+
* @param matrixValues
|
|
978
|
+
* Matrix of values.
|
|
979
|
+
*
|
|
980
|
+
* @param callback
|
|
981
|
+
* Callback.
|
|
982
|
+
*
|
|
983
|
+
* @returns
|
|
984
|
+
* Matrix of callback results and errors if errors are not thrown.
|
|
985
|
+
*/
|
|
986
|
+
protected mapMatrix<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => TResult): MatrixResultError<TResult, ThrowError, TError>;
|
|
987
|
+
/**
|
|
988
|
+
* Do the callback for an array return.
|
|
989
|
+
*
|
|
990
|
+
* @param value
|
|
991
|
+
* Value.
|
|
992
|
+
*
|
|
993
|
+
* @param callback
|
|
994
|
+
* Callback.
|
|
995
|
+
*
|
|
996
|
+
* @returns
|
|
997
|
+
* Callback result or error as array if errors are not thrown.
|
|
998
|
+
*/
|
|
999
|
+
private doArrayCallback;
|
|
1000
|
+
/**
|
|
1001
|
+
* Map a one-dimensional matrix of values using a callback.
|
|
1002
|
+
*
|
|
1003
|
+
* @param matrixValues
|
|
1004
|
+
* Matrix of values.
|
|
1005
|
+
*
|
|
1006
|
+
* @param callback
|
|
1007
|
+
* Callback.
|
|
1008
|
+
*
|
|
1009
|
+
* @returns
|
|
1010
|
+
* Matrix of callback results and errors if errors are not thrown.
|
|
1011
|
+
*/
|
|
1012
|
+
protected mapArray<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => TResult[]): MatrixResultError<TResult, ThrowError, TError>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Map a matrix of values to a matrix of strings via a callback that either returns or throws a range error. If the
|
|
1015
|
+
* callback returns, the result for that element is the empty string; otherwise, if it's a range error, the result
|
|
1016
|
+
* for that element is the error message.
|
|
1017
|
+
*
|
|
1018
|
+
* @param matrixValues
|
|
1019
|
+
* Matrix to map.
|
|
1020
|
+
*
|
|
1021
|
+
* @param callback
|
|
1022
|
+
* Callback that either returns or throws an exception.
|
|
1023
|
+
*
|
|
1024
|
+
* @returns
|
|
1025
|
+
* Matrix of strings.
|
|
1026
|
+
*
|
|
1027
|
+
* @template TValue
|
|
1028
|
+
* Value type.
|
|
1029
|
+
*/
|
|
1030
|
+
protected static mapMatrixRangeError<TValue>(matrixValues: Matrix<TValue>, callback: (value: TValue) => void): Matrix<string>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Convert an iterable result of a callback to a matrix result. Although the natural approach would be to map to a
|
|
1033
|
+
* single-element array containing an array of *N* results (i.e., [[r0, r1, r2, ..., r*N*]]), this is rendered
|
|
1034
|
+
* visually as a single row. The more readable approach is as a single column, so the mapping is to an *N*-element
|
|
1035
|
+
* array of single-element result arrays (i.e., [[r0], [r1], [r2], ..., [r*N*]]).
|
|
1036
|
+
*
|
|
1037
|
+
* @param iterableResult
|
|
1038
|
+
* Iterable result.
|
|
1039
|
+
*
|
|
1040
|
+
* @returns
|
|
1041
|
+
* Matrix of callback results.
|
|
1042
|
+
*/
|
|
1043
|
+
protected static matrixResult<TResult>(iterableResult: Iterable<TResult>): Matrix<TResult>;
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Core descriptor.
|
|
1048
|
+
*/
|
|
1049
|
+
interface Descriptor {
|
|
1050
|
+
/**
|
|
1051
|
+
* Name.
|
|
1052
|
+
*/
|
|
1053
|
+
readonly name: string;
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Types supported by proxy methods.
|
|
1057
|
+
*/
|
|
1058
|
+
declare const Types: {
|
|
1059
|
+
/**
|
|
1060
|
+
* String.
|
|
1061
|
+
*/
|
|
1062
|
+
readonly String: 0;
|
|
1063
|
+
/**
|
|
1064
|
+
* Number or enumeration.
|
|
1065
|
+
*/
|
|
1066
|
+
readonly Number: 1;
|
|
1067
|
+
/**
|
|
1068
|
+
* Boolean.
|
|
1069
|
+
*/
|
|
1070
|
+
readonly Boolean: 2;
|
|
1071
|
+
/**
|
|
1072
|
+
* Any.
|
|
1073
|
+
*/
|
|
1074
|
+
readonly Any: 3;
|
|
1075
|
+
};
|
|
1076
|
+
/**
|
|
1077
|
+
* Type key.
|
|
1078
|
+
*/
|
|
1079
|
+
type TypeKey = keyof typeof Types;
|
|
1080
|
+
/**
|
|
1081
|
+
* Type.
|
|
1082
|
+
*/
|
|
1083
|
+
type Type = typeof Types[TypeKey];
|
|
1084
|
+
/**
|
|
1085
|
+
* Type descriptor.
|
|
1086
|
+
*/
|
|
1087
|
+
interface TypeDescriptor extends Descriptor {
|
|
1088
|
+
/**
|
|
1089
|
+
* Type.
|
|
1090
|
+
*/
|
|
1091
|
+
readonly type: Type;
|
|
1092
|
+
/**
|
|
1093
|
+
* True if type is a matrix (method accepts or returns a two-dimensional array).
|
|
1094
|
+
*/
|
|
1095
|
+
readonly isMatrix: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Base parameter descriptor; all attributes required.
|
|
1099
|
+
*/
|
|
1100
|
+
interface BaseParameterDescriptor extends TypeDescriptor {
|
|
1101
|
+
/**
|
|
1102
|
+
* True if required.
|
|
1103
|
+
*/
|
|
1104
|
+
readonly isRequired: boolean;
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Extends parameter descriptor; extends a parameter descriptor and overrides select attributes.
|
|
1108
|
+
*/
|
|
1109
|
+
interface ExtendsParameterDescriptor extends Partial<BaseParameterDescriptor> {
|
|
1110
|
+
/**
|
|
1111
|
+
* Base parameter descriptor that this one extends.
|
|
1112
|
+
*/
|
|
1113
|
+
readonly extendsDescriptor: ParameterDescriptor;
|
|
1114
|
+
/**
|
|
1115
|
+
* Sort order within base parameter descriptor if applicable.
|
|
1116
|
+
*/
|
|
1117
|
+
readonly sortOrder?: number;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Parameter descriptor, either base or extends.
|
|
1121
|
+
*/
|
|
1122
|
+
type ParameterDescriptor = BaseParameterDescriptor | ExtendsParameterDescriptor;
|
|
1123
|
+
/**
|
|
1124
|
+
* Expand a parameter descriptor to its full form with all required attributes.
|
|
1125
|
+
*
|
|
1126
|
+
* @param parameterDescriptor
|
|
1127
|
+
* Parameter descriptor.
|
|
1128
|
+
*
|
|
1129
|
+
* @returns
|
|
1130
|
+
* Parameter descriptor in its full form.
|
|
1131
|
+
*/
|
|
1132
|
+
declare function expandParameterDescriptor(parameterDescriptor: ParameterDescriptor): BaseParameterDescriptor;
|
|
1133
|
+
/**
|
|
1134
|
+
* Method descriptor.
|
|
1135
|
+
*/
|
|
1136
|
+
interface MethodDescriptor extends TypeDescriptor {
|
|
1137
|
+
/**
|
|
1138
|
+
* If true, application-specific invocation context is required.
|
|
1139
|
+
*/
|
|
1140
|
+
readonly requiresContext?: boolean;
|
|
1141
|
+
/**
|
|
1142
|
+
* If true, method infix is ignored.
|
|
1143
|
+
*/
|
|
1144
|
+
readonly ignoreInfix?: boolean;
|
|
1145
|
+
/**
|
|
1146
|
+
* String before which method infix appears. If undefined, infix is appended to the method name. Ignored if
|
|
1147
|
+
* `ignoreInfix` is true.
|
|
1148
|
+
*/
|
|
1149
|
+
readonly infixBefore?: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Parameter descriptors.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly parameterDescriptors: readonly ParameterDescriptor[];
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Class descriptor.
|
|
1157
|
+
*/
|
|
1158
|
+
interface ClassDescriptor extends Descriptor {
|
|
1159
|
+
/**
|
|
1160
|
+
* Class namespace. If not provided, class is at the top level.
|
|
1161
|
+
*/
|
|
1162
|
+
readonly namespace?: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* Method infix. If undefined, method name is generated verbatim.
|
|
1165
|
+
*/
|
|
1166
|
+
readonly methodInfix?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* Replace parameter descriptors for class hierarchies where enumeration parameter descriptors can change.
|
|
1169
|
+
*/
|
|
1170
|
+
readonly replaceParameterDescriptors?: ReadonlyArray<{
|
|
1171
|
+
readonly name: string;
|
|
1172
|
+
readonly replacement: ParameterDescriptor;
|
|
1173
|
+
}>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Method descriptors.
|
|
1176
|
+
*/
|
|
1177
|
+
readonly methodDescriptors: readonly MethodDescriptor[];
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Proxy class type with fixed constructor.
|
|
1181
|
+
*/
|
|
1182
|
+
type ProxyClassType<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>> = (new (appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) => T) & typeof LibProxy;
|
|
1183
|
+
/**
|
|
1184
|
+
* Proxy parameter decorator.
|
|
1185
|
+
*
|
|
1186
|
+
* @param parameterDescriptor
|
|
1187
|
+
* Parameter descriptor.
|
|
1188
|
+
*
|
|
1189
|
+
* @returns
|
|
1190
|
+
* Function defining metadata for the parameter.
|
|
1191
|
+
*/
|
|
1192
|
+
declare function ProxyParameter<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(parameterDescriptor: ParameterDescriptor): ((target: T, propertyKey: string, parameterIndex: number) => void);
|
|
1193
|
+
/**
|
|
1194
|
+
* Proxy method decorator.
|
|
1195
|
+
*
|
|
1196
|
+
* @param methodDescriptor
|
|
1197
|
+
* Method descriptor.
|
|
1198
|
+
*
|
|
1199
|
+
* @returns
|
|
1200
|
+
* Function defining metadata for the method.
|
|
1201
|
+
*/
|
|
1202
|
+
declare function ProxyMethod<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(methodDescriptor: Omit<MethodDescriptor, "name" | "parameterDescriptors">): ((target: T, propertyKey: string, propertyDescriptor: PropertyDescriptor) => void);
|
|
1203
|
+
/**
|
|
1204
|
+
* Proxy class decorator.
|
|
1205
|
+
*
|
|
1206
|
+
* @param classDescriptor
|
|
1207
|
+
* Class descriptor.
|
|
1208
|
+
*
|
|
1209
|
+
* @returns
|
|
1210
|
+
* Function defining metadata for the class.
|
|
1211
|
+
*/
|
|
1212
|
+
declare function ProxyClass<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(classDescriptor?: Omit<ClassDescriptor, "name" | "methodDescriptors">): ((classType: ProxyClassType<ThrowError, TError, TInvocationContext, TBigInt, T>) => void);
|
|
1213
|
+
/**
|
|
1214
|
+
* Get class descriptors map.
|
|
1215
|
+
*
|
|
1216
|
+
* @returns
|
|
1217
|
+
* Class descriptors map.
|
|
1218
|
+
*/
|
|
1219
|
+
declare function getClassDescriptorsMap(): ReadonlyMap<string, ClassDescriptor>;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* Application utilities.
|
|
1223
|
+
*/
|
|
1224
|
+
declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1225
|
+
/**
|
|
1226
|
+
* Get the version.
|
|
1227
|
+
*
|
|
1228
|
+
* @returns
|
|
1229
|
+
* Version.
|
|
1230
|
+
*/
|
|
1231
|
+
version(): string;
|
|
1232
|
+
/**
|
|
1233
|
+
* Provide default values for maximum width and height if required.
|
|
1234
|
+
*
|
|
1235
|
+
* @param maximumDimensions
|
|
1236
|
+
* Maximum dimensions provided to function.
|
|
1237
|
+
*
|
|
1238
|
+
* @param invocationContext
|
|
1239
|
+
* Invocation context.
|
|
1240
|
+
*
|
|
1241
|
+
* @returns
|
|
1242
|
+
* Array of maximum width and maximum height.
|
|
1243
|
+
*/
|
|
1244
|
+
private defaultMaximums;
|
|
1245
|
+
/**
|
|
1246
|
+
* Spill a horizontal matrix vertically to fit within a maximum width and height.
|
|
1247
|
+
*
|
|
1248
|
+
* @param hMatrixValues
|
|
1249
|
+
* Horizontal matrix values. Matrix has length 1 and contains a single array with the values.
|
|
1250
|
+
*
|
|
1251
|
+
* @param maximumWidth
|
|
1252
|
+
* Maximum width.
|
|
1253
|
+
*
|
|
1254
|
+
* @param maximumHeight
|
|
1255
|
+
* Maximum height.
|
|
1256
|
+
*
|
|
1257
|
+
* @param invocationContext
|
|
1258
|
+
* Invocation context.
|
|
1259
|
+
*
|
|
1260
|
+
* @returns
|
|
1261
|
+
* Matrix spilled within maximum width and maximum height.
|
|
1262
|
+
*/
|
|
1263
|
+
vSpill(hMatrixValues: Matrix<unknown>, maximumWidth: Nullishable<number>, maximumHeight: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<Matrix<unknown>>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Spill a vertical matrix horizontally to fit within a maximum width and height.
|
|
1266
|
+
*
|
|
1267
|
+
* @param vMatrixValues
|
|
1268
|
+
* Vertical matrix values. Matrix contains arrays of length 1 with the values.
|
|
1269
|
+
*
|
|
1270
|
+
* @param maximumHeight
|
|
1271
|
+
* Maximum height.
|
|
1272
|
+
*
|
|
1273
|
+
* @param maximumWidth
|
|
1274
|
+
* Maximum width.
|
|
1275
|
+
*
|
|
1276
|
+
* @param invocationContext
|
|
1277
|
+
* Invocation context.
|
|
1278
|
+
*
|
|
1279
|
+
* @returns
|
|
1280
|
+
* Matrix spilled within maximum height and maximum width.
|
|
1281
|
+
*/
|
|
1282
|
+
hSpill(vMatrixValues: Matrix<unknown>, maximumHeight: Nullishable<number>, maximumWidth: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<Matrix<unknown>>;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
declare class TransformerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1286
|
+
forward(domain: number | bigint, matrixValues: Matrix<number | bigint>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
|
|
1287
|
+
forwardSequence(domain: number | bigint, startValue: number, count: number, tweak: Nullishable<number | bigint>): Matrix<ResultError<TBigInt, ThrowError, TError>>;
|
|
1288
|
+
reverse(domain: number | bigint, matrixTransformedValues: Matrix<number | bigint>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
declare abstract class StringProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1292
|
+
protected validateString<TStringValidation extends StringValidation>(validator: StringValidator<TStringValidation>, matrixSs: Matrix<string>, validation?: TStringValidation): Matrix<string>;
|
|
1293
|
+
protected isValidString(matrixValidateResults: MatrixResultError<string, ThrowError, TError>): MatrixResultError<boolean, ThrowError, TError>;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
declare class RegExpProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1297
|
+
validate(regExp: string, matrixSs: Matrix<string>, errorMessage: Nullishable<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1298
|
+
isValid(regExp: string, matrixSs: Matrix<string>): MatrixResultError<boolean, ThrowError, TError>;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
declare abstract class CharacterSetValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1302
|
+
private readonly _characterSetValidator;
|
|
1303
|
+
protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetValidator: CharacterSetValidator);
|
|
1304
|
+
validate(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<string, ThrowError, TError>;
|
|
1305
|
+
isValid(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<boolean, ThrowError, TError>;
|
|
1306
|
+
}
|
|
1307
|
+
declare abstract class CharacterSetCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1308
|
+
private readonly _characterSetCreator;
|
|
1309
|
+
protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetCreator: CharacterSetCreator);
|
|
1310
|
+
create(length: number, matrixValues: Matrix<number | bigint>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<string, ThrowError, TError>;
|
|
1311
|
+
createSequence(length: number, startValue: number, count: number, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): Matrix<string>;
|
|
1312
|
+
valueFor(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
|
|
1313
|
+
}
|
|
1314
|
+
declare class NumericProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1315
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1316
|
+
}
|
|
1317
|
+
declare class HexadecimalProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1318
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1319
|
+
}
|
|
1320
|
+
declare class AlphabeticProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1321
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1322
|
+
}
|
|
1323
|
+
declare class AlphanumericProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1324
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
declare class AI82Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1328
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1329
|
+
}
|
|
1330
|
+
declare class AI39Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1331
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1332
|
+
}
|
|
1333
|
+
declare class AI64Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1334
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
declare class CheckProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1338
|
+
checkDigit(matrixSs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1339
|
+
hasValidCheckDigit(matrixSs: Matrix<string>): MatrixResultError<boolean, ThrowError, TError>;
|
|
1340
|
+
priceOrWeightCheckDigit(matrixSs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1341
|
+
isValidPriceOrWeightCheckDigit(s: string, checkDigit: string): ResultError<boolean, ThrowError, TError>;
|
|
1342
|
+
checkCharacterPair(matrixSs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1343
|
+
hasValidCheckCharacterPair(matrixSs: Matrix<string>): MatrixResultError<boolean, ThrowError, TError>;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
declare abstract class IdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierType extends IdentifierType> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1347
|
+
private readonly _validator;
|
|
1348
|
+
protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, validator: IdentifierTypeValidator<TIdentifierType>);
|
|
1349
|
+
protected get validator(): IdentifierTypeValidator<TIdentifierType>;
|
|
1350
|
+
}
|
|
1351
|
+
declare abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierType> {
|
|
1352
|
+
validate(matrixIdentifiers: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1353
|
+
}
|
|
1354
|
+
declare abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, typeof IdentifierTypes.GTIN> {
|
|
1355
|
+
}
|
|
1356
|
+
declare abstract class NonGTINNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType = NonGTINNumericIdentifierType> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType> {
|
|
1357
|
+
}
|
|
1358
|
+
declare abstract class SerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierType> {
|
|
1359
|
+
}
|
|
1360
|
+
declare abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierType> {
|
|
1361
|
+
validate(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): MatrixResultError<string, ThrowError, TError>;
|
|
1362
|
+
}
|
|
1363
|
+
declare class GTIN13ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1364
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1365
|
+
}
|
|
1366
|
+
declare class GTIN12ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1367
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1368
|
+
}
|
|
1369
|
+
declare class GTIN8ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1370
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1371
|
+
}
|
|
1372
|
+
declare class GTINValidatorStaticProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1373
|
+
zeroSuppressGTIN12(matrixGTIN12s: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1374
|
+
zeroExpandGTIN12(matrixZeroSuppressedGTIN12s: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1375
|
+
convertToGTIN14(indicatorDigit: string, matrixGTINs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1376
|
+
normalizeGTIN(matrixGTINs: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1377
|
+
validateGTIN(matrixGTINs: Matrix<string>, gtinLevel: Nullishable<GTINLevel>): Matrix<string>;
|
|
1378
|
+
validateGTIN14(matrixGTIN14s: Matrix<string>): Matrix<string>;
|
|
1379
|
+
parseVariableMeasureRCN(format: string, matrixRCNs: Matrix<string>): MatrixResultError<number, ThrowError, TError>;
|
|
1380
|
+
}
|
|
1381
|
+
declare class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1382
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1383
|
+
}
|
|
1384
|
+
declare class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1385
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1386
|
+
}
|
|
1387
|
+
declare class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1388
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1389
|
+
}
|
|
1390
|
+
declare class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1391
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1392
|
+
}
|
|
1393
|
+
declare class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1394
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1395
|
+
}
|
|
1396
|
+
declare class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1397
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1398
|
+
}
|
|
1399
|
+
declare class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1400
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1401
|
+
}
|
|
1402
|
+
declare class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1403
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1404
|
+
}
|
|
1405
|
+
declare class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1406
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1407
|
+
}
|
|
1408
|
+
declare class CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1409
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1410
|
+
}
|
|
1411
|
+
declare class GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1412
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1413
|
+
}
|
|
1414
|
+
declare class PrefixManagerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1415
|
+
definePrefix(prefix: string, prefixType: Nullishable<PrefixType>, tweakFactor: Nullishable<number>): Matrix<unknown>;
|
|
1416
|
+
}
|
|
1417
|
+
declare abstract class IdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierDescriptor extends IdentifierDescriptor, TIdentifierValidation extends IdentifierValidation, TIdentifierCreator extends IdentifierCreator<TIdentifierDescriptor, TIdentifierValidation>> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1418
|
+
private static readonly PREFIX_TYPES;
|
|
1419
|
+
private readonly _getCreator;
|
|
1420
|
+
protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, getCreator: (prefixManager: PrefixManager) => TIdentifierCreator);
|
|
1421
|
+
protected getCreator(prefixDefinition: Matrix<unknown>): TIdentifierCreator;
|
|
1422
|
+
}
|
|
1423
|
+
declare abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierDescriptor extends NumericIdentifierDescriptor, TNumericIdentifierCreator extends NumericIdentifierCreator<TNumericIdentifierDescriptor>> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierDescriptor, NumericIdentifierValidation, TNumericIdentifierCreator> {
|
|
1424
|
+
create(prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
|
|
1425
|
+
createSequence(prefixDefinition: Matrix<unknown>, startValue: number, count: number, sparse: Nullishable<boolean>): Matrix<string>;
|
|
1426
|
+
createAll(prefixDefinition: Matrix<unknown>): Matrix<string>;
|
|
1427
|
+
}
|
|
1428
|
+
declare abstract class NonGTINNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierDescriptor extends NonGTINNumericIdentifierDescriptor, TNonGTINNumericIdentifierCreator extends NonGTINNumericIdentifierCreator> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierDescriptor, TNonGTINNumericIdentifierCreator> {
|
|
1429
|
+
}
|
|
1430
|
+
declare abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierDescriptor, SerializableNumericIdentifierCreator> {
|
|
1431
|
+
createSerialized(prefixDefinition: Matrix<unknown>, value: number, matrixSerialComponents: Matrix<string>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
|
|
1432
|
+
concatenate(baseIdentifier: string, matrixSerialComponents: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1433
|
+
}
|
|
1434
|
+
declare abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierDescriptor, NonNumericIdentifierValidation, NonNumericIdentifierCreator> {
|
|
1435
|
+
create(prefixDefinition: Matrix<unknown>, matrixReferences: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
|
|
1436
|
+
}
|
|
1437
|
+
declare class GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINDescriptor, GTINCreator> {
|
|
1438
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1439
|
+
createGTIN14(indicatorDigit: string, prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
|
|
1440
|
+
createVariableMeasureRCN(format: string, itemReference: number, matrixPricesOrWeights: Matrix<number>): MatrixResultError<string, ThrowError, TError>;
|
|
1441
|
+
}
|
|
1442
|
+
declare class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
|
|
1443
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1444
|
+
}
|
|
1445
|
+
declare class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
|
|
1446
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1447
|
+
}
|
|
1448
|
+
declare class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1449
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1450
|
+
}
|
|
1451
|
+
declare class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1452
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1453
|
+
}
|
|
1454
|
+
declare class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
|
|
1455
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1456
|
+
}
|
|
1457
|
+
declare class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1458
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1459
|
+
}
|
|
1460
|
+
declare class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1461
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1462
|
+
}
|
|
1463
|
+
declare class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
|
|
1464
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1465
|
+
}
|
|
1466
|
+
declare class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1467
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1468
|
+
}
|
|
1469
|
+
declare class CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1470
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1471
|
+
}
|
|
1472
|
+
declare class GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
1473
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
type index_AI39Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = AI39Proxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1477
|
+
declare const index_AI39Proxy: typeof AI39Proxy;
|
|
1478
|
+
type index_AI64Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = AI64Proxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1479
|
+
declare const index_AI64Proxy: typeof AI64Proxy;
|
|
1480
|
+
type index_AI82Proxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = AI82Proxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1481
|
+
declare const index_AI82Proxy: typeof AI82Proxy;
|
|
1482
|
+
type index_CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = CPIDCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1483
|
+
declare const index_CPIDCreatorProxy: typeof CPIDCreatorProxy;
|
|
1484
|
+
type index_CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = CPIDValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1485
|
+
declare const index_CPIDValidatorProxy: typeof CPIDValidatorProxy;
|
|
1486
|
+
type index_CheckProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = CheckProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1487
|
+
declare const index_CheckProxy: typeof CheckProxy;
|
|
1488
|
+
type index_GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GCNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1489
|
+
declare const index_GCNCreatorProxy: typeof GCNCreatorProxy;
|
|
1490
|
+
type index_GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GCNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1491
|
+
declare const index_GCNValidatorProxy: typeof GCNValidatorProxy;
|
|
1492
|
+
type index_GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GDTICreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1493
|
+
declare const index_GDTICreatorProxy: typeof GDTICreatorProxy;
|
|
1494
|
+
type index_GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GDTIValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1495
|
+
declare const index_GDTIValidatorProxy: typeof GDTIValidatorProxy;
|
|
1496
|
+
type index_GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GIAICreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1497
|
+
declare const index_GIAICreatorProxy: typeof GIAICreatorProxy;
|
|
1498
|
+
type index_GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GIAIValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1499
|
+
declare const index_GIAIValidatorProxy: typeof GIAIValidatorProxy;
|
|
1500
|
+
type index_GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GINCCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1501
|
+
declare const index_GINCCreatorProxy: typeof GINCCreatorProxy;
|
|
1502
|
+
type index_GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GINCValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1503
|
+
declare const index_GINCValidatorProxy: typeof GINCValidatorProxy;
|
|
1504
|
+
type index_GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GLNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1505
|
+
declare const index_GLNCreatorProxy: typeof GLNCreatorProxy;
|
|
1506
|
+
type index_GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GLNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1507
|
+
declare const index_GLNValidatorProxy: typeof GLNValidatorProxy;
|
|
1508
|
+
type index_GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GMNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1509
|
+
declare const index_GMNCreatorProxy: typeof GMNCreatorProxy;
|
|
1510
|
+
type index_GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GMNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1511
|
+
declare const index_GMNValidatorProxy: typeof GMNValidatorProxy;
|
|
1512
|
+
type index_GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GRAICreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1513
|
+
declare const index_GRAICreatorProxy: typeof GRAICreatorProxy;
|
|
1514
|
+
type index_GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GRAIValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1515
|
+
declare const index_GRAIValidatorProxy: typeof GRAIValidatorProxy;
|
|
1516
|
+
type index_GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSINCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1517
|
+
declare const index_GSINCreatorProxy: typeof GSINCreatorProxy;
|
|
1518
|
+
type index_GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1519
|
+
declare const index_GSINValidatorProxy: typeof GSINValidatorProxy;
|
|
1520
|
+
type index_GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSRNCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1521
|
+
declare const index_GSRNCreatorProxy: typeof GSRNCreatorProxy;
|
|
1522
|
+
type index_GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GSRNValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1523
|
+
declare const index_GSRNValidatorProxy: typeof GSRNValidatorProxy;
|
|
1524
|
+
type index_GTIN12ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTIN12ValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1525
|
+
declare const index_GTIN12ValidatorProxy: typeof GTIN12ValidatorProxy;
|
|
1526
|
+
type index_GTIN13ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTIN13ValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1527
|
+
declare const index_GTIN13ValidatorProxy: typeof GTIN13ValidatorProxy;
|
|
1528
|
+
type index_GTIN8ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTIN8ValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1529
|
+
declare const index_GTIN8ValidatorProxy: typeof GTIN8ValidatorProxy;
|
|
1530
|
+
type index_GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTINCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1531
|
+
declare const index_GTINCreatorProxy: typeof GTINCreatorProxy;
|
|
1532
|
+
type index_GTINValidatorStaticProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = GTINValidatorStaticProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1533
|
+
declare const index_GTINValidatorStaticProxy: typeof GTINValidatorStaticProxy;
|
|
1534
|
+
type index_PrefixManagerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = PrefixManagerProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1535
|
+
declare const index_PrefixManagerProxy: typeof PrefixManagerProxy;
|
|
1536
|
+
type index_SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = SSCCCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1537
|
+
declare const index_SSCCCreatorProxy: typeof SSCCCreatorProxy;
|
|
1538
|
+
type index_SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> = SSCCValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt>;
|
|
1539
|
+
declare const index_SSCCValidatorProxy: typeof SSCCValidatorProxy;
|
|
1540
|
+
declare namespace index {
|
|
1541
|
+
export { index_AI39Proxy as AI39Proxy, index_AI64Proxy as AI64Proxy, index_AI82Proxy as AI82Proxy, index_CPIDCreatorProxy as CPIDCreatorProxy, index_CPIDValidatorProxy as CPIDValidatorProxy, index_CheckProxy as CheckProxy, index_GCNCreatorProxy as GCNCreatorProxy, index_GCNValidatorProxy as GCNValidatorProxy, index_GDTICreatorProxy as GDTICreatorProxy, index_GDTIValidatorProxy as GDTIValidatorProxy, index_GIAICreatorProxy as GIAICreatorProxy, index_GIAIValidatorProxy as GIAIValidatorProxy, index_GINCCreatorProxy as GINCCreatorProxy, index_GINCValidatorProxy as GINCValidatorProxy, index_GLNCreatorProxy as GLNCreatorProxy, index_GLNValidatorProxy as GLNValidatorProxy, index_GMNCreatorProxy as GMNCreatorProxy, index_GMNValidatorProxy as GMNValidatorProxy, index_GRAICreatorProxy as GRAICreatorProxy, index_GRAIValidatorProxy as GRAIValidatorProxy, index_GSINCreatorProxy as GSINCreatorProxy, index_GSINValidatorProxy as GSINValidatorProxy, index_GSRNCreatorProxy as GSRNCreatorProxy, index_GSRNValidatorProxy as GSRNValidatorProxy, index_GTIN12ValidatorProxy as GTIN12ValidatorProxy, index_GTIN13ValidatorProxy as GTIN13ValidatorProxy, index_GTIN8ValidatorProxy as GTIN8ValidatorProxy, index_GTINCreatorProxy as GTINCreatorProxy, index_GTINValidatorStaticProxy as GTINValidatorStaticProxy, index_PrefixManagerProxy as PrefixManagerProxy, index_SSCCCreatorProxy as SSCCCreatorProxy, index_SSCCValidatorProxy as SSCCValidatorProxy };
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Localization.
|
|
1546
|
+
*/
|
|
1547
|
+
interface Localization {
|
|
1548
|
+
/**
|
|
1549
|
+
* Name.
|
|
1550
|
+
*/
|
|
1551
|
+
name: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* Description.
|
|
1554
|
+
*/
|
|
1555
|
+
description: string;
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* Function localization.
|
|
1559
|
+
*/
|
|
1560
|
+
interface FunctionLocalization extends Localization {
|
|
1561
|
+
/**
|
|
1562
|
+
* Documentation URL.
|
|
1563
|
+
*/
|
|
1564
|
+
documentationURL: string;
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Parameter localization.
|
|
1568
|
+
*/
|
|
1569
|
+
interface ParameterLocalization extends Localization {
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Localization descriptor.
|
|
1573
|
+
*/
|
|
1574
|
+
interface LocalizationDescriptor<T extends Localization> {
|
|
1575
|
+
/**
|
|
1576
|
+
* Localizations map by locale.
|
|
1577
|
+
*/
|
|
1578
|
+
readonly localizationsMap: ReadonlyMap<string, T>;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Proxy namespace descriptor.
|
|
1582
|
+
*/
|
|
1583
|
+
interface ProxyNamespaceDescriptor {
|
|
1584
|
+
/**
|
|
1585
|
+
* Namespace if any.
|
|
1586
|
+
*/
|
|
1587
|
+
readonly namespace: string | undefined;
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* Proxy class descriptor.
|
|
1591
|
+
*/
|
|
1592
|
+
interface ProxyClassDescriptor extends ProxyNamespaceDescriptor {
|
|
1593
|
+
/**
|
|
1594
|
+
* Class name.
|
|
1595
|
+
*/
|
|
1596
|
+
readonly className: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* Namespace-qualified class name.
|
|
1599
|
+
*/
|
|
1600
|
+
readonly namespaceClassName: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Class descriptor.
|
|
1603
|
+
*/
|
|
1604
|
+
readonly classDescriptor: ClassDescriptor;
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Proxy object descriptor.
|
|
1608
|
+
*/
|
|
1609
|
+
interface ProxyObjectDescriptor extends ProxyClassDescriptor {
|
|
1610
|
+
/**
|
|
1611
|
+
* Object name.
|
|
1612
|
+
*/
|
|
1613
|
+
readonly objectName: string;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
* Proxy parameter descriptor.
|
|
1617
|
+
*/
|
|
1618
|
+
interface ProxyParameterDescriptor extends ProxyNamespaceDescriptor, LocalizationDescriptor<ParameterLocalization> {
|
|
1619
|
+
/**
|
|
1620
|
+
* Function name.
|
|
1621
|
+
*/
|
|
1622
|
+
readonly parameterName: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* Parameter descriptor.
|
|
1625
|
+
*/
|
|
1626
|
+
readonly parameterDescriptor: BaseParameterDescriptor;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* Proxy function descriptor.
|
|
1630
|
+
*/
|
|
1631
|
+
interface ProxyFunctionDescriptor extends ProxyObjectDescriptor, LocalizationDescriptor<FunctionLocalization> {
|
|
1632
|
+
/**
|
|
1633
|
+
* Function name.
|
|
1634
|
+
*/
|
|
1635
|
+
readonly functionName: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* Namespace-qualified function name.
|
|
1638
|
+
*/
|
|
1639
|
+
readonly namespaceFunctionName: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* Proxy parameter descriptors
|
|
1642
|
+
*/
|
|
1643
|
+
readonly proxyParameterDescriptors: ProxyParameterDescriptor[];
|
|
1644
|
+
/**
|
|
1645
|
+
* Method descriptor.
|
|
1646
|
+
*/
|
|
1647
|
+
readonly methodDescriptor: MethodDescriptor;
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Abstract generator.
|
|
1652
|
+
*/
|
|
1653
|
+
declare abstract class Generator {
|
|
1654
|
+
/**
|
|
1655
|
+
* Documentation base URL.
|
|
1656
|
+
*/
|
|
1657
|
+
private static readonly DOCUMENTATION_BASE_URL;
|
|
1658
|
+
/**
|
|
1659
|
+
* Documentation path, optionally preceded by locale.
|
|
1660
|
+
*/
|
|
1661
|
+
private static readonly DOCUMENTATION_PATH;
|
|
1662
|
+
/**
|
|
1663
|
+
* Locales.
|
|
1664
|
+
*/
|
|
1665
|
+
private readonly _locales;
|
|
1666
|
+
/**
|
|
1667
|
+
* Default locale.
|
|
1668
|
+
*/
|
|
1669
|
+
private readonly _defaultLocale;
|
|
1670
|
+
/**
|
|
1671
|
+
* Map of function localizations maps by namespace function name.
|
|
1672
|
+
*/
|
|
1673
|
+
private readonly _functionLocalizationsMapsMap;
|
|
1674
|
+
/**
|
|
1675
|
+
* Map of parameter localizations maps by namespace function parameter name.
|
|
1676
|
+
*/
|
|
1677
|
+
private readonly _parameterLocalizationsMapsMap;
|
|
1678
|
+
/**
|
|
1679
|
+
*
|
|
1680
|
+
*/
|
|
1681
|
+
/**
|
|
1682
|
+
* Constructor.
|
|
1683
|
+
*
|
|
1684
|
+
* @param includeLocalizations
|
|
1685
|
+
* Include localizations if true.
|
|
1686
|
+
*/
|
|
1687
|
+
constructor(includeLocalizations?: boolean);
|
|
1688
|
+
/**
|
|
1689
|
+
* Get the locales.
|
|
1690
|
+
*/
|
|
1691
|
+
protected get locales(): readonly string[];
|
|
1692
|
+
/**
|
|
1693
|
+
* Get the default locale.
|
|
1694
|
+
*/
|
|
1695
|
+
protected get defaultLocale(): string;
|
|
1696
|
+
/**
|
|
1697
|
+
* Get function localization.
|
|
1698
|
+
*
|
|
1699
|
+
* @param namespaceFunctionName
|
|
1700
|
+
* Namespace function name.
|
|
1701
|
+
*
|
|
1702
|
+
* @param locale
|
|
1703
|
+
* Locale.
|
|
1704
|
+
*
|
|
1705
|
+
* @returns
|
|
1706
|
+
* Function localization.
|
|
1707
|
+
*/
|
|
1708
|
+
protected getFunctionLocalization(namespaceFunctionName: string, locale: string): FunctionLocalization;
|
|
1709
|
+
/**
|
|
1710
|
+
* Get parameter localization.
|
|
1711
|
+
*
|
|
1712
|
+
* @param namespaceFunctionName
|
|
1713
|
+
* Namespace function name.
|
|
1714
|
+
*
|
|
1715
|
+
* @param parameterName
|
|
1716
|
+
* Parameter name.
|
|
1717
|
+
*
|
|
1718
|
+
* @param locale
|
|
1719
|
+
* Locale.
|
|
1720
|
+
*
|
|
1721
|
+
* @returns
|
|
1722
|
+
* Function localization.
|
|
1723
|
+
*/
|
|
1724
|
+
protected getParameterLocalization(namespaceFunctionName: string, parameterName: string, locale: string): ParameterLocalization;
|
|
1725
|
+
/**
|
|
1726
|
+
* Initialize the generation of the output.
|
|
1727
|
+
*/
|
|
1728
|
+
protected abstract initialize(): void;
|
|
1729
|
+
/**
|
|
1730
|
+
* Create a proxy object.
|
|
1731
|
+
*
|
|
1732
|
+
* @param proxyObjectDescriptor
|
|
1733
|
+
* Proxy object descriptor.
|
|
1734
|
+
*/
|
|
1735
|
+
protected abstract createProxyObject(proxyObjectDescriptor: ProxyObjectDescriptor): void;
|
|
1736
|
+
/**
|
|
1737
|
+
* Create a proxy function.
|
|
1738
|
+
*
|
|
1739
|
+
* @param proxyFunctionDescriptor
|
|
1740
|
+
* Proxy function descriptor.
|
|
1741
|
+
*/
|
|
1742
|
+
protected abstract createProxyFunction(proxyFunctionDescriptor: ProxyFunctionDescriptor): void;
|
|
1743
|
+
/**
|
|
1744
|
+
* Finalize the generation of the output.
|
|
1745
|
+
*
|
|
1746
|
+
* @param success
|
|
1747
|
+
* True if successful.
|
|
1748
|
+
*/
|
|
1749
|
+
protected abstract finalize(success: boolean): void | Promise<void>;
|
|
1750
|
+
/**
|
|
1751
|
+
* Generate localizations map.
|
|
1752
|
+
*
|
|
1753
|
+
* @param localizedKeyPrefix
|
|
1754
|
+
* Localized key prefix.
|
|
1755
|
+
*
|
|
1756
|
+
* @param localizationCallback
|
|
1757
|
+
* Callback to finalize localization.
|
|
1758
|
+
*
|
|
1759
|
+
* @returns
|
|
1760
|
+
* Localization map.
|
|
1761
|
+
*/
|
|
1762
|
+
private generateLocalizationsMap;
|
|
1763
|
+
/**
|
|
1764
|
+
* Generate by processing individual imports.
|
|
1765
|
+
*/
|
|
1766
|
+
generate(): Promise<void>;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
export { type Address, AlphabeticProxy, AlphanumericProxy, AppExtension, type AppExtensionLocaleResources, AppUtilityProxy, type BaseParameterDescriptor, CharacterSetCreatorProxy, CharacterSetValidatorProxy, type ClassDescriptor, type ErrorExtends, type ExtendsParameterDescriptor, type FunctionLocalization, index as GS1, Generator, HexadecimalProxy, LibProxy, type Localization, type LocalizationDescriptor, type Matrix, type MatrixResultError, type MethodDescriptor, NumericProxy, type ParameterDescriptor, type ParameterLocalization, ProxyClass, type ProxyClassDescriptor, type ProxyFunctionDescriptor, ProxyMethod, type ProxyNamespaceDescriptor, type ProxyObjectDescriptor, ProxyParameter, type ProxyParameterDescriptor, type Range, RegExpProxy, type ResultError, type Sheet, type SheetAddress, type SheetRange, TransformerProxy, type Type, type TypeKey, Types, appExtensionNS, appExtensionResources, expandParameterDescriptor, getClassDescriptorsMap, i18nAppExtensionInit, i18nextAppExtension };
|