@helloao/cli 0.0.10 → 0.0.12
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/dist/cjs/cli.cjs +9939 -8987
- package/dist/cjs/index.cjs +16455 -0
- package/dist/esm/index.js +8105 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/types/actions.d.ts +10 -0
- package/dist/types/db.d.ts +2 -1
- package/dist/types/files.d.ts +2 -2
- package/dist/types/s3.d.ts +1 -1
- package/dist/types/uploads.d.ts +4 -0
- package/migrations/20241204173229_add_license_notes/migration.sql +5 -0
- package/migrations/20241204182154_add_book_intro_summaries/migration.sql +2 -0
- package/migrations/20241218211246_add_profiles/migration.sql +12 -0
- package/migrations/20241218211453_add_profile_references/migration.sql +6 -0
- package/node_modules/@zip.js/zip.js/.github/workflows/publish.yml +17 -0
- package/node_modules/@zip.js/zip.js/deno.json +10 -1
- package/node_modules/@zip.js/zip.js/dist/z-worker-fflate.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/z-worker-pako.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/z-worker.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-fs-full.js +274 -133
- package/node_modules/@zip.js/zip.js/dist/zip-fs-full.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-fs.js +274 -125
- package/node_modules/@zip.js/zip.js/dist/zip-fs.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-full.js +233 -122
- package/node_modules/@zip.js/zip.js/dist/zip-full.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-no-worker-deflate.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-no-worker-inflate.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip-no-worker.min.js +1 -1
- package/node_modules/@zip.js/zip.js/dist/zip.js +233 -114
- package/node_modules/@zip.js/zip.js/dist/zip.min.js +1 -1
- package/node_modules/@zip.js/zip.js/eslint.config.mjs +49 -0
- package/node_modules/@zip.js/zip.js/index-fflate.js +2 -1
- package/node_modules/@zip.js/zip.js/index.cjs +274 -133
- package/node_modules/@zip.js/zip.js/index.d.ts +254 -34
- package/node_modules/@zip.js/zip.js/index.js +3 -1
- package/node_modules/@zip.js/zip.js/index.min.js +1 -1
- package/node_modules/@zip.js/zip.js/lib/core/codec-pool.js +3 -1
- package/node_modules/@zip.js/zip.js/lib/core/codec-worker.js +11 -8
- package/node_modules/@zip.js/zip.js/lib/core/configuration.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/core/constants.js +8 -0
- package/node_modules/@zip.js/zip.js/lib/core/io.js +10 -3
- package/node_modules/@zip.js/zip.js/lib/core/streams/aes-crypto-stream.js +4 -3
- package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/deflate.js +0 -4
- package/node_modules/@zip.js/zip.js/lib/core/streams/codecs/inflate.js +0 -4
- package/node_modules/@zip.js/zip.js/lib/core/streams/crc32-stream.js +1 -0
- package/node_modules/@zip.js/zip.js/lib/core/streams/zip-entry-stream.js +4 -2
- package/node_modules/@zip.js/zip.js/lib/core/util/mime-type.js +0 -2
- package/node_modules/@zip.js/zip.js/lib/core/util/stream-codec-shim.js +4 -4
- package/node_modules/@zip.js/zip.js/lib/core/z-worker-core.js +4 -2
- package/node_modules/@zip.js/zip.js/lib/core/zip-entry.js +17 -5
- package/node_modules/@zip.js/zip.js/lib/core/zip-fs-core.js +41 -11
- package/node_modules/@zip.js/zip.js/lib/core/zip-reader.js +45 -23
- package/node_modules/@zip.js/zip.js/lib/core/zip-writer.js +147 -66
- package/node_modules/@zip.js/zip.js/lib/z-worker-inline-template.js +1 -1
- package/node_modules/@zip.js/zip.js/lib/z-worker-inline.js +1 -1
- package/node_modules/@zip.js/zip.js/lib/zip-data-uri.js +4 -1
- package/node_modules/@zip.js/zip.js/lib/zip-fs.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/zip-full-fflate.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/zip-full.js +2 -1
- package/node_modules/@zip.js/zip.js/lib/zip.js +2 -1
- package/node_modules/@zip.js/zip.js/package.json +121 -78
- package/package.json +14 -6
- package/prisma-gen/client.d.ts +1 -0
- package/prisma-gen/client.js +4 -0
- package/prisma-gen/default.d.ts +1 -1
- package/prisma-gen/edge.d.ts +1 -1
- package/prisma-gen/edge.js +30 -9
- package/prisma-gen/index-browser.js +25 -4
- package/prisma-gen/index.d.ts +3530 -1572
- package/prisma-gen/index.js +30 -9
- package/prisma-gen/runtime/edge-esm.js +21 -18
- package/prisma-gen/runtime/edge.js +21 -18
- package/prisma-gen/runtime/index-browser.d.ts +1 -1
- package/prisma-gen/runtime/index-browser.js +1 -1
- package/prisma-gen/runtime/library.d.ts +306 -71
- package/prisma-gen/runtime/library.js +70 -67
- package/prisma-gen/runtime/react-native.js +80 -0
- package/prisma-gen/runtime/wasm.js +22 -19
- package/prisma-gen/wasm.d.ts +1 -1
- package/prisma-gen/wasm.js +25 -4
- package/schema.prisma +27 -0
- package/node_modules/@zip.js/.ignored_zip.js +0 -0
|
@@ -23,6 +23,8 @@ declare type AccelerateEngineConfig = {
|
|
|
23
23
|
|
|
24
24
|
export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
|
|
25
25
|
|
|
26
|
+
declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres'>;
|
|
27
|
+
|
|
26
28
|
export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
|
|
27
29
|
|
|
28
30
|
export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args extends Record<string, any>, K extends PropertyKey> = Args extends {
|
|
@@ -36,6 +38,10 @@ export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args exte
|
|
|
36
38
|
declare class AnyNull extends NullTypesEnumValue {
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
export declare type ApplyOmit<T, OmitConfig> = Compute<{
|
|
42
|
+
[K in keyof T as OmitValue<OmitConfig, K> extends true ? never : K]: T[K];
|
|
43
|
+
}>;
|
|
44
|
+
|
|
39
45
|
export declare type Args<T, F extends Operation> = T extends {
|
|
40
46
|
[K: symbol]: {
|
|
41
47
|
types: {
|
|
@@ -50,6 +56,13 @@ export declare type Args<T, F extends Operation> = T extends {
|
|
|
50
56
|
|
|
51
57
|
export declare type Args_3<T, F extends Operation> = Args<T, F>;
|
|
52
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Original `quaint::ValueType` enum tag from Prisma's `quaint`.
|
|
61
|
+
* Query arguments marked with this type are sanitized before being sent to the database.
|
|
62
|
+
* Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
|
|
63
|
+
*/
|
|
64
|
+
declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
|
|
65
|
+
|
|
53
66
|
/**
|
|
54
67
|
* Attributes is a map from string to attribute values.
|
|
55
68
|
*
|
|
@@ -66,7 +79,9 @@ declare interface Attributes {
|
|
|
66
79
|
*/
|
|
67
80
|
declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
68
81
|
|
|
69
|
-
export declare type BaseDMMF =
|
|
82
|
+
export declare type BaseDMMF = {
|
|
83
|
+
readonly datamodel: Omit<DMMF.Datamodel, 'indexes'>;
|
|
84
|
+
};
|
|
70
85
|
|
|
71
86
|
declare type BatchArgs = {
|
|
72
87
|
queries: BatchQuery[];
|
|
@@ -126,7 +141,20 @@ export declare type ClientArgs = {
|
|
|
126
141
|
client: ClientArg;
|
|
127
142
|
};
|
|
128
143
|
|
|
129
|
-
export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never>;
|
|
144
|
+
export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never, never>;
|
|
145
|
+
|
|
146
|
+
export declare type ClientOptionDef = undefined | {
|
|
147
|
+
[K in string]: any;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export declare type ClientOtherOps = {
|
|
151
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<T>;
|
|
152
|
+
$queryRawTyped<T>(query: TypedSql<unknown[], T>): PrismaPromise<T[]>;
|
|
153
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<T>;
|
|
154
|
+
$executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<number>;
|
|
155
|
+
$executeRawUnsafe(query: string, ...values: any[]): PrismaPromise<number>;
|
|
156
|
+
$runCommandRaw(command: InputJsonObject): PrismaPromise<JsonObject>;
|
|
157
|
+
};
|
|
130
158
|
|
|
131
159
|
declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
|
|
132
160
|
|
|
@@ -185,8 +213,11 @@ declare type ComputedFieldsMap = {
|
|
|
185
213
|
|
|
186
214
|
declare type ConnectionInfo = {
|
|
187
215
|
schemaName?: string;
|
|
216
|
+
maxBindValues?: number;
|
|
188
217
|
};
|
|
189
218
|
|
|
219
|
+
declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
|
|
220
|
+
|
|
190
221
|
declare interface Context {
|
|
191
222
|
/**
|
|
192
223
|
* Get a value from the context.
|
|
@@ -574,9 +605,13 @@ export declare interface DecimalJsLike {
|
|
|
574
605
|
|
|
575
606
|
export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>;
|
|
576
607
|
|
|
577
|
-
export declare type DefaultSelection<
|
|
578
|
-
|
|
579
|
-
}
|
|
608
|
+
export declare type DefaultSelection<Payload extends OperationPayload, Args = {}, ClientOptions = {}> = Args extends {
|
|
609
|
+
omit: infer LocalOmit;
|
|
610
|
+
} ? ApplyOmit<UnwrapPayload<{
|
|
611
|
+
default: Payload;
|
|
612
|
+
}>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>> : ApplyOmit<UnwrapPayload<{
|
|
613
|
+
default: Payload;
|
|
614
|
+
}>['default'], ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>;
|
|
580
615
|
|
|
581
616
|
export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void;
|
|
582
617
|
|
|
@@ -584,6 +619,8 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
|
|
|
584
619
|
|
|
585
620
|
declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
|
|
586
621
|
|
|
622
|
+
export declare function deserializeJsonResponse(result: unknown): unknown;
|
|
623
|
+
|
|
587
624
|
export declare type DevTypeMapDef = {
|
|
588
625
|
meta: {
|
|
589
626
|
modelProps: string;
|
|
@@ -639,6 +676,7 @@ export declare namespace DMMF {
|
|
|
639
676
|
models: Model[];
|
|
640
677
|
enums: DatamodelEnum[];
|
|
641
678
|
types: Model[];
|
|
679
|
+
indexes: Index[];
|
|
642
680
|
}>;
|
|
643
681
|
export type uniqueIndex = ReadonlyDeep_2<{
|
|
644
682
|
name: string;
|
|
@@ -690,6 +728,24 @@ export declare namespace DMMF {
|
|
|
690
728
|
args: any[];
|
|
691
729
|
}>;
|
|
692
730
|
export type FieldDefaultScalar = string | boolean | number;
|
|
731
|
+
export type Index = ReadonlyDeep_2<{
|
|
732
|
+
model: string;
|
|
733
|
+
type: IndexType;
|
|
734
|
+
isDefinedOnField: boolean;
|
|
735
|
+
name?: string;
|
|
736
|
+
dbName?: string;
|
|
737
|
+
algorithm?: string;
|
|
738
|
+
clustered?: boolean;
|
|
739
|
+
fields: IndexField[];
|
|
740
|
+
}>;
|
|
741
|
+
export type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
|
|
742
|
+
export type IndexField = ReadonlyDeep_2<{
|
|
743
|
+
name: string;
|
|
744
|
+
sortOrder?: SortOrder;
|
|
745
|
+
length?: number;
|
|
746
|
+
operatorClass?: string;
|
|
747
|
+
}>;
|
|
748
|
+
export type SortOrder = 'asc' | 'desc';
|
|
693
749
|
export type Schema = ReadonlyDeep_2<{
|
|
694
750
|
rootQueryType?: string;
|
|
695
751
|
rootMutationType?: string;
|
|
@@ -780,6 +836,7 @@ export declare namespace DMMF {
|
|
|
780
836
|
findMany?: string | null;
|
|
781
837
|
create?: string | null;
|
|
782
838
|
createMany?: string | null;
|
|
839
|
+
createManyAndReturn?: string | null;
|
|
783
840
|
update?: string | null;
|
|
784
841
|
updateMany?: string | null;
|
|
785
842
|
upsert?: string | null;
|
|
@@ -799,6 +856,7 @@ export declare namespace DMMF {
|
|
|
799
856
|
findMany = "findMany",
|
|
800
857
|
create = "create",
|
|
801
858
|
createMany = "createMany",
|
|
859
|
+
createManyAndReturn = "createManyAndReturn",
|
|
802
860
|
update = "update",
|
|
803
861
|
updateMany = "updateMany",
|
|
804
862
|
upsert = "upsert",
|
|
@@ -812,11 +870,13 @@ export declare namespace DMMF {
|
|
|
812
870
|
}
|
|
813
871
|
}
|
|
814
872
|
|
|
873
|
+
export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
|
|
874
|
+
|
|
815
875
|
export declare interface DriverAdapter extends Queryable {
|
|
816
876
|
/**
|
|
817
877
|
* Starts new transaction.
|
|
818
878
|
*/
|
|
819
|
-
|
|
879
|
+
transactionContext(): Promise<Result_4<TransactionContext>>;
|
|
820
880
|
/**
|
|
821
881
|
* Optional method that returns extra connection info
|
|
822
882
|
*/
|
|
@@ -824,36 +884,38 @@ export declare interface DriverAdapter extends Queryable {
|
|
|
824
884
|
}
|
|
825
885
|
|
|
826
886
|
/** Client */
|
|
827
|
-
export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
|
887
|
+
export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
|
|
828
888
|
[P in keyof C_]: unknown;
|
|
829
889
|
} & {
|
|
830
890
|
[K: symbol]: {
|
|
831
|
-
ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList> & {
|
|
832
|
-
$parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>;
|
|
891
|
+
ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList> & {
|
|
892
|
+
$parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>;
|
|
833
893
|
};
|
|
834
894
|
};
|
|
835
895
|
};
|
|
836
896
|
|
|
837
|
-
export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
|
897
|
+
export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
|
|
838
898
|
[P in keyof ExtArgs['client']]: Return<ExtArgs['client'][P]>;
|
|
839
899
|
} & {
|
|
840
|
-
[P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs>;
|
|
900
|
+
[P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs, ClientOptions>;
|
|
841
901
|
} & {
|
|
842
|
-
[P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]:
|
|
902
|
+
[P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never;
|
|
843
903
|
} & {
|
|
844
|
-
[P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs>[P];
|
|
904
|
+
[P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs, ClientOptions>[P];
|
|
845
905
|
} & {
|
|
846
906
|
[K: symbol]: {
|
|
847
907
|
types: TypeMap['other'];
|
|
848
908
|
};
|
|
849
909
|
};
|
|
850
910
|
|
|
851
|
-
export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
|
852
|
-
$extends: ExtendsHook<'extends', TypeMapCb, ExtArgs
|
|
911
|
+
export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
|
|
912
|
+
$extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call<TypeMapCb, {
|
|
913
|
+
extArgs: ExtArgs;
|
|
914
|
+
}>, ClientOptions>;
|
|
853
915
|
$transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
854
916
|
isolationLevel?: TypeMap['meta']['txIsolationLevel'];
|
|
855
917
|
}): Promise<UnwrapTuple<P>>;
|
|
856
|
-
$transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>) => Promise<R>, options?: {
|
|
918
|
+
$transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>) => Promise<R>, options?: {
|
|
857
919
|
maxWait?: number;
|
|
858
920
|
timeout?: number;
|
|
859
921
|
isolationLevel?: TypeMap['meta']['txIsolationLevel'];
|
|
@@ -863,7 +925,7 @@ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef
|
|
|
863
925
|
};
|
|
864
926
|
|
|
865
927
|
/** Model */
|
|
866
|
-
export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
|
928
|
+
export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
|
|
867
929
|
[K in keyof M_]: K extends '$allModels' ? {
|
|
868
930
|
[P in keyof M_[K]]?: unknown;
|
|
869
931
|
} & {
|
|
@@ -872,8 +934,8 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
|
|
|
872
934
|
[P in keyof M_[K]]?: unknown;
|
|
873
935
|
} & {
|
|
874
936
|
[K: symbol]: {
|
|
875
|
-
ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs> & {
|
|
876
|
-
$parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>;
|
|
937
|
+
ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs, ClientOptions> & {
|
|
938
|
+
$parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>;
|
|
877
939
|
} & {
|
|
878
940
|
$name: ModelKey<TypeMap, K>;
|
|
879
941
|
} & {
|
|
@@ -886,26 +948,26 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
|
|
|
886
948
|
} : never;
|
|
887
949
|
};
|
|
888
950
|
|
|
889
|
-
export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null> = {
|
|
951
|
+
export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null, ClientOptions> = {
|
|
890
952
|
[K in keyof TypeMap['model'][M]['payload']['objects']]: <A>(args?: Exact<A, Path<TypeMap['model'][M]['operations'][P]['args']['select'], [K]>>) => PrismaPromise<Path<DynamicModelExtensionFnResultBase<TypeMap, M, {
|
|
891
953
|
select: {
|
|
892
954
|
[P in K]: A;
|
|
893
955
|
};
|
|
894
|
-
}, P>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null
|
|
956
|
+
}, P, ClientOptions>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>, ClientOptions>;
|
|
895
957
|
};
|
|
896
958
|
|
|
897
|
-
export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null
|
|
959
|
+
export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null, ClientOptions> = P extends FluentOperation ? DynamicModelExtensionFluentApi<TypeMap, M, P, Null, ClientOptions> & PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P, ClientOptions> | Null> : PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P, ClientOptions>>;
|
|
898
960
|
|
|
899
|
-
export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation>;
|
|
961
|
+
export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, ClientOptions> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation, ClientOptions>;
|
|
900
962
|
|
|
901
963
|
export declare type DynamicModelExtensionFnResultNull<P extends PropertyKey> = P extends 'findUnique' | 'findFirst' ? null : never;
|
|
902
964
|
|
|
903
|
-
export declare type DynamicModelExtensionOperationFn<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey> = {} extends TypeMap['model'][M]['operations'][P]['args'] ? <A extends TypeMap['model'][M]['operations'][P]['args']>(args?: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P> : <A extends TypeMap['model'][M]['operations'][P]['args']>(args: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P>;
|
|
965
|
+
export declare type DynamicModelExtensionOperationFn<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, ClientOptions> = {} extends TypeMap['model'][M]['operations'][P]['args'] ? <A extends TypeMap['model'][M]['operations'][P]['args']>(args?: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>, ClientOptions> : <A extends TypeMap['model'][M]['operations'][P]['args']>(args: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>, ClientOptions>;
|
|
904
966
|
|
|
905
|
-
export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any
|
|
967
|
+
export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>, ClientOptions> = {
|
|
906
968
|
[P in keyof ExtArgs['model'][Uncapitalize<M & string>]]: Return<ExtArgs['model'][Uncapitalize<M & string>][P]>;
|
|
907
969
|
} & {
|
|
908
|
-
[P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P>;
|
|
970
|
+
[P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P, ClientOptions>;
|
|
909
971
|
} & {
|
|
910
972
|
[P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize<M & string>]>]: TypeMap['model'][M]['fields'];
|
|
911
973
|
} & {
|
|
@@ -953,7 +1015,7 @@ export declare type DynamicResultExtensionArgs<R_, TypeMap extends TypeMapDef> =
|
|
|
953
1015
|
|
|
954
1016
|
export declare type DynamicResultExtensionData<TypeMap extends TypeMapDef, M extends PropertyKey, S> = GetFindResult<TypeMap['model'][M]['payload'], {
|
|
955
1017
|
select: S;
|
|
956
|
-
}>;
|
|
1018
|
+
}, {}>;
|
|
957
1019
|
|
|
958
1020
|
export declare type DynamicResultExtensionNeeds<TypeMap extends TypeMapDef, M extends PropertyKey, S> = {
|
|
959
1021
|
[K in keyof S]: K extends keyof TypeMap['model'][M]['payload']['scalars'] ? S[K] : never;
|
|
@@ -982,6 +1044,7 @@ declare interface Engine<InteractiveTransactionPayload = unknown> {
|
|
|
982
1044
|
transaction(action: 'rollback', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
|
|
983
1045
|
metrics(options: MetricsOptionsJson): Promise<Metrics>;
|
|
984
1046
|
metrics(options: MetricsOptionsPrometheus): Promise<string>;
|
|
1047
|
+
applyPendingMigrations(): Promise<void>;
|
|
985
1048
|
}
|
|
986
1049
|
|
|
987
1050
|
declare interface EngineConfig {
|
|
@@ -1078,6 +1141,7 @@ declare type EngineSpan = {
|
|
|
1078
1141
|
trace_id: string;
|
|
1079
1142
|
span_id: string;
|
|
1080
1143
|
}[];
|
|
1144
|
+
kind: EngineSpanKind;
|
|
1081
1145
|
};
|
|
1082
1146
|
|
|
1083
1147
|
declare type EngineSpanEvent = {
|
|
@@ -1085,6 +1149,13 @@ declare type EngineSpanEvent = {
|
|
|
1085
1149
|
spans: EngineSpan[];
|
|
1086
1150
|
};
|
|
1087
1151
|
|
|
1152
|
+
declare type EngineSpanKind = 'client' | 'internal';
|
|
1153
|
+
|
|
1154
|
+
declare type EnvPaths = {
|
|
1155
|
+
rootEnvPath: string | null;
|
|
1156
|
+
schemaEnvPath: string | undefined;
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1088
1159
|
declare interface EnvValue {
|
|
1089
1160
|
fromEnvVar: null | string;
|
|
1090
1161
|
value: null | string;
|
|
@@ -1188,7 +1259,7 @@ declare type ExtendedSpanOptions = SpanOptions & {
|
|
|
1188
1259
|
/** $extends, defineExtension */
|
|
1189
1260
|
export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, TypeMap extends TypeMapDef = Call<TypeMapCb, {
|
|
1190
1261
|
extArgs: ExtArgs;
|
|
1191
|
-
}
|
|
1262
|
+
}>, ClientOptions = {}> {
|
|
1192
1263
|
extArgs: ExtArgs;
|
|
1193
1264
|
<R_ extends {
|
|
1194
1265
|
[K in TypeMap['meta']['modelProps'] | '$allModels']?: unknown;
|
|
@@ -1198,7 +1269,7 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
|
|
|
1198
1269
|
[K in TypeMap['meta']['modelProps'] | '$allModels' | keyof TypeMap['other']['operations'] | '$allOperations']?: unknown;
|
|
1199
1270
|
}, C_ extends {
|
|
1200
1271
|
[K in string]?: unknown;
|
|
1201
|
-
}, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>) => {
|
|
1272
|
+
}, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>) => {
|
|
1202
1273
|
$extends: {
|
|
1203
1274
|
extArgs: Args;
|
|
1204
1275
|
};
|
|
@@ -1206,12 +1277,12 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
|
|
|
1206
1277
|
name?: string;
|
|
1207
1278
|
query?: DynamicQueryExtensionArgs<Q_, TypeMap>;
|
|
1208
1279
|
result?: DynamicResultExtensionArgs<R_, TypeMap> & R;
|
|
1209
|
-
model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs> & M;
|
|
1210
|
-
client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs> & C;
|
|
1280
|
+
model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & M;
|
|
1281
|
+
client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & C;
|
|
1211
1282
|
}): {
|
|
1212
1283
|
extends: DynamicClientExtensionThis<Call<TypeMapCb, {
|
|
1213
1284
|
extArgs: MergedArgs;
|
|
1214
|
-
}>, TypeMapCb, MergedArgs>;
|
|
1285
|
+
}>, TypeMapCb, MergedArgs, ClientOptions>;
|
|
1215
1286
|
define: (client: any) => {
|
|
1216
1287
|
$extends: {
|
|
1217
1288
|
extArgs: Args;
|
|
@@ -1234,8 +1305,11 @@ declare namespace Extensions_2 {
|
|
|
1234
1305
|
export {
|
|
1235
1306
|
InternalArgs,
|
|
1236
1307
|
DefaultArgs,
|
|
1308
|
+
GetPayloadResultExtensionKeys,
|
|
1309
|
+
GetPayloadResultExtensionObject,
|
|
1237
1310
|
GetPayloadResult,
|
|
1238
1311
|
GetSelect,
|
|
1312
|
+
GetOmit,
|
|
1239
1313
|
DynamicQueryExtensionArgs,
|
|
1240
1314
|
DynamicQueryExtensionCb,
|
|
1241
1315
|
DynamicQueryExtensionCbArgs,
|
|
@@ -1260,12 +1334,20 @@ declare namespace Extensions_2 {
|
|
|
1260
1334
|
TypeMapDef,
|
|
1261
1335
|
DevTypeMapDef,
|
|
1262
1336
|
DevTypeMapFnDef,
|
|
1337
|
+
ClientOptionDef,
|
|
1338
|
+
ClientOtherOps,
|
|
1263
1339
|
TypeMapCbDef,
|
|
1264
1340
|
ModelKey,
|
|
1265
1341
|
RequiredExtensionArgs as UserArgs
|
|
1266
1342
|
}
|
|
1267
1343
|
}
|
|
1268
1344
|
|
|
1345
|
+
export declare type ExtractGlobalOmit<Options, ModelName extends string> = Options extends {
|
|
1346
|
+
omit: {
|
|
1347
|
+
[K in ModelName]: infer GlobalOmit;
|
|
1348
|
+
};
|
|
1349
|
+
} ? GlobalOmit : {};
|
|
1350
|
+
|
|
1269
1351
|
declare type Fetch = typeof nodeFetch;
|
|
1270
1352
|
|
|
1271
1353
|
/**
|
|
@@ -1304,6 +1386,8 @@ declare interface GeneratorConfig {
|
|
|
1304
1386
|
};
|
|
1305
1387
|
binaryTargets: BinaryTargetsEnvValue[];
|
|
1306
1388
|
previewFeatures: string[];
|
|
1389
|
+
envPaths?: EnvPaths;
|
|
1390
|
+
sourceFilePath: string;
|
|
1307
1391
|
}
|
|
1308
1392
|
|
|
1309
1393
|
export declare type GetAggregateResult<P extends OperationPayload, A> = {
|
|
@@ -1324,19 +1408,19 @@ export declare type GetCountResult<A> = A extends {
|
|
|
1324
1408
|
|
|
1325
1409
|
declare function getExtensionContext<T>(that: T): Context_2<T>;
|
|
1326
1410
|
|
|
1327
|
-
export declare type GetFindResult<P extends OperationPayload, A> = Equals<A, any> extends 1 ? DefaultSelection<P> : A extends {
|
|
1411
|
+
export declare type GetFindResult<P extends OperationPayload, A, ClientOptions> = Equals<A, any> extends 1 ? DefaultSelection<P, A, ClientOptions> : A extends {
|
|
1328
1412
|
select: infer S extends object;
|
|
1329
1413
|
} & Record<string, unknown> | {
|
|
1330
1414
|
include: infer I extends object;
|
|
1331
1415
|
} & Record<string, unknown> ? {
|
|
1332
|
-
[K in keyof S | keyof I as (S & I)[K] extends false | undefined | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K]>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K]> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K]>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O> | SelectField<P, K> & null : never : P extends {
|
|
1416
|
+
[K in keyof S | keyof I as (S & I)[K] extends false | undefined | Skip | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K], ClientOptions>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions> | SelectField<P, K> & null : never : P extends {
|
|
1333
1417
|
scalars: {
|
|
1334
1418
|
[k in K]: infer O;
|
|
1335
1419
|
};
|
|
1336
1420
|
} ? O : K extends '_count' ? Count<P['objects']> : never;
|
|
1337
1421
|
} & (A extends {
|
|
1338
1422
|
include: any;
|
|
1339
|
-
} & Record<string, unknown> ? DefaultSelection<P> : unknown) : DefaultSelection<P>;
|
|
1423
|
+
} & Record<string, unknown> ? DefaultSelection<P, A, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
|
|
1340
1424
|
|
|
1341
1425
|
export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
|
|
1342
1426
|
by: string[];
|
|
@@ -1348,10 +1432,18 @@ export declare type GetGroupByResult<P extends OperationPayload, A> = A extends
|
|
|
1348
1432
|
[K in A['by']]: P['scalars'][K];
|
|
1349
1433
|
}> : {}[];
|
|
1350
1434
|
|
|
1351
|
-
export declare type
|
|
1352
|
-
[K in
|
|
1435
|
+
export declare type GetOmit<BaseKeys extends string, R extends InternalArgs['result'][string], ExtraType = never> = {
|
|
1436
|
+
[K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean | ExtraType;
|
|
1437
|
+
};
|
|
1438
|
+
|
|
1439
|
+
export declare type GetPayloadResult<Base extends Record<any, any>, R extends InternalArgs['result'][string]> = Omit<Base, GetPayloadResultExtensionKeys<R>> & GetPayloadResultExtensionObject<R>;
|
|
1440
|
+
|
|
1441
|
+
export declare type GetPayloadResultExtensionKeys<R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = KR;
|
|
1442
|
+
|
|
1443
|
+
export declare type GetPayloadResultExtensionObject<R extends InternalArgs['result'][string]> = {
|
|
1444
|
+
[K in GetPayloadResultExtensionKeys<R>]: R[K] extends () => {
|
|
1353
1445
|
compute: (...args: any) => infer C;
|
|
1354
|
-
} ? C : never
|
|
1446
|
+
} ? C : never;
|
|
1355
1447
|
};
|
|
1356
1448
|
|
|
1357
1449
|
export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
@@ -1370,6 +1462,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1370
1462
|
_middlewares: MiddlewareHandler<QueryMiddleware>;
|
|
1371
1463
|
_previewFeatures: string[];
|
|
1372
1464
|
_activeProvider: string;
|
|
1465
|
+
_globalOmit?: GlobalOmitOptions | undefined;
|
|
1373
1466
|
_extensions: MergedExtensionsList;
|
|
1374
1467
|
_engine: Engine;
|
|
1375
1468
|
/**
|
|
@@ -1421,7 +1514,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1421
1514
|
/**
|
|
1422
1515
|
* Executes a raw query and returns selected data
|
|
1423
1516
|
*/
|
|
1424
|
-
$queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>): Promise<
|
|
1517
|
+
$queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>): Promise<any>;
|
|
1425
1518
|
/**
|
|
1426
1519
|
* Executes a raw query provided through a safe tag function
|
|
1427
1520
|
* @see https://github.com/prisma/prisma/issues/7142
|
|
@@ -1431,6 +1524,11 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1431
1524
|
* @returns
|
|
1432
1525
|
*/
|
|
1433
1526
|
$queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Counterpart to $queryRaw, that returns strongly typed results
|
|
1529
|
+
* @param typedSql
|
|
1530
|
+
*/
|
|
1531
|
+
$queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
|
|
1434
1532
|
/**
|
|
1435
1533
|
* Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
|
|
1436
1534
|
* @see https://github.com/prisma/prisma/issues/7142
|
|
@@ -1447,7 +1545,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1447
1545
|
*/
|
|
1448
1546
|
_transactionWithArray({ promises, options, }: {
|
|
1449
1547
|
promises: Array<PrismaPromise_2<any>>;
|
|
1450
|
-
options?: BatchTransactionOptions
|
|
1548
|
+
options?: BatchTransactionOptions;
|
|
1451
1549
|
}): Promise<any>;
|
|
1452
1550
|
/**
|
|
1453
1551
|
* Perform a long-running transaction
|
|
@@ -1457,7 +1555,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1457
1555
|
*/
|
|
1458
1556
|
_transactionWithCallback({ callback, options, }: {
|
|
1459
1557
|
callback: (client: Client) => Promise<unknown>;
|
|
1460
|
-
options?: Options
|
|
1558
|
+
options?: Options;
|
|
1461
1559
|
}): Promise<unknown>;
|
|
1462
1560
|
_createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
|
|
1463
1561
|
/**
|
|
@@ -1481,6 +1579,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1481
1579
|
* @returns
|
|
1482
1580
|
*/
|
|
1483
1581
|
_hasPreviewFlag(feature: string): boolean;
|
|
1582
|
+
$applyPendingMigrations(): Promise<void>;
|
|
1484
1583
|
$extends: typeof $extends;
|
|
1485
1584
|
readonly [Symbol.toStringTag]: string;
|
|
1486
1585
|
};
|
|
@@ -1504,7 +1603,7 @@ declare type GetPrismaClientConfig = {
|
|
|
1504
1603
|
clientVersion: string;
|
|
1505
1604
|
engineVersion: string;
|
|
1506
1605
|
datasourceNames: string[];
|
|
1507
|
-
activeProvider:
|
|
1606
|
+
activeProvider: ActiveConnectorType;
|
|
1508
1607
|
/**
|
|
1509
1608
|
* The contents of the schema encoded into a string
|
|
1510
1609
|
* @remarks only used for the purpose of data proxy
|
|
@@ -1564,30 +1663,32 @@ declare type GetPrismaClientConfig = {
|
|
|
1564
1663
|
engineWasm?: WasmLoadingConfig;
|
|
1565
1664
|
};
|
|
1566
1665
|
|
|
1567
|
-
export declare type GetResult<
|
|
1568
|
-
findUnique: GetFindResult<
|
|
1569
|
-
findUniqueOrThrow: GetFindResult<
|
|
1570
|
-
findFirst: GetFindResult<
|
|
1571
|
-
findFirstOrThrow: GetFindResult<
|
|
1572
|
-
findMany: GetFindResult<
|
|
1573
|
-
create: GetFindResult<
|
|
1666
|
+
export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', ClientOptions = {}> = {
|
|
1667
|
+
findUnique: GetFindResult<Payload, Args, ClientOptions> | null;
|
|
1668
|
+
findUniqueOrThrow: GetFindResult<Payload, Args, ClientOptions>;
|
|
1669
|
+
findFirst: GetFindResult<Payload, Args, ClientOptions> | null;
|
|
1670
|
+
findFirstOrThrow: GetFindResult<Payload, Args, ClientOptions>;
|
|
1671
|
+
findMany: GetFindResult<Payload, Args, ClientOptions>[];
|
|
1672
|
+
create: GetFindResult<Payload, Args, ClientOptions>;
|
|
1574
1673
|
createMany: GetBatchResult;
|
|
1575
|
-
|
|
1674
|
+
createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
|
|
1675
|
+
update: GetFindResult<Payload, Args, ClientOptions>;
|
|
1576
1676
|
updateMany: GetBatchResult;
|
|
1577
|
-
upsert: GetFindResult<
|
|
1578
|
-
delete: GetFindResult<
|
|
1677
|
+
upsert: GetFindResult<Payload, Args, ClientOptions>;
|
|
1678
|
+
delete: GetFindResult<Payload, Args, ClientOptions>;
|
|
1579
1679
|
deleteMany: GetBatchResult;
|
|
1580
|
-
aggregate: GetAggregateResult<
|
|
1581
|
-
count: GetCountResult<
|
|
1582
|
-
groupBy: GetGroupByResult<
|
|
1680
|
+
aggregate: GetAggregateResult<Payload, Args>;
|
|
1681
|
+
count: GetCountResult<Args>;
|
|
1682
|
+
groupBy: GetGroupByResult<Payload, Args>;
|
|
1583
1683
|
$queryRaw: unknown;
|
|
1684
|
+
$queryRawTyped: unknown;
|
|
1584
1685
|
$executeRaw: number;
|
|
1585
1686
|
$queryRawUnsafe: unknown;
|
|
1586
1687
|
$executeRawUnsafe: number;
|
|
1587
1688
|
$runCommandRaw: JsonObject;
|
|
1588
1689
|
findRaw: JsonObject;
|
|
1589
1690
|
aggregateRaw: JsonObject;
|
|
1590
|
-
}[
|
|
1691
|
+
}[OperationName];
|
|
1591
1692
|
|
|
1592
1693
|
export declare function getRuntime(): GetRuntimeOutput;
|
|
1593
1694
|
|
|
@@ -1601,6 +1702,12 @@ export declare type GetSelect<Base extends Record<any, any>, R extends InternalA
|
|
|
1601
1702
|
[K in KR | keyof Base]?: K extends KR ? boolean : Base[K];
|
|
1602
1703
|
};
|
|
1603
1704
|
|
|
1705
|
+
declare type GlobalOmitOptions = {
|
|
1706
|
+
[modelName: string]: {
|
|
1707
|
+
[fieldName: string]: boolean;
|
|
1708
|
+
};
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1604
1711
|
declare type HandleErrorParams = {
|
|
1605
1712
|
args: JsArgs;
|
|
1606
1713
|
error: any;
|
|
@@ -1608,6 +1715,7 @@ declare type HandleErrorParams = {
|
|
|
1608
1715
|
callsite?: CallSite;
|
|
1609
1716
|
transaction?: PrismaPromiseTransaction;
|
|
1610
1717
|
modelName?: string;
|
|
1718
|
+
globalOmit?: GlobalOmitOptions;
|
|
1611
1719
|
};
|
|
1612
1720
|
|
|
1613
1721
|
/**
|
|
@@ -1624,6 +1732,38 @@ declare type HandleErrorParams = {
|
|
|
1624
1732
|
*/
|
|
1625
1733
|
declare type HrTime = [number, number];
|
|
1626
1734
|
|
|
1735
|
+
/**
|
|
1736
|
+
* Matches a JSON array.
|
|
1737
|
+
* Unlike \`JsonArray\`, readonly arrays are assignable to this type.
|
|
1738
|
+
*/
|
|
1739
|
+
export declare interface InputJsonArray extends ReadonlyArray<InputJsonValue | null> {
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* Matches a JSON object.
|
|
1744
|
+
* Unlike \`JsonObject\`, this type allows undefined and read-only properties.
|
|
1745
|
+
*/
|
|
1746
|
+
export declare type InputJsonObject = {
|
|
1747
|
+
readonly [Key in string]?: InputJsonValue | null;
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* Matches any valid value that can be used as an input for operations like
|
|
1752
|
+
* create and update as the value of a JSON field. Unlike \`JsonValue\`, this
|
|
1753
|
+
* type allows read-only arrays and read-only object properties and disallows
|
|
1754
|
+
* \`null\` at the top level.
|
|
1755
|
+
*
|
|
1756
|
+
* \`null\` cannot be used as the value of a JSON field because its meaning
|
|
1757
|
+
* would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or
|
|
1758
|
+
* \`Prisma.DbNull\` to clear the JSON value and set the field to the database
|
|
1759
|
+
* NULL value instead.
|
|
1760
|
+
*
|
|
1761
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values
|
|
1762
|
+
*/
|
|
1763
|
+
export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | {
|
|
1764
|
+
toJSON(): unknown;
|
|
1765
|
+
};
|
|
1766
|
+
|
|
1627
1767
|
declare type InteractiveTransactionInfo<Payload = unknown> = {
|
|
1628
1768
|
/**
|
|
1629
1769
|
* Transaction ID returned by the query engine.
|
|
@@ -1707,6 +1847,10 @@ declare enum IsolationLevel {
|
|
|
1707
1847
|
Serializable = "Serializable"
|
|
1708
1848
|
}
|
|
1709
1849
|
|
|
1850
|
+
declare function isSkip(value: unknown): value is Skip;
|
|
1851
|
+
|
|
1852
|
+
export declare function isTypedSql(value: unknown): value is UnknownTypedSql;
|
|
1853
|
+
|
|
1710
1854
|
export declare type ITXClientDenyList = (typeof denylist)[number];
|
|
1711
1855
|
|
|
1712
1856
|
export declare const itxClientDenyList: readonly (string | symbol)[];
|
|
@@ -1725,10 +1869,11 @@ export declare function join(values: readonly RawValue[], separator?: string, pr
|
|
|
1725
1869
|
export declare type JsArgs = {
|
|
1726
1870
|
select?: Selection_2;
|
|
1727
1871
|
include?: Selection_2;
|
|
1872
|
+
omit?: Omission;
|
|
1728
1873
|
[argName: string]: JsInputValue;
|
|
1729
1874
|
};
|
|
1730
1875
|
|
|
1731
|
-
export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] | {
|
|
1876
|
+
export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] | Skip | {
|
|
1732
1877
|
[key: string]: JsInputValue;
|
|
1733
1878
|
};
|
|
1734
1879
|
|
|
@@ -1736,10 +1881,14 @@ declare type JsonArgumentValue = number | string | boolean | null | RawTaggedVal
|
|
|
1736
1881
|
[key: string]: JsonArgumentValue;
|
|
1737
1882
|
};
|
|
1738
1883
|
|
|
1884
|
+
/**
|
|
1885
|
+
* From https://github.com/sindresorhus/type-fest/
|
|
1886
|
+
* Matches a JSON array.
|
|
1887
|
+
*/
|
|
1739
1888
|
export declare interface JsonArray extends Array<JsonValue> {
|
|
1740
1889
|
}
|
|
1741
1890
|
|
|
1742
|
-
declare type JsonBatchQuery = {
|
|
1891
|
+
export declare type JsonBatchQuery = {
|
|
1743
1892
|
batch: JsonQuery[];
|
|
1744
1893
|
transaction?: {
|
|
1745
1894
|
isolationLevel?: Transaction_2.IsolationLevel;
|
|
@@ -1758,17 +1907,22 @@ declare type JsonFieldSelection = {
|
|
|
1758
1907
|
declare class JsonNull extends NullTypesEnumValue {
|
|
1759
1908
|
}
|
|
1760
1909
|
|
|
1910
|
+
/**
|
|
1911
|
+
* From https://github.com/sindresorhus/type-fest/
|
|
1912
|
+
* Matches a JSON object.
|
|
1913
|
+
* This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from.
|
|
1914
|
+
*/
|
|
1761
1915
|
export declare type JsonObject = {
|
|
1762
1916
|
[Key in string]?: JsonValue;
|
|
1763
1917
|
};
|
|
1764
1918
|
|
|
1765
|
-
declare type JsonQuery = {
|
|
1919
|
+
export declare type JsonQuery = {
|
|
1766
1920
|
modelName?: string;
|
|
1767
1921
|
action: JsonQueryAction;
|
|
1768
1922
|
query: JsonFieldSelection;
|
|
1769
1923
|
};
|
|
1770
1924
|
|
|
1771
|
-
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1925
|
+
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
|
1772
1926
|
|
|
1773
1927
|
declare type JsonSelectionSet = {
|
|
1774
1928
|
$scalars?: boolean;
|
|
@@ -1777,6 +1931,10 @@ declare type JsonSelectionSet = {
|
|
|
1777
1931
|
[fieldName: string]: boolean | JsonFieldSelection;
|
|
1778
1932
|
};
|
|
1779
1933
|
|
|
1934
|
+
/**
|
|
1935
|
+
* From https://github.com/sindresorhus/type-fest/
|
|
1936
|
+
* Matches any valid JSON value.
|
|
1937
|
+
*/
|
|
1780
1938
|
export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null;
|
|
1781
1939
|
|
|
1782
1940
|
export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | {
|
|
@@ -1874,6 +2032,8 @@ declare type LogLevel = 'info' | 'query' | 'warn' | 'error';
|
|
|
1874
2032
|
*/
|
|
1875
2033
|
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
|
1876
2034
|
|
|
2035
|
+
export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
|
|
2036
|
+
|
|
1877
2037
|
/**
|
|
1878
2038
|
* Class that holds the list of all extensions, applied to particular instance,
|
|
1879
2039
|
* as well as resolved versions of the components that need to apply on
|
|
@@ -2071,14 +2231,19 @@ export declare const objectEnumValues: {
|
|
|
2071
2231
|
|
|
2072
2232
|
declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-pg-worker"];
|
|
2073
2233
|
|
|
2234
|
+
export declare type Omission = Record<string, boolean | Skip>;
|
|
2235
|
+
|
|
2074
2236
|
declare type Omit_2<T, K extends string | number | symbol> = {
|
|
2075
2237
|
[P in keyof T as P extends K ? never : P]: T[P];
|
|
2076
2238
|
};
|
|
2077
2239
|
export { Omit_2 as Omit }
|
|
2078
2240
|
|
|
2079
|
-
export declare type
|
|
2241
|
+
export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
|
|
2242
|
+
|
|
2243
|
+
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';
|
|
2080
2244
|
|
|
2081
2245
|
export declare type OperationPayload = {
|
|
2246
|
+
name: string;
|
|
2082
2247
|
scalars: {
|
|
2083
2248
|
[ScalarName in string]: unknown;
|
|
2084
2249
|
};
|
|
@@ -2202,6 +2367,7 @@ export declare type PrismaClientOptions = {
|
|
|
2202
2367
|
* Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
2203
2368
|
*/
|
|
2204
2369
|
log?: Array<LogLevel | LogDefinition>;
|
|
2370
|
+
omit?: GlobalOmitOptions;
|
|
2205
2371
|
/**
|
|
2206
2372
|
* @internal
|
|
2207
2373
|
* You probably don't want to use this. \`__internal\` is used by internal tooling.
|
|
@@ -2306,6 +2472,8 @@ declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
|
|
|
2306
2472
|
|
|
2307
2473
|
declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
|
|
2308
2474
|
|
|
2475
|
+
export declare const PrivateResultType: unique symbol;
|
|
2476
|
+
|
|
2309
2477
|
declare namespace Public {
|
|
2310
2478
|
export {
|
|
2311
2479
|
validator
|
|
@@ -2327,6 +2495,7 @@ declare namespace Public_2 {
|
|
|
2327
2495
|
declare type Query = {
|
|
2328
2496
|
sql: string;
|
|
2329
2497
|
args: Array<unknown>;
|
|
2498
|
+
argTypes: Array<ArgType>;
|
|
2330
2499
|
};
|
|
2331
2500
|
|
|
2332
2501
|
declare interface Queryable {
|
|
@@ -2387,6 +2556,7 @@ declare type QueryEngineInstance = {
|
|
|
2387
2556
|
commitTransaction(id: string, traceHeaders: string): Promise<string>;
|
|
2388
2557
|
rollbackTransaction(id: string, traceHeaders: string): Promise<string>;
|
|
2389
2558
|
metrics(options: string): Promise<string>;
|
|
2559
|
+
applyPendingMigrations(): Promise<void>;
|
|
2390
2560
|
};
|
|
2391
2561
|
|
|
2392
2562
|
declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
|
|
@@ -2457,7 +2627,7 @@ export declare type RawParameters = {
|
|
|
2457
2627
|
values: string;
|
|
2458
2628
|
};
|
|
2459
2629
|
|
|
2460
|
-
export declare type RawQueryArgs = Sql | [query: string, ...values: RawValue[]];
|
|
2630
|
+
export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
|
|
2461
2631
|
|
|
2462
2632
|
declare type RawTaggedValue = {
|
|
2463
2633
|
$type: 'Raw';
|
|
@@ -2517,7 +2687,7 @@ declare class RequestHandler {
|
|
|
2517
2687
|
* handlers to finish.
|
|
2518
2688
|
*/
|
|
2519
2689
|
handleAndLogRequestError(params: HandleErrorParams): never;
|
|
2520
|
-
handleRequestError({ error, clientMethod, callsite, transaction, args, modelName }: HandleErrorParams): never;
|
|
2690
|
+
handleRequestError({ error, clientMethod, callsite, transaction, args, modelName, globalOmit, }: HandleErrorParams): never;
|
|
2521
2691
|
sanitizeMessage(message: any): any;
|
|
2522
2692
|
unpack(data: unknown, dataPath: string[], unpacker?: Unpacker): any;
|
|
2523
2693
|
get [Symbol.toStringTag](): string;
|
|
@@ -2551,6 +2721,7 @@ declare type RequestParams = {
|
|
|
2551
2721
|
unpacker?: Unpacker;
|
|
2552
2722
|
otelParentCtx?: Context;
|
|
2553
2723
|
otelChildCtx?: Context;
|
|
2724
|
+
globalOmit?: GlobalOmitOptions;
|
|
2554
2725
|
customDataProxyFetch?: (fetch: Fetch) => Fetch;
|
|
2555
2726
|
};
|
|
2556
2727
|
|
|
@@ -2589,6 +2760,7 @@ export declare type Result<T, A, F extends Operation> = T extends {
|
|
|
2589
2760
|
composites: {};
|
|
2590
2761
|
objects: {};
|
|
2591
2762
|
scalars: {};
|
|
2763
|
+
name: '';
|
|
2592
2764
|
}, {}, F>;
|
|
2593
2765
|
|
|
2594
2766
|
export declare type Result_2<T, A, F extends Operation> = Result<T, A, F>;
|
|
@@ -2603,12 +2775,15 @@ declare namespace Result_3 {
|
|
|
2603
2775
|
SelectField,
|
|
2604
2776
|
DefaultSelection,
|
|
2605
2777
|
UnwrapPayload,
|
|
2778
|
+
ApplyOmit,
|
|
2779
|
+
OmitValue,
|
|
2606
2780
|
GetCountResult,
|
|
2607
2781
|
Aggregate,
|
|
2608
2782
|
GetAggregateResult,
|
|
2609
2783
|
GetBatchResult,
|
|
2610
2784
|
GetGroupByResult,
|
|
2611
|
-
GetResult
|
|
2785
|
+
GetResult,
|
|
2786
|
+
ExtractGlobalOmit
|
|
2612
2787
|
}
|
|
2613
2788
|
}
|
|
2614
2789
|
|
|
@@ -2668,7 +2843,7 @@ export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|
|
|
2668
2843
|
|
|
2669
2844
|
declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
|
|
2670
2845
|
|
|
2671
|
-
declare type RuntimeDataModel = {
|
|
2846
|
+
export declare type RuntimeDataModel = {
|
|
2672
2847
|
readonly models: Record<string, RuntimeModel>;
|
|
2673
2848
|
readonly enums: Record<string, RuntimeEnum>;
|
|
2674
2849
|
readonly types: Record<string, RuntimeModel>;
|
|
@@ -2696,9 +2871,32 @@ export declare type SelectField<P extends SelectablePayloadFields<any, any>, K e
|
|
|
2696
2871
|
composites: Record<K, any>;
|
|
2697
2872
|
} ? P['composites'][K] : never;
|
|
2698
2873
|
|
|
2699
|
-
declare type Selection_2 = Record<string, boolean | JsArgs>;
|
|
2874
|
+
declare type Selection_2 = Record<string, boolean | Skip | JsArgs>;
|
|
2700
2875
|
export { Selection_2 as Selection }
|
|
2701
2876
|
|
|
2877
|
+
export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery;
|
|
2878
|
+
|
|
2879
|
+
declare type SerializeParams = {
|
|
2880
|
+
runtimeDataModel: RuntimeDataModel;
|
|
2881
|
+
modelName?: string;
|
|
2882
|
+
action: Action;
|
|
2883
|
+
args?: JsArgs;
|
|
2884
|
+
extensions?: MergedExtensionsList;
|
|
2885
|
+
callsite?: CallSite;
|
|
2886
|
+
clientMethod: string;
|
|
2887
|
+
clientVersion: string;
|
|
2888
|
+
errorFormat: ErrorFormat;
|
|
2889
|
+
previewFeatures: string[];
|
|
2890
|
+
globalOmit?: GlobalOmitOptions;
|
|
2891
|
+
};
|
|
2892
|
+
|
|
2893
|
+
declare class Skip {
|
|
2894
|
+
constructor(param?: symbol);
|
|
2895
|
+
ifUndefined<T>(value: T | undefined): T | Skip;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
export declare const skip: Skip;
|
|
2899
|
+
|
|
2702
2900
|
/**
|
|
2703
2901
|
* An interface that represents a span. A span represents a single operation
|
|
2704
2902
|
* within a trace. Examples of span might include remote procedure calls or a
|
|
@@ -2747,6 +2945,24 @@ declare interface Span {
|
|
|
2747
2945
|
* @param [startTime] start time of the event.
|
|
2748
2946
|
*/
|
|
2749
2947
|
addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this;
|
|
2948
|
+
/**
|
|
2949
|
+
* Adds a single link to the span.
|
|
2950
|
+
*
|
|
2951
|
+
* Links added after the creation will not affect the sampling decision.
|
|
2952
|
+
* It is preferred span links be added at span creation.
|
|
2953
|
+
*
|
|
2954
|
+
* @param link the link to add.
|
|
2955
|
+
*/
|
|
2956
|
+
addLink(link: Link): this;
|
|
2957
|
+
/**
|
|
2958
|
+
* Adds multiple links to the span.
|
|
2959
|
+
*
|
|
2960
|
+
* Links added after the creation will not affect the sampling decision.
|
|
2961
|
+
* It is preferred span links be added at span creation.
|
|
2962
|
+
*
|
|
2963
|
+
* @param links the links to add.
|
|
2964
|
+
*/
|
|
2965
|
+
addLinks(links: Link[]): this;
|
|
2750
2966
|
/**
|
|
2751
2967
|
* Sets a status to the span. If used, this will override the default Span
|
|
2752
2968
|
* status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
|
|
@@ -2938,12 +3154,13 @@ export declare class Sql {
|
|
|
2938
3154
|
readonly values: Value[];
|
|
2939
3155
|
readonly strings: string[];
|
|
2940
3156
|
constructor(rawStrings: readonly string[], rawValues: readonly RawValue[]);
|
|
2941
|
-
get text(): string;
|
|
2942
3157
|
get sql(): string;
|
|
2943
3158
|
get statement(): string;
|
|
3159
|
+
get text(): string;
|
|
2944
3160
|
inspect(): {
|
|
2945
|
-
text: string;
|
|
2946
3161
|
sql: string;
|
|
3162
|
+
statement: string;
|
|
3163
|
+
text: string;
|
|
2947
3164
|
values: unknown[];
|
|
2948
3165
|
};
|
|
2949
3166
|
}
|
|
@@ -3032,6 +3249,13 @@ declare namespace Transaction_2 {
|
|
|
3032
3249
|
}
|
|
3033
3250
|
}
|
|
3034
3251
|
|
|
3252
|
+
declare interface TransactionContext extends Queryable {
|
|
3253
|
+
/**
|
|
3254
|
+
* Starts new transaction.
|
|
3255
|
+
*/
|
|
3256
|
+
startTransaction(): Promise<Result_4<Transaction>>;
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3035
3259
|
declare type TransactionHeaders = {
|
|
3036
3260
|
traceparent?: string;
|
|
3037
3261
|
};
|
|
@@ -3048,8 +3272,16 @@ declare type TransactionOptions_2<InteractiveTransactionPayload> = {
|
|
|
3048
3272
|
options: BatchTransactionOptions;
|
|
3049
3273
|
};
|
|
3050
3274
|
|
|
3275
|
+
export declare class TypedSql<Values extends readonly unknown[], Result> {
|
|
3276
|
+
[PrivateResultType]: Result;
|
|
3277
|
+
constructor(sql: string, values: Values);
|
|
3278
|
+
get sql(): string;
|
|
3279
|
+
get values(): Values;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3051
3282
|
export declare type TypeMapCbDef = Fn<{
|
|
3052
3283
|
extArgs: InternalArgs;
|
|
3284
|
+
clientOptions: ClientOptionDef;
|
|
3053
3285
|
}, TypeMapDef>;
|
|
3054
3286
|
|
|
3055
3287
|
/** Shared */
|
|
@@ -3061,6 +3293,10 @@ declare namespace Types {
|
|
|
3061
3293
|
Extensions_2 as Extensions,
|
|
3062
3294
|
Utils,
|
|
3063
3295
|
Public_2 as Public,
|
|
3296
|
+
isSkip,
|
|
3297
|
+
Skip,
|
|
3298
|
+
skip,
|
|
3299
|
+
UnknownTypedSql,
|
|
3064
3300
|
OperationPayload as Payload
|
|
3065
3301
|
}
|
|
3066
3302
|
}
|
|
@@ -3071,6 +3307,8 @@ declare type UnknownErrorParams = {
|
|
|
3071
3307
|
batchRequestIdx?: number;
|
|
3072
3308
|
};
|
|
3073
3309
|
|
|
3310
|
+
export declare type UnknownTypedSql = TypedSql<unknown[], unknown>;
|
|
3311
|
+
|
|
3074
3312
|
declare type Unpacker = (data: any) => any;
|
|
3075
3313
|
|
|
3076
3314
|
export declare type UnwrapPayload<P> = {} extends P ? unknown : {
|
|
@@ -3109,9 +3347,6 @@ declare namespace Utils {
|
|
|
3109
3347
|
Narrow,
|
|
3110
3348
|
Exact,
|
|
3111
3349
|
Cast,
|
|
3112
|
-
JsonObject,
|
|
3113
|
-
JsonArray,
|
|
3114
|
-
JsonValue,
|
|
3115
3350
|
Record_2 as Record,
|
|
3116
3351
|
UnwrapPromise,
|
|
3117
3352
|
UnwrapTuple,
|