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.
@@ -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", "by", "having", "_count", "_avg", "_sum", "_min", "_max", "orderBy", "take", "skip"];
197
- readonly create: readonly ["data", "select", "include"];
198
- readonly createMany: readonly ["data"];
199
- readonly createManyAndReturn: readonly ["data", "select", "include"];
200
- readonly update: readonly ["data", "where", "select", "include"];
201
- readonly updateMany: readonly ["data", "where"];
202
- readonly updateManyAndReturn: readonly ["data", "where", "select", "include"];
203
- readonly upsert: readonly ["where", "create", "update", "select", "include"];
204
- readonly delete: readonly ["where", "select", "include"];
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;
@@ -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", "by", "having", "_count", "_avg", "_sum", "_min", "_max", "orderBy", "take", "skip"];
197
- readonly create: readonly ["data", "select", "include"];
198
- readonly createMany: readonly ["data"];
199
- readonly createManyAndReturn: readonly ["data", "select", "include"];
200
- readonly update: readonly ["data", "where", "select", "include"];
201
- readonly updateMany: readonly ["data", "where"];
202
- readonly updateManyAndReturn: readonly ["data", "where", "select", "include"];
203
- readonly upsert: readonly ["where", "create", "update", "select", "include"];
204
- readonly delete: readonly ["where", "select", "include"];
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;
@@ -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", "by", "having", "_count", "_avg", "_sum", "_min", "_max", "orderBy", "take", "skip"],
2924
- create: ["data", "select", "include"],
2925
- createMany: ["data"],
2926
- createManyAndReturn: ["data", "select", "include"],
2927
- update: ["data", "where", "select", "include"],
2928
- updateMany: ["data", "where"],
2929
- updateManyAndReturn: ["data", "where", "select", "include"],
2930
- upsert: ["where", "create", "update", "select", "include"],
2931
- delete: ["where", "select", "include"],
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 = {