joist-codegen 1.174.1 → 1.174.3
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/build/codemods/index.d.ts.map +1 -1
- package/build/codemods/index.js +3 -3
- package/build/codemods/index.js.map +1 -1
- package/build/config.d.ts +53 -53
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAMnC,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8CtE;AAED,wBAAgB,cAAc,IAAI,MAAM,CAIvC"}
|
package/build/codemods/index.js
CHANGED
|
@@ -5,13 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.maybeRunTransforms = maybeRunTransforms;
|
|
7
7
|
exports.getThisVersion = getThisVersion;
|
|
8
|
-
const inquirer_1 = __importDefault(require("inquirer"));
|
|
9
8
|
const semver_1 = __importDefault(require("semver"));
|
|
10
9
|
const adjustVersion_1 = require("../adjustVersion");
|
|
11
10
|
const v1_143_0_rename_derived_async_property_1 = require("./v1_143_0_rename_derived_async_property");
|
|
12
11
|
const v1_148_0_move_codegen_files_1 = require("./v1_148_0_move_codegen_files");
|
|
13
12
|
const v1_151_0_rename_derived_async_reference_1 = require("./v1_151_0_rename_derived_async_reference");
|
|
14
13
|
async function maybeRunTransforms(config) {
|
|
14
|
+
const { default: inquirer } = await import("inquirer");
|
|
15
15
|
const confVersion = config.version;
|
|
16
16
|
const thisVersion = getThisVersion();
|
|
17
17
|
if (semver_1.default.eq(confVersion, thisVersion)) {
|
|
@@ -24,7 +24,7 @@ async function maybeRunTransforms(config) {
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
console.log(`Your project is on Joist ${confVersion} and there are ${mods.length} codemods to help upgrade to ${thisVersion}.`);
|
|
27
|
-
const run = await
|
|
27
|
+
const run = await inquirer.prompt({
|
|
28
28
|
name: "run",
|
|
29
29
|
type: "confirm",
|
|
30
30
|
message: `Would you like to run them?`,
|
|
@@ -36,7 +36,7 @@ async function maybeRunTransforms(config) {
|
|
|
36
36
|
}
|
|
37
37
|
// Otherwise run them
|
|
38
38
|
for await (const mod of mods) {
|
|
39
|
-
const run = await
|
|
39
|
+
const run = await inquirer.prompt({
|
|
40
40
|
name: "run",
|
|
41
41
|
type: "confirm",
|
|
42
42
|
message: `Do you want to run ${mod.description}?`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":";;;;;AAQA,gDA8CC;AAED,wCAIC;AA5DD,oDAA4B;AAC5B,oDAAkE;AAGlE,qGAAkG;AAClG,+EAA4E;AAC5E,uGAA8F;AAEvF,KAAK,UAAU,kBAAkB,CAAC,MAAc;IACrD,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;IACvD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC;IACnC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,IAAI,gBAAM,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC;QACxC,OAAO;IACT,CAAC;IAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAChD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,6CAA6C;QAC7C,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC;QAC7B,OAAO;IACT,CAAC;IAED,OAAO,CAAC,GAAG,CACT,4BAA4B,WAAW,kBAAkB,IAAI,CAAC,MAAM,gCAAgC,WAAW,GAAG,CACnH,CAAC;IAEF,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;QAChC,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,6BAA6B;KACvC,CAAC,CAAC;IAEH,iBAAiB;IACjB,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC;QAC7B,OAAO;IACT,CAAC;IAED,qBAAqB;IACrB,IAAI,KAAK,EAAE,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QAC7B,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YAChC,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,sBAAsB,GAAG,CAAC,WAAW,GAAG;SAClD,CAAC,CAAC;QACH,IAAI,CAAC,GAAG;YAAE,SAAS;QACnB,MAAM,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,iCAAiC,WAAW,GAAG,CAAC,CAAC;IAE7D,yEAAyE;IACzE,MAAM,CAAC,OAAO,GAAG,WAAW,CAAC;AAC/B,CAAC;AAED,SAAgB,cAAc;IAC5B,yFAAyF;IACzF,wFAAwF;IACxF,OAAO,IAAA,8CAA8B,EAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,CAAC;AAC/E,CAAC;AAED,SAAS,qBAAqB,CAAC,WAAmB;IAChD,OAAO;QACL,+EAAsC;QACtC,yDAA2B;QAC3B,2EAAiC;KAClC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAM,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
package/build/config.d.ts
CHANGED
|
@@ -14,24 +14,24 @@ declare const fieldConfig: z.ZodObject<{
|
|
|
14
14
|
/** Whether the user will configure a default value for this field via `config.setDefault`. */
|
|
15
15
|
hasConfigDefault: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
type?: string | undefined;
|
|
17
18
|
derived?: "sync" | "async" | undefined;
|
|
18
19
|
protected?: boolean | undefined;
|
|
19
20
|
ignore?: boolean | undefined;
|
|
20
21
|
superstruct?: string | undefined;
|
|
21
22
|
zodSchema?: string | undefined;
|
|
22
|
-
type?: string | undefined;
|
|
23
23
|
serde?: string | undefined;
|
|
24
24
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
25
25
|
stiType?: string | undefined;
|
|
26
26
|
stiNotNull?: boolean | undefined;
|
|
27
27
|
hasConfigDefault?: boolean | undefined;
|
|
28
28
|
}, {
|
|
29
|
+
type?: string | undefined;
|
|
29
30
|
derived?: "sync" | "async" | undefined;
|
|
30
31
|
protected?: boolean | undefined;
|
|
31
32
|
ignore?: boolean | undefined;
|
|
32
33
|
superstruct?: string | undefined;
|
|
33
34
|
zodSchema?: string | undefined;
|
|
34
|
-
type?: string | undefined;
|
|
35
35
|
serde?: string | undefined;
|
|
36
36
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
37
37
|
stiType?: string | undefined;
|
|
@@ -50,20 +50,20 @@ declare const relationConfig: z.ZodObject<{
|
|
|
50
50
|
hasConfigDefault: z.ZodOptional<z.ZodBoolean>;
|
|
51
51
|
}, "strict", z.ZodTypeAny, {
|
|
52
52
|
derived?: "async" | undefined;
|
|
53
|
-
polymorphic?: true | "notNull" | undefined;
|
|
54
|
-
large?: boolean | undefined;
|
|
55
|
-
orderBy?: string | undefined;
|
|
56
53
|
stiType?: string | undefined;
|
|
57
54
|
stiNotNull?: boolean | undefined;
|
|
58
55
|
hasConfigDefault?: boolean | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
derived?: "async" | undefined;
|
|
61
56
|
polymorphic?: true | "notNull" | undefined;
|
|
62
57
|
large?: boolean | undefined;
|
|
63
58
|
orderBy?: string | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
derived?: "async" | undefined;
|
|
64
61
|
stiType?: string | undefined;
|
|
65
62
|
stiNotNull?: boolean | undefined;
|
|
66
63
|
hasConfigDefault?: boolean | undefined;
|
|
64
|
+
polymorphic?: true | "notNull" | undefined;
|
|
65
|
+
large?: boolean | undefined;
|
|
66
|
+
orderBy?: string | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export type RelationConfig = z.infer<typeof relationConfig>;
|
|
69
69
|
declare const entityConfig: z.ZodObject<{
|
|
@@ -83,24 +83,24 @@ declare const entityConfig: z.ZodObject<{
|
|
|
83
83
|
/** Whether the user will configure a default value for this field via `config.setDefault`. */
|
|
84
84
|
hasConfigDefault: z.ZodOptional<z.ZodBoolean>;
|
|
85
85
|
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
type?: string | undefined;
|
|
86
87
|
derived?: "sync" | "async" | undefined;
|
|
87
88
|
protected?: boolean | undefined;
|
|
88
89
|
ignore?: boolean | undefined;
|
|
89
90
|
superstruct?: string | undefined;
|
|
90
91
|
zodSchema?: string | undefined;
|
|
91
|
-
type?: string | undefined;
|
|
92
92
|
serde?: string | undefined;
|
|
93
93
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
94
94
|
stiType?: string | undefined;
|
|
95
95
|
stiNotNull?: boolean | undefined;
|
|
96
96
|
hasConfigDefault?: boolean | undefined;
|
|
97
97
|
}, {
|
|
98
|
+
type?: string | undefined;
|
|
98
99
|
derived?: "sync" | "async" | undefined;
|
|
99
100
|
protected?: boolean | undefined;
|
|
100
101
|
ignore?: boolean | undefined;
|
|
101
102
|
superstruct?: string | undefined;
|
|
102
103
|
zodSchema?: string | undefined;
|
|
103
|
-
type?: string | undefined;
|
|
104
104
|
serde?: string | undefined;
|
|
105
105
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
106
106
|
stiType?: string | undefined;
|
|
@@ -118,20 +118,20 @@ declare const entityConfig: z.ZodObject<{
|
|
|
118
118
|
hasConfigDefault: z.ZodOptional<z.ZodBoolean>;
|
|
119
119
|
}, "strict", z.ZodTypeAny, {
|
|
120
120
|
derived?: "async" | undefined;
|
|
121
|
-
polymorphic?: true | "notNull" | undefined;
|
|
122
|
-
large?: boolean | undefined;
|
|
123
|
-
orderBy?: string | undefined;
|
|
124
121
|
stiType?: string | undefined;
|
|
125
122
|
stiNotNull?: boolean | undefined;
|
|
126
123
|
hasConfigDefault?: boolean | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
derived?: "async" | undefined;
|
|
129
124
|
polymorphic?: true | "notNull" | undefined;
|
|
130
125
|
large?: boolean | undefined;
|
|
131
126
|
orderBy?: string | undefined;
|
|
127
|
+
}, {
|
|
128
|
+
derived?: "async" | undefined;
|
|
132
129
|
stiType?: string | undefined;
|
|
133
130
|
stiNotNull?: boolean | undefined;
|
|
134
131
|
hasConfigDefault?: boolean | undefined;
|
|
132
|
+
polymorphic?: true | "notNull" | undefined;
|
|
133
|
+
large?: boolean | undefined;
|
|
134
|
+
orderBy?: string | undefined;
|
|
135
135
|
}>>>;
|
|
136
136
|
/** Whether this entity should be abstract, e.g. for inheritance a subtype must be instantiated instead of this type. */
|
|
137
137
|
abstract: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -140,12 +140,12 @@ declare const entityConfig: z.ZodObject<{
|
|
|
140
140
|
tag: string;
|
|
141
141
|
tableName?: string | undefined;
|
|
142
142
|
fields?: Record<string, {
|
|
143
|
+
type?: string | undefined;
|
|
143
144
|
derived?: "sync" | "async" | undefined;
|
|
144
145
|
protected?: boolean | undefined;
|
|
145
146
|
ignore?: boolean | undefined;
|
|
146
147
|
superstruct?: string | undefined;
|
|
147
148
|
zodSchema?: string | undefined;
|
|
148
|
-
type?: string | undefined;
|
|
149
149
|
serde?: string | undefined;
|
|
150
150
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
151
151
|
stiType?: string | undefined;
|
|
@@ -154,25 +154,25 @@ declare const entityConfig: z.ZodObject<{
|
|
|
154
154
|
}> | undefined;
|
|
155
155
|
relations?: Record<string, {
|
|
156
156
|
derived?: "async" | undefined;
|
|
157
|
-
polymorphic?: true | "notNull" | undefined;
|
|
158
|
-
large?: boolean | undefined;
|
|
159
|
-
orderBy?: string | undefined;
|
|
160
157
|
stiType?: string | undefined;
|
|
161
158
|
stiNotNull?: boolean | undefined;
|
|
162
159
|
hasConfigDefault?: boolean | undefined;
|
|
160
|
+
polymorphic?: true | "notNull" | undefined;
|
|
161
|
+
large?: boolean | undefined;
|
|
162
|
+
orderBy?: string | undefined;
|
|
163
163
|
}> | undefined;
|
|
164
|
-
abstract?: boolean | undefined;
|
|
165
164
|
orderBy?: string | undefined;
|
|
165
|
+
abstract?: boolean | undefined;
|
|
166
166
|
}, {
|
|
167
167
|
tag: string;
|
|
168
168
|
tableName?: string | undefined;
|
|
169
169
|
fields?: Record<string, {
|
|
170
|
+
type?: string | undefined;
|
|
170
171
|
derived?: "sync" | "async" | undefined;
|
|
171
172
|
protected?: boolean | undefined;
|
|
172
173
|
ignore?: boolean | undefined;
|
|
173
174
|
superstruct?: string | undefined;
|
|
174
175
|
zodSchema?: string | undefined;
|
|
175
|
-
type?: string | undefined;
|
|
176
176
|
serde?: string | undefined;
|
|
177
177
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
178
178
|
stiType?: string | undefined;
|
|
@@ -181,15 +181,15 @@ declare const entityConfig: z.ZodObject<{
|
|
|
181
181
|
}> | undefined;
|
|
182
182
|
relations?: Record<string, {
|
|
183
183
|
derived?: "async" | undefined;
|
|
184
|
-
polymorphic?: true | "notNull" | undefined;
|
|
185
|
-
large?: boolean | undefined;
|
|
186
|
-
orderBy?: string | undefined;
|
|
187
184
|
stiType?: string | undefined;
|
|
188
185
|
stiNotNull?: boolean | undefined;
|
|
189
186
|
hasConfigDefault?: boolean | undefined;
|
|
187
|
+
polymorphic?: true | "notNull" | undefined;
|
|
188
|
+
large?: boolean | undefined;
|
|
189
|
+
orderBy?: string | undefined;
|
|
190
190
|
}> | undefined;
|
|
191
|
-
abstract?: boolean | undefined;
|
|
192
191
|
orderBy?: string | undefined;
|
|
192
|
+
abstract?: boolean | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
export type EntityConfig = z.infer<typeof entityConfig>;
|
|
195
195
|
declare const timestampConfig: z.ZodObject<{
|
|
@@ -325,24 +325,24 @@ export declare const config: z.ZodObject<{
|
|
|
325
325
|
/** Whether the user will configure a default value for this field via `config.setDefault`. */
|
|
326
326
|
hasConfigDefault: z.ZodOptional<z.ZodBoolean>;
|
|
327
327
|
}, "strict", z.ZodTypeAny, {
|
|
328
|
+
type?: string | undefined;
|
|
328
329
|
derived?: "sync" | "async" | undefined;
|
|
329
330
|
protected?: boolean | undefined;
|
|
330
331
|
ignore?: boolean | undefined;
|
|
331
332
|
superstruct?: string | undefined;
|
|
332
333
|
zodSchema?: string | undefined;
|
|
333
|
-
type?: string | undefined;
|
|
334
334
|
serde?: string | undefined;
|
|
335
335
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
336
336
|
stiType?: string | undefined;
|
|
337
337
|
stiNotNull?: boolean | undefined;
|
|
338
338
|
hasConfigDefault?: boolean | undefined;
|
|
339
339
|
}, {
|
|
340
|
+
type?: string | undefined;
|
|
340
341
|
derived?: "sync" | "async" | undefined;
|
|
341
342
|
protected?: boolean | undefined;
|
|
342
343
|
ignore?: boolean | undefined;
|
|
343
344
|
superstruct?: string | undefined;
|
|
344
345
|
zodSchema?: string | undefined;
|
|
345
|
-
type?: string | undefined;
|
|
346
346
|
serde?: string | undefined;
|
|
347
347
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
348
348
|
stiType?: string | undefined;
|
|
@@ -360,20 +360,20 @@ export declare const config: z.ZodObject<{
|
|
|
360
360
|
hasConfigDefault: z.ZodOptional<z.ZodBoolean>;
|
|
361
361
|
}, "strict", z.ZodTypeAny, {
|
|
362
362
|
derived?: "async" | undefined;
|
|
363
|
-
polymorphic?: true | "notNull" | undefined;
|
|
364
|
-
large?: boolean | undefined;
|
|
365
|
-
orderBy?: string | undefined;
|
|
366
363
|
stiType?: string | undefined;
|
|
367
364
|
stiNotNull?: boolean | undefined;
|
|
368
365
|
hasConfigDefault?: boolean | undefined;
|
|
369
|
-
}, {
|
|
370
|
-
derived?: "async" | undefined;
|
|
371
366
|
polymorphic?: true | "notNull" | undefined;
|
|
372
367
|
large?: boolean | undefined;
|
|
373
368
|
orderBy?: string | undefined;
|
|
369
|
+
}, {
|
|
370
|
+
derived?: "async" | undefined;
|
|
374
371
|
stiType?: string | undefined;
|
|
375
372
|
stiNotNull?: boolean | undefined;
|
|
376
373
|
hasConfigDefault?: boolean | undefined;
|
|
374
|
+
polymorphic?: true | "notNull" | undefined;
|
|
375
|
+
large?: boolean | undefined;
|
|
376
|
+
orderBy?: string | undefined;
|
|
377
377
|
}>>>;
|
|
378
378
|
/** Whether this entity should be abstract, e.g. for inheritance a subtype must be instantiated instead of this type. */
|
|
379
379
|
abstract: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -382,12 +382,12 @@ export declare const config: z.ZodObject<{
|
|
|
382
382
|
tag: string;
|
|
383
383
|
tableName?: string | undefined;
|
|
384
384
|
fields?: Record<string, {
|
|
385
|
+
type?: string | undefined;
|
|
385
386
|
derived?: "sync" | "async" | undefined;
|
|
386
387
|
protected?: boolean | undefined;
|
|
387
388
|
ignore?: boolean | undefined;
|
|
388
389
|
superstruct?: string | undefined;
|
|
389
390
|
zodSchema?: string | undefined;
|
|
390
|
-
type?: string | undefined;
|
|
391
391
|
serde?: string | undefined;
|
|
392
392
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
393
393
|
stiType?: string | undefined;
|
|
@@ -396,25 +396,25 @@ export declare const config: z.ZodObject<{
|
|
|
396
396
|
}> | undefined;
|
|
397
397
|
relations?: Record<string, {
|
|
398
398
|
derived?: "async" | undefined;
|
|
399
|
-
polymorphic?: true | "notNull" | undefined;
|
|
400
|
-
large?: boolean | undefined;
|
|
401
|
-
orderBy?: string | undefined;
|
|
402
399
|
stiType?: string | undefined;
|
|
403
400
|
stiNotNull?: boolean | undefined;
|
|
404
401
|
hasConfigDefault?: boolean | undefined;
|
|
402
|
+
polymorphic?: true | "notNull" | undefined;
|
|
403
|
+
large?: boolean | undefined;
|
|
404
|
+
orderBy?: string | undefined;
|
|
405
405
|
}> | undefined;
|
|
406
|
-
abstract?: boolean | undefined;
|
|
407
406
|
orderBy?: string | undefined;
|
|
407
|
+
abstract?: boolean | undefined;
|
|
408
408
|
}, {
|
|
409
409
|
tag: string;
|
|
410
410
|
tableName?: string | undefined;
|
|
411
411
|
fields?: Record<string, {
|
|
412
|
+
type?: string | undefined;
|
|
412
413
|
derived?: "sync" | "async" | undefined;
|
|
413
414
|
protected?: boolean | undefined;
|
|
414
415
|
ignore?: boolean | undefined;
|
|
415
416
|
superstruct?: string | undefined;
|
|
416
417
|
zodSchema?: string | undefined;
|
|
417
|
-
type?: string | undefined;
|
|
418
418
|
serde?: string | undefined;
|
|
419
419
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
420
420
|
stiType?: string | undefined;
|
|
@@ -423,15 +423,15 @@ export declare const config: z.ZodObject<{
|
|
|
423
423
|
}> | undefined;
|
|
424
424
|
relations?: Record<string, {
|
|
425
425
|
derived?: "async" | undefined;
|
|
426
|
-
polymorphic?: true | "notNull" | undefined;
|
|
427
|
-
large?: boolean | undefined;
|
|
428
|
-
orderBy?: string | undefined;
|
|
429
426
|
stiType?: string | undefined;
|
|
430
427
|
stiNotNull?: boolean | undefined;
|
|
431
428
|
hasConfigDefault?: boolean | undefined;
|
|
429
|
+
polymorphic?: true | "notNull" | undefined;
|
|
430
|
+
large?: boolean | undefined;
|
|
431
|
+
orderBy?: string | undefined;
|
|
432
432
|
}> | undefined;
|
|
433
|
-
abstract?: boolean | undefined;
|
|
434
433
|
orderBy?: string | undefined;
|
|
434
|
+
abstract?: boolean | undefined;
|
|
435
435
|
}>>>;
|
|
436
436
|
ignoredTables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
437
437
|
/** The type of entity `id` fields; defaults to `tagged-string`. */
|
|
@@ -447,12 +447,12 @@ export declare const config: z.ZodObject<{
|
|
|
447
447
|
tag: string;
|
|
448
448
|
tableName?: string | undefined;
|
|
449
449
|
fields?: Record<string, {
|
|
450
|
+
type?: string | undefined;
|
|
450
451
|
derived?: "sync" | "async" | undefined;
|
|
451
452
|
protected?: boolean | undefined;
|
|
452
453
|
ignore?: boolean | undefined;
|
|
453
454
|
superstruct?: string | undefined;
|
|
454
455
|
zodSchema?: string | undefined;
|
|
455
|
-
type?: string | undefined;
|
|
456
456
|
serde?: string | undefined;
|
|
457
457
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
458
458
|
stiType?: string | undefined;
|
|
@@ -461,15 +461,15 @@ export declare const config: z.ZodObject<{
|
|
|
461
461
|
}> | undefined;
|
|
462
462
|
relations?: Record<string, {
|
|
463
463
|
derived?: "async" | undefined;
|
|
464
|
-
polymorphic?: true | "notNull" | undefined;
|
|
465
|
-
large?: boolean | undefined;
|
|
466
|
-
orderBy?: string | undefined;
|
|
467
464
|
stiType?: string | undefined;
|
|
468
465
|
stiNotNull?: boolean | undefined;
|
|
469
466
|
hasConfigDefault?: boolean | undefined;
|
|
467
|
+
polymorphic?: true | "notNull" | undefined;
|
|
468
|
+
large?: boolean | undefined;
|
|
469
|
+
orderBy?: string | undefined;
|
|
470
470
|
}> | undefined;
|
|
471
|
-
abstract?: boolean | undefined;
|
|
472
471
|
orderBy?: string | undefined;
|
|
472
|
+
abstract?: boolean | undefined;
|
|
473
473
|
}>;
|
|
474
474
|
version: string;
|
|
475
475
|
databaseUrl?: string | undefined;
|
|
@@ -495,7 +495,7 @@ export declare const config: z.ZodObject<{
|
|
|
495
495
|
codegenPlugins?: string[] | undefined;
|
|
496
496
|
ignoredTables?: string[] | undefined;
|
|
497
497
|
idType?: "number" | "tagged-string" | "untagged-string" | undefined;
|
|
498
|
-
nonDeferredForeignKeys?: "
|
|
498
|
+
nonDeferredForeignKeys?: "ignore" | "error" | "warn" | undefined;
|
|
499
499
|
esm?: boolean | undefined;
|
|
500
500
|
}, {
|
|
501
501
|
databaseUrl?: string | undefined;
|
|
@@ -524,12 +524,12 @@ export declare const config: z.ZodObject<{
|
|
|
524
524
|
tag: string;
|
|
525
525
|
tableName?: string | undefined;
|
|
526
526
|
fields?: Record<string, {
|
|
527
|
+
type?: string | undefined;
|
|
527
528
|
derived?: "sync" | "async" | undefined;
|
|
528
529
|
protected?: boolean | undefined;
|
|
529
530
|
ignore?: boolean | undefined;
|
|
530
531
|
superstruct?: string | undefined;
|
|
531
532
|
zodSchema?: string | undefined;
|
|
532
|
-
type?: string | undefined;
|
|
533
533
|
serde?: string | undefined;
|
|
534
534
|
stiDiscriminator?: Record<string, string> | undefined;
|
|
535
535
|
stiType?: string | undefined;
|
|
@@ -538,19 +538,19 @@ export declare const config: z.ZodObject<{
|
|
|
538
538
|
}> | undefined;
|
|
539
539
|
relations?: Record<string, {
|
|
540
540
|
derived?: "async" | undefined;
|
|
541
|
-
polymorphic?: true | "notNull" | undefined;
|
|
542
|
-
large?: boolean | undefined;
|
|
543
|
-
orderBy?: string | undefined;
|
|
544
541
|
stiType?: string | undefined;
|
|
545
542
|
stiNotNull?: boolean | undefined;
|
|
546
543
|
hasConfigDefault?: boolean | undefined;
|
|
544
|
+
polymorphic?: true | "notNull" | undefined;
|
|
545
|
+
large?: boolean | undefined;
|
|
546
|
+
orderBy?: string | undefined;
|
|
547
547
|
}> | undefined;
|
|
548
|
-
abstract?: boolean | undefined;
|
|
549
548
|
orderBy?: string | undefined;
|
|
549
|
+
abstract?: boolean | undefined;
|
|
550
550
|
}> | undefined;
|
|
551
551
|
ignoredTables?: string[] | undefined;
|
|
552
552
|
idType?: "number" | "tagged-string" | "untagged-string" | undefined;
|
|
553
|
-
nonDeferredForeignKeys?: "
|
|
553
|
+
nonDeferredForeignKeys?: "ignore" | "error" | "warn" | undefined;
|
|
554
554
|
esm?: boolean | undefined;
|
|
555
555
|
version?: string | undefined;
|
|
556
556
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-codegen",
|
|
3
|
-
"version": "1.174.
|
|
3
|
+
"version": "1.174.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@dprint/formatter": "^0.2.1",
|
|
20
20
|
"@dprint/json": "0.15.6",
|
|
21
|
-
"@types/inquirer": "^
|
|
21
|
+
"@types/inquirer": "^9.0.7",
|
|
22
22
|
"@types/jscodeshift": "^0.11.11",
|
|
23
23
|
"@types/pluralize": "0.0.33",
|
|
24
24
|
"@types/semver": "^7.5.8",
|
|
25
25
|
"change-case": "^4.1.2",
|
|
26
26
|
"fast-glob": "^3.3.2",
|
|
27
|
-
"inquirer": "^
|
|
28
|
-
"joist-utils": "1.174.
|
|
29
|
-
"jscodeshift": "^0.
|
|
27
|
+
"inquirer": "^9.3.0",
|
|
28
|
+
"joist-utils": "1.174.3",
|
|
29
|
+
"jscodeshift": "^0.16.1",
|
|
30
30
|
"knex": "^3.1.0",
|
|
31
|
-
"pg": "^8.
|
|
31
|
+
"pg": "^8.12.0",
|
|
32
32
|
"pg-structure": "^7.15.3",
|
|
33
33
|
"pluralize": "^8.0.0",
|
|
34
|
-
"semver": "^7.6.
|
|
34
|
+
"semver": "^7.6.2",
|
|
35
35
|
"ts-poet": "^6.9.0",
|
|
36
|
-
"zod": "^3.
|
|
36
|
+
"zod": "^3.23.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@swc/jest": "^0.2.36",
|
|
40
40
|
"@types/jest": "^29.5.12",
|
|
41
|
-
"@types/node": "^20.
|
|
42
|
-
"jest": "30.0.0-alpha.
|
|
43
|
-
"prettier": "^3.2
|
|
41
|
+
"@types/node": "^20.14.9",
|
|
42
|
+
"jest": "30.0.0-alpha.5",
|
|
43
|
+
"prettier": "^3.3.2",
|
|
44
44
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
45
45
|
"ts-node-dev": "^2.0.0",
|
|
46
46
|
"tsconfig-paths": "^4.2.0",
|
|
47
47
|
"tsx": "^4.15.7",
|
|
48
48
|
"typescript": "^5.5.2",
|
|
49
|
-
"zod-to-json-schema": "^3.
|
|
49
|
+
"zod-to-json-schema": "^3.23.1"
|
|
50
50
|
}
|
|
51
51
|
}
|