@sequenceholdings/orm 0.1.2 → 0.1.3
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 +11 -1
- package/dist/authoring.cjs +1066 -59
- package/dist/authoring.cjs.map +1 -1
- package/dist/authoring.d.cts +289 -24
- package/dist/authoring.d.ts +289 -24
- package/dist/authoring.js +1056 -60
- package/dist/authoring.js.map +1 -1
- package/dist/canonical.cjs +415 -9
- package/dist/canonical.cjs.map +1 -1
- package/dist/canonical.d.cts +235 -1
- package/dist/canonical.d.ts +235 -1
- package/dist/canonical.js +411 -10
- package/dist/canonical.js.map +1 -1
- package/dist/cli.cjs +1764 -225
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1765 -226
- package/dist/cli.js.map +1 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js.map +1 -1
- package/dist/compiler.cjs +506 -54
- package/dist/compiler.cjs.map +1 -1
- package/dist/compiler.d.cts +39 -231
- package/dist/compiler.d.ts +39 -231
- package/dist/compiler.js +504 -55
- package/dist/compiler.js.map +1 -1
- package/dist/drizzle.cjs +14 -0
- package/dist/drizzle.cjs.map +1 -0
- package/dist/drizzle.d.cts +1 -0
- package/dist/drizzle.d.ts +1 -0
- package/dist/drizzle.js +3 -0
- package/dist/drizzle.js.map +1 -0
- package/dist/dynamic-input.cjs +391 -0
- package/dist/dynamic-input.cjs.map +1 -0
- package/dist/dynamic-input.d.cts +111 -0
- package/dist/dynamic-input.d.ts +111 -0
- package/dist/dynamic-input.js +380 -0
- package/dist/dynamic-input.js.map +1 -0
- package/dist/index.cjs +2223 -219
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +125 -9
- package/dist/index.d.ts +125 -9
- package/dist/index.js +2199 -220
- package/dist/index.js.map +1 -1
- package/dist/ir.cjs +249 -14
- package/dist/ir.cjs.map +1 -1
- package/dist/ir.d.cts +20 -80
- package/dist/ir.d.ts +20 -80
- package/dist/ir.js +249 -14
- package/dist/ir.js.map +1 -1
- package/dist/predicate-v2.cjs +1093 -0
- package/dist/predicate-v2.cjs.map +1 -0
- package/dist/predicate-v2.d.cts +139 -0
- package/dist/predicate-v2.d.ts +139 -0
- package/dist/predicate-v2.js +1083 -0
- package/dist/predicate-v2.js.map +1 -0
- package/dist/sdl.cjs +344 -55
- package/dist/sdl.cjs.map +1 -1
- package/dist/sdl.d.cts +1 -3
- package/dist/sdl.d.ts +1 -3
- package/dist/sdl.js +344 -55
- package/dist/sdl.js.map +1 -1
- package/package.json +16 -1
- package/templates/orm-namespace/CLAUDE.md +6 -5
package/dist/ir.d.cts
CHANGED
|
@@ -240,15 +240,20 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
241
241
|
kind: z.ZodLiteral<"mutation">;
|
|
242
242
|
op: z.ZodEnum<{
|
|
243
|
+
insert: "insert";
|
|
243
244
|
update: "update";
|
|
244
245
|
delete: "delete";
|
|
245
|
-
insert: "insert";
|
|
246
246
|
insertOne: "insertOne";
|
|
247
247
|
updateByPk: "updateByPk";
|
|
248
248
|
deleteByPk: "deleteByPk";
|
|
249
|
+
cowOverride: "cowOverride";
|
|
250
|
+
cowRevert: "cowRevert";
|
|
249
251
|
}>;
|
|
250
252
|
alias: z.ZodString;
|
|
251
253
|
table: z.ZodString;
|
|
254
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
255
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
256
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
252
257
|
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
253
258
|
slot: z.ZodString;
|
|
254
259
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -375,31 +380,6 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
375
380
|
variable: z.ZodString;
|
|
376
381
|
negated: z.ZodBoolean;
|
|
377
382
|
}, z.core.$strip>>;
|
|
378
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
-
kind: z.ZodLiteral<"action">;
|
|
380
|
-
alias: z.ZodString;
|
|
381
|
-
name: z.ZodString;
|
|
382
|
-
params: z.ZodArray<z.ZodObject<{
|
|
383
|
-
name: z.ZodString;
|
|
384
|
-
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
385
|
-
kind: z.ZodLiteral<"literal">;
|
|
386
|
-
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
387
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
-
kind: z.ZodLiteral<"variable">;
|
|
389
|
-
name: z.ZodString;
|
|
390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
-
kind: z.ZodLiteral<"claim">;
|
|
392
|
-
key: z.ZodEnum<{
|
|
393
|
-
sub: "sub";
|
|
394
|
-
org: "org";
|
|
395
|
-
}>;
|
|
396
|
-
}, z.core.$strip>], "kind">;
|
|
397
|
-
}, z.core.$strip>>;
|
|
398
|
-
returns: z.ZodEnum<{
|
|
399
|
-
rows: "rows";
|
|
400
|
-
rowsAffected: "rowsAffected";
|
|
401
|
-
scalar: "scalar";
|
|
402
|
-
}>;
|
|
403
383
|
}, z.core.$strip>], "kind">;
|
|
404
384
|
type RootIr = z.infer<typeof rootIrSchema>;
|
|
405
385
|
declare const INPUT_REF_KINDS: readonly ["boolExp", "orderBy", "selectColumn", "insertInput", "setInput", "appendInput", "onConflict"];
|
|
@@ -460,7 +440,6 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
460
440
|
name: z.ZodString;
|
|
461
441
|
opHash: z.ZodString;
|
|
462
442
|
kind: z.ZodEnum<{
|
|
463
|
-
action: "action";
|
|
464
443
|
query: "query";
|
|
465
444
|
mutation: "mutation";
|
|
466
445
|
}>;
|
|
@@ -592,15 +571,20 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
592
571
|
}, z.core.$strip>, z.ZodObject<{
|
|
593
572
|
kind: z.ZodLiteral<"mutation">;
|
|
594
573
|
op: z.ZodEnum<{
|
|
574
|
+
insert: "insert";
|
|
595
575
|
update: "update";
|
|
596
576
|
delete: "delete";
|
|
597
|
-
insert: "insert";
|
|
598
577
|
insertOne: "insertOne";
|
|
599
578
|
updateByPk: "updateByPk";
|
|
600
579
|
deleteByPk: "deleteByPk";
|
|
580
|
+
cowOverride: "cowOverride";
|
|
581
|
+
cowRevert: "cowRevert";
|
|
601
582
|
}>;
|
|
602
583
|
alias: z.ZodString;
|
|
603
584
|
table: z.ZodString;
|
|
585
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
586
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
587
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
604
588
|
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
605
589
|
slot: z.ZodString;
|
|
606
590
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -727,31 +711,6 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
727
711
|
variable: z.ZodString;
|
|
728
712
|
negated: z.ZodBoolean;
|
|
729
713
|
}, z.core.$strip>>;
|
|
730
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
731
|
-
kind: z.ZodLiteral<"action">;
|
|
732
|
-
alias: z.ZodString;
|
|
733
|
-
name: z.ZodString;
|
|
734
|
-
params: z.ZodArray<z.ZodObject<{
|
|
735
|
-
name: z.ZodString;
|
|
736
|
-
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
737
|
-
kind: z.ZodLiteral<"literal">;
|
|
738
|
-
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
739
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
740
|
-
kind: z.ZodLiteral<"variable">;
|
|
741
|
-
name: z.ZodString;
|
|
742
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
-
kind: z.ZodLiteral<"claim">;
|
|
744
|
-
key: z.ZodEnum<{
|
|
745
|
-
sub: "sub";
|
|
746
|
-
org: "org";
|
|
747
|
-
}>;
|
|
748
|
-
}, z.core.$strip>], "kind">;
|
|
749
|
-
}, z.core.$strip>>;
|
|
750
|
-
returns: z.ZodEnum<{
|
|
751
|
-
rows: "rows";
|
|
752
|
-
rowsAffected: "rowsAffected";
|
|
753
|
-
scalar: "scalar";
|
|
754
|
-
}>;
|
|
755
714
|
}, z.core.$strip>], "kind">>;
|
|
756
715
|
}, z.core.$strip>;
|
|
757
716
|
type CompiledOperation = z.infer<typeof compiledOperationSchema>;
|
|
@@ -764,6 +723,7 @@ declare const tableMetaIrSchema: z.ZodObject<{
|
|
|
764
723
|
table: z.ZodString;
|
|
765
724
|
schema: z.ZodString;
|
|
766
725
|
typename: z.ZodString;
|
|
726
|
+
claimsGated: z.ZodDefault<z.ZodBoolean>;
|
|
767
727
|
columns: z.ZodArray<z.ZodObject<{
|
|
768
728
|
name: z.ZodString;
|
|
769
729
|
columnName: z.ZodString;
|
|
@@ -818,6 +778,7 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
818
778
|
table: z.ZodString;
|
|
819
779
|
schema: z.ZodString;
|
|
820
780
|
typename: z.ZodString;
|
|
781
|
+
claimsGated: z.ZodDefault<z.ZodBoolean>;
|
|
821
782
|
columns: z.ZodArray<z.ZodObject<{
|
|
822
783
|
name: z.ZodString;
|
|
823
784
|
columnName: z.ZodString;
|
|
@@ -867,7 +828,6 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
867
828
|
name: z.ZodString;
|
|
868
829
|
opHash: z.ZodString;
|
|
869
830
|
kind: z.ZodEnum<{
|
|
870
|
-
action: "action";
|
|
871
831
|
query: "query";
|
|
872
832
|
mutation: "mutation";
|
|
873
833
|
}>;
|
|
@@ -999,15 +959,20 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
999
959
|
}, z.core.$strip>, z.ZodObject<{
|
|
1000
960
|
kind: z.ZodLiteral<"mutation">;
|
|
1001
961
|
op: z.ZodEnum<{
|
|
962
|
+
insert: "insert";
|
|
1002
963
|
update: "update";
|
|
1003
964
|
delete: "delete";
|
|
1004
|
-
insert: "insert";
|
|
1005
965
|
insertOne: "insertOne";
|
|
1006
966
|
updateByPk: "updateByPk";
|
|
1007
967
|
deleteByPk: "deleteByPk";
|
|
968
|
+
cowOverride: "cowOverride";
|
|
969
|
+
cowRevert: "cowRevert";
|
|
1008
970
|
}>;
|
|
1009
971
|
alias: z.ZodString;
|
|
1010
972
|
table: z.ZodString;
|
|
973
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
974
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
975
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
1011
976
|
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1012
977
|
slot: z.ZodString;
|
|
1013
978
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1134,31 +1099,6 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1134
1099
|
variable: z.ZodString;
|
|
1135
1100
|
negated: z.ZodBoolean;
|
|
1136
1101
|
}, z.core.$strip>>;
|
|
1137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
-
kind: z.ZodLiteral<"action">;
|
|
1139
|
-
alias: z.ZodString;
|
|
1140
|
-
name: z.ZodString;
|
|
1141
|
-
params: z.ZodArray<z.ZodObject<{
|
|
1142
|
-
name: z.ZodString;
|
|
1143
|
-
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1144
|
-
kind: z.ZodLiteral<"literal">;
|
|
1145
|
-
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
-
kind: z.ZodLiteral<"variable">;
|
|
1148
|
-
name: z.ZodString;
|
|
1149
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1150
|
-
kind: z.ZodLiteral<"claim">;
|
|
1151
|
-
key: z.ZodEnum<{
|
|
1152
|
-
sub: "sub";
|
|
1153
|
-
org: "org";
|
|
1154
|
-
}>;
|
|
1155
|
-
}, z.core.$strip>], "kind">;
|
|
1156
|
-
}, z.core.$strip>>;
|
|
1157
|
-
returns: z.ZodEnum<{
|
|
1158
|
-
rows: "rows";
|
|
1159
|
-
rowsAffected: "rowsAffected";
|
|
1160
|
-
scalar: "scalar";
|
|
1161
|
-
}>;
|
|
1162
1102
|
}, z.core.$strip>], "kind">>;
|
|
1163
1103
|
}, z.core.$strip>>;
|
|
1164
1104
|
}, z.core.$strip>;
|
package/dist/ir.d.ts
CHANGED
|
@@ -240,15 +240,20 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>, z.ZodObject<{
|
|
241
241
|
kind: z.ZodLiteral<"mutation">;
|
|
242
242
|
op: z.ZodEnum<{
|
|
243
|
+
insert: "insert";
|
|
243
244
|
update: "update";
|
|
244
245
|
delete: "delete";
|
|
245
|
-
insert: "insert";
|
|
246
246
|
insertOne: "insertOne";
|
|
247
247
|
updateByPk: "updateByPk";
|
|
248
248
|
deleteByPk: "deleteByPk";
|
|
249
|
+
cowOverride: "cowOverride";
|
|
250
|
+
cowRevert: "cowRevert";
|
|
249
251
|
}>;
|
|
250
252
|
alias: z.ZodString;
|
|
251
253
|
table: z.ZodString;
|
|
254
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
255
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
256
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
252
257
|
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
253
258
|
slot: z.ZodString;
|
|
254
259
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -375,31 +380,6 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
375
380
|
variable: z.ZodString;
|
|
376
381
|
negated: z.ZodBoolean;
|
|
377
382
|
}, z.core.$strip>>;
|
|
378
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
-
kind: z.ZodLiteral<"action">;
|
|
380
|
-
alias: z.ZodString;
|
|
381
|
-
name: z.ZodString;
|
|
382
|
-
params: z.ZodArray<z.ZodObject<{
|
|
383
|
-
name: z.ZodString;
|
|
384
|
-
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
385
|
-
kind: z.ZodLiteral<"literal">;
|
|
386
|
-
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
387
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
388
|
-
kind: z.ZodLiteral<"variable">;
|
|
389
|
-
name: z.ZodString;
|
|
390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
-
kind: z.ZodLiteral<"claim">;
|
|
392
|
-
key: z.ZodEnum<{
|
|
393
|
-
sub: "sub";
|
|
394
|
-
org: "org";
|
|
395
|
-
}>;
|
|
396
|
-
}, z.core.$strip>], "kind">;
|
|
397
|
-
}, z.core.$strip>>;
|
|
398
|
-
returns: z.ZodEnum<{
|
|
399
|
-
rows: "rows";
|
|
400
|
-
rowsAffected: "rowsAffected";
|
|
401
|
-
scalar: "scalar";
|
|
402
|
-
}>;
|
|
403
383
|
}, z.core.$strip>], "kind">;
|
|
404
384
|
type RootIr = z.infer<typeof rootIrSchema>;
|
|
405
385
|
declare const INPUT_REF_KINDS: readonly ["boolExp", "orderBy", "selectColumn", "insertInput", "setInput", "appendInput", "onConflict"];
|
|
@@ -460,7 +440,6 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
460
440
|
name: z.ZodString;
|
|
461
441
|
opHash: z.ZodString;
|
|
462
442
|
kind: z.ZodEnum<{
|
|
463
|
-
action: "action";
|
|
464
443
|
query: "query";
|
|
465
444
|
mutation: "mutation";
|
|
466
445
|
}>;
|
|
@@ -592,15 +571,20 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
592
571
|
}, z.core.$strip>, z.ZodObject<{
|
|
593
572
|
kind: z.ZodLiteral<"mutation">;
|
|
594
573
|
op: z.ZodEnum<{
|
|
574
|
+
insert: "insert";
|
|
595
575
|
update: "update";
|
|
596
576
|
delete: "delete";
|
|
597
|
-
insert: "insert";
|
|
598
577
|
insertOne: "insertOne";
|
|
599
578
|
updateByPk: "updateByPk";
|
|
600
579
|
deleteByPk: "deleteByPk";
|
|
580
|
+
cowOverride: "cowOverride";
|
|
581
|
+
cowRevert: "cowRevert";
|
|
601
582
|
}>;
|
|
602
583
|
alias: z.ZodString;
|
|
603
584
|
table: z.ZodString;
|
|
585
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
586
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
587
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
604
588
|
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
605
589
|
slot: z.ZodString;
|
|
606
590
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -727,31 +711,6 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
727
711
|
variable: z.ZodString;
|
|
728
712
|
negated: z.ZodBoolean;
|
|
729
713
|
}, z.core.$strip>>;
|
|
730
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
731
|
-
kind: z.ZodLiteral<"action">;
|
|
732
|
-
alias: z.ZodString;
|
|
733
|
-
name: z.ZodString;
|
|
734
|
-
params: z.ZodArray<z.ZodObject<{
|
|
735
|
-
name: z.ZodString;
|
|
736
|
-
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
737
|
-
kind: z.ZodLiteral<"literal">;
|
|
738
|
-
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
739
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
740
|
-
kind: z.ZodLiteral<"variable">;
|
|
741
|
-
name: z.ZodString;
|
|
742
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
743
|
-
kind: z.ZodLiteral<"claim">;
|
|
744
|
-
key: z.ZodEnum<{
|
|
745
|
-
sub: "sub";
|
|
746
|
-
org: "org";
|
|
747
|
-
}>;
|
|
748
|
-
}, z.core.$strip>], "kind">;
|
|
749
|
-
}, z.core.$strip>>;
|
|
750
|
-
returns: z.ZodEnum<{
|
|
751
|
-
rows: "rows";
|
|
752
|
-
rowsAffected: "rowsAffected";
|
|
753
|
-
scalar: "scalar";
|
|
754
|
-
}>;
|
|
755
714
|
}, z.core.$strip>], "kind">>;
|
|
756
715
|
}, z.core.$strip>;
|
|
757
716
|
type CompiledOperation = z.infer<typeof compiledOperationSchema>;
|
|
@@ -764,6 +723,7 @@ declare const tableMetaIrSchema: z.ZodObject<{
|
|
|
764
723
|
table: z.ZodString;
|
|
765
724
|
schema: z.ZodString;
|
|
766
725
|
typename: z.ZodString;
|
|
726
|
+
claimsGated: z.ZodDefault<z.ZodBoolean>;
|
|
767
727
|
columns: z.ZodArray<z.ZodObject<{
|
|
768
728
|
name: z.ZodString;
|
|
769
729
|
columnName: z.ZodString;
|
|
@@ -818,6 +778,7 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
818
778
|
table: z.ZodString;
|
|
819
779
|
schema: z.ZodString;
|
|
820
780
|
typename: z.ZodString;
|
|
781
|
+
claimsGated: z.ZodDefault<z.ZodBoolean>;
|
|
821
782
|
columns: z.ZodArray<z.ZodObject<{
|
|
822
783
|
name: z.ZodString;
|
|
823
784
|
columnName: z.ZodString;
|
|
@@ -867,7 +828,6 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
867
828
|
name: z.ZodString;
|
|
868
829
|
opHash: z.ZodString;
|
|
869
830
|
kind: z.ZodEnum<{
|
|
870
|
-
action: "action";
|
|
871
831
|
query: "query";
|
|
872
832
|
mutation: "mutation";
|
|
873
833
|
}>;
|
|
@@ -999,15 +959,20 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
999
959
|
}, z.core.$strip>, z.ZodObject<{
|
|
1000
960
|
kind: z.ZodLiteral<"mutation">;
|
|
1001
961
|
op: z.ZodEnum<{
|
|
962
|
+
insert: "insert";
|
|
1002
963
|
update: "update";
|
|
1003
964
|
delete: "delete";
|
|
1004
|
-
insert: "insert";
|
|
1005
965
|
insertOne: "insertOne";
|
|
1006
966
|
updateByPk: "updateByPk";
|
|
1007
967
|
deleteByPk: "deleteByPk";
|
|
968
|
+
cowOverride: "cowOverride";
|
|
969
|
+
cowRevert: "cowRevert";
|
|
1008
970
|
}>;
|
|
1009
971
|
alias: z.ZodString;
|
|
1010
972
|
table: z.ZodString;
|
|
973
|
+
cowSynced: z.ZodOptional<z.ZodString>;
|
|
974
|
+
cowCopyColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
975
|
+
cowCopyCheck: z.ZodOptional<z.ZodType<PredIr, unknown, z.core.$ZodTypeInternals<PredIr, unknown>>>;
|
|
1011
976
|
objects: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1012
977
|
slot: z.ZodString;
|
|
1013
978
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1134,31 +1099,6 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1134
1099
|
variable: z.ZodString;
|
|
1135
1100
|
negated: z.ZodBoolean;
|
|
1136
1101
|
}, z.core.$strip>>;
|
|
1137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1138
|
-
kind: z.ZodLiteral<"action">;
|
|
1139
|
-
alias: z.ZodString;
|
|
1140
|
-
name: z.ZodString;
|
|
1141
|
-
params: z.ZodArray<z.ZodObject<{
|
|
1142
|
-
name: z.ZodString;
|
|
1143
|
-
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1144
|
-
kind: z.ZodLiteral<"literal">;
|
|
1145
|
-
value: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>;
|
|
1146
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1147
|
-
kind: z.ZodLiteral<"variable">;
|
|
1148
|
-
name: z.ZodString;
|
|
1149
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1150
|
-
kind: z.ZodLiteral<"claim">;
|
|
1151
|
-
key: z.ZodEnum<{
|
|
1152
|
-
sub: "sub";
|
|
1153
|
-
org: "org";
|
|
1154
|
-
}>;
|
|
1155
|
-
}, z.core.$strip>], "kind">;
|
|
1156
|
-
}, z.core.$strip>>;
|
|
1157
|
-
returns: z.ZodEnum<{
|
|
1158
|
-
rows: "rows";
|
|
1159
|
-
rowsAffected: "rowsAffected";
|
|
1160
|
-
scalar: "scalar";
|
|
1161
|
-
}>;
|
|
1162
1102
|
}, z.core.$strip>], "kind">>;
|
|
1163
1103
|
}, z.core.$strip>>;
|
|
1164
1104
|
}, z.core.$strip>;
|