callman-mcp 0.4.0 → 0.5.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/CHANGELOG.md +37 -27
- package/README.md +33 -11
- package/dist/client/api.d.ts +83 -15
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +106 -21
- package/dist/client/api.js.map +1 -1
- package/dist/client/errors.d.ts.map +1 -1
- package/dist/client/errors.js +46 -11
- package/dist/client/errors.js.map +1 -1
- package/dist/client/types.d.ts +231 -14
- package/dist/client/types.d.ts.map +1 -1
- package/dist/domain/diagram/build.d.ts +17 -17
- package/dist/domain/diagram/build.d.ts.map +1 -1
- package/dist/domain/diagram/build.js +3 -3
- package/dist/domain/diagram/build.js.map +1 -1
- package/dist/domain/diagram/layout.d.ts +1 -3
- package/dist/domain/diagram/layout.d.ts.map +1 -1
- package/dist/domain/diagram/layout.js +3 -9
- package/dist/domain/diagram/layout.js.map +1 -1
- package/dist/domain/diagram/patch.d.ts +22 -723
- package/dist/domain/diagram/patch.d.ts.map +1 -1
- package/dist/domain/diagram/patch.js +0 -53
- package/dist/domain/diagram/patch.js.map +1 -1
- package/dist/domain/diagram/summarize.d.ts +0 -1
- package/dist/domain/diagram/summarize.d.ts.map +1 -1
- package/dist/domain/diagram/summarize.js +0 -1
- package/dist/domain/diagram/summarize.js.map +1 -1
- package/dist/domain/uiTest/compose.d.ts +55 -0
- package/dist/domain/uiTest/compose.d.ts.map +1 -0
- package/dist/domain/uiTest/compose.js +228 -0
- package/dist/domain/uiTest/compose.js.map +1 -0
- package/dist/domain/uiTest/summarize.d.ts +273 -0
- package/dist/domain/uiTest/summarize.d.ts.map +1 -0
- package/dist/domain/uiTest/summarize.js +145 -0
- package/dist/domain/uiTest/summarize.js.map +1 -0
- package/dist/lib/truncate.d.ts +1 -1
- package/dist/lib/truncate.d.ts.map +1 -1
- package/dist/lib/truncate.js.map +1 -1
- package/dist/resources/docs/diagramSchema.d.ts +1 -1
- package/dist/resources/docs/diagramSchema.d.ts.map +1 -1
- package/dist/resources/docs/diagramSchema.js +1 -33
- package/dist/resources/docs/diagramSchema.js.map +1 -1
- package/dist/resources/docs/overview.d.ts +1 -1
- package/dist/resources/docs/overview.d.ts.map +1 -1
- package/dist/resources/docs/overview.js +13 -7
- package/dist/resources/docs/overview.js.map +1 -1
- package/dist/resources/docs/uiTests.d.ts +2 -0
- package/dist/resources/docs/uiTests.d.ts.map +1 -0
- package/dist/resources/docs/uiTests.js +101 -0
- package/dist/resources/docs/uiTests.js.map +1 -0
- package/dist/resources/generated/aiPacks.d.ts +1 -1
- package/dist/resources/generated/aiPacks.js +2 -2
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +13 -2
- package/dist/resources/index.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/tools/catalog.d.ts +1 -1
- package/dist/tools/catalog.d.ts.map +1 -1
- package/dist/tools/catalog.js +31 -5
- package/dist/tools/catalog.js.map +1 -1
- package/dist/tools/diagrams.d.ts.map +1 -1
- package/dist/tools/diagrams.js +42 -328
- package/dist/tools/diagrams.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/lookups.d.ts +19 -5
- package/dist/tools/lookups.d.ts.map +1 -1
- package/dist/tools/lookups.js +77 -41
- package/dist/tools/lookups.js.map +1 -1
- package/dist/tools/shared.d.ts +5 -0
- package/dist/tools/shared.d.ts.map +1 -1
- package/dist/tools/shared.js +10 -0
- package/dist/tools/shared.js.map +1 -1
- package/dist/tools/uiTestAdmin.d.ts +4 -0
- package/dist/tools/uiTestAdmin.d.ts.map +1 -0
- package/dist/tools/uiTestAdmin.js +509 -0
- package/dist/tools/uiTestAdmin.js.map +1 -0
- package/dist/tools/uiTestRuns.d.ts +24 -0
- package/dist/tools/uiTestRuns.d.ts.map +1 -0
- package/dist/tools/uiTestRuns.js +367 -0
- package/dist/tools/uiTestRuns.js.map +1 -0
- package/dist/tools/uiTestShared.d.ts +236 -0
- package/dist/tools/uiTestShared.d.ts.map +1 -0
- package/dist/tools/uiTestShared.js +187 -0
- package/dist/tools/uiTestShared.js.map +1 -0
- package/dist/tools/uiTests.d.ts +4 -0
- package/dist/tools/uiTests.d.ts.map +1 -0
- package/dist/tools/uiTests.js +572 -0
- package/dist/tools/uiTests.js.map +1 -0
- package/dist-cjs/client/api.js +106 -21
- package/dist-cjs/client/errors.js +46 -11
- package/dist-cjs/domain/diagram/build.js +3 -3
- package/dist-cjs/domain/diagram/layout.js +3 -10
- package/dist-cjs/domain/diagram/patch.js +1 -54
- package/dist-cjs/domain/diagram/summarize.js +0 -1
- package/dist-cjs/domain/uiTest/compose.js +242 -0
- package/dist-cjs/domain/uiTest/summarize.js +155 -0
- package/dist-cjs/resources/docs/diagramSchema.js +1 -33
- package/dist-cjs/resources/docs/overview.js +13 -7
- package/dist-cjs/resources/docs/uiTests.js +103 -0
- package/dist-cjs/resources/generated/aiPacks.js +2 -2
- package/dist-cjs/resources/index.js +11 -0
- package/dist-cjs/server.js +2 -2
- package/dist-cjs/tools/catalog.js +31 -5
- package/dist-cjs/tools/diagrams.js +37 -323
- package/dist-cjs/tools/index.js +6 -0
- package/dist-cjs/tools/lookups.js +83 -46
- package/dist-cjs/tools/shared.js +12 -1
- package/dist-cjs/tools/uiTestAdmin.js +512 -0
- package/dist-cjs/tools/uiTestRuns.js +372 -0
- package/dist-cjs/tools/uiTestShared.js +202 -0
- package/dist-cjs/tools/uiTests.js +575 -0
- package/package.json +3 -3
|
@@ -1,187 +1,5 @@
|
|
|
1
1
|
import { type DiagramDocument, type LayoutDirection } from "callman-core";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
export declare const dbColumnInputSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodOptional<z.ZodString>;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
dataType: z.ZodOptional<z.ZodString>;
|
|
7
|
-
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
unique: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
autoIncrement: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
}, "strict", z.ZodTypeAny, {
|
|
14
|
-
name: string;
|
|
15
|
-
id?: string | undefined;
|
|
16
|
-
unique?: boolean | undefined;
|
|
17
|
-
nullable?: boolean | undefined;
|
|
18
|
-
dataType?: string | undefined;
|
|
19
|
-
primaryKey?: boolean | undefined;
|
|
20
|
-
defaultValue?: string | null | undefined;
|
|
21
|
-
autoIncrement?: boolean | undefined;
|
|
22
|
-
comment?: string | null | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
name: string;
|
|
25
|
-
id?: string | undefined;
|
|
26
|
-
unique?: boolean | undefined;
|
|
27
|
-
nullable?: boolean | undefined;
|
|
28
|
-
dataType?: string | undefined;
|
|
29
|
-
primaryKey?: boolean | undefined;
|
|
30
|
-
defaultValue?: string | null | undefined;
|
|
31
|
-
autoIncrement?: boolean | undefined;
|
|
32
|
-
comment?: string | null | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
export declare const dbTableInputSchema: z.ZodObject<{
|
|
35
|
-
id: z.ZodOptional<z.ZodString>;
|
|
36
|
-
name: z.ZodString;
|
|
37
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
38
|
-
kind: z.ZodOptional<z.ZodEnum<["table", "view", "collection"]>>;
|
|
39
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
-
id: z.ZodOptional<z.ZodString>;
|
|
41
|
-
name: z.ZodString;
|
|
42
|
-
dataType: z.ZodOptional<z.ZodString>;
|
|
43
|
-
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
-
unique: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
-
autoIncrement: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
}, "strict", z.ZodTypeAny, {
|
|
50
|
-
name: string;
|
|
51
|
-
id?: string | undefined;
|
|
52
|
-
unique?: boolean | undefined;
|
|
53
|
-
nullable?: boolean | undefined;
|
|
54
|
-
dataType?: string | undefined;
|
|
55
|
-
primaryKey?: boolean | undefined;
|
|
56
|
-
defaultValue?: string | null | undefined;
|
|
57
|
-
autoIncrement?: boolean | undefined;
|
|
58
|
-
comment?: string | null | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
name: string;
|
|
61
|
-
id?: string | undefined;
|
|
62
|
-
unique?: boolean | undefined;
|
|
63
|
-
nullable?: boolean | undefined;
|
|
64
|
-
dataType?: string | undefined;
|
|
65
|
-
primaryKey?: boolean | undefined;
|
|
66
|
-
defaultValue?: string | null | undefined;
|
|
67
|
-
autoIncrement?: boolean | undefined;
|
|
68
|
-
comment?: string | null | undefined;
|
|
69
|
-
}>, "many">>;
|
|
70
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, "strict", z.ZodTypeAny, {
|
|
72
|
-
name: string;
|
|
73
|
-
id?: string | undefined;
|
|
74
|
-
schema?: string | undefined;
|
|
75
|
-
kind?: "collection" | "table" | "view" | undefined;
|
|
76
|
-
columns?: {
|
|
77
|
-
name: string;
|
|
78
|
-
id?: string | undefined;
|
|
79
|
-
unique?: boolean | undefined;
|
|
80
|
-
nullable?: boolean | undefined;
|
|
81
|
-
dataType?: string | undefined;
|
|
82
|
-
primaryKey?: boolean | undefined;
|
|
83
|
-
defaultValue?: string | null | undefined;
|
|
84
|
-
autoIncrement?: boolean | undefined;
|
|
85
|
-
comment?: string | null | undefined;
|
|
86
|
-
}[] | undefined;
|
|
87
|
-
comment?: string | undefined;
|
|
88
|
-
}, {
|
|
89
|
-
name: string;
|
|
90
|
-
id?: string | undefined;
|
|
91
|
-
schema?: string | undefined;
|
|
92
|
-
kind?: "collection" | "table" | "view" | undefined;
|
|
93
|
-
columns?: {
|
|
94
|
-
name: string;
|
|
95
|
-
id?: string | undefined;
|
|
96
|
-
unique?: boolean | undefined;
|
|
97
|
-
nullable?: boolean | undefined;
|
|
98
|
-
dataType?: string | undefined;
|
|
99
|
-
primaryKey?: boolean | undefined;
|
|
100
|
-
defaultValue?: string | null | undefined;
|
|
101
|
-
autoIncrement?: boolean | undefined;
|
|
102
|
-
comment?: string | null | undefined;
|
|
103
|
-
}[] | undefined;
|
|
104
|
-
comment?: string | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
export declare const dbEndSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
107
|
-
table: z.ZodString;
|
|
108
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
109
|
-
column: z.ZodOptional<z.ZodString>;
|
|
110
|
-
}, "strict", z.ZodTypeAny, {
|
|
111
|
-
table: string;
|
|
112
|
-
columns?: string[] | undefined;
|
|
113
|
-
column?: string | undefined;
|
|
114
|
-
}, {
|
|
115
|
-
table: string;
|
|
116
|
-
columns?: string[] | undefined;
|
|
117
|
-
column?: string | undefined;
|
|
118
|
-
}>]>;
|
|
119
|
-
export declare const dbCardinalitySchema: z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>;
|
|
120
|
-
export declare const dbRelationshipInputSchema: z.ZodObject<{
|
|
121
|
-
id: z.ZodOptional<z.ZodString>;
|
|
122
|
-
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
123
|
-
table: z.ZodString;
|
|
124
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
125
|
-
column: z.ZodOptional<z.ZodString>;
|
|
126
|
-
}, "strict", z.ZodTypeAny, {
|
|
127
|
-
table: string;
|
|
128
|
-
columns?: string[] | undefined;
|
|
129
|
-
column?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
table: string;
|
|
132
|
-
columns?: string[] | undefined;
|
|
133
|
-
column?: string | undefined;
|
|
134
|
-
}>]>;
|
|
135
|
-
target: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
136
|
-
table: z.ZodString;
|
|
137
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
138
|
-
column: z.ZodOptional<z.ZodString>;
|
|
139
|
-
}, "strict", z.ZodTypeAny, {
|
|
140
|
-
table: string;
|
|
141
|
-
columns?: string[] | undefined;
|
|
142
|
-
column?: string | undefined;
|
|
143
|
-
}, {
|
|
144
|
-
table: string;
|
|
145
|
-
columns?: string[] | undefined;
|
|
146
|
-
column?: string | undefined;
|
|
147
|
-
}>]>;
|
|
148
|
-
cardinality: z.ZodOptional<z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>>;
|
|
149
|
-
kind: z.ZodOptional<z.ZodEnum<["foreignKey", "manual"]>>;
|
|
150
|
-
name: z.ZodOptional<z.ZodString>;
|
|
151
|
-
label: z.ZodOptional<z.ZodString>;
|
|
152
|
-
}, "strict", z.ZodTypeAny, {
|
|
153
|
-
source: string | {
|
|
154
|
-
table: string;
|
|
155
|
-
columns?: string[] | undefined;
|
|
156
|
-
column?: string | undefined;
|
|
157
|
-
};
|
|
158
|
-
target: string | {
|
|
159
|
-
table: string;
|
|
160
|
-
columns?: string[] | undefined;
|
|
161
|
-
column?: string | undefined;
|
|
162
|
-
};
|
|
163
|
-
id?: string | undefined;
|
|
164
|
-
name?: string | undefined;
|
|
165
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
166
|
-
label?: string | undefined;
|
|
167
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
168
|
-
}, {
|
|
169
|
-
source: string | {
|
|
170
|
-
table: string;
|
|
171
|
-
columns?: string[] | undefined;
|
|
172
|
-
column?: string | undefined;
|
|
173
|
-
};
|
|
174
|
-
target: string | {
|
|
175
|
-
table: string;
|
|
176
|
-
columns?: string[] | undefined;
|
|
177
|
-
column?: string | undefined;
|
|
178
|
-
};
|
|
179
|
-
id?: string | undefined;
|
|
180
|
-
name?: string | undefined;
|
|
181
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
182
|
-
label?: string | undefined;
|
|
183
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
184
|
-
}>;
|
|
185
3
|
export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
186
4
|
op: z.ZodLiteral<"addNode">;
|
|
187
5
|
node: z.ZodObject<{
|
|
@@ -911,8 +729,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
911
729
|
token: string;
|
|
912
730
|
}>]>>;
|
|
913
731
|
routing: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved", "smart"]>>;
|
|
914
|
-
markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"
|
|
915
|
-
markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"
|
|
732
|
+
markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
|
|
733
|
+
markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
|
|
916
734
|
sourceSide: z.ZodOptional<z.ZodEnum<["top", "right", "bottom", "left"]>>;
|
|
917
735
|
targetSide: z.ZodOptional<z.ZodEnum<["top", "right", "bottom", "left"]>>;
|
|
918
736
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -929,8 +747,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
929
747
|
token: string;
|
|
930
748
|
} | undefined;
|
|
931
749
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
932
|
-
markerEnd?: "none" | "
|
|
933
|
-
markerStart?: "none" | "
|
|
750
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
751
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
934
752
|
sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
935
753
|
targetSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
936
754
|
}, {
|
|
@@ -946,8 +764,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
946
764
|
token: string;
|
|
947
765
|
} | undefined;
|
|
948
766
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
949
|
-
markerEnd?: "none" | "
|
|
950
|
-
markerStart?: "none" | "
|
|
767
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
768
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
951
769
|
sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
952
770
|
targetSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
953
771
|
}>;
|
|
@@ -966,8 +784,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
966
784
|
token: string;
|
|
967
785
|
} | undefined;
|
|
968
786
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
969
|
-
markerEnd?: "none" | "
|
|
970
|
-
markerStart?: "none" | "
|
|
787
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
788
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
971
789
|
sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
972
790
|
targetSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
973
791
|
};
|
|
@@ -986,8 +804,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
986
804
|
token: string;
|
|
987
805
|
} | undefined;
|
|
988
806
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
989
|
-
markerEnd?: "none" | "
|
|
990
|
-
markerStart?: "none" | "
|
|
807
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
808
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
991
809
|
sourceSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
992
810
|
targetSide?: "left" | "right" | "top" | "bottom" | undefined;
|
|
993
811
|
};
|
|
@@ -1013,8 +831,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1013
831
|
token: string;
|
|
1014
832
|
}>]>>>;
|
|
1015
833
|
routing: z.ZodOptional<z.ZodEnum<["orthogonal", "straight", "curved", "smart"]>>;
|
|
1016
|
-
markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"
|
|
1017
|
-
markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"
|
|
834
|
+
markerEnd: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
|
|
835
|
+
markerStart: z.ZodOptional<z.ZodEnum<["none", "classic", "classicThin", "open", "block", "diamond", "oval"]>>;
|
|
1018
836
|
sourceSide: z.ZodOptional<z.ZodNullable<z.ZodEnum<["top", "right", "bottom", "left"]>>>;
|
|
1019
837
|
targetSide: z.ZodOptional<z.ZodNullable<z.ZodEnum<["top", "right", "bottom", "left"]>>>;
|
|
1020
838
|
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -1030,8 +848,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1030
848
|
token: string;
|
|
1031
849
|
} | null | undefined;
|
|
1032
850
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
1033
|
-
markerEnd?: "none" | "
|
|
1034
|
-
markerStart?: "none" | "
|
|
851
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
852
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
1035
853
|
sourceSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1036
854
|
targetSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1037
855
|
}, {
|
|
@@ -1046,8 +864,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1046
864
|
token: string;
|
|
1047
865
|
} | null | undefined;
|
|
1048
866
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
1049
|
-
markerEnd?: "none" | "
|
|
1050
|
-
markerStart?: "none" | "
|
|
867
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
868
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
1051
869
|
sourceSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1052
870
|
targetSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1053
871
|
}>;
|
|
@@ -1066,8 +884,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1066
884
|
token: string;
|
|
1067
885
|
} | null | undefined;
|
|
1068
886
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
1069
|
-
markerEnd?: "none" | "
|
|
1070
|
-
markerStart?: "none" | "
|
|
887
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
888
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
1071
889
|
sourceSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1072
890
|
targetSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1073
891
|
};
|
|
@@ -1086,8 +904,8 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1086
904
|
token: string;
|
|
1087
905
|
} | null | undefined;
|
|
1088
906
|
routing?: "orthogonal" | "straight" | "curved" | "smart" | undefined;
|
|
1089
|
-
markerEnd?: "none" | "
|
|
1090
|
-
markerStart?: "none" | "
|
|
907
|
+
markerEnd?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
908
|
+
markerStart?: "none" | "classic" | "classicThin" | "open" | "block" | "diamond" | "oval" | undefined;
|
|
1091
909
|
sourceSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1092
910
|
targetSide?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1093
911
|
};
|
|
@@ -1208,12 +1026,12 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1208
1026
|
index: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"front">, z.ZodLiteral<"back">]>;
|
|
1209
1027
|
}, "strict", z.ZodTypeAny, {
|
|
1210
1028
|
id: string;
|
|
1211
|
-
op: "reorder";
|
|
1212
1029
|
index: number | "front" | "back";
|
|
1030
|
+
op: "reorder";
|
|
1213
1031
|
}, {
|
|
1214
1032
|
id: string;
|
|
1215
|
-
op: "reorder";
|
|
1216
1033
|
index: number | "front" | "back";
|
|
1034
|
+
op: "reorder";
|
|
1217
1035
|
}>, z.ZodObject<{
|
|
1218
1036
|
op: z.ZodLiteral<"setCanvas">;
|
|
1219
1037
|
canvas: z.ZodObject<{
|
|
@@ -1282,525 +1100,6 @@ export declare const diagramPatchOpSchema: z.ZodDiscriminatedUnion<"op", [z.ZodO
|
|
|
1282
1100
|
scope: "all" | "new";
|
|
1283
1101
|
op: "relayout";
|
|
1284
1102
|
direction?: "DOWN" | "RIGHT" | "UP" | "LEFT" | undefined;
|
|
1285
|
-
}>, z.ZodObject<{
|
|
1286
|
-
op: z.ZodLiteral<"addTable">;
|
|
1287
|
-
table: z.ZodObject<{
|
|
1288
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1289
|
-
name: z.ZodString;
|
|
1290
|
-
schema: z.ZodOptional<z.ZodString>;
|
|
1291
|
-
kind: z.ZodOptional<z.ZodEnum<["table", "view", "collection"]>>;
|
|
1292
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1293
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1294
|
-
name: z.ZodString;
|
|
1295
|
-
dataType: z.ZodOptional<z.ZodString>;
|
|
1296
|
-
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
1297
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
1298
|
-
unique: z.ZodOptional<z.ZodBoolean>;
|
|
1299
|
-
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1300
|
-
autoIncrement: z.ZodOptional<z.ZodBoolean>;
|
|
1301
|
-
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1302
|
-
}, "strict", z.ZodTypeAny, {
|
|
1303
|
-
name: string;
|
|
1304
|
-
id?: string | undefined;
|
|
1305
|
-
unique?: boolean | undefined;
|
|
1306
|
-
nullable?: boolean | undefined;
|
|
1307
|
-
dataType?: string | undefined;
|
|
1308
|
-
primaryKey?: boolean | undefined;
|
|
1309
|
-
defaultValue?: string | null | undefined;
|
|
1310
|
-
autoIncrement?: boolean | undefined;
|
|
1311
|
-
comment?: string | null | undefined;
|
|
1312
|
-
}, {
|
|
1313
|
-
name: string;
|
|
1314
|
-
id?: string | undefined;
|
|
1315
|
-
unique?: boolean | undefined;
|
|
1316
|
-
nullable?: boolean | undefined;
|
|
1317
|
-
dataType?: string | undefined;
|
|
1318
|
-
primaryKey?: boolean | undefined;
|
|
1319
|
-
defaultValue?: string | null | undefined;
|
|
1320
|
-
autoIncrement?: boolean | undefined;
|
|
1321
|
-
comment?: string | null | undefined;
|
|
1322
|
-
}>, "many">>;
|
|
1323
|
-
comment: z.ZodOptional<z.ZodString>;
|
|
1324
|
-
}, "strict", z.ZodTypeAny, {
|
|
1325
|
-
name: string;
|
|
1326
|
-
id?: string | undefined;
|
|
1327
|
-
schema?: string | undefined;
|
|
1328
|
-
kind?: "collection" | "table" | "view" | undefined;
|
|
1329
|
-
columns?: {
|
|
1330
|
-
name: string;
|
|
1331
|
-
id?: string | undefined;
|
|
1332
|
-
unique?: boolean | undefined;
|
|
1333
|
-
nullable?: boolean | undefined;
|
|
1334
|
-
dataType?: string | undefined;
|
|
1335
|
-
primaryKey?: boolean | undefined;
|
|
1336
|
-
defaultValue?: string | null | undefined;
|
|
1337
|
-
autoIncrement?: boolean | undefined;
|
|
1338
|
-
comment?: string | null | undefined;
|
|
1339
|
-
}[] | undefined;
|
|
1340
|
-
comment?: string | undefined;
|
|
1341
|
-
}, {
|
|
1342
|
-
name: string;
|
|
1343
|
-
id?: string | undefined;
|
|
1344
|
-
schema?: string | undefined;
|
|
1345
|
-
kind?: "collection" | "table" | "view" | undefined;
|
|
1346
|
-
columns?: {
|
|
1347
|
-
name: string;
|
|
1348
|
-
id?: string | undefined;
|
|
1349
|
-
unique?: boolean | undefined;
|
|
1350
|
-
nullable?: boolean | undefined;
|
|
1351
|
-
dataType?: string | undefined;
|
|
1352
|
-
primaryKey?: boolean | undefined;
|
|
1353
|
-
defaultValue?: string | null | undefined;
|
|
1354
|
-
autoIncrement?: boolean | undefined;
|
|
1355
|
-
comment?: string | null | undefined;
|
|
1356
|
-
}[] | undefined;
|
|
1357
|
-
comment?: string | undefined;
|
|
1358
|
-
}>;
|
|
1359
|
-
position: z.ZodOptional<z.ZodObject<{
|
|
1360
|
-
x: z.ZodNumber;
|
|
1361
|
-
y: z.ZodNumber;
|
|
1362
|
-
}, "strict", z.ZodTypeAny, {
|
|
1363
|
-
x: number;
|
|
1364
|
-
y: number;
|
|
1365
|
-
}, {
|
|
1366
|
-
x: number;
|
|
1367
|
-
y: number;
|
|
1368
|
-
}>>;
|
|
1369
|
-
}, "strict", z.ZodTypeAny, {
|
|
1370
|
-
table: {
|
|
1371
|
-
name: string;
|
|
1372
|
-
id?: string | undefined;
|
|
1373
|
-
schema?: string | undefined;
|
|
1374
|
-
kind?: "collection" | "table" | "view" | undefined;
|
|
1375
|
-
columns?: {
|
|
1376
|
-
name: string;
|
|
1377
|
-
id?: string | undefined;
|
|
1378
|
-
unique?: boolean | undefined;
|
|
1379
|
-
nullable?: boolean | undefined;
|
|
1380
|
-
dataType?: string | undefined;
|
|
1381
|
-
primaryKey?: boolean | undefined;
|
|
1382
|
-
defaultValue?: string | null | undefined;
|
|
1383
|
-
autoIncrement?: boolean | undefined;
|
|
1384
|
-
comment?: string | null | undefined;
|
|
1385
|
-
}[] | undefined;
|
|
1386
|
-
comment?: string | undefined;
|
|
1387
|
-
};
|
|
1388
|
-
op: "addTable";
|
|
1389
|
-
position?: {
|
|
1390
|
-
x: number;
|
|
1391
|
-
y: number;
|
|
1392
|
-
} | undefined;
|
|
1393
|
-
}, {
|
|
1394
|
-
table: {
|
|
1395
|
-
name: string;
|
|
1396
|
-
id?: string | undefined;
|
|
1397
|
-
schema?: string | undefined;
|
|
1398
|
-
kind?: "collection" | "table" | "view" | undefined;
|
|
1399
|
-
columns?: {
|
|
1400
|
-
name: string;
|
|
1401
|
-
id?: string | undefined;
|
|
1402
|
-
unique?: boolean | undefined;
|
|
1403
|
-
nullable?: boolean | undefined;
|
|
1404
|
-
dataType?: string | undefined;
|
|
1405
|
-
primaryKey?: boolean | undefined;
|
|
1406
|
-
defaultValue?: string | null | undefined;
|
|
1407
|
-
autoIncrement?: boolean | undefined;
|
|
1408
|
-
comment?: string | null | undefined;
|
|
1409
|
-
}[] | undefined;
|
|
1410
|
-
comment?: string | undefined;
|
|
1411
|
-
};
|
|
1412
|
-
op: "addTable";
|
|
1413
|
-
position?: {
|
|
1414
|
-
x: number;
|
|
1415
|
-
y: number;
|
|
1416
|
-
} | undefined;
|
|
1417
|
-
}>, z.ZodObject<{
|
|
1418
|
-
op: z.ZodLiteral<"renameTable">;
|
|
1419
|
-
table: z.ZodString;
|
|
1420
|
-
name: z.ZodString;
|
|
1421
|
-
schema: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1422
|
-
}, "strict", z.ZodTypeAny, {
|
|
1423
|
-
name: string;
|
|
1424
|
-
table: string;
|
|
1425
|
-
op: "renameTable";
|
|
1426
|
-
schema?: string | null | undefined;
|
|
1427
|
-
}, {
|
|
1428
|
-
name: string;
|
|
1429
|
-
table: string;
|
|
1430
|
-
op: "renameTable";
|
|
1431
|
-
schema?: string | null | undefined;
|
|
1432
|
-
}>, z.ZodObject<{
|
|
1433
|
-
op: z.ZodLiteral<"removeTable">;
|
|
1434
|
-
table: z.ZodString;
|
|
1435
|
-
}, "strict", z.ZodTypeAny, {
|
|
1436
|
-
table: string;
|
|
1437
|
-
op: "removeTable";
|
|
1438
|
-
}, {
|
|
1439
|
-
table: string;
|
|
1440
|
-
op: "removeTable";
|
|
1441
|
-
}>, z.ZodObject<{
|
|
1442
|
-
op: z.ZodLiteral<"setTableComment">;
|
|
1443
|
-
table: z.ZodString;
|
|
1444
|
-
comment: z.ZodNullable<z.ZodString>;
|
|
1445
|
-
}, "strict", z.ZodTypeAny, {
|
|
1446
|
-
comment: string | null;
|
|
1447
|
-
table: string;
|
|
1448
|
-
op: "setTableComment";
|
|
1449
|
-
}, {
|
|
1450
|
-
comment: string | null;
|
|
1451
|
-
table: string;
|
|
1452
|
-
op: "setTableComment";
|
|
1453
|
-
}>, z.ZodObject<{
|
|
1454
|
-
op: z.ZodLiteral<"addColumn">;
|
|
1455
|
-
table: z.ZodString;
|
|
1456
|
-
column: z.ZodObject<{
|
|
1457
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1458
|
-
name: z.ZodString;
|
|
1459
|
-
dataType: z.ZodOptional<z.ZodString>;
|
|
1460
|
-
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
1461
|
-
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
1462
|
-
unique: z.ZodOptional<z.ZodBoolean>;
|
|
1463
|
-
defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1464
|
-
autoIncrement: z.ZodOptional<z.ZodBoolean>;
|
|
1465
|
-
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1466
|
-
}, "strict", z.ZodTypeAny, {
|
|
1467
|
-
name: string;
|
|
1468
|
-
id?: string | undefined;
|
|
1469
|
-
unique?: boolean | undefined;
|
|
1470
|
-
nullable?: boolean | undefined;
|
|
1471
|
-
dataType?: string | undefined;
|
|
1472
|
-
primaryKey?: boolean | undefined;
|
|
1473
|
-
defaultValue?: string | null | undefined;
|
|
1474
|
-
autoIncrement?: boolean | undefined;
|
|
1475
|
-
comment?: string | null | undefined;
|
|
1476
|
-
}, {
|
|
1477
|
-
name: string;
|
|
1478
|
-
id?: string | undefined;
|
|
1479
|
-
unique?: boolean | undefined;
|
|
1480
|
-
nullable?: boolean | undefined;
|
|
1481
|
-
dataType?: string | undefined;
|
|
1482
|
-
primaryKey?: boolean | undefined;
|
|
1483
|
-
defaultValue?: string | null | undefined;
|
|
1484
|
-
autoIncrement?: boolean | undefined;
|
|
1485
|
-
comment?: string | null | undefined;
|
|
1486
|
-
}>;
|
|
1487
|
-
after: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1488
|
-
}, "strict", z.ZodTypeAny, {
|
|
1489
|
-
column: {
|
|
1490
|
-
name: string;
|
|
1491
|
-
id?: string | undefined;
|
|
1492
|
-
unique?: boolean | undefined;
|
|
1493
|
-
nullable?: boolean | undefined;
|
|
1494
|
-
dataType?: string | undefined;
|
|
1495
|
-
primaryKey?: boolean | undefined;
|
|
1496
|
-
defaultValue?: string | null | undefined;
|
|
1497
|
-
autoIncrement?: boolean | undefined;
|
|
1498
|
-
comment?: string | null | undefined;
|
|
1499
|
-
};
|
|
1500
|
-
table: string;
|
|
1501
|
-
op: "addColumn";
|
|
1502
|
-
after?: string | null | undefined;
|
|
1503
|
-
}, {
|
|
1504
|
-
column: {
|
|
1505
|
-
name: string;
|
|
1506
|
-
id?: string | undefined;
|
|
1507
|
-
unique?: boolean | undefined;
|
|
1508
|
-
nullable?: boolean | undefined;
|
|
1509
|
-
dataType?: string | undefined;
|
|
1510
|
-
primaryKey?: boolean | undefined;
|
|
1511
|
-
defaultValue?: string | null | undefined;
|
|
1512
|
-
autoIncrement?: boolean | undefined;
|
|
1513
|
-
comment?: string | null | undefined;
|
|
1514
|
-
};
|
|
1515
|
-
table: string;
|
|
1516
|
-
op: "addColumn";
|
|
1517
|
-
after?: string | null | undefined;
|
|
1518
|
-
}>, z.ZodObject<{
|
|
1519
|
-
op: z.ZodLiteral<"alterColumn">;
|
|
1520
|
-
table: z.ZodString;
|
|
1521
|
-
column: z.ZodString;
|
|
1522
|
-
changes: z.ZodObject<{
|
|
1523
|
-
id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1524
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1525
|
-
dataType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1526
|
-
nullable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1527
|
-
primaryKey: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1528
|
-
unique: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1529
|
-
defaultValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1530
|
-
autoIncrement: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1531
|
-
comment: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1532
|
-
}, "strict", z.ZodTypeAny, {
|
|
1533
|
-
id?: string | undefined;
|
|
1534
|
-
name?: string | undefined;
|
|
1535
|
-
unique?: boolean | undefined;
|
|
1536
|
-
nullable?: boolean | undefined;
|
|
1537
|
-
dataType?: string | undefined;
|
|
1538
|
-
primaryKey?: boolean | undefined;
|
|
1539
|
-
defaultValue?: string | null | undefined;
|
|
1540
|
-
autoIncrement?: boolean | undefined;
|
|
1541
|
-
comment?: string | null | undefined;
|
|
1542
|
-
}, {
|
|
1543
|
-
id?: string | undefined;
|
|
1544
|
-
name?: string | undefined;
|
|
1545
|
-
unique?: boolean | undefined;
|
|
1546
|
-
nullable?: boolean | undefined;
|
|
1547
|
-
dataType?: string | undefined;
|
|
1548
|
-
primaryKey?: boolean | undefined;
|
|
1549
|
-
defaultValue?: string | null | undefined;
|
|
1550
|
-
autoIncrement?: boolean | undefined;
|
|
1551
|
-
comment?: string | null | undefined;
|
|
1552
|
-
}>;
|
|
1553
|
-
}, "strict", z.ZodTypeAny, {
|
|
1554
|
-
column: string;
|
|
1555
|
-
table: string;
|
|
1556
|
-
op: "alterColumn";
|
|
1557
|
-
changes: {
|
|
1558
|
-
id?: string | undefined;
|
|
1559
|
-
name?: string | undefined;
|
|
1560
|
-
unique?: boolean | undefined;
|
|
1561
|
-
nullable?: boolean | undefined;
|
|
1562
|
-
dataType?: string | undefined;
|
|
1563
|
-
primaryKey?: boolean | undefined;
|
|
1564
|
-
defaultValue?: string | null | undefined;
|
|
1565
|
-
autoIncrement?: boolean | undefined;
|
|
1566
|
-
comment?: string | null | undefined;
|
|
1567
|
-
};
|
|
1568
|
-
}, {
|
|
1569
|
-
column: string;
|
|
1570
|
-
table: string;
|
|
1571
|
-
op: "alterColumn";
|
|
1572
|
-
changes: {
|
|
1573
|
-
id?: string | undefined;
|
|
1574
|
-
name?: string | undefined;
|
|
1575
|
-
unique?: boolean | undefined;
|
|
1576
|
-
nullable?: boolean | undefined;
|
|
1577
|
-
dataType?: string | undefined;
|
|
1578
|
-
primaryKey?: boolean | undefined;
|
|
1579
|
-
defaultValue?: string | null | undefined;
|
|
1580
|
-
autoIncrement?: boolean | undefined;
|
|
1581
|
-
comment?: string | null | undefined;
|
|
1582
|
-
};
|
|
1583
|
-
}>, z.ZodObject<{
|
|
1584
|
-
op: z.ZodLiteral<"removeColumn">;
|
|
1585
|
-
table: z.ZodString;
|
|
1586
|
-
column: z.ZodString;
|
|
1587
|
-
}, "strict", z.ZodTypeAny, {
|
|
1588
|
-
column: string;
|
|
1589
|
-
table: string;
|
|
1590
|
-
op: "removeColumn";
|
|
1591
|
-
}, {
|
|
1592
|
-
column: string;
|
|
1593
|
-
table: string;
|
|
1594
|
-
op: "removeColumn";
|
|
1595
|
-
}>, z.ZodObject<{
|
|
1596
|
-
op: z.ZodLiteral<"setPrimaryKey">;
|
|
1597
|
-
table: z.ZodString;
|
|
1598
|
-
columns: z.ZodArray<z.ZodString, "many">;
|
|
1599
|
-
}, "strict", z.ZodTypeAny, {
|
|
1600
|
-
columns: string[];
|
|
1601
|
-
table: string;
|
|
1602
|
-
op: "setPrimaryKey";
|
|
1603
|
-
}, {
|
|
1604
|
-
columns: string[];
|
|
1605
|
-
table: string;
|
|
1606
|
-
op: "setPrimaryKey";
|
|
1607
|
-
}>, z.ZodObject<{
|
|
1608
|
-
op: z.ZodLiteral<"addRelationship">;
|
|
1609
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1610
|
-
source: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1611
|
-
table: z.ZodString;
|
|
1612
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1613
|
-
column: z.ZodOptional<z.ZodString>;
|
|
1614
|
-
}, "strict", z.ZodTypeAny, {
|
|
1615
|
-
table: string;
|
|
1616
|
-
columns?: string[] | undefined;
|
|
1617
|
-
column?: string | undefined;
|
|
1618
|
-
}, {
|
|
1619
|
-
table: string;
|
|
1620
|
-
columns?: string[] | undefined;
|
|
1621
|
-
column?: string | undefined;
|
|
1622
|
-
}>]>;
|
|
1623
|
-
target: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1624
|
-
table: z.ZodString;
|
|
1625
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1626
|
-
column: z.ZodOptional<z.ZodString>;
|
|
1627
|
-
}, "strict", z.ZodTypeAny, {
|
|
1628
|
-
table: string;
|
|
1629
|
-
columns?: string[] | undefined;
|
|
1630
|
-
column?: string | undefined;
|
|
1631
|
-
}, {
|
|
1632
|
-
table: string;
|
|
1633
|
-
columns?: string[] | undefined;
|
|
1634
|
-
column?: string | undefined;
|
|
1635
|
-
}>]>;
|
|
1636
|
-
cardinality: z.ZodOptional<z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>>;
|
|
1637
|
-
kind: z.ZodOptional<z.ZodEnum<["foreignKey", "manual"]>>;
|
|
1638
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1639
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1640
|
-
}, "strict", z.ZodTypeAny, {
|
|
1641
|
-
source: string | {
|
|
1642
|
-
table: string;
|
|
1643
|
-
columns?: string[] | undefined;
|
|
1644
|
-
column?: string | undefined;
|
|
1645
|
-
};
|
|
1646
|
-
target: string | {
|
|
1647
|
-
table: string;
|
|
1648
|
-
columns?: string[] | undefined;
|
|
1649
|
-
column?: string | undefined;
|
|
1650
|
-
};
|
|
1651
|
-
op: "addRelationship";
|
|
1652
|
-
id?: string | undefined;
|
|
1653
|
-
name?: string | undefined;
|
|
1654
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
1655
|
-
label?: string | undefined;
|
|
1656
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
1657
|
-
}, {
|
|
1658
|
-
source: string | {
|
|
1659
|
-
table: string;
|
|
1660
|
-
columns?: string[] | undefined;
|
|
1661
|
-
column?: string | undefined;
|
|
1662
|
-
};
|
|
1663
|
-
target: string | {
|
|
1664
|
-
table: string;
|
|
1665
|
-
columns?: string[] | undefined;
|
|
1666
|
-
column?: string | undefined;
|
|
1667
|
-
};
|
|
1668
|
-
op: "addRelationship";
|
|
1669
|
-
id?: string | undefined;
|
|
1670
|
-
name?: string | undefined;
|
|
1671
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
1672
|
-
label?: string | undefined;
|
|
1673
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
1674
|
-
}>, z.ZodObject<{
|
|
1675
|
-
op: z.ZodLiteral<"updateRelationship">;
|
|
1676
|
-
relationship: z.ZodString;
|
|
1677
|
-
changes: z.ZodObject<{
|
|
1678
|
-
source: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1679
|
-
table: z.ZodString;
|
|
1680
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1681
|
-
column: z.ZodOptional<z.ZodString>;
|
|
1682
|
-
}, "strict", z.ZodTypeAny, {
|
|
1683
|
-
table: string;
|
|
1684
|
-
columns?: string[] | undefined;
|
|
1685
|
-
column?: string | undefined;
|
|
1686
|
-
}, {
|
|
1687
|
-
table: string;
|
|
1688
|
-
columns?: string[] | undefined;
|
|
1689
|
-
column?: string | undefined;
|
|
1690
|
-
}>]>>;
|
|
1691
|
-
target: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1692
|
-
table: z.ZodString;
|
|
1693
|
-
columns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1694
|
-
column: z.ZodOptional<z.ZodString>;
|
|
1695
|
-
}, "strict", z.ZodTypeAny, {
|
|
1696
|
-
table: string;
|
|
1697
|
-
columns?: string[] | undefined;
|
|
1698
|
-
column?: string | undefined;
|
|
1699
|
-
}, {
|
|
1700
|
-
table: string;
|
|
1701
|
-
columns?: string[] | undefined;
|
|
1702
|
-
column?: string | undefined;
|
|
1703
|
-
}>]>>;
|
|
1704
|
-
cardinality: z.ZodOptional<z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>>;
|
|
1705
|
-
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1706
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1707
|
-
kind: z.ZodOptional<z.ZodEnum<["foreignKey", "manual"]>>;
|
|
1708
|
-
}, "strict", z.ZodTypeAny, {
|
|
1709
|
-
name?: string | null | undefined;
|
|
1710
|
-
source?: string | {
|
|
1711
|
-
table: string;
|
|
1712
|
-
columns?: string[] | undefined;
|
|
1713
|
-
column?: string | undefined;
|
|
1714
|
-
} | undefined;
|
|
1715
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
1716
|
-
label?: string | null | undefined;
|
|
1717
|
-
target?: string | {
|
|
1718
|
-
table: string;
|
|
1719
|
-
columns?: string[] | undefined;
|
|
1720
|
-
column?: string | undefined;
|
|
1721
|
-
} | undefined;
|
|
1722
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
1723
|
-
}, {
|
|
1724
|
-
name?: string | null | undefined;
|
|
1725
|
-
source?: string | {
|
|
1726
|
-
table: string;
|
|
1727
|
-
columns?: string[] | undefined;
|
|
1728
|
-
column?: string | undefined;
|
|
1729
|
-
} | undefined;
|
|
1730
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
1731
|
-
label?: string | null | undefined;
|
|
1732
|
-
target?: string | {
|
|
1733
|
-
table: string;
|
|
1734
|
-
columns?: string[] | undefined;
|
|
1735
|
-
column?: string | undefined;
|
|
1736
|
-
} | undefined;
|
|
1737
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
1738
|
-
}>;
|
|
1739
|
-
}, "strict", z.ZodTypeAny, {
|
|
1740
|
-
relationship: string;
|
|
1741
|
-
op: "updateRelationship";
|
|
1742
|
-
changes: {
|
|
1743
|
-
name?: string | null | undefined;
|
|
1744
|
-
source?: string | {
|
|
1745
|
-
table: string;
|
|
1746
|
-
columns?: string[] | undefined;
|
|
1747
|
-
column?: string | undefined;
|
|
1748
|
-
} | undefined;
|
|
1749
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
1750
|
-
label?: string | null | undefined;
|
|
1751
|
-
target?: string | {
|
|
1752
|
-
table: string;
|
|
1753
|
-
columns?: string[] | undefined;
|
|
1754
|
-
column?: string | undefined;
|
|
1755
|
-
} | undefined;
|
|
1756
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
1757
|
-
};
|
|
1758
|
-
}, {
|
|
1759
|
-
relationship: string;
|
|
1760
|
-
op: "updateRelationship";
|
|
1761
|
-
changes: {
|
|
1762
|
-
name?: string | null | undefined;
|
|
1763
|
-
source?: string | {
|
|
1764
|
-
table: string;
|
|
1765
|
-
columns?: string[] | undefined;
|
|
1766
|
-
column?: string | undefined;
|
|
1767
|
-
} | undefined;
|
|
1768
|
-
kind?: "foreignKey" | "manual" | undefined;
|
|
1769
|
-
label?: string | null | undefined;
|
|
1770
|
-
target?: string | {
|
|
1771
|
-
table: string;
|
|
1772
|
-
columns?: string[] | undefined;
|
|
1773
|
-
column?: string | undefined;
|
|
1774
|
-
} | undefined;
|
|
1775
|
-
cardinality?: "1:1" | "1:N" | "N:1" | "N:M" | undefined;
|
|
1776
|
-
};
|
|
1777
|
-
}>, z.ZodObject<{
|
|
1778
|
-
op: z.ZodLiteral<"removeRelationship">;
|
|
1779
|
-
relationship: z.ZodString;
|
|
1780
|
-
}, "strict", z.ZodTypeAny, {
|
|
1781
|
-
relationship: string;
|
|
1782
|
-
op: "removeRelationship";
|
|
1783
|
-
}, {
|
|
1784
|
-
relationship: string;
|
|
1785
|
-
op: "removeRelationship";
|
|
1786
|
-
}>, z.ZodObject<{
|
|
1787
|
-
op: z.ZodLiteral<"hideTable">;
|
|
1788
|
-
table: z.ZodString;
|
|
1789
|
-
}, "strict", z.ZodTypeAny, {
|
|
1790
|
-
table: string;
|
|
1791
|
-
op: "hideTable";
|
|
1792
|
-
}, {
|
|
1793
|
-
table: string;
|
|
1794
|
-
op: "hideTable";
|
|
1795
|
-
}>, z.ZodObject<{
|
|
1796
|
-
op: z.ZodLiteral<"showTable">;
|
|
1797
|
-
table: z.ZodString;
|
|
1798
|
-
}, "strict", z.ZodTypeAny, {
|
|
1799
|
-
table: string;
|
|
1800
|
-
op: "showTable";
|
|
1801
|
-
}, {
|
|
1802
|
-
table: string;
|
|
1803
|
-
op: "showTable";
|
|
1804
1103
|
}>]>;
|
|
1805
1104
|
export type DiagramPatchOp = z.infer<typeof diagramPatchOpSchema>;
|
|
1806
1105
|
export interface PatchResult {
|