@graphoria/server 0.1.3 → 0.1.5
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/src/config/types/db.d.ts +89 -0
- package/dist/src/config/types/db.d.ts.map +1 -1
- package/dist/src/config/types/index.d.ts +2 -2
- package/dist/src/config/types/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/index.d.ts +48 -0
- package/dist/src/configuration/getSchemas/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts +24 -0
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts.map +1 -1
- package/dist/src/configuration/index.d.ts +36 -0
- package/dist/src/configuration/index.d.ts.map +1 -1
- package/dist/src/databases/common.d.ts.map +1 -1
- package/dist/src/databases/core/query-builder.d.ts +6 -0
- package/dist/src/databases/core/query-builder.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/getStructure.d.ts +7 -0
- package/dist/src/databases/engines/mssql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/getStructure.d.ts +7 -0
- package/dist/src/databases/engines/mysql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/getStructure.d.ts +7 -0
- package/dist/src/databases/engines/postgresql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/high-level-operations.d.ts +13 -0
- package/dist/src/databases/high-level-operations.d.ts.map +1 -1
- package/dist/src/databases/metadata/structure.d.ts +7 -0
- package/dist/src/databases/metadata/structure.d.ts.map +1 -1
- package/dist/src/databases/transformers/data-transformers.d.ts +37 -0
- package/dist/src/databases/transformers/data-transformers.d.ts.map +1 -1
- package/dist/src/singletons/env.d.ts +18 -0
- package/dist/src/singletons/env.d.ts.map +1 -1
- package/dist/src/types/configuration.d.ts +1 -1
- package/dist/src/types/configuration.d.ts.map +1 -1
- package/dist/src/types/env.d.ts +76 -0
- package/dist/src/types/env.d.ts.map +1 -1
- package/dist/src/types/zod/configuration.d.ts +40 -0
- package/dist/src/types/zod/configuration.d.ts.map +1 -1
- package/dist/src/types/zod/db.d.ts +159 -0
- package/dist/src/types/zod/db.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/config/types/db.ts +47 -0
- package/src/config/types/index.ts +3 -0
- package/src/configuration/index.ts +8 -1
- package/src/databases/common.ts +128 -18
- package/src/databases/engines/mssql/getStructure.ts +1 -0
- package/src/databases/engines/mysql/getStructure.ts +1 -0
- package/src/databases/engines/postgresql/getStructure.ts +1 -0
- package/src/databases/high-level-operations.ts +25 -0
- package/src/types/configuration.ts +7 -1
- package/src/types/zod/db.ts +4 -0
- package/dist/src/console/App.d.ts +0 -3
- package/dist/src/console/App.d.ts.map +0 -1
- package/dist/src/console/Login.d.ts +0 -6
- package/dist/src/console/Login.d.ts.map +0 -1
- package/dist/src/console/client.d.ts +0 -67
- package/dist/src/console/client.d.ts.map +0 -1
- package/dist/src/console/frontend.d.ts +0 -8
- package/dist/src/console/frontend.d.ts.map +0 -1
- package/dist/src/console/pages/ConfigPage.d.ts +0 -2
- package/dist/src/console/pages/ConfigPage.d.ts.map +0 -1
- package/dist/src/console/pages/RolesPage.d.ts +0 -2
- package/dist/src/console/pages/RolesPage.d.ts.map +0 -1
- package/dist/src/console/pages/StatusPage.d.ts +0 -2
- package/dist/src/console/pages/StatusPage.d.ts.map +0 -1
- package/dist/src/console/pages/TablesPage.d.ts +0 -2
- package/dist/src/console/pages/TablesPage.d.ts.map +0 -1
- package/dist/src/console/useApi.d.ts +0 -8
- package/dist/src/console/useApi.d.ts.map +0 -1
|
@@ -9,8 +9,10 @@ export declare const TableColumnZod: z.ZodPipe<z.ZodObject<{
|
|
|
9
9
|
name: z.ZodString;
|
|
10
10
|
dataType: z.ZodString;
|
|
11
11
|
isNullable: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
12
|
+
collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
13
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
14
|
}, z.core.$strip>, z.ZodTransform<{
|
|
15
|
+
collation?: string | undefined;
|
|
14
16
|
name: string;
|
|
15
17
|
dataType: string;
|
|
16
18
|
isNullable: boolean;
|
|
@@ -19,6 +21,7 @@ export declare const TableColumnZod: z.ZodPipe<z.ZodObject<{
|
|
|
19
21
|
name: string;
|
|
20
22
|
dataType: string;
|
|
21
23
|
isNullable: number | boolean;
|
|
24
|
+
collation?: string | null | undefined;
|
|
22
25
|
description?: string | null | undefined;
|
|
23
26
|
}>>;
|
|
24
27
|
/**
|
|
@@ -32,6 +35,22 @@ export declare const TableRelationshipEnhancedZod: z.ZodPipe<z.ZodObject<{
|
|
|
32
35
|
source: z.ZodString;
|
|
33
36
|
target: z.ZodString;
|
|
34
37
|
}, z.core.$strip>>;
|
|
38
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
source: z.ZodOptional<z.ZodString>;
|
|
40
|
+
target: z.ZodOptional<z.ZodString>;
|
|
41
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
eq: "eq";
|
|
43
|
+
neq: "neq";
|
|
44
|
+
gt: "gt";
|
|
45
|
+
gte: "gte";
|
|
46
|
+
lt: "lt";
|
|
47
|
+
lte: "lte";
|
|
48
|
+
like: "like";
|
|
49
|
+
is_null: "is_null";
|
|
50
|
+
is_not_null: "is_not_null";
|
|
51
|
+
}>>>;
|
|
52
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
35
54
|
}, z.core.$strip>, z.ZodTransform<{
|
|
36
55
|
dashedName: string;
|
|
37
56
|
schema: string;
|
|
@@ -40,6 +59,12 @@ export declare const TableRelationshipEnhancedZod: z.ZodPipe<z.ZodObject<{
|
|
|
40
59
|
source: string;
|
|
41
60
|
target: string;
|
|
42
61
|
}[];
|
|
62
|
+
conditions?: {
|
|
63
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
64
|
+
source?: string | undefined;
|
|
65
|
+
target?: string | undefined;
|
|
66
|
+
value?: string | number | boolean | undefined;
|
|
67
|
+
}[] | undefined;
|
|
43
68
|
}, {
|
|
44
69
|
schema: string;
|
|
45
70
|
name: string;
|
|
@@ -47,6 +72,12 @@ export declare const TableRelationshipEnhancedZod: z.ZodPipe<z.ZodObject<{
|
|
|
47
72
|
source: string;
|
|
48
73
|
target: string;
|
|
49
74
|
}[];
|
|
75
|
+
conditions?: {
|
|
76
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
77
|
+
source?: string | undefined;
|
|
78
|
+
target?: string | undefined;
|
|
79
|
+
value?: string | number | boolean | undefined;
|
|
80
|
+
}[] | undefined;
|
|
50
81
|
}>>;
|
|
51
82
|
/**
|
|
52
83
|
* Base table schema from database queries (before enhancement).
|
|
@@ -61,8 +92,10 @@ export declare const TableBaseZod: z.ZodObject<{
|
|
|
61
92
|
name: z.ZodString;
|
|
62
93
|
dataType: z.ZodString;
|
|
63
94
|
isNullable: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
95
|
+
collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
96
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
97
|
}, z.core.$strip>, z.ZodTransform<{
|
|
98
|
+
collation?: string | undefined;
|
|
66
99
|
name: string;
|
|
67
100
|
dataType: string;
|
|
68
101
|
isNullable: boolean;
|
|
@@ -71,6 +104,7 @@ export declare const TableBaseZod: z.ZodObject<{
|
|
|
71
104
|
name: string;
|
|
72
105
|
dataType: string;
|
|
73
106
|
isNullable: number | boolean;
|
|
107
|
+
collation?: string | null | undefined;
|
|
74
108
|
description?: string | null | undefined;
|
|
75
109
|
}>>>;
|
|
76
110
|
foreignKeys: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -80,6 +114,22 @@ export declare const TableBaseZod: z.ZodObject<{
|
|
|
80
114
|
source: z.ZodString;
|
|
81
115
|
target: z.ZodString;
|
|
82
116
|
}, z.core.$strip>>;
|
|
117
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
+
source: z.ZodOptional<z.ZodString>;
|
|
119
|
+
target: z.ZodOptional<z.ZodString>;
|
|
120
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
eq: "eq";
|
|
122
|
+
neq: "neq";
|
|
123
|
+
gt: "gt";
|
|
124
|
+
gte: "gte";
|
|
125
|
+
lt: "lt";
|
|
126
|
+
lte: "lte";
|
|
127
|
+
like: "like";
|
|
128
|
+
is_null: "is_null";
|
|
129
|
+
is_not_null: "is_not_null";
|
|
130
|
+
}>>>;
|
|
131
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
132
|
+
}, z.core.$strip>>>;
|
|
83
133
|
}, z.core.$strip>, z.ZodTransform<{
|
|
84
134
|
dashedName: string;
|
|
85
135
|
schema: string;
|
|
@@ -88,6 +138,12 @@ export declare const TableBaseZod: z.ZodObject<{
|
|
|
88
138
|
source: string;
|
|
89
139
|
target: string;
|
|
90
140
|
}[];
|
|
141
|
+
conditions?: {
|
|
142
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
143
|
+
source?: string | undefined;
|
|
144
|
+
target?: string | undefined;
|
|
145
|
+
value?: string | number | boolean | undefined;
|
|
146
|
+
}[] | undefined;
|
|
91
147
|
}, {
|
|
92
148
|
schema: string;
|
|
93
149
|
name: string;
|
|
@@ -95,6 +151,12 @@ export declare const TableBaseZod: z.ZodObject<{
|
|
|
95
151
|
source: string;
|
|
96
152
|
target: string;
|
|
97
153
|
}[];
|
|
154
|
+
conditions?: {
|
|
155
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
156
|
+
source?: string | undefined;
|
|
157
|
+
target?: string | undefined;
|
|
158
|
+
value?: string | number | boolean | undefined;
|
|
159
|
+
}[] | undefined;
|
|
98
160
|
}>>>;
|
|
99
161
|
}, z.core.$strip>;
|
|
100
162
|
/**
|
|
@@ -110,6 +172,7 @@ export declare const enrichTable: (table: z.output<typeof TableBaseZod>) => {
|
|
|
110
172
|
name: string;
|
|
111
173
|
entityType: "table" | "view";
|
|
112
174
|
columns: {
|
|
175
|
+
collation?: string | undefined;
|
|
113
176
|
name: string;
|
|
114
177
|
dataType: string;
|
|
115
178
|
isNullable: boolean;
|
|
@@ -123,6 +186,12 @@ export declare const enrichTable: (table: z.output<typeof TableBaseZod>) => {
|
|
|
123
186
|
source: string;
|
|
124
187
|
target: string;
|
|
125
188
|
}[];
|
|
189
|
+
conditions?: {
|
|
190
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
191
|
+
source?: string | undefined;
|
|
192
|
+
target?: string | undefined;
|
|
193
|
+
value?: string | number | boolean | undefined;
|
|
194
|
+
}[] | undefined;
|
|
126
195
|
}[];
|
|
127
196
|
tableDescription?: string | null | undefined;
|
|
128
197
|
};
|
|
@@ -139,8 +208,10 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
139
208
|
name: z.ZodString;
|
|
140
209
|
dataType: z.ZodString;
|
|
141
210
|
isNullable: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
211
|
+
collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
212
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
213
|
}, z.core.$strip>, z.ZodTransform<{
|
|
214
|
+
collation?: string | undefined;
|
|
144
215
|
name: string;
|
|
145
216
|
dataType: string;
|
|
146
217
|
isNullable: boolean;
|
|
@@ -149,6 +220,7 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
149
220
|
name: string;
|
|
150
221
|
dataType: string;
|
|
151
222
|
isNullable: number | boolean;
|
|
223
|
+
collation?: string | null | undefined;
|
|
152
224
|
description?: string | null | undefined;
|
|
153
225
|
}>>>;
|
|
154
226
|
foreignKeys: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -158,6 +230,22 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
158
230
|
source: z.ZodString;
|
|
159
231
|
target: z.ZodString;
|
|
160
232
|
}, z.core.$strip>>;
|
|
233
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
234
|
+
source: z.ZodOptional<z.ZodString>;
|
|
235
|
+
target: z.ZodOptional<z.ZodString>;
|
|
236
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
237
|
+
eq: "eq";
|
|
238
|
+
neq: "neq";
|
|
239
|
+
gt: "gt";
|
|
240
|
+
gte: "gte";
|
|
241
|
+
lt: "lt";
|
|
242
|
+
lte: "lte";
|
|
243
|
+
like: "like";
|
|
244
|
+
is_null: "is_null";
|
|
245
|
+
is_not_null: "is_not_null";
|
|
246
|
+
}>>>;
|
|
247
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
248
|
+
}, z.core.$strip>>>;
|
|
161
249
|
}, z.core.$strip>, z.ZodTransform<{
|
|
162
250
|
dashedName: string;
|
|
163
251
|
schema: string;
|
|
@@ -166,6 +254,12 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
166
254
|
source: string;
|
|
167
255
|
target: string;
|
|
168
256
|
}[];
|
|
257
|
+
conditions?: {
|
|
258
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
259
|
+
source?: string | undefined;
|
|
260
|
+
target?: string | undefined;
|
|
261
|
+
value?: string | number | boolean | undefined;
|
|
262
|
+
}[] | undefined;
|
|
169
263
|
}, {
|
|
170
264
|
schema: string;
|
|
171
265
|
name: string;
|
|
@@ -173,6 +267,12 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
173
267
|
source: string;
|
|
174
268
|
target: string;
|
|
175
269
|
}[];
|
|
270
|
+
conditions?: {
|
|
271
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
272
|
+
source?: string | undefined;
|
|
273
|
+
target?: string | undefined;
|
|
274
|
+
value?: string | number | boolean | undefined;
|
|
275
|
+
}[] | undefined;
|
|
176
276
|
}>>>;
|
|
177
277
|
}, z.core.$strip>, z.ZodTransform<{
|
|
178
278
|
dashedName: string;
|
|
@@ -183,6 +283,7 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
183
283
|
name: string;
|
|
184
284
|
entityType: "table" | "view";
|
|
185
285
|
columns: {
|
|
286
|
+
collation?: string | undefined;
|
|
186
287
|
name: string;
|
|
187
288
|
dataType: string;
|
|
188
289
|
isNullable: boolean;
|
|
@@ -196,6 +297,12 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
196
297
|
source: string;
|
|
197
298
|
target: string;
|
|
198
299
|
}[];
|
|
300
|
+
conditions?: {
|
|
301
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
302
|
+
source?: string | undefined;
|
|
303
|
+
target?: string | undefined;
|
|
304
|
+
value?: string | number | boolean | undefined;
|
|
305
|
+
}[] | undefined;
|
|
199
306
|
}[];
|
|
200
307
|
tableDescription?: string | null | undefined;
|
|
201
308
|
}, {
|
|
@@ -203,6 +310,7 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
203
310
|
name: string;
|
|
204
311
|
entityType: "table" | "view";
|
|
205
312
|
columns: {
|
|
313
|
+
collation?: string | undefined;
|
|
206
314
|
name: string;
|
|
207
315
|
dataType: string;
|
|
208
316
|
isNullable: boolean;
|
|
@@ -216,6 +324,12 @@ export declare const TableZod: z.ZodPipe<z.ZodObject<{
|
|
|
216
324
|
source: string;
|
|
217
325
|
target: string;
|
|
218
326
|
}[];
|
|
327
|
+
conditions?: {
|
|
328
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
329
|
+
source?: string | undefined;
|
|
330
|
+
target?: string | undefined;
|
|
331
|
+
value?: string | number | boolean | undefined;
|
|
332
|
+
}[] | undefined;
|
|
219
333
|
}[];
|
|
220
334
|
tableDescription?: string | null | undefined;
|
|
221
335
|
}>>;
|
|
@@ -306,8 +420,10 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
306
420
|
name: z.ZodString;
|
|
307
421
|
dataType: z.ZodString;
|
|
308
422
|
isNullable: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
423
|
+
collation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
424
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
425
|
}, z.core.$strip>, z.ZodTransform<{
|
|
426
|
+
collation?: string | undefined;
|
|
311
427
|
name: string;
|
|
312
428
|
dataType: string;
|
|
313
429
|
isNullable: boolean;
|
|
@@ -316,6 +432,7 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
316
432
|
name: string;
|
|
317
433
|
dataType: string;
|
|
318
434
|
isNullable: number | boolean;
|
|
435
|
+
collation?: string | null | undefined;
|
|
319
436
|
description?: string | null | undefined;
|
|
320
437
|
}>>>;
|
|
321
438
|
foreignKeys: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
@@ -325,6 +442,22 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
325
442
|
source: z.ZodString;
|
|
326
443
|
target: z.ZodString;
|
|
327
444
|
}, z.core.$strip>>;
|
|
445
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
446
|
+
source: z.ZodOptional<z.ZodString>;
|
|
447
|
+
target: z.ZodOptional<z.ZodString>;
|
|
448
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
449
|
+
eq: "eq";
|
|
450
|
+
neq: "neq";
|
|
451
|
+
gt: "gt";
|
|
452
|
+
gte: "gte";
|
|
453
|
+
lt: "lt";
|
|
454
|
+
lte: "lte";
|
|
455
|
+
like: "like";
|
|
456
|
+
is_null: "is_null";
|
|
457
|
+
is_not_null: "is_not_null";
|
|
458
|
+
}>>>;
|
|
459
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
460
|
+
}, z.core.$strip>>>;
|
|
328
461
|
}, z.core.$strip>, z.ZodTransform<{
|
|
329
462
|
dashedName: string;
|
|
330
463
|
schema: string;
|
|
@@ -333,6 +466,12 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
333
466
|
source: string;
|
|
334
467
|
target: string;
|
|
335
468
|
}[];
|
|
469
|
+
conditions?: {
|
|
470
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
471
|
+
source?: string | undefined;
|
|
472
|
+
target?: string | undefined;
|
|
473
|
+
value?: string | number | boolean | undefined;
|
|
474
|
+
}[] | undefined;
|
|
336
475
|
}, {
|
|
337
476
|
schema: string;
|
|
338
477
|
name: string;
|
|
@@ -340,6 +479,12 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
340
479
|
source: string;
|
|
341
480
|
target: string;
|
|
342
481
|
}[];
|
|
482
|
+
conditions?: {
|
|
483
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
484
|
+
source?: string | undefined;
|
|
485
|
+
target?: string | undefined;
|
|
486
|
+
value?: string | number | boolean | undefined;
|
|
487
|
+
}[] | undefined;
|
|
343
488
|
}>>>;
|
|
344
489
|
}, z.core.$strip>, z.ZodTransform<{
|
|
345
490
|
dashedName: string;
|
|
@@ -350,6 +495,7 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
350
495
|
name: string;
|
|
351
496
|
entityType: "table" | "view";
|
|
352
497
|
columns: {
|
|
498
|
+
collation?: string | undefined;
|
|
353
499
|
name: string;
|
|
354
500
|
dataType: string;
|
|
355
501
|
isNullable: boolean;
|
|
@@ -363,6 +509,12 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
363
509
|
source: string;
|
|
364
510
|
target: string;
|
|
365
511
|
}[];
|
|
512
|
+
conditions?: {
|
|
513
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
514
|
+
source?: string | undefined;
|
|
515
|
+
target?: string | undefined;
|
|
516
|
+
value?: string | number | boolean | undefined;
|
|
517
|
+
}[] | undefined;
|
|
366
518
|
}[];
|
|
367
519
|
tableDescription?: string | null | undefined;
|
|
368
520
|
}, {
|
|
@@ -370,6 +522,7 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
370
522
|
name: string;
|
|
371
523
|
entityType: "table" | "view";
|
|
372
524
|
columns: {
|
|
525
|
+
collation?: string | undefined;
|
|
373
526
|
name: string;
|
|
374
527
|
dataType: string;
|
|
375
528
|
isNullable: boolean;
|
|
@@ -383,6 +536,12 @@ export declare const DatabaseStructureZod: z.ZodObject<{
|
|
|
383
536
|
source: string;
|
|
384
537
|
target: string;
|
|
385
538
|
}[];
|
|
539
|
+
conditions?: {
|
|
540
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
541
|
+
source?: string | undefined;
|
|
542
|
+
target?: string | undefined;
|
|
543
|
+
value?: string | number | boolean | undefined;
|
|
544
|
+
}[] | undefined;
|
|
386
545
|
}[];
|
|
387
546
|
tableDescription?: string | null | undefined;
|
|
388
547
|
}>>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/types/zod/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,YAAY,EACV,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/types/zod/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,YAAY,EACV,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,cAAc,CAAC;AAEtB;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;GAgBtB,CAAC;AAEN;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGtC,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM9D,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsC,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAMjC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAC;AAGH,eAAO,MAAM,OAAO;;;;iBAIlB,CAAC"}
|