prisma-guard 1.28.0 → 1.28.1
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/index.js +10 -9
- package/dist/generator/index.js.map +1 -1
- package/dist/runtime/index.cjs +10 -9
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.d.cts +10 -9
- package/dist/runtime/index.d.ts +10 -9
- package/dist/runtime/index.js +10 -9
- package/dist/runtime/index.js.map +1 -1
- package/package.json +1 -1
package/dist/runtime/index.d.cts
CHANGED
|
@@ -187,21 +187,22 @@ declare function unsupported(): {
|
|
|
187
187
|
|
|
188
188
|
declare const OPERATION_SHAPE_KEYS: {
|
|
189
189
|
readonly findMany: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
190
|
+
readonly findManyPaginated: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
190
191
|
readonly findFirst: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
191
192
|
readonly findFirstOrThrow: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
192
193
|
readonly findUnique: readonly ["where", "include", "select"];
|
|
193
194
|
readonly findUniqueOrThrow: readonly ["where", "include", "select"];
|
|
194
195
|
readonly count: readonly ["where", "select", "cursor", "orderBy", "skip", "take"];
|
|
195
196
|
readonly aggregate: readonly ["where", "orderBy", "cursor", "take", "skip", "_count", "_avg", "_sum", "_min", "_max"];
|
|
196
|
-
readonly groupBy: readonly ["where", "
|
|
197
|
-
readonly create: readonly ["data", "
|
|
198
|
-
readonly createMany: readonly ["data"];
|
|
199
|
-
readonly createManyAndReturn: readonly ["data", "select", "
|
|
200
|
-
readonly update: readonly ["
|
|
201
|
-
readonly updateMany: readonly ["
|
|
202
|
-
readonly updateManyAndReturn: readonly ["
|
|
203
|
-
readonly upsert: readonly ["where", "create", "update", "
|
|
204
|
-
readonly delete: readonly ["where", "
|
|
197
|
+
readonly groupBy: readonly ["where", "orderBy", "by", "having", "take", "skip", "_count", "_avg", "_sum", "_min", "_max"];
|
|
198
|
+
readonly create: readonly ["data", "include", "select"];
|
|
199
|
+
readonly createMany: readonly ["data", "skipDuplicates"];
|
|
200
|
+
readonly createManyAndReturn: readonly ["data", "select", "skipDuplicates"];
|
|
201
|
+
readonly update: readonly ["where", "data", "include", "select"];
|
|
202
|
+
readonly updateMany: readonly ["where", "data"];
|
|
203
|
+
readonly updateManyAndReturn: readonly ["where", "data", "select"];
|
|
204
|
+
readonly upsert: readonly ["where", "create", "update", "include", "select"];
|
|
205
|
+
readonly delete: readonly ["where", "include", "select"];
|
|
205
206
|
readonly deleteMany: readonly ["where"];
|
|
206
207
|
};
|
|
207
208
|
type OperationName = keyof typeof OPERATION_SHAPE_KEYS;
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -187,21 +187,22 @@ declare function unsupported(): {
|
|
|
187
187
|
|
|
188
188
|
declare const OPERATION_SHAPE_KEYS: {
|
|
189
189
|
readonly findMany: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
190
|
+
readonly findManyPaginated: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
190
191
|
readonly findFirst: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
191
192
|
readonly findFirstOrThrow: readonly ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"];
|
|
192
193
|
readonly findUnique: readonly ["where", "include", "select"];
|
|
193
194
|
readonly findUniqueOrThrow: readonly ["where", "include", "select"];
|
|
194
195
|
readonly count: readonly ["where", "select", "cursor", "orderBy", "skip", "take"];
|
|
195
196
|
readonly aggregate: readonly ["where", "orderBy", "cursor", "take", "skip", "_count", "_avg", "_sum", "_min", "_max"];
|
|
196
|
-
readonly groupBy: readonly ["where", "
|
|
197
|
-
readonly create: readonly ["data", "
|
|
198
|
-
readonly createMany: readonly ["data"];
|
|
199
|
-
readonly createManyAndReturn: readonly ["data", "select", "
|
|
200
|
-
readonly update: readonly ["
|
|
201
|
-
readonly updateMany: readonly ["
|
|
202
|
-
readonly updateManyAndReturn: readonly ["
|
|
203
|
-
readonly upsert: readonly ["where", "create", "update", "
|
|
204
|
-
readonly delete: readonly ["where", "
|
|
197
|
+
readonly groupBy: readonly ["where", "orderBy", "by", "having", "take", "skip", "_count", "_avg", "_sum", "_min", "_max"];
|
|
198
|
+
readonly create: readonly ["data", "include", "select"];
|
|
199
|
+
readonly createMany: readonly ["data", "skipDuplicates"];
|
|
200
|
+
readonly createManyAndReturn: readonly ["data", "select", "skipDuplicates"];
|
|
201
|
+
readonly update: readonly ["where", "data", "include", "select"];
|
|
202
|
+
readonly updateMany: readonly ["where", "data"];
|
|
203
|
+
readonly updateManyAndReturn: readonly ["where", "data", "select"];
|
|
204
|
+
readonly upsert: readonly ["where", "create", "update", "include", "select"];
|
|
205
|
+
readonly delete: readonly ["where", "include", "select"];
|
|
205
206
|
readonly deleteMany: readonly ["where"];
|
|
206
207
|
};
|
|
207
208
|
type OperationName = keyof typeof OPERATION_SHAPE_KEYS;
|
package/dist/runtime/index.js
CHANGED
|
@@ -2914,21 +2914,22 @@ function createProjectionBuilder(typeMap, _enumMap, deps) {
|
|
|
2914
2914
|
// src/shared/operation-shape-keys.ts
|
|
2915
2915
|
var OPERATION_SHAPE_KEYS = {
|
|
2916
2916
|
findMany: ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"],
|
|
2917
|
+
findManyPaginated: ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"],
|
|
2917
2918
|
findFirst: ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"],
|
|
2918
2919
|
findFirstOrThrow: ["where", "include", "select", "orderBy", "cursor", "take", "skip", "distinct"],
|
|
2919
2920
|
findUnique: ["where", "include", "select"],
|
|
2920
2921
|
findUniqueOrThrow: ["where", "include", "select"],
|
|
2921
2922
|
count: ["where", "select", "cursor", "orderBy", "skip", "take"],
|
|
2922
2923
|
aggregate: ["where", "orderBy", "cursor", "take", "skip", "_count", "_avg", "_sum", "_min", "_max"],
|
|
2923
|
-
groupBy: ["where", "
|
|
2924
|
-
create: ["data", "
|
|
2925
|
-
createMany: ["data"],
|
|
2926
|
-
createManyAndReturn: ["data", "select", "
|
|
2927
|
-
update: ["
|
|
2928
|
-
updateMany: ["
|
|
2929
|
-
updateManyAndReturn: ["
|
|
2930
|
-
upsert: ["where", "create", "update", "
|
|
2931
|
-
delete: ["where", "
|
|
2924
|
+
groupBy: ["where", "orderBy", "by", "having", "take", "skip", "_count", "_avg", "_sum", "_min", "_max"],
|
|
2925
|
+
create: ["data", "include", "select"],
|
|
2926
|
+
createMany: ["data", "skipDuplicates"],
|
|
2927
|
+
createManyAndReturn: ["data", "select", "skipDuplicates"],
|
|
2928
|
+
update: ["where", "data", "include", "select"],
|
|
2929
|
+
updateMany: ["where", "data"],
|
|
2930
|
+
updateManyAndReturn: ["where", "data", "select"],
|
|
2931
|
+
upsert: ["where", "create", "update", "include", "select"],
|
|
2932
|
+
delete: ["where", "include", "select"],
|
|
2932
2933
|
deleteMany: ["where"]
|
|
2933
2934
|
};
|
|
2934
2935
|
var READ_METHOD_ALLOWED_ARGS = {
|