@genesislcap/foundation-utils 14.225.0 → 14.225.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/custom-elements.json +691 -691
  2. package/package.json +10 -10
@@ -163,192 +163,464 @@
163
163
  },
164
164
  {
165
165
  "kind": "javascript-module",
166
- "path": "src/data/inMemoryDatabase.ts",
166
+ "path": "src/directives/index.ts",
167
+ "declarations": [],
168
+ "exports": [
169
+ {
170
+ "kind": "js",
171
+ "name": "*",
172
+ "declaration": {
173
+ "name": "*",
174
+ "package": "./sync"
175
+ }
176
+ },
177
+ {
178
+ "kind": "js",
179
+ "name": "*",
180
+ "declaration": {
181
+ "name": "*",
182
+ "package": "./when-else"
183
+ }
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "kind": "javascript-module",
189
+ "path": "src/design-system/design-system.ts",
190
+ "declarations": [
191
+ {
192
+ "kind": "function",
193
+ "name": "assureDesignSystem",
194
+ "return": {
195
+ "type": {
196
+ "text": "DesignSystemModule"
197
+ }
198
+ },
199
+ "parameters": [
200
+ {
201
+ "name": "module",
202
+ "type": {
203
+ "text": "DesignSystemModule"
204
+ }
205
+ }
206
+ ],
207
+ "description": "assureDesignSystem.",
208
+ "privacy": "public"
209
+ }
210
+ ],
211
+ "exports": [
212
+ {
213
+ "kind": "js",
214
+ "name": "assureDesignSystem",
215
+ "declaration": {
216
+ "name": "assureDesignSystem",
217
+ "module": "src/design-system/design-system.ts"
218
+ }
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "kind": "javascript-module",
224
+ "path": "src/design-system/index.ts",
225
+ "declarations": [],
226
+ "exports": [
227
+ {
228
+ "kind": "js",
229
+ "name": "*",
230
+ "declaration": {
231
+ "name": "*",
232
+ "package": "./design-system"
233
+ }
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "kind": "javascript-module",
239
+ "path": "src/error/errorMap.ts",
167
240
  "declarations": [
168
241
  {
169
242
  "kind": "class",
170
- "description": "An in memory database of specific DatabaseRecord types.",
171
- "name": "InMemoryDatabase",
243
+ "description": "",
244
+ "name": "DefaultErrorMap",
172
245
  "members": [
173
246
  {
174
247
  "kind": "field",
175
- "name": "isWorking",
176
- "type": {
177
- "text": "boolean"
178
- },
179
- "privacy": "public",
180
- "default": "false"
248
+ "name": "map",
249
+ "privacy": "private",
250
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
181
251
  },
182
252
  {
183
253
  "kind": "field",
184
- "name": "records",
254
+ "name": "lastError",
185
255
  "type": {
186
- "text": "Record<string, T>"
256
+ "text": "Error"
187
257
  },
188
- "privacy": "private",
189
- "default": "{}"
190
- },
191
- {
192
- "kind": "field",
193
- "name": "beforeUpdateListeners",
194
- "privacy": "private"
195
- },
196
- {
197
- "kind": "field",
198
- "name": "afterUpdateListeners",
199
- "privacy": "private"
258
+ "description": "{@inheritDoc ErrorMap.lastError}"
200
259
  },
201
260
  {
202
261
  "kind": "method",
203
- "name": "create",
204
- "privacy": "public",
262
+ "name": "set",
205
263
  "return": {
206
264
  "type": {
207
- "text": "Promise<DatabaseAccessResult.Create<T>>"
265
+ "text": "void"
208
266
  }
209
267
  },
210
268
  "parameters": [
211
269
  {
212
- "name": "newValue",
270
+ "name": "key",
213
271
  "type": {
214
- "text": "Omit<T, 'id'>"
272
+ "text": "keyof TErrorDetailMap"
215
273
  }
216
- }
217
- ]
218
- },
219
- {
220
- "kind": "method",
221
- "name": "read",
222
- "privacy": "public",
223
- "return": {
224
- "type": {
225
- "text": "Promise<DatabaseAccessResult.Read<T>>"
226
- }
227
- },
228
- "parameters": [
274
+ },
229
275
  {
230
- "name": "id",
276
+ "name": "error",
231
277
  "type": {
232
- "text": "string"
278
+ "text": "Error"
233
279
  }
234
280
  }
235
- ]
281
+ ],
282
+ "description": "{@inheritDoc ErrorMap.set}"
236
283
  },
237
284
  {
238
285
  "kind": "method",
239
- "name": "update",
240
- "privacy": "public",
286
+ "name": "get",
241
287
  "return": {
242
288
  "type": {
243
- "text": "Promise<DatabaseAccessResult.Update<T>>"
289
+ "text": ""
244
290
  }
245
291
  },
246
292
  "parameters": [
247
293
  {
248
- "name": "id",
249
- "type": {
250
- "text": "string"
251
- }
252
- },
253
- {
254
- "name": "newValue",
294
+ "name": "key",
255
295
  "type": {
256
- "text": "Omit<Partial<T>, 'id'>"
257
- }
296
+ "text": "keyof TErrorDetailMap"
297
+ },
298
+ "description": "The key."
258
299
  }
259
- ]
300
+ ],
301
+ "description": "Get an error by key.",
302
+ "privacy": "public"
260
303
  },
261
304
  {
262
305
  "kind": "method",
263
- "name": "delete",
264
- "privacy": "public",
306
+ "name": "has",
265
307
  "return": {
266
308
  "type": {
267
- "text": "Promise<DatabaseAccessResult.Delete>"
309
+ "text": ""
268
310
  }
269
311
  },
270
312
  "parameters": [
271
313
  {
272
- "name": "id",
314
+ "name": "key",
273
315
  "type": {
274
- "text": "string"
275
- }
316
+ "text": "keyof TErrorDetailMap"
317
+ },
318
+ "description": "The key."
276
319
  }
277
- ]
320
+ ],
321
+ "description": "Has an error for key.",
322
+ "privacy": "public"
278
323
  },
279
324
  {
280
325
  "kind": "method",
281
- "name": "visit",
282
- "privacy": "public",
326
+ "name": "delete",
283
327
  "return": {
284
328
  "type": {
285
- "text": "Promise<void>"
329
+ "text": ""
286
330
  }
287
331
  },
288
332
  "parameters": [
289
333
  {
290
- "name": "visitor",
334
+ "name": "key",
291
335
  "type": {
292
- "text": "(record: T) => void"
293
- }
336
+ "text": "keyof TErrorDetailMap"
337
+ },
338
+ "description": "The key."
294
339
  }
295
- ]
340
+ ],
341
+ "description": "Delete an error.",
342
+ "privacy": "public"
296
343
  },
297
344
  {
298
345
  "kind": "method",
299
- "name": "onBeforeUpdate",
300
- "privacy": "public",
346
+ "name": "clear",
347
+ "description": "Clear errors.",
348
+ "privacy": "public"
349
+ },
350
+ {
351
+ "kind": "field",
352
+ "name": "size",
353
+ "type": {
354
+ "text": "number"
355
+ },
356
+ "description": "The size of the error map.",
301
357
  "return": {
302
358
  "type": {
303
- "text": "() => void"
359
+ "text": ""
304
360
  }
305
361
  },
306
- "parameters": [
307
- {
308
- "name": "listener",
309
- "type": {
310
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
311
- }
312
- }
313
- ]
362
+ "privacy": "public",
363
+ "readonly": true
314
364
  },
315
365
  {
316
366
  "kind": "method",
317
- "name": "onAfterUpdate",
318
- "privacy": "public",
319
- "return": {
320
- "type": {
321
- "text": "() => void"
322
- }
367
+ "name": "values",
368
+ "privacy": "public"
369
+ },
370
+ {
371
+ "kind": "field",
372
+ "name": "messages",
373
+ "type": {
374
+ "text": "string"
323
375
  },
324
- "parameters": [
325
- {
326
- "name": "listener",
327
- "type": {
328
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
329
- }
330
- }
331
- ]
376
+ "description": "{@inheritDoc ErrorMap.messages}",
377
+ "readonly": true
332
378
  }
333
379
  ]
334
- }
335
- ],
336
- "exports": [
380
+ },
337
381
  {
338
- "kind": "js",
339
- "name": "InMemoryDatabase",
340
- "declaration": {
341
- "name": "InMemoryDatabase",
342
- "module": "src/data/inMemoryDatabase.ts"
343
- }
344
- }
345
- ]
346
- },
347
- {
348
- "kind": "javascript-module",
349
- "path": "src/data/index.ts",
350
- "declarations": [],
351
- "exports": [
382
+ "kind": "function",
383
+ "name": "createErrorMap",
384
+ "return": {
385
+ "type": {
386
+ "text": ""
387
+ }
388
+ },
389
+ "parameters": [
390
+ {
391
+ "name": "logger",
392
+ "type": {
393
+ "text": "ErrorMapLogger"
394
+ },
395
+ "description": "A logger error method reference."
396
+ }
397
+ ],
398
+ "description": "A factory to create the error map.",
399
+ "privacy": "public"
400
+ }
401
+ ],
402
+ "exports": [
403
+ {
404
+ "kind": "js",
405
+ "name": "DefaultErrorMap",
406
+ "declaration": {
407
+ "name": "DefaultErrorMap",
408
+ "module": "src/error/errorMap.ts"
409
+ }
410
+ },
411
+ {
412
+ "kind": "js",
413
+ "name": "createErrorMap",
414
+ "declaration": {
415
+ "name": "createErrorMap",
416
+ "module": "src/error/errorMap.ts"
417
+ }
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "kind": "javascript-module",
423
+ "path": "src/error/index.ts",
424
+ "declarations": [],
425
+ "exports": [
426
+ {
427
+ "kind": "js",
428
+ "name": "*",
429
+ "declaration": {
430
+ "name": "*",
431
+ "package": "./errorMap"
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "kind": "javascript-module",
438
+ "path": "src/data/inMemoryDatabase.ts",
439
+ "declarations": [
440
+ {
441
+ "kind": "class",
442
+ "description": "An in memory database of specific DatabaseRecord types.",
443
+ "name": "InMemoryDatabase",
444
+ "members": [
445
+ {
446
+ "kind": "field",
447
+ "name": "isWorking",
448
+ "type": {
449
+ "text": "boolean"
450
+ },
451
+ "privacy": "public",
452
+ "default": "false"
453
+ },
454
+ {
455
+ "kind": "field",
456
+ "name": "records",
457
+ "type": {
458
+ "text": "Record<string, T>"
459
+ },
460
+ "privacy": "private",
461
+ "default": "{}"
462
+ },
463
+ {
464
+ "kind": "field",
465
+ "name": "beforeUpdateListeners",
466
+ "privacy": "private"
467
+ },
468
+ {
469
+ "kind": "field",
470
+ "name": "afterUpdateListeners",
471
+ "privacy": "private"
472
+ },
473
+ {
474
+ "kind": "method",
475
+ "name": "create",
476
+ "privacy": "public",
477
+ "return": {
478
+ "type": {
479
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
480
+ }
481
+ },
482
+ "parameters": [
483
+ {
484
+ "name": "newValue",
485
+ "type": {
486
+ "text": "Omit<T, 'id'>"
487
+ }
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ "kind": "method",
493
+ "name": "read",
494
+ "privacy": "public",
495
+ "return": {
496
+ "type": {
497
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
498
+ }
499
+ },
500
+ "parameters": [
501
+ {
502
+ "name": "id",
503
+ "type": {
504
+ "text": "string"
505
+ }
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "kind": "method",
511
+ "name": "update",
512
+ "privacy": "public",
513
+ "return": {
514
+ "type": {
515
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
516
+ }
517
+ },
518
+ "parameters": [
519
+ {
520
+ "name": "id",
521
+ "type": {
522
+ "text": "string"
523
+ }
524
+ },
525
+ {
526
+ "name": "newValue",
527
+ "type": {
528
+ "text": "Omit<Partial<T>, 'id'>"
529
+ }
530
+ }
531
+ ]
532
+ },
533
+ {
534
+ "kind": "method",
535
+ "name": "delete",
536
+ "privacy": "public",
537
+ "return": {
538
+ "type": {
539
+ "text": "Promise<DatabaseAccessResult.Delete>"
540
+ }
541
+ },
542
+ "parameters": [
543
+ {
544
+ "name": "id",
545
+ "type": {
546
+ "text": "string"
547
+ }
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "kind": "method",
553
+ "name": "visit",
554
+ "privacy": "public",
555
+ "return": {
556
+ "type": {
557
+ "text": "Promise<void>"
558
+ }
559
+ },
560
+ "parameters": [
561
+ {
562
+ "name": "visitor",
563
+ "type": {
564
+ "text": "(record: T) => void"
565
+ }
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "kind": "method",
571
+ "name": "onBeforeUpdate",
572
+ "privacy": "public",
573
+ "return": {
574
+ "type": {
575
+ "text": "() => void"
576
+ }
577
+ },
578
+ "parameters": [
579
+ {
580
+ "name": "listener",
581
+ "type": {
582
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
583
+ }
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "kind": "method",
589
+ "name": "onAfterUpdate",
590
+ "privacy": "public",
591
+ "return": {
592
+ "type": {
593
+ "text": "() => void"
594
+ }
595
+ },
596
+ "parameters": [
597
+ {
598
+ "name": "listener",
599
+ "type": {
600
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
601
+ }
602
+ }
603
+ ]
604
+ }
605
+ ]
606
+ }
607
+ ],
608
+ "exports": [
609
+ {
610
+ "kind": "js",
611
+ "name": "InMemoryDatabase",
612
+ "declaration": {
613
+ "name": "InMemoryDatabase",
614
+ "module": "src/data/inMemoryDatabase.ts"
615
+ }
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ "kind": "javascript-module",
621
+ "path": "src/data/index.ts",
622
+ "declarations": [],
623
+ "exports": [
352
624
  {
353
625
  "kind": "js",
354
626
  "name": "*",
@@ -414,42 +686,133 @@
414
686
  },
415
687
  {
416
688
  "kind": "javascript-module",
417
- "path": "src/design-system/design-system.ts",
689
+ "path": "src/formatters/datetime.ts",
418
690
  "declarations": [
419
691
  {
420
692
  "kind": "function",
421
- "name": "assureDesignSystem",
693
+ "name": "formatDateTimestamp",
422
694
  "return": {
423
695
  "type": {
424
- "text": "DesignSystemModule"
696
+ "text": "string"
425
697
  }
426
698
  },
427
699
  "parameters": [
428
700
  {
429
- "name": "module",
701
+ "name": "timestamp",
430
702
  "type": {
431
- "text": "DesignSystemModule"
703
+ "text": "number"
432
704
  }
433
705
  }
434
706
  ],
435
- "description": "assureDesignSystem.",
707
+ "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
436
708
  "privacy": "public"
437
- }
438
- ],
709
+ },
710
+ {
711
+ "kind": "function",
712
+ "name": "formatDateTimeTimestamp",
713
+ "return": {
714
+ "type": {
715
+ "text": "string"
716
+ }
717
+ },
718
+ "parameters": [
719
+ {
720
+ "name": "timestamp",
721
+ "type": {
722
+ "text": "number"
723
+ }
724
+ }
725
+ ],
726
+ "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
727
+ "privacy": "public"
728
+ },
729
+ {
730
+ "kind": "function",
731
+ "name": "formatTimestamp",
732
+ "return": {
733
+ "type": {
734
+ "text": "string"
735
+ }
736
+ },
737
+ "parameters": [
738
+ {
739
+ "name": "timestamp",
740
+ "type": {
741
+ "text": "number"
742
+ },
743
+ "description": "The UNIX Timestamp."
744
+ },
745
+ {
746
+ "name": "withTime",
747
+ "type": {
748
+ "text": "boolean"
749
+ },
750
+ "description": "The flag to determine if formatted value should contain 'time' info."
751
+ }
752
+ ],
753
+ "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
754
+ "privacy": "public"
755
+ },
756
+ {
757
+ "kind": "function",
758
+ "name": "getDateFormatter",
759
+ "parameters": [
760
+ {
761
+ "name": "locale",
762
+ "default": "'en-GB'",
763
+ "type": {
764
+ "text": "string"
765
+ }
766
+ },
767
+ {
768
+ "name": "options",
769
+ "default": "defaultDateOptions",
770
+ "type": {
771
+ "text": "Intl.DateTimeFormatOptions"
772
+ }
773
+ }
774
+ ],
775
+ "privacy": "public"
776
+ }
777
+ ],
439
778
  "exports": [
440
779
  {
441
780
  "kind": "js",
442
- "name": "assureDesignSystem",
781
+ "name": "formatDateTimestamp",
443
782
  "declaration": {
444
- "name": "assureDesignSystem",
445
- "module": "src/design-system/design-system.ts"
783
+ "name": "formatDateTimestamp",
784
+ "module": "src/formatters/datetime.ts"
785
+ }
786
+ },
787
+ {
788
+ "kind": "js",
789
+ "name": "formatDateTimeTimestamp",
790
+ "declaration": {
791
+ "name": "formatDateTimeTimestamp",
792
+ "module": "src/formatters/datetime.ts"
793
+ }
794
+ },
795
+ {
796
+ "kind": "js",
797
+ "name": "formatTimestamp",
798
+ "declaration": {
799
+ "name": "formatTimestamp",
800
+ "module": "src/formatters/datetime.ts"
801
+ }
802
+ },
803
+ {
804
+ "kind": "js",
805
+ "name": "getDateFormatter",
806
+ "declaration": {
807
+ "name": "getDateFormatter",
808
+ "module": "src/formatters/datetime.ts"
446
809
  }
447
810
  }
448
811
  ]
449
812
  },
450
813
  {
451
814
  "kind": "javascript-module",
452
- "path": "src/design-system/index.ts",
815
+ "path": "src/formatters/index.ts",
453
816
  "declarations": [],
454
817
  "exports": [
455
818
  {
@@ -457,7 +820,151 @@
457
820
  "name": "*",
458
821
  "declaration": {
459
822
  "name": "*",
460
- "package": "./design-system"
823
+ "package": "./datetime"
824
+ }
825
+ },
826
+ {
827
+ "kind": "js",
828
+ "name": "*",
829
+ "declaration": {
830
+ "name": "*",
831
+ "package": "./localeNumberParser"
832
+ }
833
+ },
834
+ {
835
+ "kind": "js",
836
+ "name": "*",
837
+ "declaration": {
838
+ "name": "*",
839
+ "package": "./number"
840
+ }
841
+ }
842
+ ]
843
+ },
844
+ {
845
+ "kind": "javascript-module",
846
+ "path": "src/formatters/localeNumberParser.ts",
847
+ "declarations": [
848
+ {
849
+ "kind": "class",
850
+ "description": "",
851
+ "name": "NumberParser",
852
+ "members": [
853
+ {
854
+ "kind": "field",
855
+ "name": "_decimal",
856
+ "type": {
857
+ "text": "RegExp"
858
+ },
859
+ "privacy": "private",
860
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
861
+ },
862
+ {
863
+ "kind": "field",
864
+ "name": "_separator",
865
+ "type": {
866
+ "text": "RegExp"
867
+ },
868
+ "privacy": "private",
869
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
870
+ },
871
+ {
872
+ "kind": "field",
873
+ "name": "_numeral",
874
+ "type": {
875
+ "text": "RegExp"
876
+ },
877
+ "privacy": "private",
878
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
879
+ },
880
+ {
881
+ "kind": "field",
882
+ "name": "_index",
883
+ "type": {
884
+ "text": "any"
885
+ },
886
+ "privacy": "private"
887
+ },
888
+ {
889
+ "kind": "method",
890
+ "name": "parse",
891
+ "parameters": [
892
+ {
893
+ "name": "localeNumber",
894
+ "type": {
895
+ "text": "string"
896
+ }
897
+ }
898
+ ]
899
+ },
900
+ {
901
+ "kind": "method",
902
+ "name": "hasSeparator",
903
+ "return": {
904
+ "type": {
905
+ "text": "boolean"
906
+ }
907
+ },
908
+ "parameters": [
909
+ {
910
+ "name": "localeNumber",
911
+ "type": {
912
+ "text": "string"
913
+ }
914
+ }
915
+ ]
916
+ },
917
+ {
918
+ "kind": "field",
919
+ "name": "_group",
920
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
921
+ }
922
+ ]
923
+ }
924
+ ],
925
+ "exports": [
926
+ {
927
+ "kind": "js",
928
+ "name": "NumberParser",
929
+ "declaration": {
930
+ "name": "NumberParser",
931
+ "module": "src/formatters/localeNumberParser.ts"
932
+ }
933
+ }
934
+ ]
935
+ },
936
+ {
937
+ "kind": "javascript-module",
938
+ "path": "src/formatters/number.ts",
939
+ "declarations": [
940
+ {
941
+ "kind": "function",
942
+ "name": "getNumberFormatter",
943
+ "parameters": [
944
+ {
945
+ "name": "format",
946
+ "type": {
947
+ "text": "string"
948
+ }
949
+ },
950
+ {
951
+ "name": "locale",
952
+ "optional": true,
953
+ "type": {
954
+ "text": "string | null"
955
+ }
956
+ }
957
+ ],
958
+ "privacy": "public"
959
+ }
960
+ ],
961
+ "exports": [
962
+ {
963
+ "kind": "js",
964
+ "name": "getNumberFormatter",
965
+ "declaration": {
966
+ "name": "getNumberFormatter",
967
+ "module": "src/formatters/number.ts"
461
968
  }
462
969
  }
463
970
  ]
@@ -620,589 +1127,82 @@
620
1127
  "kind": "variable",
621
1128
  "name": "DEFAULT_USER",
622
1129
  "type": {
623
- "text": "string"
624
- }
625
- },
626
- {
627
- "kind": "variable",
628
- "name": "_DEFAULT_USER",
629
- "type": {
630
- "text": "string"
631
- },
632
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
633
- "privacy": "public"
634
- }
635
- ],
636
- "exports": [
637
- {
638
- "kind": "js",
639
- "name": "SOCKET_EXT",
640
- "declaration": {
641
- "name": "_SOCKET_EXT",
642
- "module": "src/env/variables.ts"
643
- }
644
- },
645
- {
646
- "kind": "js",
647
- "name": "FORCE_HTTP",
648
- "declaration": {
649
- "name": "_FORCE_HTTP",
650
- "module": "src/env/variables.ts"
651
- }
652
- },
653
- {
654
- "kind": "js",
655
- "name": "GENESIS_SOCKET_URL",
656
- "declaration": {
657
- "name": "GENESIS_SOCKET_URL",
658
- "module": "src/env/variables.ts"
659
- }
660
- },
661
- {
662
- "kind": "js",
663
- "name": "API_HOST",
664
- "declaration": {
665
- "name": "_API_HOST",
666
- "module": "src/env/variables.ts"
667
- }
668
- },
669
- {
670
- "kind": "js",
671
- "name": "HTTP_CONFIG",
672
- "declaration": {
673
- "name": "_HTTP_CONFIG",
674
- "module": "src/env/variables.ts"
675
- }
676
- },
677
- {
678
- "kind": "js",
679
- "name": "DEFAULT_ORGANISATION",
680
- "declaration": {
681
- "name": "_DEFAULT_ORGANISATION",
682
- "module": "src/env/variables.ts"
683
- }
684
- },
685
- {
686
- "kind": "js",
687
- "name": "DEFAULT_PASSWORD",
688
- "declaration": {
689
- "name": "_DEFAULT_PASSWORD",
690
- "module": "src/env/variables.ts"
691
- }
692
- },
693
- {
694
- "kind": "js",
695
- "name": "DEFAULT_USER",
696
- "declaration": {
697
- "name": "_DEFAULT_USER",
698
- "module": "src/env/variables.ts"
699
- }
700
- }
701
- ]
702
- },
703
- {
704
- "kind": "javascript-module",
705
- "path": "src/error/errorMap.ts",
706
- "declarations": [
707
- {
708
- "kind": "class",
709
- "description": "",
710
- "name": "DefaultErrorMap",
711
- "members": [
712
- {
713
- "kind": "field",
714
- "name": "map",
715
- "privacy": "private",
716
- "default": "new Map<keyof TErrorDetailMap, Error>()"
717
- },
718
- {
719
- "kind": "field",
720
- "name": "lastError",
721
- "type": {
722
- "text": "Error"
723
- },
724
- "description": "{@inheritDoc ErrorMap.lastError}"
725
- },
726
- {
727
- "kind": "method",
728
- "name": "set",
729
- "return": {
730
- "type": {
731
- "text": "void"
732
- }
733
- },
734
- "parameters": [
735
- {
736
- "name": "key",
737
- "type": {
738
- "text": "keyof TErrorDetailMap"
739
- }
740
- },
741
- {
742
- "name": "error",
743
- "type": {
744
- "text": "Error"
745
- }
746
- }
747
- ],
748
- "description": "{@inheritDoc ErrorMap.set}"
749
- },
750
- {
751
- "kind": "method",
752
- "name": "get",
753
- "return": {
754
- "type": {
755
- "text": ""
756
- }
757
- },
758
- "parameters": [
759
- {
760
- "name": "key",
761
- "type": {
762
- "text": "keyof TErrorDetailMap"
763
- },
764
- "description": "The key."
765
- }
766
- ],
767
- "description": "Get an error by key.",
768
- "privacy": "public"
769
- },
770
- {
771
- "kind": "method",
772
- "name": "has",
773
- "return": {
774
- "type": {
775
- "text": ""
776
- }
777
- },
778
- "parameters": [
779
- {
780
- "name": "key",
781
- "type": {
782
- "text": "keyof TErrorDetailMap"
783
- },
784
- "description": "The key."
785
- }
786
- ],
787
- "description": "Has an error for key.",
788
- "privacy": "public"
789
- },
790
- {
791
- "kind": "method",
792
- "name": "delete",
793
- "return": {
794
- "type": {
795
- "text": ""
796
- }
797
- },
798
- "parameters": [
799
- {
800
- "name": "key",
801
- "type": {
802
- "text": "keyof TErrorDetailMap"
803
- },
804
- "description": "The key."
805
- }
806
- ],
807
- "description": "Delete an error.",
808
- "privacy": "public"
809
- },
810
- {
811
- "kind": "method",
812
- "name": "clear",
813
- "description": "Clear errors.",
814
- "privacy": "public"
815
- },
816
- {
817
- "kind": "field",
818
- "name": "size",
819
- "type": {
820
- "text": "number"
821
- },
822
- "description": "The size of the error map.",
823
- "return": {
824
- "type": {
825
- "text": ""
826
- }
827
- },
828
- "privacy": "public",
829
- "readonly": true
830
- },
831
- {
832
- "kind": "method",
833
- "name": "values",
834
- "privacy": "public"
835
- },
836
- {
837
- "kind": "field",
838
- "name": "messages",
839
- "type": {
840
- "text": "string"
841
- },
842
- "description": "{@inheritDoc ErrorMap.messages}",
843
- "readonly": true
844
- }
845
- ]
846
- },
847
- {
848
- "kind": "function",
849
- "name": "createErrorMap",
850
- "return": {
851
- "type": {
852
- "text": ""
853
- }
854
- },
855
- "parameters": [
856
- {
857
- "name": "logger",
858
- "type": {
859
- "text": "ErrorMapLogger"
860
- },
861
- "description": "A logger error method reference."
862
- }
863
- ],
864
- "description": "A factory to create the error map.",
865
- "privacy": "public"
866
- }
867
- ],
868
- "exports": [
869
- {
870
- "kind": "js",
871
- "name": "DefaultErrorMap",
872
- "declaration": {
873
- "name": "DefaultErrorMap",
874
- "module": "src/error/errorMap.ts"
875
- }
876
- },
877
- {
878
- "kind": "js",
879
- "name": "createErrorMap",
880
- "declaration": {
881
- "name": "createErrorMap",
882
- "module": "src/error/errorMap.ts"
883
- }
884
- }
885
- ]
886
- },
887
- {
888
- "kind": "javascript-module",
889
- "path": "src/error/index.ts",
890
- "declarations": [],
891
- "exports": [
892
- {
893
- "kind": "js",
894
- "name": "*",
895
- "declaration": {
896
- "name": "*",
897
- "package": "./errorMap"
898
- }
899
- }
900
- ]
901
- },
902
- {
903
- "kind": "javascript-module",
904
- "path": "src/formatters/datetime.ts",
905
- "declarations": [
906
- {
907
- "kind": "function",
908
- "name": "formatDateTimestamp",
909
- "return": {
910
- "type": {
911
- "text": "string"
912
- }
913
- },
914
- "parameters": [
915
- {
916
- "name": "timestamp",
917
- "type": {
918
- "text": "number"
919
- }
920
- }
921
- ],
922
- "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
923
- "privacy": "public"
924
- },
925
- {
926
- "kind": "function",
927
- "name": "formatDateTimeTimestamp",
928
- "return": {
929
- "type": {
930
- "text": "string"
931
- }
932
- },
933
- "parameters": [
934
- {
935
- "name": "timestamp",
936
- "type": {
937
- "text": "number"
938
- }
939
- }
940
- ],
941
- "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
942
- "privacy": "public"
943
- },
944
- {
945
- "kind": "function",
946
- "name": "formatTimestamp",
947
- "return": {
948
- "type": {
949
- "text": "string"
950
- }
951
- },
952
- "parameters": [
953
- {
954
- "name": "timestamp",
955
- "type": {
956
- "text": "number"
957
- },
958
- "description": "The UNIX Timestamp."
959
- },
960
- {
961
- "name": "withTime",
962
- "type": {
963
- "text": "boolean"
964
- },
965
- "description": "The flag to determine if formatted value should contain 'time' info."
966
- }
967
- ],
968
- "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
969
- "privacy": "public"
970
- },
971
- {
972
- "kind": "function",
973
- "name": "getDateFormatter",
974
- "parameters": [
975
- {
976
- "name": "locale",
977
- "default": "'en-GB'",
978
- "type": {
979
- "text": "string"
980
- }
981
- },
982
- {
983
- "name": "options",
984
- "default": "defaultDateOptions",
985
- "type": {
986
- "text": "Intl.DateTimeFormatOptions"
987
- }
988
- }
989
- ],
1130
+ "text": "string"
1131
+ }
1132
+ },
1133
+ {
1134
+ "kind": "variable",
1135
+ "name": "_DEFAULT_USER",
1136
+ "type": {
1137
+ "text": "string"
1138
+ },
1139
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
990
1140
  "privacy": "public"
991
1141
  }
992
1142
  ],
993
1143
  "exports": [
994
1144
  {
995
1145
  "kind": "js",
996
- "name": "formatDateTimestamp",
1146
+ "name": "SOCKET_EXT",
997
1147
  "declaration": {
998
- "name": "formatDateTimestamp",
999
- "module": "src/formatters/datetime.ts"
1148
+ "name": "_SOCKET_EXT",
1149
+ "module": "src/env/variables.ts"
1000
1150
  }
1001
1151
  },
1002
1152
  {
1003
1153
  "kind": "js",
1004
- "name": "formatDateTimeTimestamp",
1154
+ "name": "FORCE_HTTP",
1005
1155
  "declaration": {
1006
- "name": "formatDateTimeTimestamp",
1007
- "module": "src/formatters/datetime.ts"
1156
+ "name": "_FORCE_HTTP",
1157
+ "module": "src/env/variables.ts"
1008
1158
  }
1009
1159
  },
1010
1160
  {
1011
1161
  "kind": "js",
1012
- "name": "formatTimestamp",
1162
+ "name": "GENESIS_SOCKET_URL",
1013
1163
  "declaration": {
1014
- "name": "formatTimestamp",
1015
- "module": "src/formatters/datetime.ts"
1164
+ "name": "GENESIS_SOCKET_URL",
1165
+ "module": "src/env/variables.ts"
1016
1166
  }
1017
1167
  },
1018
1168
  {
1019
1169
  "kind": "js",
1020
- "name": "getDateFormatter",
1021
- "declaration": {
1022
- "name": "getDateFormatter",
1023
- "module": "src/formatters/datetime.ts"
1024
- }
1025
- }
1026
- ]
1027
- },
1028
- {
1029
- "kind": "javascript-module",
1030
- "path": "src/formatters/index.ts",
1031
- "declarations": [],
1032
- "exports": [
1033
- {
1034
- "kind": "js",
1035
- "name": "*",
1170
+ "name": "API_HOST",
1036
1171
  "declaration": {
1037
- "name": "*",
1038
- "package": "./datetime"
1172
+ "name": "_API_HOST",
1173
+ "module": "src/env/variables.ts"
1039
1174
  }
1040
1175
  },
1041
1176
  {
1042
1177
  "kind": "js",
1043
- "name": "*",
1178
+ "name": "HTTP_CONFIG",
1044
1179
  "declaration": {
1045
- "name": "*",
1046
- "package": "./localeNumberParser"
1180
+ "name": "_HTTP_CONFIG",
1181
+ "module": "src/env/variables.ts"
1047
1182
  }
1048
1183
  },
1049
1184
  {
1050
1185
  "kind": "js",
1051
- "name": "*",
1052
- "declaration": {
1053
- "name": "*",
1054
- "package": "./number"
1055
- }
1056
- }
1057
- ]
1058
- },
1059
- {
1060
- "kind": "javascript-module",
1061
- "path": "src/formatters/localeNumberParser.ts",
1062
- "declarations": [
1063
- {
1064
- "kind": "class",
1065
- "description": "",
1066
- "name": "NumberParser",
1067
- "members": [
1068
- {
1069
- "kind": "field",
1070
- "name": "_decimal",
1071
- "type": {
1072
- "text": "RegExp"
1073
- },
1074
- "privacy": "private",
1075
- "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
1076
- },
1077
- {
1078
- "kind": "field",
1079
- "name": "_separator",
1080
- "type": {
1081
- "text": "RegExp"
1082
- },
1083
- "privacy": "private",
1084
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1085
- },
1086
- {
1087
- "kind": "field",
1088
- "name": "_numeral",
1089
- "type": {
1090
- "text": "RegExp"
1091
- },
1092
- "privacy": "private",
1093
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1094
- },
1095
- {
1096
- "kind": "field",
1097
- "name": "_index",
1098
- "type": {
1099
- "text": "any"
1100
- },
1101
- "privacy": "private"
1102
- },
1103
- {
1104
- "kind": "method",
1105
- "name": "parse",
1106
- "parameters": [
1107
- {
1108
- "name": "localeNumber",
1109
- "type": {
1110
- "text": "string"
1111
- }
1112
- }
1113
- ]
1114
- },
1115
- {
1116
- "kind": "method",
1117
- "name": "hasSeparator",
1118
- "return": {
1119
- "type": {
1120
- "text": "boolean"
1121
- }
1122
- },
1123
- "parameters": [
1124
- {
1125
- "name": "localeNumber",
1126
- "type": {
1127
- "text": "string"
1128
- }
1129
- }
1130
- ]
1131
- },
1132
- {
1133
- "kind": "field",
1134
- "name": "_group",
1135
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1136
- }
1137
- ]
1138
- }
1139
- ],
1140
- "exports": [
1141
- {
1142
- "kind": "js",
1143
- "name": "NumberParser",
1144
- "declaration": {
1145
- "name": "NumberParser",
1146
- "module": "src/formatters/localeNumberParser.ts"
1147
- }
1148
- }
1149
- ]
1150
- },
1151
- {
1152
- "kind": "javascript-module",
1153
- "path": "src/formatters/number.ts",
1154
- "declarations": [
1155
- {
1156
- "kind": "function",
1157
- "name": "getNumberFormatter",
1158
- "parameters": [
1159
- {
1160
- "name": "format",
1161
- "type": {
1162
- "text": "string"
1163
- }
1164
- },
1165
- {
1166
- "name": "locale",
1167
- "optional": true,
1168
- "type": {
1169
- "text": "string | null"
1170
- }
1171
- }
1172
- ],
1173
- "privacy": "public"
1174
- }
1175
- ],
1176
- "exports": [
1177
- {
1178
- "kind": "js",
1179
- "name": "getNumberFormatter",
1186
+ "name": "DEFAULT_ORGANISATION",
1180
1187
  "declaration": {
1181
- "name": "getNumberFormatter",
1182
- "module": "src/formatters/number.ts"
1188
+ "name": "_DEFAULT_ORGANISATION",
1189
+ "module": "src/env/variables.ts"
1183
1190
  }
1184
- }
1185
- ]
1186
- },
1187
- {
1188
- "kind": "javascript-module",
1189
- "path": "src/directives/index.ts",
1190
- "declarations": [],
1191
- "exports": [
1191
+ },
1192
1192
  {
1193
1193
  "kind": "js",
1194
- "name": "*",
1194
+ "name": "DEFAULT_PASSWORD",
1195
1195
  "declaration": {
1196
- "name": "*",
1197
- "package": "./sync"
1196
+ "name": "_DEFAULT_PASSWORD",
1197
+ "module": "src/env/variables.ts"
1198
1198
  }
1199
1199
  },
1200
1200
  {
1201
1201
  "kind": "js",
1202
- "name": "*",
1202
+ "name": "DEFAULT_USER",
1203
1203
  "declaration": {
1204
- "name": "*",
1205
- "package": "./when-else"
1204
+ "name": "_DEFAULT_USER",
1205
+ "module": "src/env/variables.ts"
1206
1206
  }
1207
1207
  }
1208
1208
  ]
@@ -1308,6 +1308,29 @@
1308
1308
  }
1309
1309
  ]
1310
1310
  },
1311
+ {
1312
+ "kind": "javascript-module",
1313
+ "path": "src/mixins/index.ts",
1314
+ "declarations": [],
1315
+ "exports": [
1316
+ {
1317
+ "kind": "js",
1318
+ "name": "*",
1319
+ "declaration": {
1320
+ "name": "*",
1321
+ "package": "./pendingState"
1322
+ }
1323
+ },
1324
+ {
1325
+ "kind": "js",
1326
+ "name": "*",
1327
+ "declaration": {
1328
+ "name": "*",
1329
+ "package": "./lifecycle"
1330
+ }
1331
+ }
1332
+ ]
1333
+ },
1311
1334
  {
1312
1335
  "kind": "javascript-module",
1313
1336
  "path": "src/observer/index.ts",
@@ -1436,29 +1459,6 @@
1436
1459
  }
1437
1460
  ]
1438
1461
  },
1439
- {
1440
- "kind": "javascript-module",
1441
- "path": "src/mixins/index.ts",
1442
- "declarations": [],
1443
- "exports": [
1444
- {
1445
- "kind": "js",
1446
- "name": "*",
1447
- "declaration": {
1448
- "name": "*",
1449
- "package": "./pendingState"
1450
- }
1451
- },
1452
- {
1453
- "kind": "js",
1454
- "name": "*",
1455
- "declaration": {
1456
- "name": "*",
1457
- "package": "./lifecycle"
1458
- }
1459
- }
1460
- ]
1461
- },
1462
1462
  {
1463
1463
  "kind": "javascript-module",
1464
1464
  "path": "src/resource/index.ts",