@naturalcycles/abba 1.7.0 → 1.9.1

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 (58) hide show
  1. package/dist/abba.d.ts +45 -72
  2. package/dist/abba.js +119 -165
  3. package/dist/dao/bucket.dao.d.ts +5 -0
  4. package/dist/dao/bucket.dao.js +15 -0
  5. package/dist/dao/experiment.dao.d.ts +10 -0
  6. package/dist/dao/experiment.dao.js +19 -0
  7. package/dist/dao/userAssignment.dao.d.ts +5 -0
  8. package/dist/dao/userAssignment.dao.js +15 -0
  9. package/dist/index.d.ts +0 -1
  10. package/dist/index.js +1 -1
  11. package/dist/migrations/init.sql +47 -0
  12. package/dist/types.d.ts +30 -7
  13. package/dist/util.d.ts +5 -21
  14. package/dist/util.js +0 -16
  15. package/package.json +9 -9
  16. package/readme.md +14 -15
  17. package/src/abba.ts +160 -191
  18. package/src/dao/bucket.dao.ts +13 -0
  19. package/src/dao/experiment.dao.ts +22 -0
  20. package/src/dao/userAssignment.dao.ts +13 -0
  21. package/src/index.ts +0 -3
  22. package/src/migrations/init.sql +47 -0
  23. package/src/types.ts +41 -7
  24. package/src/util.ts +5 -21
  25. package/dist/prisma-output/index-browser.js +0 -141
  26. package/dist/prisma-output/index.d.ts +0 -5526
  27. package/dist/prisma-output/index.js +0 -217
  28. package/dist/prisma-output/libquery_engine-darwin-arm64.dylib.node +0 -0
  29. package/dist/prisma-output/libquery_engine-darwin.dylib.node +0 -0
  30. package/dist/prisma-output/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  31. package/dist/prisma-output/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  32. package/dist/prisma-output/runtime/esm/index-browser.mjs +0 -2370
  33. package/dist/prisma-output/runtime/esm/index.mjs +0 -40587
  34. package/dist/prisma-output/runtime/esm/proxy.mjs +0 -113
  35. package/dist/prisma-output/runtime/index-browser.d.ts +0 -269
  36. package/dist/prisma-output/runtime/index-browser.js +0 -2621
  37. package/dist/prisma-output/runtime/index.d.ts +0 -1384
  38. package/dist/prisma-output/runtime/index.js +0 -59183
  39. package/dist/prisma-output/runtime/proxy.d.ts +0 -1384
  40. package/dist/prisma-output/runtime/proxy.js +0 -13576
  41. package/dist/prisma-output/schema.prisma +0 -47
  42. package/src/prisma-output/index-browser.js +0 -141
  43. package/src/prisma-output/index.d.ts +0 -5526
  44. package/src/prisma-output/index.js +0 -217
  45. package/src/prisma-output/libquery_engine-darwin-arm64.dylib.node +0 -0
  46. package/src/prisma-output/libquery_engine-darwin.dylib.node +0 -0
  47. package/src/prisma-output/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  48. package/src/prisma-output/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  49. package/src/prisma-output/runtime/esm/index-browser.mjs +0 -2370
  50. package/src/prisma-output/runtime/esm/index.mjs +0 -40587
  51. package/src/prisma-output/runtime/esm/proxy.mjs +0 -113
  52. package/src/prisma-output/runtime/index-browser.d.ts +0 -269
  53. package/src/prisma-output/runtime/index-browser.js +0 -2621
  54. package/src/prisma-output/runtime/index.d.ts +0 -1384
  55. package/src/prisma-output/runtime/index.js +0 -59183
  56. package/src/prisma-output/runtime/proxy.d.ts +0 -1384
  57. package/src/prisma-output/runtime/proxy.js +0 -13576
  58. package/src/prisma-output/schema.prisma +0 -47
@@ -1,1384 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import { inspect } from 'util'
4
-
5
- declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw'
6
-
7
- declare class Arg {
8
- key: string
9
- value: ArgValue
10
- error?: InvalidArgError
11
- hasError: boolean
12
- isEnum: boolean
13
- schemaArg?: DMMF.SchemaArg
14
- isNullable: boolean
15
- inputType?: DMMF.SchemaArgInputType
16
- constructor({ key, value, isEnum, error, schemaArg, inputType }: ArgOptions)
17
- get [Symbol.toStringTag](): string
18
- _toString(value: ArgValue, key: string): string | undefined
19
- toString(): string | undefined
20
- collectErrors(): ArgError[]
21
- }
22
-
23
- declare interface ArgError {
24
- path: string[]
25
- id?: string
26
- error: InvalidArgError
27
- }
28
-
29
- declare interface ArgOptions {
30
- key: string
31
- value: ArgValue
32
- isEnum?: boolean
33
- error?: InvalidArgError
34
- schemaArg?: DMMF.SchemaArg
35
- inputType?: DMMF.SchemaArgInputType
36
- }
37
-
38
- declare class Args {
39
- args: Arg[]
40
- readonly hasInvalidArg: boolean
41
- constructor(args?: Arg[])
42
- get [Symbol.toStringTag](): string
43
- toString(): string
44
- collectErrors(): ArgError[]
45
- }
46
-
47
- declare type ArgValue =
48
- | string
49
- | boolean
50
- | number
51
- | undefined
52
- | Args
53
- | string[]
54
- | boolean[]
55
- | number[]
56
- | Args[]
57
- | null
58
-
59
- declare interface AtLeastOneError {
60
- type: 'atLeastOne'
61
- key: string
62
- inputType: DMMF.InputType
63
- }
64
-
65
- declare interface AtMostOneError {
66
- type: 'atMostOne'
67
- key: string
68
- inputType: DMMF.InputType
69
- providedKeys: string[]
70
- }
71
-
72
- declare interface BinaryTargetsEnvValue {
73
- fromEnvVar: null | string
74
- value: string
75
- }
76
-
77
- declare interface Client_2 {
78
- /** Only via tx proxy */
79
- [TX_ID]?: string
80
- _dmmf: DMMFClass
81
- _engine: Engine
82
- _fetcher: RequestHandler
83
- _connectionPromise?: Promise<any>
84
- _disconnectionPromise?: Promise<any>
85
- _engineConfig: EngineConfig
86
- _clientVersion: string
87
- _errorFormat: ErrorFormat
88
- $use<T>(arg0: Namespace | QueryMiddleware<T>, arg1?: QueryMiddleware | EngineMiddleware<T>): any
89
- $on(eventType: EngineEventType, callback: (event: any) => void): any
90
- $connect(): any
91
- $disconnect(): any
92
- _runDisconnect(): any
93
- $executeRaw(query: TemplateStringsArray | sqlTemplateTag.Sql, ...values: any[]): any
94
- $queryRaw(query: TemplateStringsArray | sqlTemplateTag.Sql, ...values: any[]): any
95
- __internal_triggerPanic(fatal: boolean): any
96
- $transaction(input: any, options?: any): any
97
- _request(internalParams: InternalRequestParams): Promise<any>
98
- }
99
-
100
- declare type ConnectorType =
101
- | 'mysql'
102
- | 'mongodb'
103
- | 'sqlite'
104
- | 'postgresql'
105
- | 'sqlserver'
106
- | 'jdbc:sqlserver'
107
- | 'cockroachdb'
108
-
109
- declare type ConnectorType_2 =
110
- | 'mysql'
111
- | 'mongodb'
112
- | 'sqlite'
113
- | 'postgresql'
114
- | 'sqlserver'
115
- | 'jdbc:sqlserver'
116
- | 'cockroachdb'
117
-
118
- declare interface Context {
119
- /**
120
- * Get a value from the context.
121
- *
122
- * @param key key which identifies a context value
123
- */
124
- getValue(key: symbol): unknown
125
- /**
126
- * Create a new context which inherits from this context and has
127
- * the given key set to the given value.
128
- *
129
- * @param key context key for which to set the value
130
- * @param value value to set for the given key
131
- */
132
- setValue(key: symbol, value: unknown): Context
133
- /**
134
- * Return a new context which inherits from this context but does
135
- * not contain a value for the given key.
136
- *
137
- * @param key context key for which to clear a value
138
- */
139
- deleteValue(key: symbol): Context
140
- }
141
-
142
- declare class DataLoader<T = unknown> {
143
- private options
144
- batches: {
145
- [key: string]: Job[]
146
- }
147
- private tickActive
148
- constructor(options: DataLoaderOptions<T>)
149
- request(request: T): Promise<any>
150
- private dispatchBatches
151
- get [Symbol.toStringTag](): string
152
- }
153
-
154
- declare type DataLoaderOptions<T> = {
155
- singleLoader: (request: T) => Promise<any>
156
- batchLoader: (request: T[]) => Promise<any[]>
157
- batchBy: (request: T) => string | undefined
158
- }
159
-
160
- declare interface DataSource {
161
- name: string
162
- activeProvider: ConnectorType_2
163
- provider: ConnectorType_2
164
- url: EnvValue
165
- config: {
166
- [key: string]: string
167
- }
168
- }
169
-
170
- declare type Datasource = {
171
- url?: string
172
- }
173
-
174
- declare interface DatasourceOverwrite {
175
- name: string
176
- url?: string
177
- env?: string
178
- }
179
-
180
- declare type Datasources = {
181
- [name in string]: Datasource
182
- }
183
-
184
- export declare namespace Decimal {
185
- export type Constructor = typeof Decimal
186
- export type Instance = Decimal
187
- export type Rounding = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
188
- export type Modulo = Rounding | 9
189
- export type Value = string | number | Decimal
190
-
191
- // http://mikemcl.github.io/decimal.js/#constructor-properties
192
- export interface Config {
193
- precision?: number
194
- rounding?: Rounding
195
- toExpNeg?: number
196
- toExpPos?: number
197
- minE?: number
198
- maxE?: number
199
- crypto?: boolean
200
- modulo?: Modulo
201
- defaults?: boolean
202
- }
203
- }
204
-
205
- export declare class Decimal {
206
- readonly d: number[]
207
- readonly e: number
208
- readonly s: number
209
- private readonly toStringTag: string
210
-
211
- constructor(n: Decimal.Value)
212
-
213
- absoluteValue(): Decimal
214
- abs(): Decimal
215
-
216
- ceil(): Decimal
217
-
218
- clampedTo(min: Decimal.Value, max: Decimal.Value): Decimal
219
- clamp(min: Decimal.Value, max: Decimal.Value): Decimal
220
-
221
- comparedTo(n: Decimal.Value): number
222
- cmp(n: Decimal.Value): number
223
-
224
- cosine(): Decimal
225
- cos(): Decimal
226
-
227
- cubeRoot(): Decimal
228
- cbrt(): Decimal
229
-
230
- decimalPlaces(): number
231
- dp(): number
232
-
233
- dividedBy(n: Decimal.Value): Decimal
234
- div(n: Decimal.Value): Decimal
235
-
236
- dividedToIntegerBy(n: Decimal.Value): Decimal
237
- divToInt(n: Decimal.Value): Decimal
238
-
239
- equals(n: Decimal.Value): boolean
240
- eq(n: Decimal.Value): boolean
241
-
242
- floor(): Decimal
243
-
244
- greaterThan(n: Decimal.Value): boolean
245
- gt(n: Decimal.Value): boolean
246
-
247
- greaterThanOrEqualTo(n: Decimal.Value): boolean
248
- gte(n: Decimal.Value): boolean
249
-
250
- hyperbolicCosine(): Decimal
251
- cosh(): Decimal
252
-
253
- hyperbolicSine(): Decimal
254
- sinh(): Decimal
255
-
256
- hyperbolicTangent(): Decimal
257
- tanh(): Decimal
258
-
259
- inverseCosine(): Decimal
260
- acos(): Decimal
261
-
262
- inverseHyperbolicCosine(): Decimal
263
- acosh(): Decimal
264
-
265
- inverseHyperbolicSine(): Decimal
266
- asinh(): Decimal
267
-
268
- inverseHyperbolicTangent(): Decimal
269
- atanh(): Decimal
270
-
271
- inverseSine(): Decimal
272
- asin(): Decimal
273
-
274
- inverseTangent(): Decimal
275
- atan(): Decimal
276
-
277
- isFinite(): boolean
278
-
279
- isInteger(): boolean
280
- isInt(): boolean
281
-
282
- isNaN(): boolean
283
-
284
- isNegative(): boolean
285
- isNeg(): boolean
286
-
287
- isPositive(): boolean
288
- isPos(): boolean
289
-
290
- isZero(): boolean
291
-
292
- lessThan(n: Decimal.Value): boolean
293
- lt(n: Decimal.Value): boolean
294
-
295
- lessThanOrEqualTo(n: Decimal.Value): boolean
296
- lte(n: Decimal.Value): boolean
297
-
298
- logarithm(n?: Decimal.Value): Decimal
299
- log(n?: Decimal.Value): Decimal
300
-
301
- minus(n: Decimal.Value): Decimal
302
- sub(n: Decimal.Value): Decimal
303
-
304
- modulo(n: Decimal.Value): Decimal
305
- mod(n: Decimal.Value): Decimal
306
-
307
- naturalExponential(): Decimal
308
- exp(): Decimal
309
-
310
- naturalLogarithm(): Decimal
311
- ln(): Decimal
312
-
313
- negated(): Decimal
314
- neg(): Decimal
315
-
316
- plus(n: Decimal.Value): Decimal
317
- add(n: Decimal.Value): Decimal
318
-
319
- precision(includeZeros?: boolean): number
320
- sd(includeZeros?: boolean): number
321
-
322
- round(): Decimal
323
-
324
- sine(): Decimal
325
- sin(): Decimal
326
-
327
- squareRoot(): Decimal
328
- sqrt(): Decimal
329
-
330
- tangent(): Decimal
331
- tan(): Decimal
332
-
333
- times(n: Decimal.Value): Decimal
334
- mul(n: Decimal.Value): Decimal
335
-
336
- toBinary(significantDigits?: number): string
337
- toBinary(significantDigits: number, rounding: Decimal.Rounding): string
338
-
339
- toDecimalPlaces(decimalPlaces?: number): Decimal
340
- toDecimalPlaces(decimalPlaces: number, rounding: Decimal.Rounding): Decimal
341
- toDP(decimalPlaces?: number): Decimal
342
- toDP(decimalPlaces: number, rounding: Decimal.Rounding): Decimal
343
-
344
- toExponential(decimalPlaces?: number): string
345
- toExponential(decimalPlaces: number, rounding: Decimal.Rounding): string
346
-
347
- toFixed(decimalPlaces?: number): string
348
- toFixed(decimalPlaces: number, rounding: Decimal.Rounding): string
349
-
350
- toFraction(max_denominator?: Decimal.Value): Decimal[]
351
-
352
- toHexadecimal(significantDigits?: number): string
353
- toHexadecimal(significantDigits: number, rounding: Decimal.Rounding): string
354
- toHex(significantDigits?: number): string
355
- toHex(significantDigits: number, rounding?: Decimal.Rounding): string
356
-
357
- toJSON(): string
358
-
359
- toNearest(n: Decimal.Value, rounding?: Decimal.Rounding): Decimal
360
-
361
- toNumber(): number
362
-
363
- toOctal(significantDigits?: number): string
364
- toOctal(significantDigits: number, rounding: Decimal.Rounding): string
365
-
366
- toPower(n: Decimal.Value): Decimal
367
- pow(n: Decimal.Value): Decimal
368
-
369
- toPrecision(significantDigits?: number): string
370
- toPrecision(significantDigits: number, rounding: Decimal.Rounding): string
371
-
372
- toSignificantDigits(significantDigits?: number): Decimal
373
- toSignificantDigits(significantDigits: number, rounding: Decimal.Rounding): Decimal
374
- toSD(significantDigits?: number): Decimal
375
- toSD(significantDigits: number, rounding: Decimal.Rounding): Decimal
376
-
377
- toString(): string
378
-
379
- truncated(): Decimal
380
- trunc(): Decimal
381
-
382
- valueOf(): string
383
-
384
- static abs(n: Decimal.Value): Decimal
385
- static acos(n: Decimal.Value): Decimal
386
- static acosh(n: Decimal.Value): Decimal
387
- static add(x: Decimal.Value, y: Decimal.Value): Decimal
388
- static asin(n: Decimal.Value): Decimal
389
- static asinh(n: Decimal.Value): Decimal
390
- static atan(n: Decimal.Value): Decimal
391
- static atanh(n: Decimal.Value): Decimal
392
- static atan2(y: Decimal.Value, x: Decimal.Value): Decimal
393
- static cbrt(n: Decimal.Value): Decimal
394
- static ceil(n: Decimal.Value): Decimal
395
- static clamp(n: Decimal.Value, min: Decimal.Value, max: Decimal.Value): Decimal
396
- static clone(object?: Decimal.Config): Decimal.Constructor
397
- static config(object: Decimal.Config): Decimal.Constructor
398
- static cos(n: Decimal.Value): Decimal
399
- static cosh(n: Decimal.Value): Decimal
400
- static div(x: Decimal.Value, y: Decimal.Value): Decimal
401
- static exp(n: Decimal.Value): Decimal
402
- static floor(n: Decimal.Value): Decimal
403
- static hypot(...n: Decimal.Value[]): Decimal
404
- static isDecimal(object: any): boolean
405
- static ln(n: Decimal.Value): Decimal
406
- static log(n: Decimal.Value, base?: Decimal.Value): Decimal
407
- static log2(n: Decimal.Value): Decimal
408
- static log10(n: Decimal.Value): Decimal
409
- static max(...n: Decimal.Value[]): Decimal
410
- static min(...n: Decimal.Value[]): Decimal
411
- static mod(x: Decimal.Value, y: Decimal.Value): Decimal
412
- static mul(x: Decimal.Value, y: Decimal.Value): Decimal
413
- static noConflict(): Decimal.Constructor // Browser only
414
- static pow(base: Decimal.Value, exponent: Decimal.Value): Decimal
415
- static random(significantDigits?: number): Decimal
416
- static round(n: Decimal.Value): Decimal
417
- static set(object: Decimal.Config): Decimal.Constructor
418
- static sign(n: Decimal.Value): Decimal
419
- static sin(n: Decimal.Value): Decimal
420
- static sinh(n: Decimal.Value): Decimal
421
- static sqrt(n: Decimal.Value): Decimal
422
- static sub(x: Decimal.Value, y: Decimal.Value): Decimal
423
- static sum(...n: Decimal.Value[]): Decimal
424
- static tan(n: Decimal.Value): Decimal
425
- static tanh(n: Decimal.Value): Decimal
426
- static trunc(n: Decimal.Value): Decimal
427
-
428
- static readonly default?: Decimal.Constructor
429
- static readonly Decimal?: Decimal.Constructor
430
-
431
- static readonly precision: number
432
- static readonly rounding: Decimal.Rounding
433
- static readonly toExpNeg: number
434
- static readonly toExpPos: number
435
- static readonly minE: number
436
- static readonly maxE: number
437
- static readonly crypto: boolean
438
- static readonly modulo: Decimal.Modulo
439
-
440
- static readonly ROUND_UP: 0
441
- static readonly ROUND_DOWN: 1
442
- static readonly ROUND_CEIL: 2
443
- static readonly ROUND_FLOOR: 3
444
- static readonly ROUND_HALF_UP: 4
445
- static readonly ROUND_HALF_DOWN: 5
446
- static readonly ROUND_HALF_EVEN: 6
447
- static readonly ROUND_HALF_CEIL: 7
448
- static readonly ROUND_HALF_FLOOR: 8
449
- static readonly EUCLID: 9
450
- }
451
-
452
- export declare const decompressFromBase64: any
453
-
454
- declare interface Dictionary<T> {
455
- [key: string]: T
456
- }
457
-
458
- declare type Dictionary_2<T> = {
459
- [key: string]: T
460
- }
461
-
462
- export declare namespace DMMF {
463
- export interface Document {
464
- datamodel: Datamodel
465
- schema: Schema
466
- mappings: Mappings
467
- }
468
- export interface Mappings {
469
- modelOperations: ModelMapping[]
470
- otherOperations: {
471
- read: string[]
472
- write: string[]
473
- }
474
- }
475
- export interface OtherOperationMappings {
476
- read: string[]
477
- write: string[]
478
- }
479
- export interface DatamodelEnum {
480
- name: string
481
- values: EnumValue[]
482
- dbName?: string | null
483
- documentation?: string
484
- }
485
- export interface SchemaEnum {
486
- name: string
487
- values: string[]
488
- }
489
- export interface EnumValue {
490
- name: string
491
- dbName: string | null
492
- }
493
- export interface Datamodel {
494
- models: Model[]
495
- enums: DatamodelEnum[]
496
- types: Model[]
497
- }
498
- export interface uniqueIndex {
499
- name: string
500
- fields: string[]
501
- }
502
- export interface PrimaryKey {
503
- name: string | null
504
- fields: string[]
505
- }
506
- export interface Model {
507
- name: string
508
- dbName: string | null
509
- fields: Field[]
510
- fieldMap?: Record<string, Field>
511
- uniqueFields: string[][]
512
- uniqueIndexes: uniqueIndex[]
513
- documentation?: string
514
- primaryKey: PrimaryKey | null
515
- [key: string]: any
516
- }
517
- export type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported'
518
- export type FieldNamespace = 'model' | 'prisma'
519
- export type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes'
520
- export interface Field {
521
- kind: FieldKind
522
- name: string
523
- isRequired: boolean
524
- isList: boolean
525
- isUnique: boolean
526
- isId: boolean
527
- isReadOnly: boolean
528
- isGenerated?: boolean
529
- isUpdatedAt?: boolean
530
- /**
531
- * Describes the data type in the same the way is is defined in the Prisma schema:
532
- * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
533
- */
534
- type: string
535
- dbNames?: string[] | null
536
- hasDefaultValue: boolean
537
- default?: FieldDefault | string | boolean | number
538
- relationFromFields?: string[]
539
- relationToFields?: any[]
540
- relationOnDelete?: string
541
- relationName?: string
542
- documentation?: string
543
- [key: string]: any
544
- }
545
- export interface FieldDefault {
546
- name: string
547
- args: any[]
548
- }
549
- export interface Schema {
550
- rootQueryType?: string
551
- rootMutationType?: string
552
- inputObjectTypes: {
553
- model?: InputType[]
554
- prisma: InputType[]
555
- }
556
- outputObjectTypes: {
557
- model: OutputType[]
558
- prisma: OutputType[]
559
- }
560
- enumTypes: {
561
- model?: SchemaEnum[]
562
- prisma: SchemaEnum[]
563
- }
564
- }
565
- export interface Query {
566
- name: string
567
- args: SchemaArg[]
568
- output: QueryOutput
569
- }
570
- export interface QueryOutput {
571
- name: string
572
- isRequired: boolean
573
- isList: boolean
574
- }
575
- export type ArgType = string | InputType | SchemaEnum
576
- export interface SchemaArgInputType {
577
- isList: boolean
578
- type: ArgType
579
- location: FieldLocation
580
- namespace?: FieldNamespace
581
- }
582
- export interface SchemaArg {
583
- name: string
584
- comment?: string
585
- isNullable: boolean
586
- isRequired: boolean
587
- inputTypes: SchemaArgInputType[]
588
- deprecation?: Deprecation
589
- }
590
- export interface OutputType {
591
- name: string
592
- fields: SchemaField[]
593
- fieldMap?: Record<string, SchemaField>
594
- }
595
- export interface SchemaField {
596
- name: string
597
- isNullable?: boolean
598
- outputType: {
599
- type: string | OutputType | SchemaEnum
600
- isList: boolean
601
- location: FieldLocation
602
- namespace?: FieldNamespace
603
- }
604
- args: SchemaArg[]
605
- deprecation?: Deprecation
606
- documentation?: string
607
- }
608
- export interface Deprecation {
609
- sinceVersion: string
610
- reason: string
611
- plannedRemovalVersion?: string
612
- }
613
- export interface InputType {
614
- name: string
615
- constraints: {
616
- maxNumFields: number | null
617
- minNumFields: number | null
618
- }
619
- fields: SchemaArg[]
620
- fieldMap?: Record<string, SchemaArg>
621
- }
622
- export interface ModelMapping {
623
- model: string
624
- plural: string
625
- findUnique?: string | null
626
- findFirst?: string | null
627
- findMany?: string | null
628
- create?: string | null
629
- createMany?: string | null
630
- update?: string | null
631
- updateMany?: string | null
632
- upsert?: string | null
633
- delete?: string | null
634
- deleteMany?: string | null
635
- aggregate?: string | null
636
- groupBy?: string | null
637
- count?: string | null
638
- findRaw?: string | null
639
- aggregateRaw?: string | null
640
- }
641
- export enum ModelAction {
642
- findUnique = 'findUnique',
643
- findFirst = 'findFirst',
644
- findMany = 'findMany',
645
- create = 'create',
646
- createMany = 'createMany',
647
- update = 'update',
648
- updateMany = 'updateMany',
649
- upsert = 'upsert',
650
- delete = 'delete',
651
- deleteMany = 'deleteMany',
652
- groupBy = 'groupBy',
653
- count = 'count',
654
- aggregate = 'aggregate',
655
- findRaw = 'findRaw',
656
- aggregateRaw = 'aggregateRaw',
657
- }
658
- }
659
-
660
- export declare class DMMFClass implements DMMF.Document {
661
- datamodel: DMMF.Datamodel
662
- schema: DMMF.Schema
663
- mappings: DMMF.Mappings
664
- queryType: DMMF.OutputType
665
- mutationType: DMMF.OutputType
666
- outputTypes: {
667
- model: DMMF.OutputType[]
668
- prisma: DMMF.OutputType[]
669
- }
670
- outputTypeMap: Dictionary<DMMF.OutputType>
671
- inputObjectTypes: {
672
- model?: DMMF.InputType[]
673
- prisma: DMMF.InputType[]
674
- }
675
- inputTypeMap: Dictionary<DMMF.InputType>
676
- enumMap: Dictionary<DMMF.SchemaEnum>
677
- datamodelEnumMap: Dictionary<DMMF.DatamodelEnum>
678
- modelMap: Dictionary<DMMF.Model>
679
- typeMap: Dictionary<DMMF.Model>
680
- typeAndModelMap: Dictionary<DMMF.Model>
681
- mappingsMap: Dictionary<DMMF.ModelMapping>
682
- rootFieldMap: Dictionary<DMMF.SchemaField>
683
- constructor({ datamodel, schema, mappings }: DMMF.Document)
684
- get [Symbol.toStringTag](): string
685
- protected outputTypeToMergedOutputType: (outputType: DMMF.OutputType) => DMMF.OutputType
686
- protected resolveOutputTypes(): void
687
- protected resolveInputTypes(): void
688
- protected resolveFieldArgumentTypes(): void
689
- protected getQueryType(): DMMF.OutputType
690
- protected getMutationType(): DMMF.OutputType
691
- protected getOutputTypes(): {
692
- model: DMMF.OutputType[]
693
- prisma: DMMF.OutputType[]
694
- }
695
- protected getDatamodelEnumMap(): Dictionary<DMMF.DatamodelEnum>
696
- protected getEnumMap(): Dictionary<DMMF.SchemaEnum>
697
- protected getModelMap(): Dictionary<DMMF.Model>
698
- protected getTypeMap(): Dictionary<DMMF.Model>
699
- protected getTypeModelMap(): Dictionary<DMMF.Model>
700
- protected getMergedOutputTypeMap(): Dictionary<DMMF.OutputType>
701
- protected getInputTypeMap(): Dictionary<DMMF.InputType>
702
- protected getMappingsMap(): Dictionary<DMMF.ModelMapping>
703
- protected getRootFieldMap(): Dictionary<DMMF.SchemaField>
704
- }
705
-
706
- declare class Document {
707
- readonly type: 'query' | 'mutation'
708
- readonly children: Field[]
709
- constructor(type: 'query' | 'mutation', children: Field[])
710
- get [Symbol.toStringTag](): string
711
- toString(): string
712
- validate(
713
- select?: any,
714
- isTopLevelQuery?: boolean,
715
- originalMethod?: string,
716
- errorFormat?: 'pretty' | 'minimal' | 'colorless',
717
- validationCallsite?: any,
718
- ): void
719
- protected printFieldError: (
720
- { error }: FieldError,
721
- missingItems: MissingItem[],
722
- minimal: boolean,
723
- ) => string | undefined
724
- protected printArgError: (
725
- { error, path, id }: ArgError,
726
- hasMissingItems: boolean,
727
- minimal: boolean,
728
- ) => string | undefined
729
- /**
730
- * As we're allowing both single objects and array of objects for list inputs, we need to remove incorrect
731
- * zero indexes from the path
732
- * @param inputPath e.g. ['where', 'AND', 0, 'id']
733
- * @param select select object
734
- */
735
- private normalizePath
736
- }
737
-
738
- declare interface DocumentInput {
739
- dmmf: DMMFClass
740
- rootTypeName: 'query' | 'mutation'
741
- rootField: string
742
- select?: any
743
- }
744
-
745
- /**
746
- * Placeholder value for "no text".
747
- */
748
- export declare const empty: Sql
749
-
750
- declare interface EmptyIncludeError {
751
- type: 'emptyInclude'
752
- field: DMMF.SchemaField
753
- }
754
-
755
- declare interface EmptySelectError {
756
- type: 'emptySelect'
757
- field: DMMF.SchemaField
758
- }
759
-
760
- export declare abstract class Engine {
761
- abstract on(event: EngineEventType, listener: (args?: any) => any): void
762
- abstract start(): Promise<void>
763
- abstract stop(): Promise<void>
764
- abstract getConfig(): Promise<GetConfigResult>
765
- abstract version(forceRun?: boolean): Promise<string> | string
766
- abstract request<T>(
767
- query: string,
768
- headers?: QueryEngineRequestHeaders,
769
- numTry?: number,
770
- ): Promise<QueryEngineResult<T>>
771
- abstract requestBatch<T>(
772
- queries: string[],
773
- headers?: QueryEngineRequestHeaders,
774
- transaction?: boolean,
775
- numTry?: number,
776
- ): Promise<QueryEngineResult<T>[]>
777
- abstract transaction(action: 'start', options?: Transaction.Options): Promise<Transaction.Info>
778
- abstract transaction(action: 'commit', info: Transaction.Info): Promise<void>
779
- abstract transaction(action: 'rollback', info: Transaction.Info): Promise<void>
780
- }
781
-
782
- declare interface EngineConfig {
783
- cwd?: string
784
- dirname?: string
785
- datamodelPath: string
786
- enableDebugLogs?: boolean
787
- allowTriggerPanic?: boolean
788
- prismaPath?: string
789
- fetcher?: (query: string) => Promise<{
790
- data?: any
791
- error?: any
792
- }>
793
- generator?: GeneratorConfig
794
- datasources?: DatasourceOverwrite[]
795
- showColors?: boolean
796
- logQueries?: boolean
797
- logLevel?: 'info' | 'warn'
798
- env?: Record<string, string>
799
- flags?: string[]
800
- clientVersion?: string
801
- previewFeatures?: string[]
802
- engineEndpoint?: string
803
- activeProvider?: string
804
- /**
805
- * The contents of the schema encoded into a string
806
- * @remarks only used for the purpose of data proxy
807
- */
808
- inlineSchema?: string
809
- /**
810
- * The contents of the datasource url saved in a string
811
- * @remarks only used for the purpose of data proxy
812
- */
813
- inlineDatasources?: any
814
- /**
815
- * The string hash that was produced for a given schema
816
- * @remarks only used for the purpose of data proxy
817
- */
818
- inlineSchemaHash?: string
819
- }
820
-
821
- declare type EngineEventType = 'query' | 'info' | 'warn' | 'error' | 'beforeExit'
822
-
823
- declare type EngineMiddleware<T = unknown> = (
824
- params: EngineMiddlewareParams,
825
- next: (params: EngineMiddlewareParams) => Promise<{
826
- data: T
827
- elapsed: number
828
- }>,
829
- ) => Promise<{
830
- data: T
831
- elapsed: number
832
- }>
833
-
834
- declare type EngineMiddlewareParams = {
835
- document: Document
836
- runInTransaction?: boolean
837
- }
838
-
839
- declare interface EnvValue {
840
- fromEnvVar: null | string
841
- value: string
842
- }
843
-
844
- declare interface EnvValue_2 {
845
- fromEnvVar: string | null
846
- value: string | null
847
- }
848
-
849
- declare type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
850
-
851
- declare class Field {
852
- readonly name: string
853
- readonly args?: Args
854
- readonly children?: Field[]
855
- readonly error?: InvalidFieldError
856
- readonly hasInvalidChild: boolean
857
- readonly hasInvalidArg: boolean
858
- readonly schemaField?: DMMF.SchemaField
859
- constructor({ name, args, children, error, schemaField }: FieldArgs)
860
- get [Symbol.toStringTag](): string
861
- toString(): string
862
- collectErrors(prefix?: string): {
863
- fieldErrors: FieldError[]
864
- argErrors: ArgError[]
865
- }
866
- }
867
-
868
- declare interface FieldArgs {
869
- name: string
870
- schemaField?: DMMF.SchemaField
871
- args?: Args
872
- children?: Field[]
873
- error?: InvalidFieldError
874
- }
875
-
876
- declare interface FieldError {
877
- path: string[]
878
- error: InvalidFieldError
879
- }
880
-
881
- /**
882
- * Find paths that match a set of regexes
883
- * @param root to start from
884
- * @param match to match against
885
- * @param types to select files, folders, links
886
- * @param deep to recurse in the directory tree
887
- * @param limit to limit the results
888
- * @param handler to further filter results
889
- * @param found to add to already found
890
- * @param seen to add to already seen
891
- * @returns found paths (symlinks preserved)
892
- */
893
- export declare function findSync(
894
- root: string,
895
- match: (RegExp | string)[],
896
- types?: ('f' | 'd' | 'l')[],
897
- deep?: ('d' | 'l')[],
898
- limit?: number,
899
- handler?: Handler,
900
- found?: string[],
901
- seen?: Record<string, true>,
902
- ): string[]
903
-
904
- declare interface GeneratorConfig {
905
- name: string
906
- output: EnvValue | null
907
- isCustomOutput?: boolean
908
- provider: EnvValue
909
- config: Dictionary_2<string>
910
- binaryTargets: BinaryTargetsEnvValue[]
911
- previewFeatures: string[]
912
- }
913
-
914
- declare type GetConfigResult = {
915
- datasources: DataSource[]
916
- generators: GeneratorConfig[]
917
- }
918
-
919
- export declare function getPrismaClient(
920
- config: GetPrismaClientConfig,
921
- ): new (optionsArg?: PrismaClientOptions | undefined) => Client_2
922
-
923
- /**
924
- * Config that is stored into the generated client. When the generated client is
925
- * loaded, this same config is passed to {@link getPrismaClient} which creates a
926
- * closure with that config around a non-instantiated [[PrismaClient]].
927
- */
928
- declare interface GetPrismaClientConfig {
929
- document: DMMF.Document
930
- generator?: GeneratorConfig
931
- sqliteDatasourceOverrides?: DatasourceOverwrite[]
932
- relativeEnvPaths: {
933
- rootEnvPath?: string | null
934
- schemaEnvPath?: string | null
935
- }
936
- relativePath: string
937
- dirname: string
938
- filename?: string
939
- clientVersion?: string
940
- engineVersion?: string
941
- datasourceNames: string[]
942
- activeProvider: string
943
- /**
944
- * The contents of the schema encoded into a string
945
- * @remarks only used for the purpose of data proxy
946
- */
947
- inlineSchema?: string
948
- /**
949
- * The contents of the env saved into a special object
950
- * @remarks only used for the purpose of data proxy
951
- */
952
- inlineEnv?: LoadedEnv
953
- /**
954
- * The contents of the datasource url saved in a string
955
- * @remarks only used for the purpose of data proxy
956
- */
957
- inlineDatasources?: InlineDatasources
958
- /**
959
- * The string hash that was produced for a given schema
960
- * @remarks only used for the purpose of data proxy
961
- */
962
- inlineSchemaHash?: string
963
- }
964
-
965
- declare type Handler = (base: string, item: string, type: ItemType) => boolean | string
966
-
967
- declare type HookParams = {
968
- query: string
969
- path: string[]
970
- rootField?: string
971
- typeName?: string
972
- document: any
973
- clientMethod: string
974
- args: any
975
- }
976
-
977
- declare type Hooks = {
978
- beforeRequest?: (options: HookParams) => any
979
- }
980
-
981
- declare interface IncludeAndSelectError {
982
- type: 'includeAndSelect'
983
- field: DMMF.SchemaField
984
- }
985
-
986
- declare type Info = {
987
- id: string
988
- }
989
-
990
- declare type InlineDatasources = {
991
- [name in InternalDatasource['name']]: {
992
- url: InternalDatasource['url']
993
- }
994
- }
995
-
996
- declare type InstanceRejectOnNotFound =
997
- | RejectOnNotFound
998
- | Record<string, RejectOnNotFound>
999
- | Record<string, Record<string, RejectOnNotFound>>
1000
-
1001
- declare interface InternalDatasource {
1002
- name: string
1003
- activeProvider: ConnectorType
1004
- provider: ConnectorType
1005
- url: EnvValue_2
1006
- config: any
1007
- }
1008
-
1009
- declare type InternalRequestParams = {
1010
- /**
1011
- * The original client method being called.
1012
- * Even though the rootField / operation can be changed,
1013
- * this method stays as it is, as it's what the user's
1014
- * code looks like
1015
- */
1016
- clientMethod: string
1017
- callsite?: string
1018
- /** Headers metadata that will be passed to the Engine */
1019
- headers?: Record<string, string>
1020
- transactionId?: string | number
1021
- unpacker?: Unpacker
1022
- otelCtx?: Context
1023
- lock?: PromiseLike<void>
1024
- } & QueryMiddlewareParams
1025
-
1026
- declare type InvalidArgError =
1027
- | InvalidArgNameError
1028
- | MissingArgError
1029
- | InvalidArgTypeError
1030
- | AtLeastOneError
1031
- | AtMostOneError
1032
- | InvalidNullArgError
1033
-
1034
- /**
1035
- * This error occurs if the user provides an arg name that doens't exist
1036
- */
1037
- declare interface InvalidArgNameError {
1038
- type: 'invalidName'
1039
- providedName: string
1040
- providedValue: any
1041
- didYouMeanArg?: string
1042
- didYouMeanField?: string
1043
- originalType: DMMF.ArgType
1044
- possibilities?: DMMF.SchemaArgInputType[]
1045
- outputType?: DMMF.OutputType
1046
- }
1047
-
1048
- /**
1049
- * If the scalar type of an arg is not matching what is required
1050
- */
1051
- declare interface InvalidArgTypeError {
1052
- type: 'invalidType'
1053
- argName: string
1054
- requiredType: {
1055
- bestFittingType: DMMF.SchemaArgInputType
1056
- inputType: DMMF.SchemaArgInputType[]
1057
- }
1058
- providedValue: any
1059
- }
1060
-
1061
- declare type InvalidFieldError =
1062
- | InvalidFieldNameError
1063
- | InvalidFieldTypeError
1064
- | EmptySelectError
1065
- | NoTrueSelectError
1066
- | IncludeAndSelectError
1067
- | EmptyIncludeError
1068
-
1069
- declare interface InvalidFieldNameError {
1070
- type: 'invalidFieldName'
1071
- modelName: string
1072
- didYouMean?: string | null
1073
- providedName: string
1074
- isInclude?: boolean
1075
- isIncludeScalar?: boolean
1076
- outputType: DMMF.OutputType
1077
- }
1078
-
1079
- declare interface InvalidFieldTypeError {
1080
- type: 'invalidFieldType'
1081
- modelName: string
1082
- fieldName: string
1083
- providedValue: any
1084
- }
1085
-
1086
- /**
1087
- * If a user incorrectly provided null where she shouldn't have
1088
- */
1089
- declare interface InvalidNullArgError {
1090
- type: 'invalidNullArg'
1091
- name: string
1092
- invalidType: DMMF.SchemaArgInputType[]
1093
- atLeastOne: boolean
1094
- atMostOne: boolean
1095
- }
1096
-
1097
- declare type ItemType = 'd' | 'f' | 'l'
1098
-
1099
- declare interface Job {
1100
- resolve: (data: any) => void
1101
- reject: (data: any) => void
1102
- request: any
1103
- }
1104
-
1105
- /**
1106
- * Create a SQL query for a list of values.
1107
- */
1108
- export declare function join(values: RawValue[], separator?: string): Sql
1109
-
1110
- declare type LoadedEnv =
1111
- | {
1112
- message?: string
1113
- parsed: {
1114
- [x: string]: string
1115
- }
1116
- }
1117
- | undefined
1118
-
1119
- declare type LogDefinition = {
1120
- level: LogLevel
1121
- emit: 'stdout' | 'event'
1122
- }
1123
-
1124
- declare type LogLevel = 'info' | 'query' | 'warn' | 'error'
1125
-
1126
- export declare function makeDocument({
1127
- dmmf,
1128
- rootTypeName,
1129
- rootField,
1130
- select,
1131
- }: DocumentInput): Document
1132
-
1133
- /**
1134
- * Opposite of InvalidArgNameError - if the user *doesn't* provide an arg that should be provided
1135
- * This error both happens with an implicit and explicit `undefined`
1136
- */
1137
- declare interface MissingArgError {
1138
- type: 'missingArg'
1139
- missingName: string
1140
- missingArg: DMMF.SchemaArg
1141
- atLeastOne: boolean
1142
- atMostOne: boolean
1143
- }
1144
-
1145
- declare interface MissingItem {
1146
- path: string
1147
- isRequired: boolean
1148
- type: string | object
1149
- }
1150
-
1151
- declare type Namespace = 'all' | 'engine'
1152
-
1153
- declare interface NoTrueSelectError {
1154
- type: 'noTrueSelect'
1155
- field: DMMF.SchemaField
1156
- }
1157
-
1158
- /**
1159
- * maxWait ?= 2000
1160
- * timeout ?= 5000
1161
- */
1162
- declare type Options = {
1163
- maxWait?: number
1164
- timeout?: number
1165
- }
1166
-
1167
- export declare class PrismaClientInitializationError extends Error {
1168
- clientVersion: string
1169
- errorCode?: string
1170
- constructor(message: string, clientVersion: string, errorCode?: string)
1171
- get [Symbol.toStringTag](): string
1172
- }
1173
-
1174
- export declare class PrismaClientKnownRequestError extends Error {
1175
- code: string
1176
- meta?: Record<string, unknown>
1177
- clientVersion: string
1178
- constructor(message: string, code: string, clientVersion: string, meta?: any)
1179
- get [Symbol.toStringTag](): string
1180
- }
1181
-
1182
- export declare interface PrismaClientOptions {
1183
- /**
1184
- * Will throw an Error if findUnique returns null
1185
- */
1186
- rejectOnNotFound?: InstanceRejectOnNotFound
1187
- /**
1188
- * Overwrites the datasource url from your prisma.schema file
1189
- */
1190
- datasources?: Datasources
1191
- /**
1192
- * @default "colorless"
1193
- */
1194
- errorFormat?: ErrorFormat
1195
- /**
1196
- * @example
1197
- * \`\`\`
1198
- * // Defaults to stdout
1199
- * log: ['query', 'info', 'warn']
1200
- *
1201
- * // Emit as events
1202
- * log: [
1203
- * { emit: 'stdout', level: 'query' },
1204
- * { emit: 'stdout', level: 'info' },
1205
- * { emit: 'stdout', level: 'warn' }
1206
- * ]
1207
- * \`\`\`
1208
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
1209
- */
1210
- log?: Array<LogLevel | LogDefinition>
1211
- /**
1212
- * @internal
1213
- * You probably don't want to use this. \`__internal\` is used by internal tooling.
1214
- */
1215
- __internal?: {
1216
- debug?: boolean
1217
- hooks?: Hooks
1218
- engine?: {
1219
- cwd?: string
1220
- binaryPath?: string
1221
- endpoint?: string
1222
- allowTriggerPanic?: boolean
1223
- }
1224
- }
1225
- }
1226
-
1227
- export declare class PrismaClientRustPanicError extends Error {
1228
- clientVersion: string
1229
- constructor(message: string, clientVersion: string)
1230
- get [Symbol.toStringTag](): string
1231
- }
1232
-
1233
- export declare class PrismaClientUnknownRequestError extends Error {
1234
- clientVersion: string
1235
- constructor(message: string, clientVersion: string)
1236
- get [Symbol.toStringTag](): string
1237
- }
1238
-
1239
- export declare class PrismaClientValidationError extends Error {
1240
- get [Symbol.toStringTag](): string
1241
- }
1242
-
1243
- declare type QueryEngineRequestHeaders = {
1244
- traceparent?: string
1245
- transactionId?: string
1246
- fatal?: string
1247
- }
1248
-
1249
- declare type QueryEngineResult<T> = {
1250
- data: T
1251
- elapsed: number
1252
- }
1253
-
1254
- declare type QueryMiddleware<T = unknown> = (
1255
- params: QueryMiddlewareParams,
1256
- next: (params: QueryMiddlewareParams) => Promise<T>,
1257
- ) => Promise<T>
1258
-
1259
- declare type QueryMiddlewareParams = {
1260
- /** The model this is executed on */
1261
- model?: string
1262
- /** The action that is being handled */
1263
- action: Action
1264
- /** TODO what is this */
1265
- dataPath: string[]
1266
- /** TODO what is this */
1267
- runInTransaction: boolean
1268
- /** TODO what is this */
1269
- args: any
1270
- }
1271
-
1272
- /**
1273
- * Create raw SQL statement.
1274
- */
1275
- export declare function raw(value: string): Sql
1276
-
1277
- export declare type RawValue = Value | Sql
1278
-
1279
- declare type RejectOnNotFound = boolean | ((error: Error) => Error) | undefined
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
-
1315
- declare type RequestParams = {
1316
- document: Document
1317
- dataPath: string[]
1318
- rootField: string
1319
- typeName: string
1320
- isList: boolean
1321
- clientMethod: string
1322
- callsite?: string
1323
- rejectOnNotFound?: RejectOnNotFound
1324
- runInTransaction?: boolean
1325
- showColors?: boolean
1326
- engineHook?: EngineMiddleware
1327
- args: any
1328
- headers?: Record<string, string>
1329
- transactionId?: string | number
1330
- unpacker?: Unpacker
1331
- }
1332
-
1333
- /**
1334
- * A SQL instance can be nested within each other to build SQL strings.
1335
- */
1336
- export declare class Sql {
1337
- values: Value[]
1338
- strings: string[]
1339
- constructor(rawStrings: ReadonlyArray<string>, rawValues: ReadonlyArray<RawValue>)
1340
- get text(): string
1341
- get sql(): string
1342
- [inspect.custom](): {
1343
- text: string
1344
- sql: string
1345
- values: Value[]
1346
- }
1347
- }
1348
-
1349
- /**
1350
- * Create a SQL object from a template string.
1351
- */
1352
- export declare function sqltag(strings: ReadonlyArray<string>, ...values: RawValue[]): Sql
1353
-
1354
- declare namespace sqlTemplateTag {
1355
- export { join, raw, sqltag, Value, RawValue, Sql, empty, sqltag as default }
1356
- }
1357
-
1358
- declare namespace Transaction {
1359
- export { Options, Info }
1360
- }
1361
-
1362
- export declare function transformDocument(document: Document): Document
1363
-
1364
- declare const TX_ID: unique symbol
1365
-
1366
- /**
1367
- * Unpacks the result of a data object and maps DateTime fields to instances of `Date` inplace
1368
- * @param options: UnpackOptions
1369
- */
1370
- export declare function unpack({ document, path, data }: UnpackOptions): any
1371
-
1372
- declare type Unpacker = (data: any) => any
1373
-
1374
- declare interface UnpackOptions {
1375
- document: Document
1376
- path: string[]
1377
- data: any
1378
- }
1379
-
1380
- export declare type Value = string | number | boolean | object | null | undefined
1381
-
1382
- export declare function warnEnvConflicts(envPaths: any): void
1383
-
1384
- export {}