@aidc-toolkit/app-extension 1.0.26-beta → 1.0.28-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.
Files changed (37) hide show
  1. package/dist/index.cjs +1205 -967
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +134 -312
  4. package/dist/index.d.ts +134 -312
  5. package/dist/index.js +1207 -964
  6. package/dist/index.js.map +1 -1
  7. package/package.json +6 -6
  8. package/src/app-extension.ts +33 -24
  9. package/src/app-utility-proxy.ts +33 -27
  10. package/src/descriptor.ts +29 -199
  11. package/src/generator/generator.ts +102 -145
  12. package/src/generator/index.ts +0 -1
  13. package/src/generator/locale-resources-generator.ts +67 -42
  14. package/src/gs1/character-set-proxy.ts +5 -5
  15. package/src/gs1/check-proxy.ts +35 -42
  16. package/src/gs1/gtin-creator-proxy.ts +58 -0
  17. package/src/gs1/gtin-descriptor.ts +29 -0
  18. package/src/gs1/gtin-validator-proxy.ts +161 -0
  19. package/src/gs1/identifier-creator-proxy.ts +227 -0
  20. package/src/gs1/identifier-validator-proxy.ts +87 -0
  21. package/src/gs1/index.ts +5 -1
  22. package/src/gs1/non-gtin-creator-proxy.ts +119 -0
  23. package/src/gs1/non-gtin-validator-proxy.ts +119 -0
  24. package/src/gs1/prefix-definition-descriptor.ts +18 -0
  25. package/src/gs1/prefix-manager-proxy.ts +42 -0
  26. package/src/index.ts +1 -0
  27. package/src/lib-proxy.ts +22 -19
  28. package/src/proxy.ts +509 -0
  29. package/src/utility/character-set-descriptor.ts +5 -5
  30. package/src/utility/character-set-proxy.ts +39 -55
  31. package/src/utility/reg-exp-proxy.ts +11 -15
  32. package/src/utility/string-descriptor.ts +2 -2
  33. package/src/utility/transformer-descriptor.ts +3 -3
  34. package/src/utility/transformer-proxy.ts +16 -26
  35. package/tsconfig-src.json +1 -4
  36. package/src/generator/descriptor.ts +0 -122
  37. package/src/gs1/identifier-proxy.ts +0 -825
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { I18nEnvironment, TypedSyncFunction, TypedFunction, TypedAsyncFunction, Nullishable } from '@aidc-toolkit/core';
2
2
  import { Resource, i18n } from 'i18next';
3
3
  import { StringValidation, StringValidator, CharacterSetValidator, Exclusion, CharacterSetCreator } from '@aidc-toolkit/utility';
4
- import { NumericIdentifierType, IdentifierType, IdentifierTypeValidator, IdentifierTypes, GTINLevel, NonGTINNumericIdentifierType, SerializableNumericIdentifierType, NonNumericIdentifierType, NonNumericIdentifierValidation, PrefixType, NumericIdentifierDescriptor, NumericIdentifierCreator, IdentifierDescriptor, IdentifierValidation, IdentifierCreator, PrefixManager, NumericIdentifierValidation, GTINDescriptor, GTINCreator, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator, SerializableNumericIdentifierDescriptor, SerializableNumericIdentifierCreator, NonNumericIdentifierDescriptor, NonNumericIdentifierCreator } from '@aidc-toolkit/gs1';
4
+ import { NumericIdentifierType, IdentifierType, IdentifierTypeValidator, GTINType, NonGTINNumericIdentifierType, NonSerializableNumericIdentifierType, SerializableNumericIdentifierType, NonNumericIdentifierType, NonNumericIdentifierValidation, GTINLevel, PrefixType, NumericIdentifierCreator, IdentifierValidation, IdentifierCreator, PrefixManager, NumericIdentifierValidation, NonGTINNumericIdentifierCreator, SerializableNumericIdentifierCreator, NonNumericIdentifierCreator, GTINCreator } from '@aidc-toolkit/gs1';
5
5
 
6
6
  declare const _default: {
7
7
  AppExtension: {
@@ -745,36 +745,20 @@ type MatrixResultError<TResult, ThrowError extends boolean, TError extends Error
745
745
  /**
746
746
  * Application extension.
747
747
  *
748
- * @template TBigInt
749
- * Type to which big integer is mapped.
750
- *
751
748
  * @template ThrowError
752
749
  * If true, errors are reported through the throw/catch mechanism.
753
750
  *
754
751
  * @template TError
755
752
  * Error type.
753
+ *
754
+ * @template TInvocationContext
755
+ * Application-specific invocation context type.
756
+ *
757
+ * @template TBigInt
758
+ * Type to which big integer is mapped.
756
759
  */
757
760
  declare abstract class AppExtension<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> {
758
- /**
759
- * Application version.
760
- */
761
- private readonly _version;
762
- /**
763
- * Maximum sequence count supported by application.
764
- */
765
- private readonly _maximumSequenceCount;
766
- /**
767
- * If true, errors are reported through the throw/catch mechanism.
768
- */
769
- private readonly _throwError;
770
- /**
771
- * Maximum width supported by application.
772
- */
773
- private _maximumWidth?;
774
- /**
775
- * Maximum height supported by application.
776
- */
777
- private _maximumHeight?;
761
+ #private;
778
762
  /**
779
763
  * Constructor.
780
764
  *
@@ -787,7 +771,7 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
787
771
  * @param throwError
788
772
  * If true, errors are reported through the throw/catch mechanism.
789
773
  */
790
- protected constructor(version: string, maximumSequenceCount: number, throwError: ThrowError);
774
+ constructor(version: string, maximumSequenceCount: number, throwError: ThrowError);
791
775
  /**
792
776
  * Get the version.
793
777
  *
@@ -812,7 +796,7 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
812
796
  * @returns
813
797
  * Maximum width supported by the application.
814
798
  */
815
- protected abstract getMaximumWidth(): Promise<number>;
799
+ protected abstract getMaximumWidth(): number | Promise<number>;
816
800
  /**
817
801
  * Get the maximum height supported by the application.
818
802
  *
@@ -826,7 +810,7 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
826
810
  * @returns
827
811
  * Maximum height supported by the application.
828
812
  */
829
- protected abstract getMaximumHeight(): Promise<number>;
813
+ protected abstract getMaximumHeight(): number | Promise<number>;
830
814
  /**
831
815
  * Get the sheet address from an invocation context.
832
816
  *
@@ -836,7 +820,7 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
836
820
  * @returns
837
821
  * Sheet address.
838
822
  */
839
- abstract getSheetAddress(invocationContext: TInvocationContext): Promise<SheetAddress>;
823
+ abstract getSheetAddress(invocationContext: TInvocationContext): SheetAddress | Promise<SheetAddress>;
840
824
  /**
841
825
  * Get a parameter range from an invocation context.
842
826
  *
@@ -849,7 +833,7 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
849
833
  * @returns
850
834
  * Sheet range or null if parameter is not a range.
851
835
  */
852
- abstract getParameterSheetRange(invocationContext: TInvocationContext, parameterNumber: number): Promise<SheetRange | null>;
836
+ abstract getParameterSheetRange(invocationContext: TInvocationContext, parameterNumber: number): SheetRange | null | Promise<SheetRange | null>;
853
837
  /**
854
838
  * Validate a sequence count against the maximum supported by application.
855
839
  *
@@ -885,6 +869,9 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
885
869
  /**
886
870
  * Bind a synchronous method and wrap it in a try/catch for comprehensive error handling.
887
871
  *
872
+ * @template TMethod
873
+ * Method type.
874
+ *
888
875
  * @param thisArg
889
876
  * The value to be passed as the `this` parameter to the method.
890
877
  *
@@ -898,6 +885,9 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
898
885
  /**
899
886
  * Bind an asynchronous method and wrap it in a try/catch for comprehensive error handling.
900
887
  *
888
+ * @template TMethod
889
+ * Method type.
890
+ *
901
891
  * @param thisArg
902
892
  * The value to be passed as the `this` parameter to the method.
903
893
  *
@@ -913,20 +903,20 @@ declare abstract class AppExtension<ThrowError extends boolean, TError extends E
913
903
  /**
914
904
  * Library proxy.
915
905
  *
916
- * @template TBigInt
917
- * Type to which big integer is mapped.
918
- *
919
906
  * @template ThrowError
920
907
  * If true, errors are reported through the throw/catch mechanism.
921
908
  *
922
909
  * @template TError
923
910
  * Error type.
911
+ *
912
+ * @template TInvocationContext
913
+ * Application-specific invocation context type.
914
+ *
915
+ * @template TBigInt
916
+ * Type to which big integer is mapped.
924
917
  */
925
918
  declare abstract class LibProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> {
926
- /**
927
- * Application extension.
928
- */
929
- private readonly _appExtension;
919
+ #private;
930
920
  /**
931
921
  * Constructor.
932
922
  *
@@ -937,7 +927,7 @@ declare abstract class LibProxy<ThrowError extends boolean, TError extends Error
937
927
  /**
938
928
  * Get the application extension.
939
929
  */
940
- protected get appExtension(): AppExtension<ThrowError, TError, TInvocationContext, TBigInt>;
930
+ get appExtension(): AppExtension<ThrowError, TError, TInvocationContext, TBigInt>;
941
931
  /**
942
932
  * Map big integer to another type if necessary.
943
933
  *
@@ -948,29 +938,6 @@ declare abstract class LibProxy<ThrowError extends boolean, TError extends Error
948
938
  * Mapped big integer value.
949
939
  */
950
940
  mapBigInt(value: bigint): ResultError<TBigInt, ThrowError, TError>;
951
- /**
952
- * Handle an error thrown by a function call.
953
- *
954
- * @param e
955
- * Error.
956
- *
957
- * @returns
958
- * Error if errors are not thrown.
959
- */
960
- private handleError;
961
- /**
962
- * Do the callback for a simple return.
963
- *
964
- * @param value
965
- * Value.
966
- *
967
- * @param callback
968
- * Callback.
969
- *
970
- * @returns
971
- * Callback result or error if errors are not thrown.
972
- */
973
- private doCallback;
974
941
  /**
975
942
  * Map a matrix of values using a callback.
976
943
  *
@@ -984,19 +951,6 @@ declare abstract class LibProxy<ThrowError extends boolean, TError extends Error
984
951
  * Matrix of callback results and errors if errors are not thrown.
985
952
  */
986
953
  protected mapMatrix<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => TResult): MatrixResultError<TResult, ThrowError, TError>;
987
- /**
988
- * Do the callback for an array return.
989
- *
990
- * @param value
991
- * Value.
992
- *
993
- * @param callback
994
- * Callback.
995
- *
996
- * @returns
997
- * Callback result or error as array if errors are not thrown.
998
- */
999
- private doArrayCallback;
1000
954
  /**
1001
955
  * Map a one-dimensional matrix of values using a callback.
1002
956
  *
@@ -1095,41 +1049,27 @@ interface TypeDescriptor extends Descriptor {
1095
1049
  readonly isMatrix: boolean;
1096
1050
  }
1097
1051
  /**
1098
- * Base parameter descriptor; all attributes required.
1052
+ * Parameter descriptor.
1099
1053
  */
1100
- interface BaseParameterDescriptor extends TypeDescriptor {
1054
+ interface ParameterDescriptor extends TypeDescriptor {
1101
1055
  /**
1102
1056
  * True if required.
1103
1057
  */
1104
1058
  readonly isRequired: boolean;
1105
1059
  }
1106
1060
  /**
1107
- * Extends parameter descriptor; extends a parameter descriptor and overrides select attributes.
1061
+ * Extends parameter descriptor.
1108
1062
  */
1109
- interface ExtendsParameterDescriptor extends Partial<BaseParameterDescriptor> {
1063
+ interface ExtendsParameterDescriptor extends Partial<ParameterDescriptor> {
1110
1064
  /**
1111
- * Base parameter descriptor that this one extends.
1065
+ * Parameter descriptor that this one extends.
1112
1066
  */
1113
- readonly extendsDescriptor: ParameterDescriptor;
1067
+ readonly extendsDescriptor: ParameterDescriptor | ExtendsParameterDescriptor;
1114
1068
  /**
1115
- * Sort order within base parameter descriptor if applicable.
1069
+ * Sort order within extended parameter descriptor.
1116
1070
  */
1117
1071
  readonly sortOrder?: number;
1118
1072
  }
1119
- /**
1120
- * Parameter descriptor, either base or extends.
1121
- */
1122
- type ParameterDescriptor = BaseParameterDescriptor | ExtendsParameterDescriptor;
1123
- /**
1124
- * Expand a parameter descriptor to its full form with all required attributes.
1125
- *
1126
- * @param parameterDescriptor
1127
- * Parameter descriptor.
1128
- *
1129
- * @returns
1130
- * Parameter descriptor in its full form.
1131
- */
1132
- declare function expandParameterDescriptor(parameterDescriptor: ParameterDescriptor): BaseParameterDescriptor;
1133
1073
  /**
1134
1074
  * Method descriptor.
1135
1075
  */
@@ -1151,6 +1091,14 @@ interface MethodDescriptor extends TypeDescriptor {
1151
1091
  * Parameter descriptors.
1152
1092
  */
1153
1093
  readonly parameterDescriptors: readonly ParameterDescriptor[];
1094
+ /**
1095
+ * Function name with optional infix.
1096
+ */
1097
+ readonly functionName: string;
1098
+ /**
1099
+ * Function name in optional namespace with optional infix.
1100
+ */
1101
+ readonly namespaceFunctionName: string;
1154
1102
  }
1155
1103
  /**
1156
1104
  * Class descriptor.
@@ -1159,11 +1107,11 @@ interface ClassDescriptor extends Descriptor {
1159
1107
  /**
1160
1108
  * Class namespace. If not provided, class is at the top level.
1161
1109
  */
1162
- readonly namespace?: string;
1110
+ readonly namespace?: string | undefined;
1163
1111
  /**
1164
1112
  * Method infix. If undefined, method name is generated verbatim.
1165
1113
  */
1166
- readonly methodInfix?: string;
1114
+ readonly methodInfix?: string | undefined;
1167
1115
  /**
1168
1116
  * Replace parameter descriptors for class hierarchies where enumeration parameter descriptors can change.
1169
1117
  */
@@ -1171,57 +1119,37 @@ interface ClassDescriptor extends Descriptor {
1171
1119
  readonly name: string;
1172
1120
  readonly replacement: ParameterDescriptor;
1173
1121
  }>;
1122
+ /**
1123
+ * Class name in optional namespace.
1124
+ */
1125
+ readonly namespaceClassName: string;
1126
+ /**
1127
+ * Object name.
1128
+ */
1129
+ readonly objectName: string;
1174
1130
  /**
1175
1131
  * Method descriptors.
1176
1132
  */
1177
1133
  readonly methodDescriptors: readonly MethodDescriptor[];
1178
1134
  }
1135
+
1179
1136
  /**
1180
- * Proxy class type with fixed constructor.
1181
- */
1182
- type ProxyClassType<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>> = (new (appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) => T) & typeof LibProxy;
1183
- /**
1184
- * Proxy parameter decorator.
1185
- *
1186
- * @param parameterDescriptor
1187
- * Parameter descriptor.
1188
- *
1189
- * @returns
1190
- * Function defining metadata for the parameter.
1191
- */
1192
- declare function ProxyParameter<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(parameterDescriptor: ParameterDescriptor): ((target: T, propertyKey: string, parameterIndex: number) => void);
1193
- /**
1194
- * Proxy method decorator.
1195
- *
1196
- * @param methodDescriptor
1197
- * Method descriptor.
1137
+ * Application utilities.
1198
1138
  *
1199
- * @returns
1200
- * Function defining metadata for the method.
1201
- */
1202
- declare function ProxyMethod<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(methodDescriptor: Omit<MethodDescriptor, "name" | "parameterDescriptors">): ((target: T, propertyKey: string, propertyDescriptor: PropertyDescriptor) => void);
1203
- /**
1204
- * Proxy class decorator.
1139
+ *@template ThrowError
1140
+ * If true, errors are reported through the throw/catch mechanism.
1205
1141
  *
1206
- * @param classDescriptor
1207
- * Class descriptor.
1142
+ * @template TError
1143
+ * Error type.
1208
1144
  *
1209
- * @returns
1210
- * Function defining metadata for the class.
1211
- */
1212
- declare function ProxyClass<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(classDescriptor?: Omit<ClassDescriptor, "name" | "methodDescriptors">): ((classType: ProxyClassType<ThrowError, TError, TInvocationContext, TBigInt, T>) => void);
1213
- /**
1214
- * Get class descriptors map.
1145
+ * @template TInvocationContext
1146
+ * Application-specific invocation context type.
1215
1147
  *
1216
- * @returns
1217
- * Class descriptors map.
1218
- */
1219
- declare function getClassDescriptorsMap(): ReadonlyMap<string, ClassDescriptor>;
1220
-
1221
- /**
1222
- * Application utilities.
1148
+ * @template TBigInt
1149
+ * Type to which big integer is mapped.
1223
1150
  */
1224
1151
  declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1152
+ #private;
1225
1153
  /**
1226
1154
  * Get the version.
1227
1155
  *
@@ -1229,19 +1157,6 @@ declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorEx
1229
1157
  * Version.
1230
1158
  */
1231
1159
  version(): string;
1232
- /**
1233
- * Provide default values for maximum width and height if required.
1234
- *
1235
- * @param maximumDimensions
1236
- * Maximum dimensions provided to function.
1237
- *
1238
- * @param invocationContext
1239
- * Invocation context.
1240
- *
1241
- * @returns
1242
- * Array of maximum width and maximum height.
1243
- */
1244
- private defaultMaximums;
1245
1160
  /**
1246
1161
  * Spill a horizontal matrix vertically to fit within a maximum width and height.
1247
1162
  *
@@ -1299,14 +1214,14 @@ declare class RegExpProxy<ThrowError extends boolean, TError extends ErrorExtend
1299
1214
  }
1300
1215
 
1301
1216
  declare abstract class CharacterSetValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1302
- private readonly _characterSetValidator;
1303
- protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetValidator: CharacterSetValidator);
1217
+ #private;
1218
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetValidator: CharacterSetValidator);
1304
1219
  validate(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<string, ThrowError, TError>;
1305
1220
  isValid(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<boolean, ThrowError, TError>;
1306
1221
  }
1307
1222
  declare abstract class CharacterSetCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1308
- private readonly _characterSetCreator;
1309
- protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetCreator: CharacterSetCreator);
1223
+ #private;
1224
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetCreator: CharacterSetCreator);
1310
1225
  create(length: number, matrixValues: Matrix<number | bigint>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<string, ThrowError, TError>;
1311
1226
  createSequence(length: number, startValue: number, count: number, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): Matrix<string>;
1312
1227
  valueFor(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<ResultError<TBigInt, ThrowError, TError>, ThrowError, TError>;
@@ -1344,22 +1259,25 @@ declare class CheckProxy<ThrowError extends boolean, TError extends ErrorExtends
1344
1259
  }
1345
1260
 
1346
1261
  declare abstract class IdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierType extends IdentifierType> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1347
- private readonly _validator;
1348
- protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, validator: IdentifierTypeValidator<TIdentifierType>);
1262
+ #private;
1263
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, validator: IdentifierTypeValidator<TIdentifierType>);
1349
1264
  protected get validator(): IdentifierTypeValidator<TIdentifierType>;
1350
1265
  }
1351
1266
  declare abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierType> {
1352
1267
  validate(matrixIdentifiers: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1353
1268
  }
1354
- declare abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, typeof IdentifierTypes.GTIN> {
1269
+ declare abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINType> {
1355
1270
  }
1356
1271
  declare abstract class NonGTINNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType = NonGTINNumericIdentifierType> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType> {
1357
1272
  }
1273
+ declare abstract class NonSerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType> {
1274
+ }
1358
1275
  declare abstract class SerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierType> {
1359
1276
  }
1360
1277
  declare abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierType> {
1361
1278
  validate(matrixIdentifiers: Matrix<string>, exclusion: Nullishable<NonNumericIdentifierValidation["exclusion"]>): MatrixResultError<string, ThrowError, TError>;
1362
1279
  }
1280
+
1363
1281
  declare class GTIN13ValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends GTINValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1364
1282
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1365
1283
  }
@@ -1378,10 +1296,11 @@ declare class GTINValidatorStaticProxy<ThrowError extends boolean, TError extend
1378
1296
  validateGTIN14(matrixGTIN14s: Matrix<string>): Matrix<string>;
1379
1297
  parseVariableMeasureRCN(format: string, matrixRCNs: Matrix<string>): MatrixResultError<number, ThrowError, TError>;
1380
1298
  }
1381
- declare class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1299
+
1300
+ declare class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1382
1301
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1383
1302
  }
1384
- declare class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1303
+ declare class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1385
1304
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1386
1305
  }
1387
1306
  declare class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1390,7 +1309,7 @@ declare class GRAIValidatorProxy<ThrowError extends boolean, TError extends Erro
1390
1309
  declare class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1391
1310
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1392
1311
  }
1393
- declare class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1312
+ declare class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1394
1313
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1395
1314
  }
1396
1315
  declare class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1399,7 +1318,7 @@ declare class GDTIValidatorProxy<ThrowError extends boolean, TError extends Erro
1399
1318
  declare class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1400
1319
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1401
1320
  }
1402
- declare class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1321
+ declare class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1403
1322
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1404
1323
  }
1405
1324
  declare class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1411,38 +1330,43 @@ declare class CPIDValidatorProxy<ThrowError extends boolean, TError extends Erro
1411
1330
  declare class GMNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1412
1331
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1413
1332
  }
1333
+
1414
1334
  declare class PrefixManagerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1415
1335
  definePrefix(prefix: string, prefixType: Nullishable<PrefixType>, tweakFactor: Nullishable<number>): Matrix<unknown>;
1416
1336
  }
1417
- declare abstract class IdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierDescriptor extends IdentifierDescriptor, TIdentifierValidation extends IdentifierValidation, TIdentifierCreator extends IdentifierCreator<TIdentifierDescriptor, TIdentifierValidation>> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1418
- private static readonly PREFIX_TYPES;
1419
- private readonly _getCreator;
1420
- protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, getCreator: (prefixManager: PrefixManager) => TIdentifierCreator);
1337
+
1338
+ declare abstract class IdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TIdentifierType extends IdentifierType, TIdentifierValidation extends IdentifierValidation, TIdentifierCreator extends IdentifierCreator<TIdentifierType, TIdentifierValidation>> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1339
+ #private;
1340
+ constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, getCreator: (prefixManager: PrefixManager) => TIdentifierCreator);
1421
1341
  protected getCreator(prefixDefinition: Matrix<unknown>): TIdentifierCreator;
1422
1342
  }
1423
- declare abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierDescriptor extends NumericIdentifierDescriptor, TNumericIdentifierCreator extends NumericIdentifierCreator<TNumericIdentifierDescriptor>> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierDescriptor, NumericIdentifierValidation, TNumericIdentifierCreator> {
1343
+ declare abstract class NumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType, TNumericIdentifierCreator extends NumericIdentifierCreator<TNumericIdentifierType>> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierType, NumericIdentifierValidation, TNumericIdentifierCreator> {
1424
1344
  create(prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1425
1345
  createSequence(prefixDefinition: Matrix<unknown>, startValue: number, count: number, sparse: Nullishable<boolean>): Matrix<string>;
1426
1346
  createAll(prefixDefinition: Matrix<unknown>): Matrix<string>;
1427
1347
  }
1428
- declare abstract class NonGTINNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierDescriptor extends NonGTINNumericIdentifierDescriptor, TNonGTINNumericIdentifierCreator extends NonGTINNumericIdentifierCreator> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierDescriptor, TNonGTINNumericIdentifierCreator> {
1348
+ declare abstract class NonGTINNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType extends NonGTINNumericIdentifierType, TNonGTINNumericIdentifierCreator extends NonGTINNumericIdentifierCreator> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonGTINNumericIdentifierType, TNonGTINNumericIdentifierCreator> {
1429
1349
  }
1430
- declare abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierDescriptor, SerializableNumericIdentifierCreator> {
1350
+ declare abstract class NonSerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNonSerializableNumericIdentifierType extends NonSerializableNumericIdentifierType, TNonGTINNumericIdentifierCreator extends NonGTINNumericIdentifierCreator> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNonSerializableNumericIdentifierType, TNonGTINNumericIdentifierCreator> {
1351
+ }
1352
+ declare abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierType, SerializableNumericIdentifierCreator> {
1431
1353
  createSerialized(prefixDefinition: Matrix<unknown>, value: number, matrixSerialComponents: Matrix<string>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1432
1354
  concatenate(baseIdentifier: string, matrixSerialComponents: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1433
1355
  }
1434
- declare abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierDescriptor, NonNumericIdentifierValidation, NonNumericIdentifierCreator> {
1356
+ declare abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierType, NonNumericIdentifierValidation, NonNumericIdentifierCreator> {
1435
1357
  create(prefixDefinition: Matrix<unknown>, matrixReferences: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1436
1358
  }
1437
- declare class GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINDescriptor, GTINCreator> {
1359
+
1360
+ declare class GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINType, GTINCreator> {
1438
1361
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1439
1362
  createGTIN14(indicatorDigit: string, prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1440
1363
  createVariableMeasureRCN(format: string, itemReference: number, matrixPricesOrWeights: Matrix<number>): MatrixResultError<string, ThrowError, TError>;
1441
1364
  }
1442
- declare class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1365
+
1366
+ declare class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1443
1367
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1444
1368
  }
1445
- declare class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1369
+ declare class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1446
1370
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1447
1371
  }
1448
1372
  declare class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1451,7 +1375,7 @@ declare class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorE
1451
1375
  declare class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1452
1376
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1453
1377
  }
1454
- declare class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1378
+ declare class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1455
1379
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1456
1380
  }
1457
1381
  declare class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1460,7 +1384,7 @@ declare class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorE
1460
1384
  declare class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1461
1385
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1462
1386
  }
1463
- declare class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1387
+ declare class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1464
1388
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1465
1389
  }
1466
1390
  declare class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1562,122 +1486,16 @@ interface FunctionLocalization extends Localization {
1562
1486
  * Documentation URL.
1563
1487
  */
1564
1488
  documentationURL: string;
1565
- }
1566
- /**
1567
- * Parameter localization.
1568
- */
1569
- interface ParameterLocalization extends Localization {
1570
- }
1571
- /**
1572
- * Localization descriptor.
1573
- */
1574
- interface LocalizationDescriptor<T extends Localization> {
1575
- /**
1576
- * Localizations map by locale.
1577
- */
1578
- readonly localizationsMap: ReadonlyMap<string, T>;
1579
- }
1580
- /**
1581
- * Proxy namespace descriptor.
1582
- */
1583
- interface ProxyNamespaceDescriptor {
1584
1489
  /**
1585
- * Namespace if any.
1490
+ * Parameters map.
1586
1491
  */
1587
- readonly namespace: string | undefined;
1492
+ parametersMap: Map<string, Localization>;
1588
1493
  }
1589
- /**
1590
- * Proxy class descriptor.
1591
- */
1592
- interface ProxyClassDescriptor extends ProxyNamespaceDescriptor {
1593
- /**
1594
- * Class name.
1595
- */
1596
- readonly className: string;
1597
- /**
1598
- * Namespace-qualified class name.
1599
- */
1600
- readonly namespaceClassName: string;
1601
- /**
1602
- * Class descriptor.
1603
- */
1604
- readonly classDescriptor: ClassDescriptor;
1605
- }
1606
- /**
1607
- * Proxy object descriptor.
1608
- */
1609
- interface ProxyObjectDescriptor extends ProxyClassDescriptor {
1610
- /**
1611
- * Object name.
1612
- */
1613
- readonly objectName: string;
1614
- }
1615
- /**
1616
- * Proxy parameter descriptor.
1617
- */
1618
- interface ProxyParameterDescriptor extends ProxyNamespaceDescriptor, LocalizationDescriptor<ParameterLocalization> {
1619
- /**
1620
- * Function name.
1621
- */
1622
- readonly parameterName: string;
1623
- /**
1624
- * Parameter descriptor.
1625
- */
1626
- readonly parameterDescriptor: BaseParameterDescriptor;
1627
- }
1628
- /**
1629
- * Proxy function descriptor.
1630
- */
1631
- interface ProxyFunctionDescriptor extends ProxyObjectDescriptor, LocalizationDescriptor<FunctionLocalization> {
1632
- /**
1633
- * Function name.
1634
- */
1635
- readonly functionName: string;
1636
- /**
1637
- * Namespace-qualified function name.
1638
- */
1639
- readonly namespaceFunctionName: string;
1640
- /**
1641
- * Proxy parameter descriptors
1642
- */
1643
- readonly proxyParameterDescriptors: ProxyParameterDescriptor[];
1644
- /**
1645
- * Method descriptor.
1646
- */
1647
- readonly methodDescriptor: MethodDescriptor;
1648
- }
1649
-
1650
1494
  /**
1651
1495
  * Abstract generator.
1652
1496
  */
1653
1497
  declare abstract class Generator {
1654
- /**
1655
- * Documentation base URL.
1656
- */
1657
- private static readonly DOCUMENTATION_BASE_URL;
1658
- /**
1659
- * Documentation path, optionally preceded by locale.
1660
- */
1661
- private static readonly DOCUMENTATION_PATH;
1662
- /**
1663
- * Locales.
1664
- */
1665
- private readonly _locales;
1666
- /**
1667
- * Default locale.
1668
- */
1669
- private readonly _defaultLocale;
1670
- /**
1671
- * Map of function localizations maps by namespace function name.
1672
- */
1673
- private readonly _functionLocalizationsMapsMap;
1674
- /**
1675
- * Map of parameter localizations maps by namespace function parameter name.
1676
- */
1677
- private readonly _parameterLocalizationsMapsMap;
1678
- /**
1679
- *
1680
- */
1498
+ #private;
1681
1499
  /**
1682
1500
  * Constructor.
1683
1501
  *
@@ -1696,50 +1514,56 @@ declare abstract class Generator {
1696
1514
  /**
1697
1515
  * Get function localization.
1698
1516
  *
1699
- * @param namespaceFunctionName
1700
- * Namespace function name.
1701
- *
1702
1517
  * @param locale
1703
1518
  * Locale.
1704
1519
  *
1520
+ * @param namespaceFunctionName
1521
+ * Namespace function name.
1522
+ *
1705
1523
  * @returns
1706
1524
  * Function localization.
1707
1525
  */
1708
- protected getFunctionLocalization(namespaceFunctionName: string, locale: string): FunctionLocalization;
1526
+ protected getFunctionLocalization(locale: string, namespaceFunctionName: string): FunctionLocalization;
1709
1527
  /**
1710
1528
  * Get parameter localization.
1711
1529
  *
1530
+ * @param locale
1531
+ * Locale.
1532
+ *
1712
1533
  * @param namespaceFunctionName
1713
1534
  * Namespace function name.
1714
1535
  *
1715
1536
  * @param parameterName
1716
1537
  * Parameter name.
1717
1538
  *
1718
- * @param locale
1719
- * Locale.
1720
- *
1721
1539
  * @returns
1722
- * Function localization.
1540
+ * Parameter localization.
1723
1541
  */
1724
- protected getParameterLocalization(namespaceFunctionName: string, parameterName: string, locale: string): ParameterLocalization;
1542
+ protected getParameterLocalization(locale: string, namespaceFunctionName: string, parameterName: string): Localization;
1725
1543
  /**
1726
1544
  * Initialize the generation of the output.
1727
1545
  */
1728
1546
  protected abstract initialize(): void;
1729
1547
  /**
1730
- * Create a proxy object.
1548
+ * Create a proxy object for a class.
1731
1549
  *
1732
- * @param proxyObjectDescriptor
1733
- * Proxy object descriptor.
1550
+ * @param classDescriptor
1551
+ * Class descriptor.
1734
1552
  */
1735
- protected abstract createProxyObject(proxyObjectDescriptor: ProxyObjectDescriptor): void;
1553
+ protected abstract createProxyObject(classDescriptor: ClassDescriptor): void;
1736
1554
  /**
1737
- * Create a proxy function.
1555
+ * Create a proxy function for a class and method.
1556
+ *
1557
+ * @param classDescriptor
1558
+ * Class descriptor.
1738
1559
  *
1739
- * @param proxyFunctionDescriptor
1740
- * Proxy function descriptor.
1560
+ * @param methodDescriptor
1561
+ * Method descriptor.
1562
+ *
1563
+ * @param functionLocalizationsMap
1564
+ * Localizations map.
1741
1565
  */
1742
- protected abstract createProxyFunction(proxyFunctionDescriptor: ProxyFunctionDescriptor): void;
1566
+ protected abstract createProxyFunction(classDescriptor: ClassDescriptor, methodDescriptor: MethodDescriptor, functionLocalizationsMap: ReadonlyMap<string, FunctionLocalization>): void;
1743
1567
  /**
1744
1568
  * Finalize the generation of the output.
1745
1569
  *
@@ -1747,23 +1571,21 @@ declare abstract class Generator {
1747
1571
  * True if successful.
1748
1572
  */
1749
1573
  protected abstract finalize(success: boolean): void | Promise<void>;
1750
- /**
1751
- * Generate localizations map.
1752
- *
1753
- * @param localizedKeyPrefix
1754
- * Localized key prefix.
1755
- *
1756
- * @param localizationCallback
1757
- * Callback to finalize localization.
1758
- *
1759
- * @returns
1760
- * Localization map.
1761
- */
1762
- private generateLocalizationsMap;
1763
1574
  /**
1764
1575
  * Generate by processing individual imports.
1765
1576
  */
1766
1577
  generate(): Promise<void>;
1767
1578
  }
1768
1579
 
1769
- export { type Address, AlphabeticProxy, AlphanumericProxy, AppExtension, type AppExtensionLocaleResources, AppUtilityProxy, type BaseParameterDescriptor, CharacterSetCreatorProxy, CharacterSetValidatorProxy, type ClassDescriptor, type ErrorExtends, type ExtendsParameterDescriptor, type FunctionLocalization, index as GS1, Generator, HexadecimalProxy, LibProxy, type Localization, type LocalizationDescriptor, type Matrix, type MatrixResultError, type MethodDescriptor, NumericProxy, type ParameterDescriptor, type ParameterLocalization, ProxyClass, type ProxyClassDescriptor, type ProxyFunctionDescriptor, ProxyMethod, type ProxyNamespaceDescriptor, type ProxyObjectDescriptor, ProxyParameter, type ProxyParameterDescriptor, type Range, RegExpProxy, type ResultError, type Sheet, type SheetAddress, type SheetRange, TransformerProxy, type Type, type TypeKey, Types, appExtensionNS, appExtensionResources, expandParameterDescriptor, getClassDescriptorsMap, i18nAppExtensionInit, i18nextAppExtension };
1580
+ /**
1581
+ * Expand a parameter descriptor to its full form with all required attributes.
1582
+ *
1583
+ * @param parameterDescriptor
1584
+ * Parameter descriptor.
1585
+ *
1586
+ * @returns
1587
+ * Parameter descriptor in its full form.
1588
+ */
1589
+ declare function expandParameterDescriptor(parameterDescriptor: ParameterDescriptor | ExtendsParameterDescriptor): ParameterDescriptor;
1590
+
1591
+ export { type Address, AlphabeticProxy, AlphanumericProxy, AppExtension, type AppExtensionLocaleResources, AppUtilityProxy, CharacterSetCreatorProxy, CharacterSetValidatorProxy, type ClassDescriptor, type ErrorExtends, type ExtendsParameterDescriptor, type FunctionLocalization, index as GS1, Generator, HexadecimalProxy, LibProxy, type Localization, type Matrix, type MatrixResultError, type MethodDescriptor, NumericProxy, type ParameterDescriptor, type Range, RegExpProxy, type ResultError, type Sheet, type SheetAddress, type SheetRange, TransformerProxy, type Type, type TypeKey, Types, appExtensionNS, appExtensionResources, expandParameterDescriptor, i18nAppExtensionInit, i18nextAppExtension };