@genesislcap/foundation-utils 14.190.0 → 14.191.1-dotenv.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +562 -562
  2. package/package.json +10 -10
@@ -161,198 +161,261 @@
161
161
  },
162
162
  {
163
163
  "kind": "javascript-module",
164
- "path": "src/data/inMemoryDatabase.ts",
164
+ "path": "src/directives/index.ts",
165
+ "declarations": [],
166
+ "exports": [
167
+ {
168
+ "kind": "js",
169
+ "name": "*",
170
+ "declaration": {
171
+ "name": "*",
172
+ "package": "./sync"
173
+ }
174
+ },
175
+ {
176
+ "kind": "js",
177
+ "name": "*",
178
+ "declaration": {
179
+ "name": "*",
180
+ "package": "./when-else"
181
+ }
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "kind": "javascript-module",
187
+ "path": "src/env/index.ts",
188
+ "declarations": [],
189
+ "exports": [
190
+ {
191
+ "kind": "js",
192
+ "name": "*",
193
+ "declaration": {
194
+ "name": "*",
195
+ "package": "./is-dev"
196
+ }
197
+ },
198
+ {
199
+ "kind": "js",
200
+ "name": "*",
201
+ "declaration": {
202
+ "name": "*",
203
+ "package": "./variables"
204
+ }
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "kind": "javascript-module",
210
+ "path": "src/env/is-dev.ts",
165
211
  "declarations": [
166
212
  {
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
- ]
213
+ "kind": "function",
214
+ "name": "isDev",
215
+ "description": "Determines if the current environment is a development environment.",
216
+ "privacy": "public"
217
+ }
218
+ ],
219
+ "exports": [
220
+ {
221
+ "kind": "js",
222
+ "name": "isDev",
223
+ "declaration": {
224
+ "name": "isDev",
225
+ "module": "src/env/is-dev.ts"
226
+ }
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "kind": "javascript-module",
232
+ "path": "src/env/variables.ts",
233
+ "declarations": [
234
+ {
235
+ "kind": "variable",
236
+ "name": "SOCKET_EXT",
237
+ "type": {
238
+ "text": "string"
239
+ }
240
+ },
241
+ {
242
+ "kind": "variable",
243
+ "name": "_SOCKET_EXT",
244
+ "type": {
245
+ "text": "string"
246
+ },
247
+ "default": "'gwf'",
248
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
249
+ "privacy": "public"
250
+ },
251
+ {
252
+ "kind": "variable",
253
+ "name": "FORCE_HTTP",
254
+ "type": {
255
+ "text": "string"
256
+ }
257
+ },
258
+ {
259
+ "kind": "variable",
260
+ "name": "_FORCE_HTTP",
261
+ "type": {
262
+ "text": "string"
263
+ },
264
+ "description": "The path to a JSON config file for the HTTP mode.",
265
+ "privacy": "public"
266
+ },
267
+ {
268
+ "kind": "variable",
269
+ "name": "GENESIS_SOCKET_URL",
270
+ "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
271
+ "description": "Genesis Socket URL",
272
+ "privacy": "public"
273
+ },
274
+ {
275
+ "kind": "variable",
276
+ "name": "API_HOST",
277
+ "type": {
278
+ "text": "string"
279
+ }
280
+ },
281
+ {
282
+ "kind": "variable",
283
+ "name": "_API_HOST",
284
+ "type": {
285
+ "text": "string"
286
+ },
287
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
288
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
289
+ "privacy": "public"
290
+ },
291
+ {
292
+ "kind": "variable",
293
+ "name": "HTTP_CONFIG",
294
+ "type": {
295
+ "text": "string"
296
+ }
297
+ },
298
+ {
299
+ "kind": "variable",
300
+ "name": "_HTTP_CONFIG",
301
+ "type": {
302
+ "text": "string"
303
+ },
304
+ "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
305
+ "privacy": "public"
306
+ },
307
+ {
308
+ "kind": "variable",
309
+ "name": "DEFAULT_ORGANISATION",
310
+ "type": {
311
+ "text": "string"
312
+ }
313
+ },
314
+ {
315
+ "kind": "variable",
316
+ "name": "_DEFAULT_ORGANISATION",
317
+ "type": {
318
+ "text": "string"
319
+ },
320
+ "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
321
+ "privacy": "public"
322
+ },
323
+ {
324
+ "kind": "variable",
325
+ "name": "DEFAULT_PASSWORD",
326
+ "type": {
327
+ "text": "string"
328
+ }
329
+ },
330
+ {
331
+ "kind": "variable",
332
+ "name": "_DEFAULT_PASSWORD",
333
+ "type": {
334
+ "text": "string"
335
+ },
336
+ "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
337
+ "privacy": "public"
338
+ },
339
+ {
340
+ "kind": "variable",
341
+ "name": "DEFAULT_USER",
342
+ "type": {
343
+ "text": "string"
344
+ }
345
+ },
346
+ {
347
+ "kind": "variable",
348
+ "name": "_DEFAULT_USER",
349
+ "type": {
350
+ "text": "string"
351
+ },
352
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
353
+ "privacy": "public"
332
354
  }
333
355
  ],
334
356
  "exports": [
335
357
  {
336
358
  "kind": "js",
337
- "name": "InMemoryDatabase",
359
+ "name": "SOCKET_EXT",
360
+ "declaration": {
361
+ "name": "_SOCKET_EXT",
362
+ "module": "src/env/variables.ts"
363
+ }
364
+ },
365
+ {
366
+ "kind": "js",
367
+ "name": "FORCE_HTTP",
338
368
  "declaration": {
339
- "name": "InMemoryDatabase",
340
- "module": "src/data/inMemoryDatabase.ts"
369
+ "name": "_FORCE_HTTP",
370
+ "module": "src/env/variables.ts"
341
371
  }
342
- }
343
- ]
344
- },
345
- {
346
- "kind": "javascript-module",
347
- "path": "src/data/index.ts",
348
- "declarations": [],
349
- "exports": [
372
+ },
350
373
  {
351
374
  "kind": "js",
352
- "name": "*",
375
+ "name": "GENESIS_SOCKET_URL",
353
376
  "declaration": {
354
- "name": "*",
355
- "package": "./inMemoryDatabase"
377
+ "name": "GENESIS_SOCKET_URL",
378
+ "module": "src/env/variables.ts"
379
+ }
380
+ },
381
+ {
382
+ "kind": "js",
383
+ "name": "API_HOST",
384
+ "declaration": {
385
+ "name": "_API_HOST",
386
+ "module": "src/env/variables.ts"
387
+ }
388
+ },
389
+ {
390
+ "kind": "js",
391
+ "name": "HTTP_CONFIG",
392
+ "declaration": {
393
+ "name": "_HTTP_CONFIG",
394
+ "module": "src/env/variables.ts"
395
+ }
396
+ },
397
+ {
398
+ "kind": "js",
399
+ "name": "DEFAULT_ORGANISATION",
400
+ "declaration": {
401
+ "name": "_DEFAULT_ORGANISATION",
402
+ "module": "src/env/variables.ts"
403
+ }
404
+ },
405
+ {
406
+ "kind": "js",
407
+ "name": "DEFAULT_PASSWORD",
408
+ "declaration": {
409
+ "name": "_DEFAULT_PASSWORD",
410
+ "module": "src/env/variables.ts"
411
+ }
412
+ },
413
+ {
414
+ "kind": "js",
415
+ "name": "DEFAULT_USER",
416
+ "declaration": {
417
+ "name": "_DEFAULT_USER",
418
+ "module": "src/env/variables.ts"
356
419
  }
357
420
  }
358
421
  ]
@@ -412,80 +475,191 @@
412
475
  },
413
476
  {
414
477
  "kind": "javascript-module",
415
- "path": "src/design-system/design-system.ts",
478
+ "path": "src/error/errorMap.ts",
416
479
  "declarations": [
480
+ {
481
+ "kind": "class",
482
+ "description": "",
483
+ "name": "DefaultErrorMap",
484
+ "members": [
485
+ {
486
+ "kind": "field",
487
+ "name": "map",
488
+ "privacy": "private",
489
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
490
+ },
491
+ {
492
+ "kind": "field",
493
+ "name": "lastError",
494
+ "type": {
495
+ "text": "Error"
496
+ },
497
+ "description": "{@inheritDoc ErrorMap.lastError}"
498
+ },
499
+ {
500
+ "kind": "method",
501
+ "name": "set",
502
+ "return": {
503
+ "type": {
504
+ "text": "void"
505
+ }
506
+ },
507
+ "parameters": [
508
+ {
509
+ "name": "key",
510
+ "type": {
511
+ "text": "keyof TErrorDetailMap"
512
+ }
513
+ },
514
+ {
515
+ "name": "error",
516
+ "type": {
517
+ "text": "Error"
518
+ }
519
+ }
520
+ ],
521
+ "description": "{@inheritDoc ErrorMap.set}"
522
+ },
523
+ {
524
+ "kind": "method",
525
+ "name": "get",
526
+ "return": {
527
+ "type": {
528
+ "text": ""
529
+ }
530
+ },
531
+ "parameters": [
532
+ {
533
+ "name": "key",
534
+ "type": {
535
+ "text": "keyof TErrorDetailMap"
536
+ },
537
+ "description": "The key."
538
+ }
539
+ ],
540
+ "description": "Get an error by key.",
541
+ "privacy": "public"
542
+ },
543
+ {
544
+ "kind": "method",
545
+ "name": "has",
546
+ "return": {
547
+ "type": {
548
+ "text": ""
549
+ }
550
+ },
551
+ "parameters": [
552
+ {
553
+ "name": "key",
554
+ "type": {
555
+ "text": "keyof TErrorDetailMap"
556
+ },
557
+ "description": "The key."
558
+ }
559
+ ],
560
+ "description": "Has an error for key.",
561
+ "privacy": "public"
562
+ },
563
+ {
564
+ "kind": "method",
565
+ "name": "delete",
566
+ "return": {
567
+ "type": {
568
+ "text": ""
569
+ }
570
+ },
571
+ "parameters": [
572
+ {
573
+ "name": "key",
574
+ "type": {
575
+ "text": "keyof TErrorDetailMap"
576
+ },
577
+ "description": "The key."
578
+ }
579
+ ],
580
+ "description": "Delete an error.",
581
+ "privacy": "public"
582
+ },
583
+ {
584
+ "kind": "method",
585
+ "name": "clear",
586
+ "description": "Clear errors.",
587
+ "privacy": "public"
588
+ },
589
+ {
590
+ "kind": "field",
591
+ "name": "size",
592
+ "type": {
593
+ "text": "number"
594
+ },
595
+ "description": "The size of the error map.",
596
+ "return": {
597
+ "type": {
598
+ "text": ""
599
+ }
600
+ },
601
+ "privacy": "public",
602
+ "readonly": true
603
+ },
604
+ {
605
+ "kind": "method",
606
+ "name": "values",
607
+ "privacy": "public"
608
+ },
609
+ {
610
+ "kind": "field",
611
+ "name": "messages",
612
+ "type": {
613
+ "text": "string"
614
+ },
615
+ "description": "{@inheritDoc ErrorMap.messages}",
616
+ "readonly": true
617
+ }
618
+ ]
619
+ },
417
620
  {
418
621
  "kind": "function",
419
- "name": "assureDesignSystem",
622
+ "name": "createErrorMap",
420
623
  "return": {
421
624
  "type": {
422
- "text": "DesignSystemModule"
625
+ "text": ""
423
626
  }
424
627
  },
425
628
  "parameters": [
426
629
  {
427
- "name": "module",
630
+ "name": "logger",
428
631
  "type": {
429
- "text": "DesignSystemModule"
430
- }
632
+ "text": "ErrorMapLogger"
633
+ },
634
+ "description": "A logger error method reference."
431
635
  }
432
636
  ],
433
- "description": "assureDesignSystem.",
637
+ "description": "A factory to create the error map.",
434
638
  "privacy": "public"
435
639
  }
436
640
  ],
437
641
  "exports": [
438
642
  {
439
643
  "kind": "js",
440
- "name": "assureDesignSystem",
441
- "declaration": {
442
- "name": "assureDesignSystem",
443
- "module": "src/design-system/design-system.ts"
444
- }
445
- }
446
- ]
447
- },
448
- {
449
- "kind": "javascript-module",
450
- "path": "src/design-system/index.ts",
451
- "declarations": [],
452
- "exports": [
453
- {
454
- "kind": "js",
455
- "name": "*",
456
- "declaration": {
457
- "name": "*",
458
- "package": "./design-system"
459
- }
460
- }
461
- ]
462
- },
463
- {
464
- "kind": "javascript-module",
465
- "path": "src/directives/index.ts",
466
- "declarations": [],
467
- "exports": [
468
- {
469
- "kind": "js",
470
- "name": "*",
644
+ "name": "DefaultErrorMap",
471
645
  "declaration": {
472
- "name": "*",
473
- "package": "./sync"
646
+ "name": "DefaultErrorMap",
647
+ "module": "src/error/errorMap.ts"
474
648
  }
475
649
  },
476
650
  {
477
651
  "kind": "js",
478
- "name": "*",
652
+ "name": "createErrorMap",
479
653
  "declaration": {
480
- "name": "*",
481
- "package": "./when-else"
654
+ "name": "createErrorMap",
655
+ "module": "src/error/errorMap.ts"
482
656
  }
483
657
  }
484
658
  ]
485
659
  },
486
660
  {
487
661
  "kind": "javascript-module",
488
- "path": "src/env/index.ts",
662
+ "path": "src/error/index.ts",
489
663
  "declarations": [],
490
664
  "exports": [
491
665
  {
@@ -493,421 +667,247 @@
493
667
  "name": "*",
494
668
  "declaration": {
495
669
  "name": "*",
496
- "package": "./is-dev"
497
- }
498
- },
499
- {
500
- "kind": "js",
501
- "name": "*",
502
- "declaration": {
503
- "name": "*",
504
- "package": "./variables"
670
+ "package": "./errorMap"
505
671
  }
506
672
  }
507
673
  ]
508
674
  },
509
675
  {
510
676
  "kind": "javascript-module",
511
- "path": "src/env/is-dev.ts",
677
+ "path": "src/design-system/design-system.ts",
512
678
  "declarations": [
513
679
  {
514
680
  "kind": "function",
515
- "name": "isDev",
516
- "description": "Determines if the current environment is a development environment.",
681
+ "name": "assureDesignSystem",
682
+ "return": {
683
+ "type": {
684
+ "text": "DesignSystemModule"
685
+ }
686
+ },
687
+ "parameters": [
688
+ {
689
+ "name": "module",
690
+ "type": {
691
+ "text": "DesignSystemModule"
692
+ }
693
+ }
694
+ ],
695
+ "description": "assureDesignSystem.",
517
696
  "privacy": "public"
518
697
  }
519
698
  ],
520
699
  "exports": [
521
700
  {
522
701
  "kind": "js",
523
- "name": "isDev",
702
+ "name": "assureDesignSystem",
524
703
  "declaration": {
525
- "name": "isDev",
526
- "module": "src/env/is-dev.ts"
704
+ "name": "assureDesignSystem",
705
+ "module": "src/design-system/design-system.ts"
527
706
  }
528
707
  }
529
708
  ]
530
709
  },
531
710
  {
532
711
  "kind": "javascript-module",
533
- "path": "src/env/variables.ts",
534
- "declarations": [
535
- {
536
- "kind": "variable",
537
- "name": "SOCKET_EXT",
538
- "type": {
539
- "text": "string"
540
- }
541
- },
542
- {
543
- "kind": "variable",
544
- "name": "_SOCKET_EXT",
545
- "type": {
546
- "text": "string"
547
- },
548
- "default": "'gwf'",
549
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
550
- "privacy": "public"
551
- },
552
- {
553
- "kind": "variable",
554
- "name": "FORCE_HTTP",
555
- "type": {
556
- "text": "string"
557
- }
558
- },
559
- {
560
- "kind": "variable",
561
- "name": "_FORCE_HTTP",
562
- "type": {
563
- "text": "string"
564
- },
565
- "description": "The path to a JSON config file for the HTTP mode.",
566
- "privacy": "public"
567
- },
568
- {
569
- "kind": "variable",
570
- "name": "GENESIS_SOCKET_URL",
571
- "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
572
- "description": "Genesis Socket URL",
573
- "privacy": "public"
574
- },
575
- {
576
- "kind": "variable",
577
- "name": "API_HOST",
578
- "type": {
579
- "text": "string"
580
- }
581
- },
582
- {
583
- "kind": "variable",
584
- "name": "_API_HOST",
585
- "type": {
586
- "text": "string"
587
- },
588
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
589
- "description": "The Genesis Server URL (WebSocket or HTTP).",
590
- "privacy": "public"
591
- },
592
- {
593
- "kind": "variable",
594
- "name": "HTTP_CONFIG",
595
- "type": {
596
- "text": "string"
597
- }
598
- },
599
- {
600
- "kind": "variable",
601
- "name": "_HTTP_CONFIG",
602
- "type": {
603
- "text": "string"
604
- },
605
- "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
606
- "privacy": "public"
607
- },
608
- {
609
- "kind": "variable",
610
- "name": "DEFAULT_ORGANISATION",
611
- "type": {
612
- "text": "string"
613
- }
614
- },
615
- {
616
- "kind": "variable",
617
- "name": "_DEFAULT_ORGANISATION",
618
- "type": {
619
- "text": "string"
620
- },
621
- "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
622
- "privacy": "public"
623
- },
624
- {
625
- "kind": "variable",
626
- "name": "DEFAULT_PASSWORD",
627
- "type": {
628
- "text": "string"
629
- }
630
- },
631
- {
632
- "kind": "variable",
633
- "name": "_DEFAULT_PASSWORD",
634
- "type": {
635
- "text": "string"
636
- },
637
- "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
638
- "privacy": "public"
639
- },
640
- {
641
- "kind": "variable",
642
- "name": "DEFAULT_USER",
643
- "type": {
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).",
654
- "privacy": "public"
655
- }
656
- ],
712
+ "path": "src/design-system/index.ts",
713
+ "declarations": [],
657
714
  "exports": [
658
715
  {
659
716
  "kind": "js",
660
- "name": "SOCKET_EXT",
661
- "declaration": {
662
- "name": "_SOCKET_EXT",
663
- "module": "src/env/variables.ts"
664
- }
665
- },
666
- {
667
- "kind": "js",
668
- "name": "FORCE_HTTP",
669
- "declaration": {
670
- "name": "_FORCE_HTTP",
671
- "module": "src/env/variables.ts"
672
- }
673
- },
674
- {
675
- "kind": "js",
676
- "name": "GENESIS_SOCKET_URL",
677
- "declaration": {
678
- "name": "GENESIS_SOCKET_URL",
679
- "module": "src/env/variables.ts"
680
- }
681
- },
682
- {
683
- "kind": "js",
684
- "name": "API_HOST",
685
- "declaration": {
686
- "name": "_API_HOST",
687
- "module": "src/env/variables.ts"
688
- }
689
- },
690
- {
691
- "kind": "js",
692
- "name": "HTTP_CONFIG",
693
- "declaration": {
694
- "name": "_HTTP_CONFIG",
695
- "module": "src/env/variables.ts"
696
- }
697
- },
698
- {
699
- "kind": "js",
700
- "name": "DEFAULT_ORGANISATION",
701
- "declaration": {
702
- "name": "_DEFAULT_ORGANISATION",
703
- "module": "src/env/variables.ts"
704
- }
705
- },
706
- {
707
- "kind": "js",
708
- "name": "DEFAULT_PASSWORD",
709
- "declaration": {
710
- "name": "_DEFAULT_PASSWORD",
711
- "module": "src/env/variables.ts"
712
- }
713
- },
714
- {
715
- "kind": "js",
716
- "name": "DEFAULT_USER",
717
+ "name": "*",
717
718
  "declaration": {
718
- "name": "_DEFAULT_USER",
719
- "module": "src/env/variables.ts"
719
+ "name": "*",
720
+ "package": "./design-system"
720
721
  }
721
722
  }
722
723
  ]
723
724
  },
724
725
  {
725
726
  "kind": "javascript-module",
726
- "path": "src/error/errorMap.ts",
727
+ "path": "src/data/inMemoryDatabase.ts",
727
728
  "declarations": [
728
729
  {
729
730
  "kind": "class",
730
- "description": "",
731
- "name": "DefaultErrorMap",
731
+ "description": "An in memory database of specific DatabaseRecord types.",
732
+ "name": "InMemoryDatabase",
732
733
  "members": [
733
734
  {
734
735
  "kind": "field",
735
- "name": "map",
736
+ "name": "isWorking",
737
+ "type": {
738
+ "text": "boolean"
739
+ },
740
+ "privacy": "public",
741
+ "default": "false"
742
+ },
743
+ {
744
+ "kind": "field",
745
+ "name": "records",
746
+ "type": {
747
+ "text": "Record<string, T>"
748
+ },
736
749
  "privacy": "private",
737
- "default": "new Map<keyof TErrorDetailMap, Error>()"
750
+ "default": "{}"
751
+ },
752
+ {
753
+ "kind": "field",
754
+ "name": "beforeUpdateListeners",
755
+ "privacy": "private"
738
756
  },
739
757
  {
740
758
  "kind": "field",
741
- "name": "lastError",
742
- "type": {
743
- "text": "Error"
744
- },
745
- "description": "{@inheritDoc ErrorMap.lastError}"
759
+ "name": "afterUpdateListeners",
760
+ "privacy": "private"
746
761
  },
747
762
  {
748
763
  "kind": "method",
749
- "name": "set",
764
+ "name": "create",
765
+ "privacy": "public",
750
766
  "return": {
751
767
  "type": {
752
- "text": "void"
768
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
753
769
  }
754
770
  },
755
771
  "parameters": [
756
772
  {
757
- "name": "key",
758
- "type": {
759
- "text": "keyof TErrorDetailMap"
760
- }
761
- },
762
- {
763
- "name": "error",
773
+ "name": "newValue",
764
774
  "type": {
765
- "text": "Error"
775
+ "text": "Omit<T, 'id'>"
766
776
  }
767
777
  }
768
- ],
769
- "description": "{@inheritDoc ErrorMap.set}"
778
+ ]
770
779
  },
771
780
  {
772
781
  "kind": "method",
773
- "name": "get",
782
+ "name": "read",
783
+ "privacy": "public",
774
784
  "return": {
775
785
  "type": {
776
- "text": ""
786
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
777
787
  }
778
788
  },
779
789
  "parameters": [
780
790
  {
781
- "name": "key",
791
+ "name": "id",
782
792
  "type": {
783
- "text": "keyof TErrorDetailMap"
784
- },
785
- "description": "The key."
793
+ "text": "string"
794
+ }
786
795
  }
787
- ],
788
- "description": "Get an error by key.",
789
- "privacy": "public"
796
+ ]
790
797
  },
791
798
  {
792
799
  "kind": "method",
793
- "name": "has",
800
+ "name": "update",
801
+ "privacy": "public",
794
802
  "return": {
795
803
  "type": {
796
- "text": ""
804
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
797
805
  }
798
806
  },
799
807
  "parameters": [
800
808
  {
801
- "name": "key",
809
+ "name": "id",
802
810
  "type": {
803
- "text": "keyof TErrorDetailMap"
804
- },
805
- "description": "The key."
811
+ "text": "string"
812
+ }
813
+ },
814
+ {
815
+ "name": "newValue",
816
+ "type": {
817
+ "text": "Omit<Partial<T>, 'id'>"
818
+ }
806
819
  }
807
- ],
808
- "description": "Has an error for key.",
809
- "privacy": "public"
820
+ ]
810
821
  },
811
822
  {
812
823
  "kind": "method",
813
824
  "name": "delete",
825
+ "privacy": "public",
814
826
  "return": {
815
827
  "type": {
816
- "text": ""
828
+ "text": "Promise<DatabaseAccessResult.Delete>"
817
829
  }
818
830
  },
819
831
  "parameters": [
820
832
  {
821
- "name": "key",
833
+ "name": "id",
822
834
  "type": {
823
- "text": "keyof TErrorDetailMap"
824
- },
825
- "description": "The key."
835
+ "text": "string"
836
+ }
826
837
  }
827
- ],
828
- "description": "Delete an error.",
829
- "privacy": "public"
838
+ ]
830
839
  },
831
840
  {
832
841
  "kind": "method",
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.",
842
+ "name": "visit",
843
+ "privacy": "public",
844
844
  "return": {
845
845
  "type": {
846
- "text": ""
846
+ "text": "Promise<void>"
847
847
  }
848
848
  },
849
- "privacy": "public",
850
- "readonly": true
849
+ "parameters": [
850
+ {
851
+ "name": "visitor",
852
+ "type": {
853
+ "text": "(record: T) => void"
854
+ }
855
+ }
856
+ ]
851
857
  },
852
858
  {
853
859
  "kind": "method",
854
- "name": "values",
855
- "privacy": "public"
860
+ "name": "onBeforeUpdate",
861
+ "privacy": "public",
862
+ "return": {
863
+ "type": {
864
+ "text": "() => void"
865
+ }
866
+ },
867
+ "parameters": [
868
+ {
869
+ "name": "listener",
870
+ "type": {
871
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
872
+ }
873
+ }
874
+ ]
856
875
  },
857
876
  {
858
- "kind": "field",
859
- "name": "messages",
860
- "type": {
861
- "text": "string"
877
+ "kind": "method",
878
+ "name": "onAfterUpdate",
879
+ "privacy": "public",
880
+ "return": {
881
+ "type": {
882
+ "text": "() => void"
883
+ }
862
884
  },
863
- "description": "{@inheritDoc ErrorMap.messages}",
864
- "readonly": true
885
+ "parameters": [
886
+ {
887
+ "name": "listener",
888
+ "type": {
889
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
890
+ }
891
+ }
892
+ ]
865
893
  }
866
894
  ]
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"
887
895
  }
888
896
  ],
889
897
  "exports": [
890
898
  {
891
899
  "kind": "js",
892
- "name": "DefaultErrorMap",
893
- "declaration": {
894
- "name": "DefaultErrorMap",
895
- "module": "src/error/errorMap.ts"
896
- }
897
- },
898
- {
899
- "kind": "js",
900
- "name": "createErrorMap",
900
+ "name": "InMemoryDatabase",
901
901
  "declaration": {
902
- "name": "createErrorMap",
903
- "module": "src/error/errorMap.ts"
902
+ "name": "InMemoryDatabase",
903
+ "module": "src/data/inMemoryDatabase.ts"
904
904
  }
905
905
  }
906
906
  ]
907
907
  },
908
908
  {
909
909
  "kind": "javascript-module",
910
- "path": "src/error/index.ts",
910
+ "path": "src/data/index.ts",
911
911
  "declarations": [],
912
912
  "exports": [
913
913
  {
@@ -915,7 +915,7 @@
915
915
  "name": "*",
916
916
  "declaration": {
917
917
  "name": "*",
918
- "package": "./errorMap"
918
+ "package": "./inMemoryDatabase"
919
919
  }
920
920
  }
921
921
  ]
@@ -1948,43 +1948,6 @@
1948
1948
  }
1949
1949
  ]
1950
1950
  },
1951
- {
1952
- "kind": "javascript-module",
1953
- "path": "src/uuid/index.ts",
1954
- "declarations": [],
1955
- "exports": [
1956
- {
1957
- "kind": "js",
1958
- "name": "*",
1959
- "declaration": {
1960
- "name": "*",
1961
- "package": "./uuid"
1962
- }
1963
- }
1964
- ]
1965
- },
1966
- {
1967
- "kind": "javascript-module",
1968
- "path": "src/uuid/uuid.ts",
1969
- "declarations": [
1970
- {
1971
- "kind": "variable",
1972
- "name": "UUID",
1973
- "description": "A dependency injection token for the UUID interface.",
1974
- "privacy": "public"
1975
- }
1976
- ],
1977
- "exports": [
1978
- {
1979
- "kind": "js",
1980
- "name": "UUID",
1981
- "declaration": {
1982
- "name": "UUID",
1983
- "module": "src/uuid/uuid.ts"
1984
- }
1985
- }
1986
- ]
1987
- },
1988
1951
  {
1989
1952
  "kind": "javascript-module",
1990
1953
  "path": "src/window/index.ts",
@@ -2133,6 +2096,43 @@
2133
2096
  }
2134
2097
  ]
2135
2098
  },
2099
+ {
2100
+ "kind": "javascript-module",
2101
+ "path": "src/uuid/index.ts",
2102
+ "declarations": [],
2103
+ "exports": [
2104
+ {
2105
+ "kind": "js",
2106
+ "name": "*",
2107
+ "declaration": {
2108
+ "name": "*",
2109
+ "package": "./uuid"
2110
+ }
2111
+ }
2112
+ ]
2113
+ },
2114
+ {
2115
+ "kind": "javascript-module",
2116
+ "path": "src/uuid/uuid.ts",
2117
+ "declarations": [
2118
+ {
2119
+ "kind": "variable",
2120
+ "name": "UUID",
2121
+ "description": "A dependency injection token for the UUID interface.",
2122
+ "privacy": "public"
2123
+ }
2124
+ ],
2125
+ "exports": [
2126
+ {
2127
+ "kind": "js",
2128
+ "name": "UUID",
2129
+ "declaration": {
2130
+ "name": "UUID",
2131
+ "module": "src/uuid/uuid.ts"
2132
+ }
2133
+ }
2134
+ ]
2135
+ },
2136
2136
  {
2137
2137
  "kind": "javascript-module",
2138
2138
  "path": "src/directives/sync/index.ts",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.190.0",
4
+ "version": "14.191.1-dotenv.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.190.0",
31
- "@genesislcap/genx": "14.190.0",
32
- "@genesislcap/rollup-builder": "14.190.0",
33
- "@genesislcap/ts-builder": "14.190.0",
34
- "@genesislcap/uvu-playwright-builder": "14.190.0",
35
- "@genesislcap/vite-builder": "14.190.0",
36
- "@genesislcap/webpack-builder": "14.190.0",
30
+ "@genesislcap/foundation-testing": "14.191.1-dotenv.1",
31
+ "@genesislcap/genx": "14.191.1-dotenv.1",
32
+ "@genesislcap/rollup-builder": "14.191.1-dotenv.1",
33
+ "@genesislcap/ts-builder": "14.191.1-dotenv.1",
34
+ "@genesislcap/uvu-playwright-builder": "14.191.1-dotenv.1",
35
+ "@genesislcap/vite-builder": "14.191.1-dotenv.1",
36
+ "@genesislcap/webpack-builder": "14.191.1-dotenv.1",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.190.0",
40
+ "@genesislcap/foundation-logger": "14.191.1-dotenv.1",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -54,5 +54,5 @@
54
54
  "access": "public"
55
55
  },
56
56
  "customElements": "dist/custom-elements.json",
57
- "gitHead": "44b901a5dc67bad66ff1df5f1027a1625d07457b"
57
+ "gitHead": "a13b4bce29a8e2c0c79228ca81768988a2201a65"
58
58
  }