prisma 6.15.0-dev.3 → 6.15.0-dev.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/build/index.js +9 -9
- package/build/prisma_schema_build_bg.wasm +0 -0
- package/build/query_compiler_bg.cockroachdb.wasm +0 -0
- package/build/query_compiler_bg.mysql.wasm +0 -0
- package/build/query_compiler_bg.postgresql.wasm +0 -0
- package/build/query_compiler_bg.sqlite.wasm +0 -0
- package/build/query_compiler_bg.sqlserver.wasm +0 -0
- package/build/query_engine_bg.cockroachdb.js +2 -2
- package/build/query_engine_bg.cockroachdb.mjs +1 -1
- package/build/query_engine_bg.cockroachdb.wasm +0 -0
- package/build/query_engine_bg.mysql.js +2 -2
- package/build/query_engine_bg.mysql.mjs +1 -1
- package/build/query_engine_bg.mysql.wasm +0 -0
- package/build/query_engine_bg.postgresql.js +2 -2
- package/build/query_engine_bg.postgresql.mjs +1 -1
- package/build/query_engine_bg.postgresql.wasm +0 -0
- package/build/query_engine_bg.sqlite.js +2 -2
- package/build/query_engine_bg.sqlite.mjs +1 -1
- package/build/query_engine_bg.sqlite.wasm +0 -0
- package/build/query_engine_bg.sqlserver.js +2 -2
- package/build/query_engine_bg.sqlserver.mjs +1 -1
- package/build/query_engine_bg.sqlserver.wasm +0 -0
- package/build/schema_engine_bg.wasm +0 -0
- package/package.json +14 -14
- package/prisma-client/generator-build/index.js +11 -11
- package/prisma-client/package.json +4 -4
- package/prisma-client/runtime/binary.js +3 -3
- package/prisma-client/runtime/binary.js.map +3 -3
- package/prisma-client/runtime/binary.mjs +3 -3
- package/prisma-client/runtime/binary.mjs.map +3 -3
- package/prisma-client/runtime/client.d.mts +34 -55
- package/prisma-client/runtime/client.d.ts +34 -55
- package/prisma-client/runtime/client.js +29 -29
- package/prisma-client/runtime/client.js.map +4 -4
- package/prisma-client/runtime/client.mjs +29 -29
- package/prisma-client/runtime/client.mjs.map +4 -4
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge-esm.js.map +4 -4
- package/prisma-client/runtime/edge.d.ts +34 -55
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/edge.js.map +4 -4
- package/prisma-client/runtime/library.d.mts +34 -55
- package/prisma-client/runtime/library.d.ts +34 -55
- package/prisma-client/runtime/library.js +17 -17
- package/prisma-client/runtime/library.js.map +3 -3
- package/prisma-client/runtime/library.mjs +17 -17
- package/prisma-client/runtime/library.mjs.map +3 -3
- package/prisma-client/runtime/query_engine_bg.cockroachdb.js +2 -2
- package/prisma-client/runtime/query_engine_bg.cockroachdb.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.mysql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.mjs +1 -1
- package/prisma-client/runtime/query_engine_bg.sqlserver.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlserver.mjs +1 -1
- package/prisma-client/runtime/react-native.d.ts +34 -55
- package/prisma-client/runtime/react-native.js +2 -2
- package/prisma-client/runtime/react-native.js.map +4 -4
- 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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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,17 @@ 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' | 'bytes' | 'unsupported';
|
|
1412
|
+
} | {
|
|
1413
|
+
type: 'enum';
|
|
1414
|
+
name: string;
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1417
|
+
declare type FieldType = {
|
|
1418
|
+
arity: Arity;
|
|
1419
|
+
} & FieldScalarType;
|
|
1420
|
+
|
|
1402
1421
|
declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
|
|
1403
1422
|
|
|
1404
1423
|
export declare interface Fn<Params = unknown, Returns = unknown> {
|
|
@@ -2756,17 +2775,7 @@ declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
|
|
|
2756
2775
|
|
|
2757
2776
|
declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
|
|
2758
2777
|
|
|
2759
|
-
declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator
|
|
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
|
-
};
|
|
2778
|
+
declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator;
|
|
2770
2779
|
|
|
2771
2780
|
declare type PrismaValueGenerator = {
|
|
2772
2781
|
prisma__type: 'generatorCall';
|
|
@@ -2784,38 +2793,6 @@ declare type PrismaValuePlaceholder = {
|
|
|
2784
2793
|
};
|
|
2785
2794
|
};
|
|
2786
2795
|
|
|
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
2796
|
export declare const PrivateResultType: unique symbol;
|
|
2820
2797
|
|
|
2821
2798
|
declare type Provider = 'mysql' | 'postgres' | 'sqlite' | 'sqlserver';
|
|
@@ -2985,12 +2962,14 @@ declare type QueryPlanBinding = {
|
|
|
2985
2962
|
declare type QueryPlanDbQuery = {
|
|
2986
2963
|
type: 'rawSql';
|
|
2987
2964
|
sql: string;
|
|
2988
|
-
|
|
2965
|
+
args: PrismaValue[];
|
|
2966
|
+
argTypes: ArgType[];
|
|
2989
2967
|
} | {
|
|
2990
2968
|
type: 'templateSql';
|
|
2991
2969
|
fragments: Fragment[];
|
|
2992
2970
|
placeholderFormat: PlaceholderFormat;
|
|
2993
|
-
|
|
2971
|
+
args: PrismaValue[];
|
|
2972
|
+
argTypes: DynamicArgType[];
|
|
2994
2973
|
chunkable: boolean;
|
|
2995
2974
|
};
|
|
2996
2975
|
|
|
@@ -3290,16 +3269,16 @@ export declare type ResultFieldDefinition = {
|
|
|
3290
3269
|
};
|
|
3291
3270
|
|
|
3292
3271
|
declare type ResultNode = {
|
|
3293
|
-
type: '
|
|
3272
|
+
type: 'affectedRows';
|
|
3294
3273
|
} | {
|
|
3295
|
-
type: '
|
|
3274
|
+
type: 'object';
|
|
3296
3275
|
fields: Record<string, ResultNode>;
|
|
3297
3276
|
serializedName: string | null;
|
|
3298
3277
|
skipNulls: boolean;
|
|
3299
3278
|
} | {
|
|
3300
|
-
type: '
|
|
3279
|
+
type: 'field';
|
|
3301
3280
|
dbName: string;
|
|
3302
|
-
|
|
3281
|
+
fieldType: FieldType;
|
|
3303
3282
|
};
|
|
3304
3283
|
|
|
3305
3284
|
export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|
|
@@ -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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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,17 @@ 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' | 'bytes' | 'unsupported';
|
|
1412
|
+
} | {
|
|
1413
|
+
type: 'enum';
|
|
1414
|
+
name: string;
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1417
|
+
declare type FieldType = {
|
|
1418
|
+
arity: Arity;
|
|
1419
|
+
} & FieldScalarType;
|
|
1420
|
+
|
|
1402
1421
|
declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
|
|
1403
1422
|
|
|
1404
1423
|
export declare interface Fn<Params = unknown, Returns = unknown> {
|
|
@@ -2756,17 +2775,7 @@ declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
|
|
|
2756
2775
|
|
|
2757
2776
|
declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
|
|
2758
2777
|
|
|
2759
|
-
declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator
|
|
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
|
-
};
|
|
2778
|
+
declare type PrismaValue = string | boolean | number | PrismaValue[] | null | Record<string, unknown> | PrismaValuePlaceholder | PrismaValueGenerator;
|
|
2770
2779
|
|
|
2771
2780
|
declare type PrismaValueGenerator = {
|
|
2772
2781
|
prisma__type: 'generatorCall';
|
|
@@ -2784,38 +2793,6 @@ declare type PrismaValuePlaceholder = {
|
|
|
2784
2793
|
};
|
|
2785
2794
|
};
|
|
2786
2795
|
|
|
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
2796
|
export declare const PrivateResultType: unique symbol;
|
|
2820
2797
|
|
|
2821
2798
|
declare type Provider = 'mysql' | 'postgres' | 'sqlite' | 'sqlserver';
|
|
@@ -2985,12 +2962,14 @@ declare type QueryPlanBinding = {
|
|
|
2985
2962
|
declare type QueryPlanDbQuery = {
|
|
2986
2963
|
type: 'rawSql';
|
|
2987
2964
|
sql: string;
|
|
2988
|
-
|
|
2965
|
+
args: PrismaValue[];
|
|
2966
|
+
argTypes: ArgType[];
|
|
2989
2967
|
} | {
|
|
2990
2968
|
type: 'templateSql';
|
|
2991
2969
|
fragments: Fragment[];
|
|
2992
2970
|
placeholderFormat: PlaceholderFormat;
|
|
2993
|
-
|
|
2971
|
+
args: PrismaValue[];
|
|
2972
|
+
argTypes: DynamicArgType[];
|
|
2994
2973
|
chunkable: boolean;
|
|
2995
2974
|
};
|
|
2996
2975
|
|
|
@@ -3290,16 +3269,16 @@ export declare type ResultFieldDefinition = {
|
|
|
3290
3269
|
};
|
|
3291
3270
|
|
|
3292
3271
|
declare type ResultNode = {
|
|
3293
|
-
type: '
|
|
3272
|
+
type: 'affectedRows';
|
|
3294
3273
|
} | {
|
|
3295
|
-
type: '
|
|
3274
|
+
type: 'object';
|
|
3296
3275
|
fields: Record<string, ResultNode>;
|
|
3297
3276
|
serializedName: string | null;
|
|
3298
3277
|
skipNulls: boolean;
|
|
3299
3278
|
} | {
|
|
3300
|
-
type: '
|
|
3279
|
+
type: 'field';
|
|
3301
3280
|
dbName: string;
|
|
3302
|
-
|
|
3281
|
+
fieldType: FieldType;
|
|
3303
3282
|
};
|
|
3304
3283
|
|
|
3305
3284
|
export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|