@mrnafisia/type-query 1.0.52 → 1.1.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/context.d.ts +56 -583
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +41 -18
- package/dist/context.js.map +1 -1
- package/dist/createModelUtils.d.ts +503 -0
- package/dist/createModelUtils.d.ts.map +1 -0
- package/dist/{model.js → createModelUtils.js} +16 -13
- package/dist/createModelUtils.js.map +1 -0
- package/dist/dictionary.d.ts +93 -10
- package/dist/dictionary.d.ts.map +1 -1
- package/dist/dictionary.js +132 -164
- package/dist/dictionary.js.map +1 -1
- package/dist/entity.d.ts +687 -2483
- package/dist/entity.d.ts.map +1 -1
- package/dist/entity.js +164 -189
- package/dist/entity.js.map +1 -1
- package/dist/hook.d.ts +15 -0
- package/dist/hook.d.ts.map +1 -0
- package/dist/hook.js +30 -0
- package/dist/hook.js.map +1 -0
- package/dist/index.d.ts +17 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +54 -15
- package/dist/index.js.map +1 -1
- package/dist/parser.d.ts +1 -1
- package/dist/parser.d.ts.map +1 -1
- package/dist/parser.js +1 -1
- package/dist/parser.js.map +1 -1
- package/dist/pool.d.ts +9 -5
- package/dist/pool.d.ts.map +1 -1
- package/dist/pool.js +1 -26
- package/dist/pool.js.map +1 -1
- package/dist/schema.d.ts +21 -9
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +169 -176
- package/dist/schema.js.map +1 -1
- package/dist/testUtil.d.ts +25 -1
- package/dist/testUtil.d.ts.map +1 -1
- package/dist/testUtil.js +9 -3
- package/dist/testUtil.js.map +1 -1
- package/dist/types/Context.d.ts +53 -0
- package/dist/types/Context.d.ts.map +1 -0
- package/dist/types/{context.js → Context.js} +1 -1
- package/dist/types/Context.js.map +1 -0
- package/dist/types/Entity.d.ts +64 -0
- package/dist/types/Entity.d.ts.map +1 -0
- package/dist/types/{entity.js → Entity.js} +1 -1
- package/dist/types/Entity.js.map +1 -0
- package/dist/types/{json.d.ts → Json.d.ts} +3 -3
- package/dist/types/{json.d.ts.map → Json.d.ts.map} +1 -1
- package/dist/types/{pool.js → Json.js} +1 -1
- package/dist/types/Json.js.map +1 -0
- package/dist/types/Model.d.ts +12 -0
- package/dist/types/Model.d.ts.map +1 -0
- package/dist/types/{table.js → Model.js} +1 -1
- package/dist/types/Model.js.map +1 -0
- package/dist/types/{table.d.ts → Table.d.ts} +5 -5
- package/dist/types/{table.d.ts.map → Table.d.ts.map} +1 -1
- package/dist/types/{json.js → Table.js} +1 -1
- package/dist/types/Table.js.map +1 -0
- package/dist/types/TypeMapper.d.ts +14 -0
- package/dist/types/TypeMapper.d.ts.map +1 -0
- package/dist/types/{model.js → TypeMapper.js} +1 -1
- package/dist/types/TypeMapper.js.map +1 -0
- package/dist/types/postgres.d.ts +3 -6
- package/dist/types/postgres.d.ts.map +1 -1
- package/dist/utils.d.ts +38 -66
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +48 -171
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/U.d.ts +0 -3
- package/dist/U.d.ts.map +0 -1
- package/dist/U.js +0 -29
- package/dist/U.js.map +0 -1
- package/dist/model.d.ts +0 -1006
- package/dist/model.d.ts.map +0 -1
- package/dist/model.js.map +0 -1
- package/dist/types/context.d.ts +0 -52
- package/dist/types/context.d.ts.map +0 -1
- package/dist/types/context.js.map +0 -1
- package/dist/types/entity.d.ts +0 -71
- package/dist/types/entity.d.ts.map +0 -1
- package/dist/types/entity.js.map +0 -1
- package/dist/types/json.js.map +0 -1
- package/dist/types/model.d.ts +0 -24
- package/dist/types/model.d.ts.map +0 -1
- package/dist/types/model.js.map +0 -1
- package/dist/types/pool.d.ts +0 -19
- package/dist/types/pool.d.ts.map +0 -1
- package/dist/types/pool.js.map +0 -1
- package/dist/types/table.js.map +0 -1
- package/dist/types/testUtil.d.ts +0 -27
- package/dist/types/testUtil.d.ts.map +0 -1
- package/dist/types/testUtil.js +0 -3
- package/dist/types/testUtil.js.map +0 -1
package/dist/context.d.ts
CHANGED
|
@@ -1,37 +1,16 @@
|
|
|
1
|
-
import { Table } from './types/
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
8
|
-
nullable: boolean;
|
|
9
|
-
title?: string;
|
|
10
|
-
reference?: {
|
|
11
|
-
table: Table;
|
|
12
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
13
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
14
|
-
column: string;
|
|
15
|
-
};
|
|
16
|
-
} & {
|
|
1
|
+
import { Table } from './types/Table';
|
|
2
|
+
import { CustomTypeMap } from './types/TypeMapper';
|
|
3
|
+
import { Context, ContextScope } from './types/Context';
|
|
4
|
+
declare const createContext: <T extends Table, CTypeMap extends CustomTypeMap<T["columns"]>>(table: T, alias?: string) => Context<T["columns"], CTypeMap>;
|
|
5
|
+
declare const createContextScopeHelper: <T extends Table, CTypeMap extends CustomTypeMap<T["columns"]>>(table: T) => (rules: T["columns"] extends infer T_1 extends {
|
|
6
|
+
[key: string]: (import("./types/Table").Base & {
|
|
17
7
|
primary?: true;
|
|
18
8
|
nullable: false;
|
|
19
9
|
} & {
|
|
20
10
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
21
11
|
} & {
|
|
22
12
|
default: false;
|
|
23
|
-
}) | ({
|
|
24
|
-
type: import("./types/postgres").PostgresType;
|
|
25
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
26
|
-
nullable: boolean;
|
|
27
|
-
title?: string;
|
|
28
|
-
reference?: {
|
|
29
|
-
table: Table;
|
|
30
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
31
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
32
|
-
column: string;
|
|
33
|
-
};
|
|
34
|
-
} & {
|
|
13
|
+
}) | (import("./types/Table").Base & {
|
|
35
14
|
primary?: true;
|
|
36
15
|
nullable: false;
|
|
37
16
|
} & {
|
|
@@ -39,18 +18,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
39
18
|
} & {
|
|
40
19
|
default: true;
|
|
41
20
|
value: string;
|
|
42
|
-
}) | ({
|
|
43
|
-
type: import("./types/postgres").PostgresType;
|
|
44
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
45
|
-
nullable: boolean;
|
|
46
|
-
title?: string;
|
|
47
|
-
reference?: {
|
|
48
|
-
table: Table;
|
|
49
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
50
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
51
|
-
column: string;
|
|
52
|
-
};
|
|
53
|
-
} & {
|
|
21
|
+
}) | (import("./types/Table").Base & {
|
|
54
22
|
primary?: true;
|
|
55
23
|
nullable: false;
|
|
56
24
|
} & {
|
|
@@ -59,18 +27,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
59
27
|
default: "value";
|
|
60
28
|
type: "boolean";
|
|
61
29
|
value: boolean;
|
|
62
|
-
}) | ({
|
|
63
|
-
type: import("./types/postgres").PostgresType;
|
|
64
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
65
|
-
nullable: boolean;
|
|
66
|
-
title?: string;
|
|
67
|
-
reference?: {
|
|
68
|
-
table: Table;
|
|
69
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
70
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
71
|
-
column: string;
|
|
72
|
-
};
|
|
73
|
-
} & {
|
|
30
|
+
}) | (import("./types/Table").Base & {
|
|
74
31
|
primary?: true;
|
|
75
32
|
nullable: false;
|
|
76
33
|
} & {
|
|
@@ -79,18 +36,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
79
36
|
default: "value";
|
|
80
37
|
type: "character" | "character varying" | "text" | "uuid";
|
|
81
38
|
value: string;
|
|
82
|
-
}) | ({
|
|
83
|
-
type: import("./types/postgres").PostgresType;
|
|
84
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
85
|
-
nullable: boolean;
|
|
86
|
-
title?: string;
|
|
87
|
-
reference?: {
|
|
88
|
-
table: Table;
|
|
89
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
90
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
91
|
-
column: string;
|
|
92
|
-
};
|
|
93
|
-
} & {
|
|
39
|
+
}) | (import("./types/Table").Base & {
|
|
94
40
|
primary?: true;
|
|
95
41
|
nullable: false;
|
|
96
42
|
} & {
|
|
@@ -99,18 +45,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
99
45
|
default: "value";
|
|
100
46
|
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
101
47
|
value: Date;
|
|
102
|
-
}) | ({
|
|
103
|
-
type: import("./types/postgres").PostgresType;
|
|
104
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
105
|
-
nullable: boolean;
|
|
106
|
-
title?: string;
|
|
107
|
-
reference?: {
|
|
108
|
-
table: Table;
|
|
109
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
110
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
111
|
-
column: string;
|
|
112
|
-
};
|
|
113
|
-
} & {
|
|
48
|
+
}) | (import("./types/Table").Base & {
|
|
114
49
|
primary?: true;
|
|
115
50
|
nullable: false;
|
|
116
51
|
} & {
|
|
@@ -118,19 +53,8 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
118
53
|
} & {
|
|
119
54
|
default: "value";
|
|
120
55
|
type: "json" | "jsonb";
|
|
121
|
-
value: import("./types/
|
|
122
|
-
}) | ({
|
|
123
|
-
type: import("./types/postgres").PostgresType;
|
|
124
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
125
|
-
nullable: boolean;
|
|
126
|
-
title?: string;
|
|
127
|
-
reference?: {
|
|
128
|
-
table: Table;
|
|
129
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
130
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
131
|
-
column: string;
|
|
132
|
-
};
|
|
133
|
-
} & {
|
|
56
|
+
value: import("./types/Json").Json;
|
|
57
|
+
}) | (import("./types/Table").Base & {
|
|
134
58
|
primary?: true;
|
|
135
59
|
nullable: false;
|
|
136
60
|
} & {
|
|
@@ -139,18 +63,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
139
63
|
max?: number;
|
|
140
64
|
} & {
|
|
141
65
|
default: false;
|
|
142
|
-
}) | ({
|
|
143
|
-
type: import("./types/postgres").PostgresType;
|
|
144
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
145
|
-
nullable: boolean;
|
|
146
|
-
title?: string;
|
|
147
|
-
reference?: {
|
|
148
|
-
table: Table;
|
|
149
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
150
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
151
|
-
column: string;
|
|
152
|
-
};
|
|
153
|
-
} & {
|
|
66
|
+
}) | (import("./types/Table").Base & {
|
|
154
67
|
primary?: true;
|
|
155
68
|
nullable: false;
|
|
156
69
|
} & {
|
|
@@ -160,18 +73,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
160
73
|
} & {
|
|
161
74
|
default: true;
|
|
162
75
|
value: string;
|
|
163
|
-
}) | ({
|
|
164
|
-
type: import("./types/postgres").PostgresType;
|
|
165
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
166
|
-
nullable: boolean;
|
|
167
|
-
title?: string;
|
|
168
|
-
reference?: {
|
|
169
|
-
table: Table;
|
|
170
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
171
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
172
|
-
column: string;
|
|
173
|
-
};
|
|
174
|
-
} & {
|
|
76
|
+
}) | (import("./types/Table").Base & {
|
|
175
77
|
primary?: true;
|
|
176
78
|
nullable: false;
|
|
177
79
|
} & {
|
|
@@ -182,18 +84,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
182
84
|
default: "auto-increment";
|
|
183
85
|
type: "bigint" | "smallint" | "integer";
|
|
184
86
|
seqTitle?: string;
|
|
185
|
-
}) | ({
|
|
186
|
-
type: import("./types/postgres").PostgresType;
|
|
187
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
188
|
-
nullable: boolean;
|
|
189
|
-
title?: string;
|
|
190
|
-
reference?: {
|
|
191
|
-
table: Table;
|
|
192
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
193
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
194
|
-
column: string;
|
|
195
|
-
};
|
|
196
|
-
} & {
|
|
87
|
+
}) | (import("./types/Table").Base & {
|
|
197
88
|
primary?: true;
|
|
198
89
|
nullable: false;
|
|
199
90
|
} & {
|
|
@@ -204,18 +95,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
204
95
|
default: "value";
|
|
205
96
|
type: "smallint" | "integer" | "real" | "double precision";
|
|
206
97
|
value: number;
|
|
207
|
-
}) | ({
|
|
208
|
-
type: import("./types/postgres").PostgresType;
|
|
209
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
210
|
-
nullable: boolean;
|
|
211
|
-
title?: string;
|
|
212
|
-
reference?: {
|
|
213
|
-
table: Table;
|
|
214
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
215
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
216
|
-
column: string;
|
|
217
|
-
};
|
|
218
|
-
} & {
|
|
98
|
+
}) | (import("./types/Table").Base & {
|
|
219
99
|
primary?: true;
|
|
220
100
|
nullable: false;
|
|
221
101
|
} & {
|
|
@@ -224,18 +104,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
224
104
|
max?: bigint;
|
|
225
105
|
} & {
|
|
226
106
|
default: false;
|
|
227
|
-
}) | ({
|
|
228
|
-
type: import("./types/postgres").PostgresType;
|
|
229
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
230
|
-
nullable: boolean;
|
|
231
|
-
title?: string;
|
|
232
|
-
reference?: {
|
|
233
|
-
table: Table;
|
|
234
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
235
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
236
|
-
column: string;
|
|
237
|
-
};
|
|
238
|
-
} & {
|
|
107
|
+
}) | (import("./types/Table").Base & {
|
|
239
108
|
primary?: true;
|
|
240
109
|
nullable: false;
|
|
241
110
|
} & {
|
|
@@ -245,18 +114,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
245
114
|
} & {
|
|
246
115
|
default: true;
|
|
247
116
|
value: string;
|
|
248
|
-
}) | ({
|
|
249
|
-
type: import("./types/postgres").PostgresType;
|
|
250
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
251
|
-
nullable: boolean;
|
|
252
|
-
title?: string;
|
|
253
|
-
reference?: {
|
|
254
|
-
table: Table;
|
|
255
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
256
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
257
|
-
column: string;
|
|
258
|
-
};
|
|
259
|
-
} & {
|
|
117
|
+
}) | (import("./types/Table").Base & {
|
|
260
118
|
primary?: true;
|
|
261
119
|
nullable: false;
|
|
262
120
|
} & {
|
|
@@ -267,18 +125,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
267
125
|
default: "auto-increment";
|
|
268
126
|
type: "bigint" | "smallint" | "integer";
|
|
269
127
|
seqTitle?: string;
|
|
270
|
-
}) | ({
|
|
271
|
-
type: import("./types/postgres").PostgresType;
|
|
272
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
273
|
-
nullable: boolean;
|
|
274
|
-
title?: string;
|
|
275
|
-
reference?: {
|
|
276
|
-
table: Table;
|
|
277
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
278
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
279
|
-
column: string;
|
|
280
|
-
};
|
|
281
|
-
} & {
|
|
128
|
+
}) | (import("./types/Table").Base & {
|
|
282
129
|
primary?: true;
|
|
283
130
|
nullable: false;
|
|
284
131
|
} & {
|
|
@@ -289,18 +136,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
289
136
|
default: "value";
|
|
290
137
|
type: "bigint";
|
|
291
138
|
value: bigint;
|
|
292
|
-
}) | ({
|
|
293
|
-
type: import("./types/postgres").PostgresType;
|
|
294
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
295
|
-
nullable: boolean;
|
|
296
|
-
title?: string;
|
|
297
|
-
reference?: {
|
|
298
|
-
table: Table;
|
|
299
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
300
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
301
|
-
column: string;
|
|
302
|
-
};
|
|
303
|
-
} & {
|
|
139
|
+
}) | (import("./types/Table").Base & {
|
|
304
140
|
primary?: true;
|
|
305
141
|
nullable: false;
|
|
306
142
|
} & {
|
|
@@ -311,18 +147,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
311
147
|
max?: import("decimal.js").default;
|
|
312
148
|
} & {
|
|
313
149
|
default: false;
|
|
314
|
-
}) | ({
|
|
315
|
-
type: import("./types/postgres").PostgresType;
|
|
316
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
317
|
-
nullable: boolean;
|
|
318
|
-
title?: string;
|
|
319
|
-
reference?: {
|
|
320
|
-
table: Table;
|
|
321
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
322
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
323
|
-
column: string;
|
|
324
|
-
};
|
|
325
|
-
} & {
|
|
150
|
+
}) | (import("./types/Table").Base & {
|
|
326
151
|
primary?: true;
|
|
327
152
|
nullable: false;
|
|
328
153
|
} & {
|
|
@@ -334,18 +159,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
334
159
|
} & {
|
|
335
160
|
default: true;
|
|
336
161
|
value: string;
|
|
337
|
-
}) | ({
|
|
338
|
-
type: import("./types/postgres").PostgresType;
|
|
339
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
340
|
-
nullable: boolean;
|
|
341
|
-
title?: string;
|
|
342
|
-
reference?: {
|
|
343
|
-
table: Table;
|
|
344
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
345
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
346
|
-
column: string;
|
|
347
|
-
};
|
|
348
|
-
} & {
|
|
162
|
+
}) | (import("./types/Table").Base & {
|
|
349
163
|
primary?: true;
|
|
350
164
|
nullable: false;
|
|
351
165
|
} & {
|
|
@@ -358,18 +172,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
358
172
|
default: "value";
|
|
359
173
|
type: "numeric";
|
|
360
174
|
value: import("decimal.js").default;
|
|
361
|
-
}) | ({
|
|
362
|
-
type: import("./types/postgres").PostgresType;
|
|
363
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
364
|
-
nullable: boolean;
|
|
365
|
-
title?: string;
|
|
366
|
-
reference?: {
|
|
367
|
-
table: Table;
|
|
368
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
369
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
370
|
-
column: string;
|
|
371
|
-
};
|
|
372
|
-
} & {
|
|
175
|
+
}) | (import("./types/Table").Base & {
|
|
373
176
|
primary?: true;
|
|
374
177
|
nullable: false;
|
|
375
178
|
} & {
|
|
@@ -379,18 +182,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
379
182
|
regex?: RegExp;
|
|
380
183
|
} & {
|
|
381
184
|
default: false;
|
|
382
|
-
}) | ({
|
|
383
|
-
type: import("./types/postgres").PostgresType;
|
|
384
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
385
|
-
nullable: boolean;
|
|
386
|
-
title?: string;
|
|
387
|
-
reference?: {
|
|
388
|
-
table: Table;
|
|
389
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
390
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
391
|
-
column: string;
|
|
392
|
-
};
|
|
393
|
-
} & {
|
|
185
|
+
}) | (import("./types/Table").Base & {
|
|
394
186
|
primary?: true;
|
|
395
187
|
nullable: false;
|
|
396
188
|
} & {
|
|
@@ -401,18 +193,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
401
193
|
} & {
|
|
402
194
|
default: true;
|
|
403
195
|
value: string;
|
|
404
|
-
}) | ({
|
|
405
|
-
type: import("./types/postgres").PostgresType;
|
|
406
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
407
|
-
nullable: boolean;
|
|
408
|
-
title?: string;
|
|
409
|
-
reference?: {
|
|
410
|
-
table: Table;
|
|
411
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
412
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
413
|
-
column: string;
|
|
414
|
-
};
|
|
415
|
-
} & {
|
|
196
|
+
}) | (import("./types/Table").Base & {
|
|
416
197
|
primary?: true;
|
|
417
198
|
nullable: false;
|
|
418
199
|
} & {
|
|
@@ -424,18 +205,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
424
205
|
default: "value";
|
|
425
206
|
type: "character" | "character varying" | "text" | "uuid";
|
|
426
207
|
value: string;
|
|
427
|
-
}) | ({
|
|
428
|
-
type: import("./types/postgres").PostgresType;
|
|
429
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
430
|
-
nullable: boolean;
|
|
431
|
-
title?: string;
|
|
432
|
-
reference?: {
|
|
433
|
-
table: Table;
|
|
434
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
435
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
436
|
-
column: string;
|
|
437
|
-
};
|
|
438
|
-
} & {
|
|
208
|
+
}) | (import("./types/Table").Base & {
|
|
439
209
|
primary?: true;
|
|
440
210
|
nullable: false;
|
|
441
211
|
} & {
|
|
@@ -443,18 +213,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
443
213
|
length?: number;
|
|
444
214
|
} & {
|
|
445
215
|
default: false;
|
|
446
|
-
}) | ({
|
|
447
|
-
type: import("./types/postgres").PostgresType;
|
|
448
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
449
|
-
nullable: boolean;
|
|
450
|
-
title?: string;
|
|
451
|
-
reference?: {
|
|
452
|
-
table: Table;
|
|
453
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
454
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
455
|
-
column: string;
|
|
456
|
-
};
|
|
457
|
-
} & {
|
|
216
|
+
}) | (import("./types/Table").Base & {
|
|
458
217
|
primary?: true;
|
|
459
218
|
nullable: false;
|
|
460
219
|
} & {
|
|
@@ -463,18 +222,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
463
222
|
} & {
|
|
464
223
|
default: true;
|
|
465
224
|
value: string;
|
|
466
|
-
}) | ({
|
|
467
|
-
type: import("./types/postgres").PostgresType;
|
|
468
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
469
|
-
nullable: boolean;
|
|
470
|
-
title?: string;
|
|
471
|
-
reference?: {
|
|
472
|
-
table: Table;
|
|
473
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
474
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
475
|
-
column: string;
|
|
476
|
-
};
|
|
477
|
-
} & {
|
|
225
|
+
}) | (import("./types/Table").Base & {
|
|
478
226
|
primary?: true;
|
|
479
227
|
nullable: false;
|
|
480
228
|
} & {
|
|
@@ -483,18 +231,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
483
231
|
} & {
|
|
484
232
|
default: "created-at" | "updated-at";
|
|
485
233
|
type: "timestamp without time zone" | "timestamp with time zone";
|
|
486
|
-
}) | ({
|
|
487
|
-
type: import("./types/postgres").PostgresType;
|
|
488
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
489
|
-
nullable: boolean;
|
|
490
|
-
title?: string;
|
|
491
|
-
reference?: {
|
|
492
|
-
table: Table;
|
|
493
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
494
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
495
|
-
column: string;
|
|
496
|
-
};
|
|
497
|
-
} & {
|
|
234
|
+
}) | (import("./types/Table").Base & {
|
|
498
235
|
primary?: true;
|
|
499
236
|
nullable: false;
|
|
500
237
|
} & {
|
|
@@ -504,53 +241,20 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
504
241
|
default: "value";
|
|
505
242
|
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
506
243
|
value: Date;
|
|
507
|
-
}) | ({
|
|
508
|
-
type: import("./types/postgres").PostgresType;
|
|
509
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
510
|
-
nullable: boolean;
|
|
511
|
-
title?: string;
|
|
512
|
-
reference?: {
|
|
513
|
-
table: Table;
|
|
514
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
515
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
516
|
-
column: string;
|
|
517
|
-
};
|
|
518
|
-
} & {
|
|
244
|
+
}) | (import("./types/Table").Base & {
|
|
519
245
|
nullable: true;
|
|
520
246
|
} & {
|
|
521
247
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
522
248
|
} & {
|
|
523
249
|
default: false;
|
|
524
|
-
}) | ({
|
|
525
|
-
type: import("./types/postgres").PostgresType;
|
|
526
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
527
|
-
nullable: boolean;
|
|
528
|
-
title?: string;
|
|
529
|
-
reference?: {
|
|
530
|
-
table: Table;
|
|
531
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
532
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
533
|
-
column: string;
|
|
534
|
-
};
|
|
535
|
-
} & {
|
|
250
|
+
}) | (import("./types/Table").Base & {
|
|
536
251
|
nullable: true;
|
|
537
252
|
} & {
|
|
538
253
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
539
254
|
} & {
|
|
540
255
|
default: true;
|
|
541
256
|
value: string;
|
|
542
|
-
}) | ({
|
|
543
|
-
type: import("./types/postgres").PostgresType;
|
|
544
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
545
|
-
nullable: boolean;
|
|
546
|
-
title?: string;
|
|
547
|
-
reference?: {
|
|
548
|
-
table: Table;
|
|
549
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
550
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
551
|
-
column: string;
|
|
552
|
-
};
|
|
553
|
-
} & {
|
|
257
|
+
}) | (import("./types/Table").Base & {
|
|
554
258
|
nullable: true;
|
|
555
259
|
} & {
|
|
556
260
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
@@ -558,18 +262,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
558
262
|
default: "value";
|
|
559
263
|
type: "boolean";
|
|
560
264
|
value: boolean;
|
|
561
|
-
}) | ({
|
|
562
|
-
type: import("./types/postgres").PostgresType;
|
|
563
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
564
|
-
nullable: boolean;
|
|
565
|
-
title?: string;
|
|
566
|
-
reference?: {
|
|
567
|
-
table: Table;
|
|
568
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
569
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
570
|
-
column: string;
|
|
571
|
-
};
|
|
572
|
-
} & {
|
|
265
|
+
}) | (import("./types/Table").Base & {
|
|
573
266
|
nullable: true;
|
|
574
267
|
} & {
|
|
575
268
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
@@ -577,18 +270,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
577
270
|
default: "value";
|
|
578
271
|
type: "character" | "character varying" | "text" | "uuid";
|
|
579
272
|
value: string;
|
|
580
|
-
}) | ({
|
|
581
|
-
type: import("./types/postgres").PostgresType;
|
|
582
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
583
|
-
nullable: boolean;
|
|
584
|
-
title?: string;
|
|
585
|
-
reference?: {
|
|
586
|
-
table: Table;
|
|
587
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
588
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
589
|
-
column: string;
|
|
590
|
-
};
|
|
591
|
-
} & {
|
|
273
|
+
}) | (import("./types/Table").Base & {
|
|
592
274
|
nullable: true;
|
|
593
275
|
} & {
|
|
594
276
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
@@ -596,37 +278,15 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
596
278
|
default: "value";
|
|
597
279
|
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
598
280
|
value: Date;
|
|
599
|
-
}) | ({
|
|
600
|
-
type: import("./types/postgres").PostgresType;
|
|
601
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
602
|
-
nullable: boolean;
|
|
603
|
-
title?: string;
|
|
604
|
-
reference?: {
|
|
605
|
-
table: Table;
|
|
606
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
607
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
608
|
-
column: string;
|
|
609
|
-
};
|
|
610
|
-
} & {
|
|
281
|
+
}) | (import("./types/Table").Base & {
|
|
611
282
|
nullable: true;
|
|
612
283
|
} & {
|
|
613
284
|
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
614
285
|
} & {
|
|
615
286
|
default: "value";
|
|
616
287
|
type: "json" | "jsonb";
|
|
617
|
-
value: import("./types/
|
|
618
|
-
}) | ({
|
|
619
|
-
type: import("./types/postgres").PostgresType;
|
|
620
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
621
|
-
nullable: boolean;
|
|
622
|
-
title?: string;
|
|
623
|
-
reference?: {
|
|
624
|
-
table: Table;
|
|
625
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
626
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
627
|
-
column: string;
|
|
628
|
-
};
|
|
629
|
-
} & {
|
|
288
|
+
value: import("./types/Json").Json;
|
|
289
|
+
}) | (import("./types/Table").Base & {
|
|
630
290
|
nullable: true;
|
|
631
291
|
} & {
|
|
632
292
|
type: "smallint" | "integer" | "real" | "double precision";
|
|
@@ -634,18 +294,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
634
294
|
max?: number;
|
|
635
295
|
} & {
|
|
636
296
|
default: false;
|
|
637
|
-
}) | ({
|
|
638
|
-
type: import("./types/postgres").PostgresType;
|
|
639
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
640
|
-
nullable: boolean;
|
|
641
|
-
title?: string;
|
|
642
|
-
reference?: {
|
|
643
|
-
table: Table;
|
|
644
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
645
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
646
|
-
column: string;
|
|
647
|
-
};
|
|
648
|
-
} & {
|
|
297
|
+
}) | (import("./types/Table").Base & {
|
|
649
298
|
nullable: true;
|
|
650
299
|
} & {
|
|
651
300
|
type: "smallint" | "integer" | "real" | "double precision";
|
|
@@ -654,18 +303,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
654
303
|
} & {
|
|
655
304
|
default: true;
|
|
656
305
|
value: string;
|
|
657
|
-
}) | ({
|
|
658
|
-
type: import("./types/postgres").PostgresType;
|
|
659
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
660
|
-
nullable: boolean;
|
|
661
|
-
title?: string;
|
|
662
|
-
reference?: {
|
|
663
|
-
table: Table;
|
|
664
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
665
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
666
|
-
column: string;
|
|
667
|
-
};
|
|
668
|
-
} & {
|
|
306
|
+
}) | (import("./types/Table").Base & {
|
|
669
307
|
nullable: true;
|
|
670
308
|
} & {
|
|
671
309
|
type: "smallint" | "integer" | "real" | "double precision";
|
|
@@ -675,18 +313,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
675
313
|
default: "auto-increment";
|
|
676
314
|
type: "bigint" | "smallint" | "integer";
|
|
677
315
|
seqTitle?: string;
|
|
678
|
-
}) | ({
|
|
679
|
-
type: import("./types/postgres").PostgresType;
|
|
680
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
681
|
-
nullable: boolean;
|
|
682
|
-
title?: string;
|
|
683
|
-
reference?: {
|
|
684
|
-
table: Table;
|
|
685
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
686
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
687
|
-
column: string;
|
|
688
|
-
};
|
|
689
|
-
} & {
|
|
316
|
+
}) | (import("./types/Table").Base & {
|
|
690
317
|
nullable: true;
|
|
691
318
|
} & {
|
|
692
319
|
type: "smallint" | "integer" | "real" | "double precision";
|
|
@@ -696,18 +323,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
696
323
|
default: "value";
|
|
697
324
|
type: "smallint" | "integer" | "real" | "double precision";
|
|
698
325
|
value: number;
|
|
699
|
-
}) | ({
|
|
700
|
-
type: import("./types/postgres").PostgresType;
|
|
701
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
702
|
-
nullable: boolean;
|
|
703
|
-
title?: string;
|
|
704
|
-
reference?: {
|
|
705
|
-
table: Table;
|
|
706
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
707
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
708
|
-
column: string;
|
|
709
|
-
};
|
|
710
|
-
} & {
|
|
326
|
+
}) | (import("./types/Table").Base & {
|
|
711
327
|
nullable: true;
|
|
712
328
|
} & {
|
|
713
329
|
type: "bigint";
|
|
@@ -715,18 +331,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
715
331
|
max?: bigint;
|
|
716
332
|
} & {
|
|
717
333
|
default: false;
|
|
718
|
-
}) | ({
|
|
719
|
-
type: import("./types/postgres").PostgresType;
|
|
720
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
721
|
-
nullable: boolean;
|
|
722
|
-
title?: string;
|
|
723
|
-
reference?: {
|
|
724
|
-
table: Table;
|
|
725
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
726
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
727
|
-
column: string;
|
|
728
|
-
};
|
|
729
|
-
} & {
|
|
334
|
+
}) | (import("./types/Table").Base & {
|
|
730
335
|
nullable: true;
|
|
731
336
|
} & {
|
|
732
337
|
type: "bigint";
|
|
@@ -735,18 +340,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
735
340
|
} & {
|
|
736
341
|
default: true;
|
|
737
342
|
value: string;
|
|
738
|
-
}) | ({
|
|
739
|
-
type: import("./types/postgres").PostgresType;
|
|
740
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
741
|
-
nullable: boolean;
|
|
742
|
-
title?: string;
|
|
743
|
-
reference?: {
|
|
744
|
-
table: Table;
|
|
745
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
746
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
747
|
-
column: string;
|
|
748
|
-
};
|
|
749
|
-
} & {
|
|
343
|
+
}) | (import("./types/Table").Base & {
|
|
750
344
|
nullable: true;
|
|
751
345
|
} & {
|
|
752
346
|
type: "bigint";
|
|
@@ -756,18 +350,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
756
350
|
default: "auto-increment";
|
|
757
351
|
type: "bigint" | "smallint" | "integer";
|
|
758
352
|
seqTitle?: string;
|
|
759
|
-
}) | ({
|
|
760
|
-
type: import("./types/postgres").PostgresType;
|
|
761
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
762
|
-
nullable: boolean;
|
|
763
|
-
title?: string;
|
|
764
|
-
reference?: {
|
|
765
|
-
table: Table;
|
|
766
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
767
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
768
|
-
column: string;
|
|
769
|
-
};
|
|
770
|
-
} & {
|
|
353
|
+
}) | (import("./types/Table").Base & {
|
|
771
354
|
nullable: true;
|
|
772
355
|
} & {
|
|
773
356
|
type: "bigint";
|
|
@@ -777,18 +360,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
777
360
|
default: "value";
|
|
778
361
|
type: "bigint";
|
|
779
362
|
value: bigint;
|
|
780
|
-
}) | ({
|
|
781
|
-
type: import("./types/postgres").PostgresType;
|
|
782
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
783
|
-
nullable: boolean;
|
|
784
|
-
title?: string;
|
|
785
|
-
reference?: {
|
|
786
|
-
table: Table;
|
|
787
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
788
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
789
|
-
column: string;
|
|
790
|
-
};
|
|
791
|
-
} & {
|
|
363
|
+
}) | (import("./types/Table").Base & {
|
|
792
364
|
nullable: true;
|
|
793
365
|
} & {
|
|
794
366
|
type: "numeric";
|
|
@@ -798,18 +370,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
798
370
|
max?: import("decimal.js").default;
|
|
799
371
|
} & {
|
|
800
372
|
default: false;
|
|
801
|
-
}) | ({
|
|
802
|
-
type: import("./types/postgres").PostgresType;
|
|
803
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
804
|
-
nullable: boolean;
|
|
805
|
-
title?: string;
|
|
806
|
-
reference?: {
|
|
807
|
-
table: Table;
|
|
808
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
809
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
810
|
-
column: string;
|
|
811
|
-
};
|
|
812
|
-
} & {
|
|
373
|
+
}) | (import("./types/Table").Base & {
|
|
813
374
|
nullable: true;
|
|
814
375
|
} & {
|
|
815
376
|
type: "numeric";
|
|
@@ -820,18 +381,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
820
381
|
} & {
|
|
821
382
|
default: true;
|
|
822
383
|
value: string;
|
|
823
|
-
}) | ({
|
|
824
|
-
type: import("./types/postgres").PostgresType;
|
|
825
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
826
|
-
nullable: boolean;
|
|
827
|
-
title?: string;
|
|
828
|
-
reference?: {
|
|
829
|
-
table: Table;
|
|
830
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
831
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
832
|
-
column: string;
|
|
833
|
-
};
|
|
834
|
-
} & {
|
|
384
|
+
}) | (import("./types/Table").Base & {
|
|
835
385
|
nullable: true;
|
|
836
386
|
} & {
|
|
837
387
|
type: "numeric";
|
|
@@ -843,18 +393,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
843
393
|
default: "value";
|
|
844
394
|
type: "numeric";
|
|
845
395
|
value: import("decimal.js").default;
|
|
846
|
-
}) | ({
|
|
847
|
-
type: import("./types/postgres").PostgresType;
|
|
848
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
849
|
-
nullable: boolean;
|
|
850
|
-
title?: string;
|
|
851
|
-
reference?: {
|
|
852
|
-
table: Table;
|
|
853
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
854
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
855
|
-
column: string;
|
|
856
|
-
};
|
|
857
|
-
} & {
|
|
396
|
+
}) | (import("./types/Table").Base & {
|
|
858
397
|
nullable: true;
|
|
859
398
|
} & {
|
|
860
399
|
type: "character" | "character varying";
|
|
@@ -863,18 +402,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
863
402
|
regex?: RegExp;
|
|
864
403
|
} & {
|
|
865
404
|
default: false;
|
|
866
|
-
}) | ({
|
|
867
|
-
type: import("./types/postgres").PostgresType;
|
|
868
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
869
|
-
nullable: boolean;
|
|
870
|
-
title?: string;
|
|
871
|
-
reference?: {
|
|
872
|
-
table: Table;
|
|
873
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
874
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
875
|
-
column: string;
|
|
876
|
-
};
|
|
877
|
-
} & {
|
|
405
|
+
}) | (import("./types/Table").Base & {
|
|
878
406
|
nullable: true;
|
|
879
407
|
} & {
|
|
880
408
|
type: "character" | "character varying";
|
|
@@ -884,18 +412,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
884
412
|
} & {
|
|
885
413
|
default: true;
|
|
886
414
|
value: string;
|
|
887
|
-
}) | ({
|
|
888
|
-
type: import("./types/postgres").PostgresType;
|
|
889
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
890
|
-
nullable: boolean;
|
|
891
|
-
title?: string;
|
|
892
|
-
reference?: {
|
|
893
|
-
table: Table;
|
|
894
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
895
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
896
|
-
column: string;
|
|
897
|
-
};
|
|
898
|
-
} & {
|
|
415
|
+
}) | (import("./types/Table").Base & {
|
|
899
416
|
nullable: true;
|
|
900
417
|
} & {
|
|
901
418
|
type: "character" | "character varying";
|
|
@@ -906,36 +423,14 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
906
423
|
default: "value";
|
|
907
424
|
type: "character" | "character varying" | "text" | "uuid";
|
|
908
425
|
value: string;
|
|
909
|
-
}) | ({
|
|
910
|
-
type: import("./types/postgres").PostgresType;
|
|
911
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
912
|
-
nullable: boolean;
|
|
913
|
-
title?: string;
|
|
914
|
-
reference?: {
|
|
915
|
-
table: Table;
|
|
916
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
917
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
918
|
-
column: string;
|
|
919
|
-
};
|
|
920
|
-
} & {
|
|
426
|
+
}) | (import("./types/Table").Base & {
|
|
921
427
|
nullable: true;
|
|
922
428
|
} & {
|
|
923
429
|
type: "timestamp without time zone" | "timestamp with time zone";
|
|
924
430
|
length?: number;
|
|
925
431
|
} & {
|
|
926
432
|
default: false;
|
|
927
|
-
}) | ({
|
|
928
|
-
type: import("./types/postgres").PostgresType;
|
|
929
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
930
|
-
nullable: boolean;
|
|
931
|
-
title?: string;
|
|
932
|
-
reference?: {
|
|
933
|
-
table: Table;
|
|
934
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
935
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
936
|
-
column: string;
|
|
937
|
-
};
|
|
938
|
-
} & {
|
|
433
|
+
}) | (import("./types/Table").Base & {
|
|
939
434
|
nullable: true;
|
|
940
435
|
} & {
|
|
941
436
|
type: "timestamp without time zone" | "timestamp with time zone";
|
|
@@ -943,18 +438,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
943
438
|
} & {
|
|
944
439
|
default: true;
|
|
945
440
|
value: string;
|
|
946
|
-
}) | ({
|
|
947
|
-
type: import("./types/postgres").PostgresType;
|
|
948
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
949
|
-
nullable: boolean;
|
|
950
|
-
title?: string;
|
|
951
|
-
reference?: {
|
|
952
|
-
table: Table;
|
|
953
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
954
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
955
|
-
column: string;
|
|
956
|
-
};
|
|
957
|
-
} & {
|
|
441
|
+
}) | (import("./types/Table").Base & {
|
|
958
442
|
nullable: true;
|
|
959
443
|
} & {
|
|
960
444
|
type: "timestamp without time zone" | "timestamp with time zone";
|
|
@@ -962,18 +446,7 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
962
446
|
} & {
|
|
963
447
|
default: "created-at" | "updated-at";
|
|
964
448
|
type: "timestamp without time zone" | "timestamp with time zone";
|
|
965
|
-
}) | ({
|
|
966
|
-
type: import("./types/postgres").PostgresType;
|
|
967
|
-
default: boolean | "value" | "auto-increment" | "created-at" | "updated-at";
|
|
968
|
-
nullable: boolean;
|
|
969
|
-
title?: string;
|
|
970
|
-
reference?: {
|
|
971
|
-
table: Table;
|
|
972
|
-
onUpdate?: import("./types/table").ReferenceActions;
|
|
973
|
-
onDelete?: import("./types/table").ReferenceActions;
|
|
974
|
-
column: string;
|
|
975
|
-
};
|
|
976
|
-
} & {
|
|
449
|
+
}) | (import("./types/Table").Base & {
|
|
977
450
|
nullable: true;
|
|
978
451
|
} & {
|
|
979
452
|
type: "timestamp without time zone" | "timestamp with time zone";
|
|
@@ -983,6 +456,6 @@ declare const createContextScopeHelper: <T extends Table>(table: T) => (rules: T
|
|
|
983
456
|
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
984
457
|
value: Date;
|
|
985
458
|
});
|
|
986
|
-
} ? { [columnKey in keyof T_1]?: [op:
|
|
459
|
+
} ? { [columnKey in keyof T_1]?: [op: true extends T["columns"][columnKey]["nullable"] ? import("./types/Context").NullOperator : never] | [op: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> extends boolean ? import("./types/Context").BooleanOperator : never] | [op: import("./types/Context").CompareOperatorCompatible<import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]>, import("./types/Context").CompareOperator, never>, v: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]>] | [op: import("./types/Context").ListOperatorCompatible<import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]>, import("./types/Context").ListOperator, never>, v: readonly import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]>[]] | [op: "like", v: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> extends string ? import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"]> : never] | [op: "like all" | "like some", v: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> extends string ? readonly import("./types/postgres").PostgresTypeMapper<T["columns"][columnKey]["type"]>[] : never] | [op: "@>" | "<@", v: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> extends import("./types/Json").Json ? import("./types/Json").Json & import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> : never] | [op: "?", v: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> extends import("./types/Json").Json ? string : never] | [op: "?|" | "?&", v: import("./types/TypeMapper").TypeMapperWithoutNull<T["columns"][columnKey]["type"], CTypeMap[columnKey]> extends import("./types/Json").Json ? readonly string[] : never]; } : never, alias: string) => any[];
|
|
987
460
|
export { createContext, createContextScopeHelper };
|
|
988
461
|
//# sourceMappingURL=context.d.ts.map
|