@aidc-toolkit/app-extension 1.0.26-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/index.d.cts 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, GTINLevel, NonGTINNumericIdentifierType, NonSerializableNumericIdentifierType, SerializableNumericIdentifierType, NonNumericIdentifierType, NonNumericIdentifierValidation, PrefixType, NumericIdentifierCreator, IdentifierValidation, IdentifierCreator, PrefixManager, NumericIdentifierValidation, GTINCreator, NonGTINNumericIdentifierCreator, SerializableNumericIdentifierCreator, NonNumericIdentifierCreator } 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
  *
@@ -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
  *
@@ -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
  *
@@ -1178,11 +1132,41 @@ interface ClassDescriptor extends Descriptor {
1178
1132
  }
1179
1133
  /**
1180
1134
  * Proxy class type with fixed constructor.
1135
+ *
1136
+ * @template ThrowError
1137
+ * If true, errors are reported through the throw/catch mechanism.
1138
+ *
1139
+ * @template TError
1140
+ * Error type.
1141
+ *
1142
+ * @template TInvocationContext
1143
+ * Application-specific invocation context type.
1144
+ *
1145
+ * @template TBigInt
1146
+ * Type to which big integer is mapped.
1147
+ *
1148
+ * @template T
1149
+ * Proxy type.
1181
1150
  */
1182
1151
  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
1152
  /**
1184
1153
  * Proxy parameter decorator.
1185
1154
  *
1155
+ * @template ThrowError
1156
+ * If true, errors are reported through the throw/catch mechanism.
1157
+ *
1158
+ * @template TError
1159
+ * Error type.
1160
+ *
1161
+ * @template TInvocationContext
1162
+ * Application-specific invocation context type.
1163
+ *
1164
+ * @template TBigInt
1165
+ * Type to which big integer is mapped.
1166
+ *
1167
+ * @template T
1168
+ * Proxy type.
1169
+ *
1186
1170
  * @param parameterDescriptor
1187
1171
  * Parameter descriptor.
1188
1172
  *
@@ -1193,6 +1177,21 @@ declare function ProxyParameter<ThrowError extends boolean, TError extends Error
1193
1177
  /**
1194
1178
  * Proxy method decorator.
1195
1179
  *
1180
+ * @template ThrowError
1181
+ * If true, errors are reported through the throw/catch mechanism.
1182
+ *
1183
+ * @template TError
1184
+ * Error type.
1185
+ *
1186
+ * @template TInvocationContext
1187
+ * Application-specific invocation context type.
1188
+ *
1189
+ * @template TBigInt
1190
+ * Type to which big integer is mapped.
1191
+ *
1192
+ * @template T
1193
+ * Proxy type.
1194
+ *
1196
1195
  * @param methodDescriptor
1197
1196
  * Method descriptor.
1198
1197
  *
@@ -1203,6 +1202,21 @@ declare function ProxyMethod<ThrowError extends boolean, TError extends ErrorExt
1203
1202
  /**
1204
1203
  * Proxy class decorator.
1205
1204
  *
1205
+ * @template ThrowError
1206
+ * If true, errors are reported through the throw/catch mechanism.
1207
+ *
1208
+ * @template TError
1209
+ * Error type.
1210
+ *
1211
+ * @template TInvocationContext
1212
+ * Application-specific invocation context type.
1213
+ *
1214
+ * @template TBigInt
1215
+ * Type to which big integer is mapped.
1216
+ *
1217
+ * @template T
1218
+ * Proxy type.
1219
+ *
1206
1220
  * @param classDescriptor
1207
1221
  * Class descriptor.
1208
1222
  *
@@ -1220,8 +1234,21 @@ declare function getClassDescriptorsMap(): ReadonlyMap<string, ClassDescriptor>;
1220
1234
 
1221
1235
  /**
1222
1236
  * Application utilities.
1237
+ *
1238
+ *@template ThrowError
1239
+ * If true, errors are reported through the throw/catch mechanism.
1240
+ *
1241
+ * @template TError
1242
+ * Error type.
1243
+ *
1244
+ * @template TInvocationContext
1245
+ * Application-specific invocation context type.
1246
+ *
1247
+ * @template TBigInt
1248
+ * Type to which big integer is mapped.
1223
1249
  */
1224
1250
  declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1251
+ #private;
1225
1252
  /**
1226
1253
  * Get the version.
1227
1254
  *
@@ -1229,19 +1256,6 @@ declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorEx
1229
1256
  * Version.
1230
1257
  */
1231
1258
  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
1259
  /**
1246
1260
  * Spill a horizontal matrix vertically to fit within a maximum width and height.
1247
1261
  *
@@ -1299,13 +1313,13 @@ declare class RegExpProxy<ThrowError extends boolean, TError extends ErrorExtend
1299
1313
  }
1300
1314
 
1301
1315
  declare abstract class CharacterSetValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends StringProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1302
- private readonly _characterSetValidator;
1316
+ #private;
1303
1317
  protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetValidator: CharacterSetValidator);
1304
1318
  validate(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<string, ThrowError, TError>;
1305
1319
  isValid(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): MatrixResultError<boolean, ThrowError, TError>;
1306
1320
  }
1307
1321
  declare abstract class CharacterSetCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends CharacterSetValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1308
- private readonly _characterSetCreator;
1322
+ #private;
1309
1323
  protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, characterSetCreator: CharacterSetCreator);
1310
1324
  create(length: number, matrixValues: Matrix<number | bigint>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResultError<string, ThrowError, TError>;
1311
1325
  createSequence(length: number, startValue: number, count: number, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): Matrix<string>;
@@ -1344,17 +1358,19 @@ declare class CheckProxy<ThrowError extends boolean, TError extends ErrorExtends
1344
1358
  }
1345
1359
 
1346
1360
  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;
1361
+ #private;
1348
1362
  protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, validator: IdentifierTypeValidator<TIdentifierType>);
1349
1363
  protected get validator(): IdentifierTypeValidator<TIdentifierType>;
1350
1364
  }
1351
1365
  declare abstract class NumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, TNumericIdentifierType extends NumericIdentifierType> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, TNumericIdentifierType> {
1352
1366
  validate(matrixIdentifiers: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1353
1367
  }
1354
- declare abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, typeof IdentifierTypes.GTIN> {
1368
+ declare abstract class GTINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINType> {
1355
1369
  }
1356
1370
  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
1371
  }
1372
+ declare abstract class NonSerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType> {
1373
+ }
1358
1374
  declare abstract class SerializableNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierType> {
1359
1375
  }
1360
1376
  declare abstract class NonNumericIdentifierValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierType> {
@@ -1378,10 +1394,10 @@ declare class GTINValidatorStaticProxy<ThrowError extends boolean, TError extend
1378
1394
  validateGTIN14(matrixGTIN14s: Matrix<string>): Matrix<string>;
1379
1395
  parseVariableMeasureRCN(format: string, matrixRCNs: Matrix<string>): MatrixResultError<number, ThrowError, TError>;
1380
1396
  }
1381
- declare class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1397
+ declare class GLNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1382
1398
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1383
1399
  }
1384
- declare class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1400
+ declare class SSCCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1385
1401
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1386
1402
  }
1387
1403
  declare class GRAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1390,7 +1406,7 @@ declare class GRAIValidatorProxy<ThrowError extends boolean, TError extends Erro
1390
1406
  declare class GIAIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1391
1407
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1392
1408
  }
1393
- declare class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1409
+ declare class GSRNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1394
1410
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1395
1411
  }
1396
1412
  declare class GDTIValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1399,7 +1415,7 @@ declare class GDTIValidatorProxy<ThrowError extends boolean, TError extends Erro
1399
1415
  declare class GINCValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1400
1416
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1401
1417
  }
1402
- declare class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1418
+ declare class GSINValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1403
1419
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1404
1420
  }
1405
1421
  declare class GCNValidatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierValidatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1414,35 +1430,36 @@ declare class GMNValidatorProxy<ThrowError extends boolean, TError extends Error
1414
1430
  declare class PrefixManagerProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1415
1431
  definePrefix(prefix: string, prefixType: Nullishable<PrefixType>, tweakFactor: Nullishable<number>): Matrix<unknown>;
1416
1432
  }
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;
1433
+ 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> {
1434
+ #private;
1420
1435
  protected constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>, getCreator: (prefixManager: PrefixManager) => TIdentifierCreator);
1421
1436
  protected getCreator(prefixDefinition: Matrix<unknown>): TIdentifierCreator;
1422
1437
  }
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> {
1438
+ 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
1439
  create(prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1425
1440
  createSequence(prefixDefinition: Matrix<unknown>, startValue: number, count: number, sparse: Nullishable<boolean>): Matrix<string>;
1426
1441
  createAll(prefixDefinition: Matrix<unknown>): Matrix<string>;
1427
1442
  }
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> {
1443
+ 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> {
1444
+ }
1445
+ 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> {
1429
1446
  }
1430
- declare abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierDescriptor, SerializableNumericIdentifierCreator> {
1447
+ declare abstract class SerializableNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, SerializableNumericIdentifierType, SerializableNumericIdentifierCreator> {
1431
1448
  createSerialized(prefixDefinition: Matrix<unknown>, value: number, matrixSerialComponents: Matrix<string>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1432
1449
  concatenate(baseIdentifier: string, matrixSerialComponents: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1433
1450
  }
1434
- declare abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierDescriptor, NonNumericIdentifierValidation, NonNumericIdentifierCreator> {
1451
+ declare abstract class NonNumericIdentifierCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends IdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonNumericIdentifierType, NonNumericIdentifierValidation, NonNumericIdentifierCreator> {
1435
1452
  create(prefixDefinition: Matrix<unknown>, matrixReferences: Matrix<string>): MatrixResultError<string, ThrowError, TError>;
1436
1453
  }
1437
- declare class GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINDescriptor, GTINCreator> {
1454
+ declare class GTINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, GTINType, GTINCreator> {
1438
1455
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1439
1456
  createGTIN14(indicatorDigit: string, prefixDefinition: Matrix<unknown>, matrixValues: Matrix<number | bigint>, sparse: Nullishable<boolean>): MatrixResultError<string, ThrowError, TError>;
1440
1457
  createVariableMeasureRCN(format: string, itemReference: number, matrixPricesOrWeights: Matrix<number>): MatrixResultError<string, ThrowError, TError>;
1441
1458
  }
1442
- declare class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1459
+ declare class GLNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1443
1460
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1444
1461
  }
1445
- declare class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1462
+ declare class SSCCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1446
1463
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1447
1464
  }
1448
1465
  declare class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1451,7 +1468,7 @@ declare class GRAICreatorProxy<ThrowError extends boolean, TError extends ErrorE
1451
1468
  declare class GIAICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1452
1469
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1453
1470
  }
1454
- declare class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1471
+ declare class GSRNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1455
1472
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1456
1473
  }
1457
1474
  declare class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1460,7 +1477,7 @@ declare class GDTICreatorProxy<ThrowError extends boolean, TError extends ErrorE
1460
1477
  declare class GINCCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
1461
1478
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1462
1479
  }
1463
- declare class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonGTINNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonGTINNumericIdentifierDescriptor, NonGTINNumericIdentifierCreator> {
1480
+ declare class GSINCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends NonSerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt, NonSerializableNumericIdentifierType, NonGTINNumericIdentifierCreator> {
1464
1481
  constructor(appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>);
1465
1482
  }
1466
1483
  declare class GCNCreatorProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends SerializableNumericIdentifierCreatorProxy<ThrowError, TError, TInvocationContext, TBigInt> {
@@ -1570,12 +1587,15 @@ interface ParameterLocalization extends Localization {
1570
1587
  }
1571
1588
  /**
1572
1589
  * Localization descriptor.
1590
+ *
1591
+ * @param TLocalization
1592
+ * Localization type.
1573
1593
  */
1574
- interface LocalizationDescriptor<T extends Localization> {
1594
+ interface LocalizationDescriptor<TLocalization extends Localization> {
1575
1595
  /**
1576
1596
  * Localizations map by locale.
1577
1597
  */
1578
- readonly localizationsMap: ReadonlyMap<string, T>;
1598
+ readonly localizationsMap: ReadonlyMap<string, TLocalization>;
1579
1599
  }
1580
1600
  /**
1581
1601
  * Proxy namespace descriptor.
@@ -1651,30 +1671,7 @@ interface ProxyFunctionDescriptor extends ProxyObjectDescriptor, LocalizationDes
1651
1671
  * Abstract generator.
1652
1672
  */
1653
1673
  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;
1674
+ #private;
1678
1675
  /**
1679
1676
  *
1680
1677
  */
@@ -1747,19 +1744,6 @@ declare abstract class Generator {
1747
1744
  * True if successful.
1748
1745
  */
1749
1746
  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
1747
  /**
1764
1748
  * Generate by processing individual imports.
1765
1749
  */