@graphoria/server 0.1.4 → 0.2.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/src/analyzeQuery/resolveVariables.d.ts.map +1 -1
- package/dist/src/config/helpers/operationHelper.d.ts +60 -6
- package/dist/src/config/helpers/operationHelper.d.ts.map +1 -1
- package/dist/src/config/helpers/operationHelper.test.d.ts +2 -0
- package/dist/src/config/helpers/operationHelper.test.d.ts.map +1 -0
- package/dist/src/config/index.d.ts +65 -60
- package/dist/src/config/index.d.ts.map +1 -1
- package/dist/src/config/types/ai.d.ts +9 -3
- package/dist/src/config/types/ai.d.ts.map +1 -1
- package/dist/src/config/types/auth.d.ts +55 -15
- package/dist/src/config/types/auth.d.ts.map +1 -1
- package/dist/src/config/types/cron.d.ts +96 -2
- package/dist/src/config/types/cron.d.ts.map +1 -1
- package/dist/src/config/types/db.d.ts +186 -24
- package/dist/src/config/types/db.d.ts.map +1 -1
- package/dist/src/config/types/index.d.ts +3 -3
- package/dist/src/config/types/index.d.ts.map +1 -1
- package/dist/src/config/types/operation.d.ts +49 -17
- package/dist/src/config/types/operation.d.ts.map +1 -1
- package/dist/src/config/types/queue.d.ts +59 -12
- package/dist/src/config/types/queue.d.ts.map +1 -1
- package/dist/src/config/types/remote-rest.d.ts +10 -1
- package/dist/src/config/types/remote-rest.d.ts.map +1 -1
- package/dist/src/config/types/remote-schema.d.ts +13 -3
- package/dist/src/config/types/remote-schema.d.ts.map +1 -1
- package/dist/src/config/types/virtual-columns.d.ts +1 -1
- package/dist/src/config/types/virtual-columns.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/index.d.ts +52 -4
- package/dist/src/configuration/getSchemas/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts +26 -2
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/mergeEntities/index.test.d.ts +2 -0
- package/dist/src/configuration/getSchemas/mergeEntities/index.test.d.ts.map +1 -0
- package/dist/src/configuration/getSchemas/type-definition-generator/index.d.ts.map +1 -1
- package/dist/src/configuration/index.d.ts +40 -4
- package/dist/src/configuration/index.d.ts.map +1 -1
- package/dist/src/configuration/rest/generateOpenAPI.d.ts.map +1 -1
- package/dist/src/configuration/rest/handleRESTRequestFactory.d.ts.map +1 -1
- package/dist/src/databases/common.d.ts +3 -1
- package/dist/src/databases/common.d.ts.map +1 -1
- package/dist/src/databases/core/query-builder.d.ts +7 -1
- package/dist/src/databases/core/query-builder.d.ts.map +1 -1
- package/dist/src/databases/directives.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/connection.d.ts +1 -1
- package/dist/src/databases/engines/mssql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/getStructure.d.ts +7 -0
- package/dist/src/databases/engines/mssql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/getStructure.d.ts +7 -0
- package/dist/src/databases/engines/mysql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/placeholders.d.ts +22 -0
- package/dist/src/databases/engines/mysql/placeholders.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/placeholders.test.d.ts +2 -0
- package/dist/src/databases/engines/mysql/placeholders.test.d.ts.map +1 -0
- package/dist/src/databases/engines/mysql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/getStructure.d.ts +7 -0
- package/dist/src/databases/engines/postgresql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/query/index.d.ts.map +1 -1
- package/dist/src/databases/high-level-operations.d.ts +14 -1
- package/dist/src/databases/high-level-operations.d.ts.map +1 -1
- package/dist/src/databases/metadata/structure.d.ts +7 -0
- package/dist/src/databases/metadata/structure.d.ts.map +1 -1
- package/dist/src/databases/sqlTypeUtils.d.ts.map +1 -1
- package/dist/src/databases/transformers/data-transformers.d.ts +39 -2
- package/dist/src/databases/transformers/data-transformers.d.ts.map +1 -1
- package/dist/src/singletons/env.d.ts +21 -3
- package/dist/src/singletons/env.d.ts.map +1 -1
- package/dist/src/types/configuration.d.ts +1 -1
- package/dist/src/types/configuration.d.ts.map +1 -1
- package/dist/src/types/env.d.ts +127 -51
- package/dist/src/types/env.d.ts.map +1 -1
- package/dist/src/types/resolver.d.ts +12 -2
- package/dist/src/types/resolver.d.ts.map +1 -1
- package/dist/src/types/zod/auth.d.ts +6 -6
- package/dist/src/types/zod/configuration.d.ts +85 -45
- package/dist/src/types/zod/configuration.d.ts.map +1 -1
- package/dist/src/types/zod/cron.d.ts +1 -1
- package/dist/src/types/zod/cron.d.ts.map +1 -1
- package/dist/src/types/zod/db.d.ts +167 -8
- package/dist/src/types/zod/db.d.ts.map +1 -1
- package/dist/src/types/zod/queue.d.ts +26 -26
- package/dist/src/types/zod/strict-keys.test.d.ts +2 -0
- package/dist/src/types/zod/strict-keys.test.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/analyzeQuery/resolveVariables.ts +37 -7
- package/src/config/helpers/operationHelper.ts +146 -5
- package/src/config/index.ts +139 -62
- package/src/config/types/ai.ts +2 -2
- package/src/config/types/auth.ts +37 -6
- package/src/config/types/cron.ts +1 -1
- package/src/config/types/db.ts +56 -9
- package/src/config/types/index.ts +5 -0
- package/src/config/types/operation.ts +49 -9
- package/src/config/types/queue.ts +8 -8
- package/src/config/types/remote-rest.ts +1 -1
- package/src/config/types/remote-schema.ts +2 -2
- package/src/config/types/virtual-columns.ts +1 -1
- package/src/configuration/getSchemas/mergeEntities/index.ts +6 -0
- package/src/configuration/getSchemas/type-definition-generator/index.ts +13 -4
- package/src/configuration/rest/generateOpenAPI.ts +5 -9
- package/src/configuration/rest/handleRESTRequestFactory.ts +40 -14
- package/src/databases/common.ts +279 -83
- package/src/databases/directives.ts +26 -8
- package/src/databases/engines/mssql/connection.ts +1 -1
- package/src/databases/engines/mssql/getStructure.ts +1 -0
- package/src/databases/engines/mssql/query/index.ts +29 -11
- package/src/databases/engines/mysql/auth.ts +2 -2
- package/src/databases/engines/mysql/connection.ts +5 -4
- package/src/databases/engines/mysql/getStructure.ts +61 -29
- package/src/databases/engines/mysql/placeholders.ts +84 -0
- package/src/databases/engines/mysql/query/index.ts +49 -4
- package/src/databases/engines/postgresql/getStructure.ts +1 -0
- package/src/databases/engines/postgresql/query/index.ts +40 -2
- package/src/databases/high-level-operations.ts +25 -0
- package/src/databases/sqlTypeUtils.ts +3 -1
- package/src/subscriptions/strategies/index.ts +1 -1
- package/src/subscriptions/strategies/queue.ts +1 -1
- package/src/types/configuration.ts +7 -1
- package/src/types/resolver.ts +17 -1
- package/src/types/zod/configuration.ts +1 -1
- package/src/types/zod/db.ts +4 -0
package/dist/src/types/env.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
21
21
|
user: z.ZodString;
|
|
22
22
|
password: z.ZodString;
|
|
23
23
|
database: z.ZodString;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strict>;
|
|
25
25
|
fieldNaming: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
26
26
|
repository: z.ZodOptional<z.ZodCustom<import("../config").CustomRepositoryFactory<import("./zod/db").DatabaseType>, import("../config").CustomRepositoryFactory<import("./zod/db").DatabaseType>>>;
|
|
27
27
|
onConnect: z.ZodOptional<z.ZodCustom<import("../config").OnConnectHandler<import("./zod/db").DatabaseType>, import("../config").OnConnectHandler<import("./zod/db").DatabaseType>>>;
|
|
@@ -36,20 +36,36 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
36
36
|
function: z.ZodOptional<z.ZodString>;
|
|
37
37
|
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
38
38
|
expression: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$strict>>>>;
|
|
40
40
|
relationships: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
41
|
schema: z.ZodString;
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
columns: z.ZodArray<z.ZodObject<{
|
|
44
44
|
source: z.ZodString;
|
|
45
45
|
target: z.ZodString;
|
|
46
|
-
}, z.core.$
|
|
47
|
-
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
source: z.ZodOptional<z.ZodString>;
|
|
49
|
+
target: z.ZodOptional<z.ZodString>;
|
|
50
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
eq: "eq";
|
|
52
|
+
neq: "neq";
|
|
53
|
+
gt: "gt";
|
|
54
|
+
gte: "gte";
|
|
55
|
+
lt: "lt";
|
|
56
|
+
lte: "lte";
|
|
57
|
+
like: "like";
|
|
58
|
+
is_null: "is_null";
|
|
59
|
+
is_not_null: "is_not_null";
|
|
60
|
+
}>>>;
|
|
61
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
62
|
+
}, z.core.$strict>>>;
|
|
63
|
+
}, z.core.$strict>>>>;
|
|
48
64
|
description: z.ZodOptional<z.ZodString>;
|
|
49
65
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
50
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$strict>>>>>>>;
|
|
51
67
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
52
|
-
}, z.core.$
|
|
68
|
+
}, z.core.$strict>>;
|
|
53
69
|
connectionOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
54
70
|
max: z.ZodDefault<z.ZodNumber>;
|
|
55
71
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
@@ -58,20 +74,20 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
58
74
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
59
75
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
60
76
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
61
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
78
|
pool: z.ZodDefault<z.ZodObject<{
|
|
63
79
|
max: z.ZodDefault<z.ZodNumber>;
|
|
64
80
|
min: z.ZodDefault<z.ZodNumber>;
|
|
65
81
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
66
|
-
}, z.core.$
|
|
82
|
+
}, z.core.$strict>>;
|
|
67
83
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
68
84
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
69
85
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
70
86
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
71
87
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
72
88
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
73
|
-
}, z.core.$
|
|
74
|
-
}, z.core.$
|
|
89
|
+
}, z.core.$strict>]>>;
|
|
90
|
+
}, z.core.$strict>>>;
|
|
75
91
|
queues: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
76
92
|
name: z.ZodString;
|
|
77
93
|
autoSetup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -81,13 +97,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
81
97
|
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
82
98
|
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
83
99
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
84
|
-
}, z.core.$
|
|
100
|
+
}, z.core.$strict>>;
|
|
85
101
|
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
86
102
|
topic: z.ZodString;
|
|
87
103
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
88
104
|
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
89
105
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
90
|
-
}, z.core.$
|
|
106
|
+
}, z.core.$strict>>>>;
|
|
91
107
|
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
92
108
|
topic: z.ZodString;
|
|
93
109
|
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -96,7 +112,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
96
112
|
durable: z.ZodOptional<z.ZodBoolean>;
|
|
97
113
|
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
98
114
|
handler: z.ZodOptional<z.ZodCustom<import("./zod/queue").SubscriberHandler, import("./zod/queue").SubscriberHandler>>;
|
|
99
|
-
}, z.core.$
|
|
115
|
+
}, z.core.$strict>>>>;
|
|
100
116
|
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
101
117
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
102
118
|
headers: "headers";
|
|
@@ -106,7 +122,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
106
122
|
}>>>;
|
|
107
123
|
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
108
124
|
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
109
|
-
}, z.core.$
|
|
125
|
+
}, z.core.$strict>>>>;
|
|
110
126
|
type: z.ZodLiteral<"rabbitmq">;
|
|
111
127
|
connection: z.ZodUnion<readonly [z.ZodURL, z.ZodObject<{
|
|
112
128
|
hostname: z.ZodDefault<z.ZodString>;
|
|
@@ -114,8 +130,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
114
130
|
username: z.ZodOptional<z.ZodString>;
|
|
115
131
|
password: z.ZodOptional<z.ZodString>;
|
|
116
132
|
vhost: z.ZodDefault<z.ZodString>;
|
|
117
|
-
}, z.core.$
|
|
118
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$strict>]>;
|
|
134
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
119
135
|
name: string;
|
|
120
136
|
autoSetup: boolean;
|
|
121
137
|
enabled: boolean;
|
|
@@ -232,13 +248,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
232
248
|
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
233
249
|
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
234
250
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
235
|
-
}, z.core.$
|
|
251
|
+
}, z.core.$strict>>;
|
|
236
252
|
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
237
253
|
topic: z.ZodString;
|
|
238
254
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
239
255
|
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
240
256
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
241
|
-
}, z.core.$
|
|
257
|
+
}, z.core.$strict>>>>;
|
|
242
258
|
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
243
259
|
topic: z.ZodString;
|
|
244
260
|
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -247,7 +263,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
247
263
|
durable: z.ZodOptional<z.ZodBoolean>;
|
|
248
264
|
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
249
265
|
handler: z.ZodOptional<z.ZodCustom<import("./zod/queue").SubscriberHandler, import("./zod/queue").SubscriberHandler>>;
|
|
250
|
-
}, z.core.$
|
|
266
|
+
}, z.core.$strict>>>>;
|
|
251
267
|
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
252
268
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
253
269
|
headers: "headers";
|
|
@@ -257,7 +273,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
257
273
|
}>>>;
|
|
258
274
|
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
259
275
|
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
260
|
-
}, z.core.$
|
|
276
|
+
}, z.core.$strict>>>>;
|
|
261
277
|
type: z.ZodLiteral<"kafka">;
|
|
262
278
|
connection: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
263
279
|
brokers: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
@@ -271,9 +287,9 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
271
287
|
}>>>;
|
|
272
288
|
username: z.ZodString;
|
|
273
289
|
password: z.ZodString;
|
|
274
|
-
}, z.core.$
|
|
275
|
-
}, z.core.$
|
|
276
|
-
}, z.core.$
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
}, z.core.$strict>]>;
|
|
292
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
277
293
|
name: string;
|
|
278
294
|
autoSetup: boolean;
|
|
279
295
|
enabled: boolean;
|
|
@@ -403,7 +419,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
403
419
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
404
420
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
405
421
|
onTick: z.ZodOptional<z.ZodCustom<import("./zod/cron").TickCallback<Record<string, unknown>>, import("./zod/cron").TickCallback<Record<string, unknown>>>>;
|
|
406
|
-
}, z.core.$
|
|
422
|
+
}, z.core.$strict>>>>;
|
|
407
423
|
operations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
408
424
|
description: z.ZodOptional<z.ZodString>;
|
|
409
425
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -414,7 +430,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
414
430
|
init: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationInitHook<any>, import("./zod/operation").OperationInitHook<any>>>;
|
|
415
431
|
beforeRequest: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationBeforeRequestHook<any, any, any>, import("./zod/operation").OperationBeforeRequestHook<any, any, any>>>;
|
|
416
432
|
afterRequest: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationAfterRequestHook<any>, import("./zod/operation").OperationAfterRequestHook<any>>>;
|
|
417
|
-
}, z.core.$
|
|
433
|
+
}, z.core.$strict>>;
|
|
418
434
|
rest: z.ZodOptional<z.ZodObject<{
|
|
419
435
|
path: z.ZodString;
|
|
420
436
|
method: z.ZodDefault<z.ZodEnum<{
|
|
@@ -427,11 +443,11 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
427
443
|
pathParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
428
444
|
queryParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
429
445
|
body: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
430
|
-
}, z.core.$
|
|
446
|
+
}, z.core.$strict>>;
|
|
431
447
|
graphql: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
432
448
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
433
449
|
name: z.ZodOptional<z.ZodString>;
|
|
434
|
-
}, z.core.$
|
|
450
|
+
}, z.core.$strict>>>;
|
|
435
451
|
cache: z.ZodOptional<z.ZodObject<{
|
|
436
452
|
max: z.ZodOptional<z.ZodNumber>;
|
|
437
453
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -440,8 +456,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
440
456
|
updateAgeOnGet: z.ZodOptional<z.ZodBoolean>;
|
|
441
457
|
updateAgeOnHas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
442
458
|
ttlAutopurge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
443
|
-
}, z.core.$
|
|
444
|
-
}, z.core.$
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
}, z.core.$strict>>>>;
|
|
445
461
|
auth: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
446
462
|
enabled: z.ZodBoolean;
|
|
447
463
|
database: z.ZodString;
|
|
@@ -450,7 +466,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
450
466
|
permissions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodObject<{
|
|
451
467
|
tables: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodObject<{
|
|
452
468
|
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
453
|
-
filter: z.ZodOptional<z.
|
|
469
|
+
filter: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
454
470
|
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
455
471
|
column: z.ZodString;
|
|
456
472
|
direction: z.ZodEnum<{
|
|
@@ -461,15 +477,15 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
461
477
|
DESC_NULLS_FIRST: "DESC_NULLS_FIRST";
|
|
462
478
|
DESC_NULLS_LAST: "DESC_NULLS_LAST";
|
|
463
479
|
}>;
|
|
464
|
-
}, z.core.$
|
|
465
|
-
}, z.core.$
|
|
480
|
+
}, z.core.$strict>>>;
|
|
481
|
+
}, z.core.$strict>]>>]>>>;
|
|
466
482
|
storedProcedures: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
467
483
|
queues: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
468
484
|
operations: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
469
485
|
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
470
486
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
471
|
-
}, z.core.$
|
|
472
|
-
}, z.core.$
|
|
487
|
+
}, z.core.$strict>>>>>;
|
|
488
|
+
}, z.core.$strict>>>, z.ZodTransform<{
|
|
473
489
|
permissions: {
|
|
474
490
|
[k: string]: {
|
|
475
491
|
tables: "ALL" | {
|
|
@@ -496,7 +512,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
496
512
|
permissions: Record<string, {
|
|
497
513
|
tables: string[] | "ALL" | Record<string, "ALL" | {
|
|
498
514
|
columns: string[] | "ALL";
|
|
499
|
-
filter?: Record<string,
|
|
515
|
+
filter?: Record<string, unknown> | undefined;
|
|
500
516
|
orderBy?: {
|
|
501
517
|
column: string;
|
|
502
518
|
direction: "ASC" | "DESC" | "ASC_NULLS_FIRST" | "ASC_NULLS_LAST" | "DESC_NULLS_FIRST" | "DESC_NULLS_LAST";
|
|
@@ -519,8 +535,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
519
535
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
520
536
|
introspection: z.ZodOptional<z.ZodObject<{
|
|
521
537
|
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
522
|
-
}, z.core.$
|
|
523
|
-
}, z.core.$
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
}, z.core.$strict>>>>;
|
|
524
540
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
525
541
|
name: z.ZodString;
|
|
526
542
|
url: z.ZodOptional<z.ZodURL>;
|
|
@@ -531,20 +547,20 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
531
547
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
532
548
|
forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
533
549
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
534
|
-
}, z.core.$
|
|
550
|
+
}, z.core.$strict>>>>;
|
|
535
551
|
ai: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
536
552
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
537
553
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
538
554
|
endpoint: z.ZodDefault<z.ZodString>;
|
|
539
555
|
mcp: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
540
556
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
541
|
-
}, z.core.$
|
|
542
|
-
}, z.core.$
|
|
543
|
-
}, z.core.$
|
|
557
|
+
}, z.core.$strict>>>;
|
|
558
|
+
}, z.core.$strict>>>;
|
|
559
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
544
560
|
enabledDatabases: {
|
|
545
561
|
name: string;
|
|
546
562
|
enabled: boolean;
|
|
547
|
-
type: "mssql" | "
|
|
563
|
+
type: "mssql" | "pg" | "mysql";
|
|
548
564
|
connection: {
|
|
549
565
|
host: string;
|
|
550
566
|
port: number;
|
|
@@ -574,6 +590,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
574
590
|
source: string;
|
|
575
591
|
target: string;
|
|
576
592
|
}[];
|
|
593
|
+
conditions?: {
|
|
594
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
595
|
+
source?: string | undefined;
|
|
596
|
+
target?: string | undefined;
|
|
597
|
+
value?: string | number | boolean | undefined;
|
|
598
|
+
}[] | undefined;
|
|
577
599
|
}[];
|
|
578
600
|
columnDescriptions: Record<string, string>;
|
|
579
601
|
description?: string | undefined;
|
|
@@ -606,7 +628,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
606
628
|
databaseEntity: {
|
|
607
629
|
name: string;
|
|
608
630
|
enabled: boolean;
|
|
609
|
-
type: "mssql" | "
|
|
631
|
+
type: "mssql" | "pg" | "mysql";
|
|
610
632
|
connection: {
|
|
611
633
|
host: string;
|
|
612
634
|
port: number;
|
|
@@ -636,6 +658,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
636
658
|
source: string;
|
|
637
659
|
target: string;
|
|
638
660
|
}[];
|
|
661
|
+
conditions?: {
|
|
662
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
663
|
+
source?: string | undefined;
|
|
664
|
+
target?: string | undefined;
|
|
665
|
+
value?: string | number | boolean | undefined;
|
|
666
|
+
}[] | undefined;
|
|
639
667
|
}[];
|
|
640
668
|
columnDescriptions: Record<string, string>;
|
|
641
669
|
description?: string | undefined;
|
|
@@ -689,7 +717,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
689
717
|
databases: {
|
|
690
718
|
name: string;
|
|
691
719
|
enabled: boolean;
|
|
692
|
-
type: "mssql" | "
|
|
720
|
+
type: "mssql" | "pg" | "mysql";
|
|
693
721
|
connection: {
|
|
694
722
|
host: string;
|
|
695
723
|
port: number;
|
|
@@ -719,6 +747,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
719
747
|
source: string;
|
|
720
748
|
target: string;
|
|
721
749
|
}[];
|
|
750
|
+
conditions?: {
|
|
751
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
752
|
+
source?: string | undefined;
|
|
753
|
+
target?: string | undefined;
|
|
754
|
+
value?: string | number | boolean | undefined;
|
|
755
|
+
}[] | undefined;
|
|
722
756
|
}[];
|
|
723
757
|
columnDescriptions: Record<string, string>;
|
|
724
758
|
description?: string | undefined;
|
|
@@ -977,7 +1011,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
977
1011
|
databases: {
|
|
978
1012
|
name: string;
|
|
979
1013
|
enabled: boolean;
|
|
980
|
-
type: "mssql" | "
|
|
1014
|
+
type: "mssql" | "pg" | "mysql";
|
|
981
1015
|
connection: {
|
|
982
1016
|
host: string;
|
|
983
1017
|
port: number;
|
|
@@ -1007,6 +1041,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1007
1041
|
source: string;
|
|
1008
1042
|
target: string;
|
|
1009
1043
|
}[];
|
|
1044
|
+
conditions?: {
|
|
1045
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
1046
|
+
source?: string | undefined;
|
|
1047
|
+
target?: string | undefined;
|
|
1048
|
+
value?: string | number | boolean | undefined;
|
|
1049
|
+
}[] | undefined;
|
|
1010
1050
|
}[];
|
|
1011
1051
|
columnDescriptions: Record<string, string>;
|
|
1012
1052
|
description?: string | undefined;
|
|
@@ -1332,7 +1372,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1332
1372
|
enabledDatabases: {
|
|
1333
1373
|
name: string;
|
|
1334
1374
|
enabled: boolean;
|
|
1335
|
-
type: "mssql" | "
|
|
1375
|
+
type: "mssql" | "pg" | "mysql";
|
|
1336
1376
|
connection: {
|
|
1337
1377
|
host: string;
|
|
1338
1378
|
port: number;
|
|
@@ -1362,6 +1402,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1362
1402
|
source: string;
|
|
1363
1403
|
target: string;
|
|
1364
1404
|
}[];
|
|
1405
|
+
conditions?: {
|
|
1406
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
1407
|
+
source?: string | undefined;
|
|
1408
|
+
target?: string | undefined;
|
|
1409
|
+
value?: string | number | boolean | undefined;
|
|
1410
|
+
}[] | undefined;
|
|
1365
1411
|
}[];
|
|
1366
1412
|
columnDescriptions: Record<string, string>;
|
|
1367
1413
|
description?: string | undefined;
|
|
@@ -1394,7 +1440,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1394
1440
|
databaseEntity: {
|
|
1395
1441
|
name: string;
|
|
1396
1442
|
enabled: boolean;
|
|
1397
|
-
type: "mssql" | "
|
|
1443
|
+
type: "mssql" | "pg" | "mysql";
|
|
1398
1444
|
connection: {
|
|
1399
1445
|
host: string;
|
|
1400
1446
|
port: number;
|
|
@@ -1424,6 +1470,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1424
1470
|
source: string;
|
|
1425
1471
|
target: string;
|
|
1426
1472
|
}[];
|
|
1473
|
+
conditions?: {
|
|
1474
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
1475
|
+
source?: string | undefined;
|
|
1476
|
+
target?: string | undefined;
|
|
1477
|
+
value?: string | number | boolean | undefined;
|
|
1478
|
+
}[] | undefined;
|
|
1427
1479
|
}[];
|
|
1428
1480
|
columnDescriptions: Record<string, string>;
|
|
1429
1481
|
description?: string | undefined;
|
|
@@ -1477,7 +1529,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1477
1529
|
databases: {
|
|
1478
1530
|
name: string;
|
|
1479
1531
|
enabled: boolean;
|
|
1480
|
-
type: "mssql" | "
|
|
1532
|
+
type: "mssql" | "pg" | "mysql";
|
|
1481
1533
|
connection: {
|
|
1482
1534
|
host: string;
|
|
1483
1535
|
port: number;
|
|
@@ -1507,6 +1559,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1507
1559
|
source: string;
|
|
1508
1560
|
target: string;
|
|
1509
1561
|
}[];
|
|
1562
|
+
conditions?: {
|
|
1563
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
1564
|
+
source?: string | undefined;
|
|
1565
|
+
target?: string | undefined;
|
|
1566
|
+
value?: string | number | boolean | undefined;
|
|
1567
|
+
}[] | undefined;
|
|
1510
1568
|
}[];
|
|
1511
1569
|
columnDescriptions: Record<string, string>;
|
|
1512
1570
|
description?: string | undefined;
|
|
@@ -1856,7 +1914,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1856
1914
|
enabledDatabases: {
|
|
1857
1915
|
name: string;
|
|
1858
1916
|
enabled: boolean;
|
|
1859
|
-
type: "mssql" | "
|
|
1917
|
+
type: "mssql" | "pg" | "mysql";
|
|
1860
1918
|
connection: {
|
|
1861
1919
|
host: string;
|
|
1862
1920
|
port: number;
|
|
@@ -1886,6 +1944,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1886
1944
|
source: string;
|
|
1887
1945
|
target: string;
|
|
1888
1946
|
}[];
|
|
1947
|
+
conditions?: {
|
|
1948
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
1949
|
+
source?: string | undefined;
|
|
1950
|
+
target?: string | undefined;
|
|
1951
|
+
value?: string | number | boolean | undefined;
|
|
1952
|
+
}[] | undefined;
|
|
1889
1953
|
}[];
|
|
1890
1954
|
columnDescriptions: Record<string, string>;
|
|
1891
1955
|
description?: string | undefined;
|
|
@@ -1918,7 +1982,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1918
1982
|
databaseEntity: {
|
|
1919
1983
|
name: string;
|
|
1920
1984
|
enabled: boolean;
|
|
1921
|
-
type: "mssql" | "
|
|
1985
|
+
type: "mssql" | "pg" | "mysql";
|
|
1922
1986
|
connection: {
|
|
1923
1987
|
host: string;
|
|
1924
1988
|
port: number;
|
|
@@ -1948,6 +2012,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1948
2012
|
source: string;
|
|
1949
2013
|
target: string;
|
|
1950
2014
|
}[];
|
|
2015
|
+
conditions?: {
|
|
2016
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
2017
|
+
source?: string | undefined;
|
|
2018
|
+
target?: string | undefined;
|
|
2019
|
+
value?: string | number | boolean | undefined;
|
|
2020
|
+
}[] | undefined;
|
|
1951
2021
|
}[];
|
|
1952
2022
|
columnDescriptions: Record<string, string>;
|
|
1953
2023
|
description?: string | undefined;
|
|
@@ -2001,7 +2071,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
2001
2071
|
databases: {
|
|
2002
2072
|
name: string;
|
|
2003
2073
|
enabled: boolean;
|
|
2004
|
-
type: "mssql" | "
|
|
2074
|
+
type: "mssql" | "pg" | "mysql";
|
|
2005
2075
|
connection: {
|
|
2006
2076
|
host: string;
|
|
2007
2077
|
port: number;
|
|
@@ -2031,6 +2101,12 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
2031
2101
|
source: string;
|
|
2032
2102
|
target: string;
|
|
2033
2103
|
}[];
|
|
2104
|
+
conditions?: {
|
|
2105
|
+
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
2106
|
+
source?: string | undefined;
|
|
2107
|
+
target?: string | undefined;
|
|
2108
|
+
value?: string | number | boolean | undefined;
|
|
2109
|
+
}[] | undefined;
|
|
2034
2110
|
}[];
|
|
2035
2111
|
columnDescriptions: Record<string, string>;
|
|
2036
2112
|
description?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/types/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/types/env.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAoCD,CAAC;2BAAW,CAAC;8BAC1B,CAAC;;;;;;2BAEW,CAAC;kCAAc,CAAC;+BAAkB,CAAC;;;;;;qBAEnC,CAAC;uBAAqB,CAAC;;;;;4BAEtB,CAAC;2BAAW,CAAC;8BACxB,CAAC;;uBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;uBAAqB,CAAC;;;;;4BAEtB,CAAC;2BAAW,CAAC;8BACxB,CAAC;;uBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4E5B,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAC9C,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,GAAG;IACzC,MAAM,CAAC,EAAE,OAAO,MAAM,EAAE,MAAM,GAAG,OAAO,MAAM,EAAE,aAAa,CAAC;CAC/D,CAAC;AAEF,OAAO,QAAQ,KAAK,CAAC;IACnB,UAAU,GAAI,SAAQ,QAAQ;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RemoteRESTResolved, RemoteRESTRoute } from "../remoteREST/types";
|
|
2
2
|
import type { RemoteSchemaResolved } from "../remoteSchemas/types";
|
|
3
|
-
import type { Publisher } from "./configuration";
|
|
3
|
+
import type { Publisher, Subscriber } from "./configuration";
|
|
4
4
|
import type { ProcedureResolver, TableResolver } from "./db";
|
|
5
5
|
import type { TypedOperation } from "./zod/operation";
|
|
6
6
|
/**
|
|
@@ -13,6 +13,8 @@ export declare enum EntitySource {
|
|
|
13
13
|
STORED_PROCEDURE = "stored_procedure",
|
|
14
14
|
/** Message queue (RabbitMQ, Kafka, etc.) */
|
|
15
15
|
QUEUE_PUBLISHER = "queue_publisher",
|
|
16
|
+
/** Message queue subscriber (exposed as a GraphQL subscription) */
|
|
17
|
+
QUEUE_SUBSCRIBER = "queue_subscriber",
|
|
16
18
|
/** Authentication mutations (login, refresh, etc.) */
|
|
17
19
|
AUTH = "auth",
|
|
18
20
|
/** Custom operation handlers */
|
|
@@ -51,6 +53,13 @@ export type QueueResolverEntry = ResolverEntryBase & {
|
|
|
51
53
|
source: EntitySource.QUEUE_PUBLISHER;
|
|
52
54
|
resolver: Publisher;
|
|
53
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* Resolver entry for message queue subscribers
|
|
58
|
+
*/
|
|
59
|
+
export type QueueSubscriberResolverEntry = ResolverEntryBase & {
|
|
60
|
+
source: EntitySource.QUEUE_SUBSCRIBER;
|
|
61
|
+
resolver: Subscriber;
|
|
62
|
+
};
|
|
54
63
|
/**
|
|
55
64
|
* Resolver entry for authentication operations
|
|
56
65
|
*/
|
|
@@ -100,7 +109,7 @@ export type AIResolverEntry = ResolverEntryBase & {
|
|
|
100
109
|
/**
|
|
101
110
|
* Union type of all resolver entries
|
|
102
111
|
*/
|
|
103
|
-
export type ResolverEntry = TableResolverEntry | StoredProcedureResolverEntry | QueueResolverEntry | AuthResolverEntry | OperationResolverEntry | RemoteSchemaResolverEntry | RemoteRESTResolverEntry | AIResolverEntry;
|
|
112
|
+
export type ResolverEntry = TableResolverEntry | StoredProcedureResolverEntry | QueueResolverEntry | QueueSubscriberResolverEntry | AuthResolverEntry | OperationResolverEntry | RemoteSchemaResolverEntry | RemoteRESTResolverEntry | AIResolverEntry;
|
|
104
113
|
/**
|
|
105
114
|
* Registry type - plain object for fast access
|
|
106
115
|
*/
|
|
@@ -112,6 +121,7 @@ export declare const createResolverEntry: {
|
|
|
112
121
|
table: (resolver: TableResolver) => TableResolverEntry;
|
|
113
122
|
storedProcedure: (resolver: ProcedureResolver) => StoredProcedureResolverEntry;
|
|
114
123
|
queuePublisher: (resolver: Publisher) => QueueResolverEntry;
|
|
124
|
+
queueSubscriber: (resolver: Subscriber) => QueueSubscriberResolverEntry;
|
|
115
125
|
auth: (name: string, operation: AuthResolverEntry["resolver"]["operation"]) => AuthResolverEntry;
|
|
116
126
|
operation: (resolver: TypedOperation<unknown, unknown, unknown>) => OperationResolverEntry;
|
|
117
127
|
remoteSchema: (remoteSchema: RemoteSchemaResolved, originalFieldName: string) => RemoteSchemaResolverEntry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/types/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../src/types/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD;;GAEG;AACH,oBAAY,YAAY;IACtB,6BAA6B;IAC7B,KAAK,UAAU;IACf,gCAAgC;IAChC,gBAAgB,qBAAqB;IACrC,4CAA4C;IAC5C,eAAe,oBAAoB;IACnC,mEAAmE;IACnE,gBAAgB,qBAAqB;IACrC,sDAAsD;IACtD,IAAI,SAAS;IACb,gCAAgC;IAChC,SAAS,cAAc;IACvB,4BAA4B;IAC5B,aAAa,kBAAkB;IAC/B,gCAAgC;IAChC,WAAW,gBAAgB;IAC3B,qBAAqB;IACrB,EAAE,OAAO;CACV;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD,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;IACxD,MAAM,EAAE,YAAY,CAAC,WAAW,CAAC;IACjC,QAAQ,EAAE;QACR,UAAU,EAAE,kBAAkB,CAAC;QAC/B,KAAK,EAAE,eAAe,CAAC;KACxB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,iBAAiB,GAAG;IAChD,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;IACxB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,kBAAkB,GAClB,4BAA4B,GAC5B,kBAAkB,GAClB,4BAA4B,GAC5B,iBAAiB,GACjB,sBAAsB,GACtB,yBAAyB,GACzB,uBAAuB,GACvB,eAAe,CAAC;AAEpB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,mBAAmB;sBACZ,aAAa,KAAG,kBAAkB;gCAKxB,iBAAiB,KAAG,4BAA4B;+BAKjD,SAAS,KAAG,kBAAkB;gCAK7B,UAAU,KAAG,4BAA4B;iBAM7D,MAAM,aACD,iBAAiB,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC,KACpD,iBAAiB;0BAME,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,KAAG,sBAAsB;iCAMxE,oBAAoB,qBACf,MAAM,KACxB,yBAAyB;6BAMd,kBAAkB,SACvB,eAAe,KACrB,uBAAuB;eAKf,MAAM,KAAG,eAAe;CAIpC,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const AuthZod: import("zod").ZodPipe<import("zod").ZodDefault<imp
|
|
|
18
18
|
permissions: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodDefault<import("zod").ZodObject<{
|
|
19
19
|
tables: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodLiteral<"ALL">, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"ALL">, import("zod").ZodObject<{
|
|
20
20
|
columns: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"ALL">, import("zod").ZodArray<import("zod").ZodString>]>;
|
|
21
|
-
filter: import("zod").ZodOptional<import("zod").
|
|
21
|
+
filter: import("zod").ZodOptional<import("zod").ZodType<Record<string, unknown>, unknown, import("zod/v4/core").$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
22
22
|
orderBy: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
23
23
|
column: import("zod").ZodString;
|
|
24
24
|
direction: import("zod").ZodEnum<{
|
|
@@ -29,15 +29,15 @@ export declare const AuthZod: import("zod").ZodPipe<import("zod").ZodDefault<imp
|
|
|
29
29
|
DESC_NULLS_FIRST: "DESC_NULLS_FIRST";
|
|
30
30
|
DESC_NULLS_LAST: "DESC_NULLS_LAST";
|
|
31
31
|
}>;
|
|
32
|
-
}, import("zod/v4/core").$
|
|
33
|
-
}, import("zod/v4/core").$
|
|
32
|
+
}, import("zod/v4/core").$strict>>>;
|
|
33
|
+
}, import("zod/v4/core").$strict>]>>]>>>;
|
|
34
34
|
storedProcedures: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodLiteral<"ALL">]>>>;
|
|
35
35
|
queues: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodLiteral<"ALL">]>>>;
|
|
36
36
|
operations: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodLiteral<"ALL">]>>>;
|
|
37
37
|
remoteSchemas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodLiteral<"ALL">]>>>;
|
|
38
38
|
remoteREST: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodString>, import("zod").ZodLiteral<"ALL">]>>>;
|
|
39
|
-
}, import("zod/v4/core").$
|
|
40
|
-
}, import("zod/v4/core").$
|
|
39
|
+
}, import("zod/v4/core").$strict>>>>>;
|
|
40
|
+
}, import("zod/v4/core").$strict>>>, import("zod").ZodTransform<{
|
|
41
41
|
permissions: {
|
|
42
42
|
[k: string]: {
|
|
43
43
|
tables: "ALL" | TablePermissionsDictionary;
|
|
@@ -60,7 +60,7 @@ export declare const AuthZod: import("zod").ZodPipe<import("zod").ZodDefault<imp
|
|
|
60
60
|
permissions: Record<string, {
|
|
61
61
|
tables: string[] | "ALL" | Record<string, "ALL" | {
|
|
62
62
|
columns: string[] | "ALL";
|
|
63
|
-
filter?: Record<string,
|
|
63
|
+
filter?: Record<string, unknown> | undefined;
|
|
64
64
|
orderBy?: {
|
|
65
65
|
column: string;
|
|
66
66
|
direction: "ASC" | "DESC" | "ASC_NULLS_FIRST" | "ASC_NULLS_LAST" | "DESC_NULLS_FIRST" | "DESC_NULLS_LAST";
|