@creator.co/creatorco-prisma-client 1.0.35 → 1.0.36-alpha-953b543
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/edge.js +12 -10
- package/index-browser.js +6 -4
- package/index.d.ts +4219 -761
- package/index.js +12 -10
- package/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/libquery_engine-darwin.dylib.node +0 -0
- package/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-1.0.x.so.node +0 -0
- package/libquery_engine-linux-arm64-openssl-3.0.x.so.node +0 -0
- package/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/package.json +1 -1
- package/query_engine-windows.dll.node +0 -0
- package/runtime/edge-esm.js +9 -9
- package/runtime/edge.js +9 -9
- package/runtime/index-browser.d.ts +1 -1
- package/runtime/library.d.ts +10 -6
- package/runtime/library.js +22 -22
- package/runtime/react-native.js +11 -11
- package/runtime/wasm.js +19 -19
- package/schema.prisma +182 -183
- package/wasm.js +6 -4
|
@@ -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' | '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' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
349
349
|
|
|
350
350
|
declare namespace Public {
|
|
351
351
|
export {
|
package/runtime/library.d.ts
CHANGED
|
@@ -780,6 +780,7 @@ export declare namespace DMMF {
|
|
|
780
780
|
findMany?: string | null;
|
|
781
781
|
create?: string | null;
|
|
782
782
|
createMany?: string | null;
|
|
783
|
+
createManyAndReturn?: string | null;
|
|
783
784
|
update?: string | null;
|
|
784
785
|
updateMany?: string | null;
|
|
785
786
|
upsert?: string | null;
|
|
@@ -799,6 +800,7 @@ export declare namespace DMMF {
|
|
|
799
800
|
findMany = "findMany",
|
|
800
801
|
create = "create",
|
|
801
802
|
createMany = "createMany",
|
|
803
|
+
createManyAndReturn = "createManyAndReturn",
|
|
802
804
|
update = "update",
|
|
803
805
|
updateMany = "updateMany",
|
|
804
806
|
upsert = "upsert",
|
|
@@ -1443,7 +1445,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1443
1445
|
*/
|
|
1444
1446
|
_transactionWithArray({ promises, options, }: {
|
|
1445
1447
|
promises: Array<PrismaPromise_2<any>>;
|
|
1446
|
-
options?: BatchTransactionOptions
|
|
1448
|
+
options?: BatchTransactionOptions;
|
|
1447
1449
|
}): Promise<any>;
|
|
1448
1450
|
/**
|
|
1449
1451
|
* Perform a long-running transaction
|
|
@@ -1453,7 +1455,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1453
1455
|
*/
|
|
1454
1456
|
_transactionWithCallback({ callback, options, }: {
|
|
1455
1457
|
callback: (client: Client) => Promise<unknown>;
|
|
1456
|
-
options?: Options
|
|
1458
|
+
options?: Options;
|
|
1457
1459
|
}): Promise<unknown>;
|
|
1458
1460
|
_createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
|
|
1459
1461
|
/**
|
|
@@ -1569,6 +1571,7 @@ export declare type GetResult<P extends OperationPayload, A, O extends Operation
|
|
|
1569
1571
|
findMany: GetFindResult<P, A>[];
|
|
1570
1572
|
create: GetFindResult<P, A>;
|
|
1571
1573
|
createMany: GetBatchResult;
|
|
1574
|
+
createManyAndReturn: GetFindResult<P, A>[];
|
|
1572
1575
|
update: GetFindResult<P, A>;
|
|
1573
1576
|
updateMany: GetBatchResult;
|
|
1574
1577
|
upsert: GetFindResult<P, A>;
|
|
@@ -1780,7 +1783,7 @@ declare type JsonQuery = {
|
|
|
1780
1783
|
query: JsonFieldSelection;
|
|
1781
1784
|
};
|
|
1782
1785
|
|
|
1783
|
-
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1786
|
+
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1784
1787
|
|
|
1785
1788
|
declare type JsonSelectionSet = {
|
|
1786
1789
|
$scalars?: boolean;
|
|
@@ -2090,7 +2093,7 @@ declare type Omit_2<T, K extends string | number | symbol> = {
|
|
|
2090
2093
|
};
|
|
2091
2094
|
export { Omit_2 as Omit }
|
|
2092
2095
|
|
|
2093
|
-
export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
2096
|
+
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';
|
|
2094
2097
|
|
|
2095
2098
|
export declare type OperationPayload = {
|
|
2096
2099
|
scalars: {
|
|
@@ -2955,12 +2958,13 @@ export declare class Sql {
|
|
|
2955
2958
|
readonly values: Value[];
|
|
2956
2959
|
readonly strings: string[];
|
|
2957
2960
|
constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
|
|
2958
|
-
get text(): string;
|
|
2959
2961
|
get sql(): string;
|
|
2960
2962
|
get statement(): string;
|
|
2963
|
+
get text(): string;
|
|
2961
2964
|
inspect(): {
|
|
2962
|
-
text: string;
|
|
2963
2965
|
sql: string;
|
|
2966
|
+
statement: string;
|
|
2967
|
+
text: string;
|
|
2964
2968
|
values: unknown[];
|
|
2965
2969
|
};
|
|
2966
2970
|
}
|