prisma 6.1.0 → 6.2.0-dev.10
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 +4 -4
- package/build/prisma_schema_build_bg.wasm +0 -0
- package/package.json +10 -10
- package/prisma-client/generator-build/index.js +104 -25
- package/prisma-client/package.json +3 -3
- package/prisma-client/runtime/binary.js +62 -62
- package/prisma-client/runtime/edge-esm.js +18 -18
- package/prisma-client/runtime/edge.js +18 -18
- package/prisma-client/runtime/index-browser.d.ts +1 -1
- package/prisma-client/runtime/library.d.ts +20 -3
- package/prisma-client/runtime/library.js +48 -48
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/react-native.d.ts +20 -3
- package/prisma-client/runtime/react-native.js +27 -27
- package/prisma-client/scripts/default-index.js +3 -3
|
@@ -345,7 +345,7 @@ export declare const objectEnumValues: {
|
|
|
345
345
|
};
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
348
|
+
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
349
349
|
|
|
350
350
|
declare namespace Public {
|
|
351
351
|
export {
|
|
@@ -648,8 +648,12 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
|
|
|
648
648
|
|
|
649
649
|
declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
|
|
650
650
|
|
|
651
|
+
declare type DeserializedResponse = Array<Record<string, unknown>>;
|
|
652
|
+
|
|
651
653
|
export declare function deserializeJsonResponse(result: unknown): unknown;
|
|
652
654
|
|
|
655
|
+
export declare function deserializeRawResult(response: RawResponse): DeserializedResponse;
|
|
656
|
+
|
|
653
657
|
export declare type DevTypeMapDef = {
|
|
654
658
|
meta: {
|
|
655
659
|
modelProps: string;
|
|
@@ -875,6 +879,7 @@ export declare namespace DMMF {
|
|
|
875
879
|
createManyAndReturn?: string | null;
|
|
876
880
|
update?: string | null;
|
|
877
881
|
updateMany?: string | null;
|
|
882
|
+
updateManyAndReturn?: string | null;
|
|
878
883
|
upsert?: string | null;
|
|
879
884
|
delete?: string | null;
|
|
880
885
|
deleteMany?: string | null;
|
|
@@ -895,6 +900,7 @@ export declare namespace DMMF {
|
|
|
895
900
|
createManyAndReturn = "createManyAndReturn",
|
|
896
901
|
update = "update",
|
|
897
902
|
updateMany = "updateMany",
|
|
903
|
+
updateManyAndReturn = "updateManyAndReturn",
|
|
898
904
|
upsert = "upsert",
|
|
899
905
|
delete = "delete",
|
|
900
906
|
deleteMany = "deleteMany",
|
|
@@ -1446,7 +1452,9 @@ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions>
|
|
|
1446
1452
|
} ? O : K extends '_count' ? Count<P['objects']> : never;
|
|
1447
1453
|
} & (A extends {
|
|
1448
1454
|
include: any;
|
|
1449
|
-
} & Record<string, unknown> ? DefaultSelection<P, A
|
|
1455
|
+
} & Record<string, unknown> ? DefaultSelection<P, A & {
|
|
1456
|
+
omit: A['omit'];
|
|
1457
|
+
}, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
|
|
1450
1458
|
|
|
1451
1459
|
export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
|
|
1452
1460
|
by: string[];
|
|
@@ -1700,6 +1708,7 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
|
|
|
1700
1708
|
createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
|
|
1701
1709
|
update: GetFindResult<Payload, Args, ClientOptions>;
|
|
1702
1710
|
updateMany: GetBatchResult;
|
|
1711
|
+
updateManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
|
|
1703
1712
|
upsert: GetFindResult<Payload, Args, ClientOptions>;
|
|
1704
1713
|
delete: GetFindResult<Payload, Args, ClientOptions>;
|
|
1705
1714
|
deleteMany: GetBatchResult;
|
|
@@ -1950,7 +1959,7 @@ export declare type JsonQuery = {
|
|
|
1950
1959
|
query: JsonFieldSelection;
|
|
1951
1960
|
};
|
|
1952
1961
|
|
|
1953
|
-
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1962
|
+
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'updateManyAndReturn' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1954
1963
|
|
|
1955
1964
|
declare type JsonSelectionSet = {
|
|
1956
1965
|
$scalars?: boolean;
|
|
@@ -2237,7 +2246,7 @@ export { Omit_2 as Omit }
|
|
|
2237
2246
|
|
|
2238
2247
|
export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
|
|
2239
2248
|
|
|
2240
|
-
export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
2249
|
+
export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
2241
2250
|
|
|
2242
2251
|
export declare type OperationPayload = {
|
|
2243
2252
|
name: string;
|
|
@@ -2577,6 +2586,8 @@ declare type QueryEvent = {
|
|
|
2577
2586
|
|
|
2578
2587
|
declare type QueryEventType = 'query';
|
|
2579
2588
|
|
|
2589
|
+
declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
|
|
2590
|
+
|
|
2580
2591
|
declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
|
|
2581
2592
|
|
|
2582
2593
|
declare type QueryMiddlewareParams = {
|
|
@@ -2620,6 +2631,12 @@ export declare type RawParameters = {
|
|
|
2620
2631
|
|
|
2621
2632
|
export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
|
|
2622
2633
|
|
|
2634
|
+
declare type RawResponse = {
|
|
2635
|
+
columns: string[];
|
|
2636
|
+
types: QueryIntrospectionBuiltinType[];
|
|
2637
|
+
rows: unknown[][];
|
|
2638
|
+
};
|
|
2639
|
+
|
|
2623
2640
|
declare type RawTaggedValue = {
|
|
2624
2641
|
$type: 'Raw';
|
|
2625
2642
|
value: unknown;
|