@aidc-toolkit/app-extension 1.0.31-beta → 1.0.33-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 +1 -3709
- package/dist/index.d.cts +607 -333
- package/dist/index.d.ts +607 -333
- package/dist/index.js +1 -3683
- package/package.json +12 -13
- package/src/app-extension.ts +141 -93
- package/src/app-helper-proxy.ts +326 -0
- package/src/descriptor.ts +75 -7
- package/src/generator/generator.ts +118 -96
- package/src/generator/locale-resources-generator.ts +56 -42
- package/src/gs1/character-set-proxy.ts +8 -8
- package/src/gs1/check-proxy.ts +26 -25
- package/src/gs1/gtin-creator-proxy.ts +14 -28
- package/src/gs1/gtin-descriptor.ts +2 -23
- package/src/gs1/gtin-validator-proxy.ts +45 -48
- package/src/gs1/identifier-creator-proxy.ts +63 -53
- package/src/gs1/identifier-descriptor.ts +15 -0
- package/src/gs1/identifier-type.ts +37 -0
- package/src/gs1/identifier-validator-proxy.ts +59 -27
- package/src/gs1/index.ts +8 -0
- package/src/gs1/non-gtin-creator-proxy.ts +22 -33
- package/src/gs1/non-gtin-validator-proxy.ts +22 -33
- package/src/gs1/prefix-definition-descriptor.ts +2 -2
- package/src/gs1/prefix-manager-proxy.ts +164 -9
- package/src/gs1/service-proxy.ts +57 -0
- package/src/gs1/variable-measure-proxy.ts +62 -0
- package/src/index.ts +6 -1
- package/src/lib-proxy.ts +112 -70
- package/src/locale/en/locale-resources.ts +173 -47
- package/src/locale/fr/locale-resources.ts +173 -47
- package/src/locale/i18n.ts +8 -10
- package/src/locale/i18next.d.ts +2 -0
- package/src/proxy.ts +140 -140
- package/src/streaming.ts +13 -0
- package/src/type.ts +8 -7
- package/src/utility/character-set-descriptor.ts +2 -2
- package/src/utility/character-set-proxy.ts +39 -38
- package/src/utility/reg-exp-proxy.ts +12 -11
- package/src/utility/string-descriptor.ts +2 -2
- package/src/utility/string-proxy.ts +7 -7
- package/src/utility/transformer-descriptor.ts +5 -5
- package/src/utility/transformer-proxy.ts +25 -18
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/src/app-utility-proxy.ts +0 -273
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type IdentifierType, IdentifierTypes } from "@aidc-toolkit/gs1";
|
|
2
|
+
import { i18nextAppExtension } from "../locale/i18n.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Determine if an identifier type is valid.
|
|
6
|
+
*
|
|
7
|
+
* @param identifierType
|
|
8
|
+
* Identifier type.
|
|
9
|
+
*
|
|
10
|
+
* @returns
|
|
11
|
+
* True if identifier type is valid.
|
|
12
|
+
*/
|
|
13
|
+
export function isIdentifierType(identifierType: string): identifierType is IdentifierType {
|
|
14
|
+
return identifierType in IdentifierTypes;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Validate an identifier type and return it normalized.
|
|
19
|
+
*
|
|
20
|
+
* @param identifierType
|
|
21
|
+
* Identifier type.
|
|
22
|
+
*
|
|
23
|
+
* @returns
|
|
24
|
+
* Normalized identifier type.
|
|
25
|
+
*/
|
|
26
|
+
export function validateIdentifierType(identifierType: string): IdentifierType {
|
|
27
|
+
// Ignore case.
|
|
28
|
+
const upperIdentifierType = identifierType.toUpperCase();
|
|
29
|
+
|
|
30
|
+
if (!isIdentifierType(upperIdentifierType)) {
|
|
31
|
+
throw new RangeError(i18nextAppExtension.t("ServiceProxy.invalidIdentifierType", {
|
|
32
|
+
identifierType
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return upperIdentifierType;
|
|
37
|
+
}
|
|
@@ -11,18 +11,12 @@ import type {
|
|
|
11
11
|
SerializableNumericIdentifierType
|
|
12
12
|
} from "@aidc-toolkit/gs1";
|
|
13
13
|
import type { AppExtension } from "../app-extension.js";
|
|
14
|
-
import { type ExtendsParameterDescriptor,
|
|
14
|
+
import { type ExtendsParameterDescriptor, Multiplicities, Types } from "../descriptor.js";
|
|
15
15
|
import { proxy } from "../proxy.js";
|
|
16
|
-
import type { ErrorExtends, Matrix,
|
|
16
|
+
import type { ErrorExtends, Matrix, MatrixResult } from "../type.js";
|
|
17
17
|
import { exclusionAllNumericParameterDescriptor } from "../utility/character-set-descriptor.js";
|
|
18
18
|
import { StringProxy } from "../utility/string-proxy.js";
|
|
19
|
-
|
|
20
|
-
export const identifierParameterDescriptor: ParameterDescriptor = {
|
|
21
|
-
name: "identifier",
|
|
22
|
-
type: Types.String,
|
|
23
|
-
isMatrix: true,
|
|
24
|
-
isRequired: true
|
|
25
|
-
};
|
|
19
|
+
import { identifierParameterDescriptor } from "./identifier-descriptor.js";
|
|
26
20
|
|
|
27
21
|
const validateIdentifierParameterDescriptor: ExtendsParameterDescriptor = {
|
|
28
22
|
extendsDescriptor: identifierParameterDescriptor,
|
|
@@ -30,10 +24,21 @@ const validateIdentifierParameterDescriptor: ExtendsParameterDescriptor = {
|
|
|
30
24
|
name: "validateIdentifier"
|
|
31
25
|
};
|
|
32
26
|
|
|
33
|
-
|
|
27
|
+
const splitIdentifierParameterDescriptor: ExtendsParameterDescriptor = {
|
|
28
|
+
extendsDescriptor: identifierParameterDescriptor,
|
|
29
|
+
sortOrder: 1,
|
|
30
|
+
name: "splitIdentifier",
|
|
31
|
+
multiplicity: Multiplicities.Array
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
@proxy.describeClass(true, {
|
|
35
|
+
namespace: "GS1",
|
|
36
|
+
category: "identifierValidation"
|
|
37
|
+
})
|
|
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
|
|
|
36
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, validator: IdentifierTypeValidator<TIdentifierType>) {
|
|
41
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>, validator: IdentifierTypeValidator<TIdentifierType>) {
|
|
37
42
|
super(appExtension);
|
|
38
43
|
|
|
39
44
|
this.#validator = validator;
|
|
@@ -44,44 +49,71 @@ abstract class IdentifierValidatorProxy<ThrowError extends boolean, TError exten
|
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
|
-
@proxy.describeClass(true
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierType> {
|
|
52
|
+
@proxy.describeClass(true)
|
|
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
|
-
validate(matrixIdentifiers: Matrix<string>):
|
|
59
|
+
validate(matrixIdentifiers: Matrix<string>): Matrix<string> {
|
|
57
60
|
return this.validateString(this.validator, matrixIdentifiers);
|
|
58
61
|
}
|
|
62
|
+
|
|
63
|
+
@proxy.describeMethod({
|
|
64
|
+
type: Types.String,
|
|
65
|
+
multiplicity: Multiplicities.Matrix,
|
|
66
|
+
parameterDescriptors: [validateIdentifierParameterDescriptor]
|
|
67
|
+
})
|
|
68
|
+
isValid(matrixIdentifiers: Matrix<string>): Matrix<boolean> {
|
|
69
|
+
return this.isValidString(this.validate(matrixIdentifiers));
|
|
70
|
+
}
|
|
59
71
|
}
|
|
60
72
|
|
|
61
|
-
export abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINType> {
|
|
73
|
+
export abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, GTINType> {
|
|
62
74
|
}
|
|
63
75
|
|
|
64
|
-
abstract class NonGTINNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType = NonGTINNumericIdentifierType> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType> {
|
|
76
|
+
abstract class NonGTINNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt, TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType = NonGTINNumericIdentifierType> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, TNonGTINNumericIdentifierType> {
|
|
65
77
|
}
|
|
66
78
|
|
|
67
|
-
export abstract class NonSerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType> {
|
|
79
|
+
export abstract class NonSerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType> {
|
|
68
80
|
}
|
|
69
81
|
|
|
70
|
-
|
|
82
|
+
@proxy.describeClass(true)
|
|
83
|
+
export abstract class SerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, SerializableNumericIdentifierType> {
|
|
84
|
+
@proxy.describeMethod({
|
|
85
|
+
type: Types.String,
|
|
86
|
+
multiplicity: Multiplicities.Matrix,
|
|
87
|
+
parameterDescriptors: [splitIdentifierParameterDescriptor]
|
|
88
|
+
})
|
|
89
|
+
split(matrixIdentifiers: Matrix<string>): MatrixResult<string, ThrowError, TError> {
|
|
90
|
+
return this.arrayResult(matrixIdentifiers, (identifier) => {
|
|
91
|
+
const serializableNumericIdentifierSplit = this.validator.split(identifier);
|
|
92
|
+
|
|
93
|
+
return [serializableNumericIdentifierSplit.baseIdentifier, serializableNumericIdentifierSplit.serialComponent];
|
|
94
|
+
});
|
|
95
|
+
}
|
|
71
96
|
}
|
|
72
97
|
|
|
73
|
-
@proxy.describeClass(true
|
|
74
|
-
|
|
75
|
-
})
|
|
76
|
-
export abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierType> {
|
|
98
|
+
@proxy.describeClass(true)
|
|
99
|
+
export abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonNumericIdentifierType> {
|
|
77
100
|
@proxy.describeMethod({
|
|
78
101
|
type: Types.String,
|
|
79
|
-
|
|
102
|
+
multiplicity: Multiplicities.Matrix,
|
|
80
103
|
parameterDescriptors: [validateIdentifierParameterDescriptor, exclusionAllNumericParameterDescriptor]
|
|
81
104
|
})
|
|
82
|
-
validate(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>):
|
|
105
|
+
validate(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): Matrix<string> {
|
|
83
106
|
return this.validateString(this.validator, matrixIdentifiers, {
|
|
84
107
|
exclusion: exclusion ?? undefined
|
|
85
108
|
} satisfies NonNumericIdentifierValidation);
|
|
86
109
|
}
|
|
110
|
+
|
|
111
|
+
@proxy.describeMethod({
|
|
112
|
+
type: Types.String,
|
|
113
|
+
multiplicity: Multiplicities.Matrix,
|
|
114
|
+
parameterDescriptors: [validateIdentifierParameterDescriptor, exclusionAllNumericParameterDescriptor]
|
|
115
|
+
})
|
|
116
|
+
isValid(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): Matrix<boolean> {
|
|
117
|
+
return this.isValidString(this.validate(matrixIdentifiers, exclusion));
|
|
118
|
+
}
|
|
87
119
|
}
|
package/src/gs1/index.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export * from "./character-set-proxy.js";
|
|
2
|
+
|
|
2
3
|
export * from "./check-proxy.js";
|
|
4
|
+
|
|
3
5
|
export * from "./gtin-validator-proxy.js";
|
|
4
6
|
export * from "./non-gtin-validator-proxy.js";
|
|
7
|
+
|
|
5
8
|
export * from "./prefix-manager-proxy.js";
|
|
9
|
+
|
|
6
10
|
export * from "./gtin-creator-proxy.js";
|
|
7
11
|
export * from "./non-gtin-creator-proxy.js";
|
|
12
|
+
|
|
13
|
+
export * from "./variable-measure-proxy.js";
|
|
14
|
+
|
|
15
|
+
export * from "./service-proxy.js";
|
|
@@ -9,111 +9,100 @@ 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
|
-
export class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
16
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
14
|
+
export class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
15
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
17
16
|
super(appExtension, prefixManager => prefixManager.glnCreator);
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@proxy.describeClass(false, {
|
|
22
|
-
namespace: "GS1",
|
|
23
21
|
methodInfix: "SSCC"
|
|
24
22
|
})
|
|
25
|
-
export class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
26
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
23
|
+
export class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
24
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
27
25
|
super(appExtension, prefixManager => prefixManager.ssccCreator);
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
@proxy.describeClass(false, {
|
|
32
|
-
namespace: "GS1",
|
|
33
30
|
methodInfix: "GRAI"
|
|
34
31
|
})
|
|
35
|
-
export class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
36
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
32
|
+
export class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
33
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
37
34
|
super(appExtension, prefixManager => prefixManager.graiCreator);
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
@proxy.describeClass(false, {
|
|
42
|
-
namespace: "GS1",
|
|
43
39
|
methodInfix: "GIAI"
|
|
44
40
|
})
|
|
45
|
-
export class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
46
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
41
|
+
export class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
42
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
47
43
|
super(appExtension, prefixManager => prefixManager.giaiCreator);
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
@proxy.describeClass(false, {
|
|
52
|
-
namespace: "GS1",
|
|
53
48
|
methodInfix: "GSRN"
|
|
54
49
|
})
|
|
55
|
-
export class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
56
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
50
|
+
export class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
51
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
57
52
|
super(appExtension, prefixManager => prefixManager.gsrnCreator);
|
|
58
53
|
}
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
@proxy.describeClass(false, {
|
|
62
|
-
namespace: "GS1",
|
|
63
57
|
methodInfix: "GDTI"
|
|
64
58
|
})
|
|
65
|
-
export class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
66
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
59
|
+
export class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
60
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
67
61
|
super(appExtension, prefixManager => prefixManager.gdtiCreator);
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
@proxy.describeClass(false, {
|
|
72
|
-
namespace: "GS1",
|
|
73
66
|
methodInfix: "GINC"
|
|
74
67
|
})
|
|
75
|
-
export class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
76
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
68
|
+
export class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
69
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
77
70
|
super(appExtension, prefixManager => prefixManager.gincCreator);
|
|
78
71
|
}
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
@proxy.describeClass(false, {
|
|
82
|
-
namespace: "GS1",
|
|
83
75
|
methodInfix: "GSIN"
|
|
84
76
|
})
|
|
85
|
-
export class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
86
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
77
|
+
export class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
|
|
78
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
87
79
|
super(appExtension, prefixManager => prefixManager.gsinCreator);
|
|
88
80
|
}
|
|
89
81
|
}
|
|
90
82
|
|
|
91
83
|
@proxy.describeClass(false, {
|
|
92
|
-
namespace: "GS1",
|
|
93
84
|
methodInfix: "GCN"
|
|
94
85
|
})
|
|
95
|
-
export class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
96
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
86
|
+
export class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
87
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
97
88
|
super(appExtension, prefixManager => prefixManager.gcnCreator);
|
|
98
89
|
}
|
|
99
90
|
}
|
|
100
91
|
|
|
101
92
|
@proxy.describeClass(false, {
|
|
102
|
-
namespace: "GS1",
|
|
103
93
|
methodInfix: "CPID"
|
|
104
94
|
})
|
|
105
|
-
export class CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
106
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
95
|
+
export class CPIDCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
96
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
107
97
|
super(appExtension, prefixManager => prefixManager.cpidCreator);
|
|
108
98
|
}
|
|
109
99
|
}
|
|
110
100
|
|
|
111
101
|
@proxy.describeClass(false, {
|
|
112
|
-
namespace: "GS1",
|
|
113
102
|
methodInfix: "GMN"
|
|
114
103
|
})
|
|
115
|
-
export class GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
116
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
104
|
+
export class GMNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
105
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
117
106
|
super(appExtension, prefixManager => prefixManager.gmnCreator);
|
|
118
107
|
}
|
|
119
108
|
}
|
|
@@ -9,111 +9,100 @@ 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
|
-
export class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
16
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
14
|
+
export class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
15
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
17
16
|
super(appExtension, IdentifierValidators.GLN);
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
@proxy.describeClass(false, {
|
|
22
|
-
namespace: "GS1",
|
|
23
21
|
methodInfix: "SSCC"
|
|
24
22
|
})
|
|
25
|
-
export class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
26
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
23
|
+
export class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
24
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
27
25
|
super(appExtension, IdentifierValidators.SSCC);
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
@proxy.describeClass(false, {
|
|
32
|
-
namespace: "GS1",
|
|
33
30
|
methodInfix: "GRAI"
|
|
34
31
|
})
|
|
35
|
-
export class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
36
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
32
|
+
export class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
33
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
37
34
|
super(appExtension, IdentifierValidators.GRAI);
|
|
38
35
|
}
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
@proxy.describeClass(false, {
|
|
42
|
-
namespace: "GS1",
|
|
43
39
|
methodInfix: "GIAI"
|
|
44
40
|
})
|
|
45
|
-
export class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
46
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
41
|
+
export class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
42
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
47
43
|
super(appExtension, IdentifierValidators.GIAI);
|
|
48
44
|
}
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
@proxy.describeClass(false, {
|
|
52
|
-
namespace: "GS1",
|
|
53
48
|
methodInfix: "GSRN"
|
|
54
49
|
})
|
|
55
|
-
export class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
56
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
50
|
+
export class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
51
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
57
52
|
super(appExtension, IdentifierValidators.GSRN);
|
|
58
53
|
}
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
@proxy.describeClass(false, {
|
|
62
|
-
namespace: "GS1",
|
|
63
57
|
methodInfix: "GDTI"
|
|
64
58
|
})
|
|
65
|
-
export class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
66
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
59
|
+
export class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
60
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
67
61
|
super(appExtension, IdentifierValidators.GDTI);
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
@proxy.describeClass(false, {
|
|
72
|
-
namespace: "GS1",
|
|
73
66
|
methodInfix: "GINC"
|
|
74
67
|
})
|
|
75
|
-
export class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
76
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
68
|
+
export class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
69
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
77
70
|
super(appExtension, IdentifierValidators.GINC);
|
|
78
71
|
}
|
|
79
72
|
}
|
|
80
73
|
|
|
81
74
|
@proxy.describeClass(false, {
|
|
82
|
-
namespace: "GS1",
|
|
83
75
|
methodInfix: "GSIN"
|
|
84
76
|
})
|
|
85
|
-
export class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
86
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
77
|
+
export class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
78
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
87
79
|
super(appExtension, IdentifierValidators.GSIN);
|
|
88
80
|
}
|
|
89
81
|
}
|
|
90
82
|
|
|
91
83
|
@proxy.describeClass(false, {
|
|
92
|
-
namespace: "GS1",
|
|
93
84
|
methodInfix: "GCN"
|
|
94
85
|
})
|
|
95
|
-
export class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
96
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
86
|
+
export class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
87
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
97
88
|
super(appExtension, IdentifierValidators.GCN);
|
|
98
89
|
}
|
|
99
90
|
}
|
|
100
91
|
|
|
101
92
|
@proxy.describeClass(false, {
|
|
102
|
-
namespace: "GS1",
|
|
103
93
|
methodInfix: "CPID"
|
|
104
94
|
})
|
|
105
|
-
export class CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
106
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
95
|
+
export class CPIDValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
96
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
107
97
|
super(appExtension, IdentifierValidators.CPID);
|
|
108
98
|
}
|
|
109
99
|
}
|
|
110
100
|
|
|
111
101
|
@proxy.describeClass(false, {
|
|
112
|
-
namespace: "GS1",
|
|
113
102
|
methodInfix: "GMN"
|
|
114
103
|
})
|
|
115
|
-
export class GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
|
|
116
|
-
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) {
|
|
104
|
+
export class GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TStreamingInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt> {
|
|
105
|
+
constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TStreamingInvocationContext, TBigInt>) {
|
|
117
106
|
super(appExtension, IdentifierValidators.GMN);
|
|
118
107
|
}
|
|
119
108
|
}
|
|
@@ -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
|
|