@naturalcycles/abba 1.6.0 → 1.7.0

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 (27) hide show
  1. package/dist/prisma-output/index-browser.js +4 -4
  2. package/dist/prisma-output/index.d.ts +24 -19
  3. package/dist/prisma-output/index.js +35 -17
  4. package/dist/prisma-output/libquery_engine-darwin-arm64.dylib.node +0 -0
  5. package/dist/prisma-output/libquery_engine-darwin.dylib.node +0 -0
  6. package/dist/prisma-output/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  7. package/dist/prisma-output/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  8. package/dist/prisma-output/runtime/index-browser.js +1 -1
  9. package/dist/prisma-output/runtime/index.d.ts +54 -43
  10. package/dist/prisma-output/runtime/index.js +23660 -17332
  11. package/dist/prisma-output/runtime/proxy.d.ts +54 -43
  12. package/dist/prisma-output/runtime/proxy.js +11326 -11467
  13. package/dist/prisma-output/schema.prisma +2 -2
  14. package/package.json +3 -3
  15. package/src/prisma-output/index-browser.js +4 -4
  16. package/src/prisma-output/index.d.ts +24 -19
  17. package/src/prisma-output/index.js +35 -17
  18. package/src/prisma-output/libquery_engine-darwin-arm64.dylib.node +0 -0
  19. package/src/prisma-output/libquery_engine-darwin.dylib.node +0 -0
  20. package/src/prisma-output/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  21. package/src/prisma-output/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  22. package/src/prisma-output/runtime/index-browser.js +1 -1
  23. package/src/prisma-output/runtime/index.d.ts +54 -43
  24. package/src/prisma-output/runtime/index.js +23660 -17332
  25. package/src/prisma-output/runtime/proxy.d.ts +54 -43
  26. package/src/prisma-output/runtime/proxy.js +11326 -11467
  27. package/src/prisma-output/schema.prisma +2 -2
@@ -6,7 +6,7 @@ var __export = (target, all) => {
6
6
  for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
7
7
  }
8
8
 
9
- // runtime/esm/index-browser.mjs
9
+ // esm/runtime/index-browser.mjs
10
10
  __export(exports, {
11
11
  Decimal: () => decimal_default,
12
12
  })
@@ -75,9 +75,11 @@ declare interface BinaryTargetsEnvValue {
75
75
  }
76
76
 
77
77
  declare interface Client_2 {
78
+ /** Only via tx proxy */
79
+ [TX_ID]?: string
78
80
  _dmmf: DMMFClass
79
81
  _engine: Engine
80
- _fetcher: PrismaClientFetcher
82
+ _fetcher: RequestHandler
81
83
  _connectionPromise?: Promise<any>
82
84
  _disconnectionPromise?: Promise<any>
83
85
  _engineConfig: EngineConfig
@@ -157,8 +159,8 @@ declare type DataLoaderOptions<T> = {
157
159
 
158
160
  declare interface DataSource {
159
161
  name: string
160
- activeProvider: ConnectorType
161
- provider: ConnectorType
162
+ activeProvider: ConnectorType_2
163
+ provider: ConnectorType_2
162
164
  url: EnvValue
163
165
  config: {
164
166
  [key: string]: string
@@ -491,6 +493,7 @@ export declare namespace DMMF {
491
493
  export interface Datamodel {
492
494
  models: Model[]
493
495
  enums: DatamodelEnum[]
496
+ types: Model[]
494
497
  }
495
498
  export interface uniqueIndex {
496
499
  name: string
@@ -522,8 +525,8 @@ export declare namespace DMMF {
522
525
  isUnique: boolean
523
526
  isId: boolean
524
527
  isReadOnly: boolean
525
- isGenerated: boolean
526
- isUpdatedAt: boolean
528
+ isGenerated?: boolean
529
+ isUpdatedAt?: boolean
527
530
  /**
528
531
  * Describes the data type in the same the way is is defined in the Prisma schema:
529
532
  * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
@@ -673,6 +676,8 @@ export declare class DMMFClass implements DMMF.Document {
673
676
  enumMap: Dictionary<DMMF.SchemaEnum>
674
677
  datamodelEnumMap: Dictionary<DMMF.DatamodelEnum>
675
678
  modelMap: Dictionary<DMMF.Model>
679
+ typeMap: Dictionary<DMMF.Model>
680
+ typeAndModelMap: Dictionary<DMMF.Model>
676
681
  mappingsMap: Dictionary<DMMF.ModelMapping>
677
682
  rootFieldMap: Dictionary<DMMF.SchemaField>
678
683
  constructor({ datamodel, schema, mappings }: DMMF.Document)
@@ -690,6 +695,8 @@ export declare class DMMFClass implements DMMF.Document {
690
695
  protected getDatamodelEnumMap(): Dictionary<DMMF.DatamodelEnum>
691
696
  protected getEnumMap(): Dictionary<DMMF.SchemaEnum>
692
697
  protected getModelMap(): Dictionary<DMMF.Model>
698
+ protected getTypeMap(): Dictionary<DMMF.Model>
699
+ protected getTypeModelMap(): Dictionary<DMMF.Model>
693
700
  protected getMergedOutputTypeMap(): Dictionary<DMMF.OutputType>
694
701
  protected getInputTypeMap(): Dictionary<DMMF.InputType>
695
702
  protected getMappingsMap(): Dictionary<DMMF.ModelMapping>
@@ -993,8 +1000,8 @@ declare type InstanceRejectOnNotFound =
993
1000
 
994
1001
  declare interface InternalDatasource {
995
1002
  name: string
996
- activeProvider: ConnectorType_2
997
- provider: ConnectorType_2
1003
+ activeProvider: ConnectorType
1004
+ provider: ConnectorType
998
1005
  url: EnvValue_2
999
1006
  config: any
1000
1007
  }
@@ -1010,9 +1017,10 @@ declare type InternalRequestParams = {
1010
1017
  callsite?: string
1011
1018
  /** Headers metadata that will be passed to the Engine */
1012
1019
  headers?: Record<string, string>
1013
- transactionId?: number
1020
+ transactionId?: string | number
1014
1021
  unpacker?: Unpacker
1015
1022
  otelCtx?: Context
1023
+ lock?: PromiseLike<void>
1016
1024
  } & QueryMiddlewareParams
1017
1025
 
1018
1026
  declare type InvalidArgError =
@@ -1156,39 +1164,6 @@ declare type Options = {
1156
1164
  timeout?: number
1157
1165
  }
1158
1166
 
1159
- declare class PrismaClientFetcher {
1160
- prisma: any
1161
- debug: boolean
1162
- hooks: any
1163
- dataloader: DataLoader<{
1164
- document: Document
1165
- runInTransaction?: boolean
1166
- transactionId?: number
1167
- headers?: Record<string, string>
1168
- }>
1169
- constructor(prisma: any, enableDebug?: boolean, hooks?: any)
1170
- get [Symbol.toStringTag](): string
1171
- request({
1172
- document,
1173
- dataPath,
1174
- rootField,
1175
- typeName,
1176
- isList,
1177
- callsite,
1178
- rejectOnNotFound,
1179
- clientMethod,
1180
- runInTransaction,
1181
- showColors,
1182
- engineHook,
1183
- args,
1184
- headers,
1185
- transactionId,
1186
- unpacker,
1187
- }: RequestParams): Promise<any>
1188
- sanitizeMessage(message: any): any
1189
- unpack(document: Document, data: any, path: string[], rootField: string, unpacker?: Unpacker): any
1190
- }
1191
-
1192
1167
  export declare class PrismaClientInitializationError extends Error {
1193
1168
  clientVersion: string
1194
1169
  errorCode?: string
@@ -1198,7 +1173,7 @@ export declare class PrismaClientInitializationError extends Error {
1198
1173
 
1199
1174
  export declare class PrismaClientKnownRequestError extends Error {
1200
1175
  code: string
1201
- meta?: object
1176
+ meta?: Record<string, unknown>
1202
1177
  clientVersion: string
1203
1178
  constructor(message: string, code: string, clientVersion: string, meta?: any)
1204
1179
  get [Symbol.toStringTag](): string
@@ -1303,6 +1278,40 @@ export declare type RawValue = Value | Sql
1303
1278
 
1304
1279
  declare type RejectOnNotFound = boolean | ((error: Error) => Error) | undefined
1305
1280
 
1281
+ declare type Request_2 = {
1282
+ document: Document
1283
+ runInTransaction?: boolean
1284
+ transactionId?: string | number
1285
+ headers?: Record<string, string>
1286
+ }
1287
+
1288
+ declare class RequestHandler {
1289
+ client: Client_2
1290
+ hooks: any
1291
+ dataloader: DataLoader<Request_2>
1292
+ constructor(client: Client_2, hooks?: any)
1293
+ request({
1294
+ document,
1295
+ dataPath,
1296
+ rootField,
1297
+ typeName,
1298
+ isList,
1299
+ callsite,
1300
+ rejectOnNotFound,
1301
+ clientMethod,
1302
+ runInTransaction,
1303
+ showColors,
1304
+ engineHook,
1305
+ args,
1306
+ headers,
1307
+ transactionId,
1308
+ unpacker,
1309
+ }: RequestParams): Promise<any>
1310
+ sanitizeMessage(message: any): any
1311
+ unpack(document: any, data: any, path: any, rootField: any, unpacker?: Unpacker): any
1312
+ get [Symbol.toStringTag](): string
1313
+ }
1314
+
1306
1315
  declare type RequestParams = {
1307
1316
  document: Document
1308
1317
  dataPath: string[]
@@ -1317,7 +1326,7 @@ declare type RequestParams = {
1317
1326
  engineHook?: EngineMiddleware
1318
1327
  args: any
1319
1328
  headers?: Record<string, string>
1320
- transactionId?: number
1329
+ transactionId?: string | number
1321
1330
  unpacker?: Unpacker
1322
1331
  }
1323
1332
 
@@ -1352,6 +1361,8 @@ declare namespace Transaction {
1352
1361
 
1353
1362
  export declare function transformDocument(document: Document): Document
1354
1363
 
1364
+ declare const TX_ID: unique symbol
1365
+
1355
1366
  /**
1356
1367
  * Unpacks the result of a data object and maps DateTime fields to instances of `Date` inplace
1357
1368
  * @param options: UnpackOptions