@aidc-toolkit/app-extension 1.0.32-beta → 1.0.34-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/README.md +1 -5
- package/dist/app-extension.d.ts +194 -0
- package/dist/app-extension.d.ts.map +1 -0
- package/dist/app-extension.js +133 -0
- package/dist/app-extension.js.map +1 -0
- package/dist/app-helper-proxy.d.ts +61 -0
- package/dist/app-helper-proxy.d.ts.map +1 -0
- package/dist/app-helper-proxy.js +332 -0
- package/dist/app-helper-proxy.js.map +1 -0
- package/dist/descriptor.d.ts +193 -0
- package/dist/descriptor.d.ts.map +1 -0
- package/dist/descriptor.js +44 -0
- package/dist/descriptor.js.map +1 -0
- package/dist/generator/generator.d.ts +114 -0
- package/dist/generator/generator.d.ts.map +1 -0
- package/dist/generator/generator.js +160 -0
- package/dist/generator/generator.js.map +1 -0
- package/dist/generator/index.d.ts +2 -0
- package/dist/generator/index.d.ts.map +1 -0
- package/dist/generator/index.js +2 -0
- package/dist/generator/index.js.map +1 -0
- package/dist/generator/locale-resources-generator.d.ts +2 -0
- package/dist/generator/locale-resources-generator.d.ts.map +1 -0
- package/dist/generator/locale-resources-generator.js +311 -0
- package/dist/generator/locale-resources-generator.js.map +1 -0
- package/dist/gs1/character-set-proxy.d.ts +13 -0
- package/dist/gs1/character-set-proxy.d.ts.map +1 -0
- package/dist/gs1/character-set-proxy.js +126 -0
- package/dist/gs1/character-set-proxy.js.map +1 -0
- package/dist/gs1/check-proxy.d.ts +11 -0
- package/dist/gs1/check-proxy.d.ts.map +1 -0
- package/dist/gs1/check-proxy.js +163 -0
- package/dist/gs1/check-proxy.js.map +1 -0
- package/dist/gs1/gtin-creator-proxy.d.ts +10 -0
- package/dist/gs1/gtin-creator-proxy.d.ts.map +1 -0
- package/dist/gs1/gtin-creator-proxy.js +85 -0
- package/dist/gs1/gtin-creator-proxy.js.map +1 -0
- package/dist/gs1/gtin-descriptor.d.ts +3 -0
- package/dist/gs1/gtin-descriptor.d.ts.map +1 -0
- package/dist/gs1/gtin-descriptor.js +8 -0
- package/dist/gs1/gtin-descriptor.js.map +1 -0
- package/dist/gs1/gtin-validator-proxy.d.ts +26 -0
- package/dist/gs1/gtin-validator-proxy.d.ts.map +1 -0
- package/dist/gs1/gtin-validator-proxy.js +256 -0
- package/dist/gs1/gtin-validator-proxy.js.map +1 -0
- package/dist/gs1/identifier-creator-proxy.d.ts +30 -0
- package/dist/gs1/identifier-creator-proxy.d.ts.map +1 -0
- package/dist/gs1/identifier-creator-proxy.js +302 -0
- package/dist/gs1/identifier-creator-proxy.js.map +1 -0
- package/dist/gs1/identifier-descriptor.d.ts +4 -0
- package/dist/gs1/identifier-descriptor.d.ts.map +1 -0
- package/dist/gs1/identifier-descriptor.js +14 -0
- package/dist/gs1/identifier-descriptor.js.map +1 -0
- package/dist/gs1/identifier-type.d.ts +22 -0
- package/dist/gs1/identifier-type.d.ts.map +1 -0
- package/dist/gs1/identifier-type.js +34 -0
- package/dist/gs1/identifier-type.js.map +1 -0
- package/dist/gs1/identifier-validator-proxy.d.ts +29 -0
- package/dist/gs1/identifier-validator-proxy.d.ts.map +1 -0
- package/dist/gs1/identifier-validator-proxy.js +212 -0
- package/dist/gs1/identifier-validator-proxy.js.map +1 -0
- package/dist/gs1/index.d.ts +10 -0
- package/dist/gs1/index.d.ts.map +1 -0
- package/dist/gs1/index.js +10 -0
- package/dist/gs1/index.js.map +1 -0
- package/dist/gs1/non-gtin-creator-proxy.d.ts +38 -0
- package/dist/gs1/non-gtin-creator-proxy.d.ts.map +1 -0
- package/dist/gs1/non-gtin-creator-proxy.js +301 -0
- package/dist/gs1/non-gtin-creator-proxy.js.map +1 -0
- package/dist/gs1/non-gtin-validator-proxy.d.ts +37 -0
- package/dist/gs1/non-gtin-validator-proxy.d.ts.map +1 -0
- package/dist/gs1/non-gtin-validator-proxy.js +302 -0
- package/dist/gs1/non-gtin-validator-proxy.js.map +1 -0
- package/dist/gs1/prefix-definition-descriptor.d.ts +4 -0
- package/dist/gs1/prefix-definition-descriptor.d.ts.map +1 -0
- package/dist/gs1/prefix-definition-descriptor.js +16 -0
- package/dist/gs1/prefix-definition-descriptor.js.map +1 -0
- package/dist/gs1/prefix-manager-proxy.d.ts +14 -0
- package/dist/gs1/prefix-manager-proxy.d.ts.map +1 -0
- package/dist/gs1/prefix-manager-proxy.js +213 -0
- package/dist/gs1/prefix-manager-proxy.js.map +1 -0
- package/dist/gs1/service-proxy.d.ts +7 -0
- package/dist/gs1/service-proxy.d.ts.map +1 -0
- package/dist/gs1/service-proxy.js +105 -0
- package/dist/gs1/service-proxy.js.map +1 -0
- package/dist/gs1/variable-measure-proxy.d.ts +7 -0
- package/dist/gs1/variable-measure-proxy.d.ts.map +1 -0
- package/dist/gs1/variable-measure-proxy.js +114 -0
- package/dist/gs1/variable-measure-proxy.js.map +1 -0
- package/dist/index.d.ts +28 -1866
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -6508
- package/dist/index.js.map +1 -1
- package/dist/lib-proxy.d.ts +135 -0
- package/dist/lib-proxy.d.ts.map +1 -0
- package/dist/lib-proxy.js +276 -0
- package/dist/lib-proxy.js.map +1 -0
- package/dist/locale/en/locale-resources.d.ts +752 -0
- package/dist/locale/en/locale-resources.d.ts.map +1 -0
- package/dist/locale/en/locale-resources.js +751 -0
- package/dist/locale/en/locale-resources.js.map +1 -0
- package/dist/locale/fr/locale-resources.d.ts +752 -0
- package/dist/locale/fr/locale-resources.d.ts.map +1 -0
- package/dist/locale/fr/locale-resources.js +751 -0
- package/dist/locale/fr/locale-resources.js.map +1 -0
- package/dist/locale/i18n.d.ts +27 -0
- package/dist/locale/i18n.d.ts.map +1 -0
- package/dist/locale/i18n.js +36 -0
- package/dist/locale/i18n.js.map +1 -0
- package/dist/proxy.d.ts +136 -0
- package/dist/proxy.d.ts.map +1 -0
- package/dist/proxy.js +319 -0
- package/dist/proxy.js.map +1 -0
- package/dist/streaming.d.ts +10 -0
- package/dist/streaming.d.ts.map +1 -0
- package/dist/streaming.js +2 -0
- package/dist/streaming.js.map +1 -0
- package/dist/type.d.ts +91 -0
- package/dist/type.d.ts.map +1 -0
- package/dist/type.js +2 -0
- package/dist/type.js.map +1 -0
- package/dist/utility/character-set-descriptor.d.ts +6 -0
- package/dist/utility/character-set-descriptor.d.ts.map +1 -0
- package/dist/utility/character-set-descriptor.js +28 -0
- package/dist/utility/character-set-descriptor.js.map +1 -0
- package/dist/utility/character-set-proxy.d.ts +31 -0
- package/dist/utility/character-set-proxy.d.ts.map +1 -0
- package/dist/utility/character-set-proxy.js +278 -0
- package/dist/utility/character-set-proxy.js.map +1 -0
- package/dist/utility/index.d.ts +4 -0
- package/dist/utility/index.d.ts.map +1 -0
- package/dist/utility/index.js +4 -0
- package/dist/utility/index.js.map +1 -0
- package/dist/utility/reg-exp-proxy.d.ts +8 -0
- package/dist/utility/reg-exp-proxy.d.ts.map +1 -0
- package/dist/utility/reg-exp-proxy.js +103 -0
- package/dist/utility/reg-exp-proxy.js.map +1 -0
- package/dist/utility/string-descriptor.d.ts +4 -0
- package/dist/utility/string-descriptor.d.ts.map +1 -0
- package/dist/utility/string-descriptor.js +12 -0
- package/dist/utility/string-descriptor.js.map +1 -0
- package/dist/utility/string-proxy.d.ts +7 -0
- package/dist/utility/string-proxy.d.ts.map +1 -0
- package/dist/utility/string-proxy.js +63 -0
- package/dist/utility/string-proxy.js.map +1 -0
- package/dist/utility/transformer-descriptor.d.ts +6 -0
- package/dist/utility/transformer-descriptor.d.ts.map +1 -0
- package/dist/utility/transformer-descriptor.js +24 -0
- package/dist/utility/transformer-descriptor.js.map +1 -0
- package/dist/utility/transformer-proxy.d.ts +9 -0
- package/dist/utility/transformer-proxy.d.ts.map +1 -0
- package/dist/utility/transformer-proxy.js +111 -0
- package/dist/utility/transformer-proxy.js.map +1 -0
- package/package.json +13 -12
- package/src/app-extension.ts +26 -47
- package/src/{app-utility-proxy.ts → app-helper-proxy.ts} +21 -19
- package/src/descriptor.ts +43 -2
- package/src/generator/generator.ts +122 -95
- package/src/generator/locale-resources-generator.ts +26 -14
- package/src/gs1/check-proxy.ts +12 -11
- package/src/gs1/gtin-creator-proxy.ts +2 -3
- package/src/gs1/gtin-descriptor.ts +2 -2
- package/src/gs1/gtin-validator-proxy.ts +12 -14
- package/src/gs1/identifier-creator-proxy.ts +19 -21
- package/src/gs1/identifier-descriptor.ts +3 -3
- package/src/gs1/identifier-validator-proxy.ts +15 -16
- package/src/gs1/non-gtin-creator-proxy.ts +0 -11
- package/src/gs1/non-gtin-validator-proxy.ts +0 -11
- package/src/gs1/prefix-definition-descriptor.ts +2 -2
- package/src/gs1/prefix-manager-proxy.ts +80 -120
- package/src/gs1/service-proxy.ts +6 -5
- package/src/gs1/variable-measure-proxy.ts +9 -8
- package/src/index.ts +3 -3
- package/src/locale/en/locale-resources.ts +28 -15
- package/src/locale/fr/locale-resources.ts +28 -15
- package/src/locale/i18n.ts +10 -9
- package/src/locale/i18next.d.ts +2 -0
- package/src/proxy.ts +64 -40
- package/src/utility/character-set-descriptor.ts +2 -2
- package/src/utility/character-set-proxy.ts +7 -7
- package/src/utility/reg-exp-proxy.ts +5 -5
- package/src/utility/string-descriptor.ts +2 -2
- package/src/utility/string-proxy.ts +4 -0
- package/src/utility/transformer-descriptor.ts +5 -5
- package/src/utility/transformer-proxy.ts +6 -5
- package/tsconfig-src.json +7 -1
- package/tsconfig-src.tsbuildinfo +1 -0
- package/dist/index.cjs +0 -6544
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1866
- package/src/app-data.ts +0 -94
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "@aidc-toolkit/gs1";
|
|
22
22
|
import { Sequence } from "@aidc-toolkit/utility";
|
|
23
23
|
import type { AppExtension } from "../app-extension.js";
|
|
24
|
-
import { type ExtendsParameterDescriptor, type ParameterDescriptor, Types } from "../descriptor.js";
|
|
24
|
+
import { type ExtendsParameterDescriptor, Multiplicities, type ParameterDescriptor, Types } from "../descriptor.js";
|
|
25
25
|
import { LibProxy } from "../lib-proxy.js";
|
|
26
26
|
import { i18nextAppExtension } from "../locale/i18n.js";
|
|
27
27
|
import { proxy } from "../proxy.js";
|
|
@@ -34,6 +34,10 @@ import {
|
|
|
34
34
|
import { identifierParameterDescriptor } from "./identifier-descriptor.js";
|
|
35
35
|
import { prefixDefinitionGS1UPCParameterDescriptor } from "./prefix-definition-descriptor.js";
|
|
36
36
|
|
|
37
|
+
@proxy.describeClass(true, {
|
|
38
|
+
namespace: "GS1",
|
|
39
|
+
category: "identifierCreation"
|
|
40
|
+
})
|
|
37
41
|
abstract class IdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt, TIdentifierType extends IdentifierType, TIdentifierValidation extends IdentifierValidation, TIdentifierCreator extends IdentifierCreator<TIdentifierType, TIdentifierValidation>> extends LibProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
38
42
|
static readonly #PREFIX_TYPES: Array<PrefixType | undefined> = [PrefixTypes.GS1CompanyPrefix, PrefixTypes.UPCCompanyPrefix, PrefixTypes.GS18Prefix];
|
|
39
43
|
|
|
@@ -103,17 +107,15 @@ abstract class IdentifierCreatorProxy<ThrowError extends boolean, TError extends
|
|
|
103
107
|
export const sparseParameterDescriptor: ParameterDescriptor = {
|
|
104
108
|
name: "sparse",
|
|
105
109
|
type: Types.Boolean,
|
|
106
|
-
|
|
110
|
+
multiplicity: Multiplicities.Singleton,
|
|
107
111
|
isRequired: false
|
|
108
112
|
};
|
|
109
113
|
|
|
110
|
-
@proxy.describeClass(true
|
|
111
|
-
namespace: "GS1"
|
|
112
|
-
})
|
|
114
|
+
@proxy.describeClass(true)
|
|
113
115
|
export abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType, TNumericIdentifierCreator extends NumericIdentifierCreator<TNumericIdentifierType>> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, TNumericIdentifierType, NumericIdentifierValidation, TNumericIdentifierCreator> {
|
|
114
116
|
@proxy.describeMethod({
|
|
115
117
|
type: Types.String,
|
|
116
|
-
|
|
118
|
+
multiplicity: Multiplicities.Matrix,
|
|
117
119
|
parameterDescriptors: [prefixDefinitionGS1UPCParameterDescriptor, valueParameterDescriptor, sparseParameterDescriptor]
|
|
118
120
|
})
|
|
119
121
|
create(prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -129,7 +131,7 @@ export abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean,
|
|
|
129
131
|
@proxy.describeMethod({
|
|
130
132
|
infixBefore: "Sequence",
|
|
131
133
|
type: Types.String,
|
|
132
|
-
|
|
134
|
+
multiplicity: Multiplicities.Array,
|
|
133
135
|
parameterDescriptors: [prefixDefinitionGS1UPCParameterDescriptor, startValueParameterDescriptor, countParameterDescriptor, sparseParameterDescriptor]
|
|
134
136
|
})
|
|
135
137
|
createSequence(prefixDefinition: Matrix<unknown>, startValue: number, count: number, sparse: Nullishable<boolean>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -142,7 +144,7 @@ export abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean,
|
|
|
142
144
|
|
|
143
145
|
@proxy.describeMethod({
|
|
144
146
|
type: Types.String,
|
|
145
|
-
|
|
147
|
+
multiplicity: Multiplicities.Array,
|
|
146
148
|
parameterDescriptors: [prefixDefinitionGS1UPCParameterDescriptor]
|
|
147
149
|
})
|
|
148
150
|
createAll(prefixDefinition: Matrix<unknown>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -164,29 +166,27 @@ export abstract class NonSerializableNumericIdentifierCreatorProxy<ThrowError ex
|
|
|
164
166
|
|
|
165
167
|
const singleValueParameterDescriptor: ExtendsParameterDescriptor = {
|
|
166
168
|
extendsDescriptor: valueParameterDescriptor,
|
|
167
|
-
|
|
169
|
+
multiplicity: Multiplicities.Singleton
|
|
168
170
|
};
|
|
169
171
|
|
|
170
172
|
const baseIdentifierParameterDescriptor: ExtendsParameterDescriptor = {
|
|
171
173
|
extendsDescriptor: identifierParameterDescriptor,
|
|
172
174
|
name: "baseIdentifier",
|
|
173
|
-
|
|
175
|
+
multiplicity: Multiplicities.Singleton
|
|
174
176
|
};
|
|
175
177
|
|
|
176
178
|
const serialComponentParameterDescriptor: ParameterDescriptor = {
|
|
177
179
|
name: "serialComponent",
|
|
178
180
|
type: Types.String,
|
|
179
|
-
|
|
181
|
+
multiplicity: Multiplicities.Matrix,
|
|
180
182
|
isRequired: true
|
|
181
183
|
};
|
|
182
184
|
|
|
183
|
-
@proxy.describeClass(true
|
|
184
|
-
namespace: "GS1"
|
|
185
|
-
})
|
|
185
|
+
@proxy.describeClass(true)
|
|
186
186
|
export abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, SerializableNumericIdentifierType, SerializableNumericIdentifierCreator> {
|
|
187
187
|
@proxy.describeMethod({
|
|
188
188
|
type: Types.String,
|
|
189
|
-
|
|
189
|
+
multiplicity: Multiplicities.Matrix,
|
|
190
190
|
parameterDescriptors: [prefixDefinitionGS1UPCParameterDescriptor, singleValueParameterDescriptor, serialComponentParameterDescriptor, sparseParameterDescriptor]
|
|
191
191
|
})
|
|
192
192
|
createSerialized(prefixDefinition: Matrix<unknown>, value: number, matrixSerialComponents: Matrix<string>, sparse: Nullishable<boolean>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -201,7 +201,7 @@ export abstract class SerializableNumericIdentifierCreatorProxy<ThrowError exten
|
|
|
201
201
|
|
|
202
202
|
@proxy.describeMethod({
|
|
203
203
|
type: Types.String,
|
|
204
|
-
|
|
204
|
+
multiplicity: Multiplicities.Matrix,
|
|
205
205
|
parameterDescriptors: [baseIdentifierParameterDescriptor, serialComponentParameterDescriptor]
|
|
206
206
|
})
|
|
207
207
|
concatenate(baseIdentifier: string, matrixSerialComponents: Matrix<string>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -216,17 +216,15 @@ export abstract class SerializableNumericIdentifierCreatorProxy<ThrowError exten
|
|
|
216
216
|
const referenceParameterDescriptor: ParameterDescriptor = {
|
|
217
217
|
name: "reference",
|
|
218
218
|
type: Types.String,
|
|
219
|
-
|
|
219
|
+
multiplicity: Multiplicities.Matrix,
|
|
220
220
|
isRequired: true
|
|
221
221
|
};
|
|
222
222
|
|
|
223
|
-
@proxy.describeClass(true
|
|
224
|
-
namespace: "GS1"
|
|
225
|
-
})
|
|
223
|
+
@proxy.describeClass(true)
|
|
226
224
|
export abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonNumericIdentifierType, NonNumericIdentifierValidation, NonNumericIdentifierCreator> {
|
|
227
225
|
@proxy.describeMethod({
|
|
228
226
|
type: Types.String,
|
|
229
|
-
|
|
227
|
+
multiplicity: Multiplicities.Matrix,
|
|
230
228
|
parameterDescriptors: [prefixDefinitionGS1UPCParameterDescriptor, referenceParameterDescriptor]
|
|
231
229
|
})
|
|
232
230
|
create(prefixDefinition: Matrix<unknown>, matrixReferences: Matrix<string>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { type ParameterDescriptor, Types } from "../descriptor.js";
|
|
1
|
+
import { Multiplicities, type ParameterDescriptor, Types } from "../descriptor.js";
|
|
2
2
|
|
|
3
3
|
export const identifierTypeParameterDescriptor: ParameterDescriptor = {
|
|
4
4
|
name: "identifierType",
|
|
5
5
|
type: Types.String,
|
|
6
|
-
|
|
6
|
+
multiplicity: Multiplicities.Singleton,
|
|
7
7
|
isRequired: true
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export const identifierParameterDescriptor: ParameterDescriptor = {
|
|
11
11
|
name: "identifier",
|
|
12
12
|
type: Types.String,
|
|
13
|
-
|
|
13
|
+
multiplicity: Multiplicities.Matrix,
|
|
14
14
|
isRequired: true
|
|
15
15
|
};
|
|
@@ -11,7 +11,7 @@ import type {
|
|
|
11
11
|
SerializableNumericIdentifierType
|
|
12
12
|
} from "@aidc-toolkit/gs1";
|
|
13
13
|
import type { AppExtension } from "../app-extension.js";
|
|
14
|
-
import { type ExtendsParameterDescriptor, Types } from "../descriptor.js";
|
|
14
|
+
import { type ExtendsParameterDescriptor, Multiplicities, Types } from "../descriptor.js";
|
|
15
15
|
import { proxy } from "../proxy.js";
|
|
16
16
|
import type { ErrorExtends, Matrix, MatrixResult } from "../type.js";
|
|
17
17
|
import { exclusionAllNumericParameterDescriptor } from "../utility/character-set-descriptor.js";
|
|
@@ -27,9 +27,14 @@ const validateIdentifierParameterDescriptor: ExtendsParameterDescriptor = {
|
|
|
27
27
|
const splitIdentifierParameterDescriptor: ExtendsParameterDescriptor = {
|
|
28
28
|
extendsDescriptor: identifierParameterDescriptor,
|
|
29
29
|
sortOrder: 1,
|
|
30
|
-
name: "splitIdentifier"
|
|
30
|
+
name: "splitIdentifier",
|
|
31
|
+
multiplicity: Multiplicities.Array
|
|
31
32
|
};
|
|
32
33
|
|
|
34
|
+
@proxy.describeClass(true, {
|
|
35
|
+
namespace: "GS1",
|
|
36
|
+
category: "identifierValidation"
|
|
37
|
+
})
|
|
33
38
|
abstract class IdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt, TIdentifierType extends IdentifierType> extends StringProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
34
39
|
readonly #validator: IdentifierTypeValidator<TIdentifierType>;
|
|
35
40
|
|
|
@@ -44,13 +49,11 @@ abstract class IdentifierValidatorProxy<ThrowError extends boolean, TError exten
|
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
|
-
@proxy.describeClass(true
|
|
48
|
-
namespace: "GS1"
|
|
49
|
-
})
|
|
52
|
+
@proxy.describeClass(true)
|
|
50
53
|
abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, TNumericIdentifierType> {
|
|
51
54
|
@proxy.describeMethod({
|
|
52
55
|
type: Types.String,
|
|
53
|
-
|
|
56
|
+
multiplicity: Multiplicities.Matrix,
|
|
54
57
|
parameterDescriptors: [validateIdentifierParameterDescriptor]
|
|
55
58
|
})
|
|
56
59
|
validate(matrixIdentifiers: Matrix<string>): Matrix<string> {
|
|
@@ -59,7 +62,7 @@ abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TErro
|
|
|
59
62
|
|
|
60
63
|
@proxy.describeMethod({
|
|
61
64
|
type: Types.String,
|
|
62
|
-
|
|
65
|
+
multiplicity: Multiplicities.Matrix,
|
|
63
66
|
parameterDescriptors: [validateIdentifierParameterDescriptor]
|
|
64
67
|
})
|
|
65
68
|
isValid(matrixIdentifiers: Matrix<string>): Matrix<boolean> {
|
|
@@ -76,13 +79,11 @@ abstract class NonGTINNumericIdentifierValidatorProxy<ThrowError extends boolean
|
|
|
76
79
|
export abstract class NonSerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType> {
|
|
77
80
|
}
|
|
78
81
|
|
|
79
|
-
@proxy.describeClass(true
|
|
80
|
-
namespace: "GS1"
|
|
81
|
-
})
|
|
82
|
+
@proxy.describeClass(true)
|
|
82
83
|
export abstract class SerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, SerializableNumericIdentifierType> {
|
|
83
84
|
@proxy.describeMethod({
|
|
84
85
|
type: Types.String,
|
|
85
|
-
|
|
86
|
+
multiplicity: Multiplicities.Matrix,
|
|
86
87
|
parameterDescriptors: [splitIdentifierParameterDescriptor]
|
|
87
88
|
})
|
|
88
89
|
split(matrixIdentifiers: Matrix<string>): MatrixResult<string, ThrowError, TError> {
|
|
@@ -94,13 +95,11 @@ export abstract class SerializableNumericIdentifierValidatorProxy<ThrowError ext
|
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
@proxy.describeClass(true
|
|
98
|
-
namespace: "GS1"
|
|
99
|
-
})
|
|
98
|
+
@proxy.describeClass(true)
|
|
100
99
|
export abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonNumericIdentifierType> {
|
|
101
100
|
@proxy.describeMethod({
|
|
102
101
|
type: Types.String,
|
|
103
|
-
|
|
102
|
+
multiplicity: Multiplicities.Matrix,
|
|
104
103
|
parameterDescriptors: [validateIdentifierParameterDescriptor, exclusionAllNumericParameterDescriptor]
|
|
105
104
|
})
|
|
106
105
|
validate(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): Matrix<string> {
|
|
@@ -111,7 +110,7 @@ export abstract class NonNumericIdentifierValidatorProxy<ThrowError extends bool
|
|
|
111
110
|
|
|
112
111
|
@proxy.describeMethod({
|
|
113
112
|
type: Types.String,
|
|
114
|
-
|
|
113
|
+
multiplicity: Multiplicities.Matrix,
|
|
115
114
|
parameterDescriptors: [validateIdentifierParameterDescriptor, exclusionAllNumericParameterDescriptor]
|
|
116
115
|
})
|
|
117
116
|
isValid(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): Matrix<boolean> {
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from "./identifier-creator-proxy.js";
|
|
10
10
|
|
|
11
11
|
@proxy.describeClass(false, {
|
|
12
|
-
namespace: "GS1",
|
|
13
12
|
methodInfix: "GLN"
|
|
14
13
|
})
|
|
15
14
|
export class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
@@ -19,7 +18,6 @@ export class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExt
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@proxy.describeClass(false, {
|
|
22
|
-
namespace: "GS1",
|
|
23
21
|
methodInfix: "SSCC"
|
|
24
22
|
})
|
|
25
23
|
export class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
@@ -29,7 +27,6 @@ export class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
@proxy.describeClass(false, {
|
|
32
|
-
namespace: "GS1",
|
|
33
30
|
methodInfix: "GRAI"
|
|
34
31
|
})
|
|
35
32
|
export class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -39,7 +36,6 @@ export class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
@proxy.describeClass(false, {
|
|
42
|
-
namespace: "GS1",
|
|
43
39
|
methodInfix: "GIAI"
|
|
44
40
|
})
|
|
45
41
|
export class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -49,7 +45,6 @@ export class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
@proxy.describeClass(false, {
|
|
52
|
-
namespace: "GS1",
|
|
53
48
|
methodInfix: "GSRN"
|
|
54
49
|
})
|
|
55
50
|
export class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
@@ -59,7 +54,6 @@ export class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
@proxy.describeClass(false, {
|
|
62
|
-
namespace: "GS1",
|
|
63
57
|
methodInfix: "GDTI"
|
|
64
58
|
})
|
|
65
59
|
export class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -69,7 +63,6 @@ export class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
@proxy.describeClass(false, {
|
|
72
|
-
namespace: "GS1",
|
|
73
66
|
methodInfix: "GINC"
|
|
74
67
|
})
|
|
75
68
|
export class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -79,7 +72,6 @@ export class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
@proxy.describeClass(false, {
|
|
82
|
-
namespace: "GS1",
|
|
83
75
|
methodInfix: "GSIN"
|
|
84
76
|
})
|
|
85
77
|
export class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
@@ -89,7 +81,6 @@ export class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
89
81
|
}
|
|
90
82
|
|
|
91
83
|
@proxy.describeClass(false, {
|
|
92
|
-
namespace: "GS1",
|
|
93
84
|
methodInfix: "GCN"
|
|
94
85
|
})
|
|
95
86
|
export class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -99,7 +90,6 @@ export class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExt
|
|
|
99
90
|
}
|
|
100
91
|
|
|
101
92
|
@proxy.describeClass(false, {
|
|
102
|
-
namespace: "GS1",
|
|
103
93
|
methodInfix: "CPID"
|
|
104
94
|
})
|
|
105
95
|
export class CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -109,7 +99,6 @@ export class CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorEx
|
|
|
109
99
|
}
|
|
110
100
|
|
|
111
101
|
@proxy.describeClass(false, {
|
|
112
|
-
namespace: "GS1",
|
|
113
102
|
methodInfix: "GMN"
|
|
114
103
|
})
|
|
115
104
|
export class GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from "./identifier-validator-proxy.js";
|
|
10
10
|
|
|
11
11
|
@proxy.describeClass(false, {
|
|
12
|
-
namespace: "GS1",
|
|
13
12
|
methodInfix: "GLN"
|
|
14
13
|
})
|
|
15
14
|
export class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -19,7 +18,6 @@ export class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorE
|
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@proxy.describeClass(false, {
|
|
22
|
-
namespace: "GS1",
|
|
23
21
|
methodInfix: "SSCC"
|
|
24
22
|
})
|
|
25
23
|
export class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -29,7 +27,6 @@ export class SSCCValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
@proxy.describeClass(false, {
|
|
32
|
-
namespace: "GS1",
|
|
33
30
|
methodInfix: "GRAI"
|
|
34
31
|
})
|
|
35
32
|
export class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -39,7 +36,6 @@ export class GRAIValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
@proxy.describeClass(false, {
|
|
42
|
-
namespace: "GS1",
|
|
43
39
|
methodInfix: "GIAI"
|
|
44
40
|
})
|
|
45
41
|
export class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -49,7 +45,6 @@ export class GIAIValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
@proxy.describeClass(false, {
|
|
52
|
-
namespace: "GS1",
|
|
53
48
|
methodInfix: "GSRN"
|
|
54
49
|
})
|
|
55
50
|
export class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -59,7 +54,6 @@ export class GSRNValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
@proxy.describeClass(false, {
|
|
62
|
-
namespace: "GS1",
|
|
63
57
|
methodInfix: "GDTI"
|
|
64
58
|
})
|
|
65
59
|
export class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -69,7 +63,6 @@ export class GDTIValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
@proxy.describeClass(false, {
|
|
72
|
-
namespace: "GS1",
|
|
73
66
|
methodInfix: "GINC"
|
|
74
67
|
})
|
|
75
68
|
export class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -79,7 +72,6 @@ export class GINCValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
@proxy.describeClass(false, {
|
|
82
|
-
namespace: "GS1",
|
|
83
75
|
methodInfix: "GSIN"
|
|
84
76
|
})
|
|
85
77
|
export class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -89,7 +81,6 @@ export class GSINValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
89
81
|
}
|
|
90
82
|
|
|
91
83
|
@proxy.describeClass(false, {
|
|
92
|
-
namespace: "GS1",
|
|
93
84
|
methodInfix: "GCN"
|
|
94
85
|
})
|
|
95
86
|
export class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -99,7 +90,6 @@ export class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorE
|
|
|
99
90
|
}
|
|
100
91
|
|
|
101
92
|
@proxy.describeClass(false, {
|
|
102
|
-
namespace: "GS1",
|
|
103
93
|
methodInfix: "CPID"
|
|
104
94
|
})
|
|
105
95
|
export class CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -109,7 +99,6 @@ export class CPIDValidatorProxy<ThrowError extends boolean, TError extends Error
|
|
|
109
99
|
}
|
|
110
100
|
|
|
111
101
|
@proxy.describeClass(false, {
|
|
112
|
-
namespace: "GS1",
|
|
113
102
|
methodInfix: "GMN"
|
|
114
103
|
})
|
|
115
104
|
export class GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type ExtendsParameterDescriptor, type ParameterDescriptor, Types } from "../descriptor.js";
|
|
1
|
+
import { type ExtendsParameterDescriptor, Multiplicities, type ParameterDescriptor, Types } from "../descriptor.js";
|
|
2
2
|
|
|
3
3
|
const prefixDefinitionParameterDescriptor: ParameterDescriptor = {
|
|
4
4
|
name: "prefixDefinition",
|
|
5
5
|
type: Types.Any,
|
|
6
|
-
|
|
6
|
+
multiplicity: Multiplicities.SingletonArray,
|
|
7
7
|
isRequired: true
|
|
8
8
|
};
|
|
9
9
|
|