@genesislcap/foundation-utils 14.195.1-alpha-2acf4e6.0 → 14.195.1
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/custom-elements.json +697 -697
- package/package.json +10 -10
|
@@ -159,6 +159,257 @@
|
|
|
159
159
|
}
|
|
160
160
|
]
|
|
161
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"kind": "javascript-module",
|
|
164
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
165
|
+
"declarations": [
|
|
166
|
+
{
|
|
167
|
+
"kind": "class",
|
|
168
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
169
|
+
"name": "InMemoryDatabase",
|
|
170
|
+
"members": [
|
|
171
|
+
{
|
|
172
|
+
"kind": "field",
|
|
173
|
+
"name": "isWorking",
|
|
174
|
+
"type": {
|
|
175
|
+
"text": "boolean"
|
|
176
|
+
},
|
|
177
|
+
"privacy": "public",
|
|
178
|
+
"default": "false"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "field",
|
|
182
|
+
"name": "records",
|
|
183
|
+
"type": {
|
|
184
|
+
"text": "Record<string, T>"
|
|
185
|
+
},
|
|
186
|
+
"privacy": "private",
|
|
187
|
+
"default": "{}"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"kind": "field",
|
|
191
|
+
"name": "beforeUpdateListeners",
|
|
192
|
+
"privacy": "private"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "field",
|
|
196
|
+
"name": "afterUpdateListeners",
|
|
197
|
+
"privacy": "private"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"kind": "method",
|
|
201
|
+
"name": "create",
|
|
202
|
+
"privacy": "public",
|
|
203
|
+
"return": {
|
|
204
|
+
"type": {
|
|
205
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"parameters": [
|
|
209
|
+
{
|
|
210
|
+
"name": "newValue",
|
|
211
|
+
"type": {
|
|
212
|
+
"text": "Omit<T, 'id'>"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"kind": "method",
|
|
219
|
+
"name": "read",
|
|
220
|
+
"privacy": "public",
|
|
221
|
+
"return": {
|
|
222
|
+
"type": {
|
|
223
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"parameters": [
|
|
227
|
+
{
|
|
228
|
+
"name": "id",
|
|
229
|
+
"type": {
|
|
230
|
+
"text": "string"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"kind": "method",
|
|
237
|
+
"name": "update",
|
|
238
|
+
"privacy": "public",
|
|
239
|
+
"return": {
|
|
240
|
+
"type": {
|
|
241
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"parameters": [
|
|
245
|
+
{
|
|
246
|
+
"name": "id",
|
|
247
|
+
"type": {
|
|
248
|
+
"text": "string"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "newValue",
|
|
253
|
+
"type": {
|
|
254
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "method",
|
|
261
|
+
"name": "delete",
|
|
262
|
+
"privacy": "public",
|
|
263
|
+
"return": {
|
|
264
|
+
"type": {
|
|
265
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"parameters": [
|
|
269
|
+
{
|
|
270
|
+
"name": "id",
|
|
271
|
+
"type": {
|
|
272
|
+
"text": "string"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"kind": "method",
|
|
279
|
+
"name": "visit",
|
|
280
|
+
"privacy": "public",
|
|
281
|
+
"return": {
|
|
282
|
+
"type": {
|
|
283
|
+
"text": "Promise<void>"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"parameters": [
|
|
287
|
+
{
|
|
288
|
+
"name": "visitor",
|
|
289
|
+
"type": {
|
|
290
|
+
"text": "(record: T) => void"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"kind": "method",
|
|
297
|
+
"name": "onBeforeUpdate",
|
|
298
|
+
"privacy": "public",
|
|
299
|
+
"return": {
|
|
300
|
+
"type": {
|
|
301
|
+
"text": "() => void"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"parameters": [
|
|
305
|
+
{
|
|
306
|
+
"name": "listener",
|
|
307
|
+
"type": {
|
|
308
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"kind": "method",
|
|
315
|
+
"name": "onAfterUpdate",
|
|
316
|
+
"privacy": "public",
|
|
317
|
+
"return": {
|
|
318
|
+
"type": {
|
|
319
|
+
"text": "() => void"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"parameters": [
|
|
323
|
+
{
|
|
324
|
+
"name": "listener",
|
|
325
|
+
"type": {
|
|
326
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"exports": [
|
|
335
|
+
{
|
|
336
|
+
"kind": "js",
|
|
337
|
+
"name": "InMemoryDatabase",
|
|
338
|
+
"declaration": {
|
|
339
|
+
"name": "InMemoryDatabase",
|
|
340
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
]
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"kind": "javascript-module",
|
|
347
|
+
"path": "src/data/index.ts",
|
|
348
|
+
"declarations": [],
|
|
349
|
+
"exports": [
|
|
350
|
+
{
|
|
351
|
+
"kind": "js",
|
|
352
|
+
"name": "*",
|
|
353
|
+
"declaration": {
|
|
354
|
+
"name": "*",
|
|
355
|
+
"package": "./inMemoryDatabase"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"kind": "javascript-module",
|
|
362
|
+
"path": "src/decorators/index.ts",
|
|
363
|
+
"declarations": [],
|
|
364
|
+
"exports": [
|
|
365
|
+
{
|
|
366
|
+
"kind": "js",
|
|
367
|
+
"name": "*",
|
|
368
|
+
"declaration": {
|
|
369
|
+
"name": "*",
|
|
370
|
+
"package": "./renderOnChange"
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"kind": "javascript-module",
|
|
377
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
378
|
+
"declarations": [
|
|
379
|
+
{
|
|
380
|
+
"kind": "function",
|
|
381
|
+
"name": "renderOnChange",
|
|
382
|
+
"parameters": [
|
|
383
|
+
{
|
|
384
|
+
"name": "target",
|
|
385
|
+
"type": {
|
|
386
|
+
"text": "FASTElement & { render(): void }"
|
|
387
|
+
},
|
|
388
|
+
"description": "The target to define the property change handler on."
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "name",
|
|
392
|
+
"type": {
|
|
393
|
+
"text": "string"
|
|
394
|
+
},
|
|
395
|
+
"description": "The property name."
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
399
|
+
"privacy": "public"
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
"exports": [
|
|
403
|
+
{
|
|
404
|
+
"kind": "js",
|
|
405
|
+
"name": "renderOnChange",
|
|
406
|
+
"declaration": {
|
|
407
|
+
"name": "renderOnChange",
|
|
408
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
]
|
|
412
|
+
},
|
|
162
413
|
{
|
|
163
414
|
"kind": "javascript-module",
|
|
164
415
|
"path": "src/design-system/design-system.ts",
|
|
@@ -211,7 +462,7 @@
|
|
|
211
462
|
},
|
|
212
463
|
{
|
|
213
464
|
"kind": "javascript-module",
|
|
214
|
-
"path": "src/
|
|
465
|
+
"path": "src/directives/index.ts",
|
|
215
466
|
"declarations": [],
|
|
216
467
|
"exports": [
|
|
217
468
|
{
|
|
@@ -219,7 +470,7 @@
|
|
|
219
470
|
"name": "*",
|
|
220
471
|
"declaration": {
|
|
221
472
|
"name": "*",
|
|
222
|
-
"package": "./
|
|
473
|
+
"package": "./sync"
|
|
223
474
|
}
|
|
224
475
|
},
|
|
225
476
|
{
|
|
@@ -227,7 +478,30 @@
|
|
|
227
478
|
"name": "*",
|
|
228
479
|
"declaration": {
|
|
229
480
|
"name": "*",
|
|
230
|
-
"package": "./
|
|
481
|
+
"package": "./when-else"
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"kind": "javascript-module",
|
|
488
|
+
"path": "src/env/index.ts",
|
|
489
|
+
"declarations": [],
|
|
490
|
+
"exports": [
|
|
491
|
+
{
|
|
492
|
+
"kind": "js",
|
|
493
|
+
"name": "*",
|
|
494
|
+
"declaration": {
|
|
495
|
+
"name": "*",
|
|
496
|
+
"package": "./is-dev"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"kind": "js",
|
|
501
|
+
"name": "*",
|
|
502
|
+
"declaration": {
|
|
503
|
+
"name": "*",
|
|
504
|
+
"package": "./variables"
|
|
231
505
|
}
|
|
232
506
|
}
|
|
233
507
|
]
|
|
@@ -367,706 +641,273 @@
|
|
|
367
641
|
"kind": "variable",
|
|
368
642
|
"name": "DEFAULT_USER",
|
|
369
643
|
"type": {
|
|
370
|
-
"text": "string"
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"kind": "variable",
|
|
375
|
-
"name": "_DEFAULT_USER",
|
|
376
|
-
"type": {
|
|
377
|
-
"text": "string"
|
|
378
|
-
},
|
|
379
|
-
"description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
380
|
-
"privacy": "public"
|
|
381
|
-
}
|
|
382
|
-
],
|
|
383
|
-
"exports": [
|
|
384
|
-
{
|
|
385
|
-
"kind": "js",
|
|
386
|
-
"name": "SOCKET_EXT",
|
|
387
|
-
"declaration": {
|
|
388
|
-
"name": "_SOCKET_EXT",
|
|
389
|
-
"module": "src/env/variables.ts"
|
|
390
|
-
}
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
"kind": "js",
|
|
394
|
-
"name": "FORCE_HTTP",
|
|
395
|
-
"declaration": {
|
|
396
|
-
"name": "_FORCE_HTTP",
|
|
397
|
-
"module": "src/env/variables.ts"
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
"kind": "js",
|
|
402
|
-
"name": "GENESIS_SOCKET_URL",
|
|
403
|
-
"declaration": {
|
|
404
|
-
"name": "GENESIS_SOCKET_URL",
|
|
405
|
-
"module": "src/env/variables.ts"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"kind": "js",
|
|
410
|
-
"name": "API_HOST",
|
|
411
|
-
"declaration": {
|
|
412
|
-
"name": "_API_HOST",
|
|
413
|
-
"module": "src/env/variables.ts"
|
|
414
|
-
}
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"kind": "js",
|
|
418
|
-
"name": "HTTP_CONFIG",
|
|
419
|
-
"declaration": {
|
|
420
|
-
"name": "_HTTP_CONFIG",
|
|
421
|
-
"module": "src/env/variables.ts"
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"kind": "js",
|
|
426
|
-
"name": "DEFAULT_ORGANISATION",
|
|
427
|
-
"declaration": {
|
|
428
|
-
"name": "_DEFAULT_ORGANISATION",
|
|
429
|
-
"module": "src/env/variables.ts"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"kind": "js",
|
|
434
|
-
"name": "DEFAULT_PASSWORD",
|
|
435
|
-
"declaration": {
|
|
436
|
-
"name": "_DEFAULT_PASSWORD",
|
|
437
|
-
"module": "src/env/variables.ts"
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"kind": "js",
|
|
442
|
-
"name": "DEFAULT_USER",
|
|
443
|
-
"declaration": {
|
|
444
|
-
"name": "_DEFAULT_USER",
|
|
445
|
-
"module": "src/env/variables.ts"
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
]
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"kind": "javascript-module",
|
|
452
|
-
"path": "src/error/errorMap.ts",
|
|
453
|
-
"declarations": [
|
|
454
|
-
{
|
|
455
|
-
"kind": "class",
|
|
456
|
-
"description": "",
|
|
457
|
-
"name": "DefaultErrorMap",
|
|
458
|
-
"members": [
|
|
459
|
-
{
|
|
460
|
-
"kind": "field",
|
|
461
|
-
"name": "map",
|
|
462
|
-
"privacy": "private",
|
|
463
|
-
"default": "new Map<keyof TErrorDetailMap, Error>()"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"kind": "field",
|
|
467
|
-
"name": "lastError",
|
|
468
|
-
"type": {
|
|
469
|
-
"text": "Error"
|
|
470
|
-
},
|
|
471
|
-
"description": "{@inheritDoc ErrorMap.lastError}"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"kind": "method",
|
|
475
|
-
"name": "set",
|
|
476
|
-
"return": {
|
|
477
|
-
"type": {
|
|
478
|
-
"text": "void"
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
"parameters": [
|
|
482
|
-
{
|
|
483
|
-
"name": "key",
|
|
484
|
-
"type": {
|
|
485
|
-
"text": "keyof TErrorDetailMap"
|
|
486
|
-
}
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"name": "error",
|
|
490
|
-
"type": {
|
|
491
|
-
"text": "Error"
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
],
|
|
495
|
-
"description": "{@inheritDoc ErrorMap.set}"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"kind": "method",
|
|
499
|
-
"name": "get",
|
|
500
|
-
"return": {
|
|
501
|
-
"type": {
|
|
502
|
-
"text": ""
|
|
503
|
-
}
|
|
504
|
-
},
|
|
505
|
-
"parameters": [
|
|
506
|
-
{
|
|
507
|
-
"name": "key",
|
|
508
|
-
"type": {
|
|
509
|
-
"text": "keyof TErrorDetailMap"
|
|
510
|
-
},
|
|
511
|
-
"description": "The key."
|
|
512
|
-
}
|
|
513
|
-
],
|
|
514
|
-
"description": "Get an error by key.",
|
|
515
|
-
"privacy": "public"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
"kind": "method",
|
|
519
|
-
"name": "has",
|
|
520
|
-
"return": {
|
|
521
|
-
"type": {
|
|
522
|
-
"text": ""
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
"parameters": [
|
|
526
|
-
{
|
|
527
|
-
"name": "key",
|
|
528
|
-
"type": {
|
|
529
|
-
"text": "keyof TErrorDetailMap"
|
|
530
|
-
},
|
|
531
|
-
"description": "The key."
|
|
532
|
-
}
|
|
533
|
-
],
|
|
534
|
-
"description": "Has an error for key.",
|
|
535
|
-
"privacy": "public"
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
"kind": "method",
|
|
539
|
-
"name": "delete",
|
|
540
|
-
"return": {
|
|
541
|
-
"type": {
|
|
542
|
-
"text": ""
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
"parameters": [
|
|
546
|
-
{
|
|
547
|
-
"name": "key",
|
|
548
|
-
"type": {
|
|
549
|
-
"text": "keyof TErrorDetailMap"
|
|
550
|
-
},
|
|
551
|
-
"description": "The key."
|
|
552
|
-
}
|
|
553
|
-
],
|
|
554
|
-
"description": "Delete an error.",
|
|
555
|
-
"privacy": "public"
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"kind": "method",
|
|
559
|
-
"name": "clear",
|
|
560
|
-
"description": "Clear errors.",
|
|
561
|
-
"privacy": "public"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"kind": "field",
|
|
565
|
-
"name": "size",
|
|
566
|
-
"type": {
|
|
567
|
-
"text": "number"
|
|
568
|
-
},
|
|
569
|
-
"description": "The size of the error map.",
|
|
570
|
-
"return": {
|
|
571
|
-
"type": {
|
|
572
|
-
"text": ""
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"privacy": "public",
|
|
576
|
-
"readonly": true
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"kind": "method",
|
|
580
|
-
"name": "values",
|
|
581
|
-
"privacy": "public"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
"kind": "field",
|
|
585
|
-
"name": "messages",
|
|
586
|
-
"type": {
|
|
587
|
-
"text": "string"
|
|
588
|
-
},
|
|
589
|
-
"description": "{@inheritDoc ErrorMap.messages}",
|
|
590
|
-
"readonly": true
|
|
591
|
-
}
|
|
592
|
-
]
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
"kind": "function",
|
|
596
|
-
"name": "createErrorMap",
|
|
597
|
-
"return": {
|
|
598
|
-
"type": {
|
|
599
|
-
"text": ""
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
"parameters": [
|
|
603
|
-
{
|
|
604
|
-
"name": "logger",
|
|
605
|
-
"type": {
|
|
606
|
-
"text": "ErrorMapLogger"
|
|
607
|
-
},
|
|
608
|
-
"description": "A logger error method reference."
|
|
609
|
-
}
|
|
610
|
-
],
|
|
611
|
-
"description": "A factory to create the error map.",
|
|
612
|
-
"privacy": "public"
|
|
613
|
-
}
|
|
614
|
-
],
|
|
615
|
-
"exports": [
|
|
616
|
-
{
|
|
617
|
-
"kind": "js",
|
|
618
|
-
"name": "DefaultErrorMap",
|
|
619
|
-
"declaration": {
|
|
620
|
-
"name": "DefaultErrorMap",
|
|
621
|
-
"module": "src/error/errorMap.ts"
|
|
622
|
-
}
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"kind": "js",
|
|
626
|
-
"name": "createErrorMap",
|
|
627
|
-
"declaration": {
|
|
628
|
-
"name": "createErrorMap",
|
|
629
|
-
"module": "src/error/errorMap.ts"
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
]
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
"kind": "javascript-module",
|
|
636
|
-
"path": "src/error/index.ts",
|
|
637
|
-
"declarations": [],
|
|
638
|
-
"exports": [
|
|
639
|
-
{
|
|
640
|
-
"kind": "js",
|
|
641
|
-
"name": "*",
|
|
642
|
-
"declaration": {
|
|
643
|
-
"name": "*",
|
|
644
|
-
"package": "./errorMap"
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
]
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"kind": "javascript-module",
|
|
651
|
-
"path": "src/formatters/datetime.ts",
|
|
652
|
-
"declarations": [
|
|
653
|
-
{
|
|
654
|
-
"kind": "function",
|
|
655
|
-
"name": "formatDateTimestamp",
|
|
656
|
-
"return": {
|
|
657
|
-
"type": {
|
|
658
|
-
"text": "string"
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
"parameters": [
|
|
662
|
-
{
|
|
663
|
-
"name": "timestamp",
|
|
664
|
-
"type": {
|
|
665
|
-
"text": "number"
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
],
|
|
669
|
-
"description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
|
|
670
|
-
"privacy": "public"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"kind": "function",
|
|
674
|
-
"name": "formatDateTimeTimestamp",
|
|
675
|
-
"return": {
|
|
676
|
-
"type": {
|
|
677
|
-
"text": "string"
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
|
-
"parameters": [
|
|
681
|
-
{
|
|
682
|
-
"name": "timestamp",
|
|
683
|
-
"type": {
|
|
684
|
-
"text": "number"
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
],
|
|
688
|
-
"description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
|
|
689
|
-
"privacy": "public"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
"kind": "function",
|
|
693
|
-
"name": "formatTimestamp",
|
|
694
|
-
"return": {
|
|
695
|
-
"type": {
|
|
696
|
-
"text": "string"
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
|
-
"parameters": [
|
|
700
|
-
{
|
|
701
|
-
"name": "timestamp",
|
|
702
|
-
"type": {
|
|
703
|
-
"text": "number"
|
|
704
|
-
},
|
|
705
|
-
"description": "The UNIX Timestamp."
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"name": "withTime",
|
|
709
|
-
"type": {
|
|
710
|
-
"text": "boolean"
|
|
711
|
-
},
|
|
712
|
-
"description": "The flag to determine if formatted value should contain 'time' info."
|
|
713
|
-
}
|
|
714
|
-
],
|
|
715
|
-
"description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
|
|
644
|
+
"text": "string"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"kind": "variable",
|
|
649
|
+
"name": "_DEFAULT_USER",
|
|
650
|
+
"type": {
|
|
651
|
+
"text": "string"
|
|
652
|
+
},
|
|
653
|
+
"description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
|
|
716
654
|
"privacy": "public"
|
|
717
655
|
}
|
|
718
656
|
],
|
|
719
657
|
"exports": [
|
|
720
658
|
{
|
|
721
659
|
"kind": "js",
|
|
722
|
-
"name": "
|
|
660
|
+
"name": "SOCKET_EXT",
|
|
723
661
|
"declaration": {
|
|
724
|
-
"name": "
|
|
725
|
-
"module": "src/
|
|
662
|
+
"name": "_SOCKET_EXT",
|
|
663
|
+
"module": "src/env/variables.ts"
|
|
726
664
|
}
|
|
727
665
|
},
|
|
728
666
|
{
|
|
729
667
|
"kind": "js",
|
|
730
|
-
"name": "
|
|
668
|
+
"name": "FORCE_HTTP",
|
|
731
669
|
"declaration": {
|
|
732
|
-
"name": "
|
|
733
|
-
"module": "src/
|
|
670
|
+
"name": "_FORCE_HTTP",
|
|
671
|
+
"module": "src/env/variables.ts"
|
|
734
672
|
}
|
|
735
673
|
},
|
|
736
674
|
{
|
|
737
675
|
"kind": "js",
|
|
738
|
-
"name": "
|
|
676
|
+
"name": "GENESIS_SOCKET_URL",
|
|
739
677
|
"declaration": {
|
|
740
|
-
"name": "
|
|
741
|
-
"module": "src/
|
|
678
|
+
"name": "GENESIS_SOCKET_URL",
|
|
679
|
+
"module": "src/env/variables.ts"
|
|
742
680
|
}
|
|
743
|
-
}
|
|
744
|
-
]
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"kind": "javascript-module",
|
|
748
|
-
"path": "src/formatters/index.ts",
|
|
749
|
-
"declarations": [],
|
|
750
|
-
"exports": [
|
|
681
|
+
},
|
|
751
682
|
{
|
|
752
683
|
"kind": "js",
|
|
753
|
-
"name": "
|
|
684
|
+
"name": "API_HOST",
|
|
754
685
|
"declaration": {
|
|
755
|
-
"name": "
|
|
756
|
-
"
|
|
686
|
+
"name": "_API_HOST",
|
|
687
|
+
"module": "src/env/variables.ts"
|
|
757
688
|
}
|
|
758
689
|
},
|
|
759
690
|
{
|
|
760
691
|
"kind": "js",
|
|
761
|
-
"name": "
|
|
692
|
+
"name": "HTTP_CONFIG",
|
|
762
693
|
"declaration": {
|
|
763
|
-
"name": "
|
|
764
|
-
"
|
|
694
|
+
"name": "_HTTP_CONFIG",
|
|
695
|
+
"module": "src/env/variables.ts"
|
|
765
696
|
}
|
|
766
|
-
}
|
|
767
|
-
]
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
"kind": "javascript-module",
|
|
771
|
-
"path": "src/formatters/localeNumberParser.ts",
|
|
772
|
-
"declarations": [
|
|
773
|
-
{
|
|
774
|
-
"kind": "class",
|
|
775
|
-
"description": "",
|
|
776
|
-
"name": "NumberParser",
|
|
777
|
-
"members": [
|
|
778
|
-
{
|
|
779
|
-
"kind": "field",
|
|
780
|
-
"name": "_decimal",
|
|
781
|
-
"type": {
|
|
782
|
-
"text": "RegExp"
|
|
783
|
-
},
|
|
784
|
-
"privacy": "private",
|
|
785
|
-
"default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
"kind": "field",
|
|
789
|
-
"name": "_separator",
|
|
790
|
-
"type": {
|
|
791
|
-
"text": "RegExp"
|
|
792
|
-
},
|
|
793
|
-
"privacy": "private",
|
|
794
|
-
"default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
"kind": "field",
|
|
798
|
-
"name": "_numeral",
|
|
799
|
-
"type": {
|
|
800
|
-
"text": "RegExp"
|
|
801
|
-
},
|
|
802
|
-
"privacy": "private",
|
|
803
|
-
"default": "new RegExp(`[${numerals.join('')}]`, 'g')"
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
"kind": "field",
|
|
807
|
-
"name": "_index",
|
|
808
|
-
"type": {
|
|
809
|
-
"text": "any"
|
|
810
|
-
},
|
|
811
|
-
"privacy": "private"
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
"kind": "method",
|
|
815
|
-
"name": "parse",
|
|
816
|
-
"parameters": [
|
|
817
|
-
{
|
|
818
|
-
"name": "localeNumber",
|
|
819
|
-
"type": {
|
|
820
|
-
"text": "string"
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
]
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"kind": "method",
|
|
827
|
-
"name": "hasSeparator",
|
|
828
|
-
"return": {
|
|
829
|
-
"type": {
|
|
830
|
-
"text": "boolean"
|
|
831
|
-
}
|
|
832
|
-
},
|
|
833
|
-
"parameters": [
|
|
834
|
-
{
|
|
835
|
-
"name": "localeNumber",
|
|
836
|
-
"type": {
|
|
837
|
-
"text": "string"
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
]
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
"kind": "field",
|
|
844
|
-
"name": "_group",
|
|
845
|
-
"default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
|
|
846
|
-
}
|
|
847
|
-
]
|
|
848
|
-
}
|
|
849
|
-
],
|
|
850
|
-
"exports": [
|
|
697
|
+
},
|
|
851
698
|
{
|
|
852
699
|
"kind": "js",
|
|
853
|
-
"name": "
|
|
700
|
+
"name": "DEFAULT_ORGANISATION",
|
|
854
701
|
"declaration": {
|
|
855
|
-
"name": "
|
|
856
|
-
"module": "src/
|
|
702
|
+
"name": "_DEFAULT_ORGANISATION",
|
|
703
|
+
"module": "src/env/variables.ts"
|
|
857
704
|
}
|
|
858
|
-
}
|
|
859
|
-
]
|
|
860
|
-
},
|
|
861
|
-
{
|
|
862
|
-
"kind": "javascript-module",
|
|
863
|
-
"path": "src/directives/index.ts",
|
|
864
|
-
"declarations": [],
|
|
865
|
-
"exports": [
|
|
705
|
+
},
|
|
866
706
|
{
|
|
867
707
|
"kind": "js",
|
|
868
|
-
"name": "
|
|
708
|
+
"name": "DEFAULT_PASSWORD",
|
|
869
709
|
"declaration": {
|
|
870
|
-
"name": "
|
|
871
|
-
"
|
|
710
|
+
"name": "_DEFAULT_PASSWORD",
|
|
711
|
+
"module": "src/env/variables.ts"
|
|
872
712
|
}
|
|
873
713
|
},
|
|
874
714
|
{
|
|
875
715
|
"kind": "js",
|
|
876
|
-
"name": "
|
|
716
|
+
"name": "DEFAULT_USER",
|
|
877
717
|
"declaration": {
|
|
878
|
-
"name": "
|
|
879
|
-
"
|
|
718
|
+
"name": "_DEFAULT_USER",
|
|
719
|
+
"module": "src/env/variables.ts"
|
|
880
720
|
}
|
|
881
721
|
}
|
|
882
722
|
]
|
|
883
723
|
},
|
|
884
724
|
{
|
|
885
725
|
"kind": "javascript-module",
|
|
886
|
-
"path": "src/
|
|
726
|
+
"path": "src/error/errorMap.ts",
|
|
887
727
|
"declarations": [
|
|
888
728
|
{
|
|
889
729
|
"kind": "class",
|
|
890
|
-
"description": "
|
|
891
|
-
"name": "
|
|
730
|
+
"description": "",
|
|
731
|
+
"name": "DefaultErrorMap",
|
|
892
732
|
"members": [
|
|
893
733
|
{
|
|
894
734
|
"kind": "field",
|
|
895
|
-
"name": "
|
|
896
|
-
"type": {
|
|
897
|
-
"text": "boolean"
|
|
898
|
-
},
|
|
899
|
-
"privacy": "public",
|
|
900
|
-
"default": "false"
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
"kind": "field",
|
|
904
|
-
"name": "records",
|
|
905
|
-
"type": {
|
|
906
|
-
"text": "Record<string, T>"
|
|
907
|
-
},
|
|
735
|
+
"name": "map",
|
|
908
736
|
"privacy": "private",
|
|
909
|
-
"default": "
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
"kind": "field",
|
|
913
|
-
"name": "beforeUpdateListeners",
|
|
914
|
-
"privacy": "private"
|
|
737
|
+
"default": "new Map<keyof TErrorDetailMap, Error>()"
|
|
915
738
|
},
|
|
916
739
|
{
|
|
917
740
|
"kind": "field",
|
|
918
|
-
"name": "
|
|
919
|
-
"
|
|
920
|
-
|
|
921
|
-
{
|
|
922
|
-
"kind": "method",
|
|
923
|
-
"name": "create",
|
|
924
|
-
"privacy": "public",
|
|
925
|
-
"return": {
|
|
926
|
-
"type": {
|
|
927
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
"parameters": [
|
|
931
|
-
{
|
|
932
|
-
"name": "newValue",
|
|
933
|
-
"type": {
|
|
934
|
-
"text": "Omit<T, 'id'>"
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
]
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
"kind": "method",
|
|
941
|
-
"name": "read",
|
|
942
|
-
"privacy": "public",
|
|
943
|
-
"return": {
|
|
944
|
-
"type": {
|
|
945
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
946
|
-
}
|
|
741
|
+
"name": "lastError",
|
|
742
|
+
"type": {
|
|
743
|
+
"text": "Error"
|
|
947
744
|
},
|
|
948
|
-
"
|
|
949
|
-
{
|
|
950
|
-
"name": "id",
|
|
951
|
-
"type": {
|
|
952
|
-
"text": "string"
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
]
|
|
745
|
+
"description": "{@inheritDoc ErrorMap.lastError}"
|
|
956
746
|
},
|
|
957
747
|
{
|
|
958
748
|
"kind": "method",
|
|
959
|
-
"name": "
|
|
960
|
-
"privacy": "public",
|
|
749
|
+
"name": "set",
|
|
961
750
|
"return": {
|
|
962
751
|
"type": {
|
|
963
|
-
"text": "
|
|
752
|
+
"text": "void"
|
|
964
753
|
}
|
|
965
754
|
},
|
|
966
755
|
"parameters": [
|
|
967
756
|
{
|
|
968
|
-
"name": "
|
|
757
|
+
"name": "key",
|
|
969
758
|
"type": {
|
|
970
|
-
"text": "
|
|
759
|
+
"text": "keyof TErrorDetailMap"
|
|
971
760
|
}
|
|
972
761
|
},
|
|
973
762
|
{
|
|
974
|
-
"name": "
|
|
763
|
+
"name": "error",
|
|
975
764
|
"type": {
|
|
976
|
-
"text": "
|
|
765
|
+
"text": "Error"
|
|
977
766
|
}
|
|
978
767
|
}
|
|
979
|
-
]
|
|
768
|
+
],
|
|
769
|
+
"description": "{@inheritDoc ErrorMap.set}"
|
|
980
770
|
},
|
|
981
771
|
{
|
|
982
772
|
"kind": "method",
|
|
983
|
-
"name": "
|
|
984
|
-
"privacy": "public",
|
|
773
|
+
"name": "get",
|
|
985
774
|
"return": {
|
|
986
775
|
"type": {
|
|
987
|
-
"text": "
|
|
776
|
+
"text": ""
|
|
988
777
|
}
|
|
989
778
|
},
|
|
990
779
|
"parameters": [
|
|
991
780
|
{
|
|
992
|
-
"name": "
|
|
993
|
-
"type": {
|
|
994
|
-
"text": "
|
|
995
|
-
}
|
|
781
|
+
"name": "key",
|
|
782
|
+
"type": {
|
|
783
|
+
"text": "keyof TErrorDetailMap"
|
|
784
|
+
},
|
|
785
|
+
"description": "The key."
|
|
996
786
|
}
|
|
997
|
-
]
|
|
787
|
+
],
|
|
788
|
+
"description": "Get an error by key.",
|
|
789
|
+
"privacy": "public"
|
|
998
790
|
},
|
|
999
791
|
{
|
|
1000
792
|
"kind": "method",
|
|
1001
|
-
"name": "
|
|
1002
|
-
"privacy": "public",
|
|
793
|
+
"name": "has",
|
|
1003
794
|
"return": {
|
|
1004
795
|
"type": {
|
|
1005
|
-
"text": "
|
|
796
|
+
"text": ""
|
|
1006
797
|
}
|
|
1007
798
|
},
|
|
1008
799
|
"parameters": [
|
|
1009
800
|
{
|
|
1010
|
-
"name": "
|
|
801
|
+
"name": "key",
|
|
1011
802
|
"type": {
|
|
1012
|
-
"text": "
|
|
1013
|
-
}
|
|
803
|
+
"text": "keyof TErrorDetailMap"
|
|
804
|
+
},
|
|
805
|
+
"description": "The key."
|
|
1014
806
|
}
|
|
1015
|
-
]
|
|
807
|
+
],
|
|
808
|
+
"description": "Has an error for key.",
|
|
809
|
+
"privacy": "public"
|
|
1016
810
|
},
|
|
1017
811
|
{
|
|
1018
812
|
"kind": "method",
|
|
1019
|
-
"name": "
|
|
1020
|
-
"privacy": "public",
|
|
813
|
+
"name": "delete",
|
|
1021
814
|
"return": {
|
|
1022
815
|
"type": {
|
|
1023
|
-
"text": "
|
|
816
|
+
"text": ""
|
|
1024
817
|
}
|
|
1025
818
|
},
|
|
1026
819
|
"parameters": [
|
|
1027
820
|
{
|
|
1028
|
-
"name": "
|
|
821
|
+
"name": "key",
|
|
1029
822
|
"type": {
|
|
1030
|
-
"text": "
|
|
1031
|
-
}
|
|
823
|
+
"text": "keyof TErrorDetailMap"
|
|
824
|
+
},
|
|
825
|
+
"description": "The key."
|
|
1032
826
|
}
|
|
1033
|
-
]
|
|
827
|
+
],
|
|
828
|
+
"description": "Delete an error.",
|
|
829
|
+
"privacy": "public"
|
|
1034
830
|
},
|
|
1035
831
|
{
|
|
1036
832
|
"kind": "method",
|
|
1037
|
-
"name": "
|
|
1038
|
-
"
|
|
833
|
+
"name": "clear",
|
|
834
|
+
"description": "Clear errors.",
|
|
835
|
+
"privacy": "public"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"kind": "field",
|
|
839
|
+
"name": "size",
|
|
840
|
+
"type": {
|
|
841
|
+
"text": "number"
|
|
842
|
+
},
|
|
843
|
+
"description": "The size of the error map.",
|
|
1039
844
|
"return": {
|
|
1040
845
|
"type": {
|
|
1041
|
-
"text": "
|
|
846
|
+
"text": ""
|
|
1042
847
|
}
|
|
1043
848
|
},
|
|
1044
|
-
"
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
849
|
+
"privacy": "public",
|
|
850
|
+
"readonly": true
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"kind": "method",
|
|
854
|
+
"name": "values",
|
|
855
|
+
"privacy": "public"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"kind": "field",
|
|
859
|
+
"name": "messages",
|
|
860
|
+
"type": {
|
|
861
|
+
"text": "string"
|
|
862
|
+
},
|
|
863
|
+
"description": "{@inheritDoc ErrorMap.messages}",
|
|
864
|
+
"readonly": true
|
|
1052
865
|
}
|
|
1053
866
|
]
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"kind": "function",
|
|
870
|
+
"name": "createErrorMap",
|
|
871
|
+
"return": {
|
|
872
|
+
"type": {
|
|
873
|
+
"text": ""
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"parameters": [
|
|
877
|
+
{
|
|
878
|
+
"name": "logger",
|
|
879
|
+
"type": {
|
|
880
|
+
"text": "ErrorMapLogger"
|
|
881
|
+
},
|
|
882
|
+
"description": "A logger error method reference."
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
"description": "A factory to create the error map.",
|
|
886
|
+
"privacy": "public"
|
|
1054
887
|
}
|
|
1055
888
|
],
|
|
1056
889
|
"exports": [
|
|
1057
890
|
{
|
|
1058
891
|
"kind": "js",
|
|
1059
|
-
"name": "
|
|
892
|
+
"name": "DefaultErrorMap",
|
|
1060
893
|
"declaration": {
|
|
1061
|
-
"name": "
|
|
1062
|
-
"module": "src/
|
|
894
|
+
"name": "DefaultErrorMap",
|
|
895
|
+
"module": "src/error/errorMap.ts"
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"kind": "js",
|
|
900
|
+
"name": "createErrorMap",
|
|
901
|
+
"declaration": {
|
|
902
|
+
"name": "createErrorMap",
|
|
903
|
+
"module": "src/error/errorMap.ts"
|
|
1063
904
|
}
|
|
1064
905
|
}
|
|
1065
906
|
]
|
|
1066
907
|
},
|
|
1067
908
|
{
|
|
1068
909
|
"kind": "javascript-module",
|
|
1069
|
-
"path": "src/
|
|
910
|
+
"path": "src/error/index.ts",
|
|
1070
911
|
"declarations": [],
|
|
1071
912
|
"exports": [
|
|
1072
913
|
{
|
|
@@ -1074,14 +915,111 @@
|
|
|
1074
915
|
"name": "*",
|
|
1075
916
|
"declaration": {
|
|
1076
917
|
"name": "*",
|
|
1077
|
-
"package": "./
|
|
918
|
+
"package": "./errorMap"
|
|
1078
919
|
}
|
|
1079
920
|
}
|
|
1080
921
|
]
|
|
1081
922
|
},
|
|
1082
923
|
{
|
|
1083
924
|
"kind": "javascript-module",
|
|
1084
|
-
"path": "src/
|
|
925
|
+
"path": "src/formatters/datetime.ts",
|
|
926
|
+
"declarations": [
|
|
927
|
+
{
|
|
928
|
+
"kind": "function",
|
|
929
|
+
"name": "formatDateTimestamp",
|
|
930
|
+
"return": {
|
|
931
|
+
"type": {
|
|
932
|
+
"text": "string"
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"parameters": [
|
|
936
|
+
{
|
|
937
|
+
"name": "timestamp",
|
|
938
|
+
"type": {
|
|
939
|
+
"text": "number"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
"description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
|
|
944
|
+
"privacy": "public"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"kind": "function",
|
|
948
|
+
"name": "formatDateTimeTimestamp",
|
|
949
|
+
"return": {
|
|
950
|
+
"type": {
|
|
951
|
+
"text": "string"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"parameters": [
|
|
955
|
+
{
|
|
956
|
+
"name": "timestamp",
|
|
957
|
+
"type": {
|
|
958
|
+
"text": "number"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
"description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
|
|
963
|
+
"privacy": "public"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"kind": "function",
|
|
967
|
+
"name": "formatTimestamp",
|
|
968
|
+
"return": {
|
|
969
|
+
"type": {
|
|
970
|
+
"text": "string"
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
"parameters": [
|
|
974
|
+
{
|
|
975
|
+
"name": "timestamp",
|
|
976
|
+
"type": {
|
|
977
|
+
"text": "number"
|
|
978
|
+
},
|
|
979
|
+
"description": "The UNIX Timestamp."
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"name": "withTime",
|
|
983
|
+
"type": {
|
|
984
|
+
"text": "boolean"
|
|
985
|
+
},
|
|
986
|
+
"description": "The flag to determine if formatted value should contain 'time' info."
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
"description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
|
|
990
|
+
"privacy": "public"
|
|
991
|
+
}
|
|
992
|
+
],
|
|
993
|
+
"exports": [
|
|
994
|
+
{
|
|
995
|
+
"kind": "js",
|
|
996
|
+
"name": "formatDateTimestamp",
|
|
997
|
+
"declaration": {
|
|
998
|
+
"name": "formatDateTimestamp",
|
|
999
|
+
"module": "src/formatters/datetime.ts"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"kind": "js",
|
|
1004
|
+
"name": "formatDateTimeTimestamp",
|
|
1005
|
+
"declaration": {
|
|
1006
|
+
"name": "formatDateTimeTimestamp",
|
|
1007
|
+
"module": "src/formatters/datetime.ts"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"kind": "js",
|
|
1012
|
+
"name": "formatTimestamp",
|
|
1013
|
+
"declaration": {
|
|
1014
|
+
"name": "formatTimestamp",
|
|
1015
|
+
"module": "src/formatters/datetime.ts"
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
]
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"kind": "javascript-module",
|
|
1022
|
+
"path": "src/formatters/index.ts",
|
|
1085
1023
|
"declarations": [],
|
|
1086
1024
|
"exports": [
|
|
1087
1025
|
{
|
|
@@ -1089,45 +1027,107 @@
|
|
|
1089
1027
|
"name": "*",
|
|
1090
1028
|
"declaration": {
|
|
1091
1029
|
"name": "*",
|
|
1092
|
-
"package": "./
|
|
1030
|
+
"package": "./datetime"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"kind": "js",
|
|
1035
|
+
"name": "*",
|
|
1036
|
+
"declaration": {
|
|
1037
|
+
"name": "*",
|
|
1038
|
+
"package": "./localeNumberParser"
|
|
1093
1039
|
}
|
|
1094
1040
|
}
|
|
1095
1041
|
]
|
|
1096
1042
|
},
|
|
1097
1043
|
{
|
|
1098
1044
|
"kind": "javascript-module",
|
|
1099
|
-
"path": "src/
|
|
1045
|
+
"path": "src/formatters/localeNumberParser.ts",
|
|
1100
1046
|
"declarations": [
|
|
1101
1047
|
{
|
|
1102
|
-
"kind": "
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1048
|
+
"kind": "class",
|
|
1049
|
+
"description": "",
|
|
1050
|
+
"name": "NumberParser",
|
|
1051
|
+
"members": [
|
|
1105
1052
|
{
|
|
1106
|
-
"
|
|
1053
|
+
"kind": "field",
|
|
1054
|
+
"name": "_decimal",
|
|
1055
|
+
"type": {
|
|
1056
|
+
"text": "RegExp"
|
|
1057
|
+
},
|
|
1058
|
+
"privacy": "private",
|
|
1059
|
+
"default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"kind": "field",
|
|
1063
|
+
"name": "_separator",
|
|
1064
|
+
"type": {
|
|
1065
|
+
"text": "RegExp"
|
|
1066
|
+
},
|
|
1067
|
+
"privacy": "private",
|
|
1068
|
+
"default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"kind": "field",
|
|
1072
|
+
"name": "_numeral",
|
|
1107
1073
|
"type": {
|
|
1108
|
-
"text": "
|
|
1074
|
+
"text": "RegExp"
|
|
1109
1075
|
},
|
|
1110
|
-
"
|
|
1076
|
+
"privacy": "private",
|
|
1077
|
+
"default": "new RegExp(`[${numerals.join('')}]`, 'g')"
|
|
1111
1078
|
},
|
|
1112
1079
|
{
|
|
1113
|
-
"
|
|
1080
|
+
"kind": "field",
|
|
1081
|
+
"name": "_index",
|
|
1114
1082
|
"type": {
|
|
1115
|
-
"text": "
|
|
1083
|
+
"text": "any"
|
|
1116
1084
|
},
|
|
1117
|
-
"
|
|
1085
|
+
"privacy": "private"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"kind": "method",
|
|
1089
|
+
"name": "parse",
|
|
1090
|
+
"parameters": [
|
|
1091
|
+
{
|
|
1092
|
+
"name": "localeNumber",
|
|
1093
|
+
"type": {
|
|
1094
|
+
"text": "string"
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
]
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"kind": "method",
|
|
1101
|
+
"name": "hasSeparator",
|
|
1102
|
+
"return": {
|
|
1103
|
+
"type": {
|
|
1104
|
+
"text": "boolean"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
"parameters": [
|
|
1108
|
+
{
|
|
1109
|
+
"name": "localeNumber",
|
|
1110
|
+
"type": {
|
|
1111
|
+
"text": "string"
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"kind": "field",
|
|
1118
|
+
"name": "_group",
|
|
1119
|
+
"default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
|
|
1118
1120
|
}
|
|
1119
|
-
]
|
|
1120
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1121
|
-
"privacy": "public"
|
|
1121
|
+
]
|
|
1122
1122
|
}
|
|
1123
1123
|
],
|
|
1124
1124
|
"exports": [
|
|
1125
1125
|
{
|
|
1126
1126
|
"kind": "js",
|
|
1127
|
-
"name": "
|
|
1127
|
+
"name": "NumberParser",
|
|
1128
1128
|
"declaration": {
|
|
1129
|
-
"name": "
|
|
1130
|
-
"module": "src/
|
|
1129
|
+
"name": "NumberParser",
|
|
1130
|
+
"module": "src/formatters/localeNumberParser.ts"
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
1133
|
]
|
|
@@ -2287,6 +2287,106 @@
|
|
|
2287
2287
|
}
|
|
2288
2288
|
]
|
|
2289
2289
|
},
|
|
2290
|
+
{
|
|
2291
|
+
"kind": "javascript-module",
|
|
2292
|
+
"path": "src/mappers/dto/index.ts",
|
|
2293
|
+
"declarations": [],
|
|
2294
|
+
"exports": [
|
|
2295
|
+
{
|
|
2296
|
+
"kind": "js",
|
|
2297
|
+
"name": "*",
|
|
2298
|
+
"declaration": {
|
|
2299
|
+
"name": "*",
|
|
2300
|
+
"package": "./serverRow"
|
|
2301
|
+
}
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"kind": "js",
|
|
2305
|
+
"name": "*",
|
|
2306
|
+
"declaration": {
|
|
2307
|
+
"name": "*",
|
|
2308
|
+
"package": "./types"
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
]
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
"kind": "javascript-module",
|
|
2315
|
+
"path": "src/mappers/dto/serverRow.ts",
|
|
2316
|
+
"declarations": [
|
|
2317
|
+
{
|
|
2318
|
+
"kind": "class",
|
|
2319
|
+
"description": "The default `ServerRowDTOMapper`.",
|
|
2320
|
+
"name": "DefaultServerRowDTOMapper",
|
|
2321
|
+
"members": [
|
|
2322
|
+
{
|
|
2323
|
+
"kind": "field",
|
|
2324
|
+
"name": "fromDTO",
|
|
2325
|
+
"description": "Converts a server row DTO to an entity.",
|
|
2326
|
+
"parameters": [
|
|
2327
|
+
{
|
|
2328
|
+
"description": "The DTO to convert.",
|
|
2329
|
+
"name": "dto"
|
|
2330
|
+
}
|
|
2331
|
+
],
|
|
2332
|
+
"return": {
|
|
2333
|
+
"type": {
|
|
2334
|
+
"text": ""
|
|
2335
|
+
}
|
|
2336
|
+
},
|
|
2337
|
+
"privacy": "public"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
"kind": "field",
|
|
2341
|
+
"name": "toDTO",
|
|
2342
|
+
"description": "Converts a server row entity to a DTO.",
|
|
2343
|
+
"parameters": [
|
|
2344
|
+
{
|
|
2345
|
+
"description": "The entity to convert.",
|
|
2346
|
+
"name": "entity"
|
|
2347
|
+
}
|
|
2348
|
+
],
|
|
2349
|
+
"return": {
|
|
2350
|
+
"type": {
|
|
2351
|
+
"text": ""
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2354
|
+
"privacy": "public"
|
|
2355
|
+
}
|
|
2356
|
+
]
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"kind": "variable",
|
|
2360
|
+
"name": "ServerRowDTOMapper",
|
|
2361
|
+
"description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
|
|
2362
|
+
"privacy": "public"
|
|
2363
|
+
}
|
|
2364
|
+
],
|
|
2365
|
+
"exports": [
|
|
2366
|
+
{
|
|
2367
|
+
"kind": "js",
|
|
2368
|
+
"name": "DefaultServerRowDTOMapper",
|
|
2369
|
+
"declaration": {
|
|
2370
|
+
"name": "DefaultServerRowDTOMapper",
|
|
2371
|
+
"module": "src/mappers/dto/serverRow.ts"
|
|
2372
|
+
}
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
"kind": "js",
|
|
2376
|
+
"name": "ServerRowDTOMapper",
|
|
2377
|
+
"declaration": {
|
|
2378
|
+
"name": "ServerRowDTOMapper",
|
|
2379
|
+
"module": "src/mappers/dto/serverRow.ts"
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
]
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"kind": "javascript-module",
|
|
2386
|
+
"path": "src/mappers/dto/types.ts",
|
|
2387
|
+
"declarations": [],
|
|
2388
|
+
"exports": []
|
|
2389
|
+
},
|
|
2290
2390
|
{
|
|
2291
2391
|
"kind": "javascript-module",
|
|
2292
2392
|
"path": "src/mixins/lifecycle/index.ts",
|
|
@@ -2724,106 +2824,6 @@
|
|
|
2724
2824
|
"path": "src/serializers/json/types.ts",
|
|
2725
2825
|
"declarations": [],
|
|
2726
2826
|
"exports": []
|
|
2727
|
-
},
|
|
2728
|
-
{
|
|
2729
|
-
"kind": "javascript-module",
|
|
2730
|
-
"path": "src/mappers/dto/index.ts",
|
|
2731
|
-
"declarations": [],
|
|
2732
|
-
"exports": [
|
|
2733
|
-
{
|
|
2734
|
-
"kind": "js",
|
|
2735
|
-
"name": "*",
|
|
2736
|
-
"declaration": {
|
|
2737
|
-
"name": "*",
|
|
2738
|
-
"package": "./serverRow"
|
|
2739
|
-
}
|
|
2740
|
-
},
|
|
2741
|
-
{
|
|
2742
|
-
"kind": "js",
|
|
2743
|
-
"name": "*",
|
|
2744
|
-
"declaration": {
|
|
2745
|
-
"name": "*",
|
|
2746
|
-
"package": "./types"
|
|
2747
|
-
}
|
|
2748
|
-
}
|
|
2749
|
-
]
|
|
2750
|
-
},
|
|
2751
|
-
{
|
|
2752
|
-
"kind": "javascript-module",
|
|
2753
|
-
"path": "src/mappers/dto/serverRow.ts",
|
|
2754
|
-
"declarations": [
|
|
2755
|
-
{
|
|
2756
|
-
"kind": "class",
|
|
2757
|
-
"description": "The default `ServerRowDTOMapper`.",
|
|
2758
|
-
"name": "DefaultServerRowDTOMapper",
|
|
2759
|
-
"members": [
|
|
2760
|
-
{
|
|
2761
|
-
"kind": "field",
|
|
2762
|
-
"name": "fromDTO",
|
|
2763
|
-
"description": "Converts a server row DTO to an entity.",
|
|
2764
|
-
"parameters": [
|
|
2765
|
-
{
|
|
2766
|
-
"description": "The DTO to convert.",
|
|
2767
|
-
"name": "dto"
|
|
2768
|
-
}
|
|
2769
|
-
],
|
|
2770
|
-
"return": {
|
|
2771
|
-
"type": {
|
|
2772
|
-
"text": ""
|
|
2773
|
-
}
|
|
2774
|
-
},
|
|
2775
|
-
"privacy": "public"
|
|
2776
|
-
},
|
|
2777
|
-
{
|
|
2778
|
-
"kind": "field",
|
|
2779
|
-
"name": "toDTO",
|
|
2780
|
-
"description": "Converts a server row entity to a DTO.",
|
|
2781
|
-
"parameters": [
|
|
2782
|
-
{
|
|
2783
|
-
"description": "The entity to convert.",
|
|
2784
|
-
"name": "entity"
|
|
2785
|
-
}
|
|
2786
|
-
],
|
|
2787
|
-
"return": {
|
|
2788
|
-
"type": {
|
|
2789
|
-
"text": ""
|
|
2790
|
-
}
|
|
2791
|
-
},
|
|
2792
|
-
"privacy": "public"
|
|
2793
|
-
}
|
|
2794
|
-
]
|
|
2795
|
-
},
|
|
2796
|
-
{
|
|
2797
|
-
"kind": "variable",
|
|
2798
|
-
"name": "ServerRowDTOMapper",
|
|
2799
|
-
"description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
|
|
2800
|
-
"privacy": "public"
|
|
2801
|
-
}
|
|
2802
|
-
],
|
|
2803
|
-
"exports": [
|
|
2804
|
-
{
|
|
2805
|
-
"kind": "js",
|
|
2806
|
-
"name": "DefaultServerRowDTOMapper",
|
|
2807
|
-
"declaration": {
|
|
2808
|
-
"name": "DefaultServerRowDTOMapper",
|
|
2809
|
-
"module": "src/mappers/dto/serverRow.ts"
|
|
2810
|
-
}
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
"kind": "js",
|
|
2814
|
-
"name": "ServerRowDTOMapper",
|
|
2815
|
-
"declaration": {
|
|
2816
|
-
"name": "ServerRowDTOMapper",
|
|
2817
|
-
"module": "src/mappers/dto/serverRow.ts"
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
]
|
|
2821
|
-
},
|
|
2822
|
-
{
|
|
2823
|
-
"kind": "javascript-module",
|
|
2824
|
-
"path": "src/mappers/dto/types.ts",
|
|
2825
|
-
"declarations": [],
|
|
2826
|
-
"exports": []
|
|
2827
2827
|
}
|
|
2828
2828
|
]
|
|
2829
2829
|
}
|