@sequenceholdings/orm 2.6.0 → 2.6.1
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/authoring.d.cts +1 -1
- package/dist/authoring.d.ts +1 -1
- package/dist/canonical.d.cts +71 -71
- package/dist/canonical.d.ts +71 -71
- package/dist/compiler.d.cts +1 -1
- package/dist/compiler.d.ts +1 -1
- package/dist/index.d.cts +57 -57
- package/dist/index.d.ts +57 -57
- package/dist/ir.d.cts +70 -70
- package/dist/ir.d.ts +70 -70
- package/package.json +1 -1
- package/templates/orm-namespace/package.json +2 -0
- package/templates/orm-namespace/schema/tables.ts +7 -3
- package/dist/{definition-DjfC7Lll.d.cts → definition-B99BsOAO.d.cts} +4 -4
- package/dist/{definition-DjfC7Lll.d.ts → definition-B99BsOAO.d.ts} +4 -4
package/dist/ir.d.ts
CHANGED
|
@@ -65,9 +65,9 @@ declare const valueIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
65
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
66
66
|
kind: z.ZodLiteral<"claim">;
|
|
67
67
|
key: z.ZodEnum<{
|
|
68
|
-
sub: "sub";
|
|
69
68
|
ext_subject: "ext_subject";
|
|
70
69
|
ext_email: "ext_email";
|
|
70
|
+
sub: "sub";
|
|
71
71
|
org: "org";
|
|
72
72
|
}>;
|
|
73
73
|
}, z.core.$strip>], "kind">;
|
|
@@ -228,9 +228,9 @@ declare const prefetchPlanIrSchema: z.ZodObject<{
|
|
|
228
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
229
229
|
kind: z.ZodLiteral<"claim">;
|
|
230
230
|
key: z.ZodEnum<{
|
|
231
|
-
sub: "sub";
|
|
232
231
|
ext_subject: "ext_subject";
|
|
233
232
|
ext_email: "ext_email";
|
|
233
|
+
sub: "sub";
|
|
234
234
|
org: "org";
|
|
235
235
|
}>;
|
|
236
236
|
}, z.core.$strip>], "kind">;
|
|
@@ -244,9 +244,9 @@ declare const prefetchPlanIrSchema: z.ZodObject<{
|
|
|
244
244
|
}, z.core.$strip>, z.ZodObject<{
|
|
245
245
|
kind: z.ZodLiteral<"claim">;
|
|
246
246
|
key: z.ZodEnum<{
|
|
247
|
-
sub: "sub";
|
|
248
247
|
ext_subject: "ext_subject";
|
|
249
248
|
ext_email: "ext_email";
|
|
249
|
+
sub: "sub";
|
|
250
250
|
org: "org";
|
|
251
251
|
}>;
|
|
252
252
|
}, z.core.$strip>], "kind">;
|
|
@@ -331,9 +331,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
331
331
|
}, z.core.$strip>, z.ZodObject<{
|
|
332
332
|
kind: z.ZodLiteral<"claim">;
|
|
333
333
|
key: z.ZodEnum<{
|
|
334
|
-
sub: "sub";
|
|
335
334
|
ext_subject: "ext_subject";
|
|
336
335
|
ext_email: "ext_email";
|
|
336
|
+
sub: "sub";
|
|
337
337
|
org: "org";
|
|
338
338
|
}>;
|
|
339
339
|
}, z.core.$strip>], "kind">;
|
|
@@ -347,9 +347,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
347
347
|
}, z.core.$strip>, z.ZodObject<{
|
|
348
348
|
kind: z.ZodLiteral<"claim">;
|
|
349
349
|
key: z.ZodEnum<{
|
|
350
|
-
sub: "sub";
|
|
351
350
|
ext_subject: "ext_subject";
|
|
352
351
|
ext_email: "ext_email";
|
|
352
|
+
sub: "sub";
|
|
353
353
|
org: "org";
|
|
354
354
|
}>;
|
|
355
355
|
}, z.core.$strip>], "kind">;
|
|
@@ -371,9 +371,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
371
371
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
372
|
kind: z.ZodLiteral<"claim">;
|
|
373
373
|
key: z.ZodEnum<{
|
|
374
|
-
sub: "sub";
|
|
375
374
|
ext_subject: "ext_subject";
|
|
376
375
|
ext_email: "ext_email";
|
|
376
|
+
sub: "sub";
|
|
377
377
|
org: "org";
|
|
378
378
|
}>;
|
|
379
379
|
}, z.core.$strip>], "kind">;
|
|
@@ -396,9 +396,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
396
396
|
}, z.core.$strip>, z.ZodObject<{
|
|
397
397
|
kind: z.ZodLiteral<"claim">;
|
|
398
398
|
key: z.ZodEnum<{
|
|
399
|
-
sub: "sub";
|
|
400
399
|
ext_subject: "ext_subject";
|
|
401
400
|
ext_email: "ext_email";
|
|
401
|
+
sub: "sub";
|
|
402
402
|
org: "org";
|
|
403
403
|
}>;
|
|
404
404
|
}, z.core.$strip>], "kind">;
|
|
@@ -412,9 +412,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
412
412
|
}, z.core.$strip>, z.ZodObject<{
|
|
413
413
|
kind: z.ZodLiteral<"claim">;
|
|
414
414
|
key: z.ZodEnum<{
|
|
415
|
-
sub: "sub";
|
|
416
415
|
ext_subject: "ext_subject";
|
|
417
416
|
ext_email: "ext_email";
|
|
417
|
+
sub: "sub";
|
|
418
418
|
org: "org";
|
|
419
419
|
}>;
|
|
420
420
|
}, z.core.$strip>], "kind">;
|
|
@@ -480,10 +480,10 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
480
480
|
kind: z.ZodLiteral<"mutation">;
|
|
481
481
|
op: z.ZodEnum<{
|
|
482
482
|
insert: "insert";
|
|
483
|
-
update: "update";
|
|
484
|
-
delete: "delete";
|
|
485
483
|
insertOne: "insertOne";
|
|
484
|
+
update: "update";
|
|
486
485
|
updateByPk: "updateByPk";
|
|
486
|
+
delete: "delete";
|
|
487
487
|
deleteByPk: "deleteByPk";
|
|
488
488
|
cowOverride: "cowOverride";
|
|
489
489
|
cowRevert: "cowRevert";
|
|
@@ -492,8 +492,8 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
492
492
|
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
493
493
|
insert: "insert";
|
|
494
494
|
update: "update";
|
|
495
|
-
revert: "revert";
|
|
496
495
|
delete: "delete";
|
|
496
|
+
revert: "revert";
|
|
497
497
|
}>>;
|
|
498
498
|
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
499
499
|
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -523,9 +523,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
523
523
|
}, z.core.$strip>, z.ZodObject<{
|
|
524
524
|
kind: z.ZodLiteral<"claim">;
|
|
525
525
|
key: z.ZodEnum<{
|
|
526
|
-
sub: "sub";
|
|
527
526
|
ext_subject: "ext_subject";
|
|
528
527
|
ext_email: "ext_email";
|
|
528
|
+
sub: "sub";
|
|
529
529
|
org: "org";
|
|
530
530
|
}>;
|
|
531
531
|
}, z.core.$strip>], "kind">;
|
|
@@ -542,9 +542,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
542
542
|
}, z.core.$strip>, z.ZodObject<{
|
|
543
543
|
kind: z.ZodLiteral<"claim">;
|
|
544
544
|
key: z.ZodEnum<{
|
|
545
|
-
sub: "sub";
|
|
546
545
|
ext_subject: "ext_subject";
|
|
547
546
|
ext_email: "ext_email";
|
|
547
|
+
sub: "sub";
|
|
548
548
|
org: "org";
|
|
549
549
|
}>;
|
|
550
550
|
}, z.core.$strip>], "kind">;
|
|
@@ -569,9 +569,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
569
569
|
}, z.core.$strip>, z.ZodObject<{
|
|
570
570
|
kind: z.ZodLiteral<"claim">;
|
|
571
571
|
key: z.ZodEnum<{
|
|
572
|
-
sub: "sub";
|
|
573
572
|
ext_subject: "ext_subject";
|
|
574
573
|
ext_email: "ext_email";
|
|
574
|
+
sub: "sub";
|
|
575
575
|
org: "org";
|
|
576
576
|
}>;
|
|
577
577
|
}, z.core.$strip>], "kind">;
|
|
@@ -591,9 +591,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
591
591
|
}, z.core.$strip>, z.ZodObject<{
|
|
592
592
|
kind: z.ZodLiteral<"claim">;
|
|
593
593
|
key: z.ZodEnum<{
|
|
594
|
-
sub: "sub";
|
|
595
594
|
ext_subject: "ext_subject";
|
|
596
595
|
ext_email: "ext_email";
|
|
596
|
+
sub: "sub";
|
|
597
597
|
org: "org";
|
|
598
598
|
}>;
|
|
599
599
|
}, z.core.$strip>], "kind">;
|
|
@@ -613,9 +613,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
613
613
|
}, z.core.$strip>, z.ZodObject<{
|
|
614
614
|
kind: z.ZodLiteral<"claim">;
|
|
615
615
|
key: z.ZodEnum<{
|
|
616
|
-
sub: "sub";
|
|
617
616
|
ext_subject: "ext_subject";
|
|
618
617
|
ext_email: "ext_email";
|
|
618
|
+
sub: "sub";
|
|
619
619
|
org: "org";
|
|
620
620
|
}>;
|
|
621
621
|
}, z.core.$strip>], "kind">;
|
|
@@ -633,9 +633,9 @@ declare const rootIrSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
633
633
|
}, z.core.$strip>, z.ZodObject<{
|
|
634
634
|
kind: z.ZodLiteral<"claim">;
|
|
635
635
|
key: z.ZodEnum<{
|
|
636
|
-
sub: "sub";
|
|
637
636
|
ext_subject: "ext_subject";
|
|
638
637
|
ext_email: "ext_email";
|
|
638
|
+
sub: "sub";
|
|
639
639
|
org: "org";
|
|
640
640
|
}>;
|
|
641
641
|
}, z.core.$strip>], "kind">;
|
|
@@ -671,13 +671,13 @@ declare const variableIrSchema: z.ZodObject<{
|
|
|
671
671
|
bigint: "bigint";
|
|
672
672
|
boolean: "boolean";
|
|
673
673
|
date: "date";
|
|
674
|
-
text: "text";
|
|
675
|
-
timestamptz: "timestamptz";
|
|
676
|
-
jsonb: "jsonb";
|
|
677
674
|
uuid: "uuid";
|
|
675
|
+
text: "text";
|
|
678
676
|
integer: "integer";
|
|
679
677
|
numeric: "numeric";
|
|
680
678
|
double: "double";
|
|
679
|
+
timestamptz: "timestamptz";
|
|
680
|
+
jsonb: "jsonb";
|
|
681
681
|
}>;
|
|
682
682
|
}, z.core.$strip>, z.ZodObject<{
|
|
683
683
|
kind: z.ZodLiteral<"enum">;
|
|
@@ -731,12 +731,12 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
731
731
|
bigint: "bigint";
|
|
732
732
|
boolean: "boolean";
|
|
733
733
|
date: "date";
|
|
734
|
-
text: "text";
|
|
735
|
-
timestamptz: "timestamptz";
|
|
736
734
|
uuid: "uuid";
|
|
735
|
+
text: "text";
|
|
737
736
|
integer: "integer";
|
|
738
737
|
numeric: "numeric";
|
|
739
738
|
double: "double";
|
|
739
|
+
timestamptz: "timestamptz";
|
|
740
740
|
}>;
|
|
741
741
|
nullable: z.ZodBoolean;
|
|
742
742
|
}, z.core.$strip>>;
|
|
@@ -748,8 +748,8 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
748
748
|
name: z.ZodString;
|
|
749
749
|
opHash: z.ZodString;
|
|
750
750
|
kind: z.ZodEnum<{
|
|
751
|
-
query: "query";
|
|
752
751
|
mutation: "mutation";
|
|
752
|
+
query: "query";
|
|
753
753
|
}>;
|
|
754
754
|
requires: z.ZodNullable<z.ZodObject<{
|
|
755
755
|
capability: z.ZodOptional<z.ZodString>;
|
|
@@ -763,13 +763,13 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
763
763
|
bigint: "bigint";
|
|
764
764
|
boolean: "boolean";
|
|
765
765
|
date: "date";
|
|
766
|
-
text: "text";
|
|
767
|
-
timestamptz: "timestamptz";
|
|
768
|
-
jsonb: "jsonb";
|
|
769
766
|
uuid: "uuid";
|
|
767
|
+
text: "text";
|
|
770
768
|
integer: "integer";
|
|
771
769
|
numeric: "numeric";
|
|
772
770
|
double: "double";
|
|
771
|
+
timestamptz: "timestamptz";
|
|
772
|
+
jsonb: "jsonb";
|
|
773
773
|
}>;
|
|
774
774
|
}, z.core.$strip>, z.ZodObject<{
|
|
775
775
|
kind: z.ZodLiteral<"enum">;
|
|
@@ -847,9 +847,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
847
847
|
}, z.core.$strip>, z.ZodObject<{
|
|
848
848
|
kind: z.ZodLiteral<"claim">;
|
|
849
849
|
key: z.ZodEnum<{
|
|
850
|
-
sub: "sub";
|
|
851
850
|
ext_subject: "ext_subject";
|
|
852
851
|
ext_email: "ext_email";
|
|
852
|
+
sub: "sub";
|
|
853
853
|
org: "org";
|
|
854
854
|
}>;
|
|
855
855
|
}, z.core.$strip>], "kind">;
|
|
@@ -863,9 +863,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
863
863
|
}, z.core.$strip>, z.ZodObject<{
|
|
864
864
|
kind: z.ZodLiteral<"claim">;
|
|
865
865
|
key: z.ZodEnum<{
|
|
866
|
-
sub: "sub";
|
|
867
866
|
ext_subject: "ext_subject";
|
|
868
867
|
ext_email: "ext_email";
|
|
868
|
+
sub: "sub";
|
|
869
869
|
org: "org";
|
|
870
870
|
}>;
|
|
871
871
|
}, z.core.$strip>], "kind">;
|
|
@@ -887,9 +887,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
887
887
|
}, z.core.$strip>, z.ZodObject<{
|
|
888
888
|
kind: z.ZodLiteral<"claim">;
|
|
889
889
|
key: z.ZodEnum<{
|
|
890
|
-
sub: "sub";
|
|
891
890
|
ext_subject: "ext_subject";
|
|
892
891
|
ext_email: "ext_email";
|
|
892
|
+
sub: "sub";
|
|
893
893
|
org: "org";
|
|
894
894
|
}>;
|
|
895
895
|
}, z.core.$strip>], "kind">;
|
|
@@ -912,9 +912,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
912
912
|
}, z.core.$strip>, z.ZodObject<{
|
|
913
913
|
kind: z.ZodLiteral<"claim">;
|
|
914
914
|
key: z.ZodEnum<{
|
|
915
|
-
sub: "sub";
|
|
916
915
|
ext_subject: "ext_subject";
|
|
917
916
|
ext_email: "ext_email";
|
|
917
|
+
sub: "sub";
|
|
918
918
|
org: "org";
|
|
919
919
|
}>;
|
|
920
920
|
}, z.core.$strip>], "kind">;
|
|
@@ -928,9 +928,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
928
928
|
}, z.core.$strip>, z.ZodObject<{
|
|
929
929
|
kind: z.ZodLiteral<"claim">;
|
|
930
930
|
key: z.ZodEnum<{
|
|
931
|
-
sub: "sub";
|
|
932
931
|
ext_subject: "ext_subject";
|
|
933
932
|
ext_email: "ext_email";
|
|
933
|
+
sub: "sub";
|
|
934
934
|
org: "org";
|
|
935
935
|
}>;
|
|
936
936
|
}, z.core.$strip>], "kind">;
|
|
@@ -996,10 +996,10 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
996
996
|
kind: z.ZodLiteral<"mutation">;
|
|
997
997
|
op: z.ZodEnum<{
|
|
998
998
|
insert: "insert";
|
|
999
|
-
update: "update";
|
|
1000
|
-
delete: "delete";
|
|
1001
999
|
insertOne: "insertOne";
|
|
1000
|
+
update: "update";
|
|
1002
1001
|
updateByPk: "updateByPk";
|
|
1002
|
+
delete: "delete";
|
|
1003
1003
|
deleteByPk: "deleteByPk";
|
|
1004
1004
|
cowOverride: "cowOverride";
|
|
1005
1005
|
cowRevert: "cowRevert";
|
|
@@ -1008,8 +1008,8 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1008
1008
|
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
1009
1009
|
insert: "insert";
|
|
1010
1010
|
update: "update";
|
|
1011
|
-
revert: "revert";
|
|
1012
1011
|
delete: "delete";
|
|
1012
|
+
revert: "revert";
|
|
1013
1013
|
}>>;
|
|
1014
1014
|
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1015
1015
|
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1039,9 +1039,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1039
1039
|
}, z.core.$strip>, z.ZodObject<{
|
|
1040
1040
|
kind: z.ZodLiteral<"claim">;
|
|
1041
1041
|
key: z.ZodEnum<{
|
|
1042
|
-
sub: "sub";
|
|
1043
1042
|
ext_subject: "ext_subject";
|
|
1044
1043
|
ext_email: "ext_email";
|
|
1044
|
+
sub: "sub";
|
|
1045
1045
|
org: "org";
|
|
1046
1046
|
}>;
|
|
1047
1047
|
}, z.core.$strip>], "kind">;
|
|
@@ -1058,9 +1058,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1058
1058
|
}, z.core.$strip>, z.ZodObject<{
|
|
1059
1059
|
kind: z.ZodLiteral<"claim">;
|
|
1060
1060
|
key: z.ZodEnum<{
|
|
1061
|
-
sub: "sub";
|
|
1062
1061
|
ext_subject: "ext_subject";
|
|
1063
1062
|
ext_email: "ext_email";
|
|
1063
|
+
sub: "sub";
|
|
1064
1064
|
org: "org";
|
|
1065
1065
|
}>;
|
|
1066
1066
|
}, z.core.$strip>], "kind">;
|
|
@@ -1085,9 +1085,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1085
1085
|
}, z.core.$strip>, z.ZodObject<{
|
|
1086
1086
|
kind: z.ZodLiteral<"claim">;
|
|
1087
1087
|
key: z.ZodEnum<{
|
|
1088
|
-
sub: "sub";
|
|
1089
1088
|
ext_subject: "ext_subject";
|
|
1090
1089
|
ext_email: "ext_email";
|
|
1090
|
+
sub: "sub";
|
|
1091
1091
|
org: "org";
|
|
1092
1092
|
}>;
|
|
1093
1093
|
}, z.core.$strip>], "kind">;
|
|
@@ -1107,9 +1107,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1107
1107
|
}, z.core.$strip>, z.ZodObject<{
|
|
1108
1108
|
kind: z.ZodLiteral<"claim">;
|
|
1109
1109
|
key: z.ZodEnum<{
|
|
1110
|
-
sub: "sub";
|
|
1111
1110
|
ext_subject: "ext_subject";
|
|
1112
1111
|
ext_email: "ext_email";
|
|
1112
|
+
sub: "sub";
|
|
1113
1113
|
org: "org";
|
|
1114
1114
|
}>;
|
|
1115
1115
|
}, z.core.$strip>], "kind">;
|
|
@@ -1129,9 +1129,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1129
1129
|
}, z.core.$strip>, z.ZodObject<{
|
|
1130
1130
|
kind: z.ZodLiteral<"claim">;
|
|
1131
1131
|
key: z.ZodEnum<{
|
|
1132
|
-
sub: "sub";
|
|
1133
1132
|
ext_subject: "ext_subject";
|
|
1134
1133
|
ext_email: "ext_email";
|
|
1134
|
+
sub: "sub";
|
|
1135
1135
|
org: "org";
|
|
1136
1136
|
}>;
|
|
1137
1137
|
}, z.core.$strip>], "kind">;
|
|
@@ -1149,9 +1149,9 @@ declare const compiledOperationSchema: z.ZodObject<{
|
|
|
1149
1149
|
}, z.core.$strip>, z.ZodObject<{
|
|
1150
1150
|
kind: z.ZodLiteral<"claim">;
|
|
1151
1151
|
key: z.ZodEnum<{
|
|
1152
|
-
sub: "sub";
|
|
1153
1152
|
ext_subject: "ext_subject";
|
|
1154
1153
|
ext_email: "ext_email";
|
|
1154
|
+
sub: "sub";
|
|
1155
1155
|
org: "org";
|
|
1156
1156
|
}>;
|
|
1157
1157
|
}, z.core.$strip>], "kind">;
|
|
@@ -1170,8 +1170,8 @@ type CompiledOperation = z.infer<typeof compiledOperationSchema>;
|
|
|
1170
1170
|
declare const resolvedSourceIrSchema: z.ZodObject<{
|
|
1171
1171
|
name: z.ZodString;
|
|
1172
1172
|
kind: z.ZodEnum<{
|
|
1173
|
-
manual: "manual";
|
|
1174
1173
|
prefetch: "prefetch";
|
|
1174
|
+
manual: "manual";
|
|
1175
1175
|
etl: "etl";
|
|
1176
1176
|
}>;
|
|
1177
1177
|
table: z.ZodString;
|
|
@@ -1215,8 +1215,8 @@ declare const resolvedMetaIrSchema: z.ZodObject<{
|
|
|
1215
1215
|
sources: z.ZodArray<z.ZodObject<{
|
|
1216
1216
|
name: z.ZodString;
|
|
1217
1217
|
kind: z.ZodEnum<{
|
|
1218
|
-
manual: "manual";
|
|
1219
1218
|
prefetch: "prefetch";
|
|
1219
|
+
manual: "manual";
|
|
1220
1220
|
etl: "etl";
|
|
1221
1221
|
}>;
|
|
1222
1222
|
table: z.ZodString;
|
|
@@ -1294,13 +1294,13 @@ declare const tableMetaIrSchema: z.ZodObject<{
|
|
|
1294
1294
|
bigint: "bigint";
|
|
1295
1295
|
boolean: "boolean";
|
|
1296
1296
|
date: "date";
|
|
1297
|
-
text: "text";
|
|
1298
|
-
timestamptz: "timestamptz";
|
|
1299
|
-
jsonb: "jsonb";
|
|
1300
1297
|
uuid: "uuid";
|
|
1298
|
+
text: "text";
|
|
1301
1299
|
integer: "integer";
|
|
1302
1300
|
numeric: "numeric";
|
|
1303
1301
|
double: "double";
|
|
1302
|
+
timestamptz: "timestamptz";
|
|
1303
|
+
jsonb: "jsonb";
|
|
1304
1304
|
}>, z.ZodObject<{
|
|
1305
1305
|
enum: z.ZodString;
|
|
1306
1306
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1338,8 +1338,8 @@ declare const tableMetaIrSchema: z.ZodObject<{
|
|
|
1338
1338
|
sources: z.ZodArray<z.ZodObject<{
|
|
1339
1339
|
name: z.ZodString;
|
|
1340
1340
|
kind: z.ZodEnum<{
|
|
1341
|
-
manual: "manual";
|
|
1342
1341
|
prefetch: "prefetch";
|
|
1342
|
+
manual: "manual";
|
|
1343
1343
|
etl: "etl";
|
|
1344
1344
|
}>;
|
|
1345
1345
|
table: z.ZodString;
|
|
@@ -1428,13 +1428,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1428
1428
|
bigint: "bigint";
|
|
1429
1429
|
boolean: "boolean";
|
|
1430
1430
|
date: "date";
|
|
1431
|
-
text: "text";
|
|
1432
|
-
timestamptz: "timestamptz";
|
|
1433
|
-
jsonb: "jsonb";
|
|
1434
1431
|
uuid: "uuid";
|
|
1432
|
+
text: "text";
|
|
1435
1433
|
integer: "integer";
|
|
1436
1434
|
numeric: "numeric";
|
|
1437
1435
|
double: "double";
|
|
1436
|
+
timestamptz: "timestamptz";
|
|
1437
|
+
jsonb: "jsonb";
|
|
1438
1438
|
}>, z.ZodObject<{
|
|
1439
1439
|
enum: z.ZodString;
|
|
1440
1440
|
values: z.ZodArray<z.ZodString>;
|
|
@@ -1472,8 +1472,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1472
1472
|
sources: z.ZodArray<z.ZodObject<{
|
|
1473
1473
|
name: z.ZodString;
|
|
1474
1474
|
kind: z.ZodEnum<{
|
|
1475
|
-
manual: "manual";
|
|
1476
1475
|
prefetch: "prefetch";
|
|
1476
|
+
manual: "manual";
|
|
1477
1477
|
etl: "etl";
|
|
1478
1478
|
}>;
|
|
1479
1479
|
table: z.ZodString;
|
|
@@ -1551,12 +1551,12 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1551
1551
|
bigint: "bigint";
|
|
1552
1552
|
boolean: "boolean";
|
|
1553
1553
|
date: "date";
|
|
1554
|
-
text: "text";
|
|
1555
|
-
timestamptz: "timestamptz";
|
|
1556
1554
|
uuid: "uuid";
|
|
1555
|
+
text: "text";
|
|
1557
1556
|
integer: "integer";
|
|
1558
1557
|
numeric: "numeric";
|
|
1559
1558
|
double: "double";
|
|
1559
|
+
timestamptz: "timestamptz";
|
|
1560
1560
|
}>;
|
|
1561
1561
|
nullable: z.ZodBoolean;
|
|
1562
1562
|
}, z.core.$strip>>;
|
|
@@ -1568,8 +1568,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1568
1568
|
name: z.ZodString;
|
|
1569
1569
|
opHash: z.ZodString;
|
|
1570
1570
|
kind: z.ZodEnum<{
|
|
1571
|
-
query: "query";
|
|
1572
1571
|
mutation: "mutation";
|
|
1572
|
+
query: "query";
|
|
1573
1573
|
}>;
|
|
1574
1574
|
requires: z.ZodNullable<z.ZodObject<{
|
|
1575
1575
|
capability: z.ZodOptional<z.ZodString>;
|
|
@@ -1583,13 +1583,13 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1583
1583
|
bigint: "bigint";
|
|
1584
1584
|
boolean: "boolean";
|
|
1585
1585
|
date: "date";
|
|
1586
|
-
text: "text";
|
|
1587
|
-
timestamptz: "timestamptz";
|
|
1588
|
-
jsonb: "jsonb";
|
|
1589
1586
|
uuid: "uuid";
|
|
1587
|
+
text: "text";
|
|
1590
1588
|
integer: "integer";
|
|
1591
1589
|
numeric: "numeric";
|
|
1592
1590
|
double: "double";
|
|
1591
|
+
timestamptz: "timestamptz";
|
|
1592
|
+
jsonb: "jsonb";
|
|
1593
1593
|
}>;
|
|
1594
1594
|
}, z.core.$strip>, z.ZodObject<{
|
|
1595
1595
|
kind: z.ZodLiteral<"enum">;
|
|
@@ -1667,9 +1667,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1667
1667
|
}, z.core.$strip>, z.ZodObject<{
|
|
1668
1668
|
kind: z.ZodLiteral<"claim">;
|
|
1669
1669
|
key: z.ZodEnum<{
|
|
1670
|
-
sub: "sub";
|
|
1671
1670
|
ext_subject: "ext_subject";
|
|
1672
1671
|
ext_email: "ext_email";
|
|
1672
|
+
sub: "sub";
|
|
1673
1673
|
org: "org";
|
|
1674
1674
|
}>;
|
|
1675
1675
|
}, z.core.$strip>], "kind">;
|
|
@@ -1683,9 +1683,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1683
1683
|
}, z.core.$strip>, z.ZodObject<{
|
|
1684
1684
|
kind: z.ZodLiteral<"claim">;
|
|
1685
1685
|
key: z.ZodEnum<{
|
|
1686
|
-
sub: "sub";
|
|
1687
1686
|
ext_subject: "ext_subject";
|
|
1688
1687
|
ext_email: "ext_email";
|
|
1688
|
+
sub: "sub";
|
|
1689
1689
|
org: "org";
|
|
1690
1690
|
}>;
|
|
1691
1691
|
}, z.core.$strip>], "kind">;
|
|
@@ -1707,9 +1707,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1707
1707
|
}, z.core.$strip>, z.ZodObject<{
|
|
1708
1708
|
kind: z.ZodLiteral<"claim">;
|
|
1709
1709
|
key: z.ZodEnum<{
|
|
1710
|
-
sub: "sub";
|
|
1711
1710
|
ext_subject: "ext_subject";
|
|
1712
1711
|
ext_email: "ext_email";
|
|
1712
|
+
sub: "sub";
|
|
1713
1713
|
org: "org";
|
|
1714
1714
|
}>;
|
|
1715
1715
|
}, z.core.$strip>], "kind">;
|
|
@@ -1732,9 +1732,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1732
1732
|
}, z.core.$strip>, z.ZodObject<{
|
|
1733
1733
|
kind: z.ZodLiteral<"claim">;
|
|
1734
1734
|
key: z.ZodEnum<{
|
|
1735
|
-
sub: "sub";
|
|
1736
1735
|
ext_subject: "ext_subject";
|
|
1737
1736
|
ext_email: "ext_email";
|
|
1737
|
+
sub: "sub";
|
|
1738
1738
|
org: "org";
|
|
1739
1739
|
}>;
|
|
1740
1740
|
}, z.core.$strip>], "kind">;
|
|
@@ -1748,9 +1748,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1748
1748
|
}, z.core.$strip>, z.ZodObject<{
|
|
1749
1749
|
kind: z.ZodLiteral<"claim">;
|
|
1750
1750
|
key: z.ZodEnum<{
|
|
1751
|
-
sub: "sub";
|
|
1752
1751
|
ext_subject: "ext_subject";
|
|
1753
1752
|
ext_email: "ext_email";
|
|
1753
|
+
sub: "sub";
|
|
1754
1754
|
org: "org";
|
|
1755
1755
|
}>;
|
|
1756
1756
|
}, z.core.$strip>], "kind">;
|
|
@@ -1816,10 +1816,10 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1816
1816
|
kind: z.ZodLiteral<"mutation">;
|
|
1817
1817
|
op: z.ZodEnum<{
|
|
1818
1818
|
insert: "insert";
|
|
1819
|
-
update: "update";
|
|
1820
|
-
delete: "delete";
|
|
1821
1819
|
insertOne: "insertOne";
|
|
1820
|
+
update: "update";
|
|
1822
1821
|
updateByPk: "updateByPk";
|
|
1822
|
+
delete: "delete";
|
|
1823
1823
|
deleteByPk: "deleteByPk";
|
|
1824
1824
|
cowOverride: "cowOverride";
|
|
1825
1825
|
cowRevert: "cowRevert";
|
|
@@ -1828,8 +1828,8 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1828
1828
|
resolvedAction: z.ZodOptional<z.ZodEnum<{
|
|
1829
1829
|
insert: "insert";
|
|
1830
1830
|
update: "update";
|
|
1831
|
-
revert: "revert";
|
|
1832
1831
|
delete: "delete";
|
|
1832
|
+
revert: "revert";
|
|
1833
1833
|
}>>;
|
|
1834
1834
|
revertColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1835
1835
|
writeback: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1859,9 +1859,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1859
1859
|
}, z.core.$strip>, z.ZodObject<{
|
|
1860
1860
|
kind: z.ZodLiteral<"claim">;
|
|
1861
1861
|
key: z.ZodEnum<{
|
|
1862
|
-
sub: "sub";
|
|
1863
1862
|
ext_subject: "ext_subject";
|
|
1864
1863
|
ext_email: "ext_email";
|
|
1864
|
+
sub: "sub";
|
|
1865
1865
|
org: "org";
|
|
1866
1866
|
}>;
|
|
1867
1867
|
}, z.core.$strip>], "kind">;
|
|
@@ -1878,9 +1878,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1878
1878
|
}, z.core.$strip>, z.ZodObject<{
|
|
1879
1879
|
kind: z.ZodLiteral<"claim">;
|
|
1880
1880
|
key: z.ZodEnum<{
|
|
1881
|
-
sub: "sub";
|
|
1882
1881
|
ext_subject: "ext_subject";
|
|
1883
1882
|
ext_email: "ext_email";
|
|
1883
|
+
sub: "sub";
|
|
1884
1884
|
org: "org";
|
|
1885
1885
|
}>;
|
|
1886
1886
|
}, z.core.$strip>], "kind">;
|
|
@@ -1905,9 +1905,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1905
1905
|
}, z.core.$strip>, z.ZodObject<{
|
|
1906
1906
|
kind: z.ZodLiteral<"claim">;
|
|
1907
1907
|
key: z.ZodEnum<{
|
|
1908
|
-
sub: "sub";
|
|
1909
1908
|
ext_subject: "ext_subject";
|
|
1910
1909
|
ext_email: "ext_email";
|
|
1910
|
+
sub: "sub";
|
|
1911
1911
|
org: "org";
|
|
1912
1912
|
}>;
|
|
1913
1913
|
}, z.core.$strip>], "kind">;
|
|
@@ -1927,9 +1927,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1927
1927
|
}, z.core.$strip>, z.ZodObject<{
|
|
1928
1928
|
kind: z.ZodLiteral<"claim">;
|
|
1929
1929
|
key: z.ZodEnum<{
|
|
1930
|
-
sub: "sub";
|
|
1931
1930
|
ext_subject: "ext_subject";
|
|
1932
1931
|
ext_email: "ext_email";
|
|
1932
|
+
sub: "sub";
|
|
1933
1933
|
org: "org";
|
|
1934
1934
|
}>;
|
|
1935
1935
|
}, z.core.$strip>], "kind">;
|
|
@@ -1949,9 +1949,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1949
1949
|
}, z.core.$strip>, z.ZodObject<{
|
|
1950
1950
|
kind: z.ZodLiteral<"claim">;
|
|
1951
1951
|
key: z.ZodEnum<{
|
|
1952
|
-
sub: "sub";
|
|
1953
1952
|
ext_subject: "ext_subject";
|
|
1954
1953
|
ext_email: "ext_email";
|
|
1954
|
+
sub: "sub";
|
|
1955
1955
|
org: "org";
|
|
1956
1956
|
}>;
|
|
1957
1957
|
}, z.core.$strip>], "kind">;
|
|
@@ -1969,9 +1969,9 @@ declare const compiledArtifactSchema: z.ZodObject<{
|
|
|
1969
1969
|
}, z.core.$strip>, z.ZodObject<{
|
|
1970
1970
|
kind: z.ZodLiteral<"claim">;
|
|
1971
1971
|
key: z.ZodEnum<{
|
|
1972
|
-
sub: "sub";
|
|
1973
1972
|
ext_subject: "ext_subject";
|
|
1974
1973
|
ext_email: "ext_email";
|
|
1974
|
+
sub: "sub";
|
|
1975
1975
|
org: "org";
|
|
1976
1976
|
}>;
|
|
1977
1977
|
}, z.core.$strip>], "kind">;
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"validate": "seq-studio orm validate",
|
|
7
|
+
"lint": "seq-studio orm validate",
|
|
7
8
|
"generate": "seq-studio orm generate",
|
|
8
9
|
"diff": "seq-studio orm diff",
|
|
9
10
|
"apply": "seq-studio orm apply",
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
"@graphql-codegen/typed-document-node": "^5.1.1",
|
|
21
22
|
"@graphql-codegen/typescript": "^4.1.6",
|
|
22
23
|
"@graphql-codegen/typescript-operations": "^4.6.1",
|
|
24
|
+
"@sequenceholdings/studio-cli": "^0.5.1",
|
|
23
25
|
"typescript": "^5.6.0"
|
|
24
26
|
},
|
|
25
27
|
"engines": {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
defineEnum, defineTable, t, toMany, toOne, toPlatformUser, type SeqTable,
|
|
3
|
+
} from '@sequenceholdings/orm/authoring'
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Tables are TypeScript, but they SERIALIZE to data — the server never runs
|
|
@@ -17,7 +19,9 @@ import { defineEnum, defineTable, t, toMany, toOne, toPlatformUser } from '@sequ
|
|
|
17
19
|
*/
|
|
18
20
|
export const dealStatus = defineEnum('deal_status', ['open', 'won', 'lost'])
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
// Tables that link to each other need an explicit `SeqTable` annotation:
|
|
23
|
+
// TypeScript cannot infer a type through a mutually recursive `() => table`.
|
|
24
|
+
export const deals: SeqTable = defineTable(
|
|
21
25
|
'deals',
|
|
22
26
|
{
|
|
23
27
|
id: t.uuid().primaryKey().default('gen_random_uuid()'),
|
|
@@ -48,7 +52,7 @@ export const deals = defineTable(
|
|
|
48
52
|
},
|
|
49
53
|
)
|
|
50
54
|
|
|
51
|
-
export const comments = defineTable(
|
|
55
|
+
export const comments: SeqTable = defineTable(
|
|
52
56
|
'comments',
|
|
53
57
|
{
|
|
54
58
|
id: t.uuid().primaryKey().default('gen_random_uuid()'),
|