@merkl/api 1.18.25 → 1.18.40

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 (181) hide show
  1. package/dist/src/eden/index.d.ts +441 -117
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +108 -38
  3. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.js.map +1 -1
  4. package/dist/src/engine/implementations/Aave/tvl.js.map +1 -1
  5. package/dist/src/engine/implementations/Ekubo/tvl.js.map +1 -1
  6. package/dist/src/engine/implementations/ErcMultiToken/metadata.d.ts +1 -1
  7. package/dist/src/engine/implementations/JsonAirdrop/metadata.d.ts +1 -1
  8. package/dist/src/engine/implementations/MultiLog/metadata.js.map +1 -1
  9. package/dist/src/engine/implementations/Royco/metadata.d.ts +23 -0
  10. package/dist/src/engine/implementations/Royco/metadata.js.map +1 -0
  11. package/dist/src/engine/implementations/StabullStaking/metadata.d.ts +1 -1
  12. package/dist/src/engine/implementations/uniswapv4/tvl.d.ts +1 -11
  13. package/dist/src/engine/implementations/uniswapv4/tvl.js.map +1 -1
  14. package/dist/src/engine/metadata/factory.js.map +1 -1
  15. package/dist/src/engine/tvl/factory.js.map +1 -1
  16. package/dist/src/errors/BadRequest.error.d.ts +1 -1
  17. package/dist/src/errors/BadRequest.error.js.map +1 -1
  18. package/dist/src/errors/Conflict.error.d.ts +1 -1
  19. package/dist/src/errors/Conflict.error.js.map +1 -1
  20. package/dist/src/errors/Forbidden.error.js.map +1 -1
  21. package/dist/src/errors/HttpError.d.ts +18 -7
  22. package/dist/src/errors/HttpError.js.map +1 -1
  23. package/dist/src/errors/InternalServerError.error.d.ts +1 -1
  24. package/dist/src/errors/InternalServerError.error.js.map +1 -1
  25. package/dist/src/errors/InvalidCacheCall.error.js.map +1 -1
  26. package/dist/src/errors/NotFound.error.d.ts +6 -3
  27. package/dist/src/errors/NotFound.error.js.map +1 -1
  28. package/dist/src/errors/Unauthorized.error.js.map +1 -1
  29. package/dist/src/guards/ApiKey.guard.d.ts +18 -0
  30. package/dist/src/guards/ApiKey.guard.js.map +1 -0
  31. package/dist/src/guards/CampaignAccess.guard.d.ts +0 -13
  32. package/dist/src/guards/CampaignAccess.guard.js.map +1 -1
  33. package/dist/src/guards/VerifyJwt.guard.js.map +1 -1
  34. package/dist/src/guards/WalletAuth.guard.d.ts +5 -0
  35. package/dist/src/guards/WalletAuth.guard.js.map +1 -0
  36. package/dist/src/index.d.ts +536 -129
  37. package/dist/src/index.js.map +1 -1
  38. package/dist/src/jobs/claim-etl/config.d.ts +8 -1
  39. package/dist/src/jobs/claim-etl/config.js.map +1 -1
  40. package/dist/src/jobs/claim-etl/index.js.map +1 -1
  41. package/dist/src/jobs/claim-etl/load.d.ts +15 -11
  42. package/dist/src/jobs/claim-etl/load.js.map +1 -1
  43. package/dist/src/jobs/cleanup-api-usage.d.ts +1 -0
  44. package/dist/src/jobs/cleanup-api-usage.js.map +1 -0
  45. package/dist/src/jobs/tx-executor/process.js.map +1 -1
  46. package/dist/src/jobs/update-dynamic-data.js.map +1 -1
  47. package/dist/src/modules/v4/accounting/accounting.controller.js.map +1 -1
  48. package/dist/src/modules/v4/apiKey/apiKey.controller.d.ts +239 -0
  49. package/dist/src/modules/v4/apiKey/apiKey.controller.js.map +1 -0
  50. package/dist/src/modules/v4/apiKey/apiKey.model.d.ts +53 -0
  51. package/dist/src/modules/v4/apiKey/apiKey.model.js.map +1 -0
  52. package/dist/src/modules/v4/apiKey/apiKey.repository.d.ts +106 -0
  53. package/dist/src/modules/v4/apiKey/apiKey.repository.js.map +1 -0
  54. package/dist/src/modules/v4/apiKey/apiKey.service.d.ts +96 -0
  55. package/dist/src/modules/v4/apiKey/apiKey.service.js.map +1 -0
  56. package/dist/src/modules/v4/apr/apr.model.d.ts +2 -0
  57. package/dist/src/modules/v4/authentication/authentication.controller.d.ts +2 -0
  58. package/dist/src/modules/v4/authentication/authentication.controller.js.map +1 -1
  59. package/dist/src/modules/v4/authentication/authentication.model.d.ts +5 -2
  60. package/dist/src/modules/v4/authentication/authentication.model.js.map +1 -1
  61. package/dist/src/modules/v4/authentication/authentication.service.d.ts +10 -2
  62. package/dist/src/modules/v4/authentication/authentication.service.js.map +1 -1
  63. package/dist/src/modules/v4/autoclaim/autoclaim.controller.d.ts +4 -0
  64. package/dist/src/modules/v4/autoclaim/autoclaim.repository.d.ts +4 -0
  65. package/dist/src/modules/v4/autoclaim/autoclaim.service.d.ts +4 -0
  66. package/dist/src/modules/v4/blacklist/blacklist.controller.js.map +1 -1
  67. package/dist/src/modules/v4/cache/cache.repository.d.ts +10 -1
  68. package/dist/src/modules/v4/cache/cache.repository.js.map +1 -1
  69. package/dist/src/modules/v4/cache/cache.service.d.ts +1 -1
  70. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +64 -22
  71. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  72. package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -0
  73. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +144 -144
  74. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +21 -0
  75. package/dist/src/modules/v4/campaign/campaign.service.d.ts +9 -0
  76. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  77. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +12 -0
  78. package/dist/src/modules/v4/carousel/carousel.controller.d.ts +16 -12
  79. package/dist/src/modules/v4/carousel/carousel.repository.d.ts +6 -0
  80. package/dist/src/modules/v4/carousel/carousel.service.d.ts +14 -8
  81. package/dist/src/modules/v4/claims/claims.controller.d.ts +14 -8
  82. package/dist/src/modules/v4/claims/claims.controller.js.map +1 -1
  83. package/dist/src/modules/v4/claims/claims.model.d.ts +15 -9
  84. package/dist/src/modules/v4/claims/claims.model.js.map +1 -1
  85. package/dist/src/modules/v4/claims/claims.service.d.ts +20 -9
  86. package/dist/src/modules/v4/claims/claims.service.js.map +1 -1
  87. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
  88. package/dist/src/modules/v4/computedValue/computedValue.controller.js.map +1 -1
  89. package/dist/src/modules/v4/config/config.controller.d.ts +41 -0
  90. package/dist/src/modules/v4/config/config.controller.js.map +1 -1
  91. package/dist/src/modules/v4/config/config.service.d.ts +3 -0
  92. package/dist/src/modules/v4/creator/creator.controller.d.ts +44 -4
  93. package/dist/src/modules/v4/creator/creator.controller.js.map +1 -1
  94. package/dist/src/modules/v4/creator/creator.service.d.ts +1 -0
  95. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +2 -0
  96. package/dist/src/modules/v4/dynamicData/dynamicData.service.js.map +1 -1
  97. package/dist/src/modules/v4/jobWatermark/jobWatermark.constants.d.ts +4 -0
  98. package/dist/src/modules/v4/jobWatermark/jobWatermark.constants.js.map +1 -0
  99. package/dist/src/modules/v4/jobWatermark/jobWatermark.repository.d.ts +11 -0
  100. package/dist/src/modules/v4/jobWatermark/jobWatermark.repository.js.map +1 -0
  101. package/dist/src/modules/v4/jobWatermark/jobWatermark.service.d.ts +20 -0
  102. package/dist/src/modules/v4/jobWatermark/jobWatermark.service.js.map +1 -0
  103. package/dist/src/modules/v4/leaf/leaf.repository.d.ts +4 -0
  104. package/dist/src/modules/v4/leaf/leaf.service.d.ts +2 -0
  105. package/dist/src/modules/v4/leaf/leafLeaderboard.service.js.map +1 -1
  106. package/dist/src/modules/v4/node/node.controller.js.map +1 -1
  107. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +99 -44
  108. package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
  109. package/dist/src/modules/v4/opportunity/opportunity.formatter.d.ts +4 -0
  110. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +14 -0
  111. package/dist/src/modules/v4/opportunity/opportunity.model.js.map +1 -1
  112. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +4 -0
  113. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.js.map +1 -1
  114. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +15 -1
  115. package/dist/src/modules/v4/opportunity/opportunity.repository.js.map +1 -1
  116. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +24 -9
  117. package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
  118. package/dist/src/modules/v4/payload/payload.controller.d.ts +3 -0
  119. package/dist/src/modules/v4/payload/payload.service.d.ts +4 -0
  120. package/dist/src/modules/v4/privacy/privacy.controller.d.ts +36 -0
  121. package/dist/src/modules/v4/privacy/privacy.controller.js.map +1 -1
  122. package/dist/src/modules/v4/program/program.controller.d.ts +24 -9
  123. package/dist/src/modules/v4/program/program.controller.js.map +1 -1
  124. package/dist/src/modules/v4/program/program.model.d.ts +1 -0
  125. package/dist/src/modules/v4/program/program.model.js.map +1 -1
  126. package/dist/src/modules/v4/program/program.repository.d.ts +15 -1
  127. package/dist/src/modules/v4/program/program.repository.js.map +1 -1
  128. package/dist/src/modules/v4/program/program.service.d.ts +22 -9
  129. package/dist/src/modules/v4/program/program.service.js.map +1 -1
  130. package/dist/src/modules/v4/reward/reward.controller.d.ts +34 -2
  131. package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
  132. package/dist/src/modules/v4/reward/reward.model.d.ts +2 -0
  133. package/dist/src/modules/v4/reward/reward.service.d.ts +15 -2
  134. package/dist/src/modules/v4/router.d.ts +506 -102
  135. package/dist/src/modules/v4/router.js.map +1 -1
  136. package/dist/src/modules/v4/token/token.controller.js.map +1 -1
  137. package/dist/src/modules/v4/ton/ton.controller.js.map +1 -1
  138. package/dist/src/modules/v4/transaction/transaction.service.d.ts +11210 -15350
  139. package/dist/src/modules/v4/turtle/turtle.controller.js.map +1 -1
  140. package/dist/src/modules/v4/tvl/tvl.service.js.map +1 -1
  141. package/dist/src/modules/v4/uniswap/uniswap.controller.d.ts +4 -4
  142. package/dist/src/modules/v4/uniswap/uniswap.controller.js.map +1 -1
  143. package/dist/src/modules/v4/uniswap/uniswap.service.d.ts +2 -2
  144. package/dist/src/modules/v4/user/user.controller.d.ts +145 -4
  145. package/dist/src/modules/v4/user/user.controller.js.map +1 -1
  146. package/dist/src/modules/v4/user/user.formatter.js.map +1 -1
  147. package/dist/src/modules/v4/user/user.model.d.ts +4 -0
  148. package/dist/src/modules/v4/user/user.model.js.map +1 -1
  149. package/dist/src/modules/v4/user/user.repository.d.ts +2 -0
  150. package/dist/src/modules/v4/user/user.repository.js.map +1 -1
  151. package/dist/src/modules/v4/user/user.service.d.ts +6 -0
  152. package/dist/src/modules/v4/user/user.service.js.map +1 -1
  153. package/dist/src/plugins/AddressChecksum.plugin.d.ts +40 -0
  154. package/dist/src/plugins/AddressChecksum.plugin.js.map +1 -0
  155. package/dist/src/plugins/ApiKeyTracking.plugin.d.ts +42 -0
  156. package/dist/src/plugins/ApiKeyTracking.plugin.js.map +1 -0
  157. package/dist/src/plugins/AuthResolve.plugin.d.ts +70 -0
  158. package/dist/src/plugins/AuthResolve.plugin.js.map +1 -0
  159. package/dist/src/plugins/errorHandler.d.ts +5 -7
  160. package/dist/src/plugins/errorHandler.js.map +1 -1
  161. package/dist/src/scripts/cleanup-empty-leaves.d.ts +1 -0
  162. package/dist/src/scripts/cleanup-empty-leaves.js.map +1 -0
  163. package/dist/src/scripts/count-worldchain-claims.d.ts +1 -0
  164. package/dist/src/scripts/count-worldchain-claims.js.map +1 -0
  165. package/dist/src/scripts/exportOpportunities.js.map +1 -1
  166. package/dist/src/scripts/importOpportunities.js.map +1 -1
  167. package/dist/src/scripts/ingest-tree-all.d.ts +3 -2
  168. package/dist/src/scripts/ingest-tree-all.js.map +1 -1
  169. package/dist/src/scripts/ingest-tree-history.js.map +1 -1
  170. package/dist/src/scripts/ingest-tree.js.map +1 -1
  171. package/dist/src/scripts/perf-tree.js.map +1 -1
  172. package/dist/src/scripts/revert-merge-etl.d.ts +5 -0
  173. package/dist/src/scripts/revert-merge-etl.js.map +1 -0
  174. package/dist/src/scripts/verify-reward-totals.d.ts +25 -0
  175. package/dist/src/scripts/verify-reward-totals.js.map +1 -0
  176. package/dist/src/scripts/verify-tree.js.map +1 -1
  177. package/dist/src/utils/getAPR.d.ts +821 -2891
  178. package/dist/src/utils/parseDistributionType.d.ts +821 -2891
  179. package/dist/src/utils/parseDistributionType.js.map +1 -1
  180. package/dist/tsconfig.tsbuildinfo +1 -1
  181. package/package.json +1 -1
@@ -110,16 +110,6 @@ export declare function getCampaignInclusionFromOpportunity(test: boolean, token
110
110
  */
111
111
  export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignModel, "page" | "items">): {
112
112
  where: {
113
- endTimestamp: {
114
- gt: number;
115
- lt?: undefined;
116
- gte?: undefined;
117
- };
118
- startTimestamp: {
119
- lte: number;
120
- gt?: undefined;
121
- gte?: undefined;
122
- };
123
113
  OR: {
124
114
  id: string;
125
115
  }[] | ({
@@ -191,11 +181,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
191
181
  };
192
182
  displaySymbol?: undefined;
193
183
  } | {
194
- symbol?: undefined;
195
184
  displaySymbol: {
196
185
  equals: string;
197
186
  mode: "insensitive";
198
187
  };
188
+ symbol?: undefined;
199
189
  })[] | undefined;
200
190
  isTest: false | undefined;
201
191
  type: {
@@ -204,12 +194,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
204
194
  };
205
195
  };
206
196
  Creator: {
207
- tags?: undefined;
208
197
  OR: ({
209
- tags?: undefined;
210
198
  Creator: {
211
199
  id: string;
212
200
  };
201
+ tags?: undefined;
213
202
  } | {
214
203
  Creator?: undefined;
215
204
  tags: {
@@ -217,12 +206,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
217
206
  };
218
207
  })[];
219
208
  Creator?: undefined;
220
- } | {
221
209
  tags?: undefined;
210
+ } | {
222
211
  OR?: undefined;
223
212
  Creator: {
224
213
  id: string;
225
214
  };
215
+ tags?: undefined;
226
216
  } | {
227
217
  OR?: undefined;
228
218
  Creator?: undefined;
@@ -238,13 +228,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
238
228
  in: import("@package/resources/enums").DistributionType[];
239
229
  } | undefined;
240
230
  rootCampaignId: {
241
- not?: undefined;
242
231
  equals: string;
243
232
  mode: "insensitive";
244
- } | {
245
233
  not?: undefined;
234
+ } | {
246
235
  mode?: undefined;
247
236
  equals: null;
237
+ not?: undefined;
248
238
  } | {
249
239
  mode?: undefined;
250
240
  equals?: undefined;
@@ -256,94 +246,88 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
256
246
  } | undefined;
257
247
  AND: {
258
248
  OR: ({
259
- campaignId?: undefined;
260
- creatorAddress?: undefined;
261
- RewardToken?: undefined;
262
249
  id: {
263
250
  contains: string;
264
251
  mode: "insensitive";
265
252
  };
266
253
  Opportunity?: undefined;
267
- } | {
268
- id?: undefined;
254
+ campaignId?: undefined;
269
255
  creatorAddress?: undefined;
270
256
  RewardToken?: undefined;
257
+ } | {
271
258
  campaignId: {
272
259
  contains: string;
273
260
  mode: "insensitive";
274
261
  };
275
262
  Opportunity?: undefined;
276
- } | {
277
263
  id?: undefined;
278
- campaignId?: undefined;
264
+ creatorAddress?: undefined;
279
265
  RewardToken?: undefined;
266
+ } | {
280
267
  creatorAddress: {
281
268
  contains: string;
282
269
  mode: "insensitive";
283
270
  };
284
271
  Opportunity?: undefined;
285
- } | {
286
272
  id?: undefined;
287
273
  campaignId?: undefined;
288
- creatorAddress?: undefined;
289
274
  RewardToken?: undefined;
275
+ } | {
290
276
  Opportunity: {
291
- mainProtocolId?: undefined;
292
277
  identifier: {
293
278
  contains: string;
294
279
  mode: "insensitive";
295
280
  };
281
+ mainProtocolId?: undefined;
296
282
  };
297
- } | {
298
283
  id?: undefined;
299
284
  campaignId?: undefined;
300
285
  creatorAddress?: undefined;
301
286
  RewardToken?: undefined;
287
+ } | {
302
288
  Opportunity: {
303
- identifier?: undefined;
304
289
  mainProtocolId: {
305
290
  contains: string;
306
291
  mode: "insensitive";
307
292
  };
293
+ identifier?: undefined;
308
294
  };
309
- } | {
310
295
  id?: undefined;
311
296
  campaignId?: undefined;
312
297
  creatorAddress?: undefined;
298
+ RewardToken?: undefined;
299
+ } | {
313
300
  Opportunity?: undefined;
314
301
  RewardToken: {
315
302
  OR: ({
316
- address?: undefined;
317
303
  symbol: {
318
304
  contains: string;
319
305
  mode: "insensitive";
320
306
  };
321
307
  displaySymbol?: undefined;
322
- } | {
323
- symbol?: undefined;
324
308
  address?: undefined;
309
+ } | {
325
310
  displaySymbol: {
326
311
  contains: string;
327
312
  mode: "insensitive";
328
313
  };
329
- } | {
330
314
  symbol?: undefined;
315
+ address?: undefined;
316
+ } | {
331
317
  displaySymbol?: undefined;
332
318
  address: {
333
319
  contains: string;
334
320
  mode: "insensitive";
335
321
  };
322
+ symbol?: undefined;
336
323
  })[];
337
324
  };
325
+ id?: undefined;
326
+ campaignId?: undefined;
327
+ creatorAddress?: undefined;
338
328
  })[];
339
329
  }[] | undefined;
340
330
  } | {
341
- endTimestamp: {
342
- lt: number;
343
- gt?: undefined;
344
- gte?: undefined;
345
- };
346
- startTimestamp?: undefined;
347
331
  OR: {
348
332
  id: string;
349
333
  }[] | ({
@@ -415,11 +399,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
415
399
  };
416
400
  displaySymbol?: undefined;
417
401
  } | {
418
- symbol?: undefined;
419
402
  displaySymbol: {
420
403
  equals: string;
421
404
  mode: "insensitive";
422
405
  };
406
+ symbol?: undefined;
423
407
  })[] | undefined;
424
408
  isTest: false | undefined;
425
409
  type: {
@@ -428,12 +412,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
428
412
  };
429
413
  };
430
414
  Creator: {
431
- tags?: undefined;
432
415
  OR: ({
433
- tags?: undefined;
434
416
  Creator: {
435
417
  id: string;
436
418
  };
419
+ tags?: undefined;
437
420
  } | {
438
421
  Creator?: undefined;
439
422
  tags: {
@@ -441,12 +424,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
441
424
  };
442
425
  })[];
443
426
  Creator?: undefined;
444
- } | {
445
427
  tags?: undefined;
428
+ } | {
446
429
  OR?: undefined;
447
430
  Creator: {
448
431
  id: string;
449
432
  };
433
+ tags?: undefined;
450
434
  } | {
451
435
  OR?: undefined;
452
436
  Creator?: undefined;
@@ -462,13 +446,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
462
446
  in: import("@package/resources/enums").DistributionType[];
463
447
  } | undefined;
464
448
  rootCampaignId: {
465
- not?: undefined;
466
449
  equals: string;
467
450
  mode: "insensitive";
468
- } | {
469
451
  not?: undefined;
452
+ } | {
470
453
  mode?: undefined;
471
454
  equals: null;
455
+ not?: undefined;
472
456
  } | {
473
457
  mode?: undefined;
474
458
  equals?: undefined;
@@ -480,94 +464,98 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
480
464
  } | undefined;
481
465
  AND: {
482
466
  OR: ({
483
- campaignId?: undefined;
484
- creatorAddress?: undefined;
485
- RewardToken?: undefined;
486
467
  id: {
487
468
  contains: string;
488
469
  mode: "insensitive";
489
470
  };
490
471
  Opportunity?: undefined;
491
- } | {
492
- id?: undefined;
472
+ campaignId?: undefined;
493
473
  creatorAddress?: undefined;
494
474
  RewardToken?: undefined;
475
+ } | {
495
476
  campaignId: {
496
477
  contains: string;
497
478
  mode: "insensitive";
498
479
  };
499
480
  Opportunity?: undefined;
500
- } | {
501
481
  id?: undefined;
502
- campaignId?: undefined;
482
+ creatorAddress?: undefined;
503
483
  RewardToken?: undefined;
484
+ } | {
504
485
  creatorAddress: {
505
486
  contains: string;
506
487
  mode: "insensitive";
507
488
  };
508
489
  Opportunity?: undefined;
509
- } | {
510
490
  id?: undefined;
511
491
  campaignId?: undefined;
512
- creatorAddress?: undefined;
513
492
  RewardToken?: undefined;
493
+ } | {
514
494
  Opportunity: {
515
- mainProtocolId?: undefined;
516
495
  identifier: {
517
496
  contains: string;
518
497
  mode: "insensitive";
519
498
  };
499
+ mainProtocolId?: undefined;
520
500
  };
521
- } | {
522
501
  id?: undefined;
523
502
  campaignId?: undefined;
524
503
  creatorAddress?: undefined;
525
504
  RewardToken?: undefined;
505
+ } | {
526
506
  Opportunity: {
527
- identifier?: undefined;
528
507
  mainProtocolId: {
529
508
  contains: string;
530
509
  mode: "insensitive";
531
510
  };
511
+ identifier?: undefined;
532
512
  };
533
- } | {
534
513
  id?: undefined;
535
514
  campaignId?: undefined;
536
515
  creatorAddress?: undefined;
516
+ RewardToken?: undefined;
517
+ } | {
537
518
  Opportunity?: undefined;
538
519
  RewardToken: {
539
520
  OR: ({
540
- address?: undefined;
541
521
  symbol: {
542
522
  contains: string;
543
523
  mode: "insensitive";
544
524
  };
545
525
  displaySymbol?: undefined;
546
- } | {
547
- symbol?: undefined;
548
526
  address?: undefined;
527
+ } | {
549
528
  displaySymbol: {
550
529
  contains: string;
551
530
  mode: "insensitive";
552
531
  };
553
- } | {
554
532
  symbol?: undefined;
533
+ address?: undefined;
534
+ } | {
555
535
  displaySymbol?: undefined;
556
536
  address: {
557
537
  contains: string;
558
538
  mode: "insensitive";
559
539
  };
540
+ symbol?: undefined;
560
541
  })[];
561
542
  };
543
+ id?: undefined;
544
+ campaignId?: undefined;
545
+ creatorAddress?: undefined;
562
546
  })[];
563
547
  }[] | undefined;
564
- } | {
565
- startTimestamp: {
566
- lte?: undefined;
548
+ endTimestamp: {
567
549
  gt: number;
550
+ lt?: undefined;
568
551
  gte?: undefined;
569
552
  };
570
- endTimestamp?: undefined;
553
+ startTimestamp: {
554
+ lte: number;
555
+ gt?: undefined;
556
+ gte?: undefined;
557
+ };
558
+ } | {
571
559
  OR: {
572
560
  id: string;
573
561
  }[] | ({
@@ -639,11 +627,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
639
627
  };
640
628
  displaySymbol?: undefined;
641
629
  } | {
642
- symbol?: undefined;
643
630
  displaySymbol: {
644
631
  equals: string;
645
632
  mode: "insensitive";
646
633
  };
634
+ symbol?: undefined;
647
635
  })[] | undefined;
648
636
  isTest: false | undefined;
649
637
  type: {
@@ -652,12 +640,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
652
640
  };
653
641
  };
654
642
  Creator: {
655
- tags?: undefined;
656
643
  OR: ({
657
- tags?: undefined;
658
644
  Creator: {
659
645
  id: string;
660
646
  };
647
+ tags?: undefined;
661
648
  } | {
662
649
  Creator?: undefined;
663
650
  tags: {
@@ -665,12 +652,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
665
652
  };
666
653
  })[];
667
654
  Creator?: undefined;
668
- } | {
669
655
  tags?: undefined;
656
+ } | {
670
657
  OR?: undefined;
671
658
  Creator: {
672
659
  id: string;
673
660
  };
661
+ tags?: undefined;
674
662
  } | {
675
663
  OR?: undefined;
676
664
  Creator?: undefined;
@@ -686,13 +674,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
686
674
  in: import("@package/resources/enums").DistributionType[];
687
675
  } | undefined;
688
676
  rootCampaignId: {
689
- not?: undefined;
690
677
  equals: string;
691
678
  mode: "insensitive";
692
- } | {
693
679
  not?: undefined;
680
+ } | {
694
681
  mode?: undefined;
695
682
  equals: null;
683
+ not?: undefined;
696
684
  } | {
697
685
  mode?: undefined;
698
686
  equals?: undefined;
@@ -704,98 +692,94 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
704
692
  } | undefined;
705
693
  AND: {
706
694
  OR: ({
707
- campaignId?: undefined;
708
- creatorAddress?: undefined;
709
- RewardToken?: undefined;
710
695
  id: {
711
696
  contains: string;
712
697
  mode: "insensitive";
713
698
  };
714
699
  Opportunity?: undefined;
715
- } | {
716
- id?: undefined;
700
+ campaignId?: undefined;
717
701
  creatorAddress?: undefined;
718
702
  RewardToken?: undefined;
703
+ } | {
719
704
  campaignId: {
720
705
  contains: string;
721
706
  mode: "insensitive";
722
707
  };
723
708
  Opportunity?: undefined;
724
- } | {
725
709
  id?: undefined;
726
- campaignId?: undefined;
710
+ creatorAddress?: undefined;
727
711
  RewardToken?: undefined;
712
+ } | {
728
713
  creatorAddress: {
729
714
  contains: string;
730
715
  mode: "insensitive";
731
716
  };
732
717
  Opportunity?: undefined;
733
- } | {
734
718
  id?: undefined;
735
719
  campaignId?: undefined;
736
- creatorAddress?: undefined;
737
720
  RewardToken?: undefined;
721
+ } | {
738
722
  Opportunity: {
739
- mainProtocolId?: undefined;
740
723
  identifier: {
741
724
  contains: string;
742
725
  mode: "insensitive";
743
726
  };
727
+ mainProtocolId?: undefined;
744
728
  };
745
- } | {
746
729
  id?: undefined;
747
730
  campaignId?: undefined;
748
731
  creatorAddress?: undefined;
749
732
  RewardToken?: undefined;
733
+ } | {
750
734
  Opportunity: {
751
- identifier?: undefined;
752
735
  mainProtocolId: {
753
736
  contains: string;
754
737
  mode: "insensitive";
755
738
  };
739
+ identifier?: undefined;
756
740
  };
757
- } | {
758
741
  id?: undefined;
759
742
  campaignId?: undefined;
760
743
  creatorAddress?: undefined;
744
+ RewardToken?: undefined;
745
+ } | {
761
746
  Opportunity?: undefined;
762
747
  RewardToken: {
763
748
  OR: ({
764
- address?: undefined;
765
749
  symbol: {
766
750
  contains: string;
767
751
  mode: "insensitive";
768
752
  };
769
753
  displaySymbol?: undefined;
770
- } | {
771
- symbol?: undefined;
772
754
  address?: undefined;
755
+ } | {
773
756
  displaySymbol: {
774
757
  contains: string;
775
758
  mode: "insensitive";
776
759
  };
777
- } | {
778
760
  symbol?: undefined;
761
+ address?: undefined;
762
+ } | {
779
763
  displaySymbol?: undefined;
780
764
  address: {
781
765
  contains: string;
782
766
  mode: "insensitive";
783
767
  };
768
+ symbol?: undefined;
784
769
  })[];
785
770
  };
771
+ id?: undefined;
772
+ campaignId?: undefined;
773
+ creatorAddress?: undefined;
786
774
  })[];
787
775
  }[] | undefined;
788
- } | {
789
776
  endTimestamp: {
790
- lt?: undefined;
791
- gt?: undefined;
792
- gte: number;
793
- } | undefined;
794
- startTimestamp: {
795
- lte?: undefined;
777
+ lt: number;
796
778
  gt?: undefined;
797
- gte: number;
798
- } | undefined;
779
+ gte?: undefined;
780
+ };
781
+ startTimestamp?: undefined;
782
+ } | {
799
783
  OR: {
800
784
  id: string;
801
785
  }[] | ({
@@ -867,11 +851,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
867
851
  };
868
852
  displaySymbol?: undefined;
869
853
  } | {
870
- symbol?: undefined;
871
854
  displaySymbol: {
872
855
  equals: string;
873
856
  mode: "insensitive";
874
857
  };
858
+ symbol?: undefined;
875
859
  })[] | undefined;
876
860
  isTest: false | undefined;
877
861
  type: {
@@ -880,12 +864,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
880
864
  };
881
865
  };
882
866
  Creator: {
883
- tags?: undefined;
884
867
  OR: ({
885
- tags?: undefined;
886
868
  Creator: {
887
869
  id: string;
888
870
  };
871
+ tags?: undefined;
889
872
  } | {
890
873
  Creator?: undefined;
891
874
  tags: {
@@ -893,12 +876,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
893
876
  };
894
877
  })[];
895
878
  Creator?: undefined;
896
- } | {
897
879
  tags?: undefined;
880
+ } | {
898
881
  OR?: undefined;
899
882
  Creator: {
900
883
  id: string;
901
884
  };
885
+ tags?: undefined;
902
886
  } | {
903
887
  OR?: undefined;
904
888
  Creator?: undefined;
@@ -914,13 +898,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
914
898
  in: import("@package/resources/enums").DistributionType[];
915
899
  } | undefined;
916
900
  rootCampaignId: {
917
- not?: undefined;
918
901
  equals: string;
919
902
  mode: "insensitive";
920
- } | {
921
903
  not?: undefined;
904
+ } | {
922
905
  mode?: undefined;
923
906
  equals: null;
907
+ not?: undefined;
924
908
  } | {
925
909
  mode?: undefined;
926
910
  equals?: undefined;
@@ -932,87 +916,93 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
932
916
  } | undefined;
933
917
  AND: {
934
918
  OR: ({
935
- campaignId?: undefined;
936
- creatorAddress?: undefined;
937
- RewardToken?: undefined;
938
919
  id: {
939
920
  contains: string;
940
921
  mode: "insensitive";
941
922
  };
942
923
  Opportunity?: undefined;
943
- } | {
944
- id?: undefined;
924
+ campaignId?: undefined;
945
925
  creatorAddress?: undefined;
946
926
  RewardToken?: undefined;
927
+ } | {
947
928
  campaignId: {
948
929
  contains: string;
949
930
  mode: "insensitive";
950
931
  };
951
932
  Opportunity?: undefined;
952
- } | {
953
933
  id?: undefined;
954
- campaignId?: undefined;
934
+ creatorAddress?: undefined;
955
935
  RewardToken?: undefined;
936
+ } | {
956
937
  creatorAddress: {
957
938
  contains: string;
958
939
  mode: "insensitive";
959
940
  };
960
941
  Opportunity?: undefined;
961
- } | {
962
942
  id?: undefined;
963
943
  campaignId?: undefined;
964
- creatorAddress?: undefined;
965
944
  RewardToken?: undefined;
945
+ } | {
966
946
  Opportunity: {
967
- mainProtocolId?: undefined;
968
947
  identifier: {
969
948
  contains: string;
970
949
  mode: "insensitive";
971
950
  };
951
+ mainProtocolId?: undefined;
972
952
  };
973
- } | {
974
953
  id?: undefined;
975
954
  campaignId?: undefined;
976
955
  creatorAddress?: undefined;
977
956
  RewardToken?: undefined;
957
+ } | {
978
958
  Opportunity: {
979
- identifier?: undefined;
980
959
  mainProtocolId: {
981
960
  contains: string;
982
961
  mode: "insensitive";
983
962
  };
963
+ identifier?: undefined;
984
964
  };
985
- } | {
986
965
  id?: undefined;
987
966
  campaignId?: undefined;
988
967
  creatorAddress?: undefined;
968
+ RewardToken?: undefined;
969
+ } | {
989
970
  Opportunity?: undefined;
990
971
  RewardToken: {
991
972
  OR: ({
992
- address?: undefined;
993
973
  symbol: {
994
974
  contains: string;
995
975
  mode: "insensitive";
996
976
  };
997
977
  displaySymbol?: undefined;
998
- } | {
999
- symbol?: undefined;
1000
978
  address?: undefined;
979
+ } | {
1001
980
  displaySymbol: {
1002
981
  contains: string;
1003
982
  mode: "insensitive";
1004
983
  };
1005
- } | {
1006
984
  symbol?: undefined;
985
+ address?: undefined;
986
+ } | {
1007
987
  displaySymbol?: undefined;
1008
988
  address: {
1009
989
  contains: string;
1010
990
  mode: "insensitive";
1011
991
  };
992
+ symbol?: undefined;
1012
993
  })[];
1013
994
  };
995
+ id?: undefined;
996
+ campaignId?: undefined;
997
+ creatorAddress?: undefined;
1014
998
  })[];
1015
999
  }[] | undefined;
1000
+ startTimestamp: {
1001
+ lte?: undefined;
1002
+ gt: number;
1003
+ gte?: undefined;
1004
+ };
1005
+ endTimestamp?: undefined;
1016
1006
  } | {
1017
1007
  OR: {
1018
1008
  id: string;
@@ -1085,11 +1075,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1085
1075
  };
1086
1076
  displaySymbol?: undefined;
1087
1077
  } | {
1088
- symbol?: undefined;
1089
1078
  displaySymbol: {
1090
1079
  equals: string;
1091
1080
  mode: "insensitive";
1092
1081
  };
1082
+ symbol?: undefined;
1093
1083
  })[] | undefined;
1094
1084
  isTest: false | undefined;
1095
1085
  type: {
@@ -1098,12 +1088,11 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1098
1088
  };
1099
1089
  };
1100
1090
  Creator: {
1101
- tags?: undefined;
1102
1091
  OR: ({
1103
- tags?: undefined;
1104
1092
  Creator: {
1105
1093
  id: string;
1106
1094
  };
1095
+ tags?: undefined;
1107
1096
  } | {
1108
1097
  Creator?: undefined;
1109
1098
  tags: {
@@ -1111,12 +1100,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1111
1100
  };
1112
1101
  })[];
1113
1102
  Creator?: undefined;
1114
- } | {
1115
1103
  tags?: undefined;
1104
+ } | {
1116
1105
  OR?: undefined;
1117
1106
  Creator: {
1118
1107
  id: string;
1119
1108
  };
1109
+ tags?: undefined;
1120
1110
  } | {
1121
1111
  OR?: undefined;
1122
1112
  Creator?: undefined;
@@ -1132,13 +1122,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1132
1122
  in: import("@package/resources/enums").DistributionType[];
1133
1123
  } | undefined;
1134
1124
  rootCampaignId: {
1135
- not?: undefined;
1136
1125
  equals: string;
1137
1126
  mode: "insensitive";
1138
- } | {
1139
1127
  not?: undefined;
1128
+ } | {
1140
1129
  mode?: undefined;
1141
1130
  equals: null;
1131
+ not?: undefined;
1142
1132
  } | {
1143
1133
  mode?: undefined;
1144
1134
  equals?: undefined;
@@ -1150,86 +1140,96 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1150
1140
  } | undefined;
1151
1141
  AND: {
1152
1142
  OR: ({
1153
- campaignId?: undefined;
1154
- creatorAddress?: undefined;
1155
- RewardToken?: undefined;
1156
1143
  id: {
1157
1144
  contains: string;
1158
1145
  mode: "insensitive";
1159
1146
  };
1160
1147
  Opportunity?: undefined;
1161
- } | {
1162
- id?: undefined;
1148
+ campaignId?: undefined;
1163
1149
  creatorAddress?: undefined;
1164
1150
  RewardToken?: undefined;
1151
+ } | {
1165
1152
  campaignId: {
1166
1153
  contains: string;
1167
1154
  mode: "insensitive";
1168
1155
  };
1169
1156
  Opportunity?: undefined;
1170
- } | {
1171
1157
  id?: undefined;
1172
- campaignId?: undefined;
1158
+ creatorAddress?: undefined;
1173
1159
  RewardToken?: undefined;
1160
+ } | {
1174
1161
  creatorAddress: {
1175
1162
  contains: string;
1176
1163
  mode: "insensitive";
1177
1164
  };
1178
1165
  Opportunity?: undefined;
1179
- } | {
1180
1166
  id?: undefined;
1181
1167
  campaignId?: undefined;
1182
- creatorAddress?: undefined;
1183
1168
  RewardToken?: undefined;
1169
+ } | {
1184
1170
  Opportunity: {
1185
- mainProtocolId?: undefined;
1186
1171
  identifier: {
1187
1172
  contains: string;
1188
1173
  mode: "insensitive";
1189
1174
  };
1175
+ mainProtocolId?: undefined;
1190
1176
  };
1191
- } | {
1192
1177
  id?: undefined;
1193
1178
  campaignId?: undefined;
1194
1179
  creatorAddress?: undefined;
1195
1180
  RewardToken?: undefined;
1181
+ } | {
1196
1182
  Opportunity: {
1197
- identifier?: undefined;
1198
1183
  mainProtocolId: {
1199
1184
  contains: string;
1200
1185
  mode: "insensitive";
1201
1186
  };
1187
+ identifier?: undefined;
1202
1188
  };
1203
- } | {
1204
1189
  id?: undefined;
1205
1190
  campaignId?: undefined;
1206
1191
  creatorAddress?: undefined;
1192
+ RewardToken?: undefined;
1193
+ } | {
1207
1194
  Opportunity?: undefined;
1208
1195
  RewardToken: {
1209
1196
  OR: ({
1210
- address?: undefined;
1211
1197
  symbol: {
1212
1198
  contains: string;
1213
1199
  mode: "insensitive";
1214
1200
  };
1215
1201
  displaySymbol?: undefined;
1216
- } | {
1217
- symbol?: undefined;
1218
1202
  address?: undefined;
1203
+ } | {
1219
1204
  displaySymbol: {
1220
1205
  contains: string;
1221
1206
  mode: "insensitive";
1222
1207
  };
1223
- } | {
1224
1208
  symbol?: undefined;
1209
+ address?: undefined;
1210
+ } | {
1225
1211
  displaySymbol?: undefined;
1226
1212
  address: {
1227
1213
  contains: string;
1228
1214
  mode: "insensitive";
1229
1215
  };
1216
+ symbol?: undefined;
1230
1217
  })[];
1231
1218
  };
1219
+ id?: undefined;
1220
+ campaignId?: undefined;
1221
+ creatorAddress?: undefined;
1232
1222
  })[];
1233
1223
  }[] | undefined;
1224
+ endTimestamp: {
1225
+ lt?: undefined;
1226
+ gt?: undefined;
1227
+ gte: number;
1228
+ } | undefined;
1229
+ startTimestamp: {
1230
+ lte?: undefined;
1231
+ gt?: undefined;
1232
+ gte: number;
1233
+ } | undefined;
1234
1234
  };
1235
1235
  };