@restura/core 0.2.1 → 1.0.0-beta.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/dist/index.d.mts +517 -472
- package/dist/index.d.ts +517 -472
- package/dist/index.js +380 -347
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +249 -217
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -14
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
import winston from 'winston';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
2
3
|
import { UUID } from 'crypto';
|
|
3
4
|
import * as express from 'express';
|
|
4
5
|
import { IncomingHttpHeaders } from 'http2';
|
|
5
|
-
import { z } from 'zod';
|
|
6
|
+
import { z as z$1 } from 'zod';
|
|
6
7
|
import { QueryResultRow, QueryConfigValues, QueryResult, PoolConfig, Pool, ClientConfig, Client } from 'pg';
|
|
7
8
|
import peg from 'pegjs';
|
|
8
9
|
|
|
9
10
|
declare const logger: winston.Logger;
|
|
10
11
|
|
|
12
|
+
declare const loggerConfigSchema: z.ZodObject<{
|
|
13
|
+
level: z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
info: "info";
|
|
15
|
+
warn: "warn";
|
|
16
|
+
error: "error";
|
|
17
|
+
debug: "debug";
|
|
18
|
+
silly: "silly";
|
|
19
|
+
}>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
type LoggerConfigSchema = z.infer<typeof loggerConfigSchema>;
|
|
22
|
+
|
|
11
23
|
interface RsErrorInternalData {
|
|
12
24
|
err: ErrorCode;
|
|
13
25
|
msg: string;
|
|
@@ -71,13 +83,14 @@ interface PageQuery {
|
|
|
71
83
|
filter?: string;
|
|
72
84
|
[key: string]: string | number | boolean | object | null | undefined;
|
|
73
85
|
}
|
|
74
|
-
interface
|
|
86
|
+
interface AuthenticatedRequesterDetails {
|
|
75
87
|
role: string;
|
|
88
|
+
scopes: string[];
|
|
76
89
|
userId?: number;
|
|
77
90
|
[key: string]: string | number | boolean | object | null | undefined;
|
|
78
91
|
}
|
|
79
|
-
type
|
|
80
|
-
type AuthenticateHandler = (req: RsRequest<unknown>, res: RsResponse<unknown>, onValid:
|
|
92
|
+
type OnValidAuthenticationCallback = (authenticatedRequesterDetails: AuthenticatedRequesterDetails) => void;
|
|
93
|
+
type AuthenticateHandler = (req: RsRequest<unknown>, res: RsResponse<unknown>, onValid: OnValidAuthenticationCallback) => Promise<void>;
|
|
81
94
|
|
|
82
95
|
interface RsHeaders extends IncomingHttpHeaders {
|
|
83
96
|
'x-auth-token'?: string;
|
|
@@ -85,6 +98,7 @@ interface RsHeaders extends IncomingHttpHeaders {
|
|
|
85
98
|
type ApiMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS';
|
|
86
99
|
type RequesterDetails<T extends object = {}> = {
|
|
87
100
|
role: string;
|
|
101
|
+
scopes: string[];
|
|
88
102
|
host: string;
|
|
89
103
|
ipAddress: string;
|
|
90
104
|
userId?: number;
|
|
@@ -180,54 +194,41 @@ declare const resturaConfigSchema: z.ZodObject<{
|
|
|
180
194
|
customApiFolderPath: z.ZodDefault<z.ZodString>;
|
|
181
195
|
generatedTypesPath: z.ZodDefault<z.ZodString>;
|
|
182
196
|
fileTempCachePath: z.ZodOptional<z.ZodString>;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
sendErrorStackTrace: boolean;
|
|
186
|
-
schemaFilePath: string;
|
|
187
|
-
customApiFolderPath: string;
|
|
188
|
-
generatedTypesPath: string;
|
|
189
|
-
fileTempCachePath?: string | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
authToken: string;
|
|
192
|
-
sendErrorStackTrace?: boolean | undefined;
|
|
193
|
-
schemaFilePath?: string | undefined;
|
|
194
|
-
customApiFolderPath?: string | undefined;
|
|
195
|
-
generatedTypesPath?: string | undefined;
|
|
196
|
-
fileTempCachePath?: string | undefined;
|
|
197
|
-
}>;
|
|
197
|
+
scratchDatabaseSuffix: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, z.core.$strip>;
|
|
198
199
|
type ResturaConfigSchema = z.infer<typeof resturaConfigSchema>;
|
|
199
200
|
|
|
200
|
-
declare const whereDataSchema: z.ZodObject<{
|
|
201
|
-
tableName: z.ZodOptional<z.ZodString>;
|
|
202
|
-
columnName: z.ZodOptional<z.ZodString>;
|
|
203
|
-
operator: z.ZodOptional<z.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "
|
|
204
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
205
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
206
|
-
conjunction: z.ZodOptional<z.ZodEnum<["AND", "OR"]>>;
|
|
207
|
-
}, "strict", z.ZodTypeAny, {
|
|
208
|
-
value?: string | number | undefined;
|
|
201
|
+
declare const whereDataSchema: z$1.ZodObject<{
|
|
202
|
+
tableName: z$1.ZodOptional<z$1.ZodString>;
|
|
203
|
+
columnName: z$1.ZodOptional<z$1.ZodString>;
|
|
204
|
+
operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
|
|
205
|
+
value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
206
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
207
|
+
conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
|
|
208
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
209
209
|
custom?: string | undefined;
|
|
210
|
+
value?: string | number | undefined;
|
|
210
211
|
tableName?: string | undefined;
|
|
211
212
|
columnName?: string | undefined;
|
|
212
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
213
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
213
214
|
conjunction?: "AND" | "OR" | undefined;
|
|
214
215
|
}, {
|
|
215
|
-
value?: string | number | undefined;
|
|
216
216
|
custom?: string | undefined;
|
|
217
|
+
value?: string | number | undefined;
|
|
217
218
|
tableName?: string | undefined;
|
|
218
219
|
columnName?: string | undefined;
|
|
219
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
220
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
220
221
|
conjunction?: "AND" | "OR" | undefined;
|
|
221
222
|
}>;
|
|
222
|
-
type WhereData = z.infer<typeof whereDataSchema>;
|
|
223
|
-
declare const joinDataSchema: z.ZodObject<{
|
|
224
|
-
table: z.ZodString;
|
|
225
|
-
localColumnName: z.ZodOptional<z.ZodString>;
|
|
226
|
-
foreignColumnName: z.ZodOptional<z.ZodString>;
|
|
227
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
228
|
-
type: z.ZodEnum<["LEFT", "INNER"]>;
|
|
229
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
230
|
-
}, "strict", z.ZodTypeAny, {
|
|
223
|
+
type WhereData = z$1.infer<typeof whereDataSchema>;
|
|
224
|
+
declare const joinDataSchema: z$1.ZodObject<{
|
|
225
|
+
table: z$1.ZodString;
|
|
226
|
+
localColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
227
|
+
foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
228
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
229
|
+
type: z$1.ZodEnum<["LEFT", "INNER"]>;
|
|
230
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
231
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
231
232
|
type: "LEFT" | "INNER";
|
|
232
233
|
table: string;
|
|
233
234
|
custom?: string | undefined;
|
|
@@ -242,20 +243,20 @@ declare const joinDataSchema: z.ZodObject<{
|
|
|
242
243
|
foreignColumnName?: string | undefined;
|
|
243
244
|
alias?: string | undefined;
|
|
244
245
|
}>;
|
|
245
|
-
type JoinData = z.infer<typeof joinDataSchema>;
|
|
246
|
-
declare const responseDataSchema: z.ZodObject<{
|
|
247
|
-
name: z.ZodString;
|
|
248
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
249
|
-
subquery: z.ZodOptional<z.ZodObject<{
|
|
250
|
-
table: z.ZodString;
|
|
251
|
-
joins: z.ZodArray<z.ZodObject<{
|
|
252
|
-
table: z.ZodString;
|
|
253
|
-
localColumnName: z.ZodOptional<z.ZodString>;
|
|
254
|
-
foreignColumnName: z.ZodOptional<z.ZodString>;
|
|
255
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
256
|
-
type: z.ZodEnum<["LEFT", "INNER"]>;
|
|
257
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
258
|
-
}, "strict", z.ZodTypeAny, {
|
|
246
|
+
type JoinData = z$1.infer<typeof joinDataSchema>;
|
|
247
|
+
declare const responseDataSchema: z$1.ZodObject<{
|
|
248
|
+
name: z$1.ZodString;
|
|
249
|
+
selector: z$1.ZodOptional<z$1.ZodString>;
|
|
250
|
+
subquery: z$1.ZodOptional<z$1.ZodObject<{
|
|
251
|
+
table: z$1.ZodString;
|
|
252
|
+
joins: z$1.ZodArray<z$1.ZodObject<{
|
|
253
|
+
table: z$1.ZodString;
|
|
254
|
+
localColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
255
|
+
foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
256
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
257
|
+
type: z$1.ZodEnum<["LEFT", "INNER"]>;
|
|
258
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
259
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
259
260
|
type: "LEFT" | "INNER";
|
|
260
261
|
table: string;
|
|
261
262
|
custom?: string | undefined;
|
|
@@ -270,44 +271,44 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
270
271
|
foreignColumnName?: string | undefined;
|
|
271
272
|
alias?: string | undefined;
|
|
272
273
|
}>, "many">;
|
|
273
|
-
where: z.ZodArray<z.ZodObject<{
|
|
274
|
-
tableName: z.ZodOptional<z.ZodString>;
|
|
275
|
-
columnName: z.ZodOptional<z.ZodString>;
|
|
276
|
-
operator: z.ZodOptional<z.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "
|
|
277
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
278
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
279
|
-
conjunction: z.ZodOptional<z.ZodEnum<["AND", "OR"]>>;
|
|
280
|
-
}, "strict", z.ZodTypeAny, {
|
|
281
|
-
value?: string | number | undefined;
|
|
274
|
+
where: z$1.ZodArray<z$1.ZodObject<{
|
|
275
|
+
tableName: z$1.ZodOptional<z$1.ZodString>;
|
|
276
|
+
columnName: z$1.ZodOptional<z$1.ZodString>;
|
|
277
|
+
operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
|
|
278
|
+
value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
279
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
280
|
+
conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
|
|
281
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
282
282
|
custom?: string | undefined;
|
|
283
|
+
value?: string | number | undefined;
|
|
283
284
|
tableName?: string | undefined;
|
|
284
285
|
columnName?: string | undefined;
|
|
285
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
286
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
286
287
|
conjunction?: "AND" | "OR" | undefined;
|
|
287
288
|
}, {
|
|
288
|
-
value?: string | number | undefined;
|
|
289
289
|
custom?: string | undefined;
|
|
290
|
+
value?: string | number | undefined;
|
|
290
291
|
tableName?: string | undefined;
|
|
291
292
|
columnName?: string | undefined;
|
|
292
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
293
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
293
294
|
conjunction?: "AND" | "OR" | undefined;
|
|
294
295
|
}>, "many">;
|
|
295
|
-
properties: z.ZodArray<z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>, "many">;
|
|
296
|
-
groupBy: z.ZodOptional<z.ZodObject<{
|
|
297
|
-
columnName: z.ZodString;
|
|
298
|
-
tableName: z.ZodString;
|
|
299
|
-
}, "strict", z.ZodTypeAny, {
|
|
296
|
+
properties: z$1.ZodArray<z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>, "many">;
|
|
297
|
+
groupBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
298
|
+
columnName: z$1.ZodString;
|
|
299
|
+
tableName: z$1.ZodString;
|
|
300
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
300
301
|
tableName: string;
|
|
301
302
|
columnName: string;
|
|
302
303
|
}, {
|
|
303
304
|
tableName: string;
|
|
304
305
|
columnName: string;
|
|
305
306
|
}>>;
|
|
306
|
-
orderBy: z.ZodOptional<z.ZodObject<{
|
|
307
|
-
columnName: z.ZodString;
|
|
308
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
309
|
-
tableName: z.ZodString;
|
|
310
|
-
}, "strict", z.ZodTypeAny, {
|
|
307
|
+
orderBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
308
|
+
columnName: z$1.ZodString;
|
|
309
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
310
|
+
tableName: z$1.ZodString;
|
|
311
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
311
312
|
tableName: string;
|
|
312
313
|
columnName: string;
|
|
313
314
|
order: "ASC" | "DESC";
|
|
@@ -316,7 +317,7 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
316
317
|
columnName: string;
|
|
317
318
|
order: "ASC" | "DESC";
|
|
318
319
|
}>>;
|
|
319
|
-
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
320
321
|
table: string;
|
|
321
322
|
joins: {
|
|
322
323
|
type: "LEFT" | "INNER";
|
|
@@ -327,11 +328,11 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
327
328
|
alias?: string | undefined;
|
|
328
329
|
}[];
|
|
329
330
|
where: {
|
|
330
|
-
value?: string | number | undefined;
|
|
331
331
|
custom?: string | undefined;
|
|
332
|
+
value?: string | number | undefined;
|
|
332
333
|
tableName?: string | undefined;
|
|
333
334
|
columnName?: string | undefined;
|
|
334
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
335
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
335
336
|
conjunction?: "AND" | "OR" | undefined;
|
|
336
337
|
}[];
|
|
337
338
|
properties: any[];
|
|
@@ -355,11 +356,11 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
355
356
|
alias?: string | undefined;
|
|
356
357
|
}[];
|
|
357
358
|
where: {
|
|
358
|
-
value?: string | number | undefined;
|
|
359
359
|
custom?: string | undefined;
|
|
360
|
+
value?: string | number | undefined;
|
|
360
361
|
tableName?: string | undefined;
|
|
361
362
|
columnName?: string | undefined;
|
|
362
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
363
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
363
364
|
conjunction?: "AND" | "OR" | undefined;
|
|
364
365
|
}[];
|
|
365
366
|
properties: any[];
|
|
@@ -373,8 +374,8 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
373
374
|
order: "ASC" | "DESC";
|
|
374
375
|
} | undefined;
|
|
375
376
|
}>>;
|
|
376
|
-
type: z.ZodOptional<z.ZodString>;
|
|
377
|
-
}, "strict", z.ZodTypeAny, {
|
|
377
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
378
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
378
379
|
name: string;
|
|
379
380
|
type?: string | undefined;
|
|
380
381
|
selector?: string | undefined;
|
|
@@ -389,11 +390,11 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
389
390
|
alias?: string | undefined;
|
|
390
391
|
}[];
|
|
391
392
|
where: {
|
|
392
|
-
value?: string | number | undefined;
|
|
393
393
|
custom?: string | undefined;
|
|
394
|
+
value?: string | number | undefined;
|
|
394
395
|
tableName?: string | undefined;
|
|
395
396
|
columnName?: string | undefined;
|
|
396
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
397
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
397
398
|
conjunction?: "AND" | "OR" | undefined;
|
|
398
399
|
}[];
|
|
399
400
|
properties: any[];
|
|
@@ -422,11 +423,11 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
422
423
|
alias?: string | undefined;
|
|
423
424
|
}[];
|
|
424
425
|
where: {
|
|
425
|
-
value?: string | number | undefined;
|
|
426
426
|
custom?: string | undefined;
|
|
427
|
+
value?: string | number | undefined;
|
|
427
428
|
tableName?: string | undefined;
|
|
428
429
|
columnName?: string | undefined;
|
|
429
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
430
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
430
431
|
conjunction?: "AND" | "OR" | undefined;
|
|
431
432
|
}[];
|
|
432
433
|
properties: any[];
|
|
@@ -441,24 +442,25 @@ declare const responseDataSchema: z.ZodObject<{
|
|
|
441
442
|
} | undefined;
|
|
442
443
|
} | undefined;
|
|
443
444
|
}>;
|
|
444
|
-
type ResponseData = z.infer<typeof responseDataSchema>;
|
|
445
|
-
declare const standardRouteSchema: z.ZodObject<
|
|
446
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
447
|
-
name: z.ZodString;
|
|
448
|
-
description: z.ZodString;
|
|
449
|
-
path: z.ZodString;
|
|
450
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
445
|
+
type ResponseData = z$1.infer<typeof responseDataSchema>;
|
|
446
|
+
declare const standardRouteSchema: z$1.ZodObject<{
|
|
447
|
+
method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
448
|
+
name: z$1.ZodString;
|
|
449
|
+
description: z$1.ZodString;
|
|
450
|
+
path: z$1.ZodString;
|
|
451
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
452
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
453
|
+
} & {
|
|
454
|
+
type: z$1.ZodEnum<["ONE", "ARRAY", "PAGED"]>;
|
|
455
|
+
table: z$1.ZodString;
|
|
456
|
+
joins: z$1.ZodArray<z$1.ZodObject<{
|
|
457
|
+
table: z$1.ZodString;
|
|
458
|
+
localColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
459
|
+
foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
460
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
461
|
+
type: z$1.ZodEnum<["LEFT", "INNER"]>;
|
|
462
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
463
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
462
464
|
type: "LEFT" | "INNER";
|
|
463
465
|
table: string;
|
|
464
466
|
custom?: string | undefined;
|
|
@@ -473,53 +475,53 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
473
475
|
foreignColumnName?: string | undefined;
|
|
474
476
|
alias?: string | undefined;
|
|
475
477
|
}>, "many">;
|
|
476
|
-
assignments: z.ZodArray<z.ZodObject<{
|
|
477
|
-
name: z.ZodString;
|
|
478
|
-
value: z.ZodString;
|
|
479
|
-
}, "strict", z.ZodTypeAny, {
|
|
478
|
+
assignments: z$1.ZodArray<z$1.ZodObject<{
|
|
479
|
+
name: z$1.ZodString;
|
|
480
|
+
value: z$1.ZodString;
|
|
481
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
480
482
|
value: string;
|
|
481
483
|
name: string;
|
|
482
484
|
}, {
|
|
483
485
|
value: string;
|
|
484
486
|
name: string;
|
|
485
487
|
}>, "many">;
|
|
486
|
-
where: z.ZodArray<z.ZodObject<{
|
|
487
|
-
tableName: z.ZodOptional<z.ZodString>;
|
|
488
|
-
columnName: z.ZodOptional<z.ZodString>;
|
|
489
|
-
operator: z.ZodOptional<z.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "
|
|
490
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
491
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
492
|
-
conjunction: z.ZodOptional<z.ZodEnum<["AND", "OR"]>>;
|
|
493
|
-
}, "strict", z.ZodTypeAny, {
|
|
494
|
-
value?: string | number | undefined;
|
|
488
|
+
where: z$1.ZodArray<z$1.ZodObject<{
|
|
489
|
+
tableName: z$1.ZodOptional<z$1.ZodString>;
|
|
490
|
+
columnName: z$1.ZodOptional<z$1.ZodString>;
|
|
491
|
+
operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
|
|
492
|
+
value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
493
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
494
|
+
conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
|
|
495
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
495
496
|
custom?: string | undefined;
|
|
497
|
+
value?: string | number | undefined;
|
|
496
498
|
tableName?: string | undefined;
|
|
497
499
|
columnName?: string | undefined;
|
|
498
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
500
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
499
501
|
conjunction?: "AND" | "OR" | undefined;
|
|
500
502
|
}, {
|
|
501
|
-
value?: string | number | undefined;
|
|
502
503
|
custom?: string | undefined;
|
|
504
|
+
value?: string | number | undefined;
|
|
503
505
|
tableName?: string | undefined;
|
|
504
506
|
columnName?: string | undefined;
|
|
505
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
507
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
506
508
|
conjunction?: "AND" | "OR" | undefined;
|
|
507
509
|
}>, "many">;
|
|
508
|
-
request: z.ZodArray<z.ZodObject<{
|
|
509
|
-
name: z.ZodString;
|
|
510
|
-
required: z.ZodBoolean;
|
|
511
|
-
isNullable: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
-
validator: z.ZodArray<z.ZodObject<{
|
|
513
|
-
type: z.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
|
|
514
|
-
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>;
|
|
515
|
-
}, "strict", z.ZodTypeAny, {
|
|
510
|
+
request: z$1.ZodArray<z$1.ZodObject<{
|
|
511
|
+
name: z$1.ZodString;
|
|
512
|
+
required: z$1.ZodBoolean;
|
|
513
|
+
isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
514
|
+
validator: z$1.ZodArray<z$1.ZodObject<{
|
|
515
|
+
type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
|
|
516
|
+
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
|
|
517
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
516
518
|
value: string | number | string[] | number[];
|
|
517
519
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
518
520
|
}, {
|
|
519
521
|
value: string | number | string[] | number[];
|
|
520
522
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
521
523
|
}>, "many">;
|
|
522
|
-
}, "strict", z.ZodTypeAny, {
|
|
524
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
523
525
|
name: string;
|
|
524
526
|
required: boolean;
|
|
525
527
|
validator: {
|
|
@@ -536,19 +538,19 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
536
538
|
}[];
|
|
537
539
|
isNullable?: boolean | undefined;
|
|
538
540
|
}>, "many">;
|
|
539
|
-
response: z.ZodArray<z.ZodObject<{
|
|
540
|
-
name: z.ZodString;
|
|
541
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
542
|
-
subquery: z.ZodOptional<z.ZodObject<{
|
|
543
|
-
table: z.ZodString;
|
|
544
|
-
joins: z.ZodArray<z.ZodObject<{
|
|
545
|
-
table: z.ZodString;
|
|
546
|
-
localColumnName: z.ZodOptional<z.ZodString>;
|
|
547
|
-
foreignColumnName: z.ZodOptional<z.ZodString>;
|
|
548
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
549
|
-
type: z.ZodEnum<["LEFT", "INNER"]>;
|
|
550
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
551
|
-
}, "strict", z.ZodTypeAny, {
|
|
541
|
+
response: z$1.ZodArray<z$1.ZodObject<{
|
|
542
|
+
name: z$1.ZodString;
|
|
543
|
+
selector: z$1.ZodOptional<z$1.ZodString>;
|
|
544
|
+
subquery: z$1.ZodOptional<z$1.ZodObject<{
|
|
545
|
+
table: z$1.ZodString;
|
|
546
|
+
joins: z$1.ZodArray<z$1.ZodObject<{
|
|
547
|
+
table: z$1.ZodString;
|
|
548
|
+
localColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
549
|
+
foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
550
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
551
|
+
type: z$1.ZodEnum<["LEFT", "INNER"]>;
|
|
552
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
553
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
552
554
|
type: "LEFT" | "INNER";
|
|
553
555
|
table: string;
|
|
554
556
|
custom?: string | undefined;
|
|
@@ -563,44 +565,44 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
563
565
|
foreignColumnName?: string | undefined;
|
|
564
566
|
alias?: string | undefined;
|
|
565
567
|
}>, "many">;
|
|
566
|
-
where: z.ZodArray<z.ZodObject<{
|
|
567
|
-
tableName: z.ZodOptional<z.ZodString>;
|
|
568
|
-
columnName: z.ZodOptional<z.ZodString>;
|
|
569
|
-
operator: z.ZodOptional<z.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "
|
|
570
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
571
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
572
|
-
conjunction: z.ZodOptional<z.ZodEnum<["AND", "OR"]>>;
|
|
573
|
-
}, "strict", z.ZodTypeAny, {
|
|
574
|
-
value?: string | number | undefined;
|
|
568
|
+
where: z$1.ZodArray<z$1.ZodObject<{
|
|
569
|
+
tableName: z$1.ZodOptional<z$1.ZodString>;
|
|
570
|
+
columnName: z$1.ZodOptional<z$1.ZodString>;
|
|
571
|
+
operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
|
|
572
|
+
value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
573
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
574
|
+
conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
|
|
575
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
575
576
|
custom?: string | undefined;
|
|
577
|
+
value?: string | number | undefined;
|
|
576
578
|
tableName?: string | undefined;
|
|
577
579
|
columnName?: string | undefined;
|
|
578
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
580
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
579
581
|
conjunction?: "AND" | "OR" | undefined;
|
|
580
582
|
}, {
|
|
581
|
-
value?: string | number | undefined;
|
|
582
583
|
custom?: string | undefined;
|
|
584
|
+
value?: string | number | undefined;
|
|
583
585
|
tableName?: string | undefined;
|
|
584
586
|
columnName?: string | undefined;
|
|
585
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
587
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
586
588
|
conjunction?: "AND" | "OR" | undefined;
|
|
587
589
|
}>, "many">;
|
|
588
|
-
properties: z.ZodArray<z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>, "many">;
|
|
589
|
-
groupBy: z.ZodOptional<z.ZodObject<{
|
|
590
|
-
columnName: z.ZodString;
|
|
591
|
-
tableName: z.ZodString;
|
|
592
|
-
}, "strict", z.ZodTypeAny, {
|
|
590
|
+
properties: z$1.ZodArray<z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>, "many">;
|
|
591
|
+
groupBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
592
|
+
columnName: z$1.ZodString;
|
|
593
|
+
tableName: z$1.ZodString;
|
|
594
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
593
595
|
tableName: string;
|
|
594
596
|
columnName: string;
|
|
595
597
|
}, {
|
|
596
598
|
tableName: string;
|
|
597
599
|
columnName: string;
|
|
598
600
|
}>>;
|
|
599
|
-
orderBy: z.ZodOptional<z.ZodObject<{
|
|
600
|
-
columnName: z.ZodString;
|
|
601
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
602
|
-
tableName: z.ZodString;
|
|
603
|
-
}, "strict", z.ZodTypeAny, {
|
|
601
|
+
orderBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
602
|
+
columnName: z$1.ZodString;
|
|
603
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
604
|
+
tableName: z$1.ZodString;
|
|
605
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
604
606
|
tableName: string;
|
|
605
607
|
columnName: string;
|
|
606
608
|
order: "ASC" | "DESC";
|
|
@@ -609,7 +611,7 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
609
611
|
columnName: string;
|
|
610
612
|
order: "ASC" | "DESC";
|
|
611
613
|
}>>;
|
|
612
|
-
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
613
615
|
table: string;
|
|
614
616
|
joins: {
|
|
615
617
|
type: "LEFT" | "INNER";
|
|
@@ -620,11 +622,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
620
622
|
alias?: string | undefined;
|
|
621
623
|
}[];
|
|
622
624
|
where: {
|
|
623
|
-
value?: string | number | undefined;
|
|
624
625
|
custom?: string | undefined;
|
|
626
|
+
value?: string | number | undefined;
|
|
625
627
|
tableName?: string | undefined;
|
|
626
628
|
columnName?: string | undefined;
|
|
627
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
629
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
628
630
|
conjunction?: "AND" | "OR" | undefined;
|
|
629
631
|
}[];
|
|
630
632
|
properties: any[];
|
|
@@ -648,11 +650,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
648
650
|
alias?: string | undefined;
|
|
649
651
|
}[];
|
|
650
652
|
where: {
|
|
651
|
-
value?: string | number | undefined;
|
|
652
653
|
custom?: string | undefined;
|
|
654
|
+
value?: string | number | undefined;
|
|
653
655
|
tableName?: string | undefined;
|
|
654
656
|
columnName?: string | undefined;
|
|
655
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
657
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
656
658
|
conjunction?: "AND" | "OR" | undefined;
|
|
657
659
|
}[];
|
|
658
660
|
properties: any[];
|
|
@@ -666,8 +668,8 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
666
668
|
order: "ASC" | "DESC";
|
|
667
669
|
} | undefined;
|
|
668
670
|
}>>;
|
|
669
|
-
type: z.ZodOptional<z.ZodString>;
|
|
670
|
-
}, "strict", z.ZodTypeAny, {
|
|
671
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
672
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
671
673
|
name: string;
|
|
672
674
|
type?: string | undefined;
|
|
673
675
|
selector?: string | undefined;
|
|
@@ -682,11 +684,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
682
684
|
alias?: string | undefined;
|
|
683
685
|
}[];
|
|
684
686
|
where: {
|
|
685
|
-
value?: string | number | undefined;
|
|
686
687
|
custom?: string | undefined;
|
|
688
|
+
value?: string | number | undefined;
|
|
687
689
|
tableName?: string | undefined;
|
|
688
690
|
columnName?: string | undefined;
|
|
689
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
691
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
690
692
|
conjunction?: "AND" | "OR" | undefined;
|
|
691
693
|
}[];
|
|
692
694
|
properties: any[];
|
|
@@ -715,11 +717,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
715
717
|
alias?: string | undefined;
|
|
716
718
|
}[];
|
|
717
719
|
where: {
|
|
718
|
-
value?: string | number | undefined;
|
|
719
720
|
custom?: string | undefined;
|
|
721
|
+
value?: string | number | undefined;
|
|
720
722
|
tableName?: string | undefined;
|
|
721
723
|
columnName?: string | undefined;
|
|
722
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
724
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
723
725
|
conjunction?: "AND" | "OR" | undefined;
|
|
724
726
|
}[];
|
|
725
727
|
properties: any[];
|
|
@@ -734,21 +736,21 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
734
736
|
} | undefined;
|
|
735
737
|
} | undefined;
|
|
736
738
|
}>, "many">;
|
|
737
|
-
groupBy: z.ZodOptional<z.ZodObject<{
|
|
738
|
-
columnName: z.ZodString;
|
|
739
|
-
tableName: z.ZodString;
|
|
740
|
-
}, "strict", z.ZodTypeAny, {
|
|
739
|
+
groupBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
740
|
+
columnName: z$1.ZodString;
|
|
741
|
+
tableName: z$1.ZodString;
|
|
742
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
741
743
|
tableName: string;
|
|
742
744
|
columnName: string;
|
|
743
745
|
}, {
|
|
744
746
|
tableName: string;
|
|
745
747
|
columnName: string;
|
|
746
748
|
}>>;
|
|
747
|
-
orderBy: z.ZodOptional<z.ZodObject<{
|
|
748
|
-
columnName: z.ZodString;
|
|
749
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
750
|
-
tableName: z.ZodString;
|
|
751
|
-
}, "strict", z.ZodTypeAny, {
|
|
749
|
+
orderBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
750
|
+
columnName: z$1.ZodString;
|
|
751
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
752
|
+
tableName: z$1.ZodString;
|
|
753
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
752
754
|
tableName: string;
|
|
753
755
|
columnName: string;
|
|
754
756
|
order: "ASC" | "DESC";
|
|
@@ -757,7 +759,8 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
757
759
|
columnName: string;
|
|
758
760
|
order: "ASC" | "DESC";
|
|
759
761
|
}>>;
|
|
760
|
-
}
|
|
762
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
763
|
+
scopes: string[];
|
|
761
764
|
path: string;
|
|
762
765
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
763
766
|
name: string;
|
|
@@ -771,11 +774,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
771
774
|
alias?: string | undefined;
|
|
772
775
|
}[];
|
|
773
776
|
where: {
|
|
774
|
-
value?: string | number | undefined;
|
|
775
777
|
custom?: string | undefined;
|
|
778
|
+
value?: string | number | undefined;
|
|
776
779
|
tableName?: string | undefined;
|
|
777
780
|
columnName?: string | undefined;
|
|
778
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
781
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
779
782
|
conjunction?: "AND" | "OR" | undefined;
|
|
780
783
|
}[];
|
|
781
784
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -809,11 +812,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
809
812
|
alias?: string | undefined;
|
|
810
813
|
}[];
|
|
811
814
|
where: {
|
|
812
|
-
value?: string | number | undefined;
|
|
813
815
|
custom?: string | undefined;
|
|
816
|
+
value?: string | number | undefined;
|
|
814
817
|
tableName?: string | undefined;
|
|
815
818
|
columnName?: string | undefined;
|
|
816
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
819
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
817
820
|
conjunction?: "AND" | "OR" | undefined;
|
|
818
821
|
}[];
|
|
819
822
|
properties: any[];
|
|
@@ -838,6 +841,7 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
838
841
|
order: "ASC" | "DESC";
|
|
839
842
|
} | undefined;
|
|
840
843
|
}, {
|
|
844
|
+
scopes: string[];
|
|
841
845
|
path: string;
|
|
842
846
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
843
847
|
name: string;
|
|
@@ -851,11 +855,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
851
855
|
alias?: string | undefined;
|
|
852
856
|
}[];
|
|
853
857
|
where: {
|
|
854
|
-
value?: string | number | undefined;
|
|
855
858
|
custom?: string | undefined;
|
|
859
|
+
value?: string | number | undefined;
|
|
856
860
|
tableName?: string | undefined;
|
|
857
861
|
columnName?: string | undefined;
|
|
858
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
862
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
859
863
|
conjunction?: "AND" | "OR" | undefined;
|
|
860
864
|
}[];
|
|
861
865
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -889,11 +893,11 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
889
893
|
alias?: string | undefined;
|
|
890
894
|
}[];
|
|
891
895
|
where: {
|
|
892
|
-
value?: string | number | undefined;
|
|
893
896
|
custom?: string | undefined;
|
|
897
|
+
value?: string | number | undefined;
|
|
894
898
|
tableName?: string | undefined;
|
|
895
899
|
columnName?: string | undefined;
|
|
896
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
900
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
897
901
|
conjunction?: "AND" | "OR" | undefined;
|
|
898
902
|
}[];
|
|
899
903
|
properties: any[];
|
|
@@ -918,32 +922,33 @@ declare const standardRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
918
922
|
order: "ASC" | "DESC";
|
|
919
923
|
} | undefined;
|
|
920
924
|
}>;
|
|
921
|
-
type StandardRouteData = z.infer<typeof standardRouteSchema>;
|
|
922
|
-
declare const customRouteSchema: z.ZodObject<
|
|
923
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
924
|
-
name: z.ZodString;
|
|
925
|
-
description: z.ZodString;
|
|
926
|
-
path: z.ZodString;
|
|
927
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
925
|
+
type StandardRouteData = z$1.infer<typeof standardRouteSchema>;
|
|
926
|
+
declare const customRouteSchema: z$1.ZodObject<{
|
|
927
|
+
method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
928
|
+
name: z$1.ZodString;
|
|
929
|
+
description: z$1.ZodString;
|
|
930
|
+
path: z$1.ZodString;
|
|
931
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
932
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
933
|
+
} & {
|
|
934
|
+
type: z$1.ZodEnum<["CUSTOM_ONE", "CUSTOM_ARRAY", "CUSTOM_PAGED"]>;
|
|
935
|
+
responseType: z$1.ZodUnion<[z$1.ZodString, z$1.ZodEnum<["string", "number", "boolean"]>]>;
|
|
936
|
+
requestType: z$1.ZodOptional<z$1.ZodString>;
|
|
937
|
+
request: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
938
|
+
name: z$1.ZodString;
|
|
939
|
+
required: z$1.ZodBoolean;
|
|
940
|
+
isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
941
|
+
validator: z$1.ZodArray<z$1.ZodObject<{
|
|
942
|
+
type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
|
|
943
|
+
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
|
|
944
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
940
945
|
value: string | number | string[] | number[];
|
|
941
946
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
942
947
|
}, {
|
|
943
948
|
value: string | number | string[] | number[];
|
|
944
949
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
945
950
|
}>, "many">;
|
|
946
|
-
}, "strict", z.ZodTypeAny, {
|
|
951
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
947
952
|
name: string;
|
|
948
953
|
required: boolean;
|
|
949
954
|
validator: {
|
|
@@ -960,11 +965,12 @@ declare const customRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
960
965
|
}[];
|
|
961
966
|
isNullable?: boolean | undefined;
|
|
962
967
|
}>, "many">>;
|
|
963
|
-
table: z.ZodUndefined;
|
|
964
|
-
joins: z.ZodUndefined;
|
|
965
|
-
assignments: z.ZodUndefined;
|
|
966
|
-
fileUploadType: z.ZodOptional<z.ZodEnum<["SINGLE", "MULTIPLE"]>>;
|
|
967
|
-
}
|
|
968
|
+
table: z$1.ZodUndefined;
|
|
969
|
+
joins: z$1.ZodUndefined;
|
|
970
|
+
assignments: z$1.ZodUndefined;
|
|
971
|
+
fileUploadType: z$1.ZodOptional<z$1.ZodEnum<["SINGLE", "MULTIPLE"]>>;
|
|
972
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
973
|
+
scopes: string[];
|
|
968
974
|
path: string;
|
|
969
975
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
970
976
|
name: string;
|
|
@@ -987,6 +993,7 @@ declare const customRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
987
993
|
requestType?: string | undefined;
|
|
988
994
|
fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
|
|
989
995
|
}, {
|
|
996
|
+
scopes: string[];
|
|
990
997
|
path: string;
|
|
991
998
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
992
999
|
name: string;
|
|
@@ -1009,54 +1016,57 @@ declare const customRouteSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1009
1016
|
requestType?: string | undefined;
|
|
1010
1017
|
fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
|
|
1011
1018
|
}>;
|
|
1012
|
-
type CustomRouteData = z.infer<typeof customRouteSchema>;
|
|
1019
|
+
type CustomRouteData = z$1.infer<typeof customRouteSchema>;
|
|
1013
1020
|
type RouteData = CustomRouteData | StandardRouteData;
|
|
1014
|
-
declare const tableDataSchema: z.ZodObject<{
|
|
1015
|
-
name: z.ZodString;
|
|
1016
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
1017
|
-
name: z.ZodString;
|
|
1018
|
-
type: z.ZodUnion<[z.ZodEnum<["SMALLINT", "INTEGER", "BIGINT", "DECIMAL", "NUMERIC", "REAL", "DOUBLE PRECISION", "SERIAL", "BIGSERIAL"]>, z.ZodEnum<["CHAR", "VARCHAR", "TEXT", "BYTEA"]>, z.ZodEnum<["DATE", "TIMESTAMP", "TIMESTAMPTZ", "TIME", "INTERVAL"]>, z.ZodEnum<["JSON", "JSONB"]>, z.ZodEnum<["BOOLEAN", "TINYINT", "SMALLINT", "MEDIUMINT", "INTEGER", "BIGINT", "DECIMAL", "FLOAT", "DOUBLE"]>, z.ZodEnum<["CHAR", "VARCHAR", "TINYTEXT", "TINYBLOB", "TEXT", "BLOB", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "JSON", "LONGBLOB", "ENUM"]>, z.ZodEnum<["DATE", "DATETIME", "TIME", "TIMESTAMP"]>]>;
|
|
1019
|
-
isNullable: z.ZodBoolean;
|
|
1020
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1021
|
+
declare const tableDataSchema: z$1.ZodObject<{
|
|
1022
|
+
name: z$1.ZodString;
|
|
1023
|
+
columns: z$1.ZodArray<z$1.ZodObject<{
|
|
1024
|
+
name: z$1.ZodString;
|
|
1025
|
+
type: z$1.ZodUnion<[z$1.ZodEnum<["SMALLINT", "INTEGER", "BIGINT", "DECIMAL", "NUMERIC", "REAL", "DOUBLE PRECISION", "SERIAL", "BIGSERIAL"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TEXT", "BYTEA"]>, z$1.ZodEnum<["DATE", "TIMESTAMP", "TIMESTAMPTZ", "TIME", "INTERVAL"]>, z$1.ZodEnum<["JSON", "JSONB"]>, z$1.ZodEnum<["BOOLEAN", "TINYINT", "SMALLINT", "MEDIUMINT", "INTEGER", "BIGINT", "DECIMAL", "FLOAT", "DOUBLE"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TINYTEXT", "TINYBLOB", "TEXT", "BLOB", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "JSON", "LONGBLOB", "ENUM"]>, z$1.ZodEnum<["DATE", "DATETIME", "TIME", "TIMESTAMP"]>]>;
|
|
1026
|
+
isNullable: z$1.ZodBoolean;
|
|
1027
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1028
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1029
|
+
comment: z$1.ZodOptional<z$1.ZodString>;
|
|
1030
|
+
default: z$1.ZodOptional<z$1.ZodString>;
|
|
1031
|
+
value: z$1.ZodOptional<z$1.ZodString>;
|
|
1032
|
+
isPrimary: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1033
|
+
isUnique: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1034
|
+
hasAutoIncrement: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1035
|
+
length: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1036
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1037
|
+
scopes: string[];
|
|
1029
1038
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1030
1039
|
name: string;
|
|
1031
1040
|
isNullable: boolean;
|
|
1032
1041
|
roles: string[];
|
|
1042
|
+
default?: string | undefined;
|
|
1033
1043
|
value?: string | undefined;
|
|
1034
1044
|
length?: number | undefined;
|
|
1035
|
-
default?: string | undefined;
|
|
1036
1045
|
comment?: string | undefined;
|
|
1037
1046
|
isPrimary?: boolean | undefined;
|
|
1038
1047
|
isUnique?: boolean | undefined;
|
|
1039
1048
|
hasAutoIncrement?: boolean | undefined;
|
|
1040
1049
|
}, {
|
|
1050
|
+
scopes: string[];
|
|
1041
1051
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1042
1052
|
name: string;
|
|
1043
1053
|
isNullable: boolean;
|
|
1044
1054
|
roles: string[];
|
|
1055
|
+
default?: string | undefined;
|
|
1045
1056
|
value?: string | undefined;
|
|
1046
1057
|
length?: number | undefined;
|
|
1047
|
-
default?: string | undefined;
|
|
1048
1058
|
comment?: string | undefined;
|
|
1049
1059
|
isPrimary?: boolean | undefined;
|
|
1050
1060
|
isUnique?: boolean | undefined;
|
|
1051
1061
|
hasAutoIncrement?: boolean | undefined;
|
|
1052
1062
|
}>, "many">;
|
|
1053
|
-
indexes: z.ZodArray<z.ZodObject<{
|
|
1054
|
-
name: z.ZodString;
|
|
1055
|
-
columns: z.ZodArray<z.ZodString, "many">;
|
|
1056
|
-
isUnique: z.ZodBoolean;
|
|
1057
|
-
isPrimaryKey: z.ZodBoolean;
|
|
1058
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1059
|
-
}, "strict", z.ZodTypeAny, {
|
|
1063
|
+
indexes: z$1.ZodArray<z$1.ZodObject<{
|
|
1064
|
+
name: z$1.ZodString;
|
|
1065
|
+
columns: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1066
|
+
isUnique: z$1.ZodBoolean;
|
|
1067
|
+
isPrimaryKey: z$1.ZodBoolean;
|
|
1068
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
1069
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1060
1070
|
order: "ASC" | "DESC";
|
|
1061
1071
|
name: string;
|
|
1062
1072
|
isUnique: boolean;
|
|
@@ -1069,14 +1079,14 @@ declare const tableDataSchema: z.ZodObject<{
|
|
|
1069
1079
|
columns: string[];
|
|
1070
1080
|
isPrimaryKey: boolean;
|
|
1071
1081
|
}>, "many">;
|
|
1072
|
-
foreignKeys: z.ZodArray<z.ZodObject<{
|
|
1073
|
-
name: z.ZodString;
|
|
1074
|
-
column: z.ZodString;
|
|
1075
|
-
refTable: z.ZodString;
|
|
1076
|
-
refColumn: z.ZodString;
|
|
1077
|
-
onDelete: z.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1078
|
-
onUpdate: z.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1079
|
-
}, "strict", z.ZodTypeAny, {
|
|
1082
|
+
foreignKeys: z$1.ZodArray<z$1.ZodObject<{
|
|
1083
|
+
name: z$1.ZodString;
|
|
1084
|
+
column: z$1.ZodString;
|
|
1085
|
+
refTable: z$1.ZodString;
|
|
1086
|
+
refColumn: z$1.ZodString;
|
|
1087
|
+
onDelete: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1088
|
+
onUpdate: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1089
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1080
1090
|
name: string;
|
|
1081
1091
|
column: string;
|
|
1082
1092
|
refTable: string;
|
|
@@ -1091,29 +1101,32 @@ declare const tableDataSchema: z.ZodObject<{
|
|
|
1091
1101
|
onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
|
|
1092
1102
|
onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
|
|
1093
1103
|
}>, "many">;
|
|
1094
|
-
checkConstraints: z.ZodArray<z.ZodObject<{
|
|
1095
|
-
name: z.ZodString;
|
|
1096
|
-
check: z.ZodString;
|
|
1097
|
-
}, "strict", z.ZodTypeAny, {
|
|
1104
|
+
checkConstraints: z$1.ZodArray<z$1.ZodObject<{
|
|
1105
|
+
name: z$1.ZodString;
|
|
1106
|
+
check: z$1.ZodString;
|
|
1107
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1098
1108
|
name: string;
|
|
1099
1109
|
check: string;
|
|
1100
1110
|
}, {
|
|
1101
1111
|
name: string;
|
|
1102
1112
|
check: string;
|
|
1103
1113
|
}>, "many">;
|
|
1104
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
1105
|
-
|
|
1106
|
-
|
|
1114
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1115
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1116
|
+
notify: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodLiteral<"ALL">, z$1.ZodArray<z$1.ZodString, "many">]>>;
|
|
1117
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1118
|
+
scopes: string[];
|
|
1107
1119
|
name: string;
|
|
1108
1120
|
roles: string[];
|
|
1109
1121
|
columns: {
|
|
1122
|
+
scopes: string[];
|
|
1110
1123
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1111
1124
|
name: string;
|
|
1112
1125
|
isNullable: boolean;
|
|
1113
1126
|
roles: string[];
|
|
1127
|
+
default?: string | undefined;
|
|
1114
1128
|
value?: string | undefined;
|
|
1115
1129
|
length?: number | undefined;
|
|
1116
|
-
default?: string | undefined;
|
|
1117
1130
|
comment?: string | undefined;
|
|
1118
1131
|
isPrimary?: boolean | undefined;
|
|
1119
1132
|
isUnique?: boolean | undefined;
|
|
@@ -1140,16 +1153,18 @@ declare const tableDataSchema: z.ZodObject<{
|
|
|
1140
1153
|
}[];
|
|
1141
1154
|
notify?: string[] | "ALL" | undefined;
|
|
1142
1155
|
}, {
|
|
1156
|
+
scopes: string[];
|
|
1143
1157
|
name: string;
|
|
1144
1158
|
roles: string[];
|
|
1145
1159
|
columns: {
|
|
1160
|
+
scopes: string[];
|
|
1146
1161
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1147
1162
|
name: string;
|
|
1148
1163
|
isNullable: boolean;
|
|
1149
1164
|
roles: string[];
|
|
1165
|
+
default?: string | undefined;
|
|
1150
1166
|
value?: string | undefined;
|
|
1151
1167
|
length?: number | undefined;
|
|
1152
|
-
default?: string | undefined;
|
|
1153
1168
|
comment?: string | undefined;
|
|
1154
1169
|
isPrimary?: boolean | undefined;
|
|
1155
1170
|
isUnique?: boolean | undefined;
|
|
@@ -1176,54 +1191,57 @@ declare const tableDataSchema: z.ZodObject<{
|
|
|
1176
1191
|
}[];
|
|
1177
1192
|
notify?: string[] | "ALL" | undefined;
|
|
1178
1193
|
}>;
|
|
1179
|
-
type TableData = z.infer<typeof tableDataSchema>;
|
|
1180
|
-
declare const resturaSchema: z.ZodObject<{
|
|
1181
|
-
database: z.ZodArray<z.ZodObject<{
|
|
1182
|
-
name: z.ZodString;
|
|
1183
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
1184
|
-
name: z.ZodString;
|
|
1185
|
-
type: z.ZodUnion<[z.ZodEnum<["SMALLINT", "INTEGER", "BIGINT", "DECIMAL", "NUMERIC", "REAL", "DOUBLE PRECISION", "SERIAL", "BIGSERIAL"]>, z.ZodEnum<["CHAR", "VARCHAR", "TEXT", "BYTEA"]>, z.ZodEnum<["DATE", "TIMESTAMP", "TIMESTAMPTZ", "TIME", "INTERVAL"]>, z.ZodEnum<["JSON", "JSONB"]>, z.ZodEnum<["BOOLEAN", "TINYINT", "SMALLINT", "MEDIUMINT", "INTEGER", "BIGINT", "DECIMAL", "FLOAT", "DOUBLE"]>, z.ZodEnum<["CHAR", "VARCHAR", "TINYTEXT", "TINYBLOB", "TEXT", "BLOB", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "JSON", "LONGBLOB", "ENUM"]>, z.ZodEnum<["DATE", "DATETIME", "TIME", "TIMESTAMP"]>]>;
|
|
1186
|
-
isNullable: z.ZodBoolean;
|
|
1187
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1194
|
+
type TableData = z$1.infer<typeof tableDataSchema>;
|
|
1195
|
+
declare const resturaSchema: z$1.ZodObject<{
|
|
1196
|
+
database: z$1.ZodArray<z$1.ZodObject<{
|
|
1197
|
+
name: z$1.ZodString;
|
|
1198
|
+
columns: z$1.ZodArray<z$1.ZodObject<{
|
|
1199
|
+
name: z$1.ZodString;
|
|
1200
|
+
type: z$1.ZodUnion<[z$1.ZodEnum<["SMALLINT", "INTEGER", "BIGINT", "DECIMAL", "NUMERIC", "REAL", "DOUBLE PRECISION", "SERIAL", "BIGSERIAL"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TEXT", "BYTEA"]>, z$1.ZodEnum<["DATE", "TIMESTAMP", "TIMESTAMPTZ", "TIME", "INTERVAL"]>, z$1.ZodEnum<["JSON", "JSONB"]>, z$1.ZodEnum<["BOOLEAN", "TINYINT", "SMALLINT", "MEDIUMINT", "INTEGER", "BIGINT", "DECIMAL", "FLOAT", "DOUBLE"]>, z$1.ZodEnum<["CHAR", "VARCHAR", "TINYTEXT", "TINYBLOB", "TEXT", "BLOB", "MEDIUMTEXT", "MEDIUMBLOB", "LONGTEXT", "JSON", "LONGBLOB", "ENUM"]>, z$1.ZodEnum<["DATE", "DATETIME", "TIME", "TIMESTAMP"]>]>;
|
|
1201
|
+
isNullable: z$1.ZodBoolean;
|
|
1202
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1203
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1204
|
+
comment: z$1.ZodOptional<z$1.ZodString>;
|
|
1205
|
+
default: z$1.ZodOptional<z$1.ZodString>;
|
|
1206
|
+
value: z$1.ZodOptional<z$1.ZodString>;
|
|
1207
|
+
isPrimary: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1208
|
+
isUnique: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1209
|
+
hasAutoIncrement: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1210
|
+
length: z$1.ZodOptional<z$1.ZodNumber>;
|
|
1211
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1212
|
+
scopes: string[];
|
|
1196
1213
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1197
1214
|
name: string;
|
|
1198
1215
|
isNullable: boolean;
|
|
1199
1216
|
roles: string[];
|
|
1217
|
+
default?: string | undefined;
|
|
1200
1218
|
value?: string | undefined;
|
|
1201
1219
|
length?: number | undefined;
|
|
1202
|
-
default?: string | undefined;
|
|
1203
1220
|
comment?: string | undefined;
|
|
1204
1221
|
isPrimary?: boolean | undefined;
|
|
1205
1222
|
isUnique?: boolean | undefined;
|
|
1206
1223
|
hasAutoIncrement?: boolean | undefined;
|
|
1207
1224
|
}, {
|
|
1225
|
+
scopes: string[];
|
|
1208
1226
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1209
1227
|
name: string;
|
|
1210
1228
|
isNullable: boolean;
|
|
1211
1229
|
roles: string[];
|
|
1230
|
+
default?: string | undefined;
|
|
1212
1231
|
value?: string | undefined;
|
|
1213
1232
|
length?: number | undefined;
|
|
1214
|
-
default?: string | undefined;
|
|
1215
1233
|
comment?: string | undefined;
|
|
1216
1234
|
isPrimary?: boolean | undefined;
|
|
1217
1235
|
isUnique?: boolean | undefined;
|
|
1218
1236
|
hasAutoIncrement?: boolean | undefined;
|
|
1219
1237
|
}>, "many">;
|
|
1220
|
-
indexes: z.ZodArray<z.ZodObject<{
|
|
1221
|
-
name: z.ZodString;
|
|
1222
|
-
columns: z.ZodArray<z.ZodString, "many">;
|
|
1223
|
-
isUnique: z.ZodBoolean;
|
|
1224
|
-
isPrimaryKey: z.ZodBoolean;
|
|
1225
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1226
|
-
}, "strict", z.ZodTypeAny, {
|
|
1238
|
+
indexes: z$1.ZodArray<z$1.ZodObject<{
|
|
1239
|
+
name: z$1.ZodString;
|
|
1240
|
+
columns: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1241
|
+
isUnique: z$1.ZodBoolean;
|
|
1242
|
+
isPrimaryKey: z$1.ZodBoolean;
|
|
1243
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
1244
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1227
1245
|
order: "ASC" | "DESC";
|
|
1228
1246
|
name: string;
|
|
1229
1247
|
isUnique: boolean;
|
|
@@ -1236,14 +1254,14 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1236
1254
|
columns: string[];
|
|
1237
1255
|
isPrimaryKey: boolean;
|
|
1238
1256
|
}>, "many">;
|
|
1239
|
-
foreignKeys: z.ZodArray<z.ZodObject<{
|
|
1240
|
-
name: z.ZodString;
|
|
1241
|
-
column: z.ZodString;
|
|
1242
|
-
refTable: z.ZodString;
|
|
1243
|
-
refColumn: z.ZodString;
|
|
1244
|
-
onDelete: z.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1245
|
-
onUpdate: z.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1246
|
-
}, "strict", z.ZodTypeAny, {
|
|
1257
|
+
foreignKeys: z$1.ZodArray<z$1.ZodObject<{
|
|
1258
|
+
name: z$1.ZodString;
|
|
1259
|
+
column: z$1.ZodString;
|
|
1260
|
+
refTable: z$1.ZodString;
|
|
1261
|
+
refColumn: z$1.ZodString;
|
|
1262
|
+
onDelete: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1263
|
+
onUpdate: z$1.ZodEnum<["CASCADE", "SET NULL", "RESTRICT", "NO ACTION", "SET DEFAULT"]>;
|
|
1264
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1247
1265
|
name: string;
|
|
1248
1266
|
column: string;
|
|
1249
1267
|
refTable: string;
|
|
@@ -1258,29 +1276,32 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1258
1276
|
onDelete: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
|
|
1259
1277
|
onUpdate: "CASCADE" | "SET NULL" | "RESTRICT" | "NO ACTION" | "SET DEFAULT";
|
|
1260
1278
|
}>, "many">;
|
|
1261
|
-
checkConstraints: z.ZodArray<z.ZodObject<{
|
|
1262
|
-
name: z.ZodString;
|
|
1263
|
-
check: z.ZodString;
|
|
1264
|
-
}, "strict", z.ZodTypeAny, {
|
|
1279
|
+
checkConstraints: z$1.ZodArray<z$1.ZodObject<{
|
|
1280
|
+
name: z$1.ZodString;
|
|
1281
|
+
check: z$1.ZodString;
|
|
1282
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1265
1283
|
name: string;
|
|
1266
1284
|
check: string;
|
|
1267
1285
|
}, {
|
|
1268
1286
|
name: string;
|
|
1269
1287
|
check: string;
|
|
1270
1288
|
}>, "many">;
|
|
1271
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
1272
|
-
|
|
1273
|
-
|
|
1289
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1290
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1291
|
+
notify: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodLiteral<"ALL">, z$1.ZodArray<z$1.ZodString, "many">]>>;
|
|
1292
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1293
|
+
scopes: string[];
|
|
1274
1294
|
name: string;
|
|
1275
1295
|
roles: string[];
|
|
1276
1296
|
columns: {
|
|
1297
|
+
scopes: string[];
|
|
1277
1298
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1278
1299
|
name: string;
|
|
1279
1300
|
isNullable: boolean;
|
|
1280
1301
|
roles: string[];
|
|
1302
|
+
default?: string | undefined;
|
|
1281
1303
|
value?: string | undefined;
|
|
1282
1304
|
length?: number | undefined;
|
|
1283
|
-
default?: string | undefined;
|
|
1284
1305
|
comment?: string | undefined;
|
|
1285
1306
|
isPrimary?: boolean | undefined;
|
|
1286
1307
|
isUnique?: boolean | undefined;
|
|
@@ -1307,16 +1328,18 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1307
1328
|
}[];
|
|
1308
1329
|
notify?: string[] | "ALL" | undefined;
|
|
1309
1330
|
}, {
|
|
1331
|
+
scopes: string[];
|
|
1310
1332
|
name: string;
|
|
1311
1333
|
roles: string[];
|
|
1312
1334
|
columns: {
|
|
1335
|
+
scopes: string[];
|
|
1313
1336
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
1314
1337
|
name: string;
|
|
1315
1338
|
isNullable: boolean;
|
|
1316
1339
|
roles: string[];
|
|
1340
|
+
default?: string | undefined;
|
|
1317
1341
|
value?: string | undefined;
|
|
1318
1342
|
length?: number | undefined;
|
|
1319
|
-
default?: string | undefined;
|
|
1320
1343
|
comment?: string | undefined;
|
|
1321
1344
|
isPrimary?: boolean | undefined;
|
|
1322
1345
|
isUnique?: boolean | undefined;
|
|
@@ -1343,27 +1366,28 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1343
1366
|
}[];
|
|
1344
1367
|
notify?: string[] | "ALL" | undefined;
|
|
1345
1368
|
}>, "many">;
|
|
1346
|
-
endpoints: z.ZodArray<z.ZodObject<{
|
|
1347
|
-
name: z.ZodString;
|
|
1348
|
-
description: z.ZodString;
|
|
1349
|
-
baseUrl: z.ZodString;
|
|
1350
|
-
routes: z.ZodArray<z.ZodUnion<[z.ZodObject<
|
|
1351
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
1352
|
-
name: z.ZodString;
|
|
1353
|
-
description: z.ZodString;
|
|
1354
|
-
path: z.ZodString;
|
|
1355
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1369
|
+
endpoints: z$1.ZodArray<z$1.ZodObject<{
|
|
1370
|
+
name: z$1.ZodString;
|
|
1371
|
+
description: z$1.ZodString;
|
|
1372
|
+
baseUrl: z$1.ZodString;
|
|
1373
|
+
routes: z$1.ZodArray<z$1.ZodUnion<[z$1.ZodObject<{
|
|
1374
|
+
method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
1375
|
+
name: z$1.ZodString;
|
|
1376
|
+
description: z$1.ZodString;
|
|
1377
|
+
path: z$1.ZodString;
|
|
1378
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1379
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1380
|
+
} & {
|
|
1381
|
+
type: z$1.ZodEnum<["ONE", "ARRAY", "PAGED"]>;
|
|
1382
|
+
table: z$1.ZodString;
|
|
1383
|
+
joins: z$1.ZodArray<z$1.ZodObject<{
|
|
1384
|
+
table: z$1.ZodString;
|
|
1385
|
+
localColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
1386
|
+
foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
1387
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
1388
|
+
type: z$1.ZodEnum<["LEFT", "INNER"]>;
|
|
1389
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
1390
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1367
1391
|
type: "LEFT" | "INNER";
|
|
1368
1392
|
table: string;
|
|
1369
1393
|
custom?: string | undefined;
|
|
@@ -1378,53 +1402,53 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1378
1402
|
foreignColumnName?: string | undefined;
|
|
1379
1403
|
alias?: string | undefined;
|
|
1380
1404
|
}>, "many">;
|
|
1381
|
-
assignments: z.ZodArray<z.ZodObject<{
|
|
1382
|
-
name: z.ZodString;
|
|
1383
|
-
value: z.ZodString;
|
|
1384
|
-
}, "strict", z.ZodTypeAny, {
|
|
1405
|
+
assignments: z$1.ZodArray<z$1.ZodObject<{
|
|
1406
|
+
name: z$1.ZodString;
|
|
1407
|
+
value: z$1.ZodString;
|
|
1408
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1385
1409
|
value: string;
|
|
1386
1410
|
name: string;
|
|
1387
1411
|
}, {
|
|
1388
1412
|
value: string;
|
|
1389
1413
|
name: string;
|
|
1390
1414
|
}>, "many">;
|
|
1391
|
-
where: z.ZodArray<z.ZodObject<{
|
|
1392
|
-
tableName: z.ZodOptional<z.ZodString>;
|
|
1393
|
-
columnName: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
operator: z.ZodOptional<z.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "
|
|
1395
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1396
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
1397
|
-
conjunction: z.ZodOptional<z.ZodEnum<["AND", "OR"]>>;
|
|
1398
|
-
}, "strict", z.ZodTypeAny, {
|
|
1399
|
-
value?: string | number | undefined;
|
|
1415
|
+
where: z$1.ZodArray<z$1.ZodObject<{
|
|
1416
|
+
tableName: z$1.ZodOptional<z$1.ZodString>;
|
|
1417
|
+
columnName: z$1.ZodOptional<z$1.ZodString>;
|
|
1418
|
+
operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
|
|
1419
|
+
value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
1420
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
1421
|
+
conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
|
|
1422
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1400
1423
|
custom?: string | undefined;
|
|
1424
|
+
value?: string | number | undefined;
|
|
1401
1425
|
tableName?: string | undefined;
|
|
1402
1426
|
columnName?: string | undefined;
|
|
1403
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1427
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1404
1428
|
conjunction?: "AND" | "OR" | undefined;
|
|
1405
1429
|
}, {
|
|
1406
|
-
value?: string | number | undefined;
|
|
1407
1430
|
custom?: string | undefined;
|
|
1431
|
+
value?: string | number | undefined;
|
|
1408
1432
|
tableName?: string | undefined;
|
|
1409
1433
|
columnName?: string | undefined;
|
|
1410
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1434
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1411
1435
|
conjunction?: "AND" | "OR" | undefined;
|
|
1412
1436
|
}>, "many">;
|
|
1413
|
-
request: z.ZodArray<z.ZodObject<{
|
|
1414
|
-
name: z.ZodString;
|
|
1415
|
-
required: z.ZodBoolean;
|
|
1416
|
-
isNullable: z.ZodOptional<z.ZodBoolean>;
|
|
1417
|
-
validator: z.ZodArray<z.ZodObject<{
|
|
1418
|
-
type: z.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
|
|
1419
|
-
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>;
|
|
1420
|
-
}, "strict", z.ZodTypeAny, {
|
|
1437
|
+
request: z$1.ZodArray<z$1.ZodObject<{
|
|
1438
|
+
name: z$1.ZodString;
|
|
1439
|
+
required: z$1.ZodBoolean;
|
|
1440
|
+
isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1441
|
+
validator: z$1.ZodArray<z$1.ZodObject<{
|
|
1442
|
+
type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
|
|
1443
|
+
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
|
|
1444
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1421
1445
|
value: string | number | string[] | number[];
|
|
1422
1446
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
1423
1447
|
}, {
|
|
1424
1448
|
value: string | number | string[] | number[];
|
|
1425
1449
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
1426
1450
|
}>, "many">;
|
|
1427
|
-
}, "strict", z.ZodTypeAny, {
|
|
1451
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1428
1452
|
name: string;
|
|
1429
1453
|
required: boolean;
|
|
1430
1454
|
validator: {
|
|
@@ -1441,19 +1465,19 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1441
1465
|
}[];
|
|
1442
1466
|
isNullable?: boolean | undefined;
|
|
1443
1467
|
}>, "many">;
|
|
1444
|
-
response: z.ZodArray<z.ZodObject<{
|
|
1445
|
-
name: z.ZodString;
|
|
1446
|
-
selector: z.ZodOptional<z.ZodString>;
|
|
1447
|
-
subquery: z.ZodOptional<z.ZodObject<{
|
|
1448
|
-
table: z.ZodString;
|
|
1449
|
-
joins: z.ZodArray<z.ZodObject<{
|
|
1450
|
-
table: z.ZodString;
|
|
1451
|
-
localColumnName: z.ZodOptional<z.ZodString>;
|
|
1452
|
-
foreignColumnName: z.ZodOptional<z.ZodString>;
|
|
1453
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
1454
|
-
type: z.ZodEnum<["LEFT", "INNER"]>;
|
|
1455
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
1456
|
-
}, "strict", z.ZodTypeAny, {
|
|
1468
|
+
response: z$1.ZodArray<z$1.ZodObject<{
|
|
1469
|
+
name: z$1.ZodString;
|
|
1470
|
+
selector: z$1.ZodOptional<z$1.ZodString>;
|
|
1471
|
+
subquery: z$1.ZodOptional<z$1.ZodObject<{
|
|
1472
|
+
table: z$1.ZodString;
|
|
1473
|
+
joins: z$1.ZodArray<z$1.ZodObject<{
|
|
1474
|
+
table: z$1.ZodString;
|
|
1475
|
+
localColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
1476
|
+
foreignColumnName: z$1.ZodOptional<z$1.ZodString>;
|
|
1477
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
1478
|
+
type: z$1.ZodEnum<["LEFT", "INNER"]>;
|
|
1479
|
+
alias: z$1.ZodOptional<z$1.ZodString>;
|
|
1480
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1457
1481
|
type: "LEFT" | "INNER";
|
|
1458
1482
|
table: string;
|
|
1459
1483
|
custom?: string | undefined;
|
|
@@ -1468,44 +1492,44 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1468
1492
|
foreignColumnName?: string | undefined;
|
|
1469
1493
|
alias?: string | undefined;
|
|
1470
1494
|
}>, "many">;
|
|
1471
|
-
where: z.ZodArray<z.ZodObject<{
|
|
1472
|
-
tableName: z.ZodOptional<z.ZodString>;
|
|
1473
|
-
columnName: z.ZodOptional<z.ZodString>;
|
|
1474
|
-
operator: z.ZodOptional<z.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "
|
|
1475
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1476
|
-
custom: z.ZodOptional<z.ZodString>;
|
|
1477
|
-
conjunction: z.ZodOptional<z.ZodEnum<["AND", "OR"]>>;
|
|
1478
|
-
}, "strict", z.ZodTypeAny, {
|
|
1479
|
-
value?: string | number | undefined;
|
|
1495
|
+
where: z$1.ZodArray<z$1.ZodObject<{
|
|
1496
|
+
tableName: z$1.ZodOptional<z$1.ZodString>;
|
|
1497
|
+
columnName: z$1.ZodOptional<z$1.ZodString>;
|
|
1498
|
+
operator: z$1.ZodOptional<z$1.ZodEnum<["=", "<", ">", "<=", ">=", "!=", "LIKE", "IN", "NOT IN", "STARTS WITH", "ENDS WITH", "IS", "IS NOT"]>>;
|
|
1499
|
+
value: z$1.ZodOptional<z$1.ZodUnion<[z$1.ZodString, z$1.ZodNumber]>>;
|
|
1500
|
+
custom: z$1.ZodOptional<z$1.ZodString>;
|
|
1501
|
+
conjunction: z$1.ZodOptional<z$1.ZodEnum<["AND", "OR"]>>;
|
|
1502
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1480
1503
|
custom?: string | undefined;
|
|
1504
|
+
value?: string | number | undefined;
|
|
1481
1505
|
tableName?: string | undefined;
|
|
1482
1506
|
columnName?: string | undefined;
|
|
1483
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1507
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1484
1508
|
conjunction?: "AND" | "OR" | undefined;
|
|
1485
1509
|
}, {
|
|
1486
|
-
value?: string | number | undefined;
|
|
1487
1510
|
custom?: string | undefined;
|
|
1511
|
+
value?: string | number | undefined;
|
|
1488
1512
|
tableName?: string | undefined;
|
|
1489
1513
|
columnName?: string | undefined;
|
|
1490
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1514
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1491
1515
|
conjunction?: "AND" | "OR" | undefined;
|
|
1492
1516
|
}>, "many">;
|
|
1493
|
-
properties: z.ZodArray<z.ZodLazy<z.ZodType<any, z.ZodTypeDef, any>>, "many">;
|
|
1494
|
-
groupBy: z.ZodOptional<z.ZodObject<{
|
|
1495
|
-
columnName: z.ZodString;
|
|
1496
|
-
tableName: z.ZodString;
|
|
1497
|
-
}, "strict", z.ZodTypeAny, {
|
|
1517
|
+
properties: z$1.ZodArray<z$1.ZodLazy<z$1.ZodType<any, z$1.ZodTypeDef, any>>, "many">;
|
|
1518
|
+
groupBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
1519
|
+
columnName: z$1.ZodString;
|
|
1520
|
+
tableName: z$1.ZodString;
|
|
1521
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1498
1522
|
tableName: string;
|
|
1499
1523
|
columnName: string;
|
|
1500
1524
|
}, {
|
|
1501
1525
|
tableName: string;
|
|
1502
1526
|
columnName: string;
|
|
1503
1527
|
}>>;
|
|
1504
|
-
orderBy: z.ZodOptional<z.ZodObject<{
|
|
1505
|
-
columnName: z.ZodString;
|
|
1506
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1507
|
-
tableName: z.ZodString;
|
|
1508
|
-
}, "strict", z.ZodTypeAny, {
|
|
1528
|
+
orderBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
1529
|
+
columnName: z$1.ZodString;
|
|
1530
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
1531
|
+
tableName: z$1.ZodString;
|
|
1532
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1509
1533
|
tableName: string;
|
|
1510
1534
|
columnName: string;
|
|
1511
1535
|
order: "ASC" | "DESC";
|
|
@@ -1514,7 +1538,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1514
1538
|
columnName: string;
|
|
1515
1539
|
order: "ASC" | "DESC";
|
|
1516
1540
|
}>>;
|
|
1517
|
-
}, "strip", z.ZodTypeAny, {
|
|
1541
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
1518
1542
|
table: string;
|
|
1519
1543
|
joins: {
|
|
1520
1544
|
type: "LEFT" | "INNER";
|
|
@@ -1525,11 +1549,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1525
1549
|
alias?: string | undefined;
|
|
1526
1550
|
}[];
|
|
1527
1551
|
where: {
|
|
1528
|
-
value?: string | number | undefined;
|
|
1529
1552
|
custom?: string | undefined;
|
|
1553
|
+
value?: string | number | undefined;
|
|
1530
1554
|
tableName?: string | undefined;
|
|
1531
1555
|
columnName?: string | undefined;
|
|
1532
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1556
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1533
1557
|
conjunction?: "AND" | "OR" | undefined;
|
|
1534
1558
|
}[];
|
|
1535
1559
|
properties: any[];
|
|
@@ -1553,11 +1577,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1553
1577
|
alias?: string | undefined;
|
|
1554
1578
|
}[];
|
|
1555
1579
|
where: {
|
|
1556
|
-
value?: string | number | undefined;
|
|
1557
1580
|
custom?: string | undefined;
|
|
1581
|
+
value?: string | number | undefined;
|
|
1558
1582
|
tableName?: string | undefined;
|
|
1559
1583
|
columnName?: string | undefined;
|
|
1560
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1584
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1561
1585
|
conjunction?: "AND" | "OR" | undefined;
|
|
1562
1586
|
}[];
|
|
1563
1587
|
properties: any[];
|
|
@@ -1571,8 +1595,8 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1571
1595
|
order: "ASC" | "DESC";
|
|
1572
1596
|
} | undefined;
|
|
1573
1597
|
}>>;
|
|
1574
|
-
type: z.ZodOptional<z.ZodString>;
|
|
1575
|
-
}, "strict", z.ZodTypeAny, {
|
|
1598
|
+
type: z$1.ZodOptional<z$1.ZodString>;
|
|
1599
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1576
1600
|
name: string;
|
|
1577
1601
|
type?: string | undefined;
|
|
1578
1602
|
selector?: string | undefined;
|
|
@@ -1587,11 +1611,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1587
1611
|
alias?: string | undefined;
|
|
1588
1612
|
}[];
|
|
1589
1613
|
where: {
|
|
1590
|
-
value?: string | number | undefined;
|
|
1591
1614
|
custom?: string | undefined;
|
|
1615
|
+
value?: string | number | undefined;
|
|
1592
1616
|
tableName?: string | undefined;
|
|
1593
1617
|
columnName?: string | undefined;
|
|
1594
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1618
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1595
1619
|
conjunction?: "AND" | "OR" | undefined;
|
|
1596
1620
|
}[];
|
|
1597
1621
|
properties: any[];
|
|
@@ -1620,11 +1644,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1620
1644
|
alias?: string | undefined;
|
|
1621
1645
|
}[];
|
|
1622
1646
|
where: {
|
|
1623
|
-
value?: string | number | undefined;
|
|
1624
1647
|
custom?: string | undefined;
|
|
1648
|
+
value?: string | number | undefined;
|
|
1625
1649
|
tableName?: string | undefined;
|
|
1626
1650
|
columnName?: string | undefined;
|
|
1627
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1651
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1628
1652
|
conjunction?: "AND" | "OR" | undefined;
|
|
1629
1653
|
}[];
|
|
1630
1654
|
properties: any[];
|
|
@@ -1639,21 +1663,21 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1639
1663
|
} | undefined;
|
|
1640
1664
|
} | undefined;
|
|
1641
1665
|
}>, "many">;
|
|
1642
|
-
groupBy: z.ZodOptional<z.ZodObject<{
|
|
1643
|
-
columnName: z.ZodString;
|
|
1644
|
-
tableName: z.ZodString;
|
|
1645
|
-
}, "strict", z.ZodTypeAny, {
|
|
1666
|
+
groupBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
1667
|
+
columnName: z$1.ZodString;
|
|
1668
|
+
tableName: z$1.ZodString;
|
|
1669
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1646
1670
|
tableName: string;
|
|
1647
1671
|
columnName: string;
|
|
1648
1672
|
}, {
|
|
1649
1673
|
tableName: string;
|
|
1650
1674
|
columnName: string;
|
|
1651
1675
|
}>>;
|
|
1652
|
-
orderBy: z.ZodOptional<z.ZodObject<{
|
|
1653
|
-
columnName: z.ZodString;
|
|
1654
|
-
order: z.ZodEnum<["ASC", "DESC"]>;
|
|
1655
|
-
tableName: z.ZodString;
|
|
1656
|
-
}, "strict", z.ZodTypeAny, {
|
|
1676
|
+
orderBy: z$1.ZodOptional<z$1.ZodObject<{
|
|
1677
|
+
columnName: z$1.ZodString;
|
|
1678
|
+
order: z$1.ZodEnum<["ASC", "DESC"]>;
|
|
1679
|
+
tableName: z$1.ZodString;
|
|
1680
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1657
1681
|
tableName: string;
|
|
1658
1682
|
columnName: string;
|
|
1659
1683
|
order: "ASC" | "DESC";
|
|
@@ -1662,7 +1686,8 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1662
1686
|
columnName: string;
|
|
1663
1687
|
order: "ASC" | "DESC";
|
|
1664
1688
|
}>>;
|
|
1665
|
-
}
|
|
1689
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1690
|
+
scopes: string[];
|
|
1666
1691
|
path: string;
|
|
1667
1692
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
1668
1693
|
name: string;
|
|
@@ -1676,11 +1701,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1676
1701
|
alias?: string | undefined;
|
|
1677
1702
|
}[];
|
|
1678
1703
|
where: {
|
|
1679
|
-
value?: string | number | undefined;
|
|
1680
1704
|
custom?: string | undefined;
|
|
1705
|
+
value?: string | number | undefined;
|
|
1681
1706
|
tableName?: string | undefined;
|
|
1682
1707
|
columnName?: string | undefined;
|
|
1683
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1708
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1684
1709
|
conjunction?: "AND" | "OR" | undefined;
|
|
1685
1710
|
}[];
|
|
1686
1711
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -1714,11 +1739,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1714
1739
|
alias?: string | undefined;
|
|
1715
1740
|
}[];
|
|
1716
1741
|
where: {
|
|
1717
|
-
value?: string | number | undefined;
|
|
1718
1742
|
custom?: string | undefined;
|
|
1743
|
+
value?: string | number | undefined;
|
|
1719
1744
|
tableName?: string | undefined;
|
|
1720
1745
|
columnName?: string | undefined;
|
|
1721
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1746
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1722
1747
|
conjunction?: "AND" | "OR" | undefined;
|
|
1723
1748
|
}[];
|
|
1724
1749
|
properties: any[];
|
|
@@ -1743,6 +1768,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1743
1768
|
order: "ASC" | "DESC";
|
|
1744
1769
|
} | undefined;
|
|
1745
1770
|
}, {
|
|
1771
|
+
scopes: string[];
|
|
1746
1772
|
path: string;
|
|
1747
1773
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
1748
1774
|
name: string;
|
|
@@ -1756,11 +1782,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1756
1782
|
alias?: string | undefined;
|
|
1757
1783
|
}[];
|
|
1758
1784
|
where: {
|
|
1759
|
-
value?: string | number | undefined;
|
|
1760
1785
|
custom?: string | undefined;
|
|
1786
|
+
value?: string | number | undefined;
|
|
1761
1787
|
tableName?: string | undefined;
|
|
1762
1788
|
columnName?: string | undefined;
|
|
1763
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1789
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1764
1790
|
conjunction?: "AND" | "OR" | undefined;
|
|
1765
1791
|
}[];
|
|
1766
1792
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -1794,11 +1820,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1794
1820
|
alias?: string | undefined;
|
|
1795
1821
|
}[];
|
|
1796
1822
|
where: {
|
|
1797
|
-
value?: string | number | undefined;
|
|
1798
1823
|
custom?: string | undefined;
|
|
1824
|
+
value?: string | number | undefined;
|
|
1799
1825
|
tableName?: string | undefined;
|
|
1800
1826
|
columnName?: string | undefined;
|
|
1801
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1827
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1802
1828
|
conjunction?: "AND" | "OR" | undefined;
|
|
1803
1829
|
}[];
|
|
1804
1830
|
properties: any[];
|
|
@@ -1822,31 +1848,32 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1822
1848
|
columnName: string;
|
|
1823
1849
|
order: "ASC" | "DESC";
|
|
1824
1850
|
} | undefined;
|
|
1825
|
-
}>, z.ZodObject<
|
|
1826
|
-
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
1827
|
-
name: z.ZodString;
|
|
1828
|
-
description: z.ZodString;
|
|
1829
|
-
path: z.ZodString;
|
|
1830
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1851
|
+
}>, z$1.ZodObject<{
|
|
1852
|
+
method: z$1.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
|
|
1853
|
+
name: z$1.ZodString;
|
|
1854
|
+
description: z$1.ZodString;
|
|
1855
|
+
path: z$1.ZodString;
|
|
1856
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1857
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
1858
|
+
} & {
|
|
1859
|
+
type: z$1.ZodEnum<["CUSTOM_ONE", "CUSTOM_ARRAY", "CUSTOM_PAGED"]>;
|
|
1860
|
+
responseType: z$1.ZodUnion<[z$1.ZodString, z$1.ZodEnum<["string", "number", "boolean"]>]>;
|
|
1861
|
+
requestType: z$1.ZodOptional<z$1.ZodString>;
|
|
1862
|
+
request: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
1863
|
+
name: z$1.ZodString;
|
|
1864
|
+
required: z$1.ZodBoolean;
|
|
1865
|
+
isNullable: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
1866
|
+
validator: z$1.ZodArray<z$1.ZodObject<{
|
|
1867
|
+
type: z$1.ZodEnum<["TYPE_CHECK", "MIN", "MAX", "ONE_OF"]>;
|
|
1868
|
+
value: z$1.ZodUnion<[z$1.ZodString, z$1.ZodArray<z$1.ZodString, "many">, z$1.ZodNumber, z$1.ZodArray<z$1.ZodNumber, "many">]>;
|
|
1869
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1843
1870
|
value: string | number | string[] | number[];
|
|
1844
1871
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
1845
1872
|
}, {
|
|
1846
1873
|
value: string | number | string[] | number[];
|
|
1847
1874
|
type: "TYPE_CHECK" | "MIN" | "MAX" | "ONE_OF";
|
|
1848
1875
|
}>, "many">;
|
|
1849
|
-
}, "strict", z.ZodTypeAny, {
|
|
1876
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1850
1877
|
name: string;
|
|
1851
1878
|
required: boolean;
|
|
1852
1879
|
validator: {
|
|
@@ -1863,11 +1890,12 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1863
1890
|
}[];
|
|
1864
1891
|
isNullable?: boolean | undefined;
|
|
1865
1892
|
}>, "many">>;
|
|
1866
|
-
table: z.ZodUndefined;
|
|
1867
|
-
joins: z.ZodUndefined;
|
|
1868
|
-
assignments: z.ZodUndefined;
|
|
1869
|
-
fileUploadType: z.ZodOptional<z.ZodEnum<["SINGLE", "MULTIPLE"]>>;
|
|
1870
|
-
}
|
|
1893
|
+
table: z$1.ZodUndefined;
|
|
1894
|
+
joins: z$1.ZodUndefined;
|
|
1895
|
+
assignments: z$1.ZodUndefined;
|
|
1896
|
+
fileUploadType: z$1.ZodOptional<z$1.ZodEnum<["SINGLE", "MULTIPLE"]>>;
|
|
1897
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1898
|
+
scopes: string[];
|
|
1871
1899
|
path: string;
|
|
1872
1900
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
1873
1901
|
name: string;
|
|
@@ -1890,6 +1918,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1890
1918
|
requestType?: string | undefined;
|
|
1891
1919
|
fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
|
|
1892
1920
|
}, {
|
|
1921
|
+
scopes: string[];
|
|
1893
1922
|
path: string;
|
|
1894
1923
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
1895
1924
|
name: string;
|
|
@@ -1912,11 +1941,12 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1912
1941
|
requestType?: string | undefined;
|
|
1913
1942
|
fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
|
|
1914
1943
|
}>]>, "many">;
|
|
1915
|
-
}, "strict", z.ZodTypeAny, {
|
|
1944
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
1916
1945
|
name: string;
|
|
1917
1946
|
description: string;
|
|
1918
1947
|
baseUrl: string;
|
|
1919
1948
|
routes: ({
|
|
1949
|
+
scopes: string[];
|
|
1920
1950
|
path: string;
|
|
1921
1951
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
1922
1952
|
name: string;
|
|
@@ -1930,11 +1960,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1930
1960
|
alias?: string | undefined;
|
|
1931
1961
|
}[];
|
|
1932
1962
|
where: {
|
|
1933
|
-
value?: string | number | undefined;
|
|
1934
1963
|
custom?: string | undefined;
|
|
1964
|
+
value?: string | number | undefined;
|
|
1935
1965
|
tableName?: string | undefined;
|
|
1936
1966
|
columnName?: string | undefined;
|
|
1937
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
1967
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1938
1968
|
conjunction?: "AND" | "OR" | undefined;
|
|
1939
1969
|
}[];
|
|
1940
1970
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -1968,11 +1998,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1968
1998
|
alias?: string | undefined;
|
|
1969
1999
|
}[];
|
|
1970
2000
|
where: {
|
|
1971
|
-
value?: string | number | undefined;
|
|
1972
2001
|
custom?: string | undefined;
|
|
2002
|
+
value?: string | number | undefined;
|
|
1973
2003
|
tableName?: string | undefined;
|
|
1974
2004
|
columnName?: string | undefined;
|
|
1975
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2005
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
1976
2006
|
conjunction?: "AND" | "OR" | undefined;
|
|
1977
2007
|
}[];
|
|
1978
2008
|
properties: any[];
|
|
@@ -1997,6 +2027,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
1997
2027
|
order: "ASC" | "DESC";
|
|
1998
2028
|
} | undefined;
|
|
1999
2029
|
} | {
|
|
2030
|
+
scopes: string[];
|
|
2000
2031
|
path: string;
|
|
2001
2032
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
2002
2033
|
name: string;
|
|
@@ -2024,6 +2055,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2024
2055
|
description: string;
|
|
2025
2056
|
baseUrl: string;
|
|
2026
2057
|
routes: ({
|
|
2058
|
+
scopes: string[];
|
|
2027
2059
|
path: string;
|
|
2028
2060
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
2029
2061
|
name: string;
|
|
@@ -2037,11 +2069,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2037
2069
|
alias?: string | undefined;
|
|
2038
2070
|
}[];
|
|
2039
2071
|
where: {
|
|
2040
|
-
value?: string | number | undefined;
|
|
2041
2072
|
custom?: string | undefined;
|
|
2073
|
+
value?: string | number | undefined;
|
|
2042
2074
|
tableName?: string | undefined;
|
|
2043
2075
|
columnName?: string | undefined;
|
|
2044
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2076
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
2045
2077
|
conjunction?: "AND" | "OR" | undefined;
|
|
2046
2078
|
}[];
|
|
2047
2079
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -2075,11 +2107,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2075
2107
|
alias?: string | undefined;
|
|
2076
2108
|
}[];
|
|
2077
2109
|
where: {
|
|
2078
|
-
value?: string | number | undefined;
|
|
2079
2110
|
custom?: string | undefined;
|
|
2111
|
+
value?: string | number | undefined;
|
|
2080
2112
|
tableName?: string | undefined;
|
|
2081
2113
|
columnName?: string | undefined;
|
|
2082
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2114
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
2083
2115
|
conjunction?: "AND" | "OR" | undefined;
|
|
2084
2116
|
}[];
|
|
2085
2117
|
properties: any[];
|
|
@@ -2104,6 +2136,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2104
2136
|
order: "ASC" | "DESC";
|
|
2105
2137
|
} | undefined;
|
|
2106
2138
|
} | {
|
|
2139
|
+
scopes: string[];
|
|
2107
2140
|
path: string;
|
|
2108
2141
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
2109
2142
|
name: string;
|
|
@@ -2127,22 +2160,26 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2127
2160
|
fileUploadType?: "SINGLE" | "MULTIPLE" | undefined;
|
|
2128
2161
|
})[];
|
|
2129
2162
|
}>, "many">;
|
|
2130
|
-
globalParams: z.ZodArray<z.ZodString, "many">;
|
|
2131
|
-
roles: z.ZodArray<z.ZodString, "many">;
|
|
2132
|
-
|
|
2133
|
-
|
|
2163
|
+
globalParams: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2164
|
+
roles: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2165
|
+
scopes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2166
|
+
customTypes: z$1.ZodArray<z$1.ZodString, "many">;
|
|
2167
|
+
}, "strict", z$1.ZodTypeAny, {
|
|
2168
|
+
scopes: string[];
|
|
2134
2169
|
roles: string[];
|
|
2135
2170
|
database: {
|
|
2171
|
+
scopes: string[];
|
|
2136
2172
|
name: string;
|
|
2137
2173
|
roles: string[];
|
|
2138
2174
|
columns: {
|
|
2175
|
+
scopes: string[];
|
|
2139
2176
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
2140
2177
|
name: string;
|
|
2141
2178
|
isNullable: boolean;
|
|
2142
2179
|
roles: string[];
|
|
2180
|
+
default?: string | undefined;
|
|
2143
2181
|
value?: string | undefined;
|
|
2144
2182
|
length?: number | undefined;
|
|
2145
|
-
default?: string | undefined;
|
|
2146
2183
|
comment?: string | undefined;
|
|
2147
2184
|
isPrimary?: boolean | undefined;
|
|
2148
2185
|
isUnique?: boolean | undefined;
|
|
@@ -2174,6 +2211,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2174
2211
|
description: string;
|
|
2175
2212
|
baseUrl: string;
|
|
2176
2213
|
routes: ({
|
|
2214
|
+
scopes: string[];
|
|
2177
2215
|
path: string;
|
|
2178
2216
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
2179
2217
|
name: string;
|
|
@@ -2187,11 +2225,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2187
2225
|
alias?: string | undefined;
|
|
2188
2226
|
}[];
|
|
2189
2227
|
where: {
|
|
2190
|
-
value?: string | number | undefined;
|
|
2191
2228
|
custom?: string | undefined;
|
|
2229
|
+
value?: string | number | undefined;
|
|
2192
2230
|
tableName?: string | undefined;
|
|
2193
2231
|
columnName?: string | undefined;
|
|
2194
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2232
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
2195
2233
|
conjunction?: "AND" | "OR" | undefined;
|
|
2196
2234
|
}[];
|
|
2197
2235
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -2225,11 +2263,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2225
2263
|
alias?: string | undefined;
|
|
2226
2264
|
}[];
|
|
2227
2265
|
where: {
|
|
2228
|
-
value?: string | number | undefined;
|
|
2229
2266
|
custom?: string | undefined;
|
|
2267
|
+
value?: string | number | undefined;
|
|
2230
2268
|
tableName?: string | undefined;
|
|
2231
2269
|
columnName?: string | undefined;
|
|
2232
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2270
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
2233
2271
|
conjunction?: "AND" | "OR" | undefined;
|
|
2234
2272
|
}[];
|
|
2235
2273
|
properties: any[];
|
|
@@ -2254,6 +2292,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2254
2292
|
order: "ASC" | "DESC";
|
|
2255
2293
|
} | undefined;
|
|
2256
2294
|
} | {
|
|
2295
|
+
scopes: string[];
|
|
2257
2296
|
path: string;
|
|
2258
2297
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
2259
2298
|
name: string;
|
|
@@ -2280,18 +2319,21 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2280
2319
|
globalParams: string[];
|
|
2281
2320
|
customTypes: string[];
|
|
2282
2321
|
}, {
|
|
2322
|
+
scopes: string[];
|
|
2283
2323
|
roles: string[];
|
|
2284
2324
|
database: {
|
|
2325
|
+
scopes: string[];
|
|
2285
2326
|
name: string;
|
|
2286
2327
|
roles: string[];
|
|
2287
2328
|
columns: {
|
|
2329
|
+
scopes: string[];
|
|
2288
2330
|
type: "SMALLINT" | "INTEGER" | "BIGINT" | "DECIMAL" | "NUMERIC" | "REAL" | "DOUBLE PRECISION" | "SERIAL" | "BIGSERIAL" | "CHAR" | "VARCHAR" | "TEXT" | "BYTEA" | "DATE" | "TIMESTAMP" | "TIMESTAMPTZ" | "TIME" | "INTERVAL" | "JSON" | "JSONB" | "BOOLEAN" | "TINYINT" | "MEDIUMINT" | "FLOAT" | "DOUBLE" | "TINYTEXT" | "TINYBLOB" | "BLOB" | "MEDIUMTEXT" | "MEDIUMBLOB" | "LONGTEXT" | "LONGBLOB" | "ENUM" | "DATETIME";
|
|
2289
2331
|
name: string;
|
|
2290
2332
|
isNullable: boolean;
|
|
2291
2333
|
roles: string[];
|
|
2334
|
+
default?: string | undefined;
|
|
2292
2335
|
value?: string | undefined;
|
|
2293
2336
|
length?: number | undefined;
|
|
2294
|
-
default?: string | undefined;
|
|
2295
2337
|
comment?: string | undefined;
|
|
2296
2338
|
isPrimary?: boolean | undefined;
|
|
2297
2339
|
isUnique?: boolean | undefined;
|
|
@@ -2323,6 +2365,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2323
2365
|
description: string;
|
|
2324
2366
|
baseUrl: string;
|
|
2325
2367
|
routes: ({
|
|
2368
|
+
scopes: string[];
|
|
2326
2369
|
path: string;
|
|
2327
2370
|
type: "ONE" | "ARRAY" | "PAGED";
|
|
2328
2371
|
name: string;
|
|
@@ -2336,11 +2379,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2336
2379
|
alias?: string | undefined;
|
|
2337
2380
|
}[];
|
|
2338
2381
|
where: {
|
|
2339
|
-
value?: string | number | undefined;
|
|
2340
2382
|
custom?: string | undefined;
|
|
2383
|
+
value?: string | number | undefined;
|
|
2341
2384
|
tableName?: string | undefined;
|
|
2342
2385
|
columnName?: string | undefined;
|
|
2343
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2386
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
2344
2387
|
conjunction?: "AND" | "OR" | undefined;
|
|
2345
2388
|
}[];
|
|
2346
2389
|
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
@@ -2374,11 +2417,11 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2374
2417
|
alias?: string | undefined;
|
|
2375
2418
|
}[];
|
|
2376
2419
|
where: {
|
|
2377
|
-
value?: string | number | undefined;
|
|
2378
2420
|
custom?: string | undefined;
|
|
2421
|
+
value?: string | number | undefined;
|
|
2379
2422
|
tableName?: string | undefined;
|
|
2380
2423
|
columnName?: string | undefined;
|
|
2381
|
-
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "
|
|
2424
|
+
operator?: "=" | "<" | ">" | "<=" | ">=" | "!=" | "LIKE" | "IN" | "NOT IN" | "STARTS WITH" | "ENDS WITH" | "IS" | "IS NOT" | undefined;
|
|
2382
2425
|
conjunction?: "AND" | "OR" | undefined;
|
|
2383
2426
|
}[];
|
|
2384
2427
|
properties: any[];
|
|
@@ -2403,6 +2446,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2403
2446
|
order: "ASC" | "DESC";
|
|
2404
2447
|
} | undefined;
|
|
2405
2448
|
} | {
|
|
2449
|
+
scopes: string[];
|
|
2406
2450
|
path: string;
|
|
2407
2451
|
type: "CUSTOM_ONE" | "CUSTOM_ARRAY" | "CUSTOM_PAGED";
|
|
2408
2452
|
name: string;
|
|
@@ -2429,7 +2473,7 @@ declare const resturaSchema: z.ZodObject<{
|
|
|
2429
2473
|
globalParams: string[];
|
|
2430
2474
|
customTypes: string[];
|
|
2431
2475
|
}>;
|
|
2432
|
-
type ResturaSchema = z.infer<typeof resturaSchema>;
|
|
2476
|
+
type ResturaSchema = z$1.infer<typeof resturaSchema>;
|
|
2433
2477
|
|
|
2434
2478
|
declare abstract class PsqlConnection {
|
|
2435
2479
|
readonly instanceId: UUID;
|
|
@@ -2469,7 +2513,7 @@ declare class ResturaEngine {
|
|
|
2469
2513
|
init(app: express.Application, authenticationHandler: AuthenticateHandler, psqlConnectionPool: PsqlPool): Promise<void>;
|
|
2470
2514
|
/**
|
|
2471
2515
|
* Determines if a given endpoint is public based on the HTTP method and full URL. This
|
|
2472
|
-
* is determined on whether the endpoint in the schema has no roles assigned to it.
|
|
2516
|
+
* is determined on whether the endpoint in the schema has no roles or scopes assigned to it.
|
|
2473
2517
|
*
|
|
2474
2518
|
* @param method - The HTTP method (e.g., 'GET', 'POST', 'PUT', 'PATCH', 'DELETE').
|
|
2475
2519
|
* @param fullUrl - The full URL of the endpoint.
|
|
@@ -2537,9 +2581,9 @@ declare const filterPsqlParser: peg.Parser;
|
|
|
2537
2581
|
declare abstract class SqlEngine {
|
|
2538
2582
|
runQueryForRoute(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject | any[] | boolean>;
|
|
2539
2583
|
protected getTableSchema(schema: ResturaSchema, tableName: string): TableData;
|
|
2540
|
-
protected
|
|
2541
|
-
protected
|
|
2542
|
-
protected abstract generateJoinStatements(req: RsRequest<unknown>, joins: JoinData[], baseTable: string, routeData: StandardRouteData, schema: ResturaSchema,
|
|
2584
|
+
protected canRequesterAccessColumn(requesterRole: string | undefined | null, requesterScopes: string[] | undefined | null, schema: ResturaSchema, item: ResponseData, joins: JoinData[]): boolean;
|
|
2585
|
+
protected canRequesterAccessTable(requesterRole: string | undefined, requesterScopes: string[] | undefined, schema: ResturaSchema, tableName: string): boolean;
|
|
2586
|
+
protected abstract generateJoinStatements(req: RsRequest<unknown>, joins: JoinData[], baseTable: string, routeData: StandardRouteData, schema: ResturaSchema, sqlParams: string[]): string;
|
|
2543
2587
|
protected abstract generateGroupBy(routeData: StandardRouteData): string;
|
|
2544
2588
|
protected abstract generateOrderBy(req: RsRequest<unknown>, routeData: StandardRouteData): string;
|
|
2545
2589
|
protected abstract generateWhereClause(req: RsRequest<unknown>, where: WhereData[], routeData: StandardRouteData, sqlParams: string[]): string;
|
|
@@ -2548,7 +2592,7 @@ declare abstract class SqlEngine {
|
|
|
2548
2592
|
protected replaceGlobalParamKeywords(value: string | number, routeData: RouteData, req: RsRequest<unknown>, sqlParams: string[]): string | number;
|
|
2549
2593
|
abstract generateDatabaseSchemaFromSchema(schema: ResturaSchema): string;
|
|
2550
2594
|
abstract diffDatabaseToSchema(schema: ResturaSchema): Promise<string>;
|
|
2551
|
-
protected abstract createNestedSelect(req: RsRequest<unknown>, schema: ResturaSchema, item: ResponseData, routeData: StandardRouteData,
|
|
2595
|
+
protected abstract createNestedSelect(req: RsRequest<unknown>, schema: ResturaSchema, item: ResponseData, routeData: StandardRouteData, sqlParams: string[]): string;
|
|
2552
2596
|
protected abstract executeCreateRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject>;
|
|
2553
2597
|
protected abstract executeGetRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject | any[]>;
|
|
2554
2598
|
protected abstract executeUpdateRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject>;
|
|
@@ -2559,21 +2603,22 @@ declare class PsqlEngine extends SqlEngine {
|
|
|
2559
2603
|
private psqlConnectionPool;
|
|
2560
2604
|
setupTriggerListeners: Promise<void> | undefined;
|
|
2561
2605
|
private triggerClient;
|
|
2562
|
-
|
|
2606
|
+
private scratchDbName;
|
|
2607
|
+
constructor(psqlConnectionPool: PsqlPool, shouldListenForDbTriggers?: boolean, scratchDatabaseSuffix?: string);
|
|
2563
2608
|
close(): Promise<void>;
|
|
2564
2609
|
private setupPgReturnTypes;
|
|
2565
2610
|
private listenForDbTriggers;
|
|
2566
2611
|
private handleTrigger;
|
|
2567
2612
|
createDatabaseFromSchema(schema: ResturaSchema, connection: PsqlPool): Promise<string>;
|
|
2568
2613
|
generateDatabaseSchemaFromSchema(schema: ResturaSchema): string;
|
|
2569
|
-
private
|
|
2614
|
+
private getNewPublicSchemaAndScratchPool;
|
|
2570
2615
|
diffDatabaseToSchema(schema: ResturaSchema): Promise<string>;
|
|
2571
|
-
protected createNestedSelect(req: RsRequest<unknown>, schema: ResturaSchema, item: ResponseData, routeData: StandardRouteData,
|
|
2616
|
+
protected createNestedSelect(req: RsRequest<unknown>, schema: ResturaSchema, item: ResponseData, routeData: StandardRouteData, sqlParams: string[]): string;
|
|
2572
2617
|
protected executeCreateRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject>;
|
|
2573
2618
|
protected executeGetRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject | any[]>;
|
|
2574
2619
|
protected executeUpdateRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<DynamicObject>;
|
|
2575
2620
|
protected executeDeleteRequest(req: RsRequest<unknown>, routeData: StandardRouteData, schema: ResturaSchema): Promise<boolean>;
|
|
2576
|
-
protected generateJoinStatements(req: RsRequest<unknown>, joins: JoinData[], baseTable: string, routeData: StandardRouteData | CustomRouteData, schema: ResturaSchema,
|
|
2621
|
+
protected generateJoinStatements(req: RsRequest<unknown>, joins: JoinData[], baseTable: string, routeData: StandardRouteData | CustomRouteData, schema: ResturaSchema, sqlParams: string[]): string;
|
|
2577
2622
|
protected generateGroupBy(routeData: StandardRouteData): string;
|
|
2578
2623
|
protected generateOrderBy(req: RsRequest<unknown>, routeData: StandardRouteData): string;
|
|
2579
2624
|
protected generateWhereClause(req: RsRequest<unknown>, where: WhereData[], routeData: StandardRouteData | CustomRouteData, sqlParams: string[]): string;
|
|
@@ -2640,4 +2685,4 @@ declare function isValueNumber(value: unknown): value is number;
|
|
|
2640
2685
|
*/
|
|
2641
2686
|
declare function SQL(strings: TemplateStringsArray, ...values: unknown[]): string;
|
|
2642
2687
|
|
|
2643
|
-
export { type ActionColumnChangeData, type ActionColumnChangeFilter, type ActionRowDeleteData, type ActionRowDeleteFilter, type ActionRowInsertData, type ActionRowInsertFilter, type ApiMethod, type AsyncExpressApplication, type AuthenticateHandler, type
|
|
2688
|
+
export { type ActionColumnChangeData, type ActionColumnChangeFilter, type ActionRowDeleteData, type ActionRowDeleteFilter, type ActionRowInsertData, type ActionRowInsertFilter, type ApiMethod, type AsyncExpressApplication, type AuthenticateHandler, type AuthenticatedRequesterDetails, type ConjunctionTypes, type DatabaseActionData, type DynamicObject, type ErrorCode, type EventType, HtmlStatusCodes, type LoggerConfigSchema, type MatchTypes, type MutationType, type OnValidAuthenticationCallback, type PageQuery, PsqlConnection, PsqlEngine, PsqlPool, PsqlTransaction, type QueryMetadata, type RequesterDetails, type ResturaConfigSchema, RsError, type RsErrorData, type RsErrorInternalData, type RsHeaders, type RsPagedResponseData, type RsRequest, type RsResponse, type RsResponseData, type RsRouteHandler, SQL, type SchemaChangeValue, type SchemaPreview, type SqlMutationData, type StandardOrderTypes, type TriggerResult, escapeColumnName, eventManager, filterPsqlParser, insertObjectQuery, isValueNumber, logger, questionMarksToOrderedParams, restura, updateObjectQuery };
|