@genesislcap/foundation-utils 14.211.1-FUI-2213.1 → 14.211.2

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 +323 -323
  2. package/package.json +10 -10
@@ -167,204 +167,6 @@
167
167
  }
168
168
  ]
169
169
  },
170
- {
171
- "kind": "javascript-module",
172
- "path": "src/data/inMemoryDatabase.ts",
173
- "declarations": [
174
- {
175
- "kind": "class",
176
- "description": "An in memory database of specific DatabaseRecord types.",
177
- "name": "InMemoryDatabase",
178
- "members": [
179
- {
180
- "kind": "field",
181
- "name": "isWorking",
182
- "type": {
183
- "text": "boolean"
184
- },
185
- "privacy": "public",
186
- "default": "false"
187
- },
188
- {
189
- "kind": "field",
190
- "name": "records",
191
- "type": {
192
- "text": "Record<string, T>"
193
- },
194
- "privacy": "private",
195
- "default": "{}"
196
- },
197
- {
198
- "kind": "field",
199
- "name": "beforeUpdateListeners",
200
- "privacy": "private"
201
- },
202
- {
203
- "kind": "field",
204
- "name": "afterUpdateListeners",
205
- "privacy": "private"
206
- },
207
- {
208
- "kind": "method",
209
- "name": "create",
210
- "privacy": "public",
211
- "return": {
212
- "type": {
213
- "text": "Promise<DatabaseAccessResult.Create<T>>"
214
- }
215
- },
216
- "parameters": [
217
- {
218
- "name": "newValue",
219
- "type": {
220
- "text": "Omit<T, 'id'>"
221
- }
222
- }
223
- ]
224
- },
225
- {
226
- "kind": "method",
227
- "name": "read",
228
- "privacy": "public",
229
- "return": {
230
- "type": {
231
- "text": "Promise<DatabaseAccessResult.Read<T>>"
232
- }
233
- },
234
- "parameters": [
235
- {
236
- "name": "id",
237
- "type": {
238
- "text": "string"
239
- }
240
- }
241
- ]
242
- },
243
- {
244
- "kind": "method",
245
- "name": "update",
246
- "privacy": "public",
247
- "return": {
248
- "type": {
249
- "text": "Promise<DatabaseAccessResult.Update<T>>"
250
- }
251
- },
252
- "parameters": [
253
- {
254
- "name": "id",
255
- "type": {
256
- "text": "string"
257
- }
258
- },
259
- {
260
- "name": "newValue",
261
- "type": {
262
- "text": "Omit<Partial<T>, 'id'>"
263
- }
264
- }
265
- ]
266
- },
267
- {
268
- "kind": "method",
269
- "name": "delete",
270
- "privacy": "public",
271
- "return": {
272
- "type": {
273
- "text": "Promise<DatabaseAccessResult.Delete>"
274
- }
275
- },
276
- "parameters": [
277
- {
278
- "name": "id",
279
- "type": {
280
- "text": "string"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "visit",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<void>"
292
- }
293
- },
294
- "parameters": [
295
- {
296
- "name": "visitor",
297
- "type": {
298
- "text": "(record: T) => void"
299
- }
300
- }
301
- ]
302
- },
303
- {
304
- "kind": "method",
305
- "name": "onBeforeUpdate",
306
- "privacy": "public",
307
- "return": {
308
- "type": {
309
- "text": "() => void"
310
- }
311
- },
312
- "parameters": [
313
- {
314
- "name": "listener",
315
- "type": {
316
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
317
- }
318
- }
319
- ]
320
- },
321
- {
322
- "kind": "method",
323
- "name": "onAfterUpdate",
324
- "privacy": "public",
325
- "return": {
326
- "type": {
327
- "text": "() => void"
328
- }
329
- },
330
- "parameters": [
331
- {
332
- "name": "listener",
333
- "type": {
334
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
335
- }
336
- }
337
- ]
338
- }
339
- ]
340
- }
341
- ],
342
- "exports": [
343
- {
344
- "kind": "js",
345
- "name": "InMemoryDatabase",
346
- "declaration": {
347
- "name": "InMemoryDatabase",
348
- "module": "src/data/inMemoryDatabase.ts"
349
- }
350
- }
351
- ]
352
- },
353
- {
354
- "kind": "javascript-module",
355
- "path": "src/data/index.ts",
356
- "declarations": [],
357
- "exports": [
358
- {
359
- "kind": "js",
360
- "name": "*",
361
- "declaration": {
362
- "name": "*",
363
- "package": "./inMemoryDatabase"
364
- }
365
- }
366
- ]
367
- },
368
170
  {
369
171
  "kind": "javascript-module",
370
172
  "path": "src/directives/index.ts",
@@ -610,18 +412,217 @@
610
412
  },
611
413
  {
612
414
  "kind": "js",
613
- "name": "DEFAULT_PASSWORD",
415
+ "name": "DEFAULT_PASSWORD",
416
+ "declaration": {
417
+ "name": "_DEFAULT_PASSWORD",
418
+ "module": "src/env/variables.ts"
419
+ }
420
+ },
421
+ {
422
+ "kind": "js",
423
+ "name": "DEFAULT_USER",
424
+ "declaration": {
425
+ "name": "_DEFAULT_USER",
426
+ "module": "src/env/variables.ts"
427
+ }
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ "kind": "javascript-module",
433
+ "path": "src/error/errorMap.ts",
434
+ "declarations": [
435
+ {
436
+ "kind": "class",
437
+ "description": "",
438
+ "name": "DefaultErrorMap",
439
+ "members": [
440
+ {
441
+ "kind": "field",
442
+ "name": "map",
443
+ "privacy": "private",
444
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
445
+ },
446
+ {
447
+ "kind": "field",
448
+ "name": "lastError",
449
+ "type": {
450
+ "text": "Error"
451
+ },
452
+ "description": "{@inheritDoc ErrorMap.lastError}"
453
+ },
454
+ {
455
+ "kind": "method",
456
+ "name": "set",
457
+ "return": {
458
+ "type": {
459
+ "text": "void"
460
+ }
461
+ },
462
+ "parameters": [
463
+ {
464
+ "name": "key",
465
+ "type": {
466
+ "text": "keyof TErrorDetailMap"
467
+ }
468
+ },
469
+ {
470
+ "name": "error",
471
+ "type": {
472
+ "text": "Error"
473
+ }
474
+ }
475
+ ],
476
+ "description": "{@inheritDoc ErrorMap.set}"
477
+ },
478
+ {
479
+ "kind": "method",
480
+ "name": "get",
481
+ "return": {
482
+ "type": {
483
+ "text": ""
484
+ }
485
+ },
486
+ "parameters": [
487
+ {
488
+ "name": "key",
489
+ "type": {
490
+ "text": "keyof TErrorDetailMap"
491
+ },
492
+ "description": "The key."
493
+ }
494
+ ],
495
+ "description": "Get an error by key.",
496
+ "privacy": "public"
497
+ },
498
+ {
499
+ "kind": "method",
500
+ "name": "has",
501
+ "return": {
502
+ "type": {
503
+ "text": ""
504
+ }
505
+ },
506
+ "parameters": [
507
+ {
508
+ "name": "key",
509
+ "type": {
510
+ "text": "keyof TErrorDetailMap"
511
+ },
512
+ "description": "The key."
513
+ }
514
+ ],
515
+ "description": "Has an error for key.",
516
+ "privacy": "public"
517
+ },
518
+ {
519
+ "kind": "method",
520
+ "name": "delete",
521
+ "return": {
522
+ "type": {
523
+ "text": ""
524
+ }
525
+ },
526
+ "parameters": [
527
+ {
528
+ "name": "key",
529
+ "type": {
530
+ "text": "keyof TErrorDetailMap"
531
+ },
532
+ "description": "The key."
533
+ }
534
+ ],
535
+ "description": "Delete an error.",
536
+ "privacy": "public"
537
+ },
538
+ {
539
+ "kind": "method",
540
+ "name": "clear",
541
+ "description": "Clear errors.",
542
+ "privacy": "public"
543
+ },
544
+ {
545
+ "kind": "field",
546
+ "name": "size",
547
+ "type": {
548
+ "text": "number"
549
+ },
550
+ "description": "The size of the error map.",
551
+ "return": {
552
+ "type": {
553
+ "text": ""
554
+ }
555
+ },
556
+ "privacy": "public",
557
+ "readonly": true
558
+ },
559
+ {
560
+ "kind": "method",
561
+ "name": "values",
562
+ "privacy": "public"
563
+ },
564
+ {
565
+ "kind": "field",
566
+ "name": "messages",
567
+ "type": {
568
+ "text": "string"
569
+ },
570
+ "description": "{@inheritDoc ErrorMap.messages}",
571
+ "readonly": true
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "kind": "function",
577
+ "name": "createErrorMap",
578
+ "return": {
579
+ "type": {
580
+ "text": ""
581
+ }
582
+ },
583
+ "parameters": [
584
+ {
585
+ "name": "logger",
586
+ "type": {
587
+ "text": "ErrorMapLogger"
588
+ },
589
+ "description": "A logger error method reference."
590
+ }
591
+ ],
592
+ "description": "A factory to create the error map.",
593
+ "privacy": "public"
594
+ }
595
+ ],
596
+ "exports": [
597
+ {
598
+ "kind": "js",
599
+ "name": "DefaultErrorMap",
600
+ "declaration": {
601
+ "name": "DefaultErrorMap",
602
+ "module": "src/error/errorMap.ts"
603
+ }
604
+ },
605
+ {
606
+ "kind": "js",
607
+ "name": "createErrorMap",
614
608
  "declaration": {
615
- "name": "_DEFAULT_PASSWORD",
616
- "module": "src/env/variables.ts"
609
+ "name": "createErrorMap",
610
+ "module": "src/error/errorMap.ts"
617
611
  }
618
- },
612
+ }
613
+ ]
614
+ },
615
+ {
616
+ "kind": "javascript-module",
617
+ "path": "src/error/index.ts",
618
+ "declarations": [],
619
+ "exports": [
619
620
  {
620
621
  "kind": "js",
621
- "name": "DEFAULT_USER",
622
+ "name": "*",
622
623
  "declaration": {
623
- "name": "_DEFAULT_USER",
624
- "module": "src/env/variables.ts"
624
+ "name": "*",
625
+ "package": "./errorMap"
625
626
  }
626
627
  }
627
628
  ]
@@ -731,191 +732,190 @@
731
732
  },
732
733
  {
733
734
  "kind": "javascript-module",
734
- "path": "src/error/errorMap.ts",
735
+ "path": "src/data/inMemoryDatabase.ts",
735
736
  "declarations": [
736
737
  {
737
738
  "kind": "class",
738
- "description": "",
739
- "name": "DefaultErrorMap",
739
+ "description": "An in memory database of specific DatabaseRecord types.",
740
+ "name": "InMemoryDatabase",
740
741
  "members": [
741
742
  {
742
743
  "kind": "field",
743
- "name": "map",
744
- "privacy": "private",
745
- "default": "new Map<keyof TErrorDetailMap, Error>()"
744
+ "name": "isWorking",
745
+ "type": {
746
+ "text": "boolean"
747
+ },
748
+ "privacy": "public",
749
+ "default": "false"
746
750
  },
747
751
  {
748
752
  "kind": "field",
749
- "name": "lastError",
753
+ "name": "records",
750
754
  "type": {
751
- "text": "Error"
755
+ "text": "Record<string, T>"
752
756
  },
753
- "description": "{@inheritDoc ErrorMap.lastError}"
757
+ "privacy": "private",
758
+ "default": "{}"
759
+ },
760
+ {
761
+ "kind": "field",
762
+ "name": "beforeUpdateListeners",
763
+ "privacy": "private"
764
+ },
765
+ {
766
+ "kind": "field",
767
+ "name": "afterUpdateListeners",
768
+ "privacy": "private"
754
769
  },
755
770
  {
756
771
  "kind": "method",
757
- "name": "set",
772
+ "name": "create",
773
+ "privacy": "public",
758
774
  "return": {
759
775
  "type": {
760
- "text": "void"
776
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
761
777
  }
762
778
  },
763
779
  "parameters": [
764
780
  {
765
- "name": "key",
766
- "type": {
767
- "text": "keyof TErrorDetailMap"
768
- }
769
- },
770
- {
771
- "name": "error",
781
+ "name": "newValue",
772
782
  "type": {
773
- "text": "Error"
783
+ "text": "Omit<T, 'id'>"
774
784
  }
775
785
  }
776
- ],
777
- "description": "{@inheritDoc ErrorMap.set}"
786
+ ]
778
787
  },
779
788
  {
780
789
  "kind": "method",
781
- "name": "get",
790
+ "name": "read",
791
+ "privacy": "public",
782
792
  "return": {
783
793
  "type": {
784
- "text": ""
794
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
785
795
  }
786
796
  },
787
797
  "parameters": [
788
798
  {
789
- "name": "key",
799
+ "name": "id",
790
800
  "type": {
791
- "text": "keyof TErrorDetailMap"
792
- },
793
- "description": "The key."
801
+ "text": "string"
802
+ }
794
803
  }
795
- ],
796
- "description": "Get an error by key.",
797
- "privacy": "public"
804
+ ]
798
805
  },
799
806
  {
800
807
  "kind": "method",
801
- "name": "has",
808
+ "name": "update",
809
+ "privacy": "public",
802
810
  "return": {
803
811
  "type": {
804
- "text": ""
812
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
805
813
  }
806
814
  },
807
815
  "parameters": [
808
816
  {
809
- "name": "key",
817
+ "name": "id",
810
818
  "type": {
811
- "text": "keyof TErrorDetailMap"
812
- },
813
- "description": "The key."
819
+ "text": "string"
820
+ }
821
+ },
822
+ {
823
+ "name": "newValue",
824
+ "type": {
825
+ "text": "Omit<Partial<T>, 'id'>"
826
+ }
814
827
  }
815
- ],
816
- "description": "Has an error for key.",
817
- "privacy": "public"
828
+ ]
818
829
  },
819
830
  {
820
831
  "kind": "method",
821
832
  "name": "delete",
833
+ "privacy": "public",
822
834
  "return": {
823
835
  "type": {
824
- "text": ""
836
+ "text": "Promise<DatabaseAccessResult.Delete>"
825
837
  }
826
838
  },
827
839
  "parameters": [
828
840
  {
829
- "name": "key",
841
+ "name": "id",
830
842
  "type": {
831
- "text": "keyof TErrorDetailMap"
832
- },
833
- "description": "The key."
843
+ "text": "string"
844
+ }
834
845
  }
835
- ],
836
- "description": "Delete an error.",
837
- "privacy": "public"
846
+ ]
838
847
  },
839
848
  {
840
849
  "kind": "method",
841
- "name": "clear",
842
- "description": "Clear errors.",
843
- "privacy": "public"
844
- },
845
- {
846
- "kind": "field",
847
- "name": "size",
848
- "type": {
849
- "text": "number"
850
- },
851
- "description": "The size of the error map.",
850
+ "name": "visit",
851
+ "privacy": "public",
852
852
  "return": {
853
853
  "type": {
854
- "text": ""
854
+ "text": "Promise<void>"
855
855
  }
856
856
  },
857
- "privacy": "public",
858
- "readonly": true
857
+ "parameters": [
858
+ {
859
+ "name": "visitor",
860
+ "type": {
861
+ "text": "(record: T) => void"
862
+ }
863
+ }
864
+ ]
859
865
  },
860
866
  {
861
867
  "kind": "method",
862
- "name": "values",
863
- "privacy": "public"
868
+ "name": "onBeforeUpdate",
869
+ "privacy": "public",
870
+ "return": {
871
+ "type": {
872
+ "text": "() => void"
873
+ }
874
+ },
875
+ "parameters": [
876
+ {
877
+ "name": "listener",
878
+ "type": {
879
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
880
+ }
881
+ }
882
+ ]
864
883
  },
865
884
  {
866
- "kind": "field",
867
- "name": "messages",
868
- "type": {
869
- "text": "string"
885
+ "kind": "method",
886
+ "name": "onAfterUpdate",
887
+ "privacy": "public",
888
+ "return": {
889
+ "type": {
890
+ "text": "() => void"
891
+ }
870
892
  },
871
- "description": "{@inheritDoc ErrorMap.messages}",
872
- "readonly": true
893
+ "parameters": [
894
+ {
895
+ "name": "listener",
896
+ "type": {
897
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
898
+ }
899
+ }
900
+ ]
873
901
  }
874
902
  ]
875
- },
876
- {
877
- "kind": "function",
878
- "name": "createErrorMap",
879
- "return": {
880
- "type": {
881
- "text": ""
882
- }
883
- },
884
- "parameters": [
885
- {
886
- "name": "logger",
887
- "type": {
888
- "text": "ErrorMapLogger"
889
- },
890
- "description": "A logger error method reference."
891
- }
892
- ],
893
- "description": "A factory to create the error map.",
894
- "privacy": "public"
895
903
  }
896
904
  ],
897
905
  "exports": [
898
906
  {
899
907
  "kind": "js",
900
- "name": "DefaultErrorMap",
901
- "declaration": {
902
- "name": "DefaultErrorMap",
903
- "module": "src/error/errorMap.ts"
904
- }
905
- },
906
- {
907
- "kind": "js",
908
- "name": "createErrorMap",
908
+ "name": "InMemoryDatabase",
909
909
  "declaration": {
910
- "name": "createErrorMap",
911
- "module": "src/error/errorMap.ts"
910
+ "name": "InMemoryDatabase",
911
+ "module": "src/data/inMemoryDatabase.ts"
912
912
  }
913
913
  }
914
914
  ]
915
915
  },
916
916
  {
917
917
  "kind": "javascript-module",
918
- "path": "src/error/index.ts",
918
+ "path": "src/data/index.ts",
919
919
  "declarations": [],
920
920
  "exports": [
921
921
  {
@@ -923,7 +923,7 @@
923
923
  "name": "*",
924
924
  "declaration": {
925
925
  "name": "*",
926
- "package": "./errorMap"
926
+ "package": "./inMemoryDatabase"
927
927
  }
928
928
  }
929
929
  ]
@@ -1996,7 +1996,7 @@
1996
1996
  },
1997
1997
  {
1998
1998
  "kind": "javascript-module",
1999
- "path": "src/utils/index.ts",
1999
+ "path": "src/uuid/index.ts",
2000
2000
  "declarations": [],
2001
2001
  "exports": [
2002
2002
  {
@@ -2004,36 +2004,36 @@
2004
2004
  "name": "*",
2005
2005
  "declaration": {
2006
2006
  "name": "*",
2007
- "package": "./logger"
2007
+ "package": "./uuid"
2008
2008
  }
2009
2009
  }
2010
2010
  ]
2011
2011
  },
2012
2012
  {
2013
2013
  "kind": "javascript-module",
2014
- "path": "src/utils/logger.ts",
2014
+ "path": "src/uuid/uuid.ts",
2015
2015
  "declarations": [
2016
2016
  {
2017
2017
  "kind": "variable",
2018
- "name": "logger",
2019
- "description": "Logger for the foundation-utils package",
2018
+ "name": "UUID",
2019
+ "description": "A dependency injection token for the UUID interface.",
2020
2020
  "privacy": "public"
2021
2021
  }
2022
2022
  ],
2023
2023
  "exports": [
2024
2024
  {
2025
2025
  "kind": "js",
2026
- "name": "logger",
2026
+ "name": "UUID",
2027
2027
  "declaration": {
2028
- "name": "logger",
2029
- "module": "src/utils/logger.ts"
2028
+ "name": "UUID",
2029
+ "module": "src/uuid/uuid.ts"
2030
2030
  }
2031
2031
  }
2032
2032
  ]
2033
2033
  },
2034
2034
  {
2035
2035
  "kind": "javascript-module",
2036
- "path": "src/uuid/index.ts",
2036
+ "path": "src/utils/index.ts",
2037
2037
  "declarations": [],
2038
2038
  "exports": [
2039
2039
  {
@@ -2041,29 +2041,29 @@
2041
2041
  "name": "*",
2042
2042
  "declaration": {
2043
2043
  "name": "*",
2044
- "package": "./uuid"
2044
+ "package": "./logger"
2045
2045
  }
2046
2046
  }
2047
2047
  ]
2048
2048
  },
2049
2049
  {
2050
2050
  "kind": "javascript-module",
2051
- "path": "src/uuid/uuid.ts",
2051
+ "path": "src/utils/logger.ts",
2052
2052
  "declarations": [
2053
2053
  {
2054
2054
  "kind": "variable",
2055
- "name": "UUID",
2056
- "description": "A dependency injection token for the UUID interface.",
2055
+ "name": "logger",
2056
+ "description": "Logger for the foundation-utils package",
2057
2057
  "privacy": "public"
2058
2058
  }
2059
2059
  ],
2060
2060
  "exports": [
2061
2061
  {
2062
2062
  "kind": "js",
2063
- "name": "UUID",
2063
+ "name": "logger",
2064
2064
  "declaration": {
2065
- "name": "UUID",
2066
- "module": "src/uuid/uuid.ts"
2065
+ "name": "logger",
2066
+ "module": "src/utils/logger.ts"
2067
2067
  }
2068
2068
  }
2069
2069
  ]
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.211.1-FUI-2213.1",
4
+ "version": "14.211.2",
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.211.1-FUI-2213.1",
31
- "@genesislcap/genx": "14.211.1-FUI-2213.1",
32
- "@genesislcap/rollup-builder": "14.211.1-FUI-2213.1",
33
- "@genesislcap/ts-builder": "14.211.1-FUI-2213.1",
34
- "@genesislcap/uvu-playwright-builder": "14.211.1-FUI-2213.1",
35
- "@genesislcap/vite-builder": "14.211.1-FUI-2213.1",
36
- "@genesislcap/webpack-builder": "14.211.1-FUI-2213.1",
30
+ "@genesislcap/foundation-testing": "14.211.2",
31
+ "@genesislcap/genx": "14.211.2",
32
+ "@genesislcap/rollup-builder": "14.211.2",
33
+ "@genesislcap/ts-builder": "14.211.2",
34
+ "@genesislcap/uvu-playwright-builder": "14.211.2",
35
+ "@genesislcap/vite-builder": "14.211.2",
36
+ "@genesislcap/webpack-builder": "14.211.2",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.211.1-FUI-2213.1",
40
+ "@genesislcap/foundation-logger": "14.211.2",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "2da6fb63496767d73a1adf0352f826014f3b8ce9"
58
+ "gitHead": "c7134894f5bd7efb903b1612957041422fccb0ba"
59
59
  }