@stryke/prisma-trpc-generator 0.2.4 → 0.2.6
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 +26 -5
- package/dist/generator.js +26 -5
- package/dist/index.cjs +26 -5
- package/dist/index.js +26 -5
- package/package.json +1 -1
package/dist/generator.cjs
CHANGED
|
@@ -301609,7 +301609,7 @@ init_cjs_shims();
|
|
|
301609
301609
|
|
|
301610
301610
|
// src/index.ts
|
|
301611
301611
|
init_cjs_shims();
|
|
301612
|
-
var
|
|
301612
|
+
var import_generator_helper = __toESM(require("@prisma/generator-helper"), 1);
|
|
301613
301613
|
|
|
301614
301614
|
// src/prisma-generator.ts
|
|
301615
301615
|
init_cjs_shims();
|
|
@@ -301622,7 +301622,6 @@ var import_prisma_generator2 = __toESM(require_prisma_generator2(), 1);
|
|
|
301622
301622
|
|
|
301623
301623
|
// src/config.ts
|
|
301624
301624
|
init_cjs_shims();
|
|
301625
|
-
var import_generator_helper = require("@prisma/generator-helper");
|
|
301626
301625
|
|
|
301627
301626
|
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
301628
301627
|
init_cjs_shims();
|
|
@@ -305831,6 +305830,28 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
305831
305830
|
});
|
|
305832
305831
|
|
|
305833
305832
|
// src/config.ts
|
|
305833
|
+
var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
305834
|
+
ModelAction2["findUnique"] = "findUnique";
|
|
305835
|
+
ModelAction2["findUniqueOrThrow"] = "findUniqueOrThrow";
|
|
305836
|
+
ModelAction2["findFirst"] = "findFirst";
|
|
305837
|
+
ModelAction2["findFirstOrThrow"] = "findFirstOrThrow";
|
|
305838
|
+
ModelAction2["findMany"] = "findMany";
|
|
305839
|
+
ModelAction2["create"] = "create";
|
|
305840
|
+
ModelAction2["createMany"] = "createMany";
|
|
305841
|
+
ModelAction2["createManyAndReturn"] = "createManyAndReturn";
|
|
305842
|
+
ModelAction2["update"] = "update";
|
|
305843
|
+
ModelAction2["updateMany"] = "updateMany";
|
|
305844
|
+
ModelAction2["updateManyAndReturn"] = "updateManyAndReturn";
|
|
305845
|
+
ModelAction2["upsert"] = "upsert";
|
|
305846
|
+
ModelAction2["delete"] = "delete";
|
|
305847
|
+
ModelAction2["deleteMany"] = "deleteMany";
|
|
305848
|
+
ModelAction2["groupBy"] = "groupBy";
|
|
305849
|
+
ModelAction2["count"] = "count";
|
|
305850
|
+
ModelAction2["aggregate"] = "aggregate";
|
|
305851
|
+
ModelAction2["findRaw"] = "findRaw";
|
|
305852
|
+
ModelAction2["aggregateRaw"] = "aggregateRaw";
|
|
305853
|
+
return ModelAction2;
|
|
305854
|
+
}(ModelAction || {});
|
|
305834
305855
|
var configBoolean = z.enum([
|
|
305835
305856
|
"true",
|
|
305836
305857
|
"false"
|
|
@@ -305843,7 +305864,7 @@ var configShield = z.union([
|
|
|
305843
305864
|
configBoolean,
|
|
305844
305865
|
z.string().default("../../../../src/shield")
|
|
305845
305866
|
]);
|
|
305846
|
-
var modelActionEnum = z.nativeEnum(
|
|
305867
|
+
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
305847
305868
|
var configSchema = z.object({
|
|
305848
305869
|
withMiddleware: configMiddleware.default("true"),
|
|
305849
305870
|
withShield: configShield.default("true"),
|
|
@@ -305851,7 +305872,7 @@ var configSchema = z.object({
|
|
|
305851
305872
|
contextPath: z.string().default("../../../../src/context"),
|
|
305852
305873
|
trpcOptionsPath: z.string().optional(),
|
|
305853
305874
|
showModelNameInProcedure: configBoolean.default("true"),
|
|
305854
|
-
generateModelActions: z.string().default(Object.values(
|
|
305875
|
+
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
305855
305876
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
305856
305877
|
})
|
|
305857
305878
|
});
|
|
@@ -306311,7 +306332,7 @@ async function generate(options) {
|
|
|
306311
306332
|
__name(generate, "generate");
|
|
306312
306333
|
|
|
306313
306334
|
// src/index.ts
|
|
306314
|
-
|
|
306335
|
+
import_generator_helper.default.generatorHandler({
|
|
306315
306336
|
onManifest: /* @__PURE__ */ __name(() => ({
|
|
306316
306337
|
defaultOutput: "./generated",
|
|
306317
306338
|
prettyName: "Prisma tRPC Generator",
|
package/dist/generator.js
CHANGED
|
@@ -301621,7 +301621,7 @@ init_esm_shims();
|
|
|
301621
301621
|
|
|
301622
301622
|
// src/index.ts
|
|
301623
301623
|
init_esm_shims();
|
|
301624
|
-
import
|
|
301624
|
+
import generatorHelper2 from "@prisma/generator-helper";
|
|
301625
301625
|
|
|
301626
301626
|
// src/prisma-generator.ts
|
|
301627
301627
|
init_esm_shims();
|
|
@@ -301634,7 +301634,6 @@ import path4 from "node:path";
|
|
|
301634
301634
|
|
|
301635
301635
|
// src/config.ts
|
|
301636
301636
|
init_esm_shims();
|
|
301637
|
-
import { DMMF } from "@prisma/generator-helper";
|
|
301638
301637
|
|
|
301639
301638
|
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
301640
301639
|
init_esm_shims();
|
|
@@ -305843,6 +305842,28 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
305843
305842
|
});
|
|
305844
305843
|
|
|
305845
305844
|
// src/config.ts
|
|
305845
|
+
var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
305846
|
+
ModelAction2["findUnique"] = "findUnique";
|
|
305847
|
+
ModelAction2["findUniqueOrThrow"] = "findUniqueOrThrow";
|
|
305848
|
+
ModelAction2["findFirst"] = "findFirst";
|
|
305849
|
+
ModelAction2["findFirstOrThrow"] = "findFirstOrThrow";
|
|
305850
|
+
ModelAction2["findMany"] = "findMany";
|
|
305851
|
+
ModelAction2["create"] = "create";
|
|
305852
|
+
ModelAction2["createMany"] = "createMany";
|
|
305853
|
+
ModelAction2["createManyAndReturn"] = "createManyAndReturn";
|
|
305854
|
+
ModelAction2["update"] = "update";
|
|
305855
|
+
ModelAction2["updateMany"] = "updateMany";
|
|
305856
|
+
ModelAction2["updateManyAndReturn"] = "updateManyAndReturn";
|
|
305857
|
+
ModelAction2["upsert"] = "upsert";
|
|
305858
|
+
ModelAction2["delete"] = "delete";
|
|
305859
|
+
ModelAction2["deleteMany"] = "deleteMany";
|
|
305860
|
+
ModelAction2["groupBy"] = "groupBy";
|
|
305861
|
+
ModelAction2["count"] = "count";
|
|
305862
|
+
ModelAction2["aggregate"] = "aggregate";
|
|
305863
|
+
ModelAction2["findRaw"] = "findRaw";
|
|
305864
|
+
ModelAction2["aggregateRaw"] = "aggregateRaw";
|
|
305865
|
+
return ModelAction2;
|
|
305866
|
+
}(ModelAction || {});
|
|
305846
305867
|
var configBoolean = z.enum([
|
|
305847
305868
|
"true",
|
|
305848
305869
|
"false"
|
|
@@ -305855,7 +305876,7 @@ var configShield = z.union([
|
|
|
305855
305876
|
configBoolean,
|
|
305856
305877
|
z.string().default("../../../../src/shield")
|
|
305857
305878
|
]);
|
|
305858
|
-
var modelActionEnum = z.nativeEnum(
|
|
305879
|
+
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
305859
305880
|
var configSchema = z.object({
|
|
305860
305881
|
withMiddleware: configMiddleware.default("true"),
|
|
305861
305882
|
withShield: configShield.default("true"),
|
|
@@ -305863,7 +305884,7 @@ var configSchema = z.object({
|
|
|
305863
305884
|
contextPath: z.string().default("../../../../src/context"),
|
|
305864
305885
|
trpcOptionsPath: z.string().optional(),
|
|
305865
305886
|
showModelNameInProcedure: configBoolean.default("true"),
|
|
305866
|
-
generateModelActions: z.string().default(Object.values(
|
|
305887
|
+
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
305867
305888
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
305868
305889
|
})
|
|
305869
305890
|
});
|
|
@@ -306323,7 +306344,7 @@ async function generate(options) {
|
|
|
306323
306344
|
__name(generate, "generate");
|
|
306324
306345
|
|
|
306325
306346
|
// src/index.ts
|
|
306326
|
-
generatorHandler({
|
|
306347
|
+
generatorHelper2.generatorHandler({
|
|
306327
306348
|
onManifest: /* @__PURE__ */ __name(() => ({
|
|
306328
306349
|
defaultOutput: "./generated",
|
|
306329
306350
|
prettyName: "Prisma tRPC Generator",
|
package/dist/index.cjs
CHANGED
|
@@ -301605,7 +301605,7 @@ var require_prisma_generator2 = __commonJS({
|
|
|
301605
301605
|
|
|
301606
301606
|
// src/index.ts
|
|
301607
301607
|
init_cjs_shims();
|
|
301608
|
-
var
|
|
301608
|
+
var import_generator_helper = __toESM(require("@prisma/generator-helper"), 1);
|
|
301609
301609
|
|
|
301610
301610
|
// src/prisma-generator.ts
|
|
301611
301611
|
init_cjs_shims();
|
|
@@ -301618,7 +301618,6 @@ var import_prisma_generator2 = __toESM(require_prisma_generator2(), 1);
|
|
|
301618
301618
|
|
|
301619
301619
|
// src/config.ts
|
|
301620
301620
|
init_cjs_shims();
|
|
301621
|
-
var import_generator_helper = require("@prisma/generator-helper");
|
|
301622
301621
|
|
|
301623
301622
|
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
301624
301623
|
init_cjs_shims();
|
|
@@ -305827,6 +305826,28 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
305827
305826
|
});
|
|
305828
305827
|
|
|
305829
305828
|
// src/config.ts
|
|
305829
|
+
var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
305830
|
+
ModelAction2["findUnique"] = "findUnique";
|
|
305831
|
+
ModelAction2["findUniqueOrThrow"] = "findUniqueOrThrow";
|
|
305832
|
+
ModelAction2["findFirst"] = "findFirst";
|
|
305833
|
+
ModelAction2["findFirstOrThrow"] = "findFirstOrThrow";
|
|
305834
|
+
ModelAction2["findMany"] = "findMany";
|
|
305835
|
+
ModelAction2["create"] = "create";
|
|
305836
|
+
ModelAction2["createMany"] = "createMany";
|
|
305837
|
+
ModelAction2["createManyAndReturn"] = "createManyAndReturn";
|
|
305838
|
+
ModelAction2["update"] = "update";
|
|
305839
|
+
ModelAction2["updateMany"] = "updateMany";
|
|
305840
|
+
ModelAction2["updateManyAndReturn"] = "updateManyAndReturn";
|
|
305841
|
+
ModelAction2["upsert"] = "upsert";
|
|
305842
|
+
ModelAction2["delete"] = "delete";
|
|
305843
|
+
ModelAction2["deleteMany"] = "deleteMany";
|
|
305844
|
+
ModelAction2["groupBy"] = "groupBy";
|
|
305845
|
+
ModelAction2["count"] = "count";
|
|
305846
|
+
ModelAction2["aggregate"] = "aggregate";
|
|
305847
|
+
ModelAction2["findRaw"] = "findRaw";
|
|
305848
|
+
ModelAction2["aggregateRaw"] = "aggregateRaw";
|
|
305849
|
+
return ModelAction2;
|
|
305850
|
+
}(ModelAction || {});
|
|
305830
305851
|
var configBoolean = z.enum([
|
|
305831
305852
|
"true",
|
|
305832
305853
|
"false"
|
|
@@ -305839,7 +305860,7 @@ var configShield = z.union([
|
|
|
305839
305860
|
configBoolean,
|
|
305840
305861
|
z.string().default("../../../../src/shield")
|
|
305841
305862
|
]);
|
|
305842
|
-
var modelActionEnum = z.nativeEnum(
|
|
305863
|
+
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
305843
305864
|
var configSchema = z.object({
|
|
305844
305865
|
withMiddleware: configMiddleware.default("true"),
|
|
305845
305866
|
withShield: configShield.default("true"),
|
|
@@ -305847,7 +305868,7 @@ var configSchema = z.object({
|
|
|
305847
305868
|
contextPath: z.string().default("../../../../src/context"),
|
|
305848
305869
|
trpcOptionsPath: z.string().optional(),
|
|
305849
305870
|
showModelNameInProcedure: configBoolean.default("true"),
|
|
305850
|
-
generateModelActions: z.string().default(Object.values(
|
|
305871
|
+
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
305851
305872
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
305852
305873
|
})
|
|
305853
305874
|
});
|
|
@@ -306307,7 +306328,7 @@ async function generate(options) {
|
|
|
306307
306328
|
__name(generate, "generate");
|
|
306308
306329
|
|
|
306309
306330
|
// src/index.ts
|
|
306310
|
-
|
|
306331
|
+
import_generator_helper.default.generatorHandler({
|
|
306311
306332
|
onManifest: /* @__PURE__ */ __name(() => ({
|
|
306312
306333
|
defaultOutput: "./generated",
|
|
306313
306334
|
prettyName: "Prisma tRPC Generator",
|
package/dist/index.js
CHANGED
|
@@ -301617,7 +301617,7 @@ var require_prisma_generator2 = __commonJS({
|
|
|
301617
301617
|
|
|
301618
301618
|
// src/index.ts
|
|
301619
301619
|
init_esm_shims();
|
|
301620
|
-
import
|
|
301620
|
+
import generatorHelper2 from "@prisma/generator-helper";
|
|
301621
301621
|
|
|
301622
301622
|
// src/prisma-generator.ts
|
|
301623
301623
|
init_esm_shims();
|
|
@@ -301630,7 +301630,6 @@ import path4 from "node:path";
|
|
|
301630
301630
|
|
|
301631
301631
|
// src/config.ts
|
|
301632
301632
|
init_esm_shims();
|
|
301633
|
-
import { DMMF } from "@prisma/generator-helper";
|
|
301634
301633
|
|
|
301635
301634
|
// ../../node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.mjs
|
|
301636
301635
|
init_esm_shims();
|
|
@@ -305839,6 +305838,28 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
305839
305838
|
});
|
|
305840
305839
|
|
|
305841
305840
|
// src/config.ts
|
|
305841
|
+
var ModelAction = /* @__PURE__ */ function(ModelAction2) {
|
|
305842
|
+
ModelAction2["findUnique"] = "findUnique";
|
|
305843
|
+
ModelAction2["findUniqueOrThrow"] = "findUniqueOrThrow";
|
|
305844
|
+
ModelAction2["findFirst"] = "findFirst";
|
|
305845
|
+
ModelAction2["findFirstOrThrow"] = "findFirstOrThrow";
|
|
305846
|
+
ModelAction2["findMany"] = "findMany";
|
|
305847
|
+
ModelAction2["create"] = "create";
|
|
305848
|
+
ModelAction2["createMany"] = "createMany";
|
|
305849
|
+
ModelAction2["createManyAndReturn"] = "createManyAndReturn";
|
|
305850
|
+
ModelAction2["update"] = "update";
|
|
305851
|
+
ModelAction2["updateMany"] = "updateMany";
|
|
305852
|
+
ModelAction2["updateManyAndReturn"] = "updateManyAndReturn";
|
|
305853
|
+
ModelAction2["upsert"] = "upsert";
|
|
305854
|
+
ModelAction2["delete"] = "delete";
|
|
305855
|
+
ModelAction2["deleteMany"] = "deleteMany";
|
|
305856
|
+
ModelAction2["groupBy"] = "groupBy";
|
|
305857
|
+
ModelAction2["count"] = "count";
|
|
305858
|
+
ModelAction2["aggregate"] = "aggregate";
|
|
305859
|
+
ModelAction2["findRaw"] = "findRaw";
|
|
305860
|
+
ModelAction2["aggregateRaw"] = "aggregateRaw";
|
|
305861
|
+
return ModelAction2;
|
|
305862
|
+
}(ModelAction || {});
|
|
305842
305863
|
var configBoolean = z.enum([
|
|
305843
305864
|
"true",
|
|
305844
305865
|
"false"
|
|
@@ -305851,7 +305872,7 @@ var configShield = z.union([
|
|
|
305851
305872
|
configBoolean,
|
|
305852
305873
|
z.string().default("../../../../src/shield")
|
|
305853
305874
|
]);
|
|
305854
|
-
var modelActionEnum = z.nativeEnum(
|
|
305875
|
+
var modelActionEnum = z.nativeEnum(ModelAction);
|
|
305855
305876
|
var configSchema = z.object({
|
|
305856
305877
|
withMiddleware: configMiddleware.default("true"),
|
|
305857
305878
|
withShield: configShield.default("true"),
|
|
@@ -305859,7 +305880,7 @@ var configSchema = z.object({
|
|
|
305859
305880
|
contextPath: z.string().default("../../../../src/context"),
|
|
305860
305881
|
trpcOptionsPath: z.string().optional(),
|
|
305861
305882
|
showModelNameInProcedure: configBoolean.default("true"),
|
|
305862
|
-
generateModelActions: z.string().default(Object.values(
|
|
305883
|
+
generateModelActions: z.string().default(Object.values(ModelAction).join(",")).transform((arg) => {
|
|
305863
305884
|
return arg.split(",").map((action) => modelActionEnum.parse(action.trim()));
|
|
305864
305885
|
})
|
|
305865
305886
|
});
|
|
@@ -306319,7 +306340,7 @@ async function generate(options) {
|
|
|
306319
306340
|
__name(generate, "generate");
|
|
306320
306341
|
|
|
306321
306342
|
// src/index.ts
|
|
306322
|
-
generatorHandler({
|
|
306343
|
+
generatorHelper2.generatorHandler({
|
|
306323
306344
|
onManifest: /* @__PURE__ */ __name(() => ({
|
|
306324
306345
|
defaultOutput: "./generated",
|
|
306325
306346
|
prettyName: "Prisma tRPC Generator",
|