@aidc-toolkit/gs1 1.0.25-beta → 1.0.27-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/abstract-identifier-creator.d.ts +75 -0
- package/dist/abstract-identifier-creator.d.ts.map +1 -0
- package/dist/abstract-identifier-creator.js +79 -0
- package/dist/abstract-identifier-creator.js.map +1 -0
- package/dist/abstract-non-gtin-numeric-identifier-creator.d.ts +42 -0
- package/dist/abstract-non-gtin-numeric-identifier-creator.d.ts.map +1 -0
- package/dist/abstract-non-gtin-numeric-identifier-creator.js +40 -0
- package/dist/abstract-non-gtin-numeric-identifier-creator.js.map +1 -0
- package/dist/abstract-numeric-identifier-creator.d.ts +43 -0
- package/dist/abstract-numeric-identifier-creator.d.ts.map +1 -0
- package/dist/abstract-numeric-identifier-creator.js +160 -0
- package/dist/abstract-numeric-identifier-creator.js.map +1 -0
- package/dist/character-set.d.ts +27 -0
- package/dist/character-set.d.ts.map +1 -0
- package/dist/character-set.js +50 -0
- package/dist/character-set.js.map +1 -0
- package/dist/check.d.ts +81 -0
- package/dist/check.d.ts.map +1 -0
- package/dist/check.js +218 -0
- package/dist/check.js.map +1 -0
- package/dist/content-character-set-creators.d.ts +4 -0
- package/dist/content-character-set-creators.d.ts.map +1 -0
- package/dist/content-character-set-creators.js +9 -0
- package/dist/content-character-set-creators.js.map +1 -0
- package/dist/content-character-set.d.ts +26 -0
- package/dist/content-character-set.d.ts.map +1 -0
- package/dist/content-character-set.js +18 -0
- package/dist/content-character-set.js.map +1 -0
- package/dist/gtin-creator.d.ts +64 -0
- package/dist/gtin-creator.d.ts.map +1 -0
- package/dist/gtin-creator.js +156 -0
- package/dist/gtin-creator.js.map +1 -0
- package/dist/gtin-descriptor.d.ts +22 -0
- package/dist/gtin-descriptor.d.ts.map +1 -0
- package/dist/gtin-descriptor.js +2 -0
- package/dist/gtin-descriptor.js.map +1 -0
- package/dist/gtin-length.d.ts +64 -0
- package/dist/gtin-length.d.ts.map +1 -0
- package/dist/gtin-length.js +36 -0
- package/dist/gtin-length.js.map +1 -0
- package/dist/gtin-type.d.ts +26 -0
- package/dist/gtin-type.d.ts.map +1 -0
- package/dist/gtin-type.js +7 -0
- package/dist/gtin-type.js.map +1 -0
- package/dist/gtin-validator.d.ts +177 -0
- package/dist/gtin-validator.d.ts.map +1 -0
- package/dist/gtin-validator.js +443 -0
- package/dist/gtin-validator.js.map +1 -0
- package/dist/identifier-creator.d.ts +31 -0
- package/dist/identifier-creator.d.ts.map +1 -0
- package/dist/identifier-creator.js +2 -0
- package/dist/identifier-creator.js.map +1 -0
- package/dist/identifier-creators.d.ts +90 -0
- package/dist/identifier-creators.d.ts.map +1 -0
- package/dist/identifier-creators.js +74 -0
- package/dist/identifier-creators.js.map +1 -0
- package/dist/identifier-descriptor.d.ts +27 -0
- package/dist/identifier-descriptor.d.ts.map +1 -0
- package/dist/identifier-descriptor.js +2 -0
- package/dist/identifier-descriptor.js.map +1 -0
- package/dist/identifier-descriptors.d.ts +106 -0
- package/dist/identifier-descriptors.d.ts.map +1 -0
- package/dist/identifier-descriptors.js +262 -0
- package/dist/identifier-descriptors.js.map +1 -0
- package/dist/identifier-extension.d.ts +82 -0
- package/dist/identifier-extension.d.ts.map +1 -0
- package/dist/identifier-extension.js +79 -0
- package/dist/identifier-extension.js.map +1 -0
- package/dist/identifier-type.d.ts +62 -0
- package/dist/identifier-type.d.ts.map +1 -0
- package/dist/identifier-type.js +54 -0
- package/dist/identifier-type.js.map +1 -0
- package/dist/identifier-validator.d.ts +88 -0
- package/dist/identifier-validator.d.ts.map +1 -0
- package/dist/identifier-validator.js +110 -0
- package/dist/identifier-validator.js.map +1 -0
- package/dist/identifier-validators.d.ts +106 -0
- package/dist/identifier-validators.d.ts.map +1 -0
- package/dist/identifier-validators.js +153 -0
- package/dist/identifier-validators.js.map +1 -0
- package/dist/index.d.ts +58 -1949
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -4727
- package/dist/index.js.map +1 -1
- package/dist/leader-type.d.ts +26 -0
- package/dist/leader-type.d.ts.map +1 -0
- package/dist/leader-type.js +18 -0
- package/dist/leader-type.js.map +1 -0
- package/dist/locale/en/locale-resources.d.ts +42 -0
- package/dist/locale/en/locale-resources.d.ts.map +1 -0
- package/dist/locale/en/locale-resources.js +41 -0
- package/dist/locale/en/locale-resources.js.map +1 -0
- package/dist/locale/fr/locale-resources.d.ts +42 -0
- package/dist/locale/fr/locale-resources.d.ts.map +1 -0
- package/dist/locale/fr/locale-resources.js +41 -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/non-gtin-numeric-identifier-creator.d.ts +12 -0
- package/dist/non-gtin-numeric-identifier-creator.d.ts.map +1 -0
- package/dist/non-gtin-numeric-identifier-creator.js +2 -0
- package/dist/non-gtin-numeric-identifier-creator.js.map +1 -0
- package/dist/non-gtin-numeric-identifier-descriptor.d.ts +22 -0
- package/dist/non-gtin-numeric-identifier-descriptor.d.ts.map +1 -0
- package/dist/non-gtin-numeric-identifier-descriptor.js +2 -0
- package/dist/non-gtin-numeric-identifier-descriptor.js.map +1 -0
- package/dist/non-gtin-numeric-identifier-type.d.ts +26 -0
- package/dist/non-gtin-numeric-identifier-type.d.ts.map +1 -0
- package/dist/non-gtin-numeric-identifier-type.js +8 -0
- package/dist/non-gtin-numeric-identifier-type.js.map +1 -0
- package/dist/non-gtin-numeric-identifier-validator.d.ts +12 -0
- package/dist/non-gtin-numeric-identifier-validator.d.ts.map +1 -0
- package/dist/non-gtin-numeric-identifier-validator.js +10 -0
- package/dist/non-gtin-numeric-identifier-validator.js.map +1 -0
- package/dist/non-numeric-identifier-creator.d.ts +40 -0
- package/dist/non-numeric-identifier-creator.d.ts.map +1 -0
- package/dist/non-numeric-identifier-creator.js +82 -0
- package/dist/non-numeric-identifier-creator.js.map +1 -0
- package/dist/non-numeric-identifier-descriptor.d.ts +26 -0
- package/dist/non-numeric-identifier-descriptor.d.ts.map +1 -0
- package/dist/non-numeric-identifier-descriptor.js +2 -0
- package/dist/non-numeric-identifier-descriptor.js.map +1 -0
- package/dist/non-numeric-identifier-type.d.ts +26 -0
- package/dist/non-numeric-identifier-type.d.ts.map +1 -0
- package/dist/non-numeric-identifier-type.js +8 -0
- package/dist/non-numeric-identifier-type.js.map +1 -0
- package/dist/non-numeric-identifier-validator.d.ts +41 -0
- package/dist/non-numeric-identifier-validator.d.ts.map +1 -0
- package/dist/non-numeric-identifier-validator.js +69 -0
- package/dist/non-numeric-identifier-validator.js.map +1 -0
- package/dist/non-serializable-numeric-identifier-creator.d.ts +10 -0
- package/dist/non-serializable-numeric-identifier-creator.d.ts.map +1 -0
- package/dist/non-serializable-numeric-identifier-creator.js +8 -0
- package/dist/non-serializable-numeric-identifier-creator.js.map +1 -0
- package/dist/non-serializable-numeric-identifier-descriptor.d.ts +7 -0
- package/dist/non-serializable-numeric-identifier-descriptor.d.ts.map +1 -0
- package/dist/non-serializable-numeric-identifier-descriptor.js +2 -0
- package/dist/non-serializable-numeric-identifier-descriptor.js.map +1 -0
- package/dist/non-serializable-numeric-identifier-type.d.ts +26 -0
- package/dist/non-serializable-numeric-identifier-type.d.ts.map +1 -0
- package/dist/non-serializable-numeric-identifier-type.js +7 -0
- package/dist/non-serializable-numeric-identifier-type.js.map +1 -0
- package/dist/non-serializable-numeric-identifier-validator.d.ts +16 -0
- package/dist/non-serializable-numeric-identifier-validator.d.ts.map +1 -0
- package/dist/non-serializable-numeric-identifier-validator.js +17 -0
- package/dist/non-serializable-numeric-identifier-validator.js.map +1 -0
- package/dist/numeric-identifier-creator.d.ts +53 -0
- package/dist/numeric-identifier-creator.d.ts.map +1 -0
- package/dist/numeric-identifier-creator.js +2 -0
- package/dist/numeric-identifier-creator.js.map +1 -0
- package/dist/numeric-identifier-descriptor.d.ts +22 -0
- package/dist/numeric-identifier-descriptor.d.ts.map +1 -0
- package/dist/numeric-identifier-descriptor.js +2 -0
- package/dist/numeric-identifier-descriptor.js.map +1 -0
- package/dist/numeric-identifier-type.d.ts +26 -0
- package/dist/numeric-identifier-type.d.ts.map +1 -0
- package/dist/numeric-identifier-type.js +7 -0
- package/dist/numeric-identifier-type.js.map +1 -0
- package/dist/numeric-identifier-validator.d.ts +38 -0
- package/dist/numeric-identifier-validator.d.ts.map +1 -0
- package/dist/numeric-identifier-validator.js +61 -0
- package/dist/numeric-identifier-validator.js.map +1 -0
- package/dist/prefix-manager.d.ts +136 -0
- package/dist/prefix-manager.d.ts.map +1 -0
- package/dist/prefix-manager.js +339 -0
- package/dist/prefix-manager.js.map +1 -0
- package/dist/prefix-provider.d.ts +27 -0
- package/dist/prefix-provider.d.ts.map +1 -0
- package/dist/prefix-provider.js +2 -0
- package/dist/prefix-provider.js.map +1 -0
- package/dist/prefix-type.d.ts +26 -0
- package/dist/prefix-type.d.ts.map +1 -0
- package/dist/prefix-type.js +18 -0
- package/dist/prefix-type.js.map +1 -0
- package/dist/prefix-validator.d.ts +70 -0
- package/dist/prefix-validator.d.ts.map +1 -0
- package/dist/prefix-validator.js +208 -0
- package/dist/prefix-validator.js.map +1 -0
- package/dist/serializable-numeric-identifier-creator.d.ts +48 -0
- package/dist/serializable-numeric-identifier-creator.d.ts.map +1 -0
- package/dist/serializable-numeric-identifier-creator.js +93 -0
- package/dist/serializable-numeric-identifier-creator.js.map +1 -0
- package/dist/serializable-numeric-identifier-descriptor.d.ts +26 -0
- package/dist/serializable-numeric-identifier-descriptor.d.ts.map +1 -0
- package/dist/serializable-numeric-identifier-descriptor.js +2 -0
- package/dist/serializable-numeric-identifier-descriptor.js.map +1 -0
- package/dist/serializable-numeric-identifier-type.d.ts +26 -0
- package/dist/serializable-numeric-identifier-type.d.ts.map +1 -0
- package/dist/serializable-numeric-identifier-type.js +8 -0
- package/dist/serializable-numeric-identifier-type.js.map +1 -0
- package/dist/serializable-numeric-identifier-validator.d.ts +41 -0
- package/dist/serializable-numeric-identifier-validator.d.ts.map +1 -0
- package/dist/serializable-numeric-identifier-validator.js +78 -0
- package/dist/serializable-numeric-identifier-validator.js.map +1 -0
- package/package.json +11 -8
- package/src/abstract-identifier-creator.ts +157 -76
- package/src/abstract-non-gtin-numeric-identifier-creator.ts +86 -0
- package/src/abstract-numeric-identifier-creator.ts +205 -136
- package/src/check.ts +2 -2
- package/src/content-character-set-creators.ts +9 -0
- package/src/gtin-creator.ts +20 -19
- package/src/gtin-descriptor.ts +10 -4
- package/src/gtin-length.ts +61 -0
- package/src/gtin-type.ts +6 -37
- package/src/gtin-validator.ts +39 -46
- package/src/identifier-creator.ts +6 -6
- package/src/{creators.ts → identifier-creators.ts} +45 -31
- package/src/identifier-descriptor.ts +3 -3
- package/src/{descriptors.ts → identifier-descriptors.ts} +65 -63
- package/src/identifier-extension.ts +155 -0
- package/src/identifier-validator.ts +94 -11
- package/src/{validators.ts → identifier-validators.ts} +56 -41
- package/src/index.ts +50 -43
- package/src/leader-type.ts +29 -0
- package/src/locale/i18n.ts +3 -3
- package/src/locale/i18next.d.ts +1 -1
- package/src/non-gtin-numeric-identifier-creator.ts +8 -23
- package/src/non-gtin-numeric-identifier-descriptor.ts +4 -4
- package/src/non-gtin-numeric-identifier-type.ts +14 -3
- package/src/non-gtin-numeric-identifier-validator.ts +7 -15
- package/src/non-numeric-identifier-creator.ts +21 -16
- package/src/non-numeric-identifier-descriptor.ts +4 -4
- package/src/non-numeric-identifier-type.ts +14 -3
- package/src/non-numeric-identifier-validator.ts +12 -13
- package/src/non-serializable-numeric-identifier-creator.ts +12 -0
- package/src/non-serializable-numeric-identifier-descriptor.ts +7 -0
- package/src/non-serializable-numeric-identifier-type.ts +22 -0
- package/src/non-serializable-numeric-identifier-validator.ts +19 -0
- package/src/numeric-identifier-creator.ts +9 -8
- package/src/numeric-identifier-descriptor.ts +4 -3
- package/src/numeric-identifier-type.ts +17 -35
- package/src/numeric-identifier-validator.ts +62 -7
- package/src/prefix-manager.ts +79 -76
- package/src/prefix-provider.ts +1 -1
- package/src/prefix-validator.ts +3 -3
- package/src/serializable-numeric-identifier-creator.ts +13 -27
- package/src/serializable-numeric-identifier-descriptor.ts +4 -4
- package/src/serializable-numeric-identifier-type.ts +14 -5
- package/src/serializable-numeric-identifier-validator.ts +22 -21
- package/test/check.test.ts +1 -1
- package/test/creator.test.ts +5 -5
- package/test/gtin-creator.ts +10 -3
- package/test/gtin-validator.test.ts +10 -12
- package/test/identifier-creator.ts +12 -12
- package/test/identifier-validator.ts +1 -1
- package/test/non-gtin-numeric-identifier-creator.ts +3 -3
- package/test/non-gtin-numeric-identifier-validator.ts +8 -3
- package/test/non-numeric-identifier-creator.ts +1 -1
- package/test/non-numeric-identifier-validator.ts +3 -3
- package/test/non-serializable-numeric-identifier-creator.ts +64 -0
- package/test/non-serializable-numeric-identifier-validator.ts +6 -0
- package/test/numeric-identifier-creator.ts +9 -4
- package/test/numeric-identifier-validator.ts +2 -2
- package/test/prefix-manager.test.ts +2 -2
- package/test/serializable-numeric-identifier-creator.ts +2 -2
- package/test/serializable-numeric-identifier-validator.ts +3 -3
- package/test/setup.ts +1 -1
- package/test/sparse.test.ts +1 -1
- package/test/utility.ts +1 -1
- package/test/validator.test.ts +16 -15
- package/test/variable-measure-rcn.test.ts +24 -24
- package/tsconfig-config.json +4 -0
- package/tsconfig-src.json +8 -0
- package/tsconfig-test.json +9 -0
- package/tsconfig.json +12 -1
- package/tsup.config.ts +3 -2
- package/dist/index.cjs +0 -4813
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1949
- package/src/abstract-identifier-validator.ts +0 -140
- package/src/abstract-numeric-identifier-validator.ts +0 -69
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Leader type.
|
|
3
|
+
*/
|
|
4
|
+
export declare const LeaderTypes: {
|
|
5
|
+
/**
|
|
6
|
+
* No leader.
|
|
7
|
+
*/
|
|
8
|
+
readonly None: "None";
|
|
9
|
+
/**
|
|
10
|
+
* Indicator digit (GTIN only).
|
|
11
|
+
*/
|
|
12
|
+
readonly IndicatorDigit: "Indicator digit";
|
|
13
|
+
/**
|
|
14
|
+
* Extension digit (SSCC only).
|
|
15
|
+
*/
|
|
16
|
+
readonly ExtensionDigit: "Extension digit";
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Leader type key.
|
|
20
|
+
*/
|
|
21
|
+
export type LeaderTypeKey = keyof typeof LeaderTypes;
|
|
22
|
+
/**
|
|
23
|
+
* Leader type.
|
|
24
|
+
*/
|
|
25
|
+
export type LeaderType = typeof LeaderTypes[LeaderTypeKey];
|
|
26
|
+
//# sourceMappingURL=leader-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leader-type.d.ts","sourceRoot":"","sources":["../src/leader-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,WAAW;IACpB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEG,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,WAAW,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Leader type.
|
|
3
|
+
*/
|
|
4
|
+
export const LeaderTypes = {
|
|
5
|
+
/**
|
|
6
|
+
* No leader.
|
|
7
|
+
*/
|
|
8
|
+
None: "None",
|
|
9
|
+
/**
|
|
10
|
+
* Indicator digit (GTIN only).
|
|
11
|
+
*/
|
|
12
|
+
IndicatorDigit: "Indicator digit",
|
|
13
|
+
/**
|
|
14
|
+
* Extension digit (SSCC only).
|
|
15
|
+
*/
|
|
16
|
+
ExtensionDigit: "Extension digit"
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=leader-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leader-type.js","sourceRoot":"","sources":["../src/leader-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,cAAc,EAAE,iBAAiB;IAEjC;;OAEG;IACH,cAAc,EAAE,iBAAiB;CAC3B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly Check: {
|
|
3
|
+
readonly lengthOfStringForPriceOrWeightMustBeExactly: "Length {{length, number}} of string for price or weight must be 4 or 5";
|
|
4
|
+
readonly priceOrWeightComponent: "price or weight";
|
|
5
|
+
readonly lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "Length {{length, number}} of string for check character pair must be less than or equal to {{maximumLength, number}}";
|
|
6
|
+
};
|
|
7
|
+
readonly Identifier: {
|
|
8
|
+
readonly identifierTypeLength: "{{identifierType}} must be {{length, number}} digits long";
|
|
9
|
+
readonly invalidCheckDigit: "Invalid check digit";
|
|
10
|
+
readonly invalidGTINLength: "GTIN must be 13, 12, 8, or 14 digits long";
|
|
11
|
+
readonly invalidGTIN14Length: "GTIN must be 14 digits long";
|
|
12
|
+
readonly invalidZeroSuppressedGTIN12: "Invalid zero-suppressed GTIN-12";
|
|
13
|
+
readonly invalidZeroSuppressibleGTIN12: "GTIN-12 not zero-suppressible";
|
|
14
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN13: "Invalid zero-suppressed GTIN-12 as GTIN-13";
|
|
15
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN14: "Invalid zero-suppressed GTIN-12 as GTIN-14";
|
|
16
|
+
readonly invalidGTIN13AtRetail: "GTIN-13 at retail consumer trade item level can't start with zero";
|
|
17
|
+
readonly invalidGTINAtRetail: "GTIN not supported at retail consumer trade item level";
|
|
18
|
+
readonly invalidGTINAtOtherThanRetail: "GTIN not supported at other than retail consumer trade item level";
|
|
19
|
+
readonly invalidRCNLength: "RCN length must match format length";
|
|
20
|
+
readonly invalidVariableMeasureRCNFormat: "Invalid variable measure RCN format";
|
|
21
|
+
readonly invalidVariableMeasureRCNPrefix: "Invalid variable measure RCN prefix";
|
|
22
|
+
readonly invalidVariableMeasurePriceOrWeight: "Invalid variable measure price or weight";
|
|
23
|
+
readonly indicatorDigit: "indicator digit";
|
|
24
|
+
readonly serialComponent: "serial component";
|
|
25
|
+
readonly reference: "reference";
|
|
26
|
+
readonly referenceCantBeAllNumeric: "Reference can't be all-numeric";
|
|
27
|
+
readonly invalidCheckCharacterPair: "Invalid check character pair";
|
|
28
|
+
};
|
|
29
|
+
readonly Prefix: {
|
|
30
|
+
readonly gs1CompanyPrefix: "GS1 Company Prefix";
|
|
31
|
+
readonly upcCompanyPrefix: "U.P.C. Company Prefix";
|
|
32
|
+
readonly gs18Prefix: "GS1-8 Prefix";
|
|
33
|
+
readonly gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"";
|
|
34
|
+
readonly gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"";
|
|
35
|
+
readonly gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"";
|
|
36
|
+
readonly upcCompanyPrefixCantStartWith0000: "U.P.C. Company Prefix can't start with \"0000\"";
|
|
37
|
+
readonly gs18PrefixCantStartWith0: "GS1-8 Prefix can't start with \"0\"";
|
|
38
|
+
readonly identifierTypeNotSupportedByGS18Prefix: "{{identifierType}} not supported by GS1-8 Prefix";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
42
|
+
//# sourceMappingURL=locale-resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-resources.d.ts","sourceRoot":"","sources":["../../../src/locale/en/locale-resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuCW"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Check: {
|
|
3
|
+
lengthOfStringForPriceOrWeightMustBeExactly: "Length {{length, number}} of string for price or weight must be 4 or 5",
|
|
4
|
+
priceOrWeightComponent: "price or weight",
|
|
5
|
+
lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "Length {{length, number}} of string for check character pair must be less than or equal to {{maximumLength, number}}"
|
|
6
|
+
},
|
|
7
|
+
Identifier: {
|
|
8
|
+
identifierTypeLength: "{{identifierType}} must be {{length, number}} digits long",
|
|
9
|
+
invalidCheckDigit: "Invalid check digit",
|
|
10
|
+
invalidGTINLength: "GTIN must be 13, 12, 8, or 14 digits long",
|
|
11
|
+
invalidGTIN14Length: "GTIN must be 14 digits long",
|
|
12
|
+
invalidZeroSuppressedGTIN12: "Invalid zero-suppressed GTIN-12",
|
|
13
|
+
invalidZeroSuppressibleGTIN12: "GTIN-12 not zero-suppressible",
|
|
14
|
+
invalidZeroSuppressedGTIN12AsGTIN13: "Invalid zero-suppressed GTIN-12 as GTIN-13",
|
|
15
|
+
invalidZeroSuppressedGTIN12AsGTIN14: "Invalid zero-suppressed GTIN-12 as GTIN-14",
|
|
16
|
+
invalidGTIN13AtRetail: "GTIN-13 at retail consumer trade item level can't start with zero",
|
|
17
|
+
invalidGTINAtRetail: "GTIN not supported at retail consumer trade item level",
|
|
18
|
+
invalidGTINAtOtherThanRetail: "GTIN not supported at other than retail consumer trade item level",
|
|
19
|
+
invalidRCNLength: "RCN length must match format length",
|
|
20
|
+
invalidVariableMeasureRCNFormat: "Invalid variable measure RCN format",
|
|
21
|
+
invalidVariableMeasureRCNPrefix: "Invalid variable measure RCN prefix",
|
|
22
|
+
invalidVariableMeasurePriceOrWeight: "Invalid variable measure price or weight",
|
|
23
|
+
indicatorDigit: "indicator digit",
|
|
24
|
+
serialComponent: "serial component",
|
|
25
|
+
reference: "reference",
|
|
26
|
+
referenceCantBeAllNumeric: "Reference can't be all-numeric",
|
|
27
|
+
invalidCheckCharacterPair: "Invalid check character pair"
|
|
28
|
+
},
|
|
29
|
+
Prefix: {
|
|
30
|
+
gs1CompanyPrefix: "GS1 Company Prefix",
|
|
31
|
+
upcCompanyPrefix: "U.P.C. Company Prefix",
|
|
32
|
+
gs18Prefix: "GS1-8 Prefix",
|
|
33
|
+
gs1CompanyPrefixCantStartWith0: "GS1 Company Prefix can't start with \"0\"",
|
|
34
|
+
gs1CompanyPrefixCantStartWith00000: "GS1 Company Prefix can't start with \"00000\"",
|
|
35
|
+
gs1CompanyPrefixCantStartWith000000: "GS1 Company Prefix can't start with \"000000\"",
|
|
36
|
+
upcCompanyPrefixCantStartWith0000: "U.P.C. Company Prefix can't start with \"0000\"",
|
|
37
|
+
gs18PrefixCantStartWith0: "GS1-8 Prefix can't start with \"0\"",
|
|
38
|
+
identifierTypeNotSupportedByGS18Prefix: "{{identifierType}} not supported by GS1-8 Prefix"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=locale-resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-resources.js","sourceRoot":"","sources":["../../../src/locale/en/locale-resources.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,KAAK,EAAE;QACH,2CAA2C,EAAE,wEAAwE;QACrH,sBAAsB,EAAE,iBAAiB;QACzC,0DAA0D,EAAE,sHAAsH;KACrL;IACD,UAAU,EAAE;QACR,oBAAoB,EAAE,2DAA2D;QACjF,iBAAiB,EAAE,qBAAqB;QACxC,iBAAiB,EAAE,2CAA2C;QAC9D,mBAAmB,EAAE,6BAA6B;QAClD,2BAA2B,EAAE,iCAAiC;QAC9D,6BAA6B,EAAE,+BAA+B;QAC9D,mCAAmC,EAAE,4CAA4C;QACjF,mCAAmC,EAAE,4CAA4C;QACjF,qBAAqB,EAAE,mEAAmE;QAC1F,mBAAmB,EAAE,wDAAwD;QAC7E,4BAA4B,EAAE,mEAAmE;QACjG,gBAAgB,EAAE,qCAAqC;QACvD,+BAA+B,EAAE,qCAAqC;QACtE,+BAA+B,EAAE,qCAAqC;QACtE,mCAAmC,EAAE,0CAA0C;QAC/E,cAAc,EAAE,iBAAiB;QACjC,eAAe,EAAE,kBAAkB;QACnC,SAAS,EAAE,WAAW;QACtB,yBAAyB,EAAE,gCAAgC;QAC3D,yBAAyB,EAAE,8BAA8B;KAC5D;IACD,MAAM,EAAE;QACJ,gBAAgB,EAAE,oBAAoB;QACtC,gBAAgB,EAAE,uBAAuB;QACzC,UAAU,EAAE,cAAc;QAC1B,8BAA8B,EAAE,2CAA2C;QAC3E,kCAAkC,EAAE,+CAA+C;QACnF,mCAAmC,EAAE,gDAAgD;QACrF,iCAAiC,EAAE,iDAAiD;QACpF,wBAAwB,EAAE,qCAAqC;QAC/D,sCAAsC,EAAE,kDAAkD;KAC7F;CACK,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly Check: {
|
|
3
|
+
readonly lengthOfStringForPriceOrWeightMustBeExactly: "La longueur {{length, number}} de la chaîne pour le prix ou le poids doit être 4 ou 5";
|
|
4
|
+
readonly priceOrWeightComponent: "prix ou poids";
|
|
5
|
+
readonly lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "La longueur {{length, number}} de la chaîne pour la paire de caractères de vérification doit être inférieure ou égale à {{maximumLength, number}}";
|
|
6
|
+
};
|
|
7
|
+
readonly Identifier: {
|
|
8
|
+
readonly identifierTypeLength: "{{identifierType}} doit comporter {{length, number}} chiffres";
|
|
9
|
+
readonly invalidCheckDigit: "Chiffre de contrôle non valide";
|
|
10
|
+
readonly invalidGTINLength: "Le GTIN doit comporter 13, 12, 8 ou 14 chiffres";
|
|
11
|
+
readonly invalidGTIN14Length: "Le GTIN doit comporter 14 chiffres";
|
|
12
|
+
readonly invalidZeroSuppressedGTIN12: "Code GTIN-12 non valide avec zéro supprimé";
|
|
13
|
+
readonly invalidZeroSuppressibleGTIN12: "Le GTIN-12 ne peut pas être supprimé par zéro";
|
|
14
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN13: "GTIN-12 non valide avec zéro supprimé en tant que GTIN-13";
|
|
15
|
+
readonly invalidZeroSuppressedGTIN12AsGTIN14: "GTIN-12 non valide avec zéro supprimé en tant que GTIN-14";
|
|
16
|
+
readonly invalidGTIN13AtRetail: "Le GTIN-13 au niveau des articles de consommation au détail ne peut pas commencer par zéro";
|
|
17
|
+
readonly invalidGTINAtRetail: "Le GTIN n'est pas pris en charge au niveau des articles de consommation au détail";
|
|
18
|
+
readonly invalidGTINAtOtherThanRetail: "Le GTIN n'est pas pris en charge à d'autres niveaux que ceux des articles de consommation au détail";
|
|
19
|
+
readonly invalidRCNLength: "La longueur du RCN doit correspondre à la longueur du format";
|
|
20
|
+
readonly invalidVariableMeasureRCNFormat: "Format RCN de mesure variable non valide";
|
|
21
|
+
readonly invalidVariableMeasureRCNPrefix: "Préfixe RCN de mesure variable non valide";
|
|
22
|
+
readonly invalidVariableMeasurePriceOrWeight: "Mesure variable invalide : prix ou poids";
|
|
23
|
+
readonly indicatorDigit: "chiffre indicateur";
|
|
24
|
+
readonly serialComponent: "composant série";
|
|
25
|
+
readonly reference: "référence";
|
|
26
|
+
readonly referenceCantBeAllNumeric: "La référence ne peut pas être entièrement numérique";
|
|
27
|
+
readonly invalidCheckCharacterPair: "Paire de caractères de contrôle non valide";
|
|
28
|
+
};
|
|
29
|
+
readonly Prefix: {
|
|
30
|
+
readonly gs1CompanyPrefix: "Préfixe de l'entreprise GS1";
|
|
31
|
+
readonly upcCompanyPrefix: "Préfixe de l'entreprise U.P.C.";
|
|
32
|
+
readonly gs18Prefix: "Préfixe GS1-8";
|
|
33
|
+
readonly gs1CompanyPrefixCantStartWith0: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"0\"";
|
|
34
|
+
readonly gs1CompanyPrefixCantStartWith00000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"00000\"";
|
|
35
|
+
readonly gs1CompanyPrefixCantStartWith000000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"000000\"";
|
|
36
|
+
readonly upcCompanyPrefixCantStartWith0000: "Le préfixe de l'entreprise U.P.C. ne peut pas commencer par \"0000\"";
|
|
37
|
+
readonly gs18PrefixCantStartWith0: "Le préfixe GS1-8 ne peut pas commencer par \"0\"";
|
|
38
|
+
readonly identifierTypeNotSupportedByGS18Prefix: "{{identifierType}} non pris en charge par le préfixe GS1-8";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
42
|
+
//# sourceMappingURL=locale-resources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-resources.d.ts","sourceRoot":"","sources":["../../../src/locale/fr/locale-resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAuCW"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
Check: {
|
|
3
|
+
lengthOfStringForPriceOrWeightMustBeExactly: "La longueur {{length, number}} de la chaîne pour le prix ou le poids doit être 4 ou 5",
|
|
4
|
+
priceOrWeightComponent: "prix ou poids",
|
|
5
|
+
lengthOfStringForCheckCharacterPairMustBeLessThanOrEqualTo: "La longueur {{length, number}} de la chaîne pour la paire de caractères de vérification doit être inférieure ou égale à {{maximumLength, number}}"
|
|
6
|
+
},
|
|
7
|
+
Identifier: {
|
|
8
|
+
identifierTypeLength: "{{identifierType}} doit comporter {{length, number}} chiffres",
|
|
9
|
+
invalidCheckDigit: "Chiffre de contrôle non valide",
|
|
10
|
+
invalidGTINLength: "Le GTIN doit comporter 13, 12, 8 ou 14 chiffres",
|
|
11
|
+
invalidGTIN14Length: "Le GTIN doit comporter 14 chiffres",
|
|
12
|
+
invalidZeroSuppressedGTIN12: "Code GTIN-12 non valide avec zéro supprimé",
|
|
13
|
+
invalidZeroSuppressibleGTIN12: "Le GTIN-12 ne peut pas être supprimé par zéro",
|
|
14
|
+
invalidZeroSuppressedGTIN12AsGTIN13: "GTIN-12 non valide avec zéro supprimé en tant que GTIN-13",
|
|
15
|
+
invalidZeroSuppressedGTIN12AsGTIN14: "GTIN-12 non valide avec zéro supprimé en tant que GTIN-14",
|
|
16
|
+
invalidGTIN13AtRetail: "Le GTIN-13 au niveau des articles de consommation au détail ne peut pas commencer par zéro",
|
|
17
|
+
invalidGTINAtRetail: "Le GTIN n'est pas pris en charge au niveau des articles de consommation au détail",
|
|
18
|
+
invalidGTINAtOtherThanRetail: "Le GTIN n'est pas pris en charge à d'autres niveaux que ceux des articles de consommation au détail",
|
|
19
|
+
invalidRCNLength: "La longueur du RCN doit correspondre à la longueur du format",
|
|
20
|
+
invalidVariableMeasureRCNFormat: "Format RCN de mesure variable non valide",
|
|
21
|
+
invalidVariableMeasureRCNPrefix: "Préfixe RCN de mesure variable non valide",
|
|
22
|
+
invalidVariableMeasurePriceOrWeight: "Mesure variable invalide : prix ou poids",
|
|
23
|
+
indicatorDigit: "chiffre indicateur",
|
|
24
|
+
serialComponent: "composant série",
|
|
25
|
+
reference: "référence",
|
|
26
|
+
referenceCantBeAllNumeric: "La référence ne peut pas être entièrement numérique",
|
|
27
|
+
invalidCheckCharacterPair: "Paire de caractères de contrôle non valide"
|
|
28
|
+
},
|
|
29
|
+
Prefix: {
|
|
30
|
+
gs1CompanyPrefix: "Préfixe de l'entreprise GS1",
|
|
31
|
+
upcCompanyPrefix: "Préfixe de l'entreprise U.P.C.",
|
|
32
|
+
gs18Prefix: "Préfixe GS1-8",
|
|
33
|
+
gs1CompanyPrefixCantStartWith0: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"0\"",
|
|
34
|
+
gs1CompanyPrefixCantStartWith00000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"00000\"",
|
|
35
|
+
gs1CompanyPrefixCantStartWith000000: "Le préfixe de l'entreprise GS1 ne peut pas commencer par \"000000\"",
|
|
36
|
+
upcCompanyPrefixCantStartWith0000: "Le préfixe de l'entreprise U.P.C. ne peut pas commencer par \"0000\"",
|
|
37
|
+
gs18PrefixCantStartWith0: "Le préfixe GS1-8 ne peut pas commencer par \"0\"",
|
|
38
|
+
identifierTypeNotSupportedByGS18Prefix: "{{identifierType}} non pris en charge par le préfixe GS1-8"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=locale-resources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-resources.js","sourceRoot":"","sources":["../../../src/locale/fr/locale-resources.ts"],"names":[],"mappings":"AAAA,eAAe;IACX,KAAK,EAAE;QACH,2CAA2C,EAAE,uFAAuF;QACpI,sBAAsB,EAAE,eAAe;QACvC,0DAA0D,EAAE,mJAAmJ;KAClN;IACD,UAAU,EAAE;QACR,oBAAoB,EAAE,+DAA+D;QACrF,iBAAiB,EAAE,gCAAgC;QACnD,iBAAiB,EAAE,iDAAiD;QACpE,mBAAmB,EAAE,oCAAoC;QACzD,2BAA2B,EAAE,4CAA4C;QACzE,6BAA6B,EAAE,+CAA+C;QAC9E,mCAAmC,EAAE,2DAA2D;QAChG,mCAAmC,EAAE,2DAA2D;QAChG,qBAAqB,EAAE,4FAA4F;QACnH,mBAAmB,EAAE,mFAAmF;QACxG,4BAA4B,EAAE,qGAAqG;QACnI,gBAAgB,EAAE,8DAA8D;QAChF,+BAA+B,EAAE,0CAA0C;QAC3E,+BAA+B,EAAE,2CAA2C;QAC5E,mCAAmC,EAAE,0CAA0C;QAC/E,cAAc,EAAE,oBAAoB;QACpC,eAAe,EAAE,iBAAiB;QAClC,SAAS,EAAE,WAAW;QACtB,yBAAyB,EAAE,qDAAqD;QAChF,yBAAyB,EAAE,4CAA4C;KAC1E;IACD,MAAM,EAAE;QACJ,gBAAgB,EAAE,6BAA6B;QAC/C,gBAAgB,EAAE,gCAAgC;QAClD,UAAU,EAAE,eAAe;QAC3B,8BAA8B,EAAE,gEAAgE;QAChG,kCAAkC,EAAE,oEAAoE;QACxG,mCAAmC,EAAE,qEAAqE;QAC1G,iCAAiC,EAAE,sEAAsE;QACzG,wBAAwB,EAAE,kDAAkD;QAC5E,sCAAsC,EAAE,4DAA4D;KACvG;CACK,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type I18nEnvironment } from "@aidc-toolkit/core";
|
|
2
|
+
import { type i18n, type Resource } from "i18next";
|
|
3
|
+
import enLocaleResources from "./en/locale-resources.js";
|
|
4
|
+
export declare const gs1NS = "aidct_gs1";
|
|
5
|
+
/**
|
|
6
|
+
* Locale strings type is extracted from the English locale strings object.
|
|
7
|
+
*/
|
|
8
|
+
export type GS1LocaleResources = typeof enLocaleResources;
|
|
9
|
+
/**
|
|
10
|
+
* GS1 resources.
|
|
11
|
+
*/
|
|
12
|
+
export declare const gs1Resources: Resource;
|
|
13
|
+
export declare const i18nextGS1: i18n;
|
|
14
|
+
/**
|
|
15
|
+
* Initialize internationalization.
|
|
16
|
+
*
|
|
17
|
+
* @param environment
|
|
18
|
+
* Environment in which the application is running.
|
|
19
|
+
*
|
|
20
|
+
* @param debug
|
|
21
|
+
* Debug setting.
|
|
22
|
+
*
|
|
23
|
+
* @returns
|
|
24
|
+
* Void promise.
|
|
25
|
+
*/
|
|
26
|
+
export declare function i18nGS1Init(environment: I18nEnvironment, debug?: boolean): Promise<void>;
|
|
27
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/locale/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAgB,EAAE,KAAK,IAAI,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAGzD,eAAO,MAAM,KAAK,cAAc,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,iBAAiB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,QAO1B,CAAC;AAGF,eAAO,MAAM,UAAU,EAAE,IAA+B,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAG5F"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { i18nCoreInit } from "@aidc-toolkit/core";
|
|
2
|
+
import { i18nUtilityInit, utilityResources } from "@aidc-toolkit/utility";
|
|
3
|
+
import i18next from "i18next";
|
|
4
|
+
import enLocaleResources from "./en/locale-resources.js";
|
|
5
|
+
import frLocaleResources from "./fr/locale-resources.js";
|
|
6
|
+
export const gs1NS = "aidct_gs1";
|
|
7
|
+
/**
|
|
8
|
+
* GS1 resources.
|
|
9
|
+
*/
|
|
10
|
+
export const gs1Resources = {
|
|
11
|
+
en: {
|
|
12
|
+
aidct_gs1: enLocaleResources
|
|
13
|
+
},
|
|
14
|
+
fr: {
|
|
15
|
+
aidct_gs1: frLocaleResources
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
// Explicit type is necessary because type can't be inferred without additional references.
|
|
19
|
+
export const i18nextGS1 = i18next.createInstance();
|
|
20
|
+
/**
|
|
21
|
+
* Initialize internationalization.
|
|
22
|
+
*
|
|
23
|
+
* @param environment
|
|
24
|
+
* Environment in which the application is running.
|
|
25
|
+
*
|
|
26
|
+
* @param debug
|
|
27
|
+
* Debug setting.
|
|
28
|
+
*
|
|
29
|
+
* @returns
|
|
30
|
+
* Void promise.
|
|
31
|
+
*/
|
|
32
|
+
export async function i18nGS1Init(environment, debug = false) {
|
|
33
|
+
await i18nUtilityInit(environment, debug);
|
|
34
|
+
await i18nCoreInit(i18nextGS1, environment, debug, gs1NS, utilityResources, gs1Resources);
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/locale/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,OAAqC,MAAM,SAAS,CAAC;AAC5D,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;AAOjC;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAa;IAClC,EAAE,EAAE;QACA,SAAS,EAAE,iBAAiB;KAC/B;IACD,EAAE,EAAE;QACA,SAAS,EAAE,iBAAiB;KAC/B;CACJ,CAAC;AAEF,2FAA2F;AAC3F,MAAM,CAAC,MAAM,UAAU,GAAS,OAAO,CAAC,cAAc,EAAE,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,WAA4B,EAAE,KAAK,GAAG,KAAK;IACzE,MAAM,eAAe,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;IAC1C,MAAM,YAAY,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NonGTINNumericIdentifierType } from "./non-gtin-numeric-identifier-type.js";
|
|
2
|
+
import type { NonGTINNumericIdentifierValidator } from "./non-gtin-numeric-identifier-validator.js";
|
|
3
|
+
import type { NumericIdentifierCreator } from "./numeric-identifier-creator.js";
|
|
4
|
+
/**
|
|
5
|
+
* Non-GTIN numeric identifier creator. Creates one or many non-GTIN numeric identifiers.
|
|
6
|
+
*
|
|
7
|
+
* @template TNonGTINNumericIdentifierType
|
|
8
|
+
* Non-GTIN numeric identifier type type.
|
|
9
|
+
*/
|
|
10
|
+
export interface NonGTINNumericIdentifierCreator<TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType = NonGTINNumericIdentifierType> extends NonGTINNumericIdentifierValidator<TNonGTINNumericIdentifierType>, NumericIdentifierCreator<TNonGTINNumericIdentifierType> {
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=non-gtin-numeric-identifier-creator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-creator.d.ts","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-creator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AACpG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B,CAAC,6BAA6B,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,iCAAiC,CAAC,6BAA6B,CAAC,EAAE,wBAAwB,CAAC,6BAA6B,CAAC;CACpR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-creator.js","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-creator.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LeaderType, LeaderTypes } from "./leader-type.js";
|
|
2
|
+
import type { NonGTINNumericIdentifierType } from "./non-gtin-numeric-identifier-type.js";
|
|
3
|
+
import type { NumericIdentifierDescriptor } from "./numeric-identifier-descriptor.js";
|
|
4
|
+
import type { PrefixTypes } from "./prefix-type.js";
|
|
5
|
+
/**
|
|
6
|
+
* Non-GTIN numeric identifier descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export interface NonGTINNumericIdentifierDescriptor extends NumericIdentifierDescriptor {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
readonly identifierType: NonGTINNumericIdentifierType;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
readonly prefixType: typeof PrefixTypes.GS1CompanyPrefix;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
readonly leaderType: Exclude<LeaderType, typeof LeaderTypes.IndicatorDigit>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=non-gtin-numeric-identifier-descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-descriptor.d.ts","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,kCAAmC,SAAQ,2BAA2B;IACnF;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,4BAA4B,CAAC;IAEtD;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,WAAW,CAAC,gBAAgB,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,WAAW,CAAC,cAAc,CAAC,CAAC;CAC/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-descriptor.js","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-descriptor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Non-GTIN numeric identifier types.
|
|
3
|
+
*/
|
|
4
|
+
export declare const NonGTINNumericIdentifierTypes: Omit<Pick<{
|
|
5
|
+
readonly GTIN: "GTIN";
|
|
6
|
+
readonly GLN: "GLN";
|
|
7
|
+
readonly SSCC: "SSCC";
|
|
8
|
+
readonly GRAI: "GRAI";
|
|
9
|
+
readonly GIAI: "GIAI";
|
|
10
|
+
readonly GSRN: "GSRN";
|
|
11
|
+
readonly GDTI: "GDTI";
|
|
12
|
+
readonly GINC: "GINC";
|
|
13
|
+
readonly GSIN: "GSIN";
|
|
14
|
+
readonly GCN: "GCN";
|
|
15
|
+
readonly CPID: "CPID";
|
|
16
|
+
readonly GMN: "GMN";
|
|
17
|
+
}, "GTIN" | "GLN" | "SSCC" | "GRAI" | "GSRN" | "GDTI" | "GSIN" | "GCN">, "GTIN">;
|
|
18
|
+
/**
|
|
19
|
+
* Non-GTIN numeric identifier type key.
|
|
20
|
+
*/
|
|
21
|
+
export type NonGTINNumericIdentifierTypeKey = keyof typeof NonGTINNumericIdentifierTypes;
|
|
22
|
+
/**
|
|
23
|
+
* Non-GTIN numeric identifier type.
|
|
24
|
+
*/
|
|
25
|
+
export type NonGTINNumericIdentifierType = typeof NonGTINNumericIdentifierTypes[NonGTINNumericIdentifierTypeKey];
|
|
26
|
+
//# sourceMappingURL=non-gtin-numeric-identifier-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-type.d.ts","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-type.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;gFAA6C,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,MAAM,OAAO,6BAA6B,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,OAAO,6BAA6B,CAAC,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { exclude } from "@aidc-toolkit/core";
|
|
2
|
+
import { GTINTypes } from "./gtin-type.js";
|
|
3
|
+
import { NumericIdentifierTypes } from "./numeric-identifier-type.js";
|
|
4
|
+
/**
|
|
5
|
+
* Non-GTIN numeric identifier types.
|
|
6
|
+
*/
|
|
7
|
+
export const NonGTINNumericIdentifierTypes = exclude(NumericIdentifierTypes, GTINTypes);
|
|
8
|
+
//# sourceMappingURL=non-gtin-numeric-identifier-type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-type.js","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,OAAO,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NonGTINNumericIdentifierDescriptor } from "./non-gtin-numeric-identifier-descriptor.js";
|
|
2
|
+
import type { NonGTINNumericIdentifierType } from "./non-gtin-numeric-identifier-type.js";
|
|
3
|
+
import { NumericIdentifierValidator } from "./numeric-identifier-validator.js";
|
|
4
|
+
/**
|
|
5
|
+
* Non-GTIN numeric identifier validator.
|
|
6
|
+
*
|
|
7
|
+
* @template TNonGTINNumericIdentifierType
|
|
8
|
+
* Non-GTIN numeric identifier type type.
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class NonGTINNumericIdentifierValidator<TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType = NonGTINNumericIdentifierType> extends NumericIdentifierValidator<TNonGTINNumericIdentifierType> implements NonGTINNumericIdentifierDescriptor {
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=non-gtin-numeric-identifier-validator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-validator.d.ts","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAC;AACtG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAC1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E;;;;;GAKG;AACH,8BAAsB,iCAAiC,CAAC,6BAA6B,SAAS,4BAA4B,GAAG,4BAA4B,CAAE,SAAQ,0BAA0B,CAAC,6BAA6B,CAAE,YAAW,kCAAkC;CACzQ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NumericIdentifierValidator } from "./numeric-identifier-validator.js";
|
|
2
|
+
/**
|
|
3
|
+
* Non-GTIN numeric identifier validator.
|
|
4
|
+
*
|
|
5
|
+
* @template TNonGTINNumericIdentifierType
|
|
6
|
+
* Non-GTIN numeric identifier type type.
|
|
7
|
+
*/
|
|
8
|
+
export class NonGTINNumericIdentifierValidator extends NumericIdentifierValidator {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=non-gtin-numeric-identifier-validator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-gtin-numeric-identifier-validator.js","sourceRoot":"","sources":["../src/non-gtin-numeric-identifier-validator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,OAAgB,iCAAqI,SAAQ,0BAAyD;CAC3N"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type CharacterSetValidation, type TransformerInput, type TransformerOutput } from "@aidc-toolkit/utility";
|
|
2
|
+
import type { NonNumericIdentifierType } from "./non-numeric-identifier-type.js";
|
|
3
|
+
import { type NonNumericIdentifierValidation, NonNumericIdentifierValidator } from "./non-numeric-identifier-validator.js";
|
|
4
|
+
import type { PrefixProvider } from "./prefix-provider.js";
|
|
5
|
+
declare const NonNumericIdentifierCreator_base: import("./abstract-identifier-creator.js").IdentifierCreatorConstructor<[NonNumericIdentifierType], NonNumericIdentifierType, NonNumericIdentifierValidation, NonNumericIdentifierValidator>;
|
|
6
|
+
/**
|
|
7
|
+
* Non-numeric identifier creator.
|
|
8
|
+
*/
|
|
9
|
+
export declare class NonNumericIdentifierCreator extends NonNumericIdentifierCreator_base {
|
|
10
|
+
#private;
|
|
11
|
+
/**
|
|
12
|
+
* Constructor.
|
|
13
|
+
*
|
|
14
|
+
* @param prefixProvider
|
|
15
|
+
* Prefix provider.
|
|
16
|
+
*
|
|
17
|
+
* @param identifierType
|
|
18
|
+
* Identifier type.
|
|
19
|
+
*/
|
|
20
|
+
constructor(prefixProvider: PrefixProvider, identifierType: NonNumericIdentifierType);
|
|
21
|
+
/**
|
|
22
|
+
* Get the reference validation parameters.
|
|
23
|
+
*/
|
|
24
|
+
protected get referenceValidation(): CharacterSetValidation;
|
|
25
|
+
/**
|
|
26
|
+
* Create identifier(s) with reference(s).
|
|
27
|
+
*
|
|
28
|
+
* @template TTransformerInput
|
|
29
|
+
* Transformer input type.
|
|
30
|
+
*
|
|
31
|
+
* @param referenceOrReferences
|
|
32
|
+
* Reference(s).
|
|
33
|
+
*
|
|
34
|
+
* @returns
|
|
35
|
+
* Identifier(s).
|
|
36
|
+
*/
|
|
37
|
+
create<TTransformerInput extends TransformerInput<string>>(referenceOrReferences: TTransformerInput): TransformerOutput<TTransformerInput, string>;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=non-numeric-identifier-creator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-numeric-identifier-creator.d.ts","sourceRoot":"","sources":["../src/non-numeric-identifier-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACzB,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EACH,KAAK,8BAA8B,EACnC,6BAA6B,EAChC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;;AAE3D;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,gCAKjB;;IAM5B;;;;;;;;OAQG;gBACS,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,wBAAwB;IAWpF;;OAEG;IACH,SAAS,KAAK,mBAAmB,IAAI,sBAAsB,CAE1D;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,iBAAiB,SAAS,gBAAgB,CAAC,MAAM,CAAC,EAAE,qBAAqB,EAAE,iBAAiB,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,MAAM,CAAC;CAmCrJ"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { mapIterable } from "@aidc-toolkit/utility";
|
|
2
|
+
import { MixinAbstractIdentifierCreator } from "./abstract-identifier-creator.js";
|
|
3
|
+
import { checkCharacterPair } from "./check.js";
|
|
4
|
+
import { IdentifierDescriptors } from "./identifier-descriptors.js";
|
|
5
|
+
import { i18nextGS1 } from "./locale/i18n.js";
|
|
6
|
+
import { NonNumericIdentifierValidator } from "./non-numeric-identifier-validator.js";
|
|
7
|
+
/**
|
|
8
|
+
* Non-numeric identifier creator.
|
|
9
|
+
*/
|
|
10
|
+
export class NonNumericIdentifierCreator extends MixinAbstractIdentifierCreator(NonNumericIdentifierValidator) {
|
|
11
|
+
/**
|
|
12
|
+
* Reference validation parameters.
|
|
13
|
+
*/
|
|
14
|
+
#referenceValidation;
|
|
15
|
+
/**
|
|
16
|
+
* Constructor.
|
|
17
|
+
*
|
|
18
|
+
* @param prefixProvider
|
|
19
|
+
* Prefix provider.
|
|
20
|
+
*
|
|
21
|
+
* @param identifierType
|
|
22
|
+
* Identifier type.
|
|
23
|
+
*/
|
|
24
|
+
constructor(prefixProvider, identifierType) {
|
|
25
|
+
super(prefixProvider, prefixProvider.gs1CompanyPrefix, 2 * Number(IdentifierDescriptors[identifierType].requiresCheckCharacterPair), identifierType);
|
|
26
|
+
this.#referenceValidation = {
|
|
27
|
+
minimumLength: 1,
|
|
28
|
+
// Maximum reference length has to account for prefix and check character pair.
|
|
29
|
+
maximumLength: this.referenceLength,
|
|
30
|
+
component: () => i18nextGS1.t("Identifier.reference")
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get the reference validation parameters.
|
|
35
|
+
*/
|
|
36
|
+
get referenceValidation() {
|
|
37
|
+
return this.#referenceValidation;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Create identifier(s) with reference(s).
|
|
41
|
+
*
|
|
42
|
+
* @template TTransformerInput
|
|
43
|
+
* Transformer input type.
|
|
44
|
+
*
|
|
45
|
+
* @param referenceOrReferences
|
|
46
|
+
* Reference(s).
|
|
47
|
+
*
|
|
48
|
+
* @returns
|
|
49
|
+
* Identifier(s).
|
|
50
|
+
*/
|
|
51
|
+
create(referenceOrReferences) {
|
|
52
|
+
// TODO Refactor type when https://github.com/microsoft/TypeScript/pull/56941 released.
|
|
53
|
+
let result;
|
|
54
|
+
const referenceCreator = this.referenceCreator;
|
|
55
|
+
const referenceValidation = this.referenceValidation;
|
|
56
|
+
const prefix = this.prefix;
|
|
57
|
+
const requiresCheckCharacterPair = this.requiresCheckCharacterPair;
|
|
58
|
+
/**
|
|
59
|
+
* Validate a reference and create an identifier.
|
|
60
|
+
*
|
|
61
|
+
* @param reference
|
|
62
|
+
* Reference.
|
|
63
|
+
*
|
|
64
|
+
* @returns
|
|
65
|
+
* Identifier.
|
|
66
|
+
*/
|
|
67
|
+
function validateAndCreate(reference) {
|
|
68
|
+
referenceCreator.validate(reference, referenceValidation);
|
|
69
|
+
const partialIdentifier = prefix + reference;
|
|
70
|
+
return requiresCheckCharacterPair ? partialIdentifier + checkCharacterPair(partialIdentifier) : partialIdentifier;
|
|
71
|
+
}
|
|
72
|
+
if (typeof referenceOrReferences !== "object") {
|
|
73
|
+
result = validateAndCreate(referenceOrReferences);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
result = mapIterable(referenceOrReferences, validateAndCreate);
|
|
77
|
+
}
|
|
78
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- Type determination is handled above.
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=non-numeric-identifier-creator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-numeric-identifier-creator.js","sourceRoot":"","sources":["../src/non-numeric-identifier-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,WAAW,EAGd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAEH,6BAA6B,EAChC,MAAM,uCAAuC,CAAC;AAG/C;;GAEG;AACH,MAAM,OAAO,2BAA4B,SAAQ,8BAA8B,CAK7E,6BAA6B,CAAC;IAC5B;;OAEG;IACM,oBAAoB,CAAyB;IAEtD;;;;;;;;OAQG;IACH,YAAY,cAA8B,EAAE,cAAwC;QAChF,KAAK,CAAC,cAAc,EAAE,cAAc,CAAC,gBAAgB,EAAE,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC,0BAA0B,CAAC,EAAE,cAAc,CAAC,CAAC;QAErJ,IAAI,CAAC,oBAAoB,GAAG;YACxB,aAAa,EAAE,CAAC;YAChB,+EAA+E;YAC/E,aAAa,EAAE,IAAI,CAAC,eAAe;YACnC,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,sBAAsB,CAAC;SACxD,CAAC;IACN,CAAC;IAED;;OAEG;IACH,IAAc,mBAAmB;QAC7B,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAqD,qBAAwC;QAC/F,uFAAuF;QACvF,IAAI,MAAiC,CAAC;QAEtC,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC/C,MAAM,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;QACrD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,MAAM,0BAA0B,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAEnE;;;;;;;;WAQG;QACH,SAAS,iBAAiB,CAAC,SAAiB;YACxC,gBAAgB,CAAC,QAAQ,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAC;YAE1D,MAAM,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAAC;YAE7C,OAAO,0BAA0B,CAAC,CAAC,CAAC,iBAAiB,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;QACtH,CAAC;QAED,IAAI,OAAO,qBAAqB,KAAK,QAAQ,EAAE,CAAC;YAC5C,MAAM,GAAG,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;QACtD,CAAC;aAAM,CAAC;YACJ,MAAM,GAAG,WAAW,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,CAAC;QACnE,CAAC;QAED,+GAA+G;QAC/G,OAAO,MAAsD,CAAC;IAClE,CAAC;CACJ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ContentCharacterSet, ContentCharacterSets } from "./content-character-set.js";
|
|
2
|
+
import type { IdentifierDescriptor } from "./identifier-descriptor.js";
|
|
3
|
+
import type { NonNumericIdentifierType } from "./non-numeric-identifier-type.js";
|
|
4
|
+
import type { PrefixTypes } from "./prefix-type.js";
|
|
5
|
+
/**
|
|
6
|
+
* Non-numeric identifier descriptor.
|
|
7
|
+
*/
|
|
8
|
+
export interface NonNumericIdentifierDescriptor extends IdentifierDescriptor {
|
|
9
|
+
/**
|
|
10
|
+
* @inheritDoc
|
|
11
|
+
*/
|
|
12
|
+
readonly identifierType: NonNumericIdentifierType;
|
|
13
|
+
/**
|
|
14
|
+
* @inheritDoc
|
|
15
|
+
*/
|
|
16
|
+
readonly prefixType: typeof PrefixTypes.GS1CompanyPrefix;
|
|
17
|
+
/**
|
|
18
|
+
* @inheritDoc
|
|
19
|
+
*/
|
|
20
|
+
readonly referenceCharacterSet: Exclude<ContentCharacterSet, typeof ContentCharacterSets.Numeric>;
|
|
21
|
+
/**
|
|
22
|
+
* True if identifier requires a check character pair.
|
|
23
|
+
*/
|
|
24
|
+
readonly requiresCheckCharacterPair: boolean;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=non-numeric-identifier-descriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-numeric-identifier-descriptor.d.ts","sourceRoot":"","sources":["../src/non-numeric-identifier-descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,oBAAoB;IACxE;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAElD;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,WAAW,CAAC,gBAAgB,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,qBAAqB,EAAE,OAAO,CAAC,mBAAmB,EAAE,OAAO,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAElG;;OAEG;IACH,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC;CAChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"non-numeric-identifier-descriptor.js","sourceRoot":"","sources":["../src/non-numeric-identifier-descriptor.ts"],"names":[],"mappings":""}
|