@substrat-run/contract-tests 0.137.0 → 0.139.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.
- package/dist/attachment-text-fixtures.d.ts +17 -0
- package/dist/attachment-text-fixtures.d.ts.map +1 -1
- package/dist/attachment-text-fixtures.js +344 -4
- package/dist/attachment-text-fixtures.js.map +1 -1
- package/dist/attachment-text-suite.d.ts +16 -1
- package/dist/attachment-text-suite.d.ts.map +1 -1
- package/dist/attachment-text-suite.js +212 -28
- package/dist/attachment-text-suite.js.map +1 -1
- package/dist/caused-by-module.d.ts +23 -0
- package/dist/caused-by-module.d.ts.map +1 -0
- package/dist/caused-by-module.js +56 -0
- package/dist/caused-by-module.js.map +1 -0
- package/dist/caused-by-suite.d.ts +28 -0
- package/dist/caused-by-suite.d.ts.map +1 -0
- package/dist/caused-by-suite.js +179 -0
- package/dist/caused-by-suite.js.map +1 -0
- package/dist/directory-restore-suite.d.ts.map +1 -1
- package/dist/directory-restore-suite.js +40 -0
- package/dist/directory-restore-suite.js.map +1 -1
- package/dist/entity-state-module.d.ts +134 -0
- package/dist/entity-state-module.d.ts.map +1 -0
- package/dist/entity-state-module.js +140 -0
- package/dist/entity-state-module.js.map +1 -0
- package/dist/entity-state-suite.d.ts +9 -0
- package/dist/entity-state-suite.d.ts.map +1 -0
- package/dist/entity-state-suite.js +534 -0
- package/dist/entity-state-suite.js.map +1 -0
- package/dist/findings-atomic-suite.d.ts +21 -0
- package/dist/findings-atomic-suite.d.ts.map +1 -0
- package/dist/findings-atomic-suite.js +131 -0
- package/dist/findings-atomic-suite.js.map +1 -0
- package/dist/findings-suite.d.ts +11 -0
- package/dist/findings-suite.d.ts.map +1 -0
- package/dist/findings-suite.js +391 -0
- package/dist/findings-suite.js.map +1 -0
- package/dist/impersonation-suite.d.ts.map +1 -1
- package/dist/impersonation-suite.js +56 -0
- package/dist/impersonation-suite.js.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/job-run-suite.d.ts.map +1 -1
- package/dist/job-run-suite.js +263 -1
- package/dist/job-run-suite.js.map +1 -1
- package/dist/membership-executor-suite.d.ts +19 -0
- package/dist/membership-executor-suite.d.ts.map +1 -0
- package/dist/membership-executor-suite.js +866 -0
- package/dist/membership-executor-suite.js.map +1 -0
- package/dist/membership-module.d.ts +17 -0
- package/dist/membership-module.d.ts.map +1 -0
- package/dist/membership-module.js +128 -0
- package/dist/membership-module.js.map +1 -0
- package/dist/modules.d.ts +217 -0
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +23 -0
- package/dist/modules.js.map +1 -1
- package/dist/peer-suite.d.ts +10 -1
- package/dist/peer-suite.d.ts.map +1 -1
- package/dist/peer-suite.js +98 -0
- package/dist/peer-suite.js.map +1 -1
- package/dist/permission-suite.d.ts.map +1 -1
- package/dist/permission-suite.js +82 -7
- package/dist/permission-suite.js.map +1 -1
- package/dist/scope-host-suite.d.ts.map +1 -1
- package/dist/scope-host-suite.js +190 -34
- package/dist/scope-host-suite.js.map +1 -1
- package/dist/vertical-events-suite.d.ts +14 -0
- package/dist/vertical-events-suite.d.ts.map +1 -1
- package/dist/vertical-events-suite.js +74 -1
- package/dist/vertical-events-suite.js.map +1 -1
- package/package.json +4 -4
package/dist/modules.d.ts
CHANGED
|
@@ -135,6 +135,13 @@ export declare const testModManifest: {
|
|
|
135
135
|
table?: string | undefined;
|
|
136
136
|
idColumn?: string | undefined;
|
|
137
137
|
}[] | undefined;
|
|
138
|
+
entityStates?: {
|
|
139
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
140
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
141
|
+
table?: string | undefined;
|
|
142
|
+
idColumn?: string | undefined;
|
|
143
|
+
entityType: string;
|
|
144
|
+
}[] | undefined;
|
|
138
145
|
ui?: {
|
|
139
146
|
routes?: {
|
|
140
147
|
path: string;
|
|
@@ -259,6 +266,13 @@ export declare const scheduleModManifest: {
|
|
|
259
266
|
table?: string | undefined;
|
|
260
267
|
idColumn?: string | undefined;
|
|
261
268
|
}[] | undefined;
|
|
269
|
+
entityStates?: {
|
|
270
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
271
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
272
|
+
table?: string | undefined;
|
|
273
|
+
idColumn?: string | undefined;
|
|
274
|
+
entityType: string;
|
|
275
|
+
}[] | undefined;
|
|
262
276
|
ui?: {
|
|
263
277
|
routes?: {
|
|
264
278
|
path: string;
|
|
@@ -389,6 +403,13 @@ export declare const freshnessModManifest: {
|
|
|
389
403
|
table?: string | undefined;
|
|
390
404
|
idColumn?: string | undefined;
|
|
391
405
|
}[] | undefined;
|
|
406
|
+
entityStates?: {
|
|
407
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
408
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
409
|
+
table?: string | undefined;
|
|
410
|
+
idColumn?: string | undefined;
|
|
411
|
+
entityType: string;
|
|
412
|
+
}[] | undefined;
|
|
392
413
|
ui?: {
|
|
393
414
|
routes?: {
|
|
394
415
|
path: string;
|
|
@@ -531,6 +552,13 @@ export declare const jobsModManifest: {
|
|
|
531
552
|
table?: string | undefined;
|
|
532
553
|
idColumn?: string | undefined;
|
|
533
554
|
}[] | undefined;
|
|
555
|
+
entityStates?: {
|
|
556
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
557
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
558
|
+
table?: string | undefined;
|
|
559
|
+
idColumn?: string | undefined;
|
|
560
|
+
entityType: string;
|
|
561
|
+
}[] | undefined;
|
|
534
562
|
ui?: {
|
|
535
563
|
routes?: {
|
|
536
564
|
path: string;
|
|
@@ -656,6 +684,13 @@ export declare const flowModManifest: {
|
|
|
656
684
|
table?: string | undefined;
|
|
657
685
|
idColumn?: string | undefined;
|
|
658
686
|
}[] | undefined;
|
|
687
|
+
entityStates?: {
|
|
688
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
689
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
690
|
+
table?: string | undefined;
|
|
691
|
+
idColumn?: string | undefined;
|
|
692
|
+
entityType: string;
|
|
693
|
+
}[] | undefined;
|
|
659
694
|
ui?: {
|
|
660
695
|
routes?: {
|
|
661
696
|
path: string;
|
|
@@ -780,6 +815,13 @@ export declare const atomicModManifest: {
|
|
|
780
815
|
table?: string | undefined;
|
|
781
816
|
idColumn?: string | undefined;
|
|
782
817
|
}[] | undefined;
|
|
818
|
+
entityStates?: {
|
|
819
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
820
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
821
|
+
table?: string | undefined;
|
|
822
|
+
idColumn?: string | undefined;
|
|
823
|
+
entityType: string;
|
|
824
|
+
}[] | undefined;
|
|
783
825
|
ui?: {
|
|
784
826
|
routes?: {
|
|
785
827
|
path: string;
|
|
@@ -904,6 +946,13 @@ export declare const lateModManifest: {
|
|
|
904
946
|
table?: string | undefined;
|
|
905
947
|
idColumn?: string | undefined;
|
|
906
948
|
}[] | undefined;
|
|
949
|
+
entityStates?: {
|
|
950
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
951
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
952
|
+
table?: string | undefined;
|
|
953
|
+
idColumn?: string | undefined;
|
|
954
|
+
entityType: string;
|
|
955
|
+
}[] | undefined;
|
|
907
956
|
ui?: {
|
|
908
957
|
routes?: {
|
|
909
958
|
path: string;
|
|
@@ -1028,6 +1077,13 @@ export declare const billedModManifest: {
|
|
|
1028
1077
|
table?: string | undefined;
|
|
1029
1078
|
idColumn?: string | undefined;
|
|
1030
1079
|
}[] | undefined;
|
|
1080
|
+
entityStates?: {
|
|
1081
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1082
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1083
|
+
table?: string | undefined;
|
|
1084
|
+
idColumn?: string | undefined;
|
|
1085
|
+
entityType: string;
|
|
1086
|
+
}[] | undefined;
|
|
1031
1087
|
ui?: {
|
|
1032
1088
|
routes?: {
|
|
1033
1089
|
path: string;
|
|
@@ -1152,6 +1208,13 @@ export declare const guardedModManifest: {
|
|
|
1152
1208
|
table?: string | undefined;
|
|
1153
1209
|
idColumn?: string | undefined;
|
|
1154
1210
|
}[] | undefined;
|
|
1211
|
+
entityStates?: {
|
|
1212
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1213
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1214
|
+
table?: string | undefined;
|
|
1215
|
+
idColumn?: string | undefined;
|
|
1216
|
+
entityType: string;
|
|
1217
|
+
}[] | undefined;
|
|
1155
1218
|
ui?: {
|
|
1156
1219
|
routes?: {
|
|
1157
1220
|
path: string;
|
|
@@ -1276,6 +1339,13 @@ export declare const withdrawEarlyManifest: {
|
|
|
1276
1339
|
table?: string | undefined;
|
|
1277
1340
|
idColumn?: string | undefined;
|
|
1278
1341
|
}[] | undefined;
|
|
1342
|
+
entityStates?: {
|
|
1343
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1344
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1345
|
+
table?: string | undefined;
|
|
1346
|
+
idColumn?: string | undefined;
|
|
1347
|
+
entityType: string;
|
|
1348
|
+
}[] | undefined;
|
|
1279
1349
|
ui?: {
|
|
1280
1350
|
routes?: {
|
|
1281
1351
|
path: string;
|
|
@@ -1400,6 +1470,13 @@ export declare const victimModManifest: {
|
|
|
1400
1470
|
table?: string | undefined;
|
|
1401
1471
|
idColumn?: string | undefined;
|
|
1402
1472
|
}[] | undefined;
|
|
1473
|
+
entityStates?: {
|
|
1474
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1475
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1476
|
+
table?: string | undefined;
|
|
1477
|
+
idColumn?: string | undefined;
|
|
1478
|
+
entityType: string;
|
|
1479
|
+
}[] | undefined;
|
|
1403
1480
|
ui?: {
|
|
1404
1481
|
routes?: {
|
|
1405
1482
|
path: string;
|
|
@@ -1524,6 +1601,13 @@ export declare const withdrawLateManifest: {
|
|
|
1524
1601
|
table?: string | undefined;
|
|
1525
1602
|
idColumn?: string | undefined;
|
|
1526
1603
|
}[] | undefined;
|
|
1604
|
+
entityStates?: {
|
|
1605
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1606
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1607
|
+
table?: string | undefined;
|
|
1608
|
+
idColumn?: string | undefined;
|
|
1609
|
+
entityType: string;
|
|
1610
|
+
}[] | undefined;
|
|
1527
1611
|
ui?: {
|
|
1528
1612
|
routes?: {
|
|
1529
1613
|
path: string;
|
|
@@ -1648,6 +1732,13 @@ export declare const gateModManifest: {
|
|
|
1648
1732
|
table?: string | undefined;
|
|
1649
1733
|
idColumn?: string | undefined;
|
|
1650
1734
|
}[] | undefined;
|
|
1735
|
+
entityStates?: {
|
|
1736
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1737
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1738
|
+
table?: string | undefined;
|
|
1739
|
+
idColumn?: string | undefined;
|
|
1740
|
+
entityType: string;
|
|
1741
|
+
}[] | undefined;
|
|
1651
1742
|
ui?: {
|
|
1652
1743
|
routes?: {
|
|
1653
1744
|
path: string;
|
|
@@ -1781,6 +1872,13 @@ export declare const impersonationEchoManifest: {
|
|
|
1781
1872
|
table?: string | undefined;
|
|
1782
1873
|
idColumn?: string | undefined;
|
|
1783
1874
|
}[] | undefined;
|
|
1875
|
+
entityStates?: {
|
|
1876
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1877
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
1878
|
+
table?: string | undefined;
|
|
1879
|
+
idColumn?: string | undefined;
|
|
1880
|
+
entityType: string;
|
|
1881
|
+
}[] | undefined;
|
|
1784
1882
|
ui?: {
|
|
1785
1883
|
routes?: {
|
|
1786
1884
|
path: string;
|
|
@@ -1905,6 +2003,13 @@ export declare const permModManifest: {
|
|
|
1905
2003
|
table?: string | undefined;
|
|
1906
2004
|
idColumn?: string | undefined;
|
|
1907
2005
|
}[] | undefined;
|
|
2006
|
+
entityStates?: {
|
|
2007
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2008
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2009
|
+
table?: string | undefined;
|
|
2010
|
+
idColumn?: string | undefined;
|
|
2011
|
+
entityType: string;
|
|
2012
|
+
}[] | undefined;
|
|
1908
2013
|
ui?: {
|
|
1909
2014
|
routes?: {
|
|
1910
2015
|
path: string;
|
|
@@ -2043,6 +2148,13 @@ export declare const deniedScheduleModManifest: {
|
|
|
2043
2148
|
table?: string | undefined;
|
|
2044
2149
|
idColumn?: string | undefined;
|
|
2045
2150
|
}[] | undefined;
|
|
2151
|
+
entityStates?: {
|
|
2152
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2153
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2154
|
+
table?: string | undefined;
|
|
2155
|
+
idColumn?: string | undefined;
|
|
2156
|
+
entityType: string;
|
|
2157
|
+
}[] | undefined;
|
|
2046
2158
|
ui?: {
|
|
2047
2159
|
routes?: {
|
|
2048
2160
|
path: string;
|
|
@@ -2180,6 +2292,13 @@ export declare const composedEngineModManifest: {
|
|
|
2180
2292
|
table?: string | undefined;
|
|
2181
2293
|
idColumn?: string | undefined;
|
|
2182
2294
|
}[] | undefined;
|
|
2295
|
+
entityStates?: {
|
|
2296
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2297
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2298
|
+
table?: string | undefined;
|
|
2299
|
+
idColumn?: string | undefined;
|
|
2300
|
+
entityType: string;
|
|
2301
|
+
}[] | undefined;
|
|
2183
2302
|
ui?: {
|
|
2184
2303
|
routes?: {
|
|
2185
2304
|
path: string;
|
|
@@ -2313,6 +2432,13 @@ export declare const composerModManifest: {
|
|
|
2313
2432
|
table?: string | undefined;
|
|
2314
2433
|
idColumn?: string | undefined;
|
|
2315
2434
|
}[] | undefined;
|
|
2435
|
+
entityStates?: {
|
|
2436
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2437
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2438
|
+
table?: string | undefined;
|
|
2439
|
+
idColumn?: string | undefined;
|
|
2440
|
+
entityType: string;
|
|
2441
|
+
}[] | undefined;
|
|
2316
2442
|
ui?: {
|
|
2317
2443
|
routes?: {
|
|
2318
2444
|
path: string;
|
|
@@ -2448,6 +2574,13 @@ export declare const connectorModManifest: {
|
|
|
2448
2574
|
table?: string | undefined;
|
|
2449
2575
|
idColumn?: string | undefined;
|
|
2450
2576
|
}[] | undefined;
|
|
2577
|
+
entityStates?: {
|
|
2578
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2579
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2580
|
+
table?: string | undefined;
|
|
2581
|
+
idColumn?: string | undefined;
|
|
2582
|
+
entityType: string;
|
|
2583
|
+
}[] | undefined;
|
|
2451
2584
|
ui?: {
|
|
2452
2585
|
routes?: {
|
|
2453
2586
|
path: string;
|
|
@@ -2603,6 +2736,13 @@ export declare const listModManifest: {
|
|
|
2603
2736
|
table?: string | undefined;
|
|
2604
2737
|
idColumn?: string | undefined;
|
|
2605
2738
|
}[] | undefined;
|
|
2739
|
+
entityStates?: {
|
|
2740
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2741
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2742
|
+
table?: string | undefined;
|
|
2743
|
+
idColumn?: string | undefined;
|
|
2744
|
+
entityType: string;
|
|
2745
|
+
}[] | undefined;
|
|
2606
2746
|
ui?: {
|
|
2607
2747
|
routes?: {
|
|
2608
2748
|
path: string;
|
|
@@ -2744,6 +2884,13 @@ export declare const searchModManifest: {
|
|
|
2744
2884
|
table?: string | undefined;
|
|
2745
2885
|
idColumn?: string | undefined;
|
|
2746
2886
|
}[] | undefined;
|
|
2887
|
+
entityStates?: {
|
|
2888
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2889
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
2890
|
+
table?: string | undefined;
|
|
2891
|
+
idColumn?: string | undefined;
|
|
2892
|
+
entityType: string;
|
|
2893
|
+
}[] | undefined;
|
|
2747
2894
|
ui?: {
|
|
2748
2895
|
routes?: {
|
|
2749
2896
|
path: string;
|
|
@@ -2869,6 +3016,13 @@ export declare const parseModManifest: {
|
|
|
2869
3016
|
table?: string | undefined;
|
|
2870
3017
|
idColumn?: string | undefined;
|
|
2871
3018
|
}[] | undefined;
|
|
3019
|
+
entityStates?: {
|
|
3020
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3021
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3022
|
+
table?: string | undefined;
|
|
3023
|
+
idColumn?: string | undefined;
|
|
3024
|
+
entityType: string;
|
|
3025
|
+
}[] | undefined;
|
|
2872
3026
|
ui?: {
|
|
2873
3027
|
routes?: {
|
|
2874
3028
|
path: string;
|
|
@@ -2994,6 +3148,13 @@ export declare const concurrencyModManifest: {
|
|
|
2994
3148
|
table?: string | undefined;
|
|
2995
3149
|
idColumn?: string | undefined;
|
|
2996
3150
|
}[] | undefined;
|
|
3151
|
+
entityStates?: {
|
|
3152
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3153
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3154
|
+
table?: string | undefined;
|
|
3155
|
+
idColumn?: string | undefined;
|
|
3156
|
+
entityType: string;
|
|
3157
|
+
}[] | undefined;
|
|
2997
3158
|
ui?: {
|
|
2998
3159
|
routes?: {
|
|
2999
3160
|
path: string;
|
|
@@ -3119,6 +3280,13 @@ export declare const idempotencyModManifest: {
|
|
|
3119
3280
|
table?: string | undefined;
|
|
3120
3281
|
idColumn?: string | undefined;
|
|
3121
3282
|
}[] | undefined;
|
|
3283
|
+
entityStates?: {
|
|
3284
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3285
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3286
|
+
table?: string | undefined;
|
|
3287
|
+
idColumn?: string | undefined;
|
|
3288
|
+
entityType: string;
|
|
3289
|
+
}[] | undefined;
|
|
3122
3290
|
ui?: {
|
|
3123
3291
|
routes?: {
|
|
3124
3292
|
path: string;
|
|
@@ -3254,6 +3422,13 @@ export declare const capModManifest: {
|
|
|
3254
3422
|
table?: string | undefined;
|
|
3255
3423
|
idColumn?: string | undefined;
|
|
3256
3424
|
}[] | undefined;
|
|
3425
|
+
entityStates?: {
|
|
3426
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3427
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3428
|
+
table?: string | undefined;
|
|
3429
|
+
idColumn?: string | undefined;
|
|
3430
|
+
entityType: string;
|
|
3431
|
+
}[] | undefined;
|
|
3257
3432
|
ui?: {
|
|
3258
3433
|
routes?: {
|
|
3259
3434
|
path: string;
|
|
@@ -3392,6 +3567,13 @@ export declare const peerModManifest: {
|
|
|
3392
3567
|
table?: string | undefined;
|
|
3393
3568
|
idColumn?: string | undefined;
|
|
3394
3569
|
}[] | undefined;
|
|
3570
|
+
entityStates?: {
|
|
3571
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3572
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3573
|
+
table?: string | undefined;
|
|
3574
|
+
idColumn?: string | undefined;
|
|
3575
|
+
entityType: string;
|
|
3576
|
+
}[] | undefined;
|
|
3395
3577
|
ui?: {
|
|
3396
3578
|
routes?: {
|
|
3397
3579
|
path: string;
|
|
@@ -3517,6 +3699,13 @@ export declare const emittedModManifest: {
|
|
|
3517
3699
|
table?: string | undefined;
|
|
3518
3700
|
idColumn?: string | undefined;
|
|
3519
3701
|
}[] | undefined;
|
|
3702
|
+
entityStates?: {
|
|
3703
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3704
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3705
|
+
table?: string | undefined;
|
|
3706
|
+
idColumn?: string | undefined;
|
|
3707
|
+
entityType: string;
|
|
3708
|
+
}[] | undefined;
|
|
3520
3709
|
ui?: {
|
|
3521
3710
|
routes?: {
|
|
3522
3711
|
path: string;
|
|
@@ -3647,6 +3836,13 @@ export declare const loggedModManifest: {
|
|
|
3647
3836
|
table?: string | undefined;
|
|
3648
3837
|
idColumn?: string | undefined;
|
|
3649
3838
|
}[] | undefined;
|
|
3839
|
+
entityStates?: {
|
|
3840
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3841
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3842
|
+
table?: string | undefined;
|
|
3843
|
+
idColumn?: string | undefined;
|
|
3844
|
+
entityType: string;
|
|
3845
|
+
}[] | undefined;
|
|
3650
3846
|
ui?: {
|
|
3651
3847
|
routes?: {
|
|
3652
3848
|
path: string;
|
|
@@ -3777,6 +3973,13 @@ export declare const asyncLogModManifest: {
|
|
|
3777
3973
|
table?: string | undefined;
|
|
3778
3974
|
idColumn?: string | undefined;
|
|
3779
3975
|
}[] | undefined;
|
|
3976
|
+
entityStates?: {
|
|
3977
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3978
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
3979
|
+
table?: string | undefined;
|
|
3980
|
+
idColumn?: string | undefined;
|
|
3981
|
+
entityType: string;
|
|
3982
|
+
}[] | undefined;
|
|
3780
3983
|
ui?: {
|
|
3781
3984
|
routes?: {
|
|
3782
3985
|
path: string;
|
|
@@ -3927,6 +4130,13 @@ export declare const liveModManifest: {
|
|
|
3927
4130
|
table?: string | undefined;
|
|
3928
4131
|
idColumn?: string | undefined;
|
|
3929
4132
|
}[] | undefined;
|
|
4133
|
+
entityStates?: {
|
|
4134
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
4135
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
4136
|
+
table?: string | undefined;
|
|
4137
|
+
idColumn?: string | undefined;
|
|
4138
|
+
entityType: string;
|
|
4139
|
+
}[] | undefined;
|
|
3930
4140
|
ui?: {
|
|
3931
4141
|
routes?: {
|
|
3932
4142
|
path: string;
|
|
@@ -4052,6 +4262,13 @@ export declare const brokenModManifest: {
|
|
|
4052
4262
|
table?: string | undefined;
|
|
4053
4263
|
idColumn?: string | undefined;
|
|
4054
4264
|
}[] | undefined;
|
|
4265
|
+
entityStates?: {
|
|
4266
|
+
archivePermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
4267
|
+
trashPermission?: (string & z.$brand<"PermissionKey">) | undefined;
|
|
4268
|
+
table?: string | undefined;
|
|
4269
|
+
idColumn?: string | undefined;
|
|
4270
|
+
entityType: string;
|
|
4271
|
+
}[] | undefined;
|
|
4055
4272
|
ui?: {
|
|
4056
4273
|
routes?: {
|
|
4057
4274
|
path: string;
|
package/dist/modules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAYL,CAAC,EAMF,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAYL,CAAC,EAMF,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAUL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,cAAc;aACzB,KAAK,EAAE,OAAO;aACd,OAAO,EAAE,OAAO;aAChB,MAAM;iBACJ,KAAK;qBAAI,EAAE;yBAAI,WAAW,EAAE,MAAM;;;iBAClC,IAAI;qBAAI,EAAE;yBAAI,WAAW,EAAE,MAAM;;;iBACjC,IAAI;qBAAI,QAAQ;;;CAEV,CAAC;AAGX;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,kmBAoBlC,CAAC;AAIF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc1B,CAAC;AAMH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC9B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAEH,4FAA4F;AAC5F,eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAClE,8FAA8F;AAC9F,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,kBAyCzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,kBAAkB,EAoDnD,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC1B,CAAC;AAsEH,eAAO,MAAM,OAAO,EAAE,kBAUrB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,EAAE,kBASvB,CAAC;AAsBF,eAAO,MAAM,cAAc,EAAE,kBAU5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,kBAM1B,CAAC"}
|
package/dist/modules.js
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* artifacts live here.
|
|
9
9
|
*/
|
|
10
10
|
import { dataSubjectId, moduleManifest, operationInputsOf, operationConcurrencyOf, operationIdempotencyOptOutsOf, IDEMPOTENCY_RESULT_LIMIT, permissionKey, principalId, assertTransition, nameRefusedRecord, z, KERNEL_AUTHORED_EVENT_TYPES, substratError, } from '@substrat-run/contracts';
|
|
11
|
+
import { membershipFixtureMod } from './membership-module.js';
|
|
12
|
+
import { stateMod } from './entity-state-module.js';
|
|
11
13
|
import { assertAllowed, readAttachmentText, readHistory, readTimeline, readScopeTimeline, readScopeHistory, ulid, } from '@substrat-run/kernel';
|
|
12
14
|
/**
|
|
13
15
|
* #1744: the machine `test/move` walks, in the form `model.json` emits — what the suite
|
|
@@ -2491,6 +2493,9 @@ export const contractTestModules = [
|
|
|
2491
2493
|
// in the kit reads `imp_echo`, so it is inert for every other suite.
|
|
2492
2494
|
impersonationEchoMod,
|
|
2493
2495
|
connectorMod,
|
|
2496
|
+
// #1184: the invite events the membership executor consumes. Inert for every other suite —
|
|
2497
|
+
// only `membershipExecutorContractSuite` grants its entitlement or mounts the executor.
|
|
2498
|
+
membershipFixtureMod,
|
|
2494
2499
|
scheduleMod,
|
|
2495
2500
|
// #1525: the failed-schedule fixture. A Durable Object bakes its operations in at
|
|
2496
2501
|
// define time (this array), so registering it on a coordinator mid-test is not
|
|
@@ -2510,6 +2515,9 @@ export const contractTestModules = [
|
|
|
2510
2515
|
atomicMod,
|
|
2511
2516
|
searchMod,
|
|
2512
2517
|
listMod,
|
|
2518
|
+
// #119: the archive/trash suite's module. Inert for every other suite — nothing else reads
|
|
2519
|
+
// its tables or invokes a `state/*` operation.
|
|
2520
|
+
stateMod,
|
|
2513
2521
|
parseMod,
|
|
2514
2522
|
concurrencyMod,
|
|
2515
2523
|
idempotencyMod,
|
|
@@ -2575,6 +2583,9 @@ export const liveModManifest = moduleManifest.parse({
|
|
|
2575
2583
|
// The declaration under test. `note` is watchable, gated by the key that reads it;
|
|
2576
2584
|
// `ledger` is absent, and its absence is the assertion.
|
|
2577
2585
|
liveTargets: [{ entityType: 'note', readPermission: 'live:read' }],
|
|
2586
|
+
// #1853: a note can sit in a folder — sometimes in two — and move between them, which
|
|
2587
|
+
// is what a feed narrowed `within` a folder walks.
|
|
2588
|
+
entityRelations: [{ entityType: 'note', parentType: 'folder' }],
|
|
2578
2589
|
entitlementKey: 'live',
|
|
2579
2590
|
});
|
|
2580
2591
|
/** Touch a note — one write, one event about ONE entity, which is what a subscriber hears. */
|
|
@@ -2620,6 +2631,16 @@ const liveUnshareOp = async (ctx, input) => {
|
|
|
2620
2631
|
entityId: input.noteId,
|
|
2621
2632
|
});
|
|
2622
2633
|
};
|
|
2634
|
+
/** File a note under a folder (#1853) — a second call files it under a second one too. */
|
|
2635
|
+
const liveFileOp = async (ctx, input) => {
|
|
2636
|
+
assertAllowed(await ctx.check(permissionKey.parse('live:write')));
|
|
2637
|
+
ctx.link({ entityType: 'note', entityId: input.noteId }, { entityType: 'folder', entityId: input.folderId });
|
|
2638
|
+
};
|
|
2639
|
+
/** Move a note from one folder to another, the way ticket0's merge moves a message (#1853, #1864). */
|
|
2640
|
+
const liveMoveOp = async (ctx, input) => {
|
|
2641
|
+
assertAllowed(await ctx.check(permissionKey.parse('live:write')));
|
|
2642
|
+
ctx.relink({ entityType: 'note', entityId: input.noteId }, { entityType: 'folder', entityId: input.from }, { entityType: 'folder', entityId: input.to });
|
|
2643
|
+
};
|
|
2623
2644
|
export const liveMod = {
|
|
2624
2645
|
manifest: liveModManifest,
|
|
2625
2646
|
migrations: [],
|
|
@@ -2627,6 +2648,8 @@ export const liveMod = {
|
|
|
2627
2648
|
'live/touch': liveTouchOp,
|
|
2628
2649
|
'live/touch-ledger': liveTouchLedgerOp,
|
|
2629
2650
|
'live/unshare': liveUnshareOp,
|
|
2651
|
+
'live/file': liveFileOp,
|
|
2652
|
+
'live/move': liveMoveOp,
|
|
2630
2653
|
},
|
|
2631
2654
|
};
|
|
2632
2655
|
export const brokenModManifest = moduleManifest.parse({
|