@graphoria/server 0.1.5 → 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 +102 -29
- package/dist/src/config/types/db.d.ts.map +1 -1
- package/dist/src/config/types/index.d.ts +1 -1
- 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 +4 -4
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts +2 -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 +4 -4
- 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 +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/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.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/query/index.d.ts.map +1 -1
- package/dist/src/databases/high-level-operations.d.ts +1 -1
- package/dist/src/databases/sqlTypeUtils.d.ts.map +1 -1
- package/dist/src/databases/transformers/data-transformers.d.ts +2 -2
- package/dist/src/singletons/env.d.ts +3 -3
- package/dist/src/types/env.d.ts +52 -52
- 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 +46 -46
- 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 +12 -12
- 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 +10 -10
- package/src/config/types/index.ts +2 -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 +151 -65
- package/src/databases/directives.ts +26 -8
- package/src/databases/engines/mssql/connection.ts +1 -1
- 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 -30
- package/src/databases/engines/mysql/placeholders.ts +84 -0
- package/src/databases/engines/mysql/query/index.ts +49 -4
- package/src/databases/engines/postgresql/query/index.ts +40 -2
- 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/resolver.ts +17 -1
- package/src/types/zod/configuration.ts +1 -1
|
@@ -26,7 +26,7 @@ export declare const buildTableResolver: (tables: Tables, table: Table, db: Data
|
|
|
26
26
|
db: {
|
|
27
27
|
name: string;
|
|
28
28
|
enabled: boolean;
|
|
29
|
-
type: "mssql" | "
|
|
29
|
+
type: "mssql" | "pg" | "mysql";
|
|
30
30
|
connection: {
|
|
31
31
|
host: string;
|
|
32
32
|
port: number;
|
|
@@ -166,7 +166,7 @@ export declare const buildProcedureResolver: (sp: StoredProcedure, db: Database)
|
|
|
166
166
|
db: {
|
|
167
167
|
name: string;
|
|
168
168
|
enabled: boolean;
|
|
169
|
-
type: "mssql" | "
|
|
169
|
+
type: "mssql" | "pg" | "mysql";
|
|
170
170
|
connection: {
|
|
171
171
|
host: string;
|
|
172
172
|
port: number;
|
|
@@ -6,7 +6,7 @@ export declare const env: {
|
|
|
6
6
|
enabledDatabases: {
|
|
7
7
|
name: string;
|
|
8
8
|
enabled: boolean;
|
|
9
|
-
type: "mssql" | "
|
|
9
|
+
type: "mssql" | "pg" | "mysql";
|
|
10
10
|
connection: {
|
|
11
11
|
host: string;
|
|
12
12
|
port: number;
|
|
@@ -74,7 +74,7 @@ export declare const env: {
|
|
|
74
74
|
databaseEntity: {
|
|
75
75
|
name: string;
|
|
76
76
|
enabled: boolean;
|
|
77
|
-
type: "mssql" | "
|
|
77
|
+
type: "mssql" | "pg" | "mysql";
|
|
78
78
|
connection: {
|
|
79
79
|
host: string;
|
|
80
80
|
port: number;
|
|
@@ -163,7 +163,7 @@ export declare const env: {
|
|
|
163
163
|
databases: {
|
|
164
164
|
name: string;
|
|
165
165
|
enabled: boolean;
|
|
166
|
-
type: "mssql" | "
|
|
166
|
+
type: "mssql" | "pg" | "mysql";
|
|
167
167
|
connection: {
|
|
168
168
|
host: string;
|
|
169
169
|
port: number;
|
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,14 +36,14 @@ 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.$
|
|
46
|
+
}, z.core.$strict>>;
|
|
47
47
|
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
48
|
source: z.ZodOptional<z.ZodString>;
|
|
49
49
|
target: z.ZodOptional<z.ZodString>;
|
|
@@ -59,13 +59,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
59
59
|
is_not_null: "is_not_null";
|
|
60
60
|
}>>>;
|
|
61
61
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
62
|
-
}, z.core.$
|
|
63
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strict>>>;
|
|
63
|
+
}, z.core.$strict>>>>;
|
|
64
64
|
description: z.ZodOptional<z.ZodString>;
|
|
65
65
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
66
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$strict>>>>>>>;
|
|
67
67
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
68
|
-
}, z.core.$
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
69
|
connectionOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
70
70
|
max: z.ZodDefault<z.ZodNumber>;
|
|
71
71
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
@@ -74,20 +74,20 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
74
74
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
75
75
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
76
76
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
77
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
78
|
pool: z.ZodDefault<z.ZodObject<{
|
|
79
79
|
max: z.ZodDefault<z.ZodNumber>;
|
|
80
80
|
min: z.ZodDefault<z.ZodNumber>;
|
|
81
81
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
82
|
-
}, z.core.$
|
|
82
|
+
}, z.core.$strict>>;
|
|
83
83
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
84
84
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
85
85
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
86
86
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
87
87
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
88
88
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
89
|
-
}, z.core.$
|
|
90
|
-
}, z.core.$
|
|
89
|
+
}, z.core.$strict>]>>;
|
|
90
|
+
}, z.core.$strict>>>;
|
|
91
91
|
queues: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodPipe<z.ZodObject<{
|
|
92
92
|
name: z.ZodString;
|
|
93
93
|
autoSetup: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -97,13 +97,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
97
97
|
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
98
98
|
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
99
99
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
100
|
-
}, z.core.$
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
101
|
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
102
102
|
topic: z.ZodString;
|
|
103
103
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
104
104
|
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
105
105
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
106
|
-
}, z.core.$
|
|
106
|
+
}, z.core.$strict>>>>;
|
|
107
107
|
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
108
108
|
topic: z.ZodString;
|
|
109
109
|
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -112,7 +112,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
112
112
|
durable: z.ZodOptional<z.ZodBoolean>;
|
|
113
113
|
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
114
114
|
handler: z.ZodOptional<z.ZodCustom<import("./zod/queue").SubscriberHandler, import("./zod/queue").SubscriberHandler>>;
|
|
115
|
-
}, z.core.$
|
|
115
|
+
}, z.core.$strict>>>>;
|
|
116
116
|
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
117
117
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
118
118
|
headers: "headers";
|
|
@@ -122,7 +122,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
122
122
|
}>>>;
|
|
123
123
|
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
124
124
|
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
125
|
-
}, z.core.$
|
|
125
|
+
}, z.core.$strict>>>>;
|
|
126
126
|
type: z.ZodLiteral<"rabbitmq">;
|
|
127
127
|
connection: z.ZodUnion<readonly [z.ZodURL, z.ZodObject<{
|
|
128
128
|
hostname: z.ZodDefault<z.ZodString>;
|
|
@@ -130,8 +130,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
130
130
|
username: z.ZodOptional<z.ZodString>;
|
|
131
131
|
password: z.ZodOptional<z.ZodString>;
|
|
132
132
|
vhost: z.ZodDefault<z.ZodString>;
|
|
133
|
-
}, z.core.$
|
|
134
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$strict>]>;
|
|
134
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
135
135
|
name: string;
|
|
136
136
|
autoSetup: boolean;
|
|
137
137
|
enabled: boolean;
|
|
@@ -248,13 +248,13 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
248
248
|
maxDelay: z.ZodDefault<z.ZodNumber>;
|
|
249
249
|
multiplier: z.ZodDefault<z.ZodNumber>;
|
|
250
250
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
251
|
-
}, z.core.$
|
|
251
|
+
}, z.core.$strict>>;
|
|
252
252
|
publishers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
253
253
|
topic: z.ZodString;
|
|
254
254
|
routingKey: z.ZodOptional<z.ZodString>;
|
|
255
255
|
persistent: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
256
256
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
257
|
-
}, z.core.$
|
|
257
|
+
}, z.core.$strict>>>>;
|
|
258
258
|
subscribers: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
259
259
|
topic: z.ZodString;
|
|
260
260
|
pattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -263,7 +263,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
263
263
|
durable: z.ZodOptional<z.ZodBoolean>;
|
|
264
264
|
autoDelete: z.ZodOptional<z.ZodBoolean>;
|
|
265
265
|
handler: z.ZodOptional<z.ZodCustom<import("./zod/queue").SubscriberHandler, import("./zod/queue").SubscriberHandler>>;
|
|
266
|
-
}, z.core.$
|
|
266
|
+
}, z.core.$strict>>>>;
|
|
267
267
|
topics: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
268
268
|
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
269
269
|
headers: "headers";
|
|
@@ -273,7 +273,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
273
273
|
}>>>;
|
|
274
274
|
durable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
275
275
|
autoDelete: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
276
|
-
}, z.core.$
|
|
276
|
+
}, z.core.$strict>>>>;
|
|
277
277
|
type: z.ZodLiteral<"kafka">;
|
|
278
278
|
connection: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
279
279
|
brokers: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
@@ -287,9 +287,9 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
287
287
|
}>>>;
|
|
288
288
|
username: z.ZodString;
|
|
289
289
|
password: z.ZodString;
|
|
290
|
-
}, z.core.$
|
|
291
|
-
}, z.core.$
|
|
292
|
-
}, z.core.$
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
}, z.core.$strict>]>;
|
|
292
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
293
293
|
name: string;
|
|
294
294
|
autoSetup: boolean;
|
|
295
295
|
enabled: boolean;
|
|
@@ -419,7 +419,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
419
419
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
420
420
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
421
421
|
onTick: z.ZodOptional<z.ZodCustom<import("./zod/cron").TickCallback<Record<string, unknown>>, import("./zod/cron").TickCallback<Record<string, unknown>>>>;
|
|
422
|
-
}, z.core.$
|
|
422
|
+
}, z.core.$strict>>>>;
|
|
423
423
|
operations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
424
424
|
description: z.ZodOptional<z.ZodString>;
|
|
425
425
|
query: z.ZodOptional<z.ZodString>;
|
|
@@ -430,7 +430,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
430
430
|
init: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationInitHook<any>, import("./zod/operation").OperationInitHook<any>>>;
|
|
431
431
|
beforeRequest: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationBeforeRequestHook<any, any, any>, import("./zod/operation").OperationBeforeRequestHook<any, any, any>>>;
|
|
432
432
|
afterRequest: z.ZodOptional<z.ZodCustom<import("./zod/operation").OperationAfterRequestHook<any>, import("./zod/operation").OperationAfterRequestHook<any>>>;
|
|
433
|
-
}, z.core.$
|
|
433
|
+
}, z.core.$strict>>;
|
|
434
434
|
rest: z.ZodOptional<z.ZodObject<{
|
|
435
435
|
path: z.ZodString;
|
|
436
436
|
method: z.ZodDefault<z.ZodEnum<{
|
|
@@ -443,11 +443,11 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
443
443
|
pathParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
444
444
|
queryParams: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
445
445
|
body: z.ZodOptional<z.ZodCustom<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
446
|
-
}, z.core.$
|
|
446
|
+
}, z.core.$strict>>;
|
|
447
447
|
graphql: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
448
448
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
449
449
|
name: z.ZodOptional<z.ZodString>;
|
|
450
|
-
}, z.core.$
|
|
450
|
+
}, z.core.$strict>>>;
|
|
451
451
|
cache: z.ZodOptional<z.ZodObject<{
|
|
452
452
|
max: z.ZodOptional<z.ZodNumber>;
|
|
453
453
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -456,8 +456,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
456
456
|
updateAgeOnGet: z.ZodOptional<z.ZodBoolean>;
|
|
457
457
|
updateAgeOnHas: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
458
458
|
ttlAutopurge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
459
|
-
}, z.core.$
|
|
460
|
-
}, z.core.$
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
}, z.core.$strict>>>>;
|
|
461
461
|
auth: z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
462
462
|
enabled: z.ZodBoolean;
|
|
463
463
|
database: z.ZodString;
|
|
@@ -466,7 +466,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
466
466
|
permissions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDefault<z.ZodObject<{
|
|
467
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<{
|
|
468
468
|
columns: z.ZodUnion<readonly [z.ZodLiteral<"ALL">, z.ZodArray<z.ZodString>]>;
|
|
469
|
-
filter: z.ZodOptional<z.
|
|
469
|
+
filter: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
|
|
470
470
|
orderBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
471
471
|
column: z.ZodString;
|
|
472
472
|
direction: z.ZodEnum<{
|
|
@@ -477,15 +477,15 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
477
477
|
DESC_NULLS_FIRST: "DESC_NULLS_FIRST";
|
|
478
478
|
DESC_NULLS_LAST: "DESC_NULLS_LAST";
|
|
479
479
|
}>;
|
|
480
|
-
}, z.core.$
|
|
481
|
-
}, z.core.$
|
|
480
|
+
}, z.core.$strict>>>;
|
|
481
|
+
}, z.core.$strict>]>>]>>>;
|
|
482
482
|
storedProcedures: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
483
483
|
queues: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
484
484
|
operations: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
485
485
|
remoteSchemas: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
486
486
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"ALL">]>>>;
|
|
487
|
-
}, z.core.$
|
|
488
|
-
}, z.core.$
|
|
487
|
+
}, z.core.$strict>>>>>;
|
|
488
|
+
}, z.core.$strict>>>, z.ZodTransform<{
|
|
489
489
|
permissions: {
|
|
490
490
|
[k: string]: {
|
|
491
491
|
tables: "ALL" | {
|
|
@@ -512,7 +512,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
512
512
|
permissions: Record<string, {
|
|
513
513
|
tables: string[] | "ALL" | Record<string, "ALL" | {
|
|
514
514
|
columns: string[] | "ALL";
|
|
515
|
-
filter?: Record<string,
|
|
515
|
+
filter?: Record<string, unknown> | undefined;
|
|
516
516
|
orderBy?: {
|
|
517
517
|
column: string;
|
|
518
518
|
direction: "ASC" | "DESC" | "ASC_NULLS_FIRST" | "ASC_NULLS_LAST" | "DESC_NULLS_FIRST" | "DESC_NULLS_LAST";
|
|
@@ -535,8 +535,8 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
535
535
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
536
536
|
introspection: z.ZodOptional<z.ZodObject<{
|
|
537
537
|
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
538
|
-
}, z.core.$
|
|
539
|
-
}, z.core.$
|
|
538
|
+
}, z.core.$strict>>;
|
|
539
|
+
}, z.core.$strict>>>>;
|
|
540
540
|
remoteREST: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
541
541
|
name: z.ZodString;
|
|
542
542
|
url: z.ZodOptional<z.ZodURL>;
|
|
@@ -547,20 +547,20 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
547
547
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
548
548
|
forwardHeaders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
549
|
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
550
|
-
}, z.core.$
|
|
550
|
+
}, z.core.$strict>>>>;
|
|
551
551
|
ai: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
552
552
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
553
553
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
554
554
|
endpoint: z.ZodDefault<z.ZodString>;
|
|
555
555
|
mcp: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
556
556
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
557
|
-
}, z.core.$
|
|
558
|
-
}, z.core.$
|
|
559
|
-
}, z.core.$
|
|
557
|
+
}, z.core.$strict>>>;
|
|
558
|
+
}, z.core.$strict>>>;
|
|
559
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
560
560
|
enabledDatabases: {
|
|
561
561
|
name: string;
|
|
562
562
|
enabled: boolean;
|
|
563
|
-
type: "mssql" | "
|
|
563
|
+
type: "mssql" | "pg" | "mysql";
|
|
564
564
|
connection: {
|
|
565
565
|
host: string;
|
|
566
566
|
port: number;
|
|
@@ -628,7 +628,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
628
628
|
databaseEntity: {
|
|
629
629
|
name: string;
|
|
630
630
|
enabled: boolean;
|
|
631
|
-
type: "mssql" | "
|
|
631
|
+
type: "mssql" | "pg" | "mysql";
|
|
632
632
|
connection: {
|
|
633
633
|
host: string;
|
|
634
634
|
port: number;
|
|
@@ -717,7 +717,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
717
717
|
databases: {
|
|
718
718
|
name: string;
|
|
719
719
|
enabled: boolean;
|
|
720
|
-
type: "mssql" | "
|
|
720
|
+
type: "mssql" | "pg" | "mysql";
|
|
721
721
|
connection: {
|
|
722
722
|
host: string;
|
|
723
723
|
port: number;
|
|
@@ -1011,7 +1011,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1011
1011
|
databases: {
|
|
1012
1012
|
name: string;
|
|
1013
1013
|
enabled: boolean;
|
|
1014
|
-
type: "mssql" | "
|
|
1014
|
+
type: "mssql" | "pg" | "mysql";
|
|
1015
1015
|
connection: {
|
|
1016
1016
|
host: string;
|
|
1017
1017
|
port: number;
|
|
@@ -1372,7 +1372,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1372
1372
|
enabledDatabases: {
|
|
1373
1373
|
name: string;
|
|
1374
1374
|
enabled: boolean;
|
|
1375
|
-
type: "mssql" | "
|
|
1375
|
+
type: "mssql" | "pg" | "mysql";
|
|
1376
1376
|
connection: {
|
|
1377
1377
|
host: string;
|
|
1378
1378
|
port: number;
|
|
@@ -1440,7 +1440,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1440
1440
|
databaseEntity: {
|
|
1441
1441
|
name: string;
|
|
1442
1442
|
enabled: boolean;
|
|
1443
|
-
type: "mssql" | "
|
|
1443
|
+
type: "mssql" | "pg" | "mysql";
|
|
1444
1444
|
connection: {
|
|
1445
1445
|
host: string;
|
|
1446
1446
|
port: number;
|
|
@@ -1529,7 +1529,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1529
1529
|
databases: {
|
|
1530
1530
|
name: string;
|
|
1531
1531
|
enabled: boolean;
|
|
1532
|
-
type: "mssql" | "
|
|
1532
|
+
type: "mssql" | "pg" | "mysql";
|
|
1533
1533
|
connection: {
|
|
1534
1534
|
host: string;
|
|
1535
1535
|
port: number;
|
|
@@ -1914,7 +1914,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1914
1914
|
enabledDatabases: {
|
|
1915
1915
|
name: string;
|
|
1916
1916
|
enabled: boolean;
|
|
1917
|
-
type: "mssql" | "
|
|
1917
|
+
type: "mssql" | "pg" | "mysql";
|
|
1918
1918
|
connection: {
|
|
1919
1919
|
host: string;
|
|
1920
1920
|
port: number;
|
|
@@ -1982,7 +1982,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
1982
1982
|
databaseEntity: {
|
|
1983
1983
|
name: string;
|
|
1984
1984
|
enabled: boolean;
|
|
1985
|
-
type: "mssql" | "
|
|
1985
|
+
type: "mssql" | "pg" | "mysql";
|
|
1986
1986
|
connection: {
|
|
1987
1987
|
host: string;
|
|
1988
1988
|
port: number;
|
|
@@ -2071,7 +2071,7 @@ export declare const EnvZod: z.ZodPipe<z.ZodObject<{
|
|
|
2071
2071
|
databases: {
|
|
2072
2072
|
name: string;
|
|
2073
2073
|
enabled: boolean;
|
|
2074
|
-
type: "mssql" | "
|
|
2074
|
+
type: "mssql" | "pg" | "mysql";
|
|
2075
2075
|
connection: {
|
|
2076
2076
|
host: string;
|
|
2077
2077
|
port: number;
|
|
@@ -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":"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"}
|
|
@@ -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";
|