@substrat-run/contract-tests 0.13.0 → 0.16.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/README.md +1 -1
- package/dist/modules.d.ts +168 -0
- package/dist/modules.d.ts.map +1 -1
- package/dist/scope-host-suite.d.ts.map +1 -1
- package/dist/scope-host-suite.js +590 -2
- package/dist/scope-host-suite.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ modified, the contract changed, and that is a decision, not a patch.
|
|
|
8
8
|
This package exports test *suites* (built on [Vitest](https://vitest.dev)); it runs
|
|
9
9
|
nothing itself. Each adapter runs the suite from its own `test/` folder.
|
|
10
10
|
|
|
11
|
-
**Full documentation: https://substrat.
|
|
11
|
+
**Full documentation: https://substrat.net/reference/contract-tests**
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
package/dist/modules.d.ts
CHANGED
|
@@ -36,6 +36,20 @@ export declare const testModManifest: {
|
|
|
36
36
|
}[] | undefined;
|
|
37
37
|
withdraws?: string[] | undefined;
|
|
38
38
|
entitlementKey: string;
|
|
39
|
+
envSpec?: {
|
|
40
|
+
key: string;
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
description: string;
|
|
43
|
+
placeholder?: string | undefined;
|
|
44
|
+
required: boolean;
|
|
45
|
+
secret: boolean;
|
|
46
|
+
default?: string | undefined;
|
|
47
|
+
group?: string | undefined;
|
|
48
|
+
}[] | undefined;
|
|
49
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
50
|
+
entitlements?: string[] | undefined;
|
|
51
|
+
provides?: string[] | undefined;
|
|
52
|
+
requires?: string[] | undefined;
|
|
39
53
|
api?: string | undefined;
|
|
40
54
|
searchables?: {
|
|
41
55
|
entityType: string;
|
|
@@ -106,6 +120,20 @@ export declare const flowModManifest: {
|
|
|
106
120
|
}[] | undefined;
|
|
107
121
|
withdraws?: string[] | undefined;
|
|
108
122
|
entitlementKey: string;
|
|
123
|
+
envSpec?: {
|
|
124
|
+
key: string;
|
|
125
|
+
label?: string | undefined;
|
|
126
|
+
description: string;
|
|
127
|
+
placeholder?: string | undefined;
|
|
128
|
+
required: boolean;
|
|
129
|
+
secret: boolean;
|
|
130
|
+
default?: string | undefined;
|
|
131
|
+
group?: string | undefined;
|
|
132
|
+
}[] | undefined;
|
|
133
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
134
|
+
entitlements?: string[] | undefined;
|
|
135
|
+
provides?: string[] | undefined;
|
|
136
|
+
requires?: string[] | undefined;
|
|
109
137
|
api?: string | undefined;
|
|
110
138
|
searchables?: {
|
|
111
139
|
entityType: string;
|
|
@@ -176,6 +204,20 @@ export declare const lateModManifest: {
|
|
|
176
204
|
}[] | undefined;
|
|
177
205
|
withdraws?: string[] | undefined;
|
|
178
206
|
entitlementKey: string;
|
|
207
|
+
envSpec?: {
|
|
208
|
+
key: string;
|
|
209
|
+
label?: string | undefined;
|
|
210
|
+
description: string;
|
|
211
|
+
placeholder?: string | undefined;
|
|
212
|
+
required: boolean;
|
|
213
|
+
secret: boolean;
|
|
214
|
+
default?: string | undefined;
|
|
215
|
+
group?: string | undefined;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
218
|
+
entitlements?: string[] | undefined;
|
|
219
|
+
provides?: string[] | undefined;
|
|
220
|
+
requires?: string[] | undefined;
|
|
179
221
|
api?: string | undefined;
|
|
180
222
|
searchables?: {
|
|
181
223
|
entityType: string;
|
|
@@ -246,6 +288,20 @@ export declare const billedModManifest: {
|
|
|
246
288
|
}[] | undefined;
|
|
247
289
|
withdraws?: string[] | undefined;
|
|
248
290
|
entitlementKey: string;
|
|
291
|
+
envSpec?: {
|
|
292
|
+
key: string;
|
|
293
|
+
label?: string | undefined;
|
|
294
|
+
description: string;
|
|
295
|
+
placeholder?: string | undefined;
|
|
296
|
+
required: boolean;
|
|
297
|
+
secret: boolean;
|
|
298
|
+
default?: string | undefined;
|
|
299
|
+
group?: string | undefined;
|
|
300
|
+
}[] | undefined;
|
|
301
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
302
|
+
entitlements?: string[] | undefined;
|
|
303
|
+
provides?: string[] | undefined;
|
|
304
|
+
requires?: string[] | undefined;
|
|
249
305
|
api?: string | undefined;
|
|
250
306
|
searchables?: {
|
|
251
307
|
entityType: string;
|
|
@@ -316,6 +372,20 @@ export declare const guardedModManifest: {
|
|
|
316
372
|
}[] | undefined;
|
|
317
373
|
withdraws?: string[] | undefined;
|
|
318
374
|
entitlementKey: string;
|
|
375
|
+
envSpec?: {
|
|
376
|
+
key: string;
|
|
377
|
+
label?: string | undefined;
|
|
378
|
+
description: string;
|
|
379
|
+
placeholder?: string | undefined;
|
|
380
|
+
required: boolean;
|
|
381
|
+
secret: boolean;
|
|
382
|
+
default?: string | undefined;
|
|
383
|
+
group?: string | undefined;
|
|
384
|
+
}[] | undefined;
|
|
385
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
386
|
+
entitlements?: string[] | undefined;
|
|
387
|
+
provides?: string[] | undefined;
|
|
388
|
+
requires?: string[] | undefined;
|
|
319
389
|
api?: string | undefined;
|
|
320
390
|
searchables?: {
|
|
321
391
|
entityType: string;
|
|
@@ -386,6 +456,20 @@ export declare const withdrawEarlyManifest: {
|
|
|
386
456
|
}[] | undefined;
|
|
387
457
|
withdraws?: string[] | undefined;
|
|
388
458
|
entitlementKey: string;
|
|
459
|
+
envSpec?: {
|
|
460
|
+
key: string;
|
|
461
|
+
label?: string | undefined;
|
|
462
|
+
description: string;
|
|
463
|
+
placeholder?: string | undefined;
|
|
464
|
+
required: boolean;
|
|
465
|
+
secret: boolean;
|
|
466
|
+
default?: string | undefined;
|
|
467
|
+
group?: string | undefined;
|
|
468
|
+
}[] | undefined;
|
|
469
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
470
|
+
entitlements?: string[] | undefined;
|
|
471
|
+
provides?: string[] | undefined;
|
|
472
|
+
requires?: string[] | undefined;
|
|
389
473
|
api?: string | undefined;
|
|
390
474
|
searchables?: {
|
|
391
475
|
entityType: string;
|
|
@@ -456,6 +540,20 @@ export declare const victimModManifest: {
|
|
|
456
540
|
}[] | undefined;
|
|
457
541
|
withdraws?: string[] | undefined;
|
|
458
542
|
entitlementKey: string;
|
|
543
|
+
envSpec?: {
|
|
544
|
+
key: string;
|
|
545
|
+
label?: string | undefined;
|
|
546
|
+
description: string;
|
|
547
|
+
placeholder?: string | undefined;
|
|
548
|
+
required: boolean;
|
|
549
|
+
secret: boolean;
|
|
550
|
+
default?: string | undefined;
|
|
551
|
+
group?: string | undefined;
|
|
552
|
+
}[] | undefined;
|
|
553
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
554
|
+
entitlements?: string[] | undefined;
|
|
555
|
+
provides?: string[] | undefined;
|
|
556
|
+
requires?: string[] | undefined;
|
|
459
557
|
api?: string | undefined;
|
|
460
558
|
searchables?: {
|
|
461
559
|
entityType: string;
|
|
@@ -526,6 +624,20 @@ export declare const withdrawLateManifest: {
|
|
|
526
624
|
}[] | undefined;
|
|
527
625
|
withdraws?: string[] | undefined;
|
|
528
626
|
entitlementKey: string;
|
|
627
|
+
envSpec?: {
|
|
628
|
+
key: string;
|
|
629
|
+
label?: string | undefined;
|
|
630
|
+
description: string;
|
|
631
|
+
placeholder?: string | undefined;
|
|
632
|
+
required: boolean;
|
|
633
|
+
secret: boolean;
|
|
634
|
+
default?: string | undefined;
|
|
635
|
+
group?: string | undefined;
|
|
636
|
+
}[] | undefined;
|
|
637
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
638
|
+
entitlements?: string[] | undefined;
|
|
639
|
+
provides?: string[] | undefined;
|
|
640
|
+
requires?: string[] | undefined;
|
|
529
641
|
api?: string | undefined;
|
|
530
642
|
searchables?: {
|
|
531
643
|
entityType: string;
|
|
@@ -596,6 +708,20 @@ export declare const gateModManifest: {
|
|
|
596
708
|
}[] | undefined;
|
|
597
709
|
withdraws?: string[] | undefined;
|
|
598
710
|
entitlementKey: string;
|
|
711
|
+
envSpec?: {
|
|
712
|
+
key: string;
|
|
713
|
+
label?: string | undefined;
|
|
714
|
+
description: string;
|
|
715
|
+
placeholder?: string | undefined;
|
|
716
|
+
required: boolean;
|
|
717
|
+
secret: boolean;
|
|
718
|
+
default?: string | undefined;
|
|
719
|
+
group?: string | undefined;
|
|
720
|
+
}[] | undefined;
|
|
721
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
722
|
+
entitlements?: string[] | undefined;
|
|
723
|
+
provides?: string[] | undefined;
|
|
724
|
+
requires?: string[] | undefined;
|
|
599
725
|
api?: string | undefined;
|
|
600
726
|
searchables?: {
|
|
601
727
|
entityType: string;
|
|
@@ -666,6 +792,20 @@ export declare const permModManifest: {
|
|
|
666
792
|
}[] | undefined;
|
|
667
793
|
withdraws?: string[] | undefined;
|
|
668
794
|
entitlementKey: string;
|
|
795
|
+
envSpec?: {
|
|
796
|
+
key: string;
|
|
797
|
+
label?: string | undefined;
|
|
798
|
+
description: string;
|
|
799
|
+
placeholder?: string | undefined;
|
|
800
|
+
required: boolean;
|
|
801
|
+
secret: boolean;
|
|
802
|
+
default?: string | undefined;
|
|
803
|
+
group?: string | undefined;
|
|
804
|
+
}[] | undefined;
|
|
805
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
806
|
+
entitlements?: string[] | undefined;
|
|
807
|
+
provides?: string[] | undefined;
|
|
808
|
+
requires?: string[] | undefined;
|
|
669
809
|
api?: string | undefined;
|
|
670
810
|
searchables?: {
|
|
671
811
|
entityType: string;
|
|
@@ -747,6 +887,20 @@ export declare const connectorModManifest: {
|
|
|
747
887
|
}[] | undefined;
|
|
748
888
|
withdraws?: string[] | undefined;
|
|
749
889
|
entitlementKey: string;
|
|
890
|
+
envSpec?: {
|
|
891
|
+
key: string;
|
|
892
|
+
label?: string | undefined;
|
|
893
|
+
description: string;
|
|
894
|
+
placeholder?: string | undefined;
|
|
895
|
+
required: boolean;
|
|
896
|
+
secret: boolean;
|
|
897
|
+
default?: string | undefined;
|
|
898
|
+
group?: string | undefined;
|
|
899
|
+
}[] | undefined;
|
|
900
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
901
|
+
entitlements?: string[] | undefined;
|
|
902
|
+
provides?: string[] | undefined;
|
|
903
|
+
requires?: string[] | undefined;
|
|
750
904
|
api?: string | undefined;
|
|
751
905
|
searchables?: {
|
|
752
906
|
entityType: string;
|
|
@@ -841,6 +995,20 @@ export declare const brokenModManifest: {
|
|
|
841
995
|
}[] | undefined;
|
|
842
996
|
withdraws?: string[] | undefined;
|
|
843
997
|
entitlementKey: string;
|
|
998
|
+
envSpec?: {
|
|
999
|
+
key: string;
|
|
1000
|
+
label?: string | undefined;
|
|
1001
|
+
description: string;
|
|
1002
|
+
placeholder?: string | undefined;
|
|
1003
|
+
required: boolean;
|
|
1004
|
+
secret: boolean;
|
|
1005
|
+
default?: string | undefined;
|
|
1006
|
+
group?: string | undefined;
|
|
1007
|
+
}[] | undefined;
|
|
1008
|
+
ownerGrants?: (string & import("zod").$brand<"PermissionKey">)[] | undefined;
|
|
1009
|
+
entitlements?: string[] | undefined;
|
|
1010
|
+
provides?: string[] | undefined;
|
|
1011
|
+
requires?: string[] | undefined;
|
|
844
1012
|
api?: string | undefined;
|
|
845
1013
|
searchables?: {
|
|
846
1014
|
entityType: string;
|
package/dist/modules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAEV,kBAAkB,EAElB,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;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AO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,EAAE,kBASvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-host-suite.d.ts","sourceRoot":"","sources":["../src/scope-host-suite.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scope-host-suite.d.ts","sourceRoot":"","sources":["../src/scope-host-suite.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAiD,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAWrG,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAaD,iFAAiF;AACjF,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,OAAO,CAAC,gBAAgB,CAAC,EAC5C,IAAI,GAAE,qBAA0B,GAC/B,IAAI,CAmuEN"}
|