@stryke/prisma-trpc-generator 0.7.4 → 0.7.5
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/generator.cjs +7 -7
- package/dist/generator.js +7 -7
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -7371,14 +7371,14 @@ var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
|
7371
7371
|
}(ModelAction || {});
|
|
7372
7372
|
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
7373
7373
|
var configSchema = z.object({
|
|
7374
|
-
debug: z.boolean().or(z.string()).default(false),
|
|
7375
|
-
withMiddleware: z.boolean().or(z.string()).default(false),
|
|
7376
|
-
withShield: z.boolean().or(z.string()).default(true),
|
|
7377
|
-
withZod: z.boolean().default(true),
|
|
7378
|
-
withNext: z.boolean().default(true),
|
|
7374
|
+
debug: z.coerce.boolean().or(z.string()).default(false),
|
|
7375
|
+
withMiddleware: z.coerce.boolean().or(z.string()).default(false),
|
|
7376
|
+
withShield: z.coerce.boolean().or(z.string()).default(true),
|
|
7377
|
+
withZod: z.coerce.boolean().or(z.string()).default(true),
|
|
7378
|
+
withNext: z.coerce.boolean().or(z.string()).default(true),
|
|
7379
7379
|
contextPath: z.string().default("../src/trpc/context"),
|
|
7380
|
-
trpcOptions: z.boolean().or(z.string()).
|
|
7381
|
-
showModelNameInProcedure: z.boolean().default(true),
|
|
7380
|
+
trpcOptions: z.coerce.boolean().or(z.string()).optional(),
|
|
7381
|
+
showModelNameInProcedure: z.coerce.boolean().or(z.string()).default(true),
|
|
7382
7382
|
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
7383
7383
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
7384
7384
|
})
|
package/dist/generator.js
CHANGED
|
@@ -7376,14 +7376,14 @@ var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
|
7376
7376
|
}(ModelAction || {});
|
|
7377
7377
|
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
7378
7378
|
var configSchema = z.object({
|
|
7379
|
-
debug: z.boolean().or(z.string()).default(false),
|
|
7380
|
-
withMiddleware: z.boolean().or(z.string()).default(false),
|
|
7381
|
-
withShield: z.boolean().or(z.string()).default(true),
|
|
7382
|
-
withZod: z.boolean().default(true),
|
|
7383
|
-
withNext: z.boolean().default(true),
|
|
7379
|
+
debug: z.coerce.boolean().or(z.string()).default(false),
|
|
7380
|
+
withMiddleware: z.coerce.boolean().or(z.string()).default(false),
|
|
7381
|
+
withShield: z.coerce.boolean().or(z.string()).default(true),
|
|
7382
|
+
withZod: z.coerce.boolean().or(z.string()).default(true),
|
|
7383
|
+
withNext: z.coerce.boolean().or(z.string()).default(true),
|
|
7384
7384
|
contextPath: z.string().default("../src/trpc/context"),
|
|
7385
|
-
trpcOptions: z.boolean().or(z.string()).
|
|
7386
|
-
showModelNameInProcedure: z.boolean().default(true),
|
|
7385
|
+
trpcOptions: z.coerce.boolean().or(z.string()).optional(),
|
|
7386
|
+
showModelNameInProcedure: z.coerce.boolean().or(z.string()).default(true),
|
|
7387
7387
|
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
7388
7388
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
7389
7389
|
})
|
package/dist/index.cjs
CHANGED
|
@@ -7367,14 +7367,14 @@ var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
|
7367
7367
|
}(ModelAction || {});
|
|
7368
7368
|
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
7369
7369
|
var configSchema = z.object({
|
|
7370
|
-
debug: z.boolean().or(z.string()).default(false),
|
|
7371
|
-
withMiddleware: z.boolean().or(z.string()).default(false),
|
|
7372
|
-
withShield: z.boolean().or(z.string()).default(true),
|
|
7373
|
-
withZod: z.boolean().default(true),
|
|
7374
|
-
withNext: z.boolean().default(true),
|
|
7370
|
+
debug: z.coerce.boolean().or(z.string()).default(false),
|
|
7371
|
+
withMiddleware: z.coerce.boolean().or(z.string()).default(false),
|
|
7372
|
+
withShield: z.coerce.boolean().or(z.string()).default(true),
|
|
7373
|
+
withZod: z.coerce.boolean().or(z.string()).default(true),
|
|
7374
|
+
withNext: z.coerce.boolean().or(z.string()).default(true),
|
|
7375
7375
|
contextPath: z.string().default("../src/trpc/context"),
|
|
7376
|
-
trpcOptions: z.boolean().or(z.string()).
|
|
7377
|
-
showModelNameInProcedure: z.boolean().default(true),
|
|
7376
|
+
trpcOptions: z.coerce.boolean().or(z.string()).optional(),
|
|
7377
|
+
showModelNameInProcedure: z.coerce.boolean().or(z.string()).default(true),
|
|
7378
7378
|
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
7379
7379
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
7380
7380
|
})
|
package/dist/index.js
CHANGED
|
@@ -7372,14 +7372,14 @@ var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
|
7372
7372
|
}(ModelAction || {});
|
|
7373
7373
|
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
7374
7374
|
var configSchema = z.object({
|
|
7375
|
-
debug: z.boolean().or(z.string()).default(false),
|
|
7376
|
-
withMiddleware: z.boolean().or(z.string()).default(false),
|
|
7377
|
-
withShield: z.boolean().or(z.string()).default(true),
|
|
7378
|
-
withZod: z.boolean().default(true),
|
|
7379
|
-
withNext: z.boolean().default(true),
|
|
7375
|
+
debug: z.coerce.boolean().or(z.string()).default(false),
|
|
7376
|
+
withMiddleware: z.coerce.boolean().or(z.string()).default(false),
|
|
7377
|
+
withShield: z.coerce.boolean().or(z.string()).default(true),
|
|
7378
|
+
withZod: z.coerce.boolean().or(z.string()).default(true),
|
|
7379
|
+
withNext: z.coerce.boolean().or(z.string()).default(true),
|
|
7380
7380
|
contextPath: z.string().default("../src/trpc/context"),
|
|
7381
|
-
trpcOptions: z.boolean().or(z.string()).
|
|
7382
|
-
showModelNameInProcedure: z.boolean().default(true),
|
|
7381
|
+
trpcOptions: z.coerce.boolean().or(z.string()).optional(),
|
|
7382
|
+
showModelNameInProcedure: z.coerce.boolean().or(z.string()).default(true),
|
|
7383
7383
|
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
7384
7384
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
7385
7385
|
})
|