expo-backend-types 0.37.0-EXPO-327-EB-Escanear-entrada.3 → 0.37.0-EXPO-325-ExpoBackend-Emision-de-multiples-tickets.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/src/account/dto/get-global-filter.dto.d.ts +8 -8
  2. package/dist/src/account/dto/get-me.dto.d.ts +16 -16
  3. package/dist/src/account/dto/update-global-filter.dto.d.ts +8 -8
  4. package/dist/src/csv/dto/download-all-tables.dto.d.ts +3 -2
  5. package/dist/src/event/dto/create-event.dto.d.ts +8 -8
  6. package/dist/src/event/dto/event-tickets.dto.d.ts +2 -2
  7. package/dist/src/event/dto/get-active-events.dto.d.ts +12 -12
  8. package/dist/src/event/dto/get-all-event.dto.d.ts +56 -56
  9. package/dist/src/event/dto/get-by-id-event.dto.d.ts +50 -88
  10. package/dist/src/event/dto/update-event.dto.d.ts +24 -24
  11. package/dist/src/exports.d.ts +1 -0
  12. package/dist/src/exports.js +1 -0
  13. package/dist/src/i18n/es.d.ts +35 -28
  14. package/dist/src/i18n/es.js +201 -79
  15. package/dist/src/i18n/es.js.map +1 -1
  16. package/dist/src/i18n/translate.js +2 -2
  17. package/dist/src/i18n/translate.js.map +1 -1
  18. package/dist/src/image/dto/update-image.dto.d.ts +1 -0
  19. package/dist/src/profile/dto/find-all-profile.dto.d.ts +12 -12
  20. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +20 -20
  21. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +8 -8
  22. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +12 -12
  23. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +12 -12
  24. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +12 -12
  25. package/dist/src/schema/profile.schema.js +7 -17
  26. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js +2 -1
  27. package/dist/src/shared/dto-modification/create-zod-dto-without-date.js.map +1 -1
  28. package/dist/src/tag/dto/create-tag.dto.d.ts +4 -4
  29. package/dist/src/tag/dto/delete-tag.dto.d.ts +4 -4
  30. package/dist/src/tag/dto/find-all-tag.dto.d.ts +8 -8
  31. package/dist/src/tag/dto/find-by-group-tag.dto.d.ts +8 -8
  32. package/dist/src/tag/dto/find-one-tag.dto.d.ts +4 -4
  33. package/dist/src/tag/dto/tag.dto.d.ts +4 -4
  34. package/dist/src/tag/dto/update-tag.dto.d.ts +4 -4
  35. package/dist/src/tag-group/dto/find-all-tag-group.dto.d.ts +12 -12
  36. package/dist/src/tag-group/dto/find-all-with-tags.dto.d.ts +12 -12
  37. package/dist/src/tag-group/dto/find-one-tag-group.dto.d.ts +8 -8
  38. package/dist/src/ticket/constants.d.ts +14 -12
  39. package/dist/src/ticket/constants.js +248 -354
  40. package/dist/src/ticket/dto/create-many-ticket.dto.d.ts +596 -0
  41. package/dist/src/ticket/dto/create-many-ticket.dto.js +50 -0
  42. package/dist/src/ticket/dto/create-ticket.dto.d.ts +21 -58
  43. package/dist/src/ticket/dto/create-ticket.dto.js +1 -1
  44. package/dist/src/ticket/dto/delete-ticket.dto.d.ts +10 -36
  45. package/dist/src/ticket/dto/find-all-tickets.dto.d.ts +18 -56
  46. package/dist/src/ticket/dto/find-by-event-ticket.dto.d.ts +18 -56
  47. package/dist/src/ticket/dto/find-by-id-ticket.dto.d.ts +18 -56
  48. package/dist/src/ticket/dto/find-by-mail-ticket.dto.d.ts +18 -56
  49. package/dist/src/ticket/dto/find-by-profile-id-ticket.dto.d.ts +18 -56
  50. package/dist/src/ticket/dto/find-ticket.dto.d.ts +10 -36
  51. package/dist/src/ticket/dto/generate-pdf.dto.d.ts +3 -2
  52. package/dist/src/ticket/dto/ticket.dto.d.ts +10 -36
  53. package/dist/src/ticket/dto/ticket.dto.js +2 -6
  54. package/dist/src/ticket/dto/update-ticket.dto.d.ts +26 -54
  55. package/dist/src/ticket/dto/update-ticket.dto.js +2 -1
  56. package/dist/src/ticket/exports.d.ts +0 -1
  57. package/dist/src/ticket/exports.js +0 -1
  58. package/dist/src/ticket-group/dto/create-ticket-group.dto.d.ts +356 -0
  59. package/dist/src/ticket-group/dto/create-ticket-group.dto.js +27 -0
  60. package/dist/src/ticket-group/dto/delete-ticket-group.dto.d.ts +55 -0
  61. package/dist/src/ticket-group/dto/delete-ticket-group.dto.js +10 -0
  62. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.d.ts +32 -0
  63. package/dist/src/ticket-group/dto/find-tickets-by-event.dto.js +20 -0
  64. package/dist/src/ticket-group/dto/ticket-group.dto.d.ts +56 -0
  65. package/dist/src/ticket-group/dto/ticket-group.dto.js +27 -0
  66. package/dist/src/ticket-group/dto/update-ticket-group.dto.d.ts +79 -0
  67. package/dist/src/ticket-group/dto/update-ticket-group.dto.js +18 -0
  68. package/dist/src/ticket-group/exports.d.ts +5 -0
  69. package/dist/src/ticket-group/exports.js +22 -0
  70. package/dist/types/prisma-schema/edge.js +21 -14
  71. package/dist/types/prisma-schema/index-browser.js +16 -9
  72. package/dist/types/prisma-schema/index.d.ts +2464 -653
  73. package/dist/types/prisma-schema/index.js +21 -14
  74. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  75. package/dist/types/prisma-schema/package.json +2 -2
  76. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  77. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  78. package/dist/types/prisma-schema/runtime/index-browser.d.ts +2 -2
  79. package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
  80. package/dist/types/prisma-schema/runtime/library.d.ts +105 -123
  81. package/dist/types/prisma-schema/runtime/library.js +56 -56
  82. package/dist/types/prisma-schema/runtime/react-native.js +25 -25
  83. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  84. package/dist/types/prisma-schema/schema.prisma +23 -9
  85. package/dist/types/prisma-schema/wasm.js +16 -9
  86. package/dist/types/schema.d.ts +266 -59
  87. package/package.json +19 -18
  88. package/dist/src/ticket/dto/scan-ticket.dto.d.ts +0 -34
  89. package/dist/src/ticket/dto/scan-ticket.dto.js +0 -21
  90. package/dist/src/ticket/dto/send-email.dto.d.ts +0 -18
  91. package/dist/src/ticket/dto/send-email.dto.js +0 -15
@@ -18,24 +18,13 @@ declare type AccelerateEngineConfig = {
18
18
  logQueries?: EngineConfig['logQueries'];
19
19
  logLevel?: EngineConfig['logLevel'];
20
20
  tracingHelper: EngineConfig['tracingHelper'];
21
- accelerateUtils?: AccelerateUtils;
21
+ accelerateUtils?: EngineConfig['accelerateUtils'];
22
22
  };
23
23
 
24
- declare type AccelerateUtils = EngineConfig['accelerateUtils'];
25
-
26
24
  export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
27
25
 
28
26
  declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
29
27
 
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
-
39
28
  export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
40
29
 
41
30
  export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args extends Record<string, any>, K extends PropertyKey> = Args extends {
@@ -152,7 +141,7 @@ export declare type ClientArgs = {
152
141
  client: ClientArg;
153
142
  };
154
143
 
155
- export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never>;
144
+ export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never, never>;
156
145
 
157
146
  export declare type ClientOptionDef = undefined | {
158
147
  [K in string]: any;
@@ -667,13 +656,13 @@ export declare interface DecimalJsLike {
667
656
 
668
657
  export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>;
669
658
 
670
- export declare type DefaultSelection<Payload extends OperationPayload, Args = {}, GlobalOmitOptions = {}> = Args extends {
659
+ export declare type DefaultSelection<Payload extends OperationPayload, Args = {}, ClientOptions = {}> = Args extends {
671
660
  omit: infer LocalOmit;
672
661
  } ? ApplyOmit<UnwrapPayload<{
673
662
  default: Payload;
674
- }>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<GlobalOmitOptions, Uncapitalize<Payload['name']>>>> : ApplyOmit<UnwrapPayload<{
663
+ }>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>> : ApplyOmit<UnwrapPayload<{
675
664
  default: Payload;
676
- }>['default'], ExtractGlobalOmit<GlobalOmitOptions, Uncapitalize<Payload['name']>>>;
665
+ }>['default'], ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>;
677
666
 
678
667
  export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void;
679
668
 
@@ -948,58 +937,50 @@ export declare namespace DMMF {
948
937
 
949
938
  export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
950
939
 
951
- export declare interface DriverAdapter extends SqlQueryable {
940
+ export declare interface DriverAdapter extends Queryable {
952
941
  /**
953
- * Execute multiple SQL statements separated by semicolon.
942
+ * Starts new transaction.
954
943
  */
955
- executeScript(script: string): Promise<void>;
956
- /**
957
- * Start new transaction.
958
- */
959
- transactionContext(): Promise<TransactionContext>;
944
+ transactionContext(): Promise<Result_4<TransactionContext>>;
960
945
  /**
961
946
  * Optional method that returns extra connection info
962
947
  */
963
- getConnectionInfo?(): ConnectionInfo;
964
- /**
965
- * Dispose of the connection and release any resources.
966
- */
967
- dispose(): Promise<void>;
948
+ getConnectionInfo?(): Result_4<ConnectionInfo>;
968
949
  }
969
950
 
970
951
  /** Client */
971
- export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
952
+ export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
972
953
  [P in keyof C_]: unknown;
973
954
  } & {
974
955
  [K: symbol]: {
975
- ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList> & {
976
- $parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>;
956
+ ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList> & {
957
+ $parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>;
977
958
  };
978
959
  };
979
960
  };
980
961
 
981
- export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
962
+ export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
982
963
  [P in keyof ExtArgs['client']]: Return<ExtArgs['client'][P]>;
983
964
  } & {
984
- [P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs>;
965
+ [P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs, ClientOptions>;
985
966
  } & {
986
967
  [P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never;
987
968
  } & {
988
- [P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs>[P];
969
+ [P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs, ClientOptions>[P];
989
970
  } & {
990
971
  [K: symbol]: {
991
972
  types: TypeMap['other'];
992
973
  };
993
974
  };
994
975
 
995
- export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
976
+ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
996
977
  $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call<TypeMapCb, {
997
978
  extArgs: ExtArgs;
998
- }>>;
979
+ }>, ClientOptions>;
999
980
  $transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
1000
981
  isolationLevel?: TypeMap['meta']['txIsolationLevel'];
1001
982
  }): Promise<UnwrapTuple<P>>;
1002
- $transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>) => Promise<R>, options?: {
983
+ $transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>) => Promise<R>, options?: {
1003
984
  maxWait?: number;
1004
985
  timeout?: number;
1005
986
  isolationLevel?: TypeMap['meta']['txIsolationLevel'];
@@ -1009,7 +990,7 @@ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef
1009
990
  };
1010
991
 
1011
992
  /** Model */
1012
- export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
993
+ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
1013
994
  [K in keyof M_]: K extends '$allModels' ? {
1014
995
  [P in keyof M_[K]]?: unknown;
1015
996
  } & {
@@ -1018,8 +999,8 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
1018
999
  [P in keyof M_[K]]?: unknown;
1019
1000
  } & {
1020
1001
  [K: symbol]: {
1021
- ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs> & {
1022
- $parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>;
1002
+ ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs, ClientOptions> & {
1003
+ $parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>;
1023
1004
  } & {
1024
1005
  $name: ModelKey<TypeMap, K>;
1025
1006
  } & {
@@ -1032,26 +1013,26 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
1032
1013
  } : never;
1033
1014
  };
1034
1015
 
1035
- export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null> = {
1016
+ export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null, ClientOptions> = {
1036
1017
  [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, {
1037
1018
  select: {
1038
1019
  [P in K]: A;
1039
1020
  };
1040
- }, P>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>>;
1021
+ }, P, ClientOptions>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>, ClientOptions>;
1041
1022
  };
1042
1023
 
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>>;
1024
+ 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>>;
1044
1025
 
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']>;
1026
+ export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, ClientOptions> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation, ClientOptions>;
1046
1027
 
1047
1028
  export declare type DynamicModelExtensionFnResultNull<P extends PropertyKey> = P extends 'findUnique' | 'findFirst' ? null : never;
1048
1029
 
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>>;
1030
+ 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>;
1050
1031
 
1051
- export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>> = {
1032
+ export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>, ClientOptions> = {
1052
1033
  [P in keyof ExtArgs['model'][Uncapitalize<M & string>]]: Return<ExtArgs['model'][Uncapitalize<M & string>][P]>;
1053
1034
  } & {
1054
- [P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P>;
1035
+ [P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P, ClientOptions>;
1055
1036
  } & {
1056
1037
  [P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize<M & string>]>]: TypeMap['model'][M]['fields'];
1057
1038
  } & {
@@ -1161,7 +1142,7 @@ declare interface EngineConfig {
1161
1142
  * rather than Prisma's Rust drivers.
1162
1143
  * @remarks only used by LibraryEngine.ts
1163
1144
  */
1164
- adapter?: ErrorCapturingSqlConnection;
1145
+ adapter?: ErrorCapturingDriverAdapter;
1165
1146
  /**
1166
1147
  * The contents of the schema encoded into a string
1167
1148
  * @remarks only used by DataProxyEngine.ts
@@ -1290,13 +1271,7 @@ declare type Error_2 = {
1290
1271
  message: string;
1291
1272
  };
1292
1273
 
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> {
1274
+ declare interface ErrorCapturingDriverAdapter extends DriverAdapter {
1300
1275
  readonly errorRegistry: ErrorRegistry;
1301
1276
  }
1302
1277
 
@@ -1364,7 +1339,7 @@ declare type ExtendedSpanOptions = SpanOptions & {
1364
1339
  /** $extends, defineExtension */
1365
1340
  export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, TypeMap extends TypeMapDef = Call<TypeMapCb, {
1366
1341
  extArgs: ExtArgs;
1367
- }>> {
1342
+ }>, ClientOptions = {}> {
1368
1343
  extArgs: ExtArgs;
1369
1344
  <R_ extends {
1370
1345
  [K in TypeMap['meta']['modelProps'] | '$allModels']?: unknown;
@@ -1374,7 +1349,7 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
1374
1349
  [K in TypeMap['meta']['modelProps'] | '$allModels' | keyof TypeMap['other']['operations'] | '$allOperations']?: unknown;
1375
1350
  }, C_ extends {
1376
1351
  [K in string]?: unknown;
1377
- }, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>) => {
1352
+ }, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>) => {
1378
1353
  $extends: {
1379
1354
  extArgs: Args;
1380
1355
  };
@@ -1382,12 +1357,12 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
1382
1357
  name?: string;
1383
1358
  query?: DynamicQueryExtensionArgs<Q_, TypeMap>;
1384
1359
  result?: DynamicResultExtensionArgs<R_, TypeMap> & R;
1385
- model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs> & M;
1386
- client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs> & C;
1360
+ model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & M;
1361
+ client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & C;
1387
1362
  }): {
1388
1363
  extends: DynamicClientExtensionThis<Call<TypeMapCb, {
1389
1364
  extArgs: MergedArgs;
1390
- }>, TypeMapCb, MergedArgs>;
1365
+ }>, TypeMapCb, MergedArgs, ClientOptions>;
1391
1366
  define: (client: any) => {
1392
1367
  $extends: {
1393
1368
  extArgs: Args;
@@ -1511,12 +1486,12 @@ export declare type GetCountResult<A> = A extends {
1511
1486
 
1512
1487
  declare function getExtensionContext<T>(that: T): Context_2<T>;
1513
1488
 
1514
- export declare type GetFindResult<P extends OperationPayload, A, GlobalOmitOptions> = Equals<A, any> extends 1 ? DefaultSelection<P, A, GlobalOmitOptions> : A extends {
1489
+ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions> = Equals<A, any> extends 1 ? DefaultSelection<P, A, ClientOptions> : A extends {
1515
1490
  select: infer S extends object;
1516
1491
  } & Record<string, unknown> | {
1517
1492
  include: infer I extends object;
1518
1493
  } & Record<string, unknown> ? {
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 {
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], 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 {
1520
1495
  scalars: {
1521
1496
  [k in K]: infer O;
1522
1497
  };
@@ -1525,7 +1500,7 @@ export declare type GetFindResult<P extends OperationPayload, A, GlobalOmitOptio
1525
1500
  include: any;
1526
1501
  } & Record<string, unknown> ? DefaultSelection<P, A & {
1527
1502
  omit: A['omit'];
1528
- }, GlobalOmitOptions> : unknown) : DefaultSelection<P, A, GlobalOmitOptions>;
1503
+ }, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1529
1504
 
1530
1505
  export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
1531
1506
  by: string[];
@@ -1583,7 +1558,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1583
1558
  * @param middleware to hook
1584
1559
  */
1585
1560
  $use(middleware: QueryMiddleware): void;
1586
- $on<E extends ExtendedEventType>(eventType: E, callback: EventCallback<E>): any;
1561
+ $on<E extends ExtendedEventType>(eventType: E, callback: EventCallback<E>): void;
1587
1562
  $connect(): Promise<void>;
1588
1563
  /**
1589
1564
  * Disconnect from the database
@@ -1771,20 +1746,20 @@ declare type GetPrismaClientConfig = {
1771
1746
  compilerWasm?: CompilerWasmLoadingConfig;
1772
1747
  };
1773
1748
 
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>;
1749
+ export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', ClientOptions = {}> = {
1750
+ findUnique: GetFindResult<Payload, Args, ClientOptions> | null;
1751
+ findUniqueOrThrow: GetFindResult<Payload, Args, ClientOptions>;
1752
+ findFirst: GetFindResult<Payload, Args, ClientOptions> | null;
1753
+ findFirstOrThrow: GetFindResult<Payload, Args, ClientOptions>;
1754
+ findMany: GetFindResult<Payload, Args, ClientOptions>[];
1755
+ create: GetFindResult<Payload, Args, ClientOptions>;
1781
1756
  createMany: GetBatchResult;
1782
- createManyAndReturn: GetFindResult<Payload, Args, GlobalOmitOptions>[];
1783
- update: GetFindResult<Payload, Args, GlobalOmitOptions>;
1757
+ createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1758
+ update: GetFindResult<Payload, Args, ClientOptions>;
1784
1759
  updateMany: GetBatchResult;
1785
- updateManyAndReturn: GetFindResult<Payload, Args, GlobalOmitOptions>[];
1786
- upsert: GetFindResult<Payload, Args, GlobalOmitOptions>;
1787
- delete: GetFindResult<Payload, Args, GlobalOmitOptions>;
1760
+ updateManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1761
+ upsert: GetFindResult<Payload, Args, ClientOptions>;
1762
+ delete: GetFindResult<Payload, Args, ClientOptions>;
1788
1763
  deleteMany: GetBatchResult;
1789
1764
  aggregate: GetAggregateResult<Payload, Args>;
1790
1765
  count: GetCountResult<Args>;
@@ -1802,7 +1777,7 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
1802
1777
  export declare function getRuntime(): GetRuntimeOutput;
1803
1778
 
1804
1779
  declare type GetRuntimeOutput = {
1805
- id: RuntimeName;
1780
+ id: Runtime;
1806
1781
  prettyName: string;
1807
1782
  isEdge: boolean;
1808
1783
  };
@@ -2581,15 +2556,30 @@ declare namespace Public_2 {
2581
2556
  }
2582
2557
  }
2583
2558
 
2584
- declare interface Queryable<Query, Result> extends AdapterInfo {
2559
+ declare type Query = {
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 & {});
2585
2568
  /**
2586
- * Execute a query and return its result.
2569
+ * Execute a query given as SQL, interpolating the given parameters,
2570
+ * and returning the type-aware result set of the query.
2571
+ *
2572
+ * This is the preferred way of executing `SELECT` queries.
2587
2573
  */
2588
- queryRaw(params: Query): Promise<Result>;
2574
+ queryRaw(params: Query): Promise<Result_4<ResultSet>>;
2589
2575
  /**
2590
- * Execute a query and return the number of affected rows.
2576
+ * Execute a query given as SQL, interpolating the given parameters,
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.
2591
2581
  */
2592
- executeRaw(params: Query): Promise<number>;
2582
+ executeRaw(params: Query): Promise<Result_4<number>>;
2593
2583
  }
2594
2584
 
2595
2585
  declare type QueryCompiler = {
@@ -2627,7 +2617,7 @@ declare type QueryEngineConfig = {
2627
2617
  };
2628
2618
 
2629
2619
  declare interface QueryEngineConstructor {
2630
- new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingSqlConnection): QueryEngineInstance;
2620
+ new (config: QueryEngineConfig, logger: (log: string) => void, adapter?: ErrorCapturingDriverAdapter): QueryEngineInstance;
2631
2621
  }
2632
2622
 
2633
2623
  declare type QueryEngineInstance = {
@@ -2891,8 +2881,32 @@ export declare type ResultFieldDefinition = {
2891
2881
  compute: ResultArgsFieldCompute;
2892
2882
  };
2893
2883
 
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
+
2894
2906
  export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
2895
2907
 
2908
+ declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
2909
+
2896
2910
  export declare type RuntimeDataModel = {
2897
2911
  readonly models: Record<string, RuntimeModel>;
2898
2912
  readonly enums: Record<string, RuntimeEnum>;
@@ -2903,8 +2917,6 @@ declare type RuntimeEnum = Omit<DMMF.DatamodelEnum, 'name'>;
2903
2917
 
2904
2918
  declare type RuntimeModel = Omit<DMMF.Model, 'name'>;
2905
2919
 
2906
- declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | '';
2907
-
2908
2920
  export declare type Select<T, U> = T extends U ? T : never;
2909
2921
 
2910
2922
  export declare type SelectablePayloadFields<K extends PropertyKey, O> = {
@@ -3217,37 +3229,6 @@ export declare class Sql {
3217
3229
  };
3218
3230
  }
3219
3231
 
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
-
3251
3232
  /**
3252
3233
  * Create a SQL object from a template string.
3253
3234
  */
@@ -3308,7 +3289,7 @@ declare interface TracingHelper {
3308
3289
  runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
3309
3290
  }
3310
3291
 
3311
- declare interface Transaction extends AdapterInfo, SqlQueryable {
3292
+ declare interface Transaction extends Queryable {
3312
3293
  /**
3313
3294
  * Transaction options.
3314
3295
  */
@@ -3316,11 +3297,11 @@ declare interface Transaction extends AdapterInfo, SqlQueryable {
3316
3297
  /**
3317
3298
  * Commit the transaction.
3318
3299
  */
3319
- commit(): Promise<void>;
3300
+ commit(): Promise<Result_4<void>>;
3320
3301
  /**
3321
- * Roll back the transaction.
3302
+ * Rolls back the transaction.
3322
3303
  */
3323
- rollback(): Promise<void>;
3304
+ rollback(): Promise<Result_4<void>>;
3324
3305
  }
3325
3306
 
3326
3307
  declare namespace Transaction_2 {
@@ -3332,11 +3313,11 @@ declare namespace Transaction_2 {
3332
3313
  }
3333
3314
  }
3334
3315
 
3335
- declare interface TransactionContext extends AdapterInfo, SqlQueryable {
3316
+ declare interface TransactionContext extends Queryable {
3336
3317
  /**
3337
- * Start new transaction.
3318
+ * Starts new transaction.
3338
3319
  */
3339
- startTransaction(): Promise<Transaction>;
3320
+ startTransaction(): Promise<Result_4<Transaction>>;
3340
3321
  }
3341
3322
 
3342
3323
  declare type TransactionHeaders = {
@@ -3370,6 +3351,7 @@ export declare class TypedSql<Values extends readonly unknown[], Result> {
3370
3351
 
3371
3352
  export declare type TypeMapCbDef = Fn<{
3372
3353
  extArgs: InternalArgs;
3354
+ clientOptions: ClientOptionDef;
3373
3355
  }, TypeMapDef>;
3374
3356
 
3375
3357
  /** Shared */