@graphoria/server 0.2.0 → 0.2.2
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/ai/agent/providers/ollama.d.ts.map +1 -1
- package/dist/src/ai/mcp/create-server.d.ts.map +1 -1
- package/dist/src/ai/mcp/index.d.ts +5 -2
- package/dist/src/ai/mcp/index.d.ts.map +1 -1
- package/dist/src/ai/tools/agent.d.ts.map +1 -1
- package/dist/src/ai/tools/core.d.ts.map +1 -1
- package/dist/src/ai/tools/query-data.d.ts +2 -2
- package/dist/src/ai/tools/query-data.d.ts.map +1 -1
- package/dist/src/analyzeQuery/analyzers/fragmentAnalyzer.d.ts.map +1 -1
- package/dist/src/analyzeQuery/analyzers/operationAnalyzer.d.ts.map +1 -1
- package/dist/src/analyzeQuery/analyzers/selectionAnalyzer.d.ts.map +1 -1
- package/dist/src/analyzeQuery/analyzers/variableAnalyzer.d.ts.map +1 -1
- package/dist/src/analyzeQuery/depthLimit.d.ts.map +1 -1
- package/dist/src/analyzeQuery/directiveUtils.d.ts.map +1 -1
- package/dist/src/analyzeQuery/resolveVariables.d.ts +17 -2
- package/dist/src/analyzeQuery/resolveVariables.d.ts.map +1 -1
- package/dist/src/analyzeQuery/typeUtils.d.ts.map +1 -1
- package/dist/src/analyzeQuery/valueExtractors.d.ts.map +1 -1
- package/dist/src/authentication/duration.d.ts.map +1 -1
- package/dist/src/authentication/index.d.ts.map +1 -1
- package/dist/src/authentication/jwt.d.ts.map +1 -1
- package/dist/src/authentication/paseto.d.ts.map +1 -1
- package/dist/src/authentication/tokenRepository.d.ts +2 -1
- package/dist/src/authentication/tokenRepository.d.ts.map +1 -1
- package/dist/src/cli/seedAuth.d.ts.map +1 -1
- package/dist/src/cli/seedAuthArgs.d.ts.map +1 -1
- package/dist/src/config/helpers/cronHelper.d.ts.map +1 -1
- package/dist/src/config/helpers/operationHelper.d.ts +1 -1
- package/dist/src/config/helpers/operationHelper.d.ts.map +1 -1
- package/dist/src/config/helpers/queueHelper.d.ts.map +1 -1
- package/dist/src/config/index.d.ts.map +1 -1
- package/dist/src/config/types/auth.d.ts +11 -5
- package/dist/src/config/types/auth.d.ts.map +1 -1
- package/dist/src/config/types/auth.test.d.ts +2 -0
- package/dist/src/config/types/auth.test.d.ts.map +1 -0
- package/dist/src/config/types/db.d.ts +36 -20
- package/dist/src/config/types/db.d.ts.map +1 -1
- package/dist/src/config/types/operation.d.ts +6 -6
- package/dist/src/config/types/queue.d.ts +4 -4
- package/dist/src/configuration/getSchemas/index.d.ts +109 -103
- package/dist/src/configuration/getSchemas/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts +59 -50
- package/dist/src/configuration/getSchemas/mergeEntities/index.d.ts.map +1 -1
- package/dist/src/configuration/getSchemas/type-definition-generator/index.d.ts.map +1 -1
- package/dist/src/configuration/gql/buildExecute.d.ts.map +1 -1
- package/dist/src/configuration/gql/gqlAuthOperations.d.ts.map +1 -1
- package/dist/src/configuration/gql/handleGraphQLRequestFactory.d.ts.map +1 -1
- package/dist/src/configuration/gql/handleGraphQLSubscriptionFactory.d.ts.map +1 -1
- package/dist/src/configuration/index.d.ts +100 -95
- 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/configuration/rest/index.d.ts.map +1 -1
- package/dist/src/configuration/rest/openApiErrors.d.ts.map +1 -1
- package/dist/src/configuration/rest/parseStringParams.d.ts +15 -0
- package/dist/src/configuration/rest/parseStringParams.d.ts.map +1 -0
- package/dist/src/configuration/rest/parseStringParams.test.d.ts +2 -0
- package/dist/src/configuration/rest/parseStringParams.test.d.ts.map +1 -0
- package/dist/src/console/api.d.ts.map +1 -1
- package/dist/src/cron/index.d.ts.map +1 -1
- package/dist/src/databases/auth/auth-operations.d.ts.map +1 -1
- package/dist/src/databases/auth/password.d.ts.map +1 -1
- package/dist/src/databases/common.d.ts +7 -3
- package/dist/src/databases/common.d.ts.map +1 -1
- package/dist/src/databases/core/executor.d.ts.map +1 -1
- package/dist/src/databases/core/identifier.d.ts.map +1 -1
- package/dist/src/databases/core/query-builder.d.ts +4 -3
- 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/auth.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/format.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/getStructure.d.ts +13 -12
- package/dist/src/databases/engines/mssql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/getViews.d.ts.map +1 -1
- package/dist/src/databases/engines/mssql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/auth.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/format.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/getStructure.d.ts +13 -12
- package/dist/src/databases/engines/mysql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/getViews.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/placeholders.d.ts.map +1 -1
- package/dist/src/databases/engines/mysql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/auth.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/connection.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/format.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/getStructure.d.ts +13 -12
- package/dist/src/databases/engines/postgresql/getStructure.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/getViews.d.ts.map +1 -1
- package/dist/src/databases/engines/postgresql/query/index.d.ts.map +1 -1
- package/dist/src/databases/engines/shared/claims.d.ts.map +1 -1
- package/dist/src/databases/high-level-operations.d.ts +11 -59
- package/dist/src/databases/high-level-operations.d.ts.map +1 -1
- package/dist/src/databases/identifierMapping.test.d.ts +2 -0
- package/dist/src/databases/identifierMapping.test.d.ts.map +1 -0
- package/dist/src/databases/metadata/structure.d.ts +13 -12
- package/dist/src/databases/metadata/structure.d.ts.map +1 -1
- package/dist/src/databases/schemaBuilder/generateCreateTable/index.d.ts.map +1 -1
- package/dist/src/databases/schemaBuilder/generateCreateView/index.d.ts.map +1 -1
- package/dist/src/databases/schemaBuilder/generateInsert/index.d.ts.map +1 -1
- package/dist/src/databases/schemaBuilder/generateSchemaCreation/index.d.ts.map +1 -1
- package/dist/src/databases/schemaBuilder/mssqlToPostgres/convertView.d.ts.map +1 -1
- package/dist/src/databases/schemaBuilder/utils.d.ts +2 -2
- package/dist/src/databases/schemaBuilder/utils.d.ts.map +1 -1
- package/dist/src/databases/sqlTypeUtils.d.ts.map +1 -1
- package/dist/src/databases/transformers/data-transformers.d.ts +37 -34
- package/dist/src/databases/transformers/data-transformers.d.ts.map +1 -1
- package/dist/src/databases/transformers/genResolverName.d.ts.map +1 -1
- package/dist/src/databases/transformers/graphqlName.d.ts +23 -0
- package/dist/src/databases/transformers/graphqlName.d.ts.map +1 -0
- package/dist/src/databases/transformers/graphqlName.test.d.ts +2 -0
- package/dist/src/databases/transformers/graphqlName.test.d.ts.map +1 -0
- package/dist/src/index.d.ts +6 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/logging/index.d.ts.map +1 -1
- package/dist/src/queues/kafka.d.ts.map +1 -1
- package/dist/src/queues/rabbitmq.d.ts.map +1 -1
- package/dist/src/remoteREST/index.d.ts.map +1 -1
- package/dist/src/remoteREST/parse.d.ts.map +1 -1
- package/dist/src/remoteREST/proxy.d.ts.map +1 -1
- package/dist/src/remoteREST/transform.d.ts.map +1 -1
- package/dist/src/remoteSchemas/index.d.ts.map +1 -1
- package/dist/src/remoteSchemas/introspect.d.ts.map +1 -1
- package/dist/src/remoteSchemas/proxy.d.ts.map +1 -1
- package/dist/src/remoteSchemas/transform.d.ts.map +1 -1
- package/dist/src/singletons/ai.d.ts.map +1 -1
- package/dist/src/singletons/authentication.d.ts.map +1 -1
- package/dist/src/singletons/cache/lruCacheStore.d.ts.map +1 -1
- package/dist/src/singletons/cache/redisCacheStore.d.ts.map +1 -1
- package/dist/src/singletons/cache/registry.d.ts.map +1 -1
- package/dist/src/singletons/cron.d.ts.map +1 -1
- package/dist/src/singletons/databases.d.ts.map +1 -1
- package/dist/src/singletons/env.d.ts +191 -188
- package/dist/src/singletons/env.d.ts.map +1 -1
- package/dist/src/singletons/queues.d.ts.map +1 -1
- package/dist/src/subscriptions/strategies/index.d.ts.map +1 -1
- package/dist/src/subscriptions/utils/polling.d.ts.map +1 -1
- package/dist/src/types/db.d.ts.map +1 -1
- package/dist/src/types/env.d.ts +647 -636
- package/dist/src/types/env.d.ts.map +1 -1
- package/dist/src/types/resolver.d.ts.map +1 -1
- package/dist/src/types/zod/auth.d.ts +18 -18
- package/dist/src/types/zod/configuration.d.ts +300 -295
- package/dist/src/types/zod/configuration.d.ts.map +1 -1
- package/dist/src/types/zod/db.d.ts +89 -80
- package/dist/src/types/zod/db.d.ts.map +1 -1
- package/dist/src/types/zod/queue.d.ts +80 -80
- package/dist/src/types/zod/queue.d.ts.map +1 -1
- package/dist/src/utils/benchmark.d.ts.map +1 -1
- package/dist/src/utils/responses.d.ts.map +1 -1
- package/dist/src/utils/safeJSONParse.d.ts.map +1 -1
- package/dist/src/utils/selection.d.ts.map +1 -1
- package/dist/src/utils/sessionVariables.d.ts +5 -1
- package/dist/src/utils/sessionVariables.d.ts.map +1 -1
- package/dist/src/utils/writeSchema.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/playgrounds/console/index.html +18 -15
- package/playgrounds/graphiql/index.html +854 -622
- package/playgrounds/scalar/index.html +5 -5
- package/src/ai/README.md +257 -0
- package/src/analyzeQuery/analyzers/selectionAnalyzer.ts +7 -1
- package/src/analyzeQuery/resolveVariables.ts +130 -16
- package/src/authentication/jwt.ts +3 -1
- package/src/authentication/paseto.ts +3 -1
- package/src/authentication/tokenRepository.ts +12 -4
- package/src/config/types/auth.ts +7 -1
- package/src/config/types/db.ts +8 -0
- package/src/configuration/getSchemas/mergeEntities/index.ts +26 -1
- package/src/configuration/getSchemas/type-definition-generator/index.ts +11 -6
- package/src/configuration/rest/handleRESTRequestFactory.ts +5 -7
- package/src/configuration/rest/parseStringParams.ts +92 -0
- package/src/databases/common.ts +13 -2
- package/src/databases/engines/mssql/query/index.ts +25 -12
- package/src/databases/engines/mysql/connection.ts +1 -0
- package/src/databases/engines/mysql/query/index.ts +21 -8
- package/src/databases/engines/postgresql/query/index.ts +21 -7
- package/src/databases/high-level-operations.ts +2 -2
- package/src/databases/transformers/genResolverName.ts +3 -3
- package/src/databases/transformers/graphqlName.ts +28 -0
- package/src/logging/index.ts +3 -1
- package/src/types/db.ts +0 -1
- package/src/types/zod/db.ts +5 -7
- package/src/types/zod/queue.ts +2 -10
- package/src/utils/sessionVariables.ts +7 -1
|
@@ -6,7 +6,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
6
6
|
databases: {
|
|
7
7
|
name: string;
|
|
8
8
|
enabled: boolean;
|
|
9
|
-
type: "mssql" | "
|
|
9
|
+
type: "mssql" | "mysql" | "pg";
|
|
10
10
|
connection: {
|
|
11
11
|
host: string;
|
|
12
12
|
port: number;
|
|
@@ -37,14 +37,14 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
37
37
|
target: string;
|
|
38
38
|
}[];
|
|
39
39
|
conditions?: {
|
|
40
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
41
40
|
source?: string | undefined;
|
|
42
41
|
target?: string | undefined;
|
|
42
|
+
operator: "eq" | "gt" | "gte" | "is_not_null" | "is_null" | "like" | "lt" | "lte" | "neq";
|
|
43
43
|
value?: string | number | boolean | undefined;
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
}[];
|
|
46
|
-
columnDescriptions: Record<string, string>;
|
|
47
46
|
description?: string | undefined;
|
|
47
|
+
columnDescriptions: Record<string, string>;
|
|
48
48
|
}>;
|
|
49
49
|
excludedTables: string[];
|
|
50
50
|
} | undefined;
|
|
@@ -54,6 +54,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
54
54
|
connectionTimeout: number;
|
|
55
55
|
maxLifetime: number;
|
|
56
56
|
tls: boolean;
|
|
57
|
+
allowPublicKeyRetrieval: boolean;
|
|
57
58
|
prepare: boolean;
|
|
58
59
|
bigint: boolean;
|
|
59
60
|
} | {
|
|
@@ -71,6 +72,9 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
71
72
|
} | undefined;
|
|
72
73
|
}[];
|
|
73
74
|
roles: Record<string, {
|
|
75
|
+
typeDefs: string;
|
|
76
|
+
schema: import("graphql").GraphQLSchema;
|
|
77
|
+
introspection: import("graphql").IntrospectionQuery;
|
|
74
78
|
handlers: {
|
|
75
79
|
gql: {
|
|
76
80
|
isIntrospectionQuery: (query: string) => boolean;
|
|
@@ -96,9 +100,6 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
96
100
|
handler: (url: URL, pathname: string, method: string | undefined, req: Bun.BunRequest, session?: import("../utils/sessionVariables").SessionContext) => Promise<Response>;
|
|
97
101
|
};
|
|
98
102
|
};
|
|
99
|
-
typeDefs: string;
|
|
100
|
-
schema: import("graphql").GraphQLSchema;
|
|
101
|
-
introspection: import("graphql").IntrospectionQuery;
|
|
102
103
|
entityOfRole: import("../databases/high-level-operations").EntitiesOfRole;
|
|
103
104
|
ai: boolean;
|
|
104
105
|
queriesMap: Record<string, import("../types/db").TableResolver>;
|
|
@@ -106,7 +107,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
106
107
|
db: {
|
|
107
108
|
name: string;
|
|
108
109
|
enabled: boolean;
|
|
109
|
-
type: "mssql" | "
|
|
110
|
+
type: "mssql" | "mysql" | "pg";
|
|
110
111
|
connection: {
|
|
111
112
|
host: string;
|
|
112
113
|
port: number;
|
|
@@ -137,14 +138,14 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
137
138
|
target: string;
|
|
138
139
|
}[];
|
|
139
140
|
conditions?: {
|
|
140
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
141
141
|
source?: string | undefined;
|
|
142
142
|
target?: string | undefined;
|
|
143
|
+
operator: "eq" | "gt" | "gte" | "is_not_null" | "is_null" | "like" | "lt" | "lte" | "neq";
|
|
143
144
|
value?: string | number | boolean | undefined;
|
|
144
145
|
}[] | undefined;
|
|
145
146
|
}[];
|
|
146
|
-
columnDescriptions: Record<string, string>;
|
|
147
147
|
description?: string | undefined;
|
|
148
|
+
columnDescriptions: Record<string, string>;
|
|
148
149
|
}>;
|
|
149
150
|
excludedTables: string[];
|
|
150
151
|
} | undefined;
|
|
@@ -154,6 +155,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
154
155
|
connectionTimeout: number;
|
|
155
156
|
maxLifetime: number;
|
|
156
157
|
tls: boolean;
|
|
158
|
+
allowPublicKeyRetrieval: boolean;
|
|
157
159
|
prepare: boolean;
|
|
158
160
|
bigint: boolean;
|
|
159
161
|
} | {
|
|
@@ -174,11 +176,10 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
174
176
|
resolverName: string;
|
|
175
177
|
dottedName: string;
|
|
176
178
|
dottedQuotedName: string;
|
|
177
|
-
dashedName: string;
|
|
178
|
-
dashedNameLS: string;
|
|
179
|
-
schemaName: string;
|
|
180
179
|
schema: string;
|
|
181
180
|
name: string;
|
|
181
|
+
signature?: string | undefined;
|
|
182
|
+
type?: string | undefined;
|
|
182
183
|
parameters: {
|
|
183
184
|
name: string;
|
|
184
185
|
dataType: string | null;
|
|
@@ -186,8 +187,9 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
186
187
|
precision: number;
|
|
187
188
|
scale: number;
|
|
188
189
|
}[];
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
dashedName: string;
|
|
191
|
+
dashedNameLS: string;
|
|
192
|
+
schemaName: string;
|
|
191
193
|
}>;
|
|
192
194
|
queuesMap: Record<string, {
|
|
193
195
|
name: string;
|
|
@@ -213,7 +215,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
213
215
|
db: {
|
|
214
216
|
name: string;
|
|
215
217
|
enabled: boolean;
|
|
216
|
-
type: "mssql" | "
|
|
218
|
+
type: "mssql" | "mysql" | "pg";
|
|
217
219
|
connection: {
|
|
218
220
|
host: string;
|
|
219
221
|
port: number;
|
|
@@ -244,14 +246,14 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
244
246
|
target: string;
|
|
245
247
|
}[];
|
|
246
248
|
conditions?: {
|
|
247
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
248
249
|
source?: string | undefined;
|
|
249
250
|
target?: string | undefined;
|
|
251
|
+
operator: "eq" | "gt" | "gte" | "is_not_null" | "is_null" | "like" | "lt" | "lte" | "neq";
|
|
250
252
|
value?: string | number | boolean | undefined;
|
|
251
253
|
}[] | undefined;
|
|
252
254
|
}[];
|
|
253
|
-
columnDescriptions: Record<string, string>;
|
|
254
255
|
description?: string | undefined;
|
|
256
|
+
columnDescriptions: Record<string, string>;
|
|
255
257
|
}>;
|
|
256
258
|
excludedTables: string[];
|
|
257
259
|
} | undefined;
|
|
@@ -261,6 +263,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
261
263
|
connectionTimeout: number;
|
|
262
264
|
maxLifetime: number;
|
|
263
265
|
tls: boolean;
|
|
266
|
+
allowPublicKeyRetrieval: boolean;
|
|
264
267
|
prepare: boolean;
|
|
265
268
|
bigint: boolean;
|
|
266
269
|
} | {
|
|
@@ -281,11 +284,10 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
281
284
|
resolverName: string;
|
|
282
285
|
dottedName: string;
|
|
283
286
|
dottedQuotedName: string;
|
|
284
|
-
dashedName: string;
|
|
285
|
-
dashedNameLS: string;
|
|
286
|
-
schemaName: string;
|
|
287
287
|
schema: string;
|
|
288
288
|
name: string;
|
|
289
|
+
signature?: string | undefined;
|
|
290
|
+
type?: string | undefined;
|
|
289
291
|
parameters: {
|
|
290
292
|
name: string;
|
|
291
293
|
dataType: string | null;
|
|
@@ -293,17 +295,24 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
293
295
|
precision: number;
|
|
294
296
|
scale: number;
|
|
295
297
|
}[];
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
dashedName: string;
|
|
299
|
+
dashedNameLS: string;
|
|
300
|
+
schemaName: string;
|
|
298
301
|
}[];
|
|
299
302
|
queues: (({
|
|
300
303
|
name: string;
|
|
301
304
|
autoSetup: boolean;
|
|
302
305
|
enabled: boolean;
|
|
306
|
+
reconnect?: {
|
|
307
|
+
initialDelay: number;
|
|
308
|
+
maxDelay: number;
|
|
309
|
+
multiplier: number;
|
|
310
|
+
maxAttempts: number;
|
|
311
|
+
} | undefined;
|
|
303
312
|
publishers: Record<string, {
|
|
304
313
|
topic: string;
|
|
305
|
-
persistent: boolean;
|
|
306
314
|
routingKey?: string | undefined;
|
|
315
|
+
persistent: boolean;
|
|
307
316
|
headers?: Record<string, string> | undefined;
|
|
308
317
|
}>;
|
|
309
318
|
subscribers: Record<string, {
|
|
@@ -316,7 +325,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
316
325
|
handler?: import("../config").SubscriberHandler | undefined;
|
|
317
326
|
}>;
|
|
318
327
|
topics: Record<string, {
|
|
319
|
-
type: "
|
|
328
|
+
type: "direct" | "fanout" | "headers" | "topic";
|
|
320
329
|
durable: boolean;
|
|
321
330
|
autoDelete: boolean;
|
|
322
331
|
}>;
|
|
@@ -324,16 +333,10 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
324
333
|
connection: string | {
|
|
325
334
|
hostname: string;
|
|
326
335
|
port: number;
|
|
327
|
-
vhost: string;
|
|
328
336
|
username?: string | undefined;
|
|
329
337
|
password?: string | undefined;
|
|
338
|
+
vhost: string;
|
|
330
339
|
};
|
|
331
|
-
reconnect?: {
|
|
332
|
-
initialDelay: number;
|
|
333
|
-
maxDelay: number;
|
|
334
|
-
multiplier: number;
|
|
335
|
-
maxAttempts: number;
|
|
336
|
-
} | undefined;
|
|
337
340
|
} & {
|
|
338
341
|
exchanges: Array<{
|
|
339
342
|
name: string;
|
|
@@ -370,10 +373,16 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
370
373
|
name: string;
|
|
371
374
|
autoSetup: boolean;
|
|
372
375
|
enabled: boolean;
|
|
376
|
+
reconnect?: {
|
|
377
|
+
initialDelay: number;
|
|
378
|
+
maxDelay: number;
|
|
379
|
+
multiplier: number;
|
|
380
|
+
maxAttempts: number;
|
|
381
|
+
} | undefined;
|
|
373
382
|
publishers: Record<string, {
|
|
374
383
|
topic: string;
|
|
375
|
-
persistent: boolean;
|
|
376
384
|
routingKey?: string | undefined;
|
|
385
|
+
persistent: boolean;
|
|
377
386
|
headers?: Record<string, string> | undefined;
|
|
378
387
|
}>;
|
|
379
388
|
subscribers: Record<string, {
|
|
@@ -386,27 +395,21 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
386
395
|
handler?: import("../config").SubscriberHandler | undefined;
|
|
387
396
|
}>;
|
|
388
397
|
topics: Record<string, {
|
|
389
|
-
type: "
|
|
398
|
+
type: "direct" | "fanout" | "headers" | "topic";
|
|
390
399
|
durable: boolean;
|
|
391
400
|
autoDelete: boolean;
|
|
392
401
|
}>;
|
|
393
402
|
type: "kafka";
|
|
394
403
|
connection: string | {
|
|
395
404
|
brokers: string | string[];
|
|
396
|
-
ssl: boolean;
|
|
397
405
|
clientId?: string | undefined;
|
|
406
|
+
ssl: boolean;
|
|
398
407
|
sasl?: {
|
|
399
408
|
mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
|
|
400
409
|
username: string;
|
|
401
410
|
password: string;
|
|
402
411
|
} | undefined;
|
|
403
412
|
};
|
|
404
|
-
reconnect?: {
|
|
405
|
-
initialDelay: number;
|
|
406
|
-
maxDelay: number;
|
|
407
|
-
multiplier: number;
|
|
408
|
-
maxAttempts: number;
|
|
409
|
-
} | undefined;
|
|
410
413
|
} & {
|
|
411
414
|
exchanges: Array<{
|
|
412
415
|
name: string;
|
|
@@ -441,10 +444,6 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
441
444
|
}>;
|
|
442
445
|
}))[];
|
|
443
446
|
operations: Record<string, {
|
|
444
|
-
graphql: {
|
|
445
|
-
enabled: boolean;
|
|
446
|
-
name?: string | undefined;
|
|
447
|
-
};
|
|
448
447
|
description?: string | undefined;
|
|
449
448
|
query?: string | undefined;
|
|
450
449
|
handler?: import("../config").OperationHandler<any, any, any> | undefined;
|
|
@@ -457,19 +456,23 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
457
456
|
} | undefined;
|
|
458
457
|
rest?: {
|
|
459
458
|
path: string;
|
|
460
|
-
method: "
|
|
459
|
+
method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
|
|
461
460
|
pathParams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
462
461
|
queryParams?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
463
462
|
body?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
464
463
|
} | undefined;
|
|
464
|
+
graphql: {
|
|
465
|
+
enabled: boolean;
|
|
466
|
+
name?: string | undefined;
|
|
467
|
+
};
|
|
465
468
|
cache?: {
|
|
466
|
-
updateAgeOnHas: boolean;
|
|
467
|
-
ttlAutopurge: boolean;
|
|
468
469
|
max?: number | undefined;
|
|
469
470
|
maxSize?: number | undefined;
|
|
470
471
|
ttl?: number | undefined;
|
|
471
472
|
allowStale?: boolean | undefined;
|
|
472
473
|
updateAgeOnGet?: boolean | undefined;
|
|
474
|
+
updateAgeOnHas: boolean;
|
|
475
|
+
ttlAutopurge: boolean;
|
|
473
476
|
} | undefined;
|
|
474
477
|
}>;
|
|
475
478
|
resolverRegistry: import("../types/resolver").ResolverRegistry;
|
|
@@ -477,11 +480,6 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
477
480
|
getResolverEntry: (resolverName: string) => import("../types/resolver").ResolverEntry;
|
|
478
481
|
getForeignKeysBetweenTables: (table1: string, table2: string) => {
|
|
479
482
|
relationships: {
|
|
480
|
-
internalName: string;
|
|
481
|
-
fromInternalName: string;
|
|
482
|
-
toInternalName: string;
|
|
483
|
-
fromResolverName: string;
|
|
484
|
-
toResolverName: string;
|
|
485
483
|
schema: string;
|
|
486
484
|
name: string;
|
|
487
485
|
columns: {
|
|
@@ -489,18 +487,18 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
489
487
|
target: string;
|
|
490
488
|
}[];
|
|
491
489
|
conditions?: {
|
|
492
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
493
490
|
source?: string | undefined;
|
|
494
491
|
target?: string | undefined;
|
|
492
|
+
operator: "eq" | "gt" | "gte" | "is_not_null" | "is_null" | "like" | "lt" | "lte" | "neq";
|
|
495
493
|
value?: string | number | boolean | undefined;
|
|
496
494
|
}[] | undefined;
|
|
497
|
-
}[];
|
|
498
|
-
relationshipsReversed: {
|
|
499
495
|
internalName: string;
|
|
500
496
|
fromInternalName: string;
|
|
501
497
|
toInternalName: string;
|
|
502
498
|
fromResolverName: string;
|
|
503
499
|
toResolverName: string;
|
|
500
|
+
}[];
|
|
501
|
+
relationshipsReversed: {
|
|
504
502
|
schema: string;
|
|
505
503
|
name: string;
|
|
506
504
|
columns: {
|
|
@@ -508,14 +506,20 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
508
506
|
target: string;
|
|
509
507
|
}[];
|
|
510
508
|
conditions?: {
|
|
511
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
512
509
|
source?: string | undefined;
|
|
513
510
|
target?: string | undefined;
|
|
511
|
+
operator: "eq" | "gt" | "gte" | "is_not_null" | "is_null" | "like" | "lt" | "lte" | "neq";
|
|
514
512
|
value?: string | number | boolean | undefined;
|
|
515
513
|
}[] | undefined;
|
|
514
|
+
internalName: string;
|
|
515
|
+
fromInternalName: string;
|
|
516
|
+
toInternalName: string;
|
|
517
|
+
fromResolverName: string;
|
|
518
|
+
toResolverName: string;
|
|
516
519
|
}[];
|
|
517
520
|
};
|
|
518
521
|
isVirtualColumn: (table: string, column: string) => import("../types/configuration").VirtualColumn | undefined;
|
|
522
|
+
columnSqlName: (table: string, fieldName: string) => string;
|
|
519
523
|
getColumnTypeForOpenApi: (table: string, column: string) => string;
|
|
520
524
|
}>;
|
|
521
525
|
openapi: import("openapi-types").OpenAPIV3_1.Document<{}>;
|
|
@@ -523,10 +527,16 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
523
527
|
name: string;
|
|
524
528
|
autoSetup: boolean;
|
|
525
529
|
enabled: boolean;
|
|
530
|
+
reconnect?: {
|
|
531
|
+
initialDelay: number;
|
|
532
|
+
maxDelay: number;
|
|
533
|
+
multiplier: number;
|
|
534
|
+
maxAttempts: number;
|
|
535
|
+
} | undefined;
|
|
526
536
|
publishers: Record<string, {
|
|
527
537
|
topic: string;
|
|
528
|
-
persistent: boolean;
|
|
529
538
|
routingKey?: string | undefined;
|
|
539
|
+
persistent: boolean;
|
|
530
540
|
headers?: Record<string, string> | undefined;
|
|
531
541
|
}>;
|
|
532
542
|
subscribers: Record<string, {
|
|
@@ -539,7 +549,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
539
549
|
handler?: import("../config").SubscriberHandler | undefined;
|
|
540
550
|
}>;
|
|
541
551
|
topics: Record<string, {
|
|
542
|
-
type: "
|
|
552
|
+
type: "direct" | "fanout" | "headers" | "topic";
|
|
543
553
|
durable: boolean;
|
|
544
554
|
autoDelete: boolean;
|
|
545
555
|
}>;
|
|
@@ -547,16 +557,10 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
547
557
|
connection: string | {
|
|
548
558
|
hostname: string;
|
|
549
559
|
port: number;
|
|
550
|
-
vhost: string;
|
|
551
560
|
username?: string | undefined;
|
|
552
561
|
password?: string | undefined;
|
|
562
|
+
vhost: string;
|
|
553
563
|
};
|
|
554
|
-
reconnect?: {
|
|
555
|
-
initialDelay: number;
|
|
556
|
-
maxDelay: number;
|
|
557
|
-
multiplier: number;
|
|
558
|
-
maxAttempts: number;
|
|
559
|
-
} | undefined;
|
|
560
564
|
} & {
|
|
561
565
|
exchanges: Array<{
|
|
562
566
|
name: string;
|
|
@@ -593,10 +597,16 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
593
597
|
name: string;
|
|
594
598
|
autoSetup: boolean;
|
|
595
599
|
enabled: boolean;
|
|
600
|
+
reconnect?: {
|
|
601
|
+
initialDelay: number;
|
|
602
|
+
maxDelay: number;
|
|
603
|
+
multiplier: number;
|
|
604
|
+
maxAttempts: number;
|
|
605
|
+
} | undefined;
|
|
596
606
|
publishers: Record<string, {
|
|
597
607
|
topic: string;
|
|
598
|
-
persistent: boolean;
|
|
599
608
|
routingKey?: string | undefined;
|
|
609
|
+
persistent: boolean;
|
|
600
610
|
headers?: Record<string, string> | undefined;
|
|
601
611
|
}>;
|
|
602
612
|
subscribers: Record<string, {
|
|
@@ -609,27 +619,21 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
609
619
|
handler?: import("../config").SubscriberHandler | undefined;
|
|
610
620
|
}>;
|
|
611
621
|
topics: Record<string, {
|
|
612
|
-
type: "
|
|
622
|
+
type: "direct" | "fanout" | "headers" | "topic";
|
|
613
623
|
durable: boolean;
|
|
614
624
|
autoDelete: boolean;
|
|
615
625
|
}>;
|
|
616
626
|
type: "kafka";
|
|
617
627
|
connection: string | {
|
|
618
628
|
brokers: string | string[];
|
|
619
|
-
ssl: boolean;
|
|
620
629
|
clientId?: string | undefined;
|
|
630
|
+
ssl: boolean;
|
|
621
631
|
sasl?: {
|
|
622
632
|
mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
|
|
623
633
|
username: string;
|
|
624
634
|
password: string;
|
|
625
635
|
} | undefined;
|
|
626
636
|
};
|
|
627
|
-
reconnect?: {
|
|
628
|
-
initialDelay: number;
|
|
629
|
-
maxDelay: number;
|
|
630
|
-
multiplier: number;
|
|
631
|
-
maxAttempts: number;
|
|
632
|
-
} | undefined;
|
|
633
637
|
} & {
|
|
634
638
|
exchanges: Array<{
|
|
635
639
|
name: string;
|
|
@@ -664,10 +668,28 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
664
668
|
}>;
|
|
665
669
|
}))[];
|
|
666
670
|
auth: {
|
|
671
|
+
enabled: boolean;
|
|
672
|
+
database: string;
|
|
673
|
+
schema: string;
|
|
674
|
+
autoCreateTables: boolean;
|
|
675
|
+
permissions: {
|
|
676
|
+
[k: string]: {
|
|
677
|
+
storedProcedures: "ALL" | string[];
|
|
678
|
+
queues: "ALL" | string[];
|
|
679
|
+
operations: "ALL" | string[];
|
|
680
|
+
remoteSchemas: "ALL" | string[];
|
|
681
|
+
remoteREST: "ALL" | string[];
|
|
682
|
+
tables: "ALL" | {
|
|
683
|
+
[x: string]: {
|
|
684
|
+
columns: "ALL" | string[];
|
|
685
|
+
} & import("../types/configuration").TableFilter;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
};
|
|
667
689
|
databaseEntity: {
|
|
668
690
|
name: string;
|
|
669
691
|
enabled: boolean;
|
|
670
|
-
type: "mssql" | "
|
|
692
|
+
type: "mssql" | "mysql" | "pg";
|
|
671
693
|
connection: {
|
|
672
694
|
host: string;
|
|
673
695
|
port: number;
|
|
@@ -698,14 +720,14 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
698
720
|
target: string;
|
|
699
721
|
}[];
|
|
700
722
|
conditions?: {
|
|
701
|
-
operator: "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "like" | "is_null" | "is_not_null";
|
|
702
723
|
source?: string | undefined;
|
|
703
724
|
target?: string | undefined;
|
|
725
|
+
operator: "eq" | "gt" | "gte" | "is_not_null" | "is_null" | "like" | "lt" | "lte" | "neq";
|
|
704
726
|
value?: string | number | boolean | undefined;
|
|
705
727
|
}[] | undefined;
|
|
706
728
|
}[];
|
|
707
|
-
columnDescriptions: Record<string, string>;
|
|
708
729
|
description?: string | undefined;
|
|
730
|
+
columnDescriptions: Record<string, string>;
|
|
709
731
|
}>;
|
|
710
732
|
excludedTables: string[];
|
|
711
733
|
} | undefined;
|
|
@@ -715,6 +737,7 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
715
737
|
connectionTimeout: number;
|
|
716
738
|
maxLifetime: number;
|
|
717
739
|
tls: boolean;
|
|
740
|
+
allowPublicKeyRetrieval: boolean;
|
|
718
741
|
prepare: boolean;
|
|
719
742
|
bigint: boolean;
|
|
720
743
|
} | {
|
|
@@ -731,24 +754,6 @@ export declare const analyzeConfiguration: (configuration: Configuration, option
|
|
|
731
754
|
parseJSON: boolean;
|
|
732
755
|
} | undefined;
|
|
733
756
|
};
|
|
734
|
-
permissions: {
|
|
735
|
-
[k: string]: {
|
|
736
|
-
tables: "ALL" | {
|
|
737
|
-
[x: string]: {
|
|
738
|
-
columns: "ALL" | string[];
|
|
739
|
-
} & import("../types/configuration").TableFilter;
|
|
740
|
-
};
|
|
741
|
-
storedProcedures: string[] | "ALL";
|
|
742
|
-
queues: string[] | "ALL";
|
|
743
|
-
operations: string[] | "ALL";
|
|
744
|
-
remoteSchemas: string[] | "ALL";
|
|
745
|
-
remoteREST: string[] | "ALL";
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
enabled: boolean;
|
|
749
|
-
database: string;
|
|
750
|
-
schema: string;
|
|
751
|
-
autoCreateTables: boolean;
|
|
752
757
|
};
|
|
753
758
|
}>;
|
|
754
759
|
export type AnalyzedConfiguration = Awaited<ReturnType<typeof analyzeConfiguration>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/configuration/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAkBxC,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/configuration/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAkBxC,eAAO,MAAM,iBAAiB,WAAkB,MAAM,KAAG,OAAO,CAAC,aAAa,CA6B7E,CAAC;AAEF,eAAO,MAAM,oBAAoB,kBAAyB,aAAa,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,CAAA;KAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"generateOpenAPI.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/generateOpenAPI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAoC3C,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,GAAG,CAAC;IACb,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACtC,mEAAmE;IACnE,EAAE,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,OAAO,QAAS,MAAM,aAIlC,CAAC;AAEF,eAAO,MAAM,eAAe,6DAOzB,qBAAqB,KAAG,WAAW,CAAC,QAqStC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleRESTRequestFactory.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/handleRESTRequestFactory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"handleRESTRequestFactory.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/handleRESTRequestFactory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAqB/E,eAAO,MAAM,wBAAwB,aACzB,cAAc,eACX,oBAAoB,OAC5B,oBAAoB,SACnB,IAAI,GAAG,IAAI,yBACK,oBAAoB,GAAG,IAAI;;mBA8BxC,GAAG,YACE,MAAM,mCAEX,UAAU,YACL,cAAc;CA+R7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;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,EAAE,CAAC,CAAC,CAAC,CAAC;QACpE,QAAQ,EAAE,OAAO,CAAC;QAClB,QAAQ,EAAE,CAAC,CAAC;QACZ,aAAa,CAAC,EAAE,aAAa,CAAC;KAC/B;CACF,CAAC;AAEF,eAAO,MAAM,cAAc,aACf,cAAc,eACX,oBAAoB,OAC5B,oBAAoB,SACnB,IAAI,GAAG,IAAI,yBACK,oBAAoB,GAAG,IAAI;;CAoIlD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openApiErrors.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/openApiErrors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"openApiErrors.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/openApiErrors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,cAAc,UAAW,CAAC,CAAC,OAAO,KAAG,WAAW,CAAC,oBAO7D,CAAC;AAGF,eAAO,MAAM,SAAS;;;;;iBAeU,CAAC;AAGjC,eAAO,MAAM,eAAe;;;;;;;;;iBA4BU,CAAC;AAGvC,eAAO,MAAM,iBAAiB;;;;;iBAOG,CAAC;AAGlC,eAAO,MAAM,cAAc;;;;;iBAOG,CAAC;AAG/B,eAAO,MAAM,aAAa;;;;;iBAOI,CAAC;AAG/B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;mBAEmD,CAAC;AAE9E,eAAO,MAAM,MAAM;IACjB,SAAS;IACT,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,aAAa;IACb,aAAa;CACd,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Parses path or query parameters, which always arrive as strings.
|
|
4
|
+
*
|
|
5
|
+
* A parameter declared as `z.boolean()` — the declaration that makes the
|
|
6
|
+
* OpenAPI docs render a true/false picker instead of a free-text box — would
|
|
7
|
+
* never parse on its own, so those keys (and only those) are converted before
|
|
8
|
+
* validation. A value that spells neither true nor false is left as the string
|
|
9
|
+
* it was, so Zod still reports it as invalid.
|
|
10
|
+
*
|
|
11
|
+
* Returns `undefined` when no schema is configured for that source, which is
|
|
12
|
+
* what the REST handler forwards to `beforeRequest`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const parseStringParams: (schema: z.ZodType | undefined, values: Record<string, string | string[]>) => Record<string, unknown> | undefined;
|
|
15
|
+
//# sourceMappingURL=parseStringParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseStringParams.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/parseStringParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuD7B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,WACpB,CAAC,CAAC,OAAO,GAAG,SAAS,UACrB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,KACxC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAqB5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseStringParams.test.d.ts","sourceRoot":"","sources":["../../../../src/configuration/rest/parseStringParams.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/console/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM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B1E,eAAO,MAAM,oBAAoB,kGAO9B,2BAA2B,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAsNlF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cron/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOtD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,IAAI,CAAC;IACV,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,IAAI,EAAE,MAAM,OAAO,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC;IACvC,SAAS,EAAE,MAAM;QACf,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,EAAE,OAAO,CAAC;QACnB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QACrB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;QACzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;KACzB,CAAC;CACH;AA8GD;;GAEG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cron/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;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AC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-operations.d.ts","sourceRoot":"","sources":["../../../../src/databases/auth/auth-operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIpE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"auth-operations.d.ts","sourceRoot":"","sources":["../../../../src/databases/auth/auth-operations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIpE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,SAAgB,IAAI,kBACkB,CAAC;AAEpE,eAAO,MAAM,UAAU,SAAgB,IAAI,kBACwB,CAAC;AAEpE,eAAO,MAAM,oBAAoB,SAAgB,IAAI,YAAY,MAAM,YAAY,MAAM,2EAMtF,CAAC;AAEJ,eAAO,MAAM,cAAc,SAAgB,IAAI,SAAS,mBAAmB,kBACH,CAAC;AAEzE,eAAO,MAAM,qBAAqB,SAAgB,IAAI,kBASrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../src/databases/auth/password.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../../src/databases/auth/password.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,aAAc,MAAM,oBAAgC,CAAC;AAE9E,eAAO,MAAM,cAAc,UAAiB,MAAM,UAAU,MAAM,qBAC9B,CAAC"}
|
|
@@ -20,9 +20,7 @@ export interface GroupByInfo {
|
|
|
20
20
|
export declare const generateTableAlias: (level: number) => string;
|
|
21
21
|
export declare const buildConditions: (entities: MergedEntities, dbType: DatabaseType, variablesDefinition: VariableDefinition[], variables: Record<string, unknown> | undefined, whereArgs: object | unknown | null, tableAlias: string, level: number, aliasMap: {
|
|
22
22
|
[alias: string]: string;
|
|
23
|
-
},
|
|
24
|
-
/** Query name of the table being filtered — resolves its virtual columns. */
|
|
25
|
-
tableName?: string) => string;
|
|
23
|
+
}, tableName?: string) => string;
|
|
26
24
|
export declare const wrapIdentifierFp: (dbType: DatabaseType) => (value: string) => string;
|
|
27
25
|
export declare const wrapIdentifierPG: (value: string) => string;
|
|
28
26
|
export declare const wrapIdentifierMSSQL: (value: string) => string;
|
|
@@ -31,6 +29,12 @@ export declare const qualifiedNameFp: (dbType: DatabaseType) => ({ schema, name
|
|
|
31
29
|
schema: string;
|
|
32
30
|
name: string;
|
|
33
31
|
}) => string;
|
|
32
|
+
/**
|
|
33
|
+
* The SQL identifier a GraphQL field name compiles to. A column GraphQL cannot
|
|
34
|
+
* spell is exposed under a sanitised field name, so the name the client sent is
|
|
35
|
+
* not necessarily the name the database knows.
|
|
36
|
+
*/
|
|
37
|
+
export declare const sqlColumnName: (entities: MergedEntities, tableName: string | undefined, fieldName: string) => string;
|
|
34
38
|
export declare const findJoinCondition: (entities: MergedEntities, parentTableName: string, childTableName: string, parentAlias: string, childAlias: string, dbType: DatabaseType) => string;
|
|
35
39
|
export declare const buildWhereClauseFp: (dbType?: DatabaseType) => (entities: MergedEntities, variablesDefinition: VariableDefinition[], variables: Record<string, unknown>, field: SelectionAnalysis, tableAlias: string, parentTableName: string | null, parentTableAlias: string | null, level: number, aliasMap: {
|
|
36
40
|
[alias: string]: string;
|