expo-backend-types 0.37.0-EXPO-327-EB-Escanear-entrada.1 → 0.37.0-EXPO-327-EB-Escanear-entrada.3
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/src/csv/dto/download-all-tables.dto.d.ts +2 -3
- package/dist/src/event/dto/get-by-id-event.dto.d.ts +20 -0
- package/dist/src/i18n/es.d.ts +8 -0
- package/dist/src/i18n/es.js +63 -170
- package/dist/src/i18n/es.js.map +1 -1
- package/dist/src/i18n/translate.js +2 -2
- package/dist/src/i18n/translate.js.map +1 -1
- package/dist/src/image/dto/update-image.dto.d.ts +0 -1
- package/dist/src/schema/profile.schema.js +17 -7
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +1 -2
- package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -1
- package/dist/src/ticket/constants.js +1 -2
- package/dist/src/ticket/dto/create-ticket.dto.d.ts +14 -0
- package/dist/src/ticket/dto/delete-ticket.dto.d.ts +12 -0
- package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +20 -0
- package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +20 -0
- package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +20 -0
- package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +20 -0
- package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +20 -0
- package/dist/src/ticket/dto/find-ticket.dto.d.ts +12 -0
- package/dist/src/ticket/dto/generate-pdf.dto.d.ts +2 -3
- package/dist/src/ticket/dto/scan-ticket.dto.d.ts +34 -0
- package/dist/src/ticket/dto/scan-ticket.dto.js +21 -0
- package/dist/src/ticket/dto/ticket.dto.d.ts +12 -0
- package/dist/src/ticket/dto/ticket.dto.js +2 -0
- package/dist/src/ticket/dto/update-ticket.dto.d.ts +12 -0
- package/dist/src/ticket/exports.d.ts +1 -0
- package/dist/src/ticket/exports.js +1 -0
- package/dist/types/prisma-schema/edge.js +11 -9
- package/dist/types/prisma-schema/index-browser.js +6 -4
- package/dist/types/prisma-schema/index.d.ts +317 -230
- package/dist/types/prisma-schema/index.js +11 -9
- package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/types/prisma-schema/package.json +2 -2
- package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
- package/dist/types/prisma-schema/runtime/edge.js +18 -18
- package/dist/types/prisma-schema/runtime/index-browser.d.ts +2 -2
- package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
- package/dist/types/prisma-schema/runtime/library.d.ts +123 -105
- package/dist/types/prisma-schema/runtime/library.js +56 -56
- package/dist/types/prisma-schema/runtime/react-native.js +25 -25
- package/dist/types/prisma-schema/runtime/wasm.js +19 -19
- package/dist/types/prisma-schema/schema.prisma +3 -1
- package/dist/types/prisma-schema/wasm.js +6 -4
- package/dist/types/schema.d.ts +82 -1
- package/package.json +13 -14
@@ -18,13 +18,24 @@ declare type AccelerateEngineConfig = {
|
|
18
18
|
logQueries?: EngineConfig['logQueries'];
|
19
19
|
logLevel?: EngineConfig['logLevel'];
|
20
20
|
tracingHelper: EngineConfig['tracingHelper'];
|
21
|
-
accelerateUtils?:
|
21
|
+
accelerateUtils?: AccelerateUtils;
|
22
22
|
};
|
23
23
|
|
24
|
+
declare type AccelerateUtils = EngineConfig['accelerateUtils'];
|
25
|
+
|
24
26
|
export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
|
25
27
|
|
26
28
|
declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
|
27
29
|
|
30
|
+
/**
|
31
|
+
* An interface that exposes some basic information about the
|
32
|
+
* adapter like its name and provider type.
|
33
|
+
*/
|
34
|
+
declare interface AdapterInfo {
|
35
|
+
readonly provider: Provider;
|
36
|
+
readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
|
37
|
+
}
|
38
|
+
|
28
39
|
export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
|
29
40
|
|
30
41
|
export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args extends Record<string, any>, K extends PropertyKey> = Args extends {
|
@@ -141,7 +152,7 @@ export declare type ClientArgs = {
|
|
141
152
|
client: ClientArg;
|
142
153
|
};
|
143
154
|
|
144
|
-
export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never
|
155
|
+
export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never>;
|
145
156
|
|
146
157
|
export declare type ClientOptionDef = undefined | {
|
147
158
|
[K in string]: any;
|
@@ -656,13 +667,13 @@ export declare interface DecimalJsLike {
|
|
656
667
|
|
657
668
|
export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>;
|
658
669
|
|
659
|
-
export declare type DefaultSelection<Payload extends OperationPayload, Args = {},
|
670
|
+
export declare type DefaultSelection<Payload extends OperationPayload, Args = {}, GlobalOmitOptions = {}> = Args extends {
|
660
671
|
omit: infer LocalOmit;
|
661
672
|
} ? ApplyOmit<UnwrapPayload<{
|
662
673
|
default: Payload;
|
663
|
-
}>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<
|
674
|
+
}>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<GlobalOmitOptions, Uncapitalize<Payload['name']>>>> : ApplyOmit<UnwrapPayload<{
|
664
675
|
default: Payload;
|
665
|
-
}>['default'], ExtractGlobalOmit<
|
676
|
+
}>['default'], ExtractGlobalOmit<GlobalOmitOptions, Uncapitalize<Payload['name']>>>;
|
666
677
|
|
667
678
|
export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void;
|
668
679
|
|
@@ -937,50 +948,58 @@ export declare namespace DMMF {
|
|
937
948
|
|
938
949
|
export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
|
939
950
|
|
940
|
-
export declare interface DriverAdapter extends
|
951
|
+
export declare interface DriverAdapter extends SqlQueryable {
|
941
952
|
/**
|
942
|
-
*
|
953
|
+
* Execute multiple SQL statements separated by semicolon.
|
943
954
|
*/
|
944
|
-
|
955
|
+
executeScript(script: string): Promise<void>;
|
956
|
+
/**
|
957
|
+
* Start new transaction.
|
958
|
+
*/
|
959
|
+
transactionContext(): Promise<TransactionContext>;
|
945
960
|
/**
|
946
961
|
* Optional method that returns extra connection info
|
947
962
|
*/
|
948
|
-
getConnectionInfo?():
|
963
|
+
getConnectionInfo?(): ConnectionInfo;
|
964
|
+
/**
|
965
|
+
* Dispose of the connection and release any resources.
|
966
|
+
*/
|
967
|
+
dispose(): Promise<void>;
|
949
968
|
}
|
950
969
|
|
951
970
|
/** Client */
|
952
|
-
export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
971
|
+
export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
|
953
972
|
[P in keyof C_]: unknown;
|
954
973
|
} & {
|
955
974
|
[K: symbol]: {
|
956
|
-
ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs
|
957
|
-
$parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs
|
975
|
+
ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList> & {
|
976
|
+
$parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>;
|
958
977
|
};
|
959
978
|
};
|
960
979
|
};
|
961
980
|
|
962
|
-
export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
981
|
+
export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
|
963
982
|
[P in keyof ExtArgs['client']]: Return<ExtArgs['client'][P]>;
|
964
983
|
} & {
|
965
|
-
[P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs
|
984
|
+
[P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs>;
|
966
985
|
} & {
|
967
986
|
[P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never;
|
968
987
|
} & {
|
969
|
-
[P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs
|
988
|
+
[P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs>[P];
|
970
989
|
} & {
|
971
990
|
[K: symbol]: {
|
972
991
|
types: TypeMap['other'];
|
973
992
|
};
|
974
993
|
};
|
975
994
|
|
976
|
-
export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
995
|
+
export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
|
977
996
|
$extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call<TypeMapCb, {
|
978
997
|
extArgs: ExtArgs;
|
979
|
-
}
|
998
|
+
}>>;
|
980
999
|
$transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
|
981
1000
|
isolationLevel?: TypeMap['meta']['txIsolationLevel'];
|
982
1001
|
}): Promise<UnwrapTuple<P>>;
|
983
|
-
$transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs
|
1002
|
+
$transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>) => Promise<R>, options?: {
|
984
1003
|
maxWait?: number;
|
985
1004
|
timeout?: number;
|
986
1005
|
isolationLevel?: TypeMap['meta']['txIsolationLevel'];
|
@@ -990,7 +1009,7 @@ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef
|
|
990
1009
|
};
|
991
1010
|
|
992
1011
|
/** Model */
|
993
|
-
export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any
|
1012
|
+
export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
|
994
1013
|
[K in keyof M_]: K extends '$allModels' ? {
|
995
1014
|
[P in keyof M_[K]]?: unknown;
|
996
1015
|
} & {
|
@@ -999,8 +1018,8 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
|
|
999
1018
|
[P in keyof M_[K]]?: unknown;
|
1000
1019
|
} & {
|
1001
1020
|
[K: symbol]: {
|
1002
|
-
ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs
|
1003
|
-
$parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs
|
1021
|
+
ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs> & {
|
1022
|
+
$parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>;
|
1004
1023
|
} & {
|
1005
1024
|
$name: ModelKey<TypeMap, K>;
|
1006
1025
|
} & {
|
@@ -1013,26 +1032,26 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
|
|
1013
1032
|
} : never;
|
1014
1033
|
};
|
1015
1034
|
|
1016
|
-
export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null
|
1035
|
+
export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null> = {
|
1017
1036
|
[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, {
|
1018
1037
|
select: {
|
1019
1038
|
[P in K]: A;
|
1020
1039
|
};
|
1021
|
-
}, P
|
1040
|
+
}, P>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>>;
|
1022
1041
|
};
|
1023
1042
|
|
1024
|
-
export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null
|
1043
|
+
export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null> = P extends FluentOperation ? DynamicModelExtensionFluentApi<TypeMap, M, P, Null> & PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P> | Null> : PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P>>;
|
1025
1044
|
|
1026
|
-
export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey
|
1045
|
+
export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation, TypeMap['globalOmitOptions']>;
|
1027
1046
|
|
1028
1047
|
export declare type DynamicModelExtensionFnResultNull<P extends PropertyKey> = P extends 'findUnique' | 'findFirst' ? null : never;
|
1029
1048
|
|
1030
|
-
export declare type DynamicModelExtensionOperationFn<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey
|
1049
|
+
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, DynamicModelExtensionFnResultNull<P>> : <A extends TypeMap['model'][M]['operations'][P]['args']>(args: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>>;
|
1031
1050
|
|
1032
|
-
export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any
|
1051
|
+
export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>> = {
|
1033
1052
|
[P in keyof ExtArgs['model'][Uncapitalize<M & string>]]: Return<ExtArgs['model'][Uncapitalize<M & string>][P]>;
|
1034
1053
|
} & {
|
1035
|
-
[P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P
|
1054
|
+
[P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P>;
|
1036
1055
|
} & {
|
1037
1056
|
[P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize<M & string>]>]: TypeMap['model'][M]['fields'];
|
1038
1057
|
} & {
|
@@ -1142,7 +1161,7 @@ declare interface EngineConfig {
|
|
1142
1161
|
* rather than Prisma's Rust drivers.
|
1143
1162
|
* @remarks only used by LibraryEngine.ts
|
1144
1163
|
*/
|
1145
|
-
adapter?:
|
1164
|
+
adapter?: ErrorCapturingSqlConnection;
|
1146
1165
|
/**
|
1147
1166
|
* The contents of the schema encoded into a string
|
1148
1167
|
* @remarks only used by DataProxyEngine.ts
|
@@ -1271,7 +1290,13 @@ declare type Error_2 = {
|
|
1271
1290
|
message: string;
|
1272
1291
|
};
|
1273
1292
|
|
1274
|
-
declare
|
1293
|
+
declare type ErrorCapturingFunction<T> = T extends (...args: infer A) => Promise<infer R> ? (...args: A) => Promise<Result_4<ErrorCapturingInterface<R>>> : T extends (...args: infer A) => infer R ? (...args: A) => Result_4<ErrorCapturingInterface<R>> : T;
|
1294
|
+
|
1295
|
+
declare type ErrorCapturingInterface<T> = {
|
1296
|
+
[K in keyof T]: ErrorCapturingFunction<T[K]>;
|
1297
|
+
};
|
1298
|
+
|
1299
|
+
declare interface ErrorCapturingSqlConnection extends ErrorCapturingInterface<DriverAdapter> {
|
1275
1300
|
readonly errorRegistry: ErrorRegistry;
|
1276
1301
|
}
|
1277
1302
|
|
@@ -1339,7 +1364,7 @@ declare type ExtendedSpanOptions = SpanOptions & {
|
|
1339
1364
|
/** $extends, defineExtension */
|
1340
1365
|
export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, TypeMap extends TypeMapDef = Call<TypeMapCb, {
|
1341
1366
|
extArgs: ExtArgs;
|
1342
|
-
}
|
1367
|
+
}>> {
|
1343
1368
|
extArgs: ExtArgs;
|
1344
1369
|
<R_ extends {
|
1345
1370
|
[K in TypeMap['meta']['modelProps'] | '$allModels']?: unknown;
|
@@ -1349,7 +1374,7 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
|
|
1349
1374
|
[K in TypeMap['meta']['modelProps'] | '$allModels' | keyof TypeMap['other']['operations'] | '$allOperations']?: unknown;
|
1350
1375
|
}, C_ extends {
|
1351
1376
|
[K in string]?: unknown;
|
1352
|
-
}, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs
|
1377
|
+
}, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>) => {
|
1353
1378
|
$extends: {
|
1354
1379
|
extArgs: Args;
|
1355
1380
|
};
|
@@ -1357,12 +1382,12 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
|
|
1357
1382
|
name?: string;
|
1358
1383
|
query?: DynamicQueryExtensionArgs<Q_, TypeMap>;
|
1359
1384
|
result?: DynamicResultExtensionArgs<R_, TypeMap> & R;
|
1360
|
-
model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs
|
1361
|
-
client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs
|
1385
|
+
model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs> & M;
|
1386
|
+
client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs> & C;
|
1362
1387
|
}): {
|
1363
1388
|
extends: DynamicClientExtensionThis<Call<TypeMapCb, {
|
1364
1389
|
extArgs: MergedArgs;
|
1365
|
-
}>, TypeMapCb, MergedArgs
|
1390
|
+
}>, TypeMapCb, MergedArgs>;
|
1366
1391
|
define: (client: any) => {
|
1367
1392
|
$extends: {
|
1368
1393
|
extArgs: Args;
|
@@ -1486,12 +1511,12 @@ export declare type GetCountResult<A> = A extends {
|
|
1486
1511
|
|
1487
1512
|
declare function getExtensionContext<T>(that: T): Context_2<T>;
|
1488
1513
|
|
1489
|
-
export declare type GetFindResult<P extends OperationPayload, A,
|
1514
|
+
export declare type GetFindResult<P extends OperationPayload, A, GlobalOmitOptions> = Equals<A, any> extends 1 ? DefaultSelection<P, A, GlobalOmitOptions> : A extends {
|
1490
1515
|
select: infer S extends object;
|
1491
1516
|
} & Record<string, unknown> | {
|
1492
1517
|
include: infer I extends object;
|
1493
1518
|
} & Record<string, unknown> ? {
|
1494
|
-
[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],
|
1519
|
+
[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], GlobalOmitOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], GlobalOmitOptions> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K], GlobalOmitOptions>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O, {}, GlobalOmitOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O, {}, GlobalOmitOptions> | SelectField<P, K> & null : never : P extends {
|
1495
1520
|
scalars: {
|
1496
1521
|
[k in K]: infer O;
|
1497
1522
|
};
|
@@ -1500,7 +1525,7 @@ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions>
|
|
1500
1525
|
include: any;
|
1501
1526
|
} & Record<string, unknown> ? DefaultSelection<P, A & {
|
1502
1527
|
omit: A['omit'];
|
1503
|
-
},
|
1528
|
+
}, GlobalOmitOptions> : unknown) : DefaultSelection<P, A, GlobalOmitOptions>;
|
1504
1529
|
|
1505
1530
|
export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
|
1506
1531
|
by: string[];
|
@@ -1558,7 +1583,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
1558
1583
|
* @param middleware to hook
|
1559
1584
|
*/
|
1560
1585
|
$use(middleware: QueryMiddleware): void;
|
1561
|
-
$on<E extends ExtendedEventType>(eventType: E, callback: EventCallback<E>):
|
1586
|
+
$on<E extends ExtendedEventType>(eventType: E, callback: EventCallback<E>): any;
|
1562
1587
|
$connect(): Promise<void>;
|
1563
1588
|
/**
|
1564
1589
|
* Disconnect from the database
|
@@ -1746,20 +1771,20 @@ declare type GetPrismaClientConfig = {
|
|
1746
1771
|
compilerWasm?: CompilerWasmLoadingConfig;
|
1747
1772
|
};
|
1748
1773
|
|
1749
|
-
export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow',
|
1750
|
-
findUnique: GetFindResult<Payload, Args,
|
1751
|
-
findUniqueOrThrow: GetFindResult<Payload, Args,
|
1752
|
-
findFirst: GetFindResult<Payload, Args,
|
1753
|
-
findFirstOrThrow: GetFindResult<Payload, Args,
|
1754
|
-
findMany: GetFindResult<Payload, Args,
|
1755
|
-
create: GetFindResult<Payload, Args,
|
1774
|
+
export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', GlobalOmitOptions = {}> = {
|
1775
|
+
findUnique: GetFindResult<Payload, Args, GlobalOmitOptions> | null;
|
1776
|
+
findUniqueOrThrow: GetFindResult<Payload, Args, GlobalOmitOptions>;
|
1777
|
+
findFirst: GetFindResult<Payload, Args, GlobalOmitOptions> | null;
|
1778
|
+
findFirstOrThrow: GetFindResult<Payload, Args, GlobalOmitOptions>;
|
1779
|
+
findMany: GetFindResult<Payload, Args, GlobalOmitOptions>[];
|
1780
|
+
create: GetFindResult<Payload, Args, GlobalOmitOptions>;
|
1756
1781
|
createMany: GetBatchResult;
|
1757
|
-
createManyAndReturn: GetFindResult<Payload, Args,
|
1758
|
-
update: GetFindResult<Payload, Args,
|
1782
|
+
createManyAndReturn: GetFindResult<Payload, Args, GlobalOmitOptions>[];
|
1783
|
+
update: GetFindResult<Payload, Args, GlobalOmitOptions>;
|
1759
1784
|
updateMany: GetBatchResult;
|
1760
|
-
updateManyAndReturn: GetFindResult<Payload, Args,
|
1761
|
-
upsert: GetFindResult<Payload, Args,
|
1762
|
-
delete: GetFindResult<Payload, Args,
|
1785
|
+
updateManyAndReturn: GetFindResult<Payload, Args, GlobalOmitOptions>[];
|
1786
|
+
upsert: GetFindResult<Payload, Args, GlobalOmitOptions>;
|
1787
|
+
delete: GetFindResult<Payload, Args, GlobalOmitOptions>;
|
1763
1788
|
deleteMany: GetBatchResult;
|
1764
1789
|
aggregate: GetAggregateResult<Payload, Args>;
|
1765
1790
|
count: GetCountResult<Args>;
|
@@ -1777,7 +1802,7 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
|
|
1777
1802
|
export declare function getRuntime(): GetRuntimeOutput;
|
1778
1803
|
|
1779
1804
|
declare type GetRuntimeOutput = {
|
1780
|
-
id:
|
1805
|
+
id: RuntimeName;
|
1781
1806
|
prettyName: string;
|
1782
1807
|
isEdge: boolean;
|
1783
1808
|
};
|
@@ -2556,30 +2581,15 @@ declare namespace Public_2 {
|
|
2556
2581
|
}
|
2557
2582
|
}
|
2558
2583
|
|
2559
|
-
declare
|
2560
|
-
sql: string;
|
2561
|
-
args: Array<unknown>;
|
2562
|
-
argTypes: Array<ArgType>;
|
2563
|
-
};
|
2564
|
-
|
2565
|
-
declare interface Queryable {
|
2566
|
-
readonly provider: Provider;
|
2567
|
-
readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
|
2584
|
+
declare interface Queryable<Query, Result> extends AdapterInfo {
|
2568
2585
|
/**
|
2569
|
-
* Execute a query
|
2570
|
-
* and returning the type-aware result set of the query.
|
2571
|
-
*
|
2572
|
-
* This is the preferred way of executing `SELECT` queries.
|
2586
|
+
* Execute a query and return its result.
|
2573
2587
|
*/
|
2574
|
-
queryRaw(params: Query): Promise<
|
2588
|
+
queryRaw(params: Query): Promise<Result>;
|
2575
2589
|
/**
|
2576
|
-
* Execute a query
|
2577
|
-
* and returning the number of affected rows.
|
2578
|
-
*
|
2579
|
-
* This is the preferred way of executing `INSERT`, `UPDATE`, `DELETE` queries,
|
2580
|
-
* as well as transactional queries.
|
2590
|
+
* Execute a query and return the number of affected rows.
|
2581
2591
|
*/
|
2582
|
-
executeRaw(params: Query): Promise<
|
2592
|
+
executeRaw(params: Query): Promise<number>;
|
2583
2593
|
}
|
2584
2594
|
|
2585
2595
|
declare type QueryCompiler = {
|
@@ -2617,7 +2627,7 @@ declare type QueryEngineConfig = {
|
|
2617
2627
|
};
|
2618
2628
|
|
2619
2629
|
declare interface QueryEngineConstructor {
|
2620
|
-
new (config: QueryEngineConfig, logger: (log: string) => void, adapter?:
|
2630
|
+
new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingSqlConnection): QueryEngineInstance;
|
2621
2631
|
}
|
2622
2632
|
|
2623
2633
|
declare type QueryEngineInstance = {
|
@@ -2881,32 +2891,8 @@ export declare type ResultFieldDefinition = {
|
|
2881
2891
|
compute: ResultArgsFieldCompute;
|
2882
2892
|
};
|
2883
2893
|
|
2884
|
-
declare interface ResultSet {
|
2885
|
-
/**
|
2886
|
-
* List of column types appearing in a database query, in the same order as `columnNames`.
|
2887
|
-
* They are used within the Query Engine to convert values from JS to Quaint values.
|
2888
|
-
*/
|
2889
|
-
columnTypes: Array<ColumnType>;
|
2890
|
-
/**
|
2891
|
-
* List of column names appearing in a database query, in the same order as `columnTypes`.
|
2892
|
-
*/
|
2893
|
-
columnNames: Array<string>;
|
2894
|
-
/**
|
2895
|
-
* List of rows retrieved from a database query.
|
2896
|
-
* Each row is a list of values, whose length matches `columnNames` and `columnTypes`.
|
2897
|
-
*/
|
2898
|
-
rows: Array<Array<unknown>>;
|
2899
|
-
/**
|
2900
|
-
* The last ID of an `INSERT` statement, if any.
|
2901
|
-
* This is required for `AUTO_INCREMENT` columns in databases based on MySQL and SQLite.
|
2902
|
-
*/
|
2903
|
-
lastInsertId?: string;
|
2904
|
-
}
|
2905
|
-
|
2906
2894
|
export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|
2907
2895
|
|
2908
|
-
declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
|
2909
|
-
|
2910
2896
|
export declare type RuntimeDataModel = {
|
2911
2897
|
readonly models: Record<string, RuntimeModel>;
|
2912
2898
|
readonly enums: Record<string, RuntimeEnum>;
|
@@ -2917,6 +2903,8 @@ declare type RuntimeEnum = Omit<DMMF.DatamodelEnum, 'name'>;
|
|
2917
2903
|
|
2918
2904
|
declare type RuntimeModel = Omit<DMMF.Model, 'name'>;
|
2919
2905
|
|
2906
|
+
declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | '';
|
2907
|
+
|
2920
2908
|
export declare type Select<T, U> = T extends U ? T : never;
|
2921
2909
|
|
2922
2910
|
export declare type SelectablePayloadFields<K extends PropertyKey, O> = {
|
@@ -3229,6 +3217,37 @@ export declare class Sql {
|
|
3229
3217
|
};
|
3230
3218
|
}
|
3231
3219
|
|
3220
|
+
declare type SqlQuery = {
|
3221
|
+
sql: string;
|
3222
|
+
args: Array<unknown>;
|
3223
|
+
argTypes: Array<ArgType>;
|
3224
|
+
};
|
3225
|
+
|
3226
|
+
declare interface SqlQueryable extends Queryable<SqlQuery, SqlResultSet> {
|
3227
|
+
}
|
3228
|
+
|
3229
|
+
declare interface SqlResultSet {
|
3230
|
+
/**
|
3231
|
+
* List of column types appearing in a database query, in the same order as `columnNames`.
|
3232
|
+
* They are used within the Query Engine to convert values from JS to Quaint values.
|
3233
|
+
*/
|
3234
|
+
columnTypes: Array<ColumnType>;
|
3235
|
+
/**
|
3236
|
+
* List of column names appearing in a database query, in the same order as `columnTypes`.
|
3237
|
+
*/
|
3238
|
+
columnNames: Array<string>;
|
3239
|
+
/**
|
3240
|
+
* List of rows retrieved from a database query.
|
3241
|
+
* Each row is a list of values, whose length matches `columnNames` and `columnTypes`.
|
3242
|
+
*/
|
3243
|
+
rows: Array<Array<unknown>>;
|
3244
|
+
/**
|
3245
|
+
* The last ID of an `INSERT` statement, if any.
|
3246
|
+
* This is required for `AUTO_INCREMENT` columns in databases based on MySQL and SQLite.
|
3247
|
+
*/
|
3248
|
+
lastInsertId?: string;
|
3249
|
+
}
|
3250
|
+
|
3232
3251
|
/**
|
3233
3252
|
* Create a SQL object from a template string.
|
3234
3253
|
*/
|
@@ -3289,7 +3308,7 @@ declare interface TracingHelper {
|
|
3289
3308
|
runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
|
3290
3309
|
}
|
3291
3310
|
|
3292
|
-
declare interface Transaction extends
|
3311
|
+
declare interface Transaction extends AdapterInfo, SqlQueryable {
|
3293
3312
|
/**
|
3294
3313
|
* Transaction options.
|
3295
3314
|
*/
|
@@ -3297,11 +3316,11 @@ declare interface Transaction extends Queryable {
|
|
3297
3316
|
/**
|
3298
3317
|
* Commit the transaction.
|
3299
3318
|
*/
|
3300
|
-
commit(): Promise<
|
3319
|
+
commit(): Promise<void>;
|
3301
3320
|
/**
|
3302
|
-
*
|
3321
|
+
* Roll back the transaction.
|
3303
3322
|
*/
|
3304
|
-
rollback(): Promise<
|
3323
|
+
rollback(): Promise<void>;
|
3305
3324
|
}
|
3306
3325
|
|
3307
3326
|
declare namespace Transaction_2 {
|
@@ -3313,11 +3332,11 @@ declare namespace Transaction_2 {
|
|
3313
3332
|
}
|
3314
3333
|
}
|
3315
3334
|
|
3316
|
-
declare interface TransactionContext extends
|
3335
|
+
declare interface TransactionContext extends AdapterInfo, SqlQueryable {
|
3317
3336
|
/**
|
3318
|
-
*
|
3337
|
+
* Start new transaction.
|
3319
3338
|
*/
|
3320
|
-
startTransaction(): Promise<
|
3339
|
+
startTransaction(): Promise<Transaction>;
|
3321
3340
|
}
|
3322
3341
|
|
3323
3342
|
declare type TransactionHeaders = {
|
@@ -3351,7 +3370,6 @@ export declare class TypedSql<Values extends readonly unknown[], Result> {
|
|
3351
3370
|
|
3352
3371
|
export declare type TypeMapCbDef = Fn<{
|
3353
3372
|
extArgs: InternalArgs;
|
3354
|
-
clientOptions: ClientOptionDef;
|
3355
3373
|
}, TypeMapDef>;
|
3356
3374
|
|
3357
3375
|
/** Shared */
|