@genesislcap/foundation-utils 14.379.0 → 14.380.1-TAMTECH-262.2

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.
@@ -195,190 +195,7 @@
195
195
  },
196
196
  {
197
197
  "kind": "javascript-module",
198
- "path": "src/data/inMemoryDatabase.ts",
199
- "declarations": [
200
- {
201
- "kind": "class",
202
- "description": "An in memory database of specific DatabaseRecord types.",
203
- "name": "InMemoryDatabase",
204
- "members": [
205
- {
206
- "kind": "field",
207
- "name": "isWorking",
208
- "type": {
209
- "text": "boolean"
210
- },
211
- "privacy": "public",
212
- "default": "false"
213
- },
214
- {
215
- "kind": "field",
216
- "name": "records",
217
- "type": {
218
- "text": "Record<string, T>"
219
- },
220
- "privacy": "private",
221
- "default": "{}"
222
- },
223
- {
224
- "kind": "field",
225
- "name": "beforeUpdateListeners",
226
- "privacy": "private"
227
- },
228
- {
229
- "kind": "field",
230
- "name": "afterUpdateListeners",
231
- "privacy": "private"
232
- },
233
- {
234
- "kind": "method",
235
- "name": "create",
236
- "privacy": "public",
237
- "return": {
238
- "type": {
239
- "text": "Promise<DatabaseAccessResult.Create<T>>"
240
- }
241
- },
242
- "parameters": [
243
- {
244
- "name": "newValue",
245
- "type": {
246
- "text": "Omit<T, 'id'>"
247
- }
248
- }
249
- ]
250
- },
251
- {
252
- "kind": "method",
253
- "name": "read",
254
- "privacy": "public",
255
- "return": {
256
- "type": {
257
- "text": "Promise<DatabaseAccessResult.Read<T>>"
258
- }
259
- },
260
- "parameters": [
261
- {
262
- "name": "id",
263
- "type": {
264
- "text": "string"
265
- }
266
- }
267
- ]
268
- },
269
- {
270
- "kind": "method",
271
- "name": "update",
272
- "privacy": "public",
273
- "return": {
274
- "type": {
275
- "text": "Promise<DatabaseAccessResult.Update<T>>"
276
- }
277
- },
278
- "parameters": [
279
- {
280
- "name": "id",
281
- "type": {
282
- "text": "string"
283
- }
284
- },
285
- {
286
- "name": "newValue",
287
- "type": {
288
- "text": "Omit<Partial<T>, 'id'>"
289
- }
290
- }
291
- ]
292
- },
293
- {
294
- "kind": "method",
295
- "name": "delete",
296
- "privacy": "public",
297
- "return": {
298
- "type": {
299
- "text": "Promise<DatabaseAccessResult.Delete>"
300
- }
301
- },
302
- "parameters": [
303
- {
304
- "name": "id",
305
- "type": {
306
- "text": "string"
307
- }
308
- }
309
- ]
310
- },
311
- {
312
- "kind": "method",
313
- "name": "visit",
314
- "privacy": "public",
315
- "return": {
316
- "type": {
317
- "text": "Promise<void>"
318
- }
319
- },
320
- "parameters": [
321
- {
322
- "name": "visitor",
323
- "type": {
324
- "text": "(record: T) => void"
325
- }
326
- }
327
- ]
328
- },
329
- {
330
- "kind": "method",
331
- "name": "onBeforeUpdate",
332
- "privacy": "public",
333
- "return": {
334
- "type": {
335
- "text": "() => void"
336
- }
337
- },
338
- "parameters": [
339
- {
340
- "name": "listener",
341
- "type": {
342
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
343
- }
344
- }
345
- ]
346
- },
347
- {
348
- "kind": "method",
349
- "name": "onAfterUpdate",
350
- "privacy": "public",
351
- "return": {
352
- "type": {
353
- "text": "() => void"
354
- }
355
- },
356
- "parameters": [
357
- {
358
- "name": "listener",
359
- "type": {
360
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
361
- }
362
- }
363
- ]
364
- }
365
- ]
366
- }
367
- ],
368
- "exports": [
369
- {
370
- "kind": "js",
371
- "name": "InMemoryDatabase",
372
- "declaration": {
373
- "name": "InMemoryDatabase",
374
- "module": "src/data/inMemoryDatabase.ts"
375
- }
376
- }
377
- ]
378
- },
379
- {
380
- "kind": "javascript-module",
381
- "path": "src/data/index.ts",
198
+ "path": "src/directives/index.ts",
382
199
  "declarations": [],
383
200
  "exports": [
384
201
  {
@@ -386,67 +203,37 @@
386
203
  "name": "*",
387
204
  "declaration": {
388
205
  "name": "*",
389
- "package": "./inMemoryDatabase"
206
+ "package": "./sync"
390
207
  }
391
- }
392
- ]
393
- },
394
- {
395
- "kind": "javascript-module",
396
- "path": "src/decorators/index.ts",
397
- "declarations": [],
398
- "exports": [
208
+ },
399
209
  {
400
210
  "kind": "js",
401
211
  "name": "*",
402
212
  "declaration": {
403
213
  "name": "*",
404
- "package": "./renderOnChange"
214
+ "package": "./when-else"
405
215
  }
406
216
  }
407
217
  ]
408
218
  },
409
219
  {
410
220
  "kind": "javascript-module",
411
- "path": "src/decorators/renderOnChange.ts",
412
- "declarations": [
413
- {
414
- "kind": "function",
415
- "name": "renderOnChange",
416
- "parameters": [
417
- {
418
- "name": "target",
419
- "type": {
420
- "text": "FASTElement & { render(): void }"
421
- },
422
- "description": "The target to define the property change handler on."
423
- },
424
- {
425
- "name": "name",
426
- "type": {
427
- "text": "string"
428
- },
429
- "description": "The property name."
430
- }
431
- ],
432
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
433
- "privacy": "public"
434
- }
435
- ],
221
+ "path": "src/encoding/index.ts",
222
+ "declarations": [],
436
223
  "exports": [
437
224
  {
438
225
  "kind": "js",
439
- "name": "renderOnChange",
226
+ "name": "*",
440
227
  "declaration": {
441
- "name": "renderOnChange",
442
- "module": "src/decorators/renderOnChange.ts"
228
+ "name": "*",
229
+ "package": "./base64"
443
230
  }
444
231
  }
445
232
  ]
446
233
  },
447
234
  {
448
235
  "kind": "javascript-module",
449
- "path": "src/directives/index.ts",
236
+ "path": "src/env/index.ts",
450
237
  "declarations": [],
451
238
  "exports": [
452
239
  {
@@ -454,7 +241,7 @@
454
241
  "name": "*",
455
242
  "declaration": {
456
243
  "name": "*",
457
- "package": "./sync"
244
+ "package": "./is-dev"
458
245
  }
459
246
  },
460
247
  {
@@ -462,393 +249,36 @@
462
249
  "name": "*",
463
250
  "declaration": {
464
251
  "name": "*",
465
- "package": "./when-else"
252
+ "package": "./variables"
466
253
  }
467
254
  }
468
255
  ]
469
256
  },
470
257
  {
471
258
  "kind": "javascript-module",
472
- "path": "src/encoding/index.ts",
473
- "declarations": [],
259
+ "path": "src/env/is-dev.ts",
260
+ "declarations": [
261
+ {
262
+ "kind": "function",
263
+ "name": "isDev",
264
+ "description": "Determines if the current environment is a development environment.",
265
+ "privacy": "public"
266
+ }
267
+ ],
474
268
  "exports": [
475
269
  {
476
270
  "kind": "js",
477
- "name": "*",
271
+ "name": "isDev",
478
272
  "declaration": {
479
- "name": "*",
480
- "package": "./base64"
273
+ "name": "isDev",
274
+ "module": "src/env/is-dev.ts"
481
275
  }
482
276
  }
483
277
  ]
484
278
  },
485
279
  {
486
280
  "kind": "javascript-module",
487
- "path": "src/error/errorMap.ts",
488
- "declarations": [
489
- {
490
- "kind": "class",
491
- "description": "",
492
- "name": "DefaultErrorMap",
493
- "members": [
494
- {
495
- "kind": "field",
496
- "name": "map",
497
- "privacy": "private",
498
- "default": "new Map<keyof TErrorDetailMap, Error>()"
499
- },
500
- {
501
- "kind": "field",
502
- "name": "lastError",
503
- "type": {
504
- "text": "Error"
505
- },
506
- "description": "{@inheritDoc ErrorMap.lastError}"
507
- },
508
- {
509
- "kind": "method",
510
- "name": "set",
511
- "return": {
512
- "type": {
513
- "text": "void"
514
- }
515
- },
516
- "parameters": [
517
- {
518
- "name": "key",
519
- "type": {
520
- "text": "keyof TErrorDetailMap"
521
- }
522
- },
523
- {
524
- "name": "error",
525
- "type": {
526
- "text": "Error"
527
- }
528
- }
529
- ],
530
- "description": "{@inheritDoc ErrorMap.set}"
531
- },
532
- {
533
- "kind": "method",
534
- "name": "get",
535
- "return": {
536
- "type": {
537
- "text": ""
538
- }
539
- },
540
- "parameters": [
541
- {
542
- "name": "key",
543
- "type": {
544
- "text": "keyof TErrorDetailMap"
545
- },
546
- "description": "The key."
547
- }
548
- ],
549
- "description": "Get an error by key.",
550
- "privacy": "public"
551
- },
552
- {
553
- "kind": "method",
554
- "name": "has",
555
- "return": {
556
- "type": {
557
- "text": ""
558
- }
559
- },
560
- "parameters": [
561
- {
562
- "name": "key",
563
- "type": {
564
- "text": "keyof TErrorDetailMap"
565
- },
566
- "description": "The key."
567
- }
568
- ],
569
- "description": "Has an error for key.",
570
- "privacy": "public"
571
- },
572
- {
573
- "kind": "method",
574
- "name": "delete",
575
- "return": {
576
- "type": {
577
- "text": ""
578
- }
579
- },
580
- "parameters": [
581
- {
582
- "name": "key",
583
- "type": {
584
- "text": "keyof TErrorDetailMap"
585
- },
586
- "description": "The key."
587
- }
588
- ],
589
- "description": "Delete an error.",
590
- "privacy": "public"
591
- },
592
- {
593
- "kind": "method",
594
- "name": "clear",
595
- "description": "Clear errors.",
596
- "privacy": "public"
597
- },
598
- {
599
- "kind": "field",
600
- "name": "size",
601
- "type": {
602
- "text": "number"
603
- },
604
- "description": "The size of the error map.",
605
- "return": {
606
- "type": {
607
- "text": ""
608
- }
609
- },
610
- "privacy": "public",
611
- "readonly": true
612
- },
613
- {
614
- "kind": "method",
615
- "name": "values",
616
- "privacy": "public"
617
- },
618
- {
619
- "kind": "field",
620
- "name": "messages",
621
- "type": {
622
- "text": "string"
623
- },
624
- "description": "{@inheritDoc ErrorMap.messages}",
625
- "readonly": true
626
- }
627
- ]
628
- },
629
- {
630
- "kind": "function",
631
- "name": "createErrorMap",
632
- "return": {
633
- "type": {
634
- "text": ""
635
- }
636
- },
637
- "parameters": [
638
- {
639
- "name": "logger",
640
- "type": {
641
- "text": "ErrorMapLogger"
642
- },
643
- "description": "A logger error method reference."
644
- }
645
- ],
646
- "description": "A factory to create the error map.",
647
- "privacy": "public"
648
- }
649
- ],
650
- "exports": [
651
- {
652
- "kind": "js",
653
- "name": "DefaultErrorMap",
654
- "declaration": {
655
- "name": "DefaultErrorMap",
656
- "module": "src/error/errorMap.ts"
657
- }
658
- },
659
- {
660
- "kind": "js",
661
- "name": "createErrorMap",
662
- "declaration": {
663
- "name": "createErrorMap",
664
- "module": "src/error/errorMap.ts"
665
- }
666
- }
667
- ]
668
- },
669
- {
670
- "kind": "javascript-module",
671
- "path": "src/error/index.ts",
672
- "declarations": [],
673
- "exports": [
674
- {
675
- "kind": "js",
676
- "name": "*",
677
- "declaration": {
678
- "name": "*",
679
- "package": "./errorMap"
680
- }
681
- }
682
- ]
683
- },
684
- {
685
- "kind": "javascript-module",
686
- "path": "src/design-system/design-system.ts",
687
- "declarations": [
688
- {
689
- "kind": "function",
690
- "name": "assureDesignSystem",
691
- "return": {
692
- "type": {
693
- "text": "DesignSystemModule"
694
- }
695
- },
696
- "parameters": [
697
- {
698
- "name": "module",
699
- "type": {
700
- "text": "DesignSystemModule"
701
- }
702
- }
703
- ],
704
- "description": "assureDesignSystem.",
705
- "privacy": "public"
706
- },
707
- {
708
- "kind": "function",
709
- "name": "getCurrentDesignSystem",
710
- "return": {
711
- "type": {
712
- "text": ""
713
- }
714
- },
715
- "parameters": [
716
- {
717
- "name": "element",
718
- "type": {
719
- "text": "HTMLElement"
720
- },
721
- "description": "The starting HTML element"
722
- },
723
- {
724
- "name": "fallbackPrefix",
725
- "type": {
726
- "text": "string"
727
- },
728
- "description": "The prefix to fallback to if the provider is not available"
729
- }
730
- ],
731
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
732
- "privacy": "public"
733
- },
734
- {
735
- "kind": "function",
736
- "name": "getCurrentDesignSystemPrefix",
737
- "return": {
738
- "type": {
739
- "text": ""
740
- }
741
- },
742
- "parameters": [
743
- {
744
- "name": "element",
745
- "type": {
746
- "text": "HTMLElement"
747
- },
748
- "description": "The starting HTML element"
749
- },
750
- {
751
- "name": "fallbackPrefix",
752
- "type": {
753
- "text": "string"
754
- },
755
- "description": "The prefix to fallback to if the provider is not available"
756
- }
757
- ],
758
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
759
- "privacy": "public"
760
- }
761
- ],
762
- "exports": [
763
- {
764
- "kind": "js",
765
- "name": "assureDesignSystem",
766
- "declaration": {
767
- "name": "assureDesignSystem",
768
- "module": "src/design-system/design-system.ts"
769
- }
770
- },
771
- {
772
- "kind": "js",
773
- "name": "getCurrentDesignSystem",
774
- "declaration": {
775
- "name": "getCurrentDesignSystem",
776
- "module": "src/design-system/design-system.ts"
777
- }
778
- },
779
- {
780
- "kind": "js",
781
- "name": "getCurrentDesignSystemPrefix",
782
- "declaration": {
783
- "name": "getCurrentDesignSystemPrefix",
784
- "module": "src/design-system/design-system.ts"
785
- }
786
- }
787
- ]
788
- },
789
- {
790
- "kind": "javascript-module",
791
- "path": "src/design-system/index.ts",
792
- "declarations": [],
793
- "exports": [
794
- {
795
- "kind": "js",
796
- "name": "*",
797
- "declaration": {
798
- "name": "*",
799
- "package": "./design-system"
800
- }
801
- }
802
- ]
803
- },
804
- {
805
- "kind": "javascript-module",
806
- "path": "src/env/index.ts",
807
- "declarations": [],
808
- "exports": [
809
- {
810
- "kind": "js",
811
- "name": "*",
812
- "declaration": {
813
- "name": "*",
814
- "package": "./is-dev"
815
- }
816
- },
817
- {
818
- "kind": "js",
819
- "name": "*",
820
- "declaration": {
821
- "name": "*",
822
- "package": "./variables"
823
- }
824
- }
825
- ]
826
- },
827
- {
828
- "kind": "javascript-module",
829
- "path": "src/env/is-dev.ts",
830
- "declarations": [
831
- {
832
- "kind": "function",
833
- "name": "isDev",
834
- "description": "Determines if the current environment is a development environment.",
835
- "privacy": "public"
836
- }
837
- ],
838
- "exports": [
839
- {
840
- "kind": "js",
841
- "name": "isDev",
842
- "declaration": {
843
- "name": "isDev",
844
- "module": "src/env/is-dev.ts"
845
- }
846
- }
847
- ]
848
- },
849
- {
850
- "kind": "javascript-module",
851
- "path": "src/env/variables.ts",
281
+ "path": "src/env/variables.ts",
852
282
  "declarations": [
853
283
  {
854
284
  "kind": "variable",
@@ -990,288 +420,858 @@
990
420
  "privacy": "public"
991
421
  },
992
422
  {
993
- "kind": "variable",
994
- "name": "DEFAULT_USER",
995
- "type": {
996
- "text": "string"
423
+ "kind": "variable",
424
+ "name": "DEFAULT_USER",
425
+ "type": {
426
+ "text": "string"
427
+ }
428
+ },
429
+ {
430
+ "kind": "variable",
431
+ "name": "_DEFAULT_USER",
432
+ "type": {
433
+ "text": "string"
434
+ },
435
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
436
+ "privacy": "public"
437
+ },
438
+ {
439
+ "kind": "variable",
440
+ "name": "LOGIN_URL",
441
+ "type": {
442
+ "text": "string"
443
+ },
444
+ "default": "'gwf/event-login-auth'",
445
+ "privacy": "public"
446
+ },
447
+ {
448
+ "kind": "variable",
449
+ "name": "LOGIN_REFRESH_URL",
450
+ "type": {
451
+ "text": "string"
452
+ },
453
+ "default": "'gwf/event-login-auth'",
454
+ "privacy": "public"
455
+ },
456
+ {
457
+ "kind": "variable",
458
+ "name": "LOGIN_DETAILS_URL",
459
+ "type": {
460
+ "text": "string"
461
+ },
462
+ "default": "'gwf/event-login-details'",
463
+ "privacy": "public"
464
+ },
465
+ {
466
+ "kind": "variable",
467
+ "name": "LOGOUT_URL",
468
+ "type": {
469
+ "text": "string"
470
+ },
471
+ "default": "'gwf/event-logout'",
472
+ "privacy": "public"
473
+ },
474
+ {
475
+ "kind": "variable",
476
+ "name": "CHANGE_PASSWORD_URL",
477
+ "type": {
478
+ "text": "string"
479
+ },
480
+ "default": "'gwf/event-change-user-password'",
481
+ "privacy": "public"
482
+ },
483
+ {
484
+ "kind": "variable",
485
+ "name": "FORGOT_PASSWORD_URL",
486
+ "type": {
487
+ "text": "string"
488
+ },
489
+ "default": "'gwf/event-self-service-password-reset'",
490
+ "privacy": "public"
491
+ },
492
+ {
493
+ "kind": "variable",
494
+ "name": "RESET_PASSWORD_URL",
495
+ "type": {
496
+ "text": "string"
497
+ },
498
+ "default": "'gwf/event-password-reset-action'",
499
+ "privacy": "public"
500
+ },
501
+ {
502
+ "kind": "variable",
503
+ "name": "SSO_LIST_URL",
504
+ "type": {
505
+ "text": "string"
506
+ },
507
+ "default": "'gwf/sso/list'",
508
+ "privacy": "public"
509
+ },
510
+ {
511
+ "kind": "variable",
512
+ "name": "SSO_LOGIN_URL",
513
+ "type": {
514
+ "text": "string"
515
+ },
516
+ "default": "'gwf/{type}/login?idp={id}'",
517
+ "privacy": "public"
518
+ },
519
+ {
520
+ "kind": "variable",
521
+ "name": "ENVIRONMENT_LEVEL",
522
+ "type": {
523
+ "text": "string"
524
+ },
525
+ "default": "'default'",
526
+ "privacy": "public"
527
+ },
528
+ {
529
+ "kind": "variable",
530
+ "name": "ACCEPT_TERMS_URL",
531
+ "type": {
532
+ "text": "string"
533
+ },
534
+ "default": "'gwf/auth/accept-terms'",
535
+ "privacy": "public"
536
+ }
537
+ ],
538
+ "exports": [
539
+ {
540
+ "kind": "js",
541
+ "name": "BUILDER",
542
+ "declaration": {
543
+ "name": "_BUILDER",
544
+ "module": "src/env/variables.ts"
545
+ }
546
+ },
547
+ {
548
+ "kind": "js",
549
+ "name": "PUBLIC_PATH",
550
+ "declaration": {
551
+ "name": "_PUBLIC_PATH",
552
+ "module": "src/env/variables.ts"
553
+ }
554
+ },
555
+ {
556
+ "kind": "js",
557
+ "name": "SOCKET_EXT",
558
+ "declaration": {
559
+ "name": "_SOCKET_EXT",
560
+ "module": "src/env/variables.ts"
561
+ }
562
+ },
563
+ {
564
+ "kind": "js",
565
+ "name": "FORCE_HTTP",
566
+ "declaration": {
567
+ "name": "_FORCE_HTTP",
568
+ "module": "src/env/variables.ts"
569
+ }
570
+ },
571
+ {
572
+ "kind": "js",
573
+ "name": "GENESIS_SOCKET_URL",
574
+ "declaration": {
575
+ "name": "GENESIS_SOCKET_URL",
576
+ "module": "src/env/variables.ts"
577
+ }
578
+ },
579
+ {
580
+ "kind": "js",
581
+ "name": "API_HOST",
582
+ "declaration": {
583
+ "name": "_API_HOST",
584
+ "module": "src/env/variables.ts"
585
+ }
586
+ },
587
+ {
588
+ "kind": "js",
589
+ "name": "HTTP_CONFIG",
590
+ "declaration": {
591
+ "name": "_HTTP_CONFIG",
592
+ "module": "src/env/variables.ts"
593
+ }
594
+ },
595
+ {
596
+ "kind": "js",
597
+ "name": "DEFAULT_ORGANISATION",
598
+ "declaration": {
599
+ "name": "_DEFAULT_ORGANISATION",
600
+ "module": "src/env/variables.ts"
601
+ }
602
+ },
603
+ {
604
+ "kind": "js",
605
+ "name": "DEFAULT_PASSWORD",
606
+ "declaration": {
607
+ "name": "_DEFAULT_PASSWORD",
608
+ "module": "src/env/variables.ts"
997
609
  }
998
610
  },
999
611
  {
1000
- "kind": "variable",
1001
- "name": "_DEFAULT_USER",
1002
- "type": {
1003
- "text": "string"
1004
- },
1005
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
1006
- "privacy": "public"
612
+ "kind": "js",
613
+ "name": "DEFAULT_USER",
614
+ "declaration": {
615
+ "name": "_DEFAULT_USER",
616
+ "module": "src/env/variables.ts"
617
+ }
1007
618
  },
1008
619
  {
1009
- "kind": "variable",
620
+ "kind": "js",
1010
621
  "name": "LOGIN_URL",
1011
- "type": {
1012
- "text": "string"
1013
- },
1014
- "default": "'gwf/event-login-auth'",
1015
- "privacy": "public"
622
+ "declaration": {
623
+ "name": "LOGIN_URL",
624
+ "module": "src/env/variables.ts"
625
+ }
1016
626
  },
1017
627
  {
1018
- "kind": "variable",
628
+ "kind": "js",
1019
629
  "name": "LOGIN_REFRESH_URL",
1020
- "type": {
1021
- "text": "string"
1022
- },
1023
- "default": "'gwf/event-login-auth'",
1024
- "privacy": "public"
630
+ "declaration": {
631
+ "name": "LOGIN_REFRESH_URL",
632
+ "module": "src/env/variables.ts"
633
+ }
1025
634
  },
1026
635
  {
1027
- "kind": "variable",
636
+ "kind": "js",
1028
637
  "name": "LOGIN_DETAILS_URL",
1029
- "type": {
1030
- "text": "string"
1031
- },
1032
- "default": "'gwf/event-login-details'",
1033
- "privacy": "public"
638
+ "declaration": {
639
+ "name": "LOGIN_DETAILS_URL",
640
+ "module": "src/env/variables.ts"
641
+ }
1034
642
  },
1035
643
  {
1036
- "kind": "variable",
644
+ "kind": "js",
1037
645
  "name": "LOGOUT_URL",
1038
- "type": {
1039
- "text": "string"
1040
- },
1041
- "default": "'gwf/event-logout'",
1042
- "privacy": "public"
646
+ "declaration": {
647
+ "name": "LOGOUT_URL",
648
+ "module": "src/env/variables.ts"
649
+ }
1043
650
  },
1044
651
  {
1045
- "kind": "variable",
652
+ "kind": "js",
1046
653
  "name": "CHANGE_PASSWORD_URL",
1047
- "type": {
1048
- "text": "string"
1049
- },
1050
- "default": "'gwf/event-change-user-password'",
1051
- "privacy": "public"
654
+ "declaration": {
655
+ "name": "CHANGE_PASSWORD_URL",
656
+ "module": "src/env/variables.ts"
657
+ }
1052
658
  },
1053
659
  {
1054
- "kind": "variable",
660
+ "kind": "js",
1055
661
  "name": "FORGOT_PASSWORD_URL",
1056
- "type": {
1057
- "text": "string"
1058
- },
1059
- "default": "'gwf/event-self-service-password-reset'",
1060
- "privacy": "public"
662
+ "declaration": {
663
+ "name": "FORGOT_PASSWORD_URL",
664
+ "module": "src/env/variables.ts"
665
+ }
1061
666
  },
1062
667
  {
1063
- "kind": "variable",
668
+ "kind": "js",
1064
669
  "name": "RESET_PASSWORD_URL",
1065
- "type": {
1066
- "text": "string"
1067
- },
1068
- "default": "'gwf/event-password-reset-action'",
1069
- "privacy": "public"
670
+ "declaration": {
671
+ "name": "RESET_PASSWORD_URL",
672
+ "module": "src/env/variables.ts"
673
+ }
1070
674
  },
1071
675
  {
1072
- "kind": "variable",
676
+ "kind": "js",
1073
677
  "name": "SSO_LIST_URL",
1074
- "type": {
1075
- "text": "string"
1076
- },
1077
- "default": "'gwf/sso/list'",
1078
- "privacy": "public"
678
+ "declaration": {
679
+ "name": "SSO_LIST_URL",
680
+ "module": "src/env/variables.ts"
681
+ }
1079
682
  },
1080
683
  {
1081
- "kind": "variable",
684
+ "kind": "js",
1082
685
  "name": "SSO_LOGIN_URL",
1083
- "type": {
1084
- "text": "string"
1085
- },
1086
- "default": "'gwf/{type}/login?idp={id}'",
1087
- "privacy": "public"
686
+ "declaration": {
687
+ "name": "SSO_LOGIN_URL",
688
+ "module": "src/env/variables.ts"
689
+ }
1088
690
  },
1089
691
  {
1090
- "kind": "variable",
692
+ "kind": "js",
1091
693
  "name": "ENVIRONMENT_LEVEL",
1092
- "type": {
1093
- "text": "string"
1094
- },
1095
- "default": "'default'",
1096
- "privacy": "public"
694
+ "declaration": {
695
+ "name": "ENVIRONMENT_LEVEL",
696
+ "module": "src/env/variables.ts"
697
+ }
698
+ },
699
+ {
700
+ "kind": "js",
701
+ "name": "ACCEPT_TERMS_URL",
702
+ "declaration": {
703
+ "name": "ACCEPT_TERMS_URL",
704
+ "module": "src/env/variables.ts"
705
+ }
706
+ }
707
+ ]
708
+ },
709
+ {
710
+ "kind": "javascript-module",
711
+ "path": "src/error/errorMap.ts",
712
+ "declarations": [
713
+ {
714
+ "kind": "class",
715
+ "description": "",
716
+ "name": "DefaultErrorMap",
717
+ "members": [
718
+ {
719
+ "kind": "field",
720
+ "name": "map",
721
+ "privacy": "private",
722
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
723
+ },
724
+ {
725
+ "kind": "field",
726
+ "name": "lastError",
727
+ "type": {
728
+ "text": "Error"
729
+ },
730
+ "description": "{@inheritDoc ErrorMap.lastError}"
731
+ },
732
+ {
733
+ "kind": "method",
734
+ "name": "set",
735
+ "return": {
736
+ "type": {
737
+ "text": "void"
738
+ }
739
+ },
740
+ "parameters": [
741
+ {
742
+ "name": "key",
743
+ "type": {
744
+ "text": "keyof TErrorDetailMap"
745
+ }
746
+ },
747
+ {
748
+ "name": "error",
749
+ "type": {
750
+ "text": "Error"
751
+ }
752
+ }
753
+ ],
754
+ "description": "{@inheritDoc ErrorMap.set}"
755
+ },
756
+ {
757
+ "kind": "method",
758
+ "name": "get",
759
+ "return": {
760
+ "type": {
761
+ "text": ""
762
+ }
763
+ },
764
+ "parameters": [
765
+ {
766
+ "name": "key",
767
+ "type": {
768
+ "text": "keyof TErrorDetailMap"
769
+ },
770
+ "description": "The key."
771
+ }
772
+ ],
773
+ "description": "Get an error by key.",
774
+ "privacy": "public"
775
+ },
776
+ {
777
+ "kind": "method",
778
+ "name": "has",
779
+ "return": {
780
+ "type": {
781
+ "text": ""
782
+ }
783
+ },
784
+ "parameters": [
785
+ {
786
+ "name": "key",
787
+ "type": {
788
+ "text": "keyof TErrorDetailMap"
789
+ },
790
+ "description": "The key."
791
+ }
792
+ ],
793
+ "description": "Has an error for key.",
794
+ "privacy": "public"
795
+ },
796
+ {
797
+ "kind": "method",
798
+ "name": "delete",
799
+ "return": {
800
+ "type": {
801
+ "text": ""
802
+ }
803
+ },
804
+ "parameters": [
805
+ {
806
+ "name": "key",
807
+ "type": {
808
+ "text": "keyof TErrorDetailMap"
809
+ },
810
+ "description": "The key."
811
+ }
812
+ ],
813
+ "description": "Delete an error.",
814
+ "privacy": "public"
815
+ },
816
+ {
817
+ "kind": "method",
818
+ "name": "clear",
819
+ "description": "Clear errors.",
820
+ "privacy": "public"
821
+ },
822
+ {
823
+ "kind": "field",
824
+ "name": "size",
825
+ "type": {
826
+ "text": "number"
827
+ },
828
+ "description": "The size of the error map.",
829
+ "return": {
830
+ "type": {
831
+ "text": ""
832
+ }
833
+ },
834
+ "privacy": "public",
835
+ "readonly": true
836
+ },
837
+ {
838
+ "kind": "method",
839
+ "name": "values",
840
+ "privacy": "public"
841
+ },
842
+ {
843
+ "kind": "field",
844
+ "name": "messages",
845
+ "type": {
846
+ "text": "string"
847
+ },
848
+ "description": "{@inheritDoc ErrorMap.messages}",
849
+ "readonly": true
850
+ }
851
+ ]
1097
852
  },
1098
853
  {
1099
- "kind": "variable",
1100
- "name": "ACCEPT_TERMS_URL",
1101
- "type": {
1102
- "text": "string"
854
+ "kind": "function",
855
+ "name": "createErrorMap",
856
+ "return": {
857
+ "type": {
858
+ "text": ""
859
+ }
1103
860
  },
1104
- "default": "'gwf/auth/accept-terms'",
861
+ "parameters": [
862
+ {
863
+ "name": "logger",
864
+ "type": {
865
+ "text": "ErrorMapLogger"
866
+ },
867
+ "description": "A logger error method reference."
868
+ }
869
+ ],
870
+ "description": "A factory to create the error map.",
1105
871
  "privacy": "public"
1106
872
  }
1107
873
  ],
1108
874
  "exports": [
1109
875
  {
1110
876
  "kind": "js",
1111
- "name": "BUILDER",
1112
- "declaration": {
1113
- "name": "_BUILDER",
1114
- "module": "src/env/variables.ts"
1115
- }
1116
- },
1117
- {
1118
- "kind": "js",
1119
- "name": "PUBLIC_PATH",
1120
- "declaration": {
1121
- "name": "_PUBLIC_PATH",
1122
- "module": "src/env/variables.ts"
1123
- }
1124
- },
1125
- {
1126
- "kind": "js",
1127
- "name": "SOCKET_EXT",
1128
- "declaration": {
1129
- "name": "_SOCKET_EXT",
1130
- "module": "src/env/variables.ts"
1131
- }
1132
- },
1133
- {
1134
- "kind": "js",
1135
- "name": "FORCE_HTTP",
1136
- "declaration": {
1137
- "name": "_FORCE_HTTP",
1138
- "module": "src/env/variables.ts"
1139
- }
1140
- },
1141
- {
1142
- "kind": "js",
1143
- "name": "GENESIS_SOCKET_URL",
1144
- "declaration": {
1145
- "name": "GENESIS_SOCKET_URL",
1146
- "module": "src/env/variables.ts"
1147
- }
1148
- },
1149
- {
1150
- "kind": "js",
1151
- "name": "API_HOST",
877
+ "name": "DefaultErrorMap",
1152
878
  "declaration": {
1153
- "name": "_API_HOST",
1154
- "module": "src/env/variables.ts"
879
+ "name": "DefaultErrorMap",
880
+ "module": "src/error/errorMap.ts"
1155
881
  }
1156
882
  },
1157
883
  {
1158
884
  "kind": "js",
1159
- "name": "HTTP_CONFIG",
885
+ "name": "createErrorMap",
1160
886
  "declaration": {
1161
- "name": "_HTTP_CONFIG",
1162
- "module": "src/env/variables.ts"
887
+ "name": "createErrorMap",
888
+ "module": "src/error/errorMap.ts"
1163
889
  }
1164
- },
890
+ }
891
+ ]
892
+ },
893
+ {
894
+ "kind": "javascript-module",
895
+ "path": "src/error/index.ts",
896
+ "declarations": [],
897
+ "exports": [
1165
898
  {
1166
899
  "kind": "js",
1167
- "name": "DEFAULT_ORGANISATION",
900
+ "name": "*",
1168
901
  "declaration": {
1169
- "name": "_DEFAULT_ORGANISATION",
1170
- "module": "src/env/variables.ts"
902
+ "name": "*",
903
+ "package": "./errorMap"
1171
904
  }
1172
- },
905
+ }
906
+ ]
907
+ },
908
+ {
909
+ "kind": "javascript-module",
910
+ "path": "src/data/inMemoryDatabase.ts",
911
+ "declarations": [
1173
912
  {
1174
- "kind": "js",
1175
- "name": "DEFAULT_PASSWORD",
1176
- "declaration": {
1177
- "name": "_DEFAULT_PASSWORD",
1178
- "module": "src/env/variables.ts"
1179
- }
1180
- },
913
+ "kind": "class",
914
+ "description": "An in memory database of specific DatabaseRecord types.",
915
+ "name": "InMemoryDatabase",
916
+ "members": [
917
+ {
918
+ "kind": "field",
919
+ "name": "isWorking",
920
+ "type": {
921
+ "text": "boolean"
922
+ },
923
+ "privacy": "public",
924
+ "default": "false"
925
+ },
926
+ {
927
+ "kind": "field",
928
+ "name": "records",
929
+ "type": {
930
+ "text": "Record<string, T>"
931
+ },
932
+ "privacy": "private",
933
+ "default": "{}"
934
+ },
935
+ {
936
+ "kind": "field",
937
+ "name": "beforeUpdateListeners",
938
+ "privacy": "private"
939
+ },
940
+ {
941
+ "kind": "field",
942
+ "name": "afterUpdateListeners",
943
+ "privacy": "private"
944
+ },
945
+ {
946
+ "kind": "method",
947
+ "name": "create",
948
+ "privacy": "public",
949
+ "return": {
950
+ "type": {
951
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
952
+ }
953
+ },
954
+ "parameters": [
955
+ {
956
+ "name": "newValue",
957
+ "type": {
958
+ "text": "Omit<T, 'id'>"
959
+ }
960
+ }
961
+ ]
962
+ },
963
+ {
964
+ "kind": "method",
965
+ "name": "read",
966
+ "privacy": "public",
967
+ "return": {
968
+ "type": {
969
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
970
+ }
971
+ },
972
+ "parameters": [
973
+ {
974
+ "name": "id",
975
+ "type": {
976
+ "text": "string"
977
+ }
978
+ }
979
+ ]
980
+ },
981
+ {
982
+ "kind": "method",
983
+ "name": "update",
984
+ "privacy": "public",
985
+ "return": {
986
+ "type": {
987
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
988
+ }
989
+ },
990
+ "parameters": [
991
+ {
992
+ "name": "id",
993
+ "type": {
994
+ "text": "string"
995
+ }
996
+ },
997
+ {
998
+ "name": "newValue",
999
+ "type": {
1000
+ "text": "Omit<Partial<T>, 'id'>"
1001
+ }
1002
+ }
1003
+ ]
1004
+ },
1005
+ {
1006
+ "kind": "method",
1007
+ "name": "delete",
1008
+ "privacy": "public",
1009
+ "return": {
1010
+ "type": {
1011
+ "text": "Promise<DatabaseAccessResult.Delete>"
1012
+ }
1013
+ },
1014
+ "parameters": [
1015
+ {
1016
+ "name": "id",
1017
+ "type": {
1018
+ "text": "string"
1019
+ }
1020
+ }
1021
+ ]
1022
+ },
1023
+ {
1024
+ "kind": "method",
1025
+ "name": "visit",
1026
+ "privacy": "public",
1027
+ "return": {
1028
+ "type": {
1029
+ "text": "Promise<void>"
1030
+ }
1031
+ },
1032
+ "parameters": [
1033
+ {
1034
+ "name": "visitor",
1035
+ "type": {
1036
+ "text": "(record: T) => void"
1037
+ }
1038
+ }
1039
+ ]
1040
+ },
1041
+ {
1042
+ "kind": "method",
1043
+ "name": "onBeforeUpdate",
1044
+ "privacy": "public",
1045
+ "return": {
1046
+ "type": {
1047
+ "text": "() => void"
1048
+ }
1049
+ },
1050
+ "parameters": [
1051
+ {
1052
+ "name": "listener",
1053
+ "type": {
1054
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1055
+ }
1056
+ }
1057
+ ]
1058
+ },
1059
+ {
1060
+ "kind": "method",
1061
+ "name": "onAfterUpdate",
1062
+ "privacy": "public",
1063
+ "return": {
1064
+ "type": {
1065
+ "text": "() => void"
1066
+ }
1067
+ },
1068
+ "parameters": [
1069
+ {
1070
+ "name": "listener",
1071
+ "type": {
1072
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1073
+ }
1074
+ }
1075
+ ]
1076
+ }
1077
+ ]
1078
+ }
1079
+ ],
1080
+ "exports": [
1181
1081
  {
1182
1082
  "kind": "js",
1183
- "name": "DEFAULT_USER",
1083
+ "name": "InMemoryDatabase",
1184
1084
  "declaration": {
1185
- "name": "_DEFAULT_USER",
1186
- "module": "src/env/variables.ts"
1085
+ "name": "InMemoryDatabase",
1086
+ "module": "src/data/inMemoryDatabase.ts"
1187
1087
  }
1188
- },
1088
+ }
1089
+ ]
1090
+ },
1091
+ {
1092
+ "kind": "javascript-module",
1093
+ "path": "src/data/index.ts",
1094
+ "declarations": [],
1095
+ "exports": [
1189
1096
  {
1190
1097
  "kind": "js",
1191
- "name": "LOGIN_URL",
1098
+ "name": "*",
1192
1099
  "declaration": {
1193
- "name": "LOGIN_URL",
1194
- "module": "src/env/variables.ts"
1100
+ "name": "*",
1101
+ "package": "./inMemoryDatabase"
1195
1102
  }
1196
- },
1103
+ }
1104
+ ]
1105
+ },
1106
+ {
1107
+ "kind": "javascript-module",
1108
+ "path": "src/decorators/index.ts",
1109
+ "declarations": [],
1110
+ "exports": [
1197
1111
  {
1198
1112
  "kind": "js",
1199
- "name": "LOGIN_REFRESH_URL",
1113
+ "name": "*",
1200
1114
  "declaration": {
1201
- "name": "LOGIN_REFRESH_URL",
1202
- "module": "src/env/variables.ts"
1115
+ "name": "*",
1116
+ "package": "./renderOnChange"
1203
1117
  }
1204
- },
1118
+ }
1119
+ ]
1120
+ },
1121
+ {
1122
+ "kind": "javascript-module",
1123
+ "path": "src/decorators/renderOnChange.ts",
1124
+ "declarations": [
1205
1125
  {
1206
- "kind": "js",
1207
- "name": "LOGIN_DETAILS_URL",
1208
- "declaration": {
1209
- "name": "LOGIN_DETAILS_URL",
1210
- "module": "src/env/variables.ts"
1211
- }
1212
- },
1126
+ "kind": "function",
1127
+ "name": "renderOnChange",
1128
+ "parameters": [
1129
+ {
1130
+ "name": "target",
1131
+ "type": {
1132
+ "text": "FASTElement & { render(): void }"
1133
+ },
1134
+ "description": "The target to define the property change handler on."
1135
+ },
1136
+ {
1137
+ "name": "name",
1138
+ "type": {
1139
+ "text": "string"
1140
+ },
1141
+ "description": "The property name."
1142
+ }
1143
+ ],
1144
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1145
+ "privacy": "public"
1146
+ }
1147
+ ],
1148
+ "exports": [
1213
1149
  {
1214
1150
  "kind": "js",
1215
- "name": "LOGOUT_URL",
1151
+ "name": "renderOnChange",
1216
1152
  "declaration": {
1217
- "name": "LOGOUT_URL",
1218
- "module": "src/env/variables.ts"
1153
+ "name": "renderOnChange",
1154
+ "module": "src/decorators/renderOnChange.ts"
1219
1155
  }
1220
- },
1156
+ }
1157
+ ]
1158
+ },
1159
+ {
1160
+ "kind": "javascript-module",
1161
+ "path": "src/design-system/design-system.ts",
1162
+ "declarations": [
1221
1163
  {
1222
- "kind": "js",
1223
- "name": "CHANGE_PASSWORD_URL",
1224
- "declaration": {
1225
- "name": "CHANGE_PASSWORD_URL",
1226
- "module": "src/env/variables.ts"
1227
- }
1164
+ "kind": "function",
1165
+ "name": "assureDesignSystem",
1166
+ "return": {
1167
+ "type": {
1168
+ "text": "DesignSystemModule"
1169
+ }
1170
+ },
1171
+ "parameters": [
1172
+ {
1173
+ "name": "module",
1174
+ "type": {
1175
+ "text": "DesignSystemModule"
1176
+ }
1177
+ }
1178
+ ],
1179
+ "description": "assureDesignSystem.",
1180
+ "privacy": "public"
1228
1181
  },
1229
1182
  {
1230
- "kind": "js",
1231
- "name": "FORGOT_PASSWORD_URL",
1232
- "declaration": {
1233
- "name": "FORGOT_PASSWORD_URL",
1234
- "module": "src/env/variables.ts"
1235
- }
1183
+ "kind": "function",
1184
+ "name": "getCurrentDesignSystem",
1185
+ "return": {
1186
+ "type": {
1187
+ "text": ""
1188
+ }
1189
+ },
1190
+ "parameters": [
1191
+ {
1192
+ "name": "element",
1193
+ "type": {
1194
+ "text": "HTMLElement"
1195
+ },
1196
+ "description": "The starting HTML element"
1197
+ },
1198
+ {
1199
+ "name": "fallbackPrefix",
1200
+ "type": {
1201
+ "text": "string"
1202
+ },
1203
+ "description": "The prefix to fallback to if the provider is not available"
1204
+ }
1205
+ ],
1206
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1207
+ "privacy": "public"
1236
1208
  },
1237
1209
  {
1238
- "kind": "js",
1239
- "name": "RESET_PASSWORD_URL",
1240
- "declaration": {
1241
- "name": "RESET_PASSWORD_URL",
1242
- "module": "src/env/variables.ts"
1243
- }
1244
- },
1210
+ "kind": "function",
1211
+ "name": "getCurrentDesignSystemPrefix",
1212
+ "return": {
1213
+ "type": {
1214
+ "text": ""
1215
+ }
1216
+ },
1217
+ "parameters": [
1218
+ {
1219
+ "name": "element",
1220
+ "type": {
1221
+ "text": "HTMLElement"
1222
+ },
1223
+ "description": "The starting HTML element"
1224
+ },
1225
+ {
1226
+ "name": "fallbackPrefix",
1227
+ "type": {
1228
+ "text": "string"
1229
+ },
1230
+ "description": "The prefix to fallback to if the provider is not available"
1231
+ }
1232
+ ],
1233
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1234
+ "privacy": "public"
1235
+ }
1236
+ ],
1237
+ "exports": [
1245
1238
  {
1246
1239
  "kind": "js",
1247
- "name": "SSO_LIST_URL",
1240
+ "name": "assureDesignSystem",
1248
1241
  "declaration": {
1249
- "name": "SSO_LIST_URL",
1250
- "module": "src/env/variables.ts"
1242
+ "name": "assureDesignSystem",
1243
+ "module": "src/design-system/design-system.ts"
1251
1244
  }
1252
1245
  },
1253
1246
  {
1254
1247
  "kind": "js",
1255
- "name": "SSO_LOGIN_URL",
1248
+ "name": "getCurrentDesignSystem",
1256
1249
  "declaration": {
1257
- "name": "SSO_LOGIN_URL",
1258
- "module": "src/env/variables.ts"
1250
+ "name": "getCurrentDesignSystem",
1251
+ "module": "src/design-system/design-system.ts"
1259
1252
  }
1260
1253
  },
1261
1254
  {
1262
1255
  "kind": "js",
1263
- "name": "ENVIRONMENT_LEVEL",
1256
+ "name": "getCurrentDesignSystemPrefix",
1264
1257
  "declaration": {
1265
- "name": "ENVIRONMENT_LEVEL",
1266
- "module": "src/env/variables.ts"
1258
+ "name": "getCurrentDesignSystemPrefix",
1259
+ "module": "src/design-system/design-system.ts"
1267
1260
  }
1268
- },
1261
+ }
1262
+ ]
1263
+ },
1264
+ {
1265
+ "kind": "javascript-module",
1266
+ "path": "src/design-system/index.ts",
1267
+ "declarations": [],
1268
+ "exports": [
1269
1269
  {
1270
1270
  "kind": "js",
1271
- "name": "ACCEPT_TERMS_URL",
1271
+ "name": "*",
1272
1272
  "declaration": {
1273
- "name": "ACCEPT_TERMS_URL",
1274
- "module": "src/env/variables.ts"
1273
+ "name": "*",
1274
+ "package": "./design-system"
1275
1275
  }
1276
1276
  }
1277
1277
  ]