@genesislcap/foundation-utils 14.92.5 → 14.94.0

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.
@@ -466,6 +466,200 @@
466
466
  }
467
467
  ]
468
468
  },
469
+ {
470
+ "kind": "javascript-module",
471
+ "path": "src/error/errorMap.ts",
472
+ "declarations": [
473
+ {
474
+ "kind": "class",
475
+ "description": "",
476
+ "name": "DefaultErrorMap",
477
+ "members": [
478
+ {
479
+ "kind": "field",
480
+ "name": "map",
481
+ "privacy": "private",
482
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
483
+ },
484
+ {
485
+ "kind": "field",
486
+ "name": "lastError",
487
+ "type": {
488
+ "text": "Error"
489
+ },
490
+ "description": "{@inheritDoc ErrorMap.lastError}"
491
+ },
492
+ {
493
+ "kind": "method",
494
+ "name": "set",
495
+ "return": {
496
+ "type": {
497
+ "text": "void"
498
+ }
499
+ },
500
+ "parameters": [
501
+ {
502
+ "name": "key",
503
+ "type": {
504
+ "text": "keyof TErrorDetailMap"
505
+ }
506
+ },
507
+ {
508
+ "name": "error",
509
+ "type": {
510
+ "text": "Error"
511
+ }
512
+ }
513
+ ],
514
+ "description": "{@inheritDoc ErrorMap.set}"
515
+ },
516
+ {
517
+ "kind": "method",
518
+ "name": "get",
519
+ "return": {
520
+ "type": {
521
+ "text": ""
522
+ }
523
+ },
524
+ "parameters": [
525
+ {
526
+ "name": "key",
527
+ "type": {
528
+ "text": "keyof TErrorDetailMap"
529
+ },
530
+ "description": "The key."
531
+ }
532
+ ],
533
+ "description": "Get an error by key.",
534
+ "privacy": "public"
535
+ },
536
+ {
537
+ "kind": "method",
538
+ "name": "has",
539
+ "return": {
540
+ "type": {
541
+ "text": ""
542
+ }
543
+ },
544
+ "parameters": [
545
+ {
546
+ "name": "key",
547
+ "type": {
548
+ "text": "keyof TErrorDetailMap"
549
+ },
550
+ "description": "The key."
551
+ }
552
+ ],
553
+ "description": "Has an error for key.",
554
+ "privacy": "public"
555
+ },
556
+ {
557
+ "kind": "method",
558
+ "name": "delete",
559
+ "return": {
560
+ "type": {
561
+ "text": ""
562
+ }
563
+ },
564
+ "parameters": [
565
+ {
566
+ "name": "key",
567
+ "type": {
568
+ "text": "keyof TErrorDetailMap"
569
+ },
570
+ "description": "The key."
571
+ }
572
+ ],
573
+ "description": "Delete an error.",
574
+ "privacy": "public"
575
+ },
576
+ {
577
+ "kind": "method",
578
+ "name": "clear",
579
+ "description": "Clear errors.",
580
+ "privacy": "public"
581
+ },
582
+ {
583
+ "kind": "field",
584
+ "name": "size",
585
+ "type": {
586
+ "text": "number"
587
+ },
588
+ "description": "The size of the error map.",
589
+ "return": {
590
+ "type": {
591
+ "text": ""
592
+ }
593
+ },
594
+ "privacy": "public",
595
+ "readonly": true
596
+ },
597
+ {
598
+ "kind": "field",
599
+ "name": "messages",
600
+ "type": {
601
+ "text": "string"
602
+ },
603
+ "description": "{@inheritDoc ErrorMap.messages}",
604
+ "readonly": true
605
+ }
606
+ ]
607
+ },
608
+ {
609
+ "kind": "function",
610
+ "name": "createErrorMap",
611
+ "return": {
612
+ "type": {
613
+ "text": ""
614
+ }
615
+ },
616
+ "parameters": [
617
+ {
618
+ "name": "logger",
619
+ "type": {
620
+ "text": "ErrorMapLogger"
621
+ },
622
+ "description": "A logger error method reference."
623
+ }
624
+ ],
625
+ "description": "A factory to create the error map.",
626
+ "privacy": "public"
627
+ }
628
+ ],
629
+ "exports": [
630
+ {
631
+ "kind": "js",
632
+ "name": "DefaultErrorMap",
633
+ "declaration": {
634
+ "name": "DefaultErrorMap",
635
+ "module": "src/error/errorMap.ts"
636
+ }
637
+ },
638
+ {
639
+ "kind": "js",
640
+ "name": "createErrorMap",
641
+ "declaration": {
642
+ "name": "createErrorMap",
643
+ "module": "src/error/errorMap.ts"
644
+ }
645
+ }
646
+ ]
647
+ },
648
+ {
649
+ "kind": "javascript-module",
650
+ "path": "src/error/index.ts",
651
+ "declarations": [],
652
+ "exports": [
653
+ {
654
+ "kind": "js",
655
+ "name": "*",
656
+ "declaration": {
657
+ "name": "*",
658
+ "package": "./errorMap"
659
+ }
660
+ }
661
+ ]
662
+ },
469
663
  {
470
664
  "kind": "javascript-module",
471
665
  "path": "src/env/index.ts",
@@ -689,200 +883,6 @@
689
883
  }
690
884
  ]
691
885
  },
692
- {
693
- "kind": "javascript-module",
694
- "path": "src/error/errorMap.ts",
695
- "declarations": [
696
- {
697
- "kind": "class",
698
- "description": "",
699
- "name": "DefaultErrorMap",
700
- "members": [
701
- {
702
- "kind": "field",
703
- "name": "map",
704
- "privacy": "private",
705
- "default": "new Map<keyof TErrorDetailMap, Error>()"
706
- },
707
- {
708
- "kind": "field",
709
- "name": "lastError",
710
- "type": {
711
- "text": "Error"
712
- },
713
- "description": "{@inheritDoc ErrorMap.lastError}"
714
- },
715
- {
716
- "kind": "method",
717
- "name": "set",
718
- "return": {
719
- "type": {
720
- "text": "void"
721
- }
722
- },
723
- "parameters": [
724
- {
725
- "name": "key",
726
- "type": {
727
- "text": "keyof TErrorDetailMap"
728
- }
729
- },
730
- {
731
- "name": "error",
732
- "type": {
733
- "text": "Error"
734
- }
735
- }
736
- ],
737
- "description": "{@inheritDoc ErrorMap.set}"
738
- },
739
- {
740
- "kind": "method",
741
- "name": "get",
742
- "return": {
743
- "type": {
744
- "text": ""
745
- }
746
- },
747
- "parameters": [
748
- {
749
- "name": "key",
750
- "type": {
751
- "text": "keyof TErrorDetailMap"
752
- },
753
- "description": "The key."
754
- }
755
- ],
756
- "description": "Get an error by key.",
757
- "privacy": "public"
758
- },
759
- {
760
- "kind": "method",
761
- "name": "has",
762
- "return": {
763
- "type": {
764
- "text": ""
765
- }
766
- },
767
- "parameters": [
768
- {
769
- "name": "key",
770
- "type": {
771
- "text": "keyof TErrorDetailMap"
772
- },
773
- "description": "The key."
774
- }
775
- ],
776
- "description": "Has an error for key.",
777
- "privacy": "public"
778
- },
779
- {
780
- "kind": "method",
781
- "name": "delete",
782
- "return": {
783
- "type": {
784
- "text": ""
785
- }
786
- },
787
- "parameters": [
788
- {
789
- "name": "key",
790
- "type": {
791
- "text": "keyof TErrorDetailMap"
792
- },
793
- "description": "The key."
794
- }
795
- ],
796
- "description": "Delete an error.",
797
- "privacy": "public"
798
- },
799
- {
800
- "kind": "method",
801
- "name": "clear",
802
- "description": "Clear errors.",
803
- "privacy": "public"
804
- },
805
- {
806
- "kind": "field",
807
- "name": "size",
808
- "type": {
809
- "text": "number"
810
- },
811
- "description": "The size of the error map.",
812
- "return": {
813
- "type": {
814
- "text": ""
815
- }
816
- },
817
- "privacy": "public",
818
- "readonly": true
819
- },
820
- {
821
- "kind": "field",
822
- "name": "messages",
823
- "type": {
824
- "text": "string"
825
- },
826
- "description": "{@inheritDoc ErrorMap.messages}",
827
- "readonly": true
828
- }
829
- ]
830
- },
831
- {
832
- "kind": "function",
833
- "name": "createErrorMap",
834
- "return": {
835
- "type": {
836
- "text": ""
837
- }
838
- },
839
- "parameters": [
840
- {
841
- "name": "logger",
842
- "type": {
843
- "text": "ErrorMapLogger"
844
- },
845
- "description": "A logger error method reference."
846
- }
847
- ],
848
- "description": "A factory to create the error map.",
849
- "privacy": "public"
850
- }
851
- ],
852
- "exports": [
853
- {
854
- "kind": "js",
855
- "name": "DefaultErrorMap",
856
- "declaration": {
857
- "name": "DefaultErrorMap",
858
- "module": "src/error/errorMap.ts"
859
- }
860
- },
861
- {
862
- "kind": "js",
863
- "name": "createErrorMap",
864
- "declaration": {
865
- "name": "createErrorMap",
866
- "module": "src/error/errorMap.ts"
867
- }
868
- }
869
- ]
870
- },
871
- {
872
- "kind": "javascript-module",
873
- "path": "src/error/index.ts",
874
- "declarations": [],
875
- "exports": [
876
- {
877
- "kind": "js",
878
- "name": "*",
879
- "declaration": {
880
- "name": "*",
881
- "package": "./errorMap"
882
- }
883
- }
884
- ]
885
- },
886
886
  {
887
887
  "kind": "javascript-module",
888
888
  "path": "src/formatters/datetime.ts",
@@ -1095,44 +1095,6 @@
1095
1095
  }
1096
1096
  ]
1097
1097
  },
1098
- {
1099
- "kind": "javascript-module",
1100
- "path": "src/mappers/index.ts",
1101
- "declarations": [],
1102
- "exports": [
1103
- {
1104
- "kind": "js",
1105
- "name": "*",
1106
- "declaration": {
1107
- "name": "*",
1108
- "package": "./dto"
1109
- }
1110
- }
1111
- ]
1112
- },
1113
- {
1114
- "kind": "javascript-module",
1115
- "path": "src/mixins/index.ts",
1116
- "declarations": [],
1117
- "exports": [
1118
- {
1119
- "kind": "js",
1120
- "name": "*",
1121
- "declaration": {
1122
- "name": "*",
1123
- "package": "./pendingState"
1124
- }
1125
- },
1126
- {
1127
- "kind": "js",
1128
- "name": "*",
1129
- "declaration": {
1130
- "name": "*",
1131
- "package": "./lifecycle"
1132
- }
1133
- }
1134
- ]
1135
- },
1136
1098
  {
1137
1099
  "kind": "javascript-module",
1138
1100
  "path": "src/logger/index.ts",
@@ -1219,6 +1181,44 @@
1219
1181
  }
1220
1182
  ]
1221
1183
  },
1184
+ {
1185
+ "kind": "javascript-module",
1186
+ "path": "src/mixins/index.ts",
1187
+ "declarations": [],
1188
+ "exports": [
1189
+ {
1190
+ "kind": "js",
1191
+ "name": "*",
1192
+ "declaration": {
1193
+ "name": "*",
1194
+ "package": "./pendingState"
1195
+ }
1196
+ },
1197
+ {
1198
+ "kind": "js",
1199
+ "name": "*",
1200
+ "declaration": {
1201
+ "name": "*",
1202
+ "package": "./lifecycle"
1203
+ }
1204
+ }
1205
+ ]
1206
+ },
1207
+ {
1208
+ "kind": "javascript-module",
1209
+ "path": "src/mappers/index.ts",
1210
+ "declarations": [],
1211
+ "exports": [
1212
+ {
1213
+ "kind": "js",
1214
+ "name": "*",
1215
+ "declaration": {
1216
+ "name": "*",
1217
+ "package": "./dto"
1218
+ }
1219
+ }
1220
+ ]
1221
+ },
1222
1222
  {
1223
1223
  "kind": "javascript-module",
1224
1224
  "path": "src/observer/index.ts",
@@ -1652,7 +1652,42 @@
1652
1652
  },
1653
1653
  {
1654
1654
  "kind": "javascript-module",
1655
- "path": "src/utils/index.ts",
1655
+ "path": "src/utils/index.ts",
1656
+ "declarations": [],
1657
+ "exports": [
1658
+ {
1659
+ "kind": "js",
1660
+ "name": "*",
1661
+ "declaration": {
1662
+ "name": "*",
1663
+ "package": "./logger"
1664
+ }
1665
+ }
1666
+ ]
1667
+ },
1668
+ {
1669
+ "kind": "javascript-module",
1670
+ "path": "src/utils/logger.ts",
1671
+ "declarations": [
1672
+ {
1673
+ "kind": "variable",
1674
+ "name": "logger"
1675
+ }
1676
+ ],
1677
+ "exports": [
1678
+ {
1679
+ "kind": "js",
1680
+ "name": "logger",
1681
+ "declaration": {
1682
+ "name": "logger",
1683
+ "module": "src/utils/logger.ts"
1684
+ }
1685
+ }
1686
+ ]
1687
+ },
1688
+ {
1689
+ "kind": "javascript-module",
1690
+ "path": "src/uuid/index.ts",
1656
1691
  "declarations": [],
1657
1692
  "exports": [
1658
1693
  {
@@ -1660,27 +1695,29 @@
1660
1695
  "name": "*",
1661
1696
  "declaration": {
1662
1697
  "name": "*",
1663
- "package": "./logger"
1698
+ "package": "./uuid"
1664
1699
  }
1665
1700
  }
1666
1701
  ]
1667
1702
  },
1668
1703
  {
1669
1704
  "kind": "javascript-module",
1670
- "path": "src/utils/logger.ts",
1705
+ "path": "src/uuid/uuid.ts",
1671
1706
  "declarations": [
1672
1707
  {
1673
1708
  "kind": "variable",
1674
- "name": "logger"
1709
+ "name": "UUID",
1710
+ "description": "A dependency injection token for the UUID interface.",
1711
+ "privacy": "public"
1675
1712
  }
1676
1713
  ],
1677
1714
  "exports": [
1678
1715
  {
1679
1716
  "kind": "js",
1680
- "name": "logger",
1717
+ "name": "UUID",
1681
1718
  "declaration": {
1682
- "name": "logger",
1683
- "module": "src/utils/logger.ts"
1719
+ "name": "UUID",
1720
+ "module": "src/uuid/uuid.ts"
1684
1721
  }
1685
1722
  }
1686
1723
  ]
@@ -1922,43 +1959,6 @@
1922
1959
  }
1923
1960
  ]
1924
1961
  },
1925
- {
1926
- "kind": "javascript-module",
1927
- "path": "src/uuid/index.ts",
1928
- "declarations": [],
1929
- "exports": [
1930
- {
1931
- "kind": "js",
1932
- "name": "*",
1933
- "declaration": {
1934
- "name": "*",
1935
- "package": "./uuid"
1936
- }
1937
- }
1938
- ]
1939
- },
1940
- {
1941
- "kind": "javascript-module",
1942
- "path": "src/uuid/uuid.ts",
1943
- "declarations": [
1944
- {
1945
- "kind": "variable",
1946
- "name": "UUID",
1947
- "description": "A dependency injection token for the UUID interface.",
1948
- "privacy": "public"
1949
- }
1950
- ],
1951
- "exports": [
1952
- {
1953
- "kind": "js",
1954
- "name": "UUID",
1955
- "declaration": {
1956
- "name": "UUID",
1957
- "module": "src/uuid/uuid.ts"
1958
- }
1959
- }
1960
- ]
1961
- },
1962
1962
  {
1963
1963
  "kind": "javascript-module",
1964
1964
  "path": "src/directives/when-else/index.ts",
@@ -2024,106 +2024,6 @@
2024
2024
  }
2025
2025
  ]
2026
2026
  },
2027
- {
2028
- "kind": "javascript-module",
2029
- "path": "src/mappers/dto/index.ts",
2030
- "declarations": [],
2031
- "exports": [
2032
- {
2033
- "kind": "js",
2034
- "name": "*",
2035
- "declaration": {
2036
- "name": "*",
2037
- "package": "./serverRow"
2038
- }
2039
- },
2040
- {
2041
- "kind": "js",
2042
- "name": "*",
2043
- "declaration": {
2044
- "name": "*",
2045
- "package": "./types"
2046
- }
2047
- }
2048
- ]
2049
- },
2050
- {
2051
- "kind": "javascript-module",
2052
- "path": "src/mappers/dto/serverRow.ts",
2053
- "declarations": [
2054
- {
2055
- "kind": "class",
2056
- "description": "The default `ServerRowDTOMapper`.",
2057
- "name": "DefaultServerRowDTOMapper",
2058
- "members": [
2059
- {
2060
- "kind": "field",
2061
- "name": "fromDTO",
2062
- "description": "Converts a server row DTO to an entity.",
2063
- "parameters": [
2064
- {
2065
- "description": "The DTO to convert.",
2066
- "name": "dto"
2067
- }
2068
- ],
2069
- "return": {
2070
- "type": {
2071
- "text": ""
2072
- }
2073
- },
2074
- "privacy": "public"
2075
- },
2076
- {
2077
- "kind": "field",
2078
- "name": "toDTO",
2079
- "description": "Converts a server row entity to a DTO.",
2080
- "parameters": [
2081
- {
2082
- "description": "The entity to convert.",
2083
- "name": "entity"
2084
- }
2085
- ],
2086
- "return": {
2087
- "type": {
2088
- "text": ""
2089
- }
2090
- },
2091
- "privacy": "public"
2092
- }
2093
- ]
2094
- },
2095
- {
2096
- "kind": "variable",
2097
- "name": "ServerRowDTOMapper",
2098
- "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2099
- "privacy": "public"
2100
- }
2101
- ],
2102
- "exports": [
2103
- {
2104
- "kind": "js",
2105
- "name": "DefaultServerRowDTOMapper",
2106
- "declaration": {
2107
- "name": "DefaultServerRowDTOMapper",
2108
- "module": "src/mappers/dto/serverRow.ts"
2109
- }
2110
- },
2111
- {
2112
- "kind": "js",
2113
- "name": "ServerRowDTOMapper",
2114
- "declaration": {
2115
- "name": "ServerRowDTOMapper",
2116
- "module": "src/mappers/dto/serverRow.ts"
2117
- }
2118
- }
2119
- ]
2120
- },
2121
- {
2122
- "kind": "javascript-module",
2123
- "path": "src/mappers/dto/types.ts",
2124
- "declarations": [],
2125
- "exports": []
2126
- },
2127
2027
  {
2128
2028
  "kind": "javascript-module",
2129
2029
  "path": "src/mixins/lifecycle/index.ts",
@@ -2335,6 +2235,106 @@
2335
2235
  }
2336
2236
  ]
2337
2237
  },
2238
+ {
2239
+ "kind": "javascript-module",
2240
+ "path": "src/mappers/dto/index.ts",
2241
+ "declarations": [],
2242
+ "exports": [
2243
+ {
2244
+ "kind": "js",
2245
+ "name": "*",
2246
+ "declaration": {
2247
+ "name": "*",
2248
+ "package": "./serverRow"
2249
+ }
2250
+ },
2251
+ {
2252
+ "kind": "js",
2253
+ "name": "*",
2254
+ "declaration": {
2255
+ "name": "*",
2256
+ "package": "./types"
2257
+ }
2258
+ }
2259
+ ]
2260
+ },
2261
+ {
2262
+ "kind": "javascript-module",
2263
+ "path": "src/mappers/dto/serverRow.ts",
2264
+ "declarations": [
2265
+ {
2266
+ "kind": "class",
2267
+ "description": "The default `ServerRowDTOMapper`.",
2268
+ "name": "DefaultServerRowDTOMapper",
2269
+ "members": [
2270
+ {
2271
+ "kind": "field",
2272
+ "name": "fromDTO",
2273
+ "description": "Converts a server row DTO to an entity.",
2274
+ "parameters": [
2275
+ {
2276
+ "description": "The DTO to convert.",
2277
+ "name": "dto"
2278
+ }
2279
+ ],
2280
+ "return": {
2281
+ "type": {
2282
+ "text": ""
2283
+ }
2284
+ },
2285
+ "privacy": "public"
2286
+ },
2287
+ {
2288
+ "kind": "field",
2289
+ "name": "toDTO",
2290
+ "description": "Converts a server row entity to a DTO.",
2291
+ "parameters": [
2292
+ {
2293
+ "description": "The entity to convert.",
2294
+ "name": "entity"
2295
+ }
2296
+ ],
2297
+ "return": {
2298
+ "type": {
2299
+ "text": ""
2300
+ }
2301
+ },
2302
+ "privacy": "public"
2303
+ }
2304
+ ]
2305
+ },
2306
+ {
2307
+ "kind": "variable",
2308
+ "name": "ServerRowDTOMapper",
2309
+ "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2310
+ "privacy": "public"
2311
+ }
2312
+ ],
2313
+ "exports": [
2314
+ {
2315
+ "kind": "js",
2316
+ "name": "DefaultServerRowDTOMapper",
2317
+ "declaration": {
2318
+ "name": "DefaultServerRowDTOMapper",
2319
+ "module": "src/mappers/dto/serverRow.ts"
2320
+ }
2321
+ },
2322
+ {
2323
+ "kind": "js",
2324
+ "name": "ServerRowDTOMapper",
2325
+ "declaration": {
2326
+ "name": "ServerRowDTOMapper",
2327
+ "module": "src/mappers/dto/serverRow.ts"
2328
+ }
2329
+ }
2330
+ ]
2331
+ },
2332
+ {
2333
+ "kind": "javascript-module",
2334
+ "path": "src/mappers/dto/types.ts",
2335
+ "declarations": [],
2336
+ "exports": []
2337
+ },
2338
2338
  {
2339
2339
  "kind": "javascript-module",
2340
2340
  "path": "src/serializers/json/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.92.5",
4
+ "version": "14.94.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.92.5",
23
- "@genesislcap/genx": "14.92.5",
22
+ "@genesislcap/foundation-testing": "14.94.0",
23
+ "@genesislcap/genx": "14.94.0",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.92.5",
27
+ "@genesislcap/foundation-logger": "14.94.0",
28
28
  "@microsoft/fast-components": "^2.21.3",
29
29
  "@microsoft/fast-element": "^1.7.0",
30
30
  "@microsoft/fast-foundation": "^2.33.2",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "1ab3429e0f9479079a247884cd93d08e726c6a35"
45
+ "gitHead": "cb3b05d51d51d25f3558ab4436258df58268aa0e"
46
46
  }