@mrnafisia/type-query 1.1.1 → 1.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/U.d.ts +3 -0
- package/dist/U.d.ts.map +1 -0
- package/dist/U.js +29 -0
- package/dist/U.js.map +1 -0
- package/dist/context.d.ts +583 -56
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +18 -41
- package/dist/context.js.map +1 -1
- package/dist/dictionary.d.ts +10 -93
- package/dist/dictionary.d.ts.map +1 -1
- package/dist/dictionary.js +164 -132
- package/dist/dictionary.js.map +1 -1
- package/dist/entity.d.ts +2483 -687
- package/dist/entity.d.ts.map +1 -1
- package/dist/entity.js +190 -164
- package/dist/entity.js.map +1 -1
- package/dist/index.d.ts +16 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -54
- package/dist/index.js.map +1 -1
- package/dist/model.d.ts +1006 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/{createModelUtils.js → model.js} +13 -16
- package/dist/model.js.map +1 -0
- 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 +5 -9
- package/dist/pool.d.ts.map +1 -1
- package/dist/pool.js +26 -1
- package/dist/pool.js.map +1 -1
- package/dist/schema.d.ts +9 -21
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +176 -169
- package/dist/schema.js.map +1 -1
- package/dist/testUtil.d.ts +1 -25
- package/dist/testUtil.d.ts.map +1 -1
- package/dist/testUtil.js +2 -8
- package/dist/testUtil.js.map +1 -1
- package/dist/types/context.d.ts +52 -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 +71 -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/{Json.js → json.js} +1 -1
- package/dist/types/json.js.map +1 -0
- package/dist/types/model.d.ts +24 -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/pool.d.ts +19 -0
- package/dist/types/pool.d.ts.map +1 -0
- package/dist/types/{Model.js → pool.js} +1 -1
- package/dist/types/pool.js.map +1 -0
- package/dist/types/postgres.d.ts +6 -3
- package/dist/types/postgres.d.ts.map +1 -1
- 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/table.js +3 -0
- package/dist/types/table.js.map +1 -0
- package/dist/types/testUtil.d.ts +27 -0
- package/dist/types/testUtil.d.ts.map +1 -0
- package/dist/types/testUtil.js +3 -0
- package/dist/types/testUtil.js.map +1 -0
- package/dist/utils.d.ts +66 -38
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +171 -48
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/createModelUtils.d.ts +0 -503
- package/dist/createModelUtils.d.ts.map +0 -1
- package/dist/createModelUtils.js.map +0 -1
- package/dist/hook.d.ts +0 -15
- package/dist/hook.d.ts.map +0 -1
- package/dist/hook.js +0 -30
- package/dist/hook.js.map +0 -1
- package/dist/types/Context.d.ts +0 -53
- package/dist/types/Context.d.ts.map +0 -1
- package/dist/types/Context.js.map +0 -1
- package/dist/types/Entity.d.ts +0 -64
- 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 -12
- package/dist/types/Model.d.ts.map +0 -1
- package/dist/types/Model.js.map +0 -1
- package/dist/types/Table.js.map +0 -1
- package/dist/types/TypeMapper.d.ts +0 -14
- package/dist/types/TypeMapper.d.ts.map +0 -1
- package/dist/types/TypeMapper.js +0 -3
- package/dist/types/TypeMapper.js.map +0 -1
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import Decimal from 'decimal.js';
|
|
2
|
-
import { Table } from './types/Table';
|
|
3
|
-
import { Result } from 'never-catch';
|
|
4
|
-
import { Model, SimpleModel } from './types/Model';
|
|
5
|
-
import { ColumnTypeByColumns, CustomTypeMap } from './types/TypeMapper';
|
|
6
|
-
declare const SmallIntRange: {
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
};
|
|
10
|
-
declare const IntegerRange: {
|
|
11
|
-
min: number;
|
|
12
|
-
max: number;
|
|
13
|
-
};
|
|
14
|
-
declare const BigIntRange: {
|
|
15
|
-
min: bigint;
|
|
16
|
-
max: bigint;
|
|
17
|
-
};
|
|
18
|
-
declare const validateNumberGenerator: ({ min, max }: {
|
|
19
|
-
min?: number | bigint | undefined;
|
|
20
|
-
max?: number | bigint | undefined;
|
|
21
|
-
}) => (v: number | bigint) => boolean;
|
|
22
|
-
declare const validateDecimalGenerator: ({ min, max }: {
|
|
23
|
-
min?: Decimal | undefined;
|
|
24
|
-
max?: Decimal | undefined;
|
|
25
|
-
}) => (v: Decimal) => boolean;
|
|
26
|
-
declare const validateStringGenerator: ({ regex, min, max }: {
|
|
27
|
-
regex?: RegExp | undefined;
|
|
28
|
-
min?: number | undefined;
|
|
29
|
-
max?: number | undefined;
|
|
30
|
-
}) => (v: string) => boolean;
|
|
31
|
-
type ModelUtils<Columns extends Table['columns'], CTypeMap extends CustomTypeMap<Columns>> = {
|
|
32
|
-
Parse: <Requires extends readonly (keyof Columns)[], Optionals extends readonly (keyof Columns)[]>(data: {
|
|
33
|
-
[key: string]: unknown;
|
|
34
|
-
}, requires: Requires, optional: Optionals, validate?: boolean) => Result<Model<Columns, Requires, Optionals, CTypeMap>, Requires[Exclude<keyof Requires, keyof unknown[]>] | Optionals[Exclude<keyof Optionals, keyof unknown[]>]>;
|
|
35
|
-
Validate: <D extends Partial<SimpleModel<Columns, CTypeMap>>>(data: D) => Result<undefined, keyof D>;
|
|
36
|
-
} & {
|
|
37
|
-
[key in keyof Columns]: {
|
|
38
|
-
Parse: (v: unknown, validate?: boolean) => ColumnTypeByColumns<Columns, key, CTypeMap> | undefined;
|
|
39
|
-
Validate: (v: ColumnTypeByColumns<Columns, key, CTypeMap>) => boolean;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
declare const createModelUtils: <Columns extends {
|
|
43
|
-
[key: string]: (import("./types/Table").Base & {
|
|
44
|
-
primary?: true;
|
|
45
|
-
nullable: false;
|
|
46
|
-
} & {
|
|
47
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
48
|
-
} & {
|
|
49
|
-
default: false;
|
|
50
|
-
}) | (import("./types/Table").Base & {
|
|
51
|
-
primary?: true;
|
|
52
|
-
nullable: false;
|
|
53
|
-
} & {
|
|
54
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
55
|
-
} & {
|
|
56
|
-
default: true;
|
|
57
|
-
value: string;
|
|
58
|
-
}) | (import("./types/Table").Base & {
|
|
59
|
-
primary?: true;
|
|
60
|
-
nullable: false;
|
|
61
|
-
} & {
|
|
62
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
63
|
-
} & {
|
|
64
|
-
default: "value";
|
|
65
|
-
type: "boolean";
|
|
66
|
-
value: boolean;
|
|
67
|
-
}) | (import("./types/Table").Base & {
|
|
68
|
-
primary?: true;
|
|
69
|
-
nullable: false;
|
|
70
|
-
} & {
|
|
71
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
72
|
-
} & {
|
|
73
|
-
default: "value";
|
|
74
|
-
type: "character" | "character varying" | "text" | "uuid";
|
|
75
|
-
value: string;
|
|
76
|
-
}) | (import("./types/Table").Base & {
|
|
77
|
-
primary?: true;
|
|
78
|
-
nullable: false;
|
|
79
|
-
} & {
|
|
80
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
81
|
-
} & {
|
|
82
|
-
default: "value";
|
|
83
|
-
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
84
|
-
value: Date;
|
|
85
|
-
}) | (import("./types/Table").Base & {
|
|
86
|
-
primary?: true;
|
|
87
|
-
nullable: false;
|
|
88
|
-
} & {
|
|
89
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
90
|
-
} & {
|
|
91
|
-
default: "value";
|
|
92
|
-
type: "json" | "jsonb";
|
|
93
|
-
value: import("./types/Json").Json;
|
|
94
|
-
}) | (import("./types/Table").Base & {
|
|
95
|
-
primary?: true;
|
|
96
|
-
nullable: false;
|
|
97
|
-
} & {
|
|
98
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
99
|
-
min?: number;
|
|
100
|
-
max?: number;
|
|
101
|
-
} & {
|
|
102
|
-
default: false;
|
|
103
|
-
}) | (import("./types/Table").Base & {
|
|
104
|
-
primary?: true;
|
|
105
|
-
nullable: false;
|
|
106
|
-
} & {
|
|
107
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
108
|
-
min?: number;
|
|
109
|
-
max?: number;
|
|
110
|
-
} & {
|
|
111
|
-
default: true;
|
|
112
|
-
value: string;
|
|
113
|
-
}) | (import("./types/Table").Base & {
|
|
114
|
-
primary?: true;
|
|
115
|
-
nullable: false;
|
|
116
|
-
} & {
|
|
117
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
118
|
-
min?: number;
|
|
119
|
-
max?: number;
|
|
120
|
-
} & {
|
|
121
|
-
default: "auto-increment";
|
|
122
|
-
type: "bigint" | "smallint" | "integer";
|
|
123
|
-
seqTitle?: string;
|
|
124
|
-
}) | (import("./types/Table").Base & {
|
|
125
|
-
primary?: true;
|
|
126
|
-
nullable: false;
|
|
127
|
-
} & {
|
|
128
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
129
|
-
min?: number;
|
|
130
|
-
max?: number;
|
|
131
|
-
} & {
|
|
132
|
-
default: "value";
|
|
133
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
134
|
-
value: number;
|
|
135
|
-
}) | (import("./types/Table").Base & {
|
|
136
|
-
primary?: true;
|
|
137
|
-
nullable: false;
|
|
138
|
-
} & {
|
|
139
|
-
type: "bigint";
|
|
140
|
-
min?: bigint;
|
|
141
|
-
max?: bigint;
|
|
142
|
-
} & {
|
|
143
|
-
default: false;
|
|
144
|
-
}) | (import("./types/Table").Base & {
|
|
145
|
-
primary?: true;
|
|
146
|
-
nullable: false;
|
|
147
|
-
} & {
|
|
148
|
-
type: "bigint";
|
|
149
|
-
min?: bigint;
|
|
150
|
-
max?: bigint;
|
|
151
|
-
} & {
|
|
152
|
-
default: true;
|
|
153
|
-
value: string;
|
|
154
|
-
}) | (import("./types/Table").Base & {
|
|
155
|
-
primary?: true;
|
|
156
|
-
nullable: false;
|
|
157
|
-
} & {
|
|
158
|
-
type: "bigint";
|
|
159
|
-
min?: bigint;
|
|
160
|
-
max?: bigint;
|
|
161
|
-
} & {
|
|
162
|
-
default: "auto-increment";
|
|
163
|
-
type: "bigint" | "smallint" | "integer";
|
|
164
|
-
seqTitle?: string;
|
|
165
|
-
}) | (import("./types/Table").Base & {
|
|
166
|
-
primary?: true;
|
|
167
|
-
nullable: false;
|
|
168
|
-
} & {
|
|
169
|
-
type: "bigint";
|
|
170
|
-
min?: bigint;
|
|
171
|
-
max?: bigint;
|
|
172
|
-
} & {
|
|
173
|
-
default: "value";
|
|
174
|
-
type: "bigint";
|
|
175
|
-
value: bigint;
|
|
176
|
-
}) | (import("./types/Table").Base & {
|
|
177
|
-
primary?: true;
|
|
178
|
-
nullable: false;
|
|
179
|
-
} & {
|
|
180
|
-
type: "numeric";
|
|
181
|
-
precision: number;
|
|
182
|
-
scale: number;
|
|
183
|
-
min?: Decimal;
|
|
184
|
-
max?: Decimal;
|
|
185
|
-
} & {
|
|
186
|
-
default: false;
|
|
187
|
-
}) | (import("./types/Table").Base & {
|
|
188
|
-
primary?: true;
|
|
189
|
-
nullable: false;
|
|
190
|
-
} & {
|
|
191
|
-
type: "numeric";
|
|
192
|
-
precision: number;
|
|
193
|
-
scale: number;
|
|
194
|
-
min?: Decimal;
|
|
195
|
-
max?: Decimal;
|
|
196
|
-
} & {
|
|
197
|
-
default: true;
|
|
198
|
-
value: string;
|
|
199
|
-
}) | (import("./types/Table").Base & {
|
|
200
|
-
primary?: true;
|
|
201
|
-
nullable: false;
|
|
202
|
-
} & {
|
|
203
|
-
type: "numeric";
|
|
204
|
-
precision: number;
|
|
205
|
-
scale: number;
|
|
206
|
-
min?: Decimal;
|
|
207
|
-
max?: Decimal;
|
|
208
|
-
} & {
|
|
209
|
-
default: "value";
|
|
210
|
-
type: "numeric";
|
|
211
|
-
value: Decimal;
|
|
212
|
-
}) | (import("./types/Table").Base & {
|
|
213
|
-
primary?: true;
|
|
214
|
-
nullable: false;
|
|
215
|
-
} & {
|
|
216
|
-
type: "character" | "character varying";
|
|
217
|
-
minLength?: number;
|
|
218
|
-
maxLength?: number;
|
|
219
|
-
regex?: RegExp;
|
|
220
|
-
} & {
|
|
221
|
-
default: false;
|
|
222
|
-
}) | (import("./types/Table").Base & {
|
|
223
|
-
primary?: true;
|
|
224
|
-
nullable: false;
|
|
225
|
-
} & {
|
|
226
|
-
type: "character" | "character varying";
|
|
227
|
-
minLength?: number;
|
|
228
|
-
maxLength?: number;
|
|
229
|
-
regex?: RegExp;
|
|
230
|
-
} & {
|
|
231
|
-
default: true;
|
|
232
|
-
value: string;
|
|
233
|
-
}) | (import("./types/Table").Base & {
|
|
234
|
-
primary?: true;
|
|
235
|
-
nullable: false;
|
|
236
|
-
} & {
|
|
237
|
-
type: "character" | "character varying";
|
|
238
|
-
minLength?: number;
|
|
239
|
-
maxLength?: number;
|
|
240
|
-
regex?: RegExp;
|
|
241
|
-
} & {
|
|
242
|
-
default: "value";
|
|
243
|
-
type: "character" | "character varying" | "text" | "uuid";
|
|
244
|
-
value: string;
|
|
245
|
-
}) | (import("./types/Table").Base & {
|
|
246
|
-
primary?: true;
|
|
247
|
-
nullable: false;
|
|
248
|
-
} & {
|
|
249
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
250
|
-
length?: number;
|
|
251
|
-
} & {
|
|
252
|
-
default: false;
|
|
253
|
-
}) | (import("./types/Table").Base & {
|
|
254
|
-
primary?: true;
|
|
255
|
-
nullable: false;
|
|
256
|
-
} & {
|
|
257
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
258
|
-
length?: number;
|
|
259
|
-
} & {
|
|
260
|
-
default: true;
|
|
261
|
-
value: string;
|
|
262
|
-
}) | (import("./types/Table").Base & {
|
|
263
|
-
primary?: true;
|
|
264
|
-
nullable: false;
|
|
265
|
-
} & {
|
|
266
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
267
|
-
length?: number;
|
|
268
|
-
} & {
|
|
269
|
-
default: "created-at" | "updated-at";
|
|
270
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
271
|
-
}) | (import("./types/Table").Base & {
|
|
272
|
-
primary?: true;
|
|
273
|
-
nullable: false;
|
|
274
|
-
} & {
|
|
275
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
276
|
-
length?: number;
|
|
277
|
-
} & {
|
|
278
|
-
default: "value";
|
|
279
|
-
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
280
|
-
value: Date;
|
|
281
|
-
}) | (import("./types/Table").Base & {
|
|
282
|
-
nullable: true;
|
|
283
|
-
} & {
|
|
284
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
285
|
-
} & {
|
|
286
|
-
default: false;
|
|
287
|
-
}) | (import("./types/Table").Base & {
|
|
288
|
-
nullable: true;
|
|
289
|
-
} & {
|
|
290
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
291
|
-
} & {
|
|
292
|
-
default: true;
|
|
293
|
-
value: string;
|
|
294
|
-
}) | (import("./types/Table").Base & {
|
|
295
|
-
nullable: true;
|
|
296
|
-
} & {
|
|
297
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
298
|
-
} & {
|
|
299
|
-
default: "value";
|
|
300
|
-
type: "boolean";
|
|
301
|
-
value: boolean;
|
|
302
|
-
}) | (import("./types/Table").Base & {
|
|
303
|
-
nullable: true;
|
|
304
|
-
} & {
|
|
305
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
306
|
-
} & {
|
|
307
|
-
default: "value";
|
|
308
|
-
type: "character" | "character varying" | "text" | "uuid";
|
|
309
|
-
value: string;
|
|
310
|
-
}) | (import("./types/Table").Base & {
|
|
311
|
-
nullable: true;
|
|
312
|
-
} & {
|
|
313
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
314
|
-
} & {
|
|
315
|
-
default: "value";
|
|
316
|
-
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
317
|
-
value: Date;
|
|
318
|
-
}) | (import("./types/Table").Base & {
|
|
319
|
-
nullable: true;
|
|
320
|
-
} & {
|
|
321
|
-
type: "boolean" | "text" | "uuid" | "date" | "json" | "jsonb";
|
|
322
|
-
} & {
|
|
323
|
-
default: "value";
|
|
324
|
-
type: "json" | "jsonb";
|
|
325
|
-
value: import("./types/Json").Json;
|
|
326
|
-
}) | (import("./types/Table").Base & {
|
|
327
|
-
nullable: true;
|
|
328
|
-
} & {
|
|
329
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
330
|
-
min?: number;
|
|
331
|
-
max?: number;
|
|
332
|
-
} & {
|
|
333
|
-
default: false;
|
|
334
|
-
}) | (import("./types/Table").Base & {
|
|
335
|
-
nullable: true;
|
|
336
|
-
} & {
|
|
337
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
338
|
-
min?: number;
|
|
339
|
-
max?: number;
|
|
340
|
-
} & {
|
|
341
|
-
default: true;
|
|
342
|
-
value: string;
|
|
343
|
-
}) | (import("./types/Table").Base & {
|
|
344
|
-
nullable: true;
|
|
345
|
-
} & {
|
|
346
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
347
|
-
min?: number;
|
|
348
|
-
max?: number;
|
|
349
|
-
} & {
|
|
350
|
-
default: "auto-increment";
|
|
351
|
-
type: "bigint" | "smallint" | "integer";
|
|
352
|
-
seqTitle?: string;
|
|
353
|
-
}) | (import("./types/Table").Base & {
|
|
354
|
-
nullable: true;
|
|
355
|
-
} & {
|
|
356
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
357
|
-
min?: number;
|
|
358
|
-
max?: number;
|
|
359
|
-
} & {
|
|
360
|
-
default: "value";
|
|
361
|
-
type: "smallint" | "integer" | "real" | "double precision";
|
|
362
|
-
value: number;
|
|
363
|
-
}) | (import("./types/Table").Base & {
|
|
364
|
-
nullable: true;
|
|
365
|
-
} & {
|
|
366
|
-
type: "bigint";
|
|
367
|
-
min?: bigint;
|
|
368
|
-
max?: bigint;
|
|
369
|
-
} & {
|
|
370
|
-
default: false;
|
|
371
|
-
}) | (import("./types/Table").Base & {
|
|
372
|
-
nullable: true;
|
|
373
|
-
} & {
|
|
374
|
-
type: "bigint";
|
|
375
|
-
min?: bigint;
|
|
376
|
-
max?: bigint;
|
|
377
|
-
} & {
|
|
378
|
-
default: true;
|
|
379
|
-
value: string;
|
|
380
|
-
}) | (import("./types/Table").Base & {
|
|
381
|
-
nullable: true;
|
|
382
|
-
} & {
|
|
383
|
-
type: "bigint";
|
|
384
|
-
min?: bigint;
|
|
385
|
-
max?: bigint;
|
|
386
|
-
} & {
|
|
387
|
-
default: "auto-increment";
|
|
388
|
-
type: "bigint" | "smallint" | "integer";
|
|
389
|
-
seqTitle?: string;
|
|
390
|
-
}) | (import("./types/Table").Base & {
|
|
391
|
-
nullable: true;
|
|
392
|
-
} & {
|
|
393
|
-
type: "bigint";
|
|
394
|
-
min?: bigint;
|
|
395
|
-
max?: bigint;
|
|
396
|
-
} & {
|
|
397
|
-
default: "value";
|
|
398
|
-
type: "bigint";
|
|
399
|
-
value: bigint;
|
|
400
|
-
}) | (import("./types/Table").Base & {
|
|
401
|
-
nullable: true;
|
|
402
|
-
} & {
|
|
403
|
-
type: "numeric";
|
|
404
|
-
precision: number;
|
|
405
|
-
scale: number;
|
|
406
|
-
min?: Decimal;
|
|
407
|
-
max?: Decimal;
|
|
408
|
-
} & {
|
|
409
|
-
default: false;
|
|
410
|
-
}) | (import("./types/Table").Base & {
|
|
411
|
-
nullable: true;
|
|
412
|
-
} & {
|
|
413
|
-
type: "numeric";
|
|
414
|
-
precision: number;
|
|
415
|
-
scale: number;
|
|
416
|
-
min?: Decimal;
|
|
417
|
-
max?: Decimal;
|
|
418
|
-
} & {
|
|
419
|
-
default: true;
|
|
420
|
-
value: string;
|
|
421
|
-
}) | (import("./types/Table").Base & {
|
|
422
|
-
nullable: true;
|
|
423
|
-
} & {
|
|
424
|
-
type: "numeric";
|
|
425
|
-
precision: number;
|
|
426
|
-
scale: number;
|
|
427
|
-
min?: Decimal;
|
|
428
|
-
max?: Decimal;
|
|
429
|
-
} & {
|
|
430
|
-
default: "value";
|
|
431
|
-
type: "numeric";
|
|
432
|
-
value: Decimal;
|
|
433
|
-
}) | (import("./types/Table").Base & {
|
|
434
|
-
nullable: true;
|
|
435
|
-
} & {
|
|
436
|
-
type: "character" | "character varying";
|
|
437
|
-
minLength?: number;
|
|
438
|
-
maxLength?: number;
|
|
439
|
-
regex?: RegExp;
|
|
440
|
-
} & {
|
|
441
|
-
default: false;
|
|
442
|
-
}) | (import("./types/Table").Base & {
|
|
443
|
-
nullable: true;
|
|
444
|
-
} & {
|
|
445
|
-
type: "character" | "character varying";
|
|
446
|
-
minLength?: number;
|
|
447
|
-
maxLength?: number;
|
|
448
|
-
regex?: RegExp;
|
|
449
|
-
} & {
|
|
450
|
-
default: true;
|
|
451
|
-
value: string;
|
|
452
|
-
}) | (import("./types/Table").Base & {
|
|
453
|
-
nullable: true;
|
|
454
|
-
} & {
|
|
455
|
-
type: "character" | "character varying";
|
|
456
|
-
minLength?: number;
|
|
457
|
-
maxLength?: number;
|
|
458
|
-
regex?: RegExp;
|
|
459
|
-
} & {
|
|
460
|
-
default: "value";
|
|
461
|
-
type: "character" | "character varying" | "text" | "uuid";
|
|
462
|
-
value: string;
|
|
463
|
-
}) | (import("./types/Table").Base & {
|
|
464
|
-
nullable: true;
|
|
465
|
-
} & {
|
|
466
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
467
|
-
length?: number;
|
|
468
|
-
} & {
|
|
469
|
-
default: false;
|
|
470
|
-
}) | (import("./types/Table").Base & {
|
|
471
|
-
nullable: true;
|
|
472
|
-
} & {
|
|
473
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
474
|
-
length?: number;
|
|
475
|
-
} & {
|
|
476
|
-
default: true;
|
|
477
|
-
value: string;
|
|
478
|
-
}) | (import("./types/Table").Base & {
|
|
479
|
-
nullable: true;
|
|
480
|
-
} & {
|
|
481
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
482
|
-
length?: number;
|
|
483
|
-
} & {
|
|
484
|
-
default: "created-at" | "updated-at";
|
|
485
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
486
|
-
}) | (import("./types/Table").Base & {
|
|
487
|
-
nullable: true;
|
|
488
|
-
} & {
|
|
489
|
-
type: "timestamp without time zone" | "timestamp with time zone";
|
|
490
|
-
length?: number;
|
|
491
|
-
} & {
|
|
492
|
-
default: "value";
|
|
493
|
-
type: "date" | "timestamp without time zone" | "timestamp with time zone";
|
|
494
|
-
value: Date;
|
|
495
|
-
});
|
|
496
|
-
}, CTypeMap extends CustomTypeMap<Columns>>(columns: Columns, custom?: {
|
|
497
|
-
parse?: { [key in keyof Columns]?: (v: unknown | undefined) => import("./types/TypeMapper").TypeMapper<Columns[key]["type"], Columns[key]["nullable"], CTypeMap[key]> | undefined; };
|
|
498
|
-
validate?: { [key_1 in keyof Columns]?: (v: import("./types/TypeMapper").TypeMapper<Columns[key_1]["type"], Columns[key_1]["nullable"], CTypeMap[key_1]>) => boolean; };
|
|
499
|
-
} | undefined) => ModelUtils<Columns, CTypeMap>;
|
|
500
|
-
export { SmallIntRange, IntegerRange, BigIntRange };
|
|
501
|
-
export { validateNumberGenerator, validateDecimalGenerator, validateStringGenerator };
|
|
502
|
-
export { type ModelUtils, createModelUtils };
|
|
503
|
-
//# sourceMappingURL=createModelUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createModelUtils.d.ts","sourceRoot":"","sources":["../src/createModelUtils.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAW,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExE,QAAA,MAAM,aAAa;;;CAA8B,CAAC;AAClD,QAAA,MAAM,YAAY;;;CAAwC,CAAC;AAC3D,QAAA,MAAM,WAAW;;;CAGhB,CAAC;AAEF,QAAA,MAAM,uBAAuB;UAInB,MAAM,GAAG,MAAM,GAAG,SAAS;UAC3B,MAAM,GAAG,MAAM,GAAG,SAAS;UAMd,MAAM,GAAG,MAAM,YASrC,CAAC;AACF,QAAA,MAAM,wBAAwB;UAA0B,OAAO,GAAG,SAAS;UAAQ,OAAO,GAAG,SAAS;UAK/E,OAAO,YAS7B,CAAC;AACF,QAAA,MAAM,uBAAuB;YAKjB,MAAM,GAAG,SAAS;UACpB,MAAM,GAAG,SAAS;UAClB,MAAM,GAAG,SAAS;UAOD,MAAM,YAwBhC,CAAC;AAEF,KAAK,UAAU,CAAC,OAAO,SAAS,KAAK,CAAC,SAAS,CAAC,EAAE,QAAQ,SAAS,aAAa,CAAC,OAAO,CAA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,CAAC,CAAC,KAAM,CAAC,IAAI,CAAC,QAAQ,CAAQ,CAAC,CAAC;gBACnF,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE;oBAChC,OAAO,IAAA,iBAAG,EAAC,QAAQ,CAAC,CAAC;iBACxB;gBACD,IAAI,QAAQ,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC,QAAS,CAAC,MAAM,CAAC,QAAQ,CAAQ,CAAC,EAAE;oBACnF,OAAO,IAAA,iBAAG,EAAC,QAAQ,CAAC,CAAC;iBACxB;aACJ;YAED,OAAO,IAAA,gBAAE,EAAC,MAAa,CAAC,CAAC;QAC7B,CAAC,EACD,QAAQ,EAAE,UAAA,IAAI;YACV,IAAI,OAAY,CAAC;YACjB,KAAK,OAAO,IAAI,IAAI,EAAE;gBAClB,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,QAAS,CAAC,IAAI,CAAC,OAAO,CAAQ,CAAC,EAAE;oBACnE,OAAO,IAAA,iBAAG,EAAC,OAAO,CAAC,CAAC;iBACvB;aACJ;YACD,OAAO,IAAA,gBAAE,EAAC,SAAS,CAAC,CAAC;QACzB,CAAC,IACG,uBAA+B,EACrC;AACN,CAAC,CAAC;AAIwB,4CAAgB"}
|
package/dist/hook.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Param } from './types/Entity';
|
|
2
|
-
type OnSendQueryHook = (query: string, params: Param[]) => void;
|
|
3
|
-
type AddHook = (hookAndEvent: {
|
|
4
|
-
event: 'on-send-query';
|
|
5
|
-
hook: OnSendQueryHook;
|
|
6
|
-
}) => void;
|
|
7
|
-
type RemoveHook = (hookAndEvent: {
|
|
8
|
-
event: 'on-send-query';
|
|
9
|
-
hook: OnSendQueryHook;
|
|
10
|
-
}) => void;
|
|
11
|
-
declare const addHook: AddHook;
|
|
12
|
-
declare const removeHook: RemoveHook;
|
|
13
|
-
export type { OnSendQueryHook, AddHook, RemoveHook };
|
|
14
|
-
export { addHook, removeHook };
|
|
15
|
-
//# sourceMappingURL=hook.d.ts.map
|
package/dist/hook.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../src/hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAGvC,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;AAChE,KAAK,OAAO,GAAG,CAAC,YAAY,EAAE;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,eAAe,CAAA;CAAE,KAAK,IAAI,CAAC;AACzF,KAAK,UAAU,GAAG,CAAC,YAAY,EAAE;IAAE,KAAK,EAAE,eAAe,CAAC;IAAC,IAAI,EAAE,eAAe,CAAA;CAAE,KAAK,IAAI,CAAC;AAE5F,QAAA,MAAM,OAAO,EAAE,OAMd,CAAC;AACF,QAAA,MAAM,UAAU,EAAE,UAMjB,CAAC;AASF,YAAY,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/hook.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeHook = exports.addHook = void 0;
|
|
4
|
-
var pg_1 = require("pg");
|
|
5
|
-
var addHook = function (_a) {
|
|
6
|
-
var event = _a.event, hook = _a.hook;
|
|
7
|
-
switch (event) {
|
|
8
|
-
case 'on-send-query':
|
|
9
|
-
onSendQueryHooks.push(hook);
|
|
10
|
-
break;
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
exports.addHook = addHook;
|
|
14
|
-
var removeHook = function (_a) {
|
|
15
|
-
var event = _a.event, hook = _a.hook;
|
|
16
|
-
switch (event) {
|
|
17
|
-
case 'on-send-query':
|
|
18
|
-
onSendQueryHooks.splice(onSendQueryHooks.indexOf(hook), 1);
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.removeHook = removeHook;
|
|
23
|
-
var onSendQueryHooks = [];
|
|
24
|
-
var submit = pg_1.Query.prototype.submit;
|
|
25
|
-
pg_1.Query.prototype.submit = function () {
|
|
26
|
-
var _this = this;
|
|
27
|
-
onSendQueryHooks.forEach(function (hook) { return hook(_this.text, _this.values); });
|
|
28
|
-
submit.apply(this, arguments);
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=hook.js.map
|
package/dist/hook.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hook.js","sourceRoot":"","sources":["../src/hook.ts"],"names":[],"mappings":";;;AACA,yBAA2B;AAM3B,IAAM,OAAO,GAAY,UAAC,EAAe;QAAb,KAAK,WAAA,EAAE,IAAI,UAAA;IACnC,QAAQ,KAAK,EAAE;QACX,KAAK,eAAe;YAChB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC5B,MAAM;KACb;AACL,CAAC,CAAC;AAiBO,0BAAO;AAhBhB,IAAM,UAAU,GAAe,UAAC,EAAe;QAAb,KAAK,WAAA,EAAE,IAAI,UAAA;IACzC,QAAQ,KAAK,EAAE;QACX,KAAK,eAAe;YAChB,gBAAgB,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YAC3D,MAAM;KACb;AACL,CAAC,CAAC;AAUgB,gCAAU;AAR5B,IAAM,gBAAgB,GAAsB,EAAE,CAAC;AAC/C,IAAM,MAAM,GAAG,UAAK,CAAC,SAAS,CAAC,MAAM,CAAC;AACtC,UAAK,CAAC,SAAS,CAAC,MAAM,GAAG;IAAA,iBAGxB;IAFG,gBAAgB,CAAC,OAAO,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,KAAI,CAAC,IAAI,EAAE,KAAI,CAAC,MAAM,CAAC,EAA5B,CAA4B,CAAC,CAAC;IAC/D,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,SAAgB,CAAC,CAAC;AACzC,CAAC,CAAC"}
|
package/dist/types/Context.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import Decimal from 'decimal.js';
|
|
2
|
-
import type { Json } from './Json';
|
|
3
|
-
import type { Table } from './Table';
|
|
4
|
-
import { ColumnTypeByColumns, ColumnTypeWithoutCustomTypeWithoutNullByColumns, ColumnTypeWithoutNullByColumns, CustomTypeMap } from './TypeMapper';
|
|
5
|
-
type Context<Columns extends Table['columns'], CTypeMap extends CustomTypeMap<Columns>> = {
|
|
6
|
-
col: <columnKey extends keyof Columns & string>(column: columnKey, alias?: string) => ColumnTypeByColumns<Columns, columnKey, CTypeMap>;
|
|
7
|
-
colNull: <columnKey extends keyof Columns & string>(column: columnKey, op: true extends Columns[columnKey]['nullable'] ? NullOperator : never, alias?: string) => boolean;
|
|
8
|
-
colBool: <columnKey extends keyof Columns & string>(column: columnKey, op: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends boolean ? BooleanOperator : never, alias?: string) => boolean;
|
|
9
|
-
colCmp: <columnKey extends keyof Columns & string>(column: columnKey, op: CompareOperatorCompatible<ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>, CompareOperator, never>, v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>, alias?: string) => boolean;
|
|
10
|
-
colList: <columnKey extends keyof Columns & string>(column: columnKey, op: ListOperatorCompatible<ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>, ListOperator, never>, v: readonly ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>[], alias?: string) => boolean;
|
|
11
|
-
colLike: <columnKey extends keyof Columns & string, Op extends ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends string ? LikeOperator : never>(column: columnKey, op: Op, v: Op extends 'like' ? ColumnTypeWithoutCustomTypeWithoutNullByColumns<Columns, columnKey> : readonly ColumnTypeWithoutCustomTypeWithoutNullByColumns<Columns, columnKey>[], alias?: string) => boolean;
|
|
12
|
-
colJson: <columnKey extends keyof Columns & string, Op extends ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends Json ? JsonOperator : never>(column: columnKey, op: Op, v: Op extends '@>' | '<@' ? ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> : Op extends '?' ? string : Op extends '?&' | '?|' ? readonly string[] : never, alias?: string) => boolean;
|
|
13
|
-
colsAnd: ContextScope<Columns, CTypeMap>;
|
|
14
|
-
colsOr: ContextScope<Columns, CTypeMap>;
|
|
15
|
-
};
|
|
16
|
-
type ContextScope<Columns extends Table['columns'], CTypeMap extends CustomTypeMap<Columns>> = (rules: {
|
|
17
|
-
[columnKey in keyof Columns]?: [op: true extends Columns[columnKey]['nullable'] ? NullOperator : never] | [
|
|
18
|
-
op: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends boolean ? BooleanOperator : never
|
|
19
|
-
] | [
|
|
20
|
-
op: CompareOperatorCompatible<ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>, CompareOperator, never>,
|
|
21
|
-
v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>
|
|
22
|
-
] | [
|
|
23
|
-
op: ListOperatorCompatible<ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>, ListOperator, never>,
|
|
24
|
-
v: readonly ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap>[]
|
|
25
|
-
] | [
|
|
26
|
-
op: Extract<LikeOperator, 'like'>,
|
|
27
|
-
v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends string ? ColumnTypeWithoutCustomTypeWithoutNullByColumns<Columns, columnKey> : never
|
|
28
|
-
] | [
|
|
29
|
-
op: Extract<LikeOperator, 'like some' | 'like all'>,
|
|
30
|
-
v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends string ? readonly ColumnTypeWithoutCustomTypeWithoutNullByColumns<Columns, columnKey>[] : never
|
|
31
|
-
] | [
|
|
32
|
-
op: Extract<JsonOperator, '@>' | '<@'>,
|
|
33
|
-
v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends Json ? ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> : never
|
|
34
|
-
] | [
|
|
35
|
-
op: Extract<JsonOperator, '?'>,
|
|
36
|
-
v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends Json ? string : never
|
|
37
|
-
] | [
|
|
38
|
-
op: Extract<JsonOperator, '?&' | '?|'>,
|
|
39
|
-
v: ColumnTypeWithoutNullByColumns<Columns, columnKey, CTypeMap> extends Json ? readonly string[] : never
|
|
40
|
-
];
|
|
41
|
-
}, alias?: string) => boolean;
|
|
42
|
-
type CompareOperatorCompatible<T, True, False> = T extends number ? True : T extends bigint ? True : T extends Decimal ? True : T extends string ? True : T extends Date ? True : False;
|
|
43
|
-
type ListOperatorCompatible<T, True, False> = T extends number ? True : T extends bigint ? True : T extends Decimal ? True : T extends string ? True : T extends Date ? True : False;
|
|
44
|
-
type NullOperator = '= null' | '!= null';
|
|
45
|
-
type BooleanOperator = '= true' | '= false';
|
|
46
|
-
type CompareOperator = '=' | '!=' | '>' | '>=' | '<' | '<=';
|
|
47
|
-
type ListOperator = 'in' | 'not in';
|
|
48
|
-
type LikeOperator = 'like' | 'like all' | 'like some';
|
|
49
|
-
type JsonOperator = '?' | '@>' | '<@' | '?|' | '?&';
|
|
50
|
-
type ArithmeticOperator = '+' | '-' | '*' | '/' | '**';
|
|
51
|
-
export type { Context, CompareOperatorCompatible, ListOperatorCompatible, ContextScope };
|
|
52
|
-
export type { NullOperator, BooleanOperator, CompareOperator, ListOperator, LikeOperator, JsonOperator, ArithmeticOperator };
|
|
53
|
-
//# sourceMappingURL=Context.d.ts.map
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