@merkl/api 0.10.391 → 0.10.392
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/database/api/.generated/edge.js +9 -7
- package/dist/database/api/.generated/index-browser.js +4 -4
- package/dist/database/api/.generated/index.d.ts +3687 -491
- package/dist/database/api/.generated/index.js +9 -7
- package/dist/database/api/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/api/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/api/.generated/package.json +1 -1
- package/dist/database/api/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/api/.generated/runtime/edge.js +18 -18
- package/dist/database/api/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/api/.generated/runtime/library.d.ts +107 -38
- package/dist/database/api/.generated/runtime/library.js +53 -53
- package/dist/database/api/.generated/runtime/react-native.js +26 -26
- package/dist/database/api/.generated/runtime/wasm.js +19 -19
- package/dist/database/api/.generated/wasm.js +4 -4
- package/dist/database/engine/.generated/edge.js +9 -7
- package/dist/database/engine/.generated/index-browser.js +4 -4
- package/dist/database/engine/.generated/index.d.ts +1891 -257
- package/dist/database/engine/.generated/index.js +9 -7
- package/dist/database/engine/.generated/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-arm64-openssl-1.1.x.so.node +0 -0
- package/dist/database/engine/.generated/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node +0 -0
- package/dist/database/engine/.generated/package.json +1 -1
- package/dist/database/engine/.generated/runtime/edge-esm.js +18 -18
- package/dist/database/engine/.generated/runtime/edge.js +18 -18
- package/dist/database/engine/.generated/runtime/index-browser.d.ts +1 -1
- package/dist/database/engine/.generated/runtime/library.d.ts +107 -38
- package/dist/database/engine/.generated/runtime/library.js +53 -53
- package/dist/database/engine/.generated/runtime/react-native.js +26 -26
- package/dist/database/engine/.generated/runtime/wasm.js +19 -19
- package/dist/database/engine/.generated/wasm.js +4 -4
- package/dist/src/backgroundJobs/jobs/campaignsCacheUpdater.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/health.d.ts +12 -2
- package/dist/src/backgroundJobs/jobs/opportunityUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/priceUpdater.d.ts +3 -2
- package/dist/src/backgroundJobs/jobs/sync.d.ts +12 -2
- package/dist/src/eden/index.d.ts +4021 -117
- package/dist/src/entities/opportunity.js +1 -1
- package/dist/src/hooks/checkQueryAddressValidity.d.ts +3 -2
- package/dist/src/hooks/checkQueryChainIdValidity.d.ts +3 -2
- package/dist/src/index.d.ts +1343 -49
- package/dist/src/internal/controllers/endingCampaigns.d.ts +12 -2
- package/dist/src/internal/controllers/unclaimed.d.ts +12 -2
- package/dist/src/jobs/etl/pendings.js +1 -1
- package/dist/src/jobs/etl/reward-breakdowns.js +55 -52
- package/dist/src/jobs/etl/rewards.js +37 -35
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +5 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.js +8 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/AaveProcessor.js +2 -3
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/processor/processorMapping.js +4 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesRound1.js +8 -0
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +66 -2
- package/dist/src/modules/v4/blacklist/blacklist.controller.d.ts +30 -2
- package/dist/src/modules/v4/boost/boost.controller.d.ts +12 -2
- package/dist/src/modules/v4/bucket/bucket.service.d.ts +1 -1
- package/dist/src/modules/v4/bucket/bucket.service.js +5 -0
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +78 -5
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +6 -6
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +4 -4
- package/dist/src/modules/v4/chain/chain.controller.d.ts +39 -2
- package/dist/src/modules/v4/claims/claims.controller.d.ts +12 -2
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +39 -2
- package/dist/src/modules/v4/creator/creator.controller.d.ts +39 -2
- package/dist/src/modules/v4/dungeonKeeper/dungeonKeeper.controller.d.ts +3 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.controller.d.ts +31 -3
- package/dist/src/modules/v4/enso/enso.service.d.ts +1 -1
- package/dist/src/modules/v4/explorer/explorer.controller.d.ts +12 -2
- package/dist/src/modules/v4/interaction/interaction.controller.d.ts +31 -3
- package/dist/src/modules/v4/liquidity/liquidity.controller.d.ts +12 -2
- package/dist/src/modules/v4/merklRoot/merklRoot.controller.d.ts +21 -2
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +118 -18
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +30 -30
- package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +12 -12
- package/dist/src/modules/v4/price/price.controller.d.ts +48 -2
- package/dist/src/modules/v4/programPayload/programPayload.controller.d.ts +75 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +0 -1
- package/dist/src/modules/v4/programPayload/programPayload.repository.js +3 -10
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +46 -9
- package/dist/src/modules/v4/protocol/protocol.repository.d.ts +5 -5
- package/dist/src/modules/v4/protocol/protocol.service.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +111 -2
- package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -3
- package/dist/src/modules/v4/reward/reward.service.d.ts +18 -18
- package/dist/src/modules/v4/router.d.ts +973 -36
- package/dist/src/modules/v4/status/status.controller.d.ts +48 -2
- package/dist/src/modules/v4/token/token.controller.d.ts +75 -2
- package/dist/src/modules/v4/uniswapV4/uniswapV4.controller.d.ts +12 -2
- package/dist/src/modules/v4/user/user.controller.d.ts +90 -8
- package/dist/src/plugins/error-handling.plugin.d.ts +3 -2
- package/dist/src/plugins/logger.plugin.d.ts +3 -2
- package/dist/src/routes/v1/allowances.d.ts +12 -2
- package/dist/src/routes/v1/balances.d.ts +12 -2
- package/dist/src/routes/v1/prices.d.ts +12 -2
- package/dist/src/routes/v1/router.d.ts +39 -2
- package/dist/src/routes/v1/tokens.d.ts +12 -2
- package/dist/src/routes/v2/merkl.d.ts +12 -2
- package/dist/src/routes/v2/router.d.ts +12 -2
- package/dist/src/routes/v3/app.d.ts +12 -2
- package/dist/src/routes/v3/blacklist.d.ts +12 -2
- package/dist/src/routes/v3/campaign/delay.d.ts +12 -2
- package/dist/src/routes/v3/campaignClaims.d.ts +12 -2
- package/dist/src/routes/v3/campaignReport.d.ts +12 -2
- package/dist/src/routes/v3/campaignUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/campaignsForMainParameter.d.ts +12 -2
- package/dist/src/routes/v3/campaignsInfo.d.ts +12 -2
- package/dist/src/routes/v3/campaignsRewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/claims.d.ts +12 -2
- package/dist/src/routes/v3/compoundV2.d.ts +12 -2
- package/dist/src/routes/v3/createCampaign.d.ts +12 -2
- package/dist/src/routes/v3/dolomite.d.ts +12 -2
- package/dist/src/routes/v3/euler.d.ts +12 -2
- package/dist/src/routes/v3/exports/campaigns.d.ts +12 -2
- package/dist/src/routes/v3/fetch.d.ts +12 -2
- package/dist/src/routes/v3/health.d.ts +12 -2
- package/dist/src/routes/v3/lostyield.d.ts +12 -2
- package/dist/src/routes/v3/merkl.d.ts +3 -2
- package/dist/src/routes/v3/morphoMarkets.d.ts +12 -2
- package/dist/src/routes/v3/morphoVaults.d.ts +12 -2
- package/dist/src/routes/v3/multiChainPositions.d.ts +12 -2
- package/dist/src/routes/v3/opportunity.d.ts +12 -2
- package/dist/src/routes/v3/overview.d.ts +12 -2
- package/dist/src/routes/v3/parse.d.ts +12 -2
- package/dist/src/routes/v3/payload.d.ts +12 -2
- package/dist/src/routes/v3/poolInfo.d.ts +12 -2
- package/dist/src/routes/v3/positions.d.ts +12 -2
- package/dist/src/routes/v3/radiant.d.ts +12 -2
- package/dist/src/routes/v3/recipients.d.ts +12 -2
- package/dist/src/routes/v3/rewards.d.ts +12 -2
- package/dist/src/routes/v3/rewardsReport.d.ts +12 -2
- package/dist/src/routes/v3/router.d.ts +328 -3
- package/dist/src/routes/v3/silo.d.ts +12 -2
- package/dist/src/routes/v3/token.d.ts +12 -2
- package/dist/src/routes/v3/tokenUnclaimed.d.ts +12 -2
- package/dist/src/routes/v3/twt/participants.d.ts +12 -2
- package/dist/src/routes/v3/uniswapv4.d.ts +12 -2
- package/dist/src/routes/v3/updates.d.ts +12 -2
- package/dist/src/routes/v3/userRewards.d.ts +12 -2
- package/dist/src/utils/decodeCalls.js +12 -3
- package/dist/src/utils/encodeCalls.js +20 -7
- package/dist/src/utils/error.d.ts +3 -2
- package/dist/src/utils/generateCardName.js +4 -0
- package/dist/src/utils/logger.d.ts +29 -5
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +24 -24
@@ -345,7 +345,7 @@ export declare const objectEnumValues: {
|
|
345
345
|
};
|
346
346
|
};
|
347
347
|
|
348
|
-
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
348
|
+
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
349
349
|
|
350
350
|
declare namespace Public {
|
351
351
|
export {
|
@@ -23,7 +23,7 @@ declare type AccelerateEngineConfig = {
|
|
23
23
|
|
24
24
|
export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
|
25
25
|
|
26
|
-
declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres'>;
|
26
|
+
declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
|
27
27
|
|
28
28
|
export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
|
29
29
|
|
@@ -193,6 +193,24 @@ declare const ColumnTypeEnum: {
|
|
193
193
|
readonly UnknownNumber: 128;
|
194
194
|
};
|
195
195
|
|
196
|
+
declare type CompilerWasmLoadingConfig = {
|
197
|
+
/**
|
198
|
+
* WASM-bindgen runtime for corresponding module
|
199
|
+
*/
|
200
|
+
getRuntime: () => {
|
201
|
+
__wbg_set_wasm(exports: unknown): any;
|
202
|
+
QueryCompiler: QueryCompilerConstructor;
|
203
|
+
};
|
204
|
+
/**
|
205
|
+
* Loads the raw wasm module for the wasm compiler engine. This configuration is
|
206
|
+
* generated specifically for each type of client, eg. Node.js client and Edge
|
207
|
+
* clients will have different implementations.
|
208
|
+
* @remarks this is a callback on purpose, we only load the wasm if needed.
|
209
|
+
* @remarks only used by ClientEngine
|
210
|
+
*/
|
211
|
+
getQueryCompilerWasmModule: () => Promise<unknown>;
|
212
|
+
};
|
213
|
+
|
196
214
|
export declare type Compute<T> = T extends Function ? T : {
|
197
215
|
[K in keyof T]: T[K];
|
198
216
|
} & unknown;
|
@@ -216,7 +234,7 @@ declare type ConnectionInfo = {
|
|
216
234
|
maxBindValues?: number;
|
217
235
|
};
|
218
236
|
|
219
|
-
declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
|
237
|
+
declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb';
|
220
238
|
|
221
239
|
declare interface Context {
|
222
240
|
/**
|
@@ -266,6 +284,8 @@ export declare type Count<O> = {
|
|
266
284
|
[K in keyof O]: Count<number>;
|
267
285
|
} & {};
|
268
286
|
|
287
|
+
export declare function createParam(name: string): Param<unknown, string>;
|
288
|
+
|
269
289
|
/**
|
270
290
|
* Custom fetch function for `DataProxyEngine`.
|
271
291
|
*
|
@@ -648,8 +668,12 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
|
|
648
668
|
|
649
669
|
declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
|
650
670
|
|
671
|
+
declare type DeserializedResponse = Array<Record<string, unknown>>;
|
672
|
+
|
651
673
|
export declare function deserializeJsonResponse(result: unknown): unknown;
|
652
674
|
|
675
|
+
export declare function deserializeRawResult(response: RawResponse): DeserializedResponse;
|
676
|
+
|
653
677
|
export declare type DevTypeMapDef = {
|
654
678
|
meta: {
|
655
679
|
modelProps: string;
|
@@ -756,6 +780,7 @@ export declare namespace DMMF {
|
|
756
780
|
relationFromFields?: string[];
|
757
781
|
relationToFields?: string[];
|
758
782
|
relationOnDelete?: string;
|
783
|
+
relationOnUpdate?: string;
|
759
784
|
relationName?: string;
|
760
785
|
documentation?: string;
|
761
786
|
}>;
|
@@ -875,6 +900,7 @@ export declare namespace DMMF {
|
|
875
900
|
createManyAndReturn?: string | null;
|
876
901
|
update?: string | null;
|
877
902
|
updateMany?: string | null;
|
903
|
+
updateManyAndReturn?: string | null;
|
878
904
|
upsert?: string | null;
|
879
905
|
delete?: string | null;
|
880
906
|
deleteMany?: string | null;
|
@@ -895,6 +921,7 @@ export declare namespace DMMF {
|
|
895
921
|
createManyAndReturn = "createManyAndReturn",
|
896
922
|
update = "update",
|
897
923
|
updateMany = "updateMany",
|
924
|
+
updateManyAndReturn = "updateManyAndReturn",
|
898
925
|
upsert = "upsert",
|
899
926
|
delete = "delete",
|
900
927
|
deleteMany = "deleteMany",
|
@@ -1140,7 +1167,8 @@ declare interface EngineConfig {
|
|
1140
1167
|
/**
|
1141
1168
|
* Web Assembly module loading configuration
|
1142
1169
|
*/
|
1143
|
-
engineWasm?:
|
1170
|
+
engineWasm?: EngineWasmLoadingConfig;
|
1171
|
+
compilerWasm?: CompilerWasmLoadingConfig;
|
1144
1172
|
/**
|
1145
1173
|
* Allows Accelerate to use runtime utilities from the client. These are
|
1146
1174
|
* necessary for the AccelerateEngine to function correctly.
|
@@ -1179,6 +1207,24 @@ declare type EngineSpanId = string;
|
|
1179
1207
|
|
1180
1208
|
declare type EngineSpanKind = 'client' | 'internal';
|
1181
1209
|
|
1210
|
+
declare type EngineWasmLoadingConfig = {
|
1211
|
+
/**
|
1212
|
+
* WASM-bindgen runtime for corresponding module
|
1213
|
+
*/
|
1214
|
+
getRuntime: () => {
|
1215
|
+
__wbg_set_wasm(exports: unknown): any;
|
1216
|
+
QueryEngine: QueryEngineConstructor;
|
1217
|
+
};
|
1218
|
+
/**
|
1219
|
+
* Loads the raw wasm module for the wasm query engine. This configuration is
|
1220
|
+
* generated specifically for each type of client, eg. Node.js client and Edge
|
1221
|
+
* clients will have different implementations.
|
1222
|
+
* @remarks this is a callback on purpose, we only load the wasm if needed.
|
1223
|
+
* @remarks only used by LibraryEngine
|
1224
|
+
*/
|
1225
|
+
getQueryEngineWasmModule: () => Promise<unknown>;
|
1226
|
+
};
|
1227
|
+
|
1182
1228
|
declare type EnvPaths = {
|
1183
1229
|
rootEnvPath: string | null;
|
1184
1230
|
schemaEnvPath: string | undefined;
|
@@ -1386,6 +1432,8 @@ export declare interface FieldRef<Model, FieldType> {
|
|
1386
1432
|
readonly isList: boolean;
|
1387
1433
|
}
|
1388
1434
|
|
1435
|
+
declare type Flavour = 'mysql' | 'postgres' | 'sqlite';
|
1436
|
+
|
1389
1437
|
export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
|
1390
1438
|
|
1391
1439
|
export declare interface Fn<Params = unknown, Returns = unknown> {
|
@@ -1446,7 +1494,9 @@ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions>
|
|
1446
1494
|
} ? O : K extends '_count' ? Count<P['objects']> : never;
|
1447
1495
|
} & (A extends {
|
1448
1496
|
include: any;
|
1449
|
-
} & Record<string, unknown> ? DefaultSelection<P, A
|
1497
|
+
} & Record<string, unknown> ? DefaultSelection<P, A & {
|
1498
|
+
omit: A['omit'];
|
1499
|
+
}, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
|
1450
1500
|
|
1451
1501
|
export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
|
1452
1502
|
by: string[];
|
@@ -1520,7 +1570,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
1520
1570
|
* @param values
|
1521
1571
|
* @returns
|
1522
1572
|
*/
|
1523
|
-
$executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
|
1573
|
+
$executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown, any>;
|
1524
1574
|
/**
|
1525
1575
|
* Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections
|
1526
1576
|
* @see https://github.com/prisma/prisma/issues/7142
|
@@ -1529,14 +1579,14 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
1529
1579
|
* @param values
|
1530
1580
|
* @returns
|
1531
1581
|
*/
|
1532
|
-
$executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
|
1582
|
+
$executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown, any>;
|
1533
1583
|
/**
|
1534
1584
|
* Executes a raw command only for MongoDB
|
1535
1585
|
*
|
1536
1586
|
* @param command
|
1537
1587
|
* @returns
|
1538
1588
|
*/
|
1539
|
-
$runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown>;
|
1589
|
+
$runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown, any>;
|
1540
1590
|
/**
|
1541
1591
|
* Executes a raw query and returns selected data
|
1542
1592
|
*/
|
@@ -1549,12 +1599,12 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
1549
1599
|
* @param values
|
1550
1600
|
* @returns
|
1551
1601
|
*/
|
1552
|
-
$queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
|
1602
|
+
$queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown, any>;
|
1553
1603
|
/**
|
1554
1604
|
* Counterpart to $queryRaw, that returns strongly typed results
|
1555
1605
|
* @param typedSql
|
1556
1606
|
*/
|
1557
|
-
$queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
|
1607
|
+
$queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown, any>;
|
1558
1608
|
/**
|
1559
1609
|
* Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
|
1560
1610
|
* @see https://github.com/prisma/prisma/issues/7142
|
@@ -1563,7 +1613,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
1563
1613
|
* @param values
|
1564
1614
|
* @returns
|
1565
1615
|
*/
|
1566
|
-
$queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
|
1616
|
+
$queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown, any>;
|
1567
1617
|
/**
|
1568
1618
|
* Execute a batch of requests in a transaction
|
1569
1619
|
* @param requests
|
@@ -1686,7 +1736,8 @@ declare type GetPrismaClientConfig = {
|
|
1686
1736
|
/**
|
1687
1737
|
* Optional wasm loading configuration
|
1688
1738
|
*/
|
1689
|
-
engineWasm?:
|
1739
|
+
engineWasm?: EngineWasmLoadingConfig;
|
1740
|
+
compilerWasm?: CompilerWasmLoadingConfig;
|
1690
1741
|
};
|
1691
1742
|
|
1692
1743
|
export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', ClientOptions = {}> = {
|
@@ -1700,6 +1751,7 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
|
|
1700
1751
|
createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
|
1701
1752
|
update: GetFindResult<Payload, Args, ClientOptions>;
|
1702
1753
|
updateMany: GetBatchResult;
|
1754
|
+
updateManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
|
1703
1755
|
upsert: GetFindResult<Payload, Args, ClientOptions>;
|
1704
1756
|
delete: GetFindResult<Payload, Args, ClientOptions>;
|
1705
1757
|
deleteMany: GetBatchResult;
|
@@ -1950,7 +2002,7 @@ export declare type JsonQuery = {
|
|
1950
2002
|
query: JsonFieldSelection;
|
1951
2003
|
};
|
1952
2004
|
|
1953
|
-
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
2005
|
+
declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'updateManyAndReturn' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
|
1954
2006
|
|
1955
2007
|
declare type JsonSelectionSet = {
|
1956
2008
|
$scalars?: boolean;
|
@@ -2237,7 +2289,7 @@ export { Omit_2 as Omit }
|
|
2237
2289
|
|
2238
2290
|
export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
|
2239
2291
|
|
2240
|
-
export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
2292
|
+
export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
2241
2293
|
|
2242
2294
|
export declare type OperationPayload = {
|
2243
2295
|
name: string;
|
@@ -2287,6 +2339,12 @@ export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
|
|
2287
2339
|
};
|
2288
2340
|
}[A][B];
|
2289
2341
|
|
2342
|
+
export declare function Param<$Type, $Value extends string>(name: $Value): Param<$Type, $Value>;
|
2343
|
+
|
2344
|
+
export declare type Param<out $Type, $Value extends string> = {
|
2345
|
+
readonly name: $Value;
|
2346
|
+
};
|
2347
|
+
|
2290
2348
|
export declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
|
2291
2349
|
|
2292
2350
|
export declare type Path<O, P, Default = never> = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path<O[K], R> : Default : O : never;
|
@@ -2404,6 +2462,12 @@ export declare class PrismaClientValidationError extends Error {
|
|
2404
2462
|
|
2405
2463
|
declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError;
|
2406
2464
|
|
2465
|
+
declare type PrismaOperationSpec<TArgs, TAction = string> = {
|
2466
|
+
args: TArgs;
|
2467
|
+
action: TAction;
|
2468
|
+
model: string;
|
2469
|
+
};
|
2470
|
+
|
2407
2471
|
export declare interface PrismaPromise<T> extends Promise<T> {
|
2408
2472
|
[Symbol.toStringTag]: 'PrismaPromise';
|
2409
2473
|
}
|
@@ -2413,26 +2477,27 @@ export declare interface PrismaPromise<T> extends Promise<T> {
|
|
2413
2477
|
* original `Promise` are optional so that it can be backwards-compatible.
|
2414
2478
|
* @see [[createPrismaPromise]]
|
2415
2479
|
*/
|
2416
|
-
declare interface PrismaPromise_2<
|
2480
|
+
declare interface PrismaPromise_2<TResult, TSpec extends PrismaOperationSpec<unknown> = any> extends Promise<TResult> {
|
2481
|
+
get spec(): TSpec;
|
2417
2482
|
/**
|
2418
2483
|
* Extension of the original `.then` function
|
2419
2484
|
* @param onfulfilled same as regular promises
|
2420
2485
|
* @param onrejected same as regular promises
|
2421
2486
|
* @param transaction transaction options
|
2422
2487
|
*/
|
2423
|
-
then<R1 =
|
2488
|
+
then<R1 = TResult, R2 = never>(onfulfilled?: (value: TResult) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
|
2424
2489
|
/**
|
2425
2490
|
* Extension of the original `.catch` function
|
2426
2491
|
* @param onrejected same as regular promises
|
2427
2492
|
* @param transaction transaction options
|
2428
2493
|
*/
|
2429
|
-
catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<
|
2494
|
+
catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<TResult | R>;
|
2430
2495
|
/**
|
2431
2496
|
* Extension of the original `.finally` function
|
2432
2497
|
* @param onfinally same as regular promises
|
2433
2498
|
* @param transaction transaction options
|
2434
2499
|
*/
|
2435
|
-
finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<
|
2500
|
+
finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<TResult>;
|
2436
2501
|
/**
|
2437
2502
|
* Called when executing a batch of regular tx
|
2438
2503
|
* @param transaction transaction options for batch tx
|
@@ -2448,7 +2513,7 @@ declare type PrismaPromiseBatchTransaction = {
|
|
2448
2513
|
lock: PromiseLike<void>;
|
2449
2514
|
};
|
2450
2515
|
|
2451
|
-
declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) =>
|
2516
|
+
declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => Promise<unknown>;
|
2452
2517
|
|
2453
2518
|
/**
|
2454
2519
|
* Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which
|
@@ -2459,7 +2524,7 @@ declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) =>
|
|
2459
2524
|
* @see [[PrismaPromise]]
|
2460
2525
|
* @returns
|
2461
2526
|
*/
|
2462
|
-
declare type PrismaPromiseFactory = (callback: PrismaPromiseCallback) => PrismaPromise_2<unknown>;
|
2527
|
+
declare type PrismaPromiseFactory = <T extends PrismaOperationSpec<unknown>>(callback: PrismaPromiseCallback, op?: T) => PrismaPromise_2<unknown>;
|
2463
2528
|
|
2464
2529
|
declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
|
2465
2530
|
kind: 'itx';
|
@@ -2496,7 +2561,7 @@ declare type Query = {
|
|
2496
2561
|
};
|
2497
2562
|
|
2498
2563
|
declare interface Queryable {
|
2499
|
-
readonly provider:
|
2564
|
+
readonly provider: Flavour;
|
2500
2565
|
readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
|
2501
2566
|
/**
|
2502
2567
|
* Execute a query given as SQL, interpolating the given parameters,
|
@@ -2515,6 +2580,20 @@ declare interface Queryable {
|
|
2515
2580
|
executeRaw(params: Query): Promise<Result_4<number>>;
|
2516
2581
|
}
|
2517
2582
|
|
2583
|
+
declare type QueryCompiler = {
|
2584
|
+
compile(request: string): Promise<string>;
|
2585
|
+
};
|
2586
|
+
|
2587
|
+
declare interface QueryCompilerConstructor {
|
2588
|
+
new (options: QueryCompilerOptions): QueryCompiler;
|
2589
|
+
}
|
2590
|
+
|
2591
|
+
declare type QueryCompilerOptions = {
|
2592
|
+
datamodel: string;
|
2593
|
+
flavour: Flavour;
|
2594
|
+
connectionInfo: ConnectionInfo;
|
2595
|
+
};
|
2596
|
+
|
2518
2597
|
declare type QueryEngineBatchGraphQLRequest = {
|
2519
2598
|
batch: QueryEngineRequest[];
|
2520
2599
|
transaction?: boolean;
|
@@ -2577,6 +2656,8 @@ declare type QueryEvent = {
|
|
2577
2656
|
|
2578
2657
|
declare type QueryEventType = 'query';
|
2579
2658
|
|
2659
|
+
declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
|
2660
|
+
|
2580
2661
|
declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
|
2581
2662
|
|
2582
2663
|
declare type QueryMiddlewareParams = {
|
@@ -2620,6 +2701,12 @@ export declare type RawParameters = {
|
|
2620
2701
|
|
2621
2702
|
export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
|
2622
2703
|
|
2704
|
+
declare type RawResponse = {
|
2705
|
+
columns: string[];
|
2706
|
+
types: QueryIntrospectionBuiltinType[];
|
2707
|
+
rows: unknown[][];
|
2708
|
+
};
|
2709
|
+
|
2623
2710
|
declare type RawTaggedValue = {
|
2624
2711
|
$type: 'Raw';
|
2625
2712
|
value: unknown;
|
@@ -3357,22 +3444,4 @@ export declare function warnEnvConflicts(envPaths: any): void;
|
|
3357
3444
|
|
3358
3445
|
export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void;
|
3359
3446
|
|
3360
|
-
declare type WasmLoadingConfig = {
|
3361
|
-
/**
|
3362
|
-
* WASM-bindgen runtime for corresponding module
|
3363
|
-
*/
|
3364
|
-
getRuntime: () => {
|
3365
|
-
__wbg_set_wasm(exports: unknown): any;
|
3366
|
-
QueryEngine: QueryEngineConstructor;
|
3367
|
-
};
|
3368
|
-
/**
|
3369
|
-
* Loads the raw wasm module for the wasm query engine. This configuration is
|
3370
|
-
* generated specifically for each type of client, eg. Node.js client and Edge
|
3371
|
-
* clients will have different implementations.
|
3372
|
-
* @remarks this is a callback on purpose, we only load the wasm if needed.
|
3373
|
-
* @remarks only used by LibraryEngine.ts
|
3374
|
-
*/
|
3375
|
-
getQueryEngineWasmModule: () => Promise<unknown>;
|
3376
|
-
};
|
3377
|
-
|
3378
3447
|
export { }
|