prisma 6.15.0-dev.2 → 6.15.0-dev.22

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.
Files changed (61) hide show
  1. package/build/index.js +397 -418
  2. package/build/prisma_schema_build_bg.wasm +0 -0
  3. package/build/query_compiler_bg.cockroachdb.wasm +0 -0
  4. package/build/query_compiler_bg.mysql.wasm +0 -0
  5. package/build/query_compiler_bg.postgresql.wasm +0 -0
  6. package/build/query_compiler_bg.sqlite.wasm +0 -0
  7. package/build/query_compiler_bg.sqlserver.wasm +0 -0
  8. package/build/query_engine_bg.cockroachdb.js +2 -2
  9. package/build/query_engine_bg.cockroachdb.mjs +1 -1
  10. package/build/query_engine_bg.cockroachdb.wasm +0 -0
  11. package/build/query_engine_bg.mysql.js +2 -2
  12. package/build/query_engine_bg.mysql.mjs +1 -1
  13. package/build/query_engine_bg.mysql.wasm +0 -0
  14. package/build/query_engine_bg.postgresql.js +2 -2
  15. package/build/query_engine_bg.postgresql.mjs +1 -1
  16. package/build/query_engine_bg.postgresql.wasm +0 -0
  17. package/build/query_engine_bg.sqlite.js +2 -2
  18. package/build/query_engine_bg.sqlite.mjs +1 -1
  19. package/build/query_engine_bg.sqlite.wasm +0 -0
  20. package/build/query_engine_bg.sqlserver.js +2 -2
  21. package/build/query_engine_bg.sqlserver.mjs +1 -1
  22. package/build/query_engine_bg.sqlserver.wasm +0 -0
  23. package/build/schema_engine_bg.wasm +0 -0
  24. package/package.json +14 -14
  25. package/prisma-client/generator-build/index.js +15 -16
  26. package/prisma-client/package.json +4 -4
  27. package/prisma-client/runtime/binary.js +3 -3
  28. package/prisma-client/runtime/binary.js.map +3 -3
  29. package/prisma-client/runtime/binary.mjs +4 -4
  30. package/prisma-client/runtime/binary.mjs.map +3 -3
  31. package/prisma-client/runtime/client.d.mts +38 -56
  32. package/prisma-client/runtime/client.d.ts +38 -56
  33. package/prisma-client/runtime/client.js +33 -33
  34. package/prisma-client/runtime/client.js.map +4 -4
  35. package/prisma-client/runtime/client.mjs +34 -34
  36. package/prisma-client/runtime/client.mjs.map +4 -4
  37. package/prisma-client/runtime/edge-esm.js +3 -3
  38. package/prisma-client/runtime/edge-esm.js.map +4 -4
  39. package/prisma-client/runtime/edge.d.ts +38 -56
  40. package/prisma-client/runtime/edge.js +3 -3
  41. package/prisma-client/runtime/edge.js.map +4 -4
  42. package/prisma-client/runtime/library.d.mts +38 -56
  43. package/prisma-client/runtime/library.d.ts +38 -56
  44. package/prisma-client/runtime/library.js +2 -2
  45. package/prisma-client/runtime/library.js.map +3 -3
  46. package/prisma-client/runtime/library.mjs +3 -3
  47. package/prisma-client/runtime/library.mjs.map +3 -3
  48. package/prisma-client/runtime/query_engine_bg.cockroachdb.js +2 -2
  49. package/prisma-client/runtime/query_engine_bg.cockroachdb.mjs +1 -1
  50. package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
  51. package/prisma-client/runtime/query_engine_bg.mysql.mjs +1 -1
  52. package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
  53. package/prisma-client/runtime/query_engine_bg.postgresql.mjs +1 -1
  54. package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
  55. package/prisma-client/runtime/query_engine_bg.sqlite.mjs +1 -1
  56. package/prisma-client/runtime/query_engine_bg.sqlserver.js +2 -2
  57. package/prisma-client/runtime/query_engine_bg.sqlserver.mjs +1 -1
  58. package/prisma-client/runtime/react-native.d.ts +38 -56
  59. package/prisma-client/runtime/react-native.js +2 -2
  60. package/prisma-client/runtime/react-native.js.map +4 -4
  61. package/prisma-client/scripts/default-index.js +3 -3
@@ -91,12 +91,15 @@ export declare type Args<T, F extends Operation> = T extends {
91
91
 
92
92
  export declare type Args_3<T, F extends Operation> = Args<T, F>;
93
93
 
94
- /**
95
- * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
96
- * Query arguments marked with this type are sanitized before being sent to the database.
97
- * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
98
- */
99
- declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time' | 'Unknown';
94
+ declare type ArgScalarType = 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown';
95
+
96
+ declare type ArgType = {
97
+ scalarType: ArgScalarType;
98
+ dbType?: string;
99
+ arity: Arity;
100
+ };
101
+
102
+ declare type Arity = 'scalar' | 'list';
100
103
 
101
104
  /**
102
105
  * Attributes is a map from string to attribute values.
@@ -849,6 +852,11 @@ declare interface DriverAdapterFactory<Query, Result> extends AdapterInfo {
849
852
  connect(): Promise<Queryable<Query, Result>>;
850
853
  }
851
854
 
855
+ declare type DynamicArgType = ArgType | {
856
+ arity: 'tuple';
857
+ elements: ArgType[];
858
+ };
859
+
852
860
  /** Client */
853
861
  export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
854
862
  [P in keyof C_]: unknown;
@@ -1399,6 +1407,20 @@ declare type FieldRefType = ReadonlyDeep_2<{
1399
1407
  fields: SchemaArg[];
1400
1408
  }>;
1401
1409
 
1410
+ declare type FieldScalarType = {
1411
+ type: 'string' | 'int' | 'bigint' | 'float' | 'boolean' | 'json' | 'object' | 'datetime' | 'decimal' | 'unsupported';
1412
+ } | {
1413
+ type: 'enum';
1414
+ name: string;
1415
+ } | {
1416
+ type: 'bytes';
1417
+ encoding: 'array' | 'base64' | 'hex';
1418
+ };
1419
+
1420
+ declare type FieldType = {
1421
+ arity: Arity;
1422
+ } & FieldScalarType;
1423
+
1402
1424
  declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
1403
1425
 
1404
1426
  export declare interface Fn<Params = unknown, Returns = unknown> {
@@ -2756,17 +2778,7 @@ declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
2756
2778
 
2757
2779
  declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
2758
2780
 
2759
- declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator | PrismaValueBytes | PrismaValueBigInt;
2760
-
2761
- declare type PrismaValueBigInt = {
2762
- prisma__type: 'bigint';
2763
- prisma__value: string;
2764
- };
2765
-
2766
- declare type PrismaValueBytes = {
2767
- prisma__type: 'bytes';
2768
- prisma__value: string;
2769
- };
2781
+ declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator;
2770
2782
 
2771
2783
  declare type PrismaValueGenerator = {
2772
2784
  prisma__type: 'generatorCall';
@@ -2784,38 +2796,6 @@ declare type PrismaValuePlaceholder = {
2784
2796
  };
2785
2797
  };
2786
2798
 
2787
- declare type PrismaValueType = {
2788
- type: 'Any';
2789
- } | {
2790
- type: 'String';
2791
- } | {
2792
- type: 'Int';
2793
- } | {
2794
- type: 'BigInt';
2795
- } | {
2796
- type: 'Float';
2797
- } | {
2798
- type: 'Boolean';
2799
- } | {
2800
- type: 'Decimal';
2801
- } | {
2802
- type: 'Date';
2803
- } | {
2804
- type: 'Time';
2805
- } | {
2806
- type: 'Array';
2807
- inner: PrismaValueType;
2808
- } | {
2809
- type: 'Json';
2810
- } | {
2811
- type: 'Object';
2812
- } | {
2813
- type: 'Bytes';
2814
- } | {
2815
- type: 'Enum';
2816
- inner: string;
2817
- };
2818
-
2819
2799
  export declare const PrivateResultType: unique symbol;
2820
2800
 
2821
2801
  declare type Provider = 'mysql' | 'postgres' | 'sqlite' | 'sqlserver';
@@ -2985,12 +2965,14 @@ declare type QueryPlanBinding = {
2985
2965
  declare type QueryPlanDbQuery = {
2986
2966
  type: 'rawSql';
2987
2967
  sql: string;
2988
- params: PrismaValue[];
2968
+ args: PrismaValue[];
2969
+ argTypes: ArgType[];
2989
2970
  } | {
2990
2971
  type: 'templateSql';
2991
2972
  fragments: Fragment[];
2992
2973
  placeholderFormat: PlaceholderFormat;
2993
- params: PrismaValue[];
2974
+ args: PrismaValue[];
2975
+ argTypes: DynamicArgType[];
2994
2976
  chunkable: boolean;
2995
2977
  };
2996
2978
 
@@ -3290,16 +3272,16 @@ export declare type ResultFieldDefinition = {
3290
3272
  };
3291
3273
 
3292
3274
  declare type ResultNode = {
3293
- type: 'AffectedRows';
3275
+ type: 'affectedRows';
3294
3276
  } | {
3295
- type: 'Object';
3277
+ type: 'object';
3296
3278
  fields: Record<string, ResultNode>;
3297
3279
  serializedName: string | null;
3298
3280
  skipNulls: boolean;
3299
3281
  } | {
3300
- type: 'Value';
3282
+ type: 'field';
3301
3283
  dbName: string;
3302
- resultType: PrismaValueType;
3284
+ fieldType: FieldType;
3303
3285
  };
3304
3286
 
3305
3287
  export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
@@ -3321,7 +3303,7 @@ declare type Schema = ReadonlyDeep_2<{
3321
3303
  rootMutationType?: string;
3322
3304
  inputObjectTypes: {
3323
3305
  model?: InputType[];
3324
- prisma: InputType[];
3306
+ prisma?: InputType[];
3325
3307
  };
3326
3308
  outputObjectTypes: {
3327
3309
  model: OutputType[];