@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
|
@@ -35,37 +35,131 @@ export type CronTickCallback<TVariables = Record<string, unknown>> = (options: {
|
|
|
35
35
|
* This allows TypeScript to infer the variables type
|
|
36
36
|
*/
|
|
37
37
|
export declare const createTypedCronJobZod: <TVariables extends DefaultVariables>() => z.ZodObject<{
|
|
38
|
+
/**
|
|
39
|
+
* Unique name/identifier for the cron job
|
|
40
|
+
*/
|
|
38
41
|
name: z.ZodString;
|
|
42
|
+
/**
|
|
43
|
+
* Cron pattern or ISO 8601 date string
|
|
44
|
+
* Examples:
|
|
45
|
+
* - "0 0 * * *" (daily at midnight)
|
|
46
|
+
* - "*\/5 * * * *" (every 5 minutes)
|
|
47
|
+
* - "2024-01-23T00:00:00" (specific date/time)
|
|
48
|
+
*/
|
|
39
49
|
pattern: z.ZodString;
|
|
50
|
+
/**
|
|
51
|
+
* Optional GraphQL query to execute when the cron job runs
|
|
52
|
+
* If not provided, you must use the gqlQuery function in onTick callback
|
|
53
|
+
*/
|
|
40
54
|
query: z.ZodOptional<z.ZodString>;
|
|
55
|
+
/**
|
|
56
|
+
* Optional variables to pass to the GraphQL query
|
|
57
|
+
*/
|
|
41
58
|
variables: z.ZodOptional<z.ZodCustom<TVariables, TVariables>>;
|
|
59
|
+
/**
|
|
60
|
+
* Optional timezone (e.g., "America/New_York", "Europe/Stockholm")
|
|
61
|
+
*/
|
|
42
62
|
timezone: z.ZodOptional<z.ZodString>;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the job should be paused from start
|
|
65
|
+
*/
|
|
43
66
|
paused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
/**
|
|
68
|
+
* Maximum number of times the job should run
|
|
69
|
+
*/
|
|
44
70
|
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
/**
|
|
72
|
+
* Minimum number of seconds between triggers
|
|
73
|
+
*/
|
|
45
74
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
/**
|
|
76
|
+
* ISO 8601 formatted datetime to start the job
|
|
77
|
+
*/
|
|
46
78
|
startAt: z.ZodOptional<z.ZodString>;
|
|
79
|
+
/**
|
|
80
|
+
* ISO 8601 formatted datetime to stop the job
|
|
81
|
+
*/
|
|
47
82
|
stopAt: z.ZodOptional<z.ZodString>;
|
|
83
|
+
/**
|
|
84
|
+
* Enable over-run protection (blocks new triggers while old one is in progress)
|
|
85
|
+
*/
|
|
48
86
|
protect: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
/**
|
|
88
|
+
* Whether to catch errors silently or handle them
|
|
89
|
+
*/
|
|
49
90
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
91
|
+
/**
|
|
92
|
+
* Context to pass along with the cron job (for logging, etc.)
|
|
93
|
+
*/
|
|
50
94
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
95
|
+
/**
|
|
96
|
+
* Callback executed on each tick
|
|
97
|
+
*/
|
|
51
98
|
onTick: z.ZodOptional<z.ZodCustom<CronTickCallback<TVariables>, CronTickCallback<TVariables>>>;
|
|
52
|
-
}, z.core.$
|
|
99
|
+
}, z.core.$strict>;
|
|
53
100
|
export declare const TypedCronJobZod: z.ZodObject<{
|
|
101
|
+
/**
|
|
102
|
+
* Unique name/identifier for the cron job
|
|
103
|
+
*/
|
|
54
104
|
name: z.ZodString;
|
|
105
|
+
/**
|
|
106
|
+
* Cron pattern or ISO 8601 date string
|
|
107
|
+
* Examples:
|
|
108
|
+
* - "0 0 * * *" (daily at midnight)
|
|
109
|
+
* - "*\/5 * * * *" (every 5 minutes)
|
|
110
|
+
* - "2024-01-23T00:00:00" (specific date/time)
|
|
111
|
+
*/
|
|
55
112
|
pattern: z.ZodString;
|
|
113
|
+
/**
|
|
114
|
+
* Optional GraphQL query to execute when the cron job runs
|
|
115
|
+
* If not provided, you must use the gqlQuery function in onTick callback
|
|
116
|
+
*/
|
|
56
117
|
query: z.ZodOptional<z.ZodString>;
|
|
118
|
+
/**
|
|
119
|
+
* Optional variables to pass to the GraphQL query
|
|
120
|
+
*/
|
|
57
121
|
variables: z.ZodOptional<z.ZodCustom<Record<string, unknown>, Record<string, unknown>>>;
|
|
122
|
+
/**
|
|
123
|
+
* Optional timezone (e.g., "America/New_York", "Europe/Stockholm")
|
|
124
|
+
*/
|
|
58
125
|
timezone: z.ZodOptional<z.ZodString>;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the job should be paused from start
|
|
128
|
+
*/
|
|
59
129
|
paused: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
130
|
+
/**
|
|
131
|
+
* Maximum number of times the job should run
|
|
132
|
+
*/
|
|
60
133
|
maxRuns: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
/**
|
|
135
|
+
* Minimum number of seconds between triggers
|
|
136
|
+
*/
|
|
61
137
|
interval: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
/**
|
|
139
|
+
* ISO 8601 formatted datetime to start the job
|
|
140
|
+
*/
|
|
62
141
|
startAt: z.ZodOptional<z.ZodString>;
|
|
142
|
+
/**
|
|
143
|
+
* ISO 8601 formatted datetime to stop the job
|
|
144
|
+
*/
|
|
63
145
|
stopAt: z.ZodOptional<z.ZodString>;
|
|
146
|
+
/**
|
|
147
|
+
* Enable over-run protection (blocks new triggers while old one is in progress)
|
|
148
|
+
*/
|
|
64
149
|
protect: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
/**
|
|
151
|
+
* Whether to catch errors silently or handle them
|
|
152
|
+
*/
|
|
65
153
|
catchErrors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
154
|
+
/**
|
|
155
|
+
* Context to pass along with the cron job (for logging, etc.)
|
|
156
|
+
*/
|
|
66
157
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
158
|
+
/**
|
|
159
|
+
* Callback executed on each tick
|
|
160
|
+
*/
|
|
67
161
|
onTick: z.ZodOptional<z.ZodCustom<CronTickCallback<Record<string, unknown>>, CronTickCallback<Record<string, unknown>>>>;
|
|
68
|
-
}, z.core.$
|
|
162
|
+
}, z.core.$strict>;
|
|
69
163
|
export type CronJobType = z.input<typeof TypedCronJobZod>;
|
|
70
164
|
/**
|
|
71
165
|
* Typed cron job definition
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cron.d.ts","sourceRoot":"","sources":["../../../../src/config/types/cron.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,sBAAsB,wCAAoC,CAAC;AAExE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,UAAU,GAAG,gBAAgB,IAAI;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,UAAU,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,IAAI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GH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;kBAI+C,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,UAAU,GAAG,gBAAgB,IAAI,IAAI,CAC5D,WAAW,EACX,WAAW,GAAG,QAAQ,CACvB,GAAG;IACF,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,MAAM,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,CAAC,UAAU,GAAG,gBAAgB,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -2,14 +2,64 @@ import { z } from "zod";
|
|
|
2
2
|
import type { SQL } from "bun";
|
|
3
3
|
import type { ConnectionPool } from "mssql";
|
|
4
4
|
export type DatabaseType = "mssql" | "pg" | "mysql";
|
|
5
|
+
/** Comparison operators allowed in a static relationship join condition. */
|
|
6
|
+
export declare const RELATIONSHIP_CONDITION_OPERATORS: readonly ["eq", "neq", "gt", "gte", "lt", "lte", "like", "is_null", "is_not_null"];
|
|
7
|
+
/**
|
|
8
|
+
* A static-value predicate added to a relationship's JOIN. Targets exactly one
|
|
9
|
+
* side of the relationship — `source` (a column on the declaring table) or
|
|
10
|
+
* `target` (a column on the referenced table) — and compares it to a literal.
|
|
11
|
+
* A `value` is required for every operator except `is_null` / `is_not_null`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const RelationshipConditionZod: z.ZodObject<{
|
|
14
|
+
/** Column on the declaring (source) table */
|
|
15
|
+
source: z.ZodOptional<z.ZodString>;
|
|
16
|
+
/** Column on the referenced (target) table */
|
|
17
|
+
target: z.ZodOptional<z.ZodString>;
|
|
18
|
+
/** Comparison operator (default `eq`) */
|
|
19
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
eq: "eq";
|
|
21
|
+
neq: "neq";
|
|
22
|
+
gt: "gt";
|
|
23
|
+
gte: "gte";
|
|
24
|
+
lt: "lt";
|
|
25
|
+
lte: "lte";
|
|
26
|
+
like: "like";
|
|
27
|
+
is_null: "is_null";
|
|
28
|
+
is_not_null: "is_not_null";
|
|
29
|
+
}>>>;
|
|
30
|
+
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
31
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export type RelationshipCondition = z.input<typeof RelationshipConditionZod>;
|
|
5
34
|
export declare const TableRelationshipZod: z.ZodObject<{
|
|
6
35
|
schema: z.ZodString;
|
|
7
36
|
name: z.ZodString;
|
|
8
37
|
columns: z.ZodArray<z.ZodObject<{
|
|
9
38
|
source: z.ZodString;
|
|
10
39
|
target: z.ZodString;
|
|
11
|
-
}, z.core.$
|
|
12
|
-
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
/** Static-value predicates ANDed into the JOIN condition */
|
|
42
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43
|
+
/** Column on the declaring (source) table */
|
|
44
|
+
source: z.ZodOptional<z.ZodString>;
|
|
45
|
+
/** Column on the referenced (target) table */
|
|
46
|
+
target: z.ZodOptional<z.ZodString>;
|
|
47
|
+
/** Comparison operator (default `eq`) */
|
|
48
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
eq: "eq";
|
|
50
|
+
neq: "neq";
|
|
51
|
+
gt: "gt";
|
|
52
|
+
gte: "gte";
|
|
53
|
+
lt: "lt";
|
|
54
|
+
lte: "lte";
|
|
55
|
+
like: "like";
|
|
56
|
+
is_null: "is_null";
|
|
57
|
+
is_not_null: "is_not_null";
|
|
58
|
+
}>>>;
|
|
59
|
+
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
60
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
61
|
+
}, z.core.$strict>>>;
|
|
62
|
+
}, z.core.$strict>;
|
|
13
63
|
export type TableRelationship = z.input<typeof TableRelationshipZod>;
|
|
14
64
|
export declare const TableSchemaConfigZod: z.ZodObject<{
|
|
15
65
|
columns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -21,18 +71,41 @@ export declare const TableSchemaConfigZod: z.ZodObject<{
|
|
|
21
71
|
function: z.ZodOptional<z.ZodString>;
|
|
22
72
|
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
73
|
expression: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$strict>>>>;
|
|
25
75
|
relationships: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
76
|
schema: z.ZodString;
|
|
27
77
|
name: z.ZodString;
|
|
28
78
|
columns: z.ZodArray<z.ZodObject<{
|
|
29
79
|
source: z.ZodString;
|
|
30
80
|
target: z.ZodString;
|
|
31
|
-
}, z.core.$
|
|
32
|
-
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
/** Static-value predicates ANDed into the JOIN condition */
|
|
83
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
/** Column on the declaring (source) table */
|
|
85
|
+
source: z.ZodOptional<z.ZodString>;
|
|
86
|
+
/** Column on the referenced (target) table */
|
|
87
|
+
target: z.ZodOptional<z.ZodString>;
|
|
88
|
+
/** Comparison operator (default `eq`) */
|
|
89
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
90
|
+
eq: "eq";
|
|
91
|
+
neq: "neq";
|
|
92
|
+
gt: "gt";
|
|
93
|
+
gte: "gte";
|
|
94
|
+
lt: "lt";
|
|
95
|
+
lte: "lte";
|
|
96
|
+
like: "like";
|
|
97
|
+
is_null: "is_null";
|
|
98
|
+
is_not_null: "is_not_null";
|
|
99
|
+
}>>>;
|
|
100
|
+
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
101
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
102
|
+
}, z.core.$strict>>>;
|
|
103
|
+
}, z.core.$strict>>>>;
|
|
104
|
+
/** Overrides the table description from the database */
|
|
33
105
|
description: z.ZodOptional<z.ZodString>;
|
|
106
|
+
/** Overrides column descriptions from the database, keyed by column name */
|
|
34
107
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
35
|
-
}, z.core.$
|
|
108
|
+
}, z.core.$strict>;
|
|
36
109
|
export type TableSchemaConfig = z.input<typeof TableSchemaConfigZod>;
|
|
37
110
|
export declare const DatabaseSchemaConfigZod: z.ZodObject<{
|
|
38
111
|
database: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
@@ -45,52 +118,92 @@ export declare const DatabaseSchemaConfigZod: z.ZodObject<{
|
|
|
45
118
|
function: z.ZodOptional<z.ZodString>;
|
|
46
119
|
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
120
|
expression: z.ZodOptional<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
121
|
+
}, z.core.$strict>>>>;
|
|
49
122
|
relationships: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
123
|
schema: z.ZodString;
|
|
51
124
|
name: z.ZodString;
|
|
52
125
|
columns: z.ZodArray<z.ZodObject<{
|
|
53
126
|
source: z.ZodString;
|
|
54
127
|
target: z.ZodString;
|
|
55
|
-
}, z.core.$
|
|
56
|
-
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
/** Static-value predicates ANDed into the JOIN condition */
|
|
130
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
/** Column on the declaring (source) table */
|
|
132
|
+
source: z.ZodOptional<z.ZodString>;
|
|
133
|
+
/** Column on the referenced (target) table */
|
|
134
|
+
target: z.ZodOptional<z.ZodString>;
|
|
135
|
+
/** Comparison operator (default `eq`) */
|
|
136
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
eq: "eq";
|
|
138
|
+
neq: "neq";
|
|
139
|
+
gt: "gt";
|
|
140
|
+
gte: "gte";
|
|
141
|
+
lt: "lt";
|
|
142
|
+
lte: "lte";
|
|
143
|
+
like: "like";
|
|
144
|
+
is_null: "is_null";
|
|
145
|
+
is_not_null: "is_not_null";
|
|
146
|
+
}>>>;
|
|
147
|
+
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
148
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
149
|
+
}, z.core.$strict>>>;
|
|
150
|
+
}, z.core.$strict>>>>;
|
|
151
|
+
/** Overrides the table description from the database */
|
|
57
152
|
description: z.ZodOptional<z.ZodString>;
|
|
153
|
+
/** Overrides column descriptions from the database, keyed by column name */
|
|
58
154
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
59
|
-
}, z.core.$
|
|
155
|
+
}, z.core.$strict>>>>>>>;
|
|
60
156
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
61
|
-
}, z.core.$
|
|
157
|
+
}, z.core.$strict>;
|
|
62
158
|
export type DatabaseSchemaConfig = z.input<typeof DatabaseSchemaConfigZod>;
|
|
63
159
|
/**
|
|
64
160
|
* Connection pool and transport options for PostgreSQL and MySQL (Bun SQL).
|
|
65
161
|
* All timeout values are in seconds.
|
|
66
162
|
*/
|
|
67
163
|
export declare const BunSQLConnectionOptionsZod: z.ZodObject<{
|
|
164
|
+
/** Maximum number of connections in the pool */
|
|
68
165
|
max: z.ZodDefault<z.ZodNumber>;
|
|
166
|
+
/** Maximum time in seconds a connection can be idle before being closed */
|
|
69
167
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
168
|
+
/** Maximum time in seconds to wait when establishing a connection */
|
|
70
169
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
170
|
+
/** Maximum lifetime in seconds of a connection */
|
|
71
171
|
maxLifetime: z.ZodDefault<z.ZodNumber>;
|
|
172
|
+
/** Whether to use TLS/SSL for the connection */
|
|
72
173
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
+
/** Automatic creation of prepared statements (default: true) */
|
|
73
175
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
+
/** Return values outside i32 range as BigInts instead of strings (default: false) */
|
|
74
177
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
-
}, z.core.$
|
|
178
|
+
}, z.core.$strict>;
|
|
76
179
|
export type BunSQLConnectionOptions = z.input<typeof BunSQLConnectionOptionsZod>;
|
|
77
180
|
/**
|
|
78
181
|
* Connection pool and transport options for MSSQL.
|
|
79
182
|
* All timeout values are in seconds (converted to milliseconds internally).
|
|
80
183
|
*/
|
|
81
184
|
export declare const MSSQLConnectionOptionsZod: z.ZodObject<{
|
|
185
|
+
/** Connection pool options */
|
|
82
186
|
pool: z.ZodDefault<z.ZodObject<{
|
|
187
|
+
/** Maximum number of connections in the pool */
|
|
83
188
|
max: z.ZodDefault<z.ZodNumber>;
|
|
189
|
+
/** Minimum number of connections in the pool */
|
|
84
190
|
min: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
/** Maximum time in seconds a connection can be idle before being closed */
|
|
85
192
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
86
|
-
}, z.core.$
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
/** Maximum time in seconds to wait when establishing a connection */
|
|
87
195
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
196
|
+
/** Maximum time in seconds to wait for a request to complete */
|
|
88
197
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
198
|
+
/** Whether to encrypt the connection */
|
|
89
199
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
200
|
+
/** Whether to trust the server certificate without validation */
|
|
90
201
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
202
|
+
/** Whether to use Windows Authentication (trusted connection) */
|
|
91
203
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
204
|
+
/** Whether to automatically parse JSON responses */
|
|
92
205
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
-
}, z.core.$
|
|
206
|
+
}, z.core.$strict>;
|
|
94
207
|
export type MSSQLConnectionOptions = z.input<typeof MSSQLConnectionOptionsZod>;
|
|
95
208
|
/**
|
|
96
209
|
* Maps database type to the corresponding native connection type.
|
|
@@ -113,19 +226,27 @@ export type OnConnectHandler<T extends DatabaseType = DatabaseType> = (connectio
|
|
|
113
226
|
*/
|
|
114
227
|
export type ConnectionOptionsForType<T extends DatabaseType> = T extends "pg" | "mysql" ? BunSQLConnectionOptions : T extends "mssql" ? MSSQLConnectionOptions : never;
|
|
115
228
|
export declare const DatabaseConnectionZod: z.ZodObject<{
|
|
229
|
+
/** Unique name for the database connection */
|
|
116
230
|
name: z.ZodString;
|
|
231
|
+
/** Whether the database is enabled */
|
|
117
232
|
enabled: z.ZodBoolean;
|
|
233
|
+
/** Database type */
|
|
118
234
|
type: z.ZodUnion<readonly [z.ZodLiteral<"mssql">, z.ZodLiteral<"pg">, z.ZodLiteral<"mysql">]>;
|
|
235
|
+
/** Connection configuration */
|
|
119
236
|
connection: z.ZodObject<{
|
|
120
237
|
host: z.ZodString;
|
|
121
238
|
port: z.ZodNumber;
|
|
122
239
|
user: z.ZodString;
|
|
123
240
|
password: z.ZodString;
|
|
124
241
|
database: z.ZodString;
|
|
125
|
-
}, z.core.$
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
/** Field naming pattern (default: "{schema}_{name}") */
|
|
126
244
|
fieldNaming: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
245
|
+
/** Factory function to create custom database repository */
|
|
127
246
|
repository: z.ZodOptional<z.ZodCustom<CustomRepositoryFactory<DatabaseType>, CustomRepositoryFactory<DatabaseType>>>;
|
|
247
|
+
/** Handler run once at startup against the connected database */
|
|
128
248
|
onConnect: z.ZodOptional<z.ZodCustom<OnConnectHandler<DatabaseType>, OnConnectHandler<DatabaseType>>>;
|
|
249
|
+
/** Schema configuration (virtual columns, relationships, excluded tables) */
|
|
129
250
|
schema: z.ZodOptional<z.ZodObject<{
|
|
130
251
|
database: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
131
252
|
columns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -137,42 +258,83 @@ export declare const DatabaseConnectionZod: z.ZodObject<{
|
|
|
137
258
|
function: z.ZodOptional<z.ZodString>;
|
|
138
259
|
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
260
|
expression: z.ZodOptional<z.ZodString>;
|
|
140
|
-
}, z.core.$
|
|
261
|
+
}, z.core.$strict>>>>;
|
|
141
262
|
relationships: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
263
|
schema: z.ZodString;
|
|
143
264
|
name: z.ZodString;
|
|
144
265
|
columns: z.ZodArray<z.ZodObject<{
|
|
145
266
|
source: z.ZodString;
|
|
146
267
|
target: z.ZodString;
|
|
147
|
-
}, z.core.$
|
|
148
|
-
|
|
268
|
+
}, z.core.$strict>>;
|
|
269
|
+
/** Static-value predicates ANDed into the JOIN condition */
|
|
270
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
271
|
+
/** Column on the declaring (source) table */
|
|
272
|
+
source: z.ZodOptional<z.ZodString>;
|
|
273
|
+
/** Column on the referenced (target) table */
|
|
274
|
+
target: z.ZodOptional<z.ZodString>;
|
|
275
|
+
/** Comparison operator (default `eq`) */
|
|
276
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
eq: "eq";
|
|
278
|
+
neq: "neq";
|
|
279
|
+
gt: "gt";
|
|
280
|
+
gte: "gte";
|
|
281
|
+
lt: "lt";
|
|
282
|
+
lte: "lte";
|
|
283
|
+
like: "like";
|
|
284
|
+
is_null: "is_null";
|
|
285
|
+
is_not_null: "is_not_null";
|
|
286
|
+
}>>>;
|
|
287
|
+
/** Literal compared against the column (omit for `is_null` / `is_not_null`) */
|
|
288
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
289
|
+
}, z.core.$strict>>>;
|
|
290
|
+
}, z.core.$strict>>>>;
|
|
291
|
+
/** Overrides the table description from the database */
|
|
149
292
|
description: z.ZodOptional<z.ZodString>;
|
|
293
|
+
/** Overrides column descriptions from the database, keyed by column name */
|
|
150
294
|
columnDescriptions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
151
|
-
}, z.core.$
|
|
295
|
+
}, z.core.$strict>>>>>>>;
|
|
152
296
|
excludedTables: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
153
|
-
}, z.core.$
|
|
297
|
+
}, z.core.$strict>>;
|
|
298
|
+
/** Optional connection pool and transport options */
|
|
154
299
|
connectionOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
300
|
+
/** Maximum number of connections in the pool */
|
|
155
301
|
max: z.ZodDefault<z.ZodNumber>;
|
|
302
|
+
/** Maximum time in seconds a connection can be idle before being closed */
|
|
156
303
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
304
|
+
/** Maximum time in seconds to wait when establishing a connection */
|
|
157
305
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
306
|
+
/** Maximum lifetime in seconds of a connection */
|
|
158
307
|
maxLifetime: z.ZodDefault<z.ZodNumber>;
|
|
308
|
+
/** Whether to use TLS/SSL for the connection */
|
|
159
309
|
tls: z.ZodDefault<z.ZodBoolean>;
|
|
310
|
+
/** Automatic creation of prepared statements (default: true) */
|
|
160
311
|
prepare: z.ZodDefault<z.ZodBoolean>;
|
|
312
|
+
/** Return values outside i32 range as BigInts instead of strings (default: false) */
|
|
161
313
|
bigint: z.ZodDefault<z.ZodBoolean>;
|
|
162
|
-
}, z.core.$
|
|
314
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
315
|
+
/** Connection pool options */
|
|
163
316
|
pool: z.ZodDefault<z.ZodObject<{
|
|
317
|
+
/** Maximum number of connections in the pool */
|
|
164
318
|
max: z.ZodDefault<z.ZodNumber>;
|
|
319
|
+
/** Minimum number of connections in the pool */
|
|
165
320
|
min: z.ZodDefault<z.ZodNumber>;
|
|
321
|
+
/** Maximum time in seconds a connection can be idle before being closed */
|
|
166
322
|
idleTimeout: z.ZodDefault<z.ZodNumber>;
|
|
167
|
-
}, z.core.$
|
|
323
|
+
}, z.core.$strict>>;
|
|
324
|
+
/** Maximum time in seconds to wait when establishing a connection */
|
|
168
325
|
connectionTimeout: z.ZodDefault<z.ZodNumber>;
|
|
326
|
+
/** Maximum time in seconds to wait for a request to complete */
|
|
169
327
|
requestTimeout: z.ZodDefault<z.ZodNumber>;
|
|
328
|
+
/** Whether to encrypt the connection */
|
|
170
329
|
encrypt: z.ZodDefault<z.ZodBoolean>;
|
|
330
|
+
/** Whether to trust the server certificate without validation */
|
|
171
331
|
trustServerCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
332
|
+
/** Whether to use Windows Authentication (trusted connection) */
|
|
172
333
|
trustedConnection: z.ZodDefault<z.ZodBoolean>;
|
|
334
|
+
/** Whether to automatically parse JSON responses */
|
|
173
335
|
parseJSON: z.ZodDefault<z.ZodBoolean>;
|
|
174
|
-
}, z.core.$
|
|
175
|
-
}, z.core.$
|
|
336
|
+
}, z.core.$strict>]>>;
|
|
337
|
+
}, z.core.$strict>;
|
|
176
338
|
/**
|
|
177
339
|
* Database connection shape (derived from the Zod schema).
|
|
178
340
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/config/types/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC;AAMpD,eAAO,MAAM,oBAAoB;;;;;;;
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../../src/config/types/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAe5C,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC;AAMpD,4EAA4E;AAC5E,eAAO,MAAM,gCAAgC,oFAUnC,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;IAEjC,6CAA6C;;IAE7C,8CAA8C;;IAE9C,yCAAyC;;;;;;;;;;;;IAEzC,+EAA+E;;kBAUhF,CAAC;AAEJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM7E,eAAO,MAAM,oBAAoB;;;;;;;IAI/B,4DAA4D;;QA5B1D,6CAA6C;;QAE7C,8CAA8C;;QAE9C,yCAAyC;;;;;;;;;;;;QAE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,2EAA2E;;;QAQ/E,qEAAqE;;QAErE,gEAAgE;;QAEhE,wCAAwC;;QAExC,iEAAiE;;QAEjE,iEAAiE;;QAEjE,oDAAoD;;;kBA6EpD,CAAC;AAQH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC,YAAY,CAAC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,IAAI;IAClE,8CAA8C;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,oBAAoB;IACpB,IAAI,EAAE,CAAC,CAAC;IACR,+BAA+B;IAC/B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC;IACxC,iEAAiE;IACjE,SAAS,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAChC,6EAA6E;IAC7E,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,qDAAqD;IACrD,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,CAAC;CACjD,CAAC;AAMF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;KAC7B,CAAC,IAAI,YAAY,GAAG,cAAc,CAAC,CAAC,CAAC;CACvC,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { VirtualColumnType, VirtualColumnFunctionFn, VirtualColumnExpressionFn, CreateYAndNToBooleanMSSQLFn, CreateOneToBooleanMSSQLFn, } from "./virtual-columns";
|
|
2
2
|
export { virtualColumnFunction, virtualColumnExpression, createYAndNToBooleanMSSQL, createOneToBooleanMSSQL, VirtualColumnZod, } from "./virtual-columns";
|
|
3
|
-
export type { DefaultInput, OperationRestConfig, OperationGraphQLConfig, OperationCacheConfig, BeforeRequestContext, AfterRequestContext, GqlQueryResult, OperationOptions, OperationInitHook, OperationBeforeRequestHook, OperationAfterRequestHook, OperationHandler, BaseOperation, QueryOperation, HandlerOperation, TypedOperation, Operation, Operations, } from "./operation";
|
|
3
|
+
export type { DefaultInput, AnyQueryDocument, QueryResultOf, OperationRestConfig, OperationGraphQLConfig, OperationCacheConfig, BeforeRequestContext, AfterRequestContext, GqlQueryResult, OperationOptions, OperationInitHook, OperationBeforeRequestHook, OperationAfterRequestHook, OperationHandler, BaseOperation, QueryOperation, HandlerOperation, TypedOperation, Operation, Operations, } from "./operation";
|
|
4
4
|
export { OperationRestConfigZod, OperationGraphQLConfigZod, OperationCacheConfigZod, OperationZod, OperationsZod, } from "./operation";
|
|
5
5
|
export type { CronTickCallback, CronJobConfig } from "./cron";
|
|
6
6
|
export type { AIConfig, MCPConfig } from "./ai";
|
|
@@ -10,8 +10,8 @@ export type { ReconnectConfig, PublisherConfig, SubscriberConfig, TopicConfig, C
|
|
|
10
10
|
export { ReconnectConfigZod, PublisherConfigZod, SubscriberConfigZod, TopicConfigZod, BaseQueueConfigZod, RabbitMQConnectionZod, KafkaConnectionZod, } from "./queue";
|
|
11
11
|
export type { DirectionUnion, OrderByClause, FilterCondition, TablePermission, RolePermission, AuthConfig, } from "./auth";
|
|
12
12
|
export { DirectionUnionZod, OrderByClauseZod, FilterConditionZod, TablePermissionZod, RolePermissionZod, AuthConfigZod, } from "./auth";
|
|
13
|
-
export type { DatabaseType, DatabaseConnection, TableRelationship, TableSchemaConfig, DatabaseSchemaConfig, CustomRepositoryFactory, DatabaseConfig, OnConnectHandler, BunSQLConnectionOptions, MSSQLConnectionOptions, ConnectionOptionsForType, AnyDatabaseConfig, } from "./db";
|
|
14
|
-
export { TableRelationshipZod, TableSchemaConfigZod, DatabaseSchemaConfigZod, BunSQLConnectionOptionsZod, MSSQLConnectionOptionsZod, DatabaseConnectionZod, } from "./db";
|
|
13
|
+
export type { DatabaseType, DatabaseConnection, TableRelationship, RelationshipCondition, TableSchemaConfig, DatabaseSchemaConfig, CustomRepositoryFactory, DatabaseConfig, OnConnectHandler, BunSQLConnectionOptions, MSSQLConnectionOptions, ConnectionOptionsForType, AnyDatabaseConfig, } from "./db";
|
|
14
|
+
export { TableRelationshipZod, RelationshipConditionZod, RELATIONSHIP_CONDITION_OPERATORS, TableSchemaConfigZod, DatabaseSchemaConfigZod, BunSQLConnectionOptionsZod, MSSQLConnectionOptionsZod, DatabaseConnectionZod, } from "./db";
|
|
15
15
|
export type { ConfigurationInput, TokenStrategy } from "./configuration";
|
|
16
16
|
export { TokenStrategyZod } from "./configuration";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,YAAY,EACZ,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAG9D,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGhD,YAAY,EAAE,kBAAkB,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAG3F,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,YAAY,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,WAAW,GACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AAGjB,YAAY,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,MAAM,QAAQ,CAAC;AAGhB,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,GACtB,MAAM,MAAM,CAAC;AAEd,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/config/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,i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