@aidc-toolkit/app-extension 1.0.51-beta → 1.0.51

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 (182) hide show
  1. package/dist/character-set-proxy-CQCOcqR3.d.cts +473 -0
  2. package/dist/character-set-proxy-CQCOcqR3.d.ts +473 -0
  3. package/dist/chunk-46ONQV2V.js +1 -0
  4. package/dist/chunk-4BTJEN4N.js +1 -0
  5. package/dist/chunk-WLXID4YR.js +1 -0
  6. package/dist/{descriptor.d.ts → descriptor-Df-lif4q.d.cts} +13 -13
  7. package/dist/descriptor-Df-lif4q.d.ts +185 -0
  8. package/dist/generator/index.cjs +17 -0
  9. package/dist/generator/index.d.cts +224 -0
  10. package/dist/generator/index.d.ts +223 -18
  11. package/dist/generator/index.js +1 -3
  12. package/dist/gs1/index.cjs +1 -0
  13. package/dist/gs1/index.d.cts +185 -0
  14. package/dist/gs1/index.d.ts +185 -11
  15. package/dist/gs1/index.js +1 -11
  16. package/dist/index.cjs +17 -0
  17. package/dist/{locale/en/locale-resources.d.ts → index.d.cts} +98 -2
  18. package/dist/index.d.ts +847 -22
  19. package/dist/index.js +1 -7
  20. package/package.json +5 -5
  21. package/src/version.ts +1 -1
  22. package/tsconfig-src.tsbuildinfo +1 -1
  23. package/dist/app-extension-options.d.ts +0 -52
  24. package/dist/app-extension-options.d.ts.map +0 -1
  25. package/dist/app-extension-options.js +0 -2
  26. package/dist/app-extension-options.js.map +0 -1
  27. package/dist/app-extension.d.ts +0 -194
  28. package/dist/app-extension.d.ts.map +0 -1
  29. package/dist/app-extension.js +0 -141
  30. package/dist/app-extension.js.map +0 -1
  31. package/dist/app-helper-proxy.d.ts +0 -57
  32. package/dist/app-helper-proxy.d.ts.map +0 -1
  33. package/dist/app-helper-proxy.js +0 -369
  34. package/dist/app-helper-proxy.js.map +0 -1
  35. package/dist/descriptor.d.ts.map +0 -1
  36. package/dist/descriptor.js +0 -44
  37. package/dist/descriptor.js.map +0 -1
  38. package/dist/generator/functions-generator.d.ts +0 -103
  39. package/dist/generator/functions-generator.d.ts.map +0 -1
  40. package/dist/generator/functions-generator.js +0 -179
  41. package/dist/generator/functions-generator.js.map +0 -1
  42. package/dist/generator/generator.d.ts +0 -121
  43. package/dist/generator/generator.d.ts.map +0 -1
  44. package/dist/generator/generator.js +0 -186
  45. package/dist/generator/generator.js.map +0 -1
  46. package/dist/generator/index.d.ts.map +0 -1
  47. package/dist/generator/index.js.map +0 -1
  48. package/dist/generator/locale-resources-generator.d.ts +0 -2
  49. package/dist/generator/locale-resources-generator.d.ts.map +0 -1
  50. package/dist/generator/locale-resources-generator.js +0 -333
  51. package/dist/generator/locale-resources-generator.js.map +0 -1
  52. package/dist/gs1/character-set-proxy.d.ts +0 -12
  53. package/dist/gs1/character-set-proxy.d.ts.map +0 -1
  54. package/dist/gs1/character-set-proxy.js +0 -126
  55. package/dist/gs1/character-set-proxy.js.map +0 -1
  56. package/dist/gs1/check-proxy.d.ts +0 -11
  57. package/dist/gs1/check-proxy.d.ts.map +0 -1
  58. package/dist/gs1/check-proxy.js +0 -163
  59. package/dist/gs1/check-proxy.js.map +0 -1
  60. package/dist/gs1/gcp-length-proxy.d.ts +0 -11
  61. package/dist/gs1/gcp-length-proxy.d.ts.map +0 -1
  62. package/dist/gs1/gcp-length-proxy.js +0 -187
  63. package/dist/gs1/gcp-length-proxy.js.map +0 -1
  64. package/dist/gs1/gtin-creator-proxy.d.ts +0 -10
  65. package/dist/gs1/gtin-creator-proxy.d.ts.map +0 -1
  66. package/dist/gs1/gtin-creator-proxy.js +0 -85
  67. package/dist/gs1/gtin-creator-proxy.js.map +0 -1
  68. package/dist/gs1/gtin-descriptor.d.ts +0 -3
  69. package/dist/gs1/gtin-descriptor.d.ts.map +0 -1
  70. package/dist/gs1/gtin-descriptor.js +0 -8
  71. package/dist/gs1/gtin-descriptor.js.map +0 -1
  72. package/dist/gs1/gtin-validator-proxy.d.ts +0 -26
  73. package/dist/gs1/gtin-validator-proxy.d.ts.map +0 -1
  74. package/dist/gs1/gtin-validator-proxy.js +0 -256
  75. package/dist/gs1/gtin-validator-proxy.js.map +0 -1
  76. package/dist/gs1/identifier-creator-proxy.d.ts +0 -30
  77. package/dist/gs1/identifier-creator-proxy.d.ts.map +0 -1
  78. package/dist/gs1/identifier-creator-proxy.js +0 -318
  79. package/dist/gs1/identifier-creator-proxy.js.map +0 -1
  80. package/dist/gs1/identifier-descriptor.d.ts +0 -4
  81. package/dist/gs1/identifier-descriptor.d.ts.map +0 -1
  82. package/dist/gs1/identifier-descriptor.js +0 -14
  83. package/dist/gs1/identifier-descriptor.js.map +0 -1
  84. package/dist/gs1/identifier-type.d.ts +0 -22
  85. package/dist/gs1/identifier-type.d.ts.map +0 -1
  86. package/dist/gs1/identifier-type.js +0 -34
  87. package/dist/gs1/identifier-type.js.map +0 -1
  88. package/dist/gs1/identifier-validator-proxy.d.ts +0 -29
  89. package/dist/gs1/identifier-validator-proxy.d.ts.map +0 -1
  90. package/dist/gs1/identifier-validator-proxy.js +0 -212
  91. package/dist/gs1/identifier-validator-proxy.js.map +0 -1
  92. package/dist/gs1/index.d.ts.map +0 -1
  93. package/dist/gs1/index.js.map +0 -1
  94. package/dist/gs1/non-gtin-creator-proxy.d.ts +0 -37
  95. package/dist/gs1/non-gtin-creator-proxy.d.ts.map +0 -1
  96. package/dist/gs1/non-gtin-creator-proxy.js +0 -301
  97. package/dist/gs1/non-gtin-creator-proxy.js.map +0 -1
  98. package/dist/gs1/non-gtin-validator-proxy.d.ts +0 -36
  99. package/dist/gs1/non-gtin-validator-proxy.d.ts.map +0 -1
  100. package/dist/gs1/non-gtin-validator-proxy.js +0 -302
  101. package/dist/gs1/non-gtin-validator-proxy.js.map +0 -1
  102. package/dist/gs1/prefix-definition-descriptor.d.ts +0 -4
  103. package/dist/gs1/prefix-definition-descriptor.d.ts.map +0 -1
  104. package/dist/gs1/prefix-definition-descriptor.js +0 -16
  105. package/dist/gs1/prefix-definition-descriptor.js.map +0 -1
  106. package/dist/gs1/prefix-manager-proxy.d.ts +0 -8
  107. package/dist/gs1/prefix-manager-proxy.d.ts.map +0 -1
  108. package/dist/gs1/prefix-manager-proxy.js +0 -94
  109. package/dist/gs1/prefix-manager-proxy.js.map +0 -1
  110. package/dist/gs1/variable-measure-proxy.d.ts +0 -7
  111. package/dist/gs1/variable-measure-proxy.d.ts.map +0 -1
  112. package/dist/gs1/variable-measure-proxy.js +0 -114
  113. package/dist/gs1/variable-measure-proxy.js.map +0 -1
  114. package/dist/gs1/verified-by-gs1-proxy.d.ts +0 -7
  115. package/dist/gs1/verified-by-gs1-proxy.d.ts.map +0 -1
  116. package/dist/gs1/verified-by-gs1-proxy.js +0 -100
  117. package/dist/gs1/verified-by-gs1-proxy.js.map +0 -1
  118. package/dist/index.d.ts.map +0 -1
  119. package/dist/index.js.map +0 -1
  120. package/dist/lib-proxy.d.ts +0 -121
  121. package/dist/lib-proxy.d.ts.map +0 -1
  122. package/dist/lib-proxy.js +0 -259
  123. package/dist/lib-proxy.js.map +0 -1
  124. package/dist/locale/en/locale-resources.d.ts.map +0 -1
  125. package/dist/locale/en/locale-resources.js +0 -754
  126. package/dist/locale/en/locale-resources.js.map +0 -1
  127. package/dist/locale/fr/locale-resources.d.ts +0 -755
  128. package/dist/locale/fr/locale-resources.d.ts.map +0 -1
  129. package/dist/locale/fr/locale-resources.js +0 -754
  130. package/dist/locale/fr/locale-resources.js.map +0 -1
  131. package/dist/locale/i18n.d.ts +0 -27
  132. package/dist/locale/i18n.d.ts.map +0 -1
  133. package/dist/locale/i18n.js +0 -36
  134. package/dist/locale/i18n.js.map +0 -1
  135. package/dist/proxy.d.ts +0 -135
  136. package/dist/proxy.d.ts.map +0 -1
  137. package/dist/proxy.js +0 -291
  138. package/dist/proxy.js.map +0 -1
  139. package/dist/streaming.d.ts +0 -10
  140. package/dist/streaming.d.ts.map +0 -1
  141. package/dist/streaming.js +0 -2
  142. package/dist/streaming.js.map +0 -1
  143. package/dist/type.d.ts +0 -72
  144. package/dist/type.d.ts.map +0 -1
  145. package/dist/type.js +0 -2
  146. package/dist/type.js.map +0 -1
  147. package/dist/utility/character-set-descriptor.d.ts +0 -6
  148. package/dist/utility/character-set-descriptor.d.ts.map +0 -1
  149. package/dist/utility/character-set-descriptor.js +0 -28
  150. package/dist/utility/character-set-descriptor.js.map +0 -1
  151. package/dist/utility/character-set-proxy.d.ts +0 -32
  152. package/dist/utility/character-set-proxy.d.ts.map +0 -1
  153. package/dist/utility/character-set-proxy.js +0 -278
  154. package/dist/utility/character-set-proxy.js.map +0 -1
  155. package/dist/utility/index.d.ts +0 -4
  156. package/dist/utility/index.d.ts.map +0 -1
  157. package/dist/utility/index.js +0 -4
  158. package/dist/utility/index.js.map +0 -1
  159. package/dist/utility/reg-exp-proxy.d.ts +0 -8
  160. package/dist/utility/reg-exp-proxy.d.ts.map +0 -1
  161. package/dist/utility/reg-exp-proxy.js +0 -103
  162. package/dist/utility/reg-exp-proxy.js.map +0 -1
  163. package/dist/utility/string-descriptor.d.ts +0 -4
  164. package/dist/utility/string-descriptor.d.ts.map +0 -1
  165. package/dist/utility/string-descriptor.js +0 -12
  166. package/dist/utility/string-descriptor.js.map +0 -1
  167. package/dist/utility/string-proxy.d.ts +0 -7
  168. package/dist/utility/string-proxy.d.ts.map +0 -1
  169. package/dist/utility/string-proxy.js +0 -63
  170. package/dist/utility/string-proxy.js.map +0 -1
  171. package/dist/utility/transformer-descriptor.d.ts +0 -6
  172. package/dist/utility/transformer-descriptor.d.ts.map +0 -1
  173. package/dist/utility/transformer-descriptor.js +0 -24
  174. package/dist/utility/transformer-descriptor.js.map +0 -1
  175. package/dist/utility/transformer-proxy.d.ts +0 -10
  176. package/dist/utility/transformer-proxy.d.ts.map +0 -1
  177. package/dist/utility/transformer-proxy.js +0 -111
  178. package/dist/utility/transformer-proxy.js.map +0 -1
  179. package/dist/version.d.ts +0 -5
  180. package/dist/version.d.ts.map +0 -1
  181. package/dist/version.js +0 -5
  182. package/dist/version.js.map +0 -1
@@ -0,0 +1,473 @@
1
+ import { MemoryTransport, Promisable, AppDataStorage, HTTPFetch, Hyperlink, Nullishable } from '@aidc-toolkit/core';
2
+ import { StringValidation, StringValidator, CharacterSetValidator, Exclusion, CharacterSetCreator } from '@aidc-toolkit/utility';
3
+ import { Logger } from 'tslog';
4
+
5
+ /**
6
+ * Application extension options. Never instantiated; used only as extension point for custom application extension
7
+ * options to define types.
8
+ */
9
+ interface AppExtensionOptions {
10
+ /**
11
+ * If true, errors are reported through the throw/catch mechanism.
12
+ */
13
+ ThrowError: boolean;
14
+ /**
15
+ * Application error.
16
+ */
17
+ ApplicationError: object;
18
+ /**
19
+ * Invocation context.
20
+ */
21
+ InvocationContext: unknown;
22
+ /**
23
+ * Streaming context.
24
+ */
25
+ StreamingContext: unknown;
26
+ /**
27
+ * Big integer representation.
28
+ */
29
+ BigInteger: number | bigint;
30
+ }
31
+ /**
32
+ * Custom application extension options.
33
+ */
34
+ interface CustomAppExtensionOptions extends AppExtensionOptions {
35
+ }
36
+ /**
37
+ * If true, errors are reported through the throw/catch mechanism.
38
+ */
39
+ type ThrowError = CustomAppExtensionOptions["ThrowError"];
40
+ /**
41
+ * Application error type.
42
+ */
43
+ type ApplicationError = CustomAppExtensionOptions["ApplicationError"];
44
+ /**
45
+ * Invocation context type.
46
+ */
47
+ type InvocationContext = CustomAppExtensionOptions["InvocationContext"];
48
+ /**
49
+ * Streaming context type.
50
+ */
51
+ type StreamingContext = CustomAppExtensionOptions["StreamingContext"];
52
+ /**
53
+ * Big integer representation type.
54
+ */
55
+ type BigInteger = CustomAppExtensionOptions["BigInteger"];
56
+
57
+ /**
58
+ * Sheet.
59
+ */
60
+ interface Sheet {
61
+ /**
62
+ * Sheet name.
63
+ */
64
+ readonly name: string;
65
+ }
66
+ /**
67
+ * Single cell address.
68
+ */
69
+ interface Address {
70
+ /**
71
+ * Zero-indexed row.
72
+ */
73
+ readonly rowIndex: number;
74
+ /**
75
+ * Zero-indexed column.
76
+ */
77
+ readonly columnIndex: number;
78
+ }
79
+ /**
80
+ * Sheet address.
81
+ */
82
+ interface SheetAddress extends Sheet, Address {
83
+ }
84
+ /**
85
+ * Range of cells.
86
+ */
87
+ interface Range {
88
+ /**
89
+ * Start address, inclusive.
90
+ */
91
+ readonly startAddress: Address;
92
+ /**
93
+ * End address, exclusive.
94
+ */
95
+ readonly endAddress: Address;
96
+ }
97
+ /**
98
+ * Sheet range.
99
+ */
100
+ interface SheetRange extends Sheet, Range {
101
+ }
102
+ /**
103
+ * Matrix type; shorthand for defining a two-dimensional matrix (array of array) of a type.
104
+ *
105
+ * @template T
106
+ * Type.
107
+ */
108
+ type Matrix<T> = T[][];
109
+ /**
110
+ * Function singleton return, possibly including an error return. If the application extension reports errors through
111
+ * the return value, the result is the union of the return type and the error type; otherwise, it's just the return
112
+ * type.
113
+ *
114
+ * @template TResult
115
+ * Result type.
116
+ */
117
+ type SingletonResult<TResult> = ThrowError extends true ? TResult : TResult | ApplicationError;
118
+ /**
119
+ * Function matrix return, possibly including an error return in each element. If the application extension reports
120
+ * errors through the return value, the individual element result is the union of the return type and the error type;
121
+ * otherwise, it's just the return type.
122
+ *
123
+ * @template TResult
124
+ * Result type.
125
+ */
126
+ type MatrixResult<TResult> = Matrix<SingletonResult<TResult>>;
127
+
128
+ /**
129
+ * Streaming consumer callback, returned by application extension implementation.
130
+ */
131
+ type StreamingConsumerCallback<TResult> = (result: MatrixResult<TResult>) => void;
132
+ /**
133
+ * Streaming cancelled callback, passed to application extension implementation.
134
+ */
135
+ type StreamingCancelledCallback = () => void;
136
+
137
+ /**
138
+ * Library proxy.
139
+ */
140
+ declare abstract class LibProxy {
141
+ #private;
142
+ /**
143
+ * Constructor.
144
+ *
145
+ * @param appExtension
146
+ * Application extension.
147
+ */
148
+ constructor(appExtension: AppExtension);
149
+ /**
150
+ * Get the application extension.
151
+ */
152
+ get appExtension(): AppExtension;
153
+ /**
154
+ * Map big integer to another type if necessary.
155
+ *
156
+ * @param value
157
+ * Big integer value to map.
158
+ *
159
+ * @returns
160
+ * Mapped big integer value.
161
+ */
162
+ mapBigInt(value: bigint): SingletonResult<BigInteger>;
163
+ /**
164
+ * Call a singleton result function with error handling.
165
+ *
166
+ * @param callback
167
+ * Callback.
168
+ *
169
+ * @returns
170
+ * Callback return or error if errors are not thrown.
171
+ */
172
+ singletonResult<TResult>(callback: () => SingletonResult<TResult>): SingletonResult<TResult>;
173
+ /**
174
+ * Call a matrix result function with error handling.
175
+ *
176
+ * @param matrixValues
177
+ * Matrix of values.
178
+ *
179
+ * @param valueCallback
180
+ * Callback to process value.
181
+ *
182
+ * @returns
183
+ * Matrix of callback results and errors if errors are not thrown.
184
+ */
185
+ protected matrixResult<TValue, TResult>(matrixValues: Matrix<TValue>, valueCallback: (value: TValue) => SingletonResult<TResult>): MatrixResult<TResult>;
186
+ /**
187
+ * Map a matrix of validate string results to boolean. If the string is empty, the result is true, indicating that
188
+ * there is no error.
189
+ *
190
+ * @param matrixValidateResults
191
+ * Matrix of results from a call to a validate function.
192
+ *
193
+ * @returns
194
+ * Matrix of boolean values, true if corresponding string is empty.
195
+ */
196
+ protected isValidString(matrixValidateResults: MatrixResult<string>): Matrix<boolean>;
197
+ /**
198
+ * Set up a mapping and call a matrix result function with error handling.
199
+ *
200
+ * @param setUpCallback
201
+ * Callback to set up the mapping.
202
+ *
203
+ * @param matrixValues
204
+ * Matrix of values.
205
+ *
206
+ * @param valueCallback
207
+ * Callback to process value.
208
+ *
209
+ * @returns
210
+ * Matrix of callback results and errors if errors are not thrown.
211
+ */
212
+ protected setUpMatrixResult<TSetup, TValue, TResult>(setUpCallback: () => TSetup, matrixValues: Matrix<TValue>, valueCallback: (setup: TSetup, value: TValue) => SingletonResult<TResult>): MatrixResult<TResult>;
213
+ /**
214
+ * Call an array result function with error handling and map to a matrix.
215
+ *
216
+ * @param matrixValues
217
+ * Matrix of values.
218
+ *
219
+ * @param callback
220
+ * Callback.
221
+ *
222
+ * @returns
223
+ * Matrix of callback results and errors if errors are not thrown.
224
+ */
225
+ protected arrayResult<TValue, TResult>(matrixValues: Matrix<TValue>, callback: (value: TValue) => Array<SingletonResult<TResult>>): MatrixResult<TResult>;
226
+ /**
227
+ * Call a matrix result function with error handling and map a non-error result to an empty string and {@linkcode
228
+ * RangeError} to the string error message.
229
+ *
230
+ * @param matrixValues
231
+ * Matrix of values.
232
+ *
233
+ * @param callback
234
+ * Callback that either returns or throws an exception.
235
+ *
236
+ * @returns
237
+ * Matrix of strings.
238
+ */
239
+ protected matrixErrorResult<TValue>(matrixValues: Matrix<TValue>, callback: (value: TValue) => void): Matrix<string>;
240
+ /**
241
+ * Call an iterable result function with error handling and map to a matrix. Although the natural approach would be
242
+ * to map to a single-element array containing an array of *N* results (i.e., [[r0, r1, r2, ..., r*N*]]), this is
243
+ * rendered visually as a single row. The more readable approach is as a single column, so the mapping is to an
244
+ * *N*-element array of single-element result arrays (i.e., [[r0], [r1], [r2], ..., [r*N*]]).
245
+ *
246
+ * @param iterableCallback
247
+ * Iterable callback.
248
+ *
249
+ * @returns
250
+ * Matrix of callback results.
251
+ */
252
+ protected iterableResult<TResult>(iterableCallback: () => Iterable<SingletonResult<TResult>>): MatrixResult<TResult>;
253
+ }
254
+
255
+ /**
256
+ * Application extension.
257
+ */
258
+ declare abstract class AppExtension {
259
+ #private;
260
+ /**
261
+ * Application name.
262
+ */
263
+ static readonly APPLICATION_NAME = "AIDCToolkit";
264
+ /**
265
+ * Version property name.
266
+ */
267
+ static readonly VERSION_NAME: string;
268
+ /**
269
+ * Constructor.
270
+ *
271
+ * @param version
272
+ * Application version.
273
+ *
274
+ * @param maximumSequenceCount
275
+ * Maximum sequence count supported by application.
276
+ *
277
+ * @param throwError
278
+ * If true, errors are reported through the throw/catch mechanism.
279
+ */
280
+ protected constructor(version: string, maximumSequenceCount: number, throwError: ThrowError);
281
+ /**
282
+ * Initialize the application extension.
283
+ */
284
+ initialize(): Promise<void>;
285
+ /**
286
+ * Get the version.
287
+ *
288
+ * @returns
289
+ * Version.
290
+ */
291
+ get version(): string;
292
+ /**
293
+ * Determine if errors are reported through the throw/catch mechanism.
294
+ */
295
+ get throwError(): ThrowError;
296
+ /**
297
+ * Get the logger.
298
+ */
299
+ get logger(): Logger<object>;
300
+ /**
301
+ * Get the logger memory transport.
302
+ */
303
+ get memoryTransport(): MemoryTransport<object>;
304
+ /**
305
+ * Get the maximum width supported by the application.
306
+ */
307
+ abstract get maximumWidth(): number;
308
+ /**
309
+ * Get the maximum height supported by the application.
310
+ */
311
+ abstract get maximumHeight(): number;
312
+ /**
313
+ * Get a proxy instance. The use of a weak map ensures that proxies are loaded only as needed and may be garbage
314
+ * collected if required.
315
+ *
316
+ * @param ProxyConstructor
317
+ * Proxy constructor.
318
+ *
319
+ * @returns
320
+ * Proxy instance.
321
+ */
322
+ getProxy<T extends LibProxy>(ProxyConstructor: new (appExtension: AppExtension) => T): T;
323
+ /**
324
+ * Get the sheet address from an invocation context.
325
+ *
326
+ * @param invocationContext
327
+ * Invocation context.
328
+ *
329
+ * @returns
330
+ * Sheet address.
331
+ */
332
+ abstract getSheetAddress(invocationContext: InvocationContext): Promisable<SheetAddress>;
333
+ /**
334
+ * Get a parameter range from an invocation context.
335
+ *
336
+ * @param invocationContext
337
+ * Invocation context.
338
+ *
339
+ * @param parameterNumber
340
+ * Parameter number.
341
+ *
342
+ * @returns
343
+ * Sheet range or null if parameter is not a range.
344
+ */
345
+ abstract getParameterSheetRange(invocationContext: InvocationContext, parameterNumber: number): Promisable<SheetRange | null>;
346
+ /**
347
+ * Install a streaming function.
348
+ *
349
+ * @param streamingContext
350
+ * Streaming context.
351
+ *
352
+ * @param streamingCancelledCallback
353
+ * Streaming cancelled callback, called when streaming is cancelled.
354
+ *
355
+ * @returns
356
+ * Streaming consumer callback, called when stream contents updated.
357
+ */
358
+ abstract installStreaming<TResult>(streamingContext: StreamingContext, streamingCancelledCallback: StreamingCancelledCallback): StreamingConsumerCallback<TResult>;
359
+ /**
360
+ * Get a property stored within the active document.
361
+ *
362
+ * @param name
363
+ * Property name.
364
+ *
365
+ * @returns
366
+ * Property value or undefined if no value is stored under the given name.
367
+ */
368
+ abstract getDocumentProperty(name: string): Promisable<string | undefined>;
369
+ /**
370
+ * Set a property to be stored within the active document.
371
+ *
372
+ * @param name
373
+ * Property name.
374
+ *
375
+ * @param value
376
+ * Property value.
377
+ */
378
+ abstract setDocumentProperty(name: string, value: string): Promisable<void>;
379
+ /**
380
+ * Delete a property from the active document.
381
+ *
382
+ * @param name
383
+ * Property name.
384
+ */
385
+ abstract deleteDocumentProperty(name: string): Promisable<void>;
386
+ /**
387
+ * Get application data storage for the current document.
388
+ */
389
+ abstract get documentAppDataStorage(): AppDataStorage<boolean>;
390
+ /**
391
+ * Get application data storage shared across multiple documents.
392
+ */
393
+ abstract get sharedAppDataStorage(): AppDataStorage<boolean>;
394
+ /**
395
+ * Get HTTP fetch function.
396
+ */
397
+ abstract get httpFetch(): HTTPFetch;
398
+ /**
399
+ * Validate a sequence count against the maximum supported by application.
400
+ *
401
+ * @param sequenceCount
402
+ * Sequence count.
403
+ */
404
+ validateSequenceCount(sequenceCount: number): void;
405
+ /**
406
+ * Map a big integer to its representation type.
407
+ *
408
+ * @param value
409
+ * Big integer value to map.
410
+ *
411
+ * @returns
412
+ * Mapped big integer value.
413
+ */
414
+ abstract mapBigInt(value: bigint): SingletonResult<BigInteger>;
415
+ /**
416
+ * Map hyperlink results to a form suitable for the application.
417
+ *
418
+ * @param matrixHyperlinkResults
419
+ * Matrix of hyperlink results from function call.
420
+ *
421
+ * @returns
422
+ * Matrix of results in a form suitable for the application.
423
+ */
424
+ abstract mapHyperlinkResults(matrixHyperlinkResults: MatrixResult<Hyperlink>): Promisable<MatrixResult<unknown>>;
425
+ /**
426
+ * Map a range error (thrown by the library) to an application-specific error. If errors are reported through the
427
+ * throw/catch mechanism, the implementation may return the range error unmodified if that is supported.
428
+ *
429
+ * @param rangeError
430
+ * Range error.
431
+ */
432
+ abstract mapRangeError(rangeError: RangeError): ApplicationError;
433
+ /**
434
+ * Handle an error with a message; called when an exception occurs outside the control of the AIDC Toolkit library.
435
+ * Implementation must not return, most likely by throwing the message wrapped in an error type.
436
+ *
437
+ * @param message
438
+ * Message to include in the error.
439
+ */
440
+ abstract handleError(message: string): never;
441
+ }
442
+
443
+ declare abstract class StringProxy extends LibProxy {
444
+ protected validateString<TStringValidation extends StringValidation>(validator: StringValidator<TStringValidation>, matrixSs: Matrix<string>, validation?: TStringValidation): Matrix<string>;
445
+ }
446
+
447
+ declare abstract class CharacterSetValidatorProxy extends StringProxy {
448
+ #private;
449
+ constructor(appExtension: AppExtension, characterSetValidator: CharacterSetValidator);
450
+ validate(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): Matrix<string>;
451
+ isValid(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>): Matrix<boolean>;
452
+ }
453
+ declare abstract class CharacterSetCreatorProxy extends CharacterSetValidatorProxy {
454
+ #private;
455
+ constructor(appExtension: AppExtension, characterSetCreator: CharacterSetCreator);
456
+ create(length: number, matrixValues: Matrix<number | bigint>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResult<string>;
457
+ createSequence(length: number, startValue: number, count: number, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResult<string>;
458
+ valueFor(matrixSs: Matrix<string>, exclusion: Nullishable<Exclusion>, tweak: Nullishable<number | bigint>): MatrixResult<BigInteger>;
459
+ }
460
+ declare class NumericProxy extends CharacterSetCreatorProxy {
461
+ constructor(appExtension: AppExtension);
462
+ }
463
+ declare class HexadecimalProxy extends CharacterSetCreatorProxy {
464
+ constructor(appExtension: AppExtension);
465
+ }
466
+ declare class AlphabeticProxy extends CharacterSetCreatorProxy {
467
+ constructor(appExtension: AppExtension);
468
+ }
469
+ declare class AlphanumericProxy extends CharacterSetCreatorProxy {
470
+ constructor(appExtension: AppExtension);
471
+ }
472
+
473
+ export { type Address as A, type BigInteger as B, CharacterSetCreatorProxy as C, HexadecimalProxy as H, type InvocationContext as I, LibProxy as L, type Matrix as M, NumericProxy as N, type Range as R, type StreamingContext as S, type ThrowError as T, type MatrixResult as a, StringProxy as b, AlphabeticProxy as c, AlphanumericProxy as d, AppExtension as e, type AppExtensionOptions as f, type ApplicationError as g, CharacterSetValidatorProxy as h, type CustomAppExtensionOptions as i, type Sheet as j, type SheetAddress as k, type SheetRange as l, type SingletonResult as m, type StreamingCancelledCallback as n, type StreamingConsumerCallback as o };