@genesislcap/foundation-utils 14.202.1-alpha-77ef7ac.0 → 14.203.0

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 +218 -218
  2. package/package.json +10 -10
@@ -420,6 +420,56 @@
420
420
  }
421
421
  ]
422
422
  },
423
+ {
424
+ "kind": "javascript-module",
425
+ "path": "src/design-system/design-system.ts",
426
+ "declarations": [
427
+ {
428
+ "kind": "function",
429
+ "name": "assureDesignSystem",
430
+ "return": {
431
+ "type": {
432
+ "text": "DesignSystemModule"
433
+ }
434
+ },
435
+ "parameters": [
436
+ {
437
+ "name": "module",
438
+ "type": {
439
+ "text": "DesignSystemModule"
440
+ }
441
+ }
442
+ ],
443
+ "description": "assureDesignSystem.",
444
+ "privacy": "public"
445
+ }
446
+ ],
447
+ "exports": [
448
+ {
449
+ "kind": "js",
450
+ "name": "assureDesignSystem",
451
+ "declaration": {
452
+ "name": "assureDesignSystem",
453
+ "module": "src/design-system/design-system.ts"
454
+ }
455
+ }
456
+ ]
457
+ },
458
+ {
459
+ "kind": "javascript-module",
460
+ "path": "src/design-system/index.ts",
461
+ "declarations": [],
462
+ "exports": [
463
+ {
464
+ "kind": "js",
465
+ "name": "*",
466
+ "declaration": {
467
+ "name": "*",
468
+ "package": "./design-system"
469
+ }
470
+ }
471
+ ]
472
+ },
423
473
  {
424
474
  "kind": "javascript-module",
425
475
  "path": "src/error/errorMap.ts",
@@ -674,42 +724,190 @@
674
724
  },
675
725
  {
676
726
  "kind": "javascript-module",
677
- "path": "src/design-system/design-system.ts",
727
+ "path": "src/data/inMemoryDatabase.ts",
678
728
  "declarations": [
679
729
  {
680
- "kind": "function",
681
- "name": "assureDesignSystem",
682
- "return": {
683
- "type": {
684
- "text": "DesignSystemModule"
685
- }
686
- },
687
- "parameters": [
730
+ "kind": "class",
731
+ "description": "An in memory database of specific DatabaseRecord types.",
732
+ "name": "InMemoryDatabase",
733
+ "members": [
688
734
  {
689
- "name": "module",
735
+ "kind": "field",
736
+ "name": "isWorking",
690
737
  "type": {
691
- "text": "DesignSystemModule"
692
- }
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
+ },
749
+ "privacy": "private",
750
+ "default": "{}"
751
+ },
752
+ {
753
+ "kind": "field",
754
+ "name": "beforeUpdateListeners",
755
+ "privacy": "private"
756
+ },
757
+ {
758
+ "kind": "field",
759
+ "name": "afterUpdateListeners",
760
+ "privacy": "private"
761
+ },
762
+ {
763
+ "kind": "method",
764
+ "name": "create",
765
+ "privacy": "public",
766
+ "return": {
767
+ "type": {
768
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
769
+ }
770
+ },
771
+ "parameters": [
772
+ {
773
+ "name": "newValue",
774
+ "type": {
775
+ "text": "Omit<T, 'id'>"
776
+ }
777
+ }
778
+ ]
779
+ },
780
+ {
781
+ "kind": "method",
782
+ "name": "read",
783
+ "privacy": "public",
784
+ "return": {
785
+ "type": {
786
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
787
+ }
788
+ },
789
+ "parameters": [
790
+ {
791
+ "name": "id",
792
+ "type": {
793
+ "text": "string"
794
+ }
795
+ }
796
+ ]
797
+ },
798
+ {
799
+ "kind": "method",
800
+ "name": "update",
801
+ "privacy": "public",
802
+ "return": {
803
+ "type": {
804
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
805
+ }
806
+ },
807
+ "parameters": [
808
+ {
809
+ "name": "id",
810
+ "type": {
811
+ "text": "string"
812
+ }
813
+ },
814
+ {
815
+ "name": "newValue",
816
+ "type": {
817
+ "text": "Omit<Partial<T>, 'id'>"
818
+ }
819
+ }
820
+ ]
821
+ },
822
+ {
823
+ "kind": "method",
824
+ "name": "delete",
825
+ "privacy": "public",
826
+ "return": {
827
+ "type": {
828
+ "text": "Promise<DatabaseAccessResult.Delete>"
829
+ }
830
+ },
831
+ "parameters": [
832
+ {
833
+ "name": "id",
834
+ "type": {
835
+ "text": "string"
836
+ }
837
+ }
838
+ ]
839
+ },
840
+ {
841
+ "kind": "method",
842
+ "name": "visit",
843
+ "privacy": "public",
844
+ "return": {
845
+ "type": {
846
+ "text": "Promise<void>"
847
+ }
848
+ },
849
+ "parameters": [
850
+ {
851
+ "name": "visitor",
852
+ "type": {
853
+ "text": "(record: T) => void"
854
+ }
855
+ }
856
+ ]
857
+ },
858
+ {
859
+ "kind": "method",
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
+ ]
875
+ },
876
+ {
877
+ "kind": "method",
878
+ "name": "onAfterUpdate",
879
+ "privacy": "public",
880
+ "return": {
881
+ "type": {
882
+ "text": "() => void"
883
+ }
884
+ },
885
+ "parameters": [
886
+ {
887
+ "name": "listener",
888
+ "type": {
889
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
890
+ }
891
+ }
892
+ ]
693
893
  }
694
- ],
695
- "description": "assureDesignSystem.",
696
- "privacy": "public"
894
+ ]
697
895
  }
698
896
  ],
699
897
  "exports": [
700
898
  {
701
899
  "kind": "js",
702
- "name": "assureDesignSystem",
900
+ "name": "InMemoryDatabase",
703
901
  "declaration": {
704
- "name": "assureDesignSystem",
705
- "module": "src/design-system/design-system.ts"
902
+ "name": "InMemoryDatabase",
903
+ "module": "src/data/inMemoryDatabase.ts"
706
904
  }
707
905
  }
708
906
  ]
709
907
  },
710
908
  {
711
909
  "kind": "javascript-module",
712
- "path": "src/design-system/index.ts",
910
+ "path": "src/data/index.ts",
713
911
  "declarations": [],
714
912
  "exports": [
715
913
  {
@@ -717,7 +915,7 @@
717
915
  "name": "*",
718
916
  "declaration": {
719
917
  "name": "*",
720
- "package": "./design-system"
918
+ "package": "./inMemoryDatabase"
721
919
  }
722
920
  }
723
921
  ]
@@ -1259,204 +1457,6 @@
1259
1457
  }
1260
1458
  ]
1261
1459
  },
1262
- {
1263
- "kind": "javascript-module",
1264
- "path": "src/data/inMemoryDatabase.ts",
1265
- "declarations": [
1266
- {
1267
- "kind": "class",
1268
- "description": "An in memory database of specific DatabaseRecord types.",
1269
- "name": "InMemoryDatabase",
1270
- "members": [
1271
- {
1272
- "kind": "field",
1273
- "name": "isWorking",
1274
- "type": {
1275
- "text": "boolean"
1276
- },
1277
- "privacy": "public",
1278
- "default": "false"
1279
- },
1280
- {
1281
- "kind": "field",
1282
- "name": "records",
1283
- "type": {
1284
- "text": "Record<string, T>"
1285
- },
1286
- "privacy": "private",
1287
- "default": "{}"
1288
- },
1289
- {
1290
- "kind": "field",
1291
- "name": "beforeUpdateListeners",
1292
- "privacy": "private"
1293
- },
1294
- {
1295
- "kind": "field",
1296
- "name": "afterUpdateListeners",
1297
- "privacy": "private"
1298
- },
1299
- {
1300
- "kind": "method",
1301
- "name": "create",
1302
- "privacy": "public",
1303
- "return": {
1304
- "type": {
1305
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1306
- }
1307
- },
1308
- "parameters": [
1309
- {
1310
- "name": "newValue",
1311
- "type": {
1312
- "text": "Omit<T, 'id'>"
1313
- }
1314
- }
1315
- ]
1316
- },
1317
- {
1318
- "kind": "method",
1319
- "name": "read",
1320
- "privacy": "public",
1321
- "return": {
1322
- "type": {
1323
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1324
- }
1325
- },
1326
- "parameters": [
1327
- {
1328
- "name": "id",
1329
- "type": {
1330
- "text": "string"
1331
- }
1332
- }
1333
- ]
1334
- },
1335
- {
1336
- "kind": "method",
1337
- "name": "update",
1338
- "privacy": "public",
1339
- "return": {
1340
- "type": {
1341
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1342
- }
1343
- },
1344
- "parameters": [
1345
- {
1346
- "name": "id",
1347
- "type": {
1348
- "text": "string"
1349
- }
1350
- },
1351
- {
1352
- "name": "newValue",
1353
- "type": {
1354
- "text": "Omit<Partial<T>, 'id'>"
1355
- }
1356
- }
1357
- ]
1358
- },
1359
- {
1360
- "kind": "method",
1361
- "name": "delete",
1362
- "privacy": "public",
1363
- "return": {
1364
- "type": {
1365
- "text": "Promise<DatabaseAccessResult.Delete>"
1366
- }
1367
- },
1368
- "parameters": [
1369
- {
1370
- "name": "id",
1371
- "type": {
1372
- "text": "string"
1373
- }
1374
- }
1375
- ]
1376
- },
1377
- {
1378
- "kind": "method",
1379
- "name": "visit",
1380
- "privacy": "public",
1381
- "return": {
1382
- "type": {
1383
- "text": "Promise<void>"
1384
- }
1385
- },
1386
- "parameters": [
1387
- {
1388
- "name": "visitor",
1389
- "type": {
1390
- "text": "(record: T) => void"
1391
- }
1392
- }
1393
- ]
1394
- },
1395
- {
1396
- "kind": "method",
1397
- "name": "onBeforeUpdate",
1398
- "privacy": "public",
1399
- "return": {
1400
- "type": {
1401
- "text": "() => void"
1402
- }
1403
- },
1404
- "parameters": [
1405
- {
1406
- "name": "listener",
1407
- "type": {
1408
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1409
- }
1410
- }
1411
- ]
1412
- },
1413
- {
1414
- "kind": "method",
1415
- "name": "onAfterUpdate",
1416
- "privacy": "public",
1417
- "return": {
1418
- "type": {
1419
- "text": "() => void"
1420
- }
1421
- },
1422
- "parameters": [
1423
- {
1424
- "name": "listener",
1425
- "type": {
1426
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1427
- }
1428
- }
1429
- ]
1430
- }
1431
- ]
1432
- }
1433
- ],
1434
- "exports": [
1435
- {
1436
- "kind": "js",
1437
- "name": "InMemoryDatabase",
1438
- "declaration": {
1439
- "name": "InMemoryDatabase",
1440
- "module": "src/data/inMemoryDatabase.ts"
1441
- }
1442
- }
1443
- ]
1444
- },
1445
- {
1446
- "kind": "javascript-module",
1447
- "path": "src/data/index.ts",
1448
- "declarations": [],
1449
- "exports": [
1450
- {
1451
- "kind": "js",
1452
- "name": "*",
1453
- "declaration": {
1454
- "name": "*",
1455
- "package": "./inMemoryDatabase"
1456
- }
1457
- }
1458
- ]
1459
- },
1460
1460
  {
1461
1461
  "kind": "javascript-module",
1462
1462
  "path": "src/resource/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.202.1-alpha-77ef7ac.0",
4
+ "version": "14.203.0",
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.202.1-alpha-77ef7ac.0",
31
- "@genesislcap/genx": "14.202.1-alpha-77ef7ac.0",
32
- "@genesislcap/rollup-builder": "14.202.1-alpha-77ef7ac.0",
33
- "@genesislcap/ts-builder": "14.202.1-alpha-77ef7ac.0",
34
- "@genesislcap/uvu-playwright-builder": "14.202.1-alpha-77ef7ac.0",
35
- "@genesislcap/vite-builder": "14.202.1-alpha-77ef7ac.0",
36
- "@genesislcap/webpack-builder": "14.202.1-alpha-77ef7ac.0",
30
+ "@genesislcap/foundation-testing": "14.203.0",
31
+ "@genesislcap/genx": "14.203.0",
32
+ "@genesislcap/rollup-builder": "14.203.0",
33
+ "@genesislcap/ts-builder": "14.203.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.203.0",
35
+ "@genesislcap/vite-builder": "14.203.0",
36
+ "@genesislcap/webpack-builder": "14.203.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.202.1-alpha-77ef7ac.0",
40
+ "@genesislcap/foundation-logger": "14.203.0",
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": "5396ccdfe1b0add8cf3e96be9f3c7f63350ace86"
58
+ "gitHead": "3f779b9e65169135dc8fea0605f21d0d65ce263b"
59
59
  }