@merkl/api 1.18.24 → 1.18.32

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 (143) hide show
  1. package/dist/src/eden/index.d.ts +297 -40
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +70 -0
  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/RoycoDawn/metadata.d.ts +23 -0
  10. package/dist/src/engine/implementations/RoycoDawn/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 +394 -54
  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/modules/v4/accounting/accounting.controller.js.map +1 -1
  46. package/dist/src/modules/v4/apiKey/apiKey.controller.d.ts +239 -0
  47. package/dist/src/modules/v4/apiKey/apiKey.controller.js.map +1 -0
  48. package/dist/src/modules/v4/apiKey/apiKey.model.d.ts +53 -0
  49. package/dist/src/modules/v4/apiKey/apiKey.model.js.map +1 -0
  50. package/dist/src/modules/v4/apiKey/apiKey.repository.d.ts +106 -0
  51. package/dist/src/modules/v4/apiKey/apiKey.repository.js.map +1 -0
  52. package/dist/src/modules/v4/apiKey/apiKey.service.d.ts +96 -0
  53. package/dist/src/modules/v4/apiKey/apiKey.service.js.map +1 -0
  54. package/dist/src/modules/v4/authentication/authentication.controller.d.ts +1 -0
  55. package/dist/src/modules/v4/authentication/authentication.controller.js.map +1 -1
  56. package/dist/src/modules/v4/authentication/authentication.model.d.ts +2 -5
  57. package/dist/src/modules/v4/authentication/authentication.model.js.map +1 -1
  58. package/dist/src/modules/v4/authentication/authentication.service.d.ts +11 -2
  59. package/dist/src/modules/v4/authentication/authentication.service.js.map +1 -1
  60. package/dist/src/modules/v4/autoclaim/autoclaim.controller.d.ts +4 -0
  61. package/dist/src/modules/v4/autoclaim/autoclaim.repository.d.ts +4 -0
  62. package/dist/src/modules/v4/autoclaim/autoclaim.service.d.ts +4 -0
  63. package/dist/src/modules/v4/blacklist/blacklist.controller.js.map +1 -1
  64. package/dist/src/modules/v4/cache/cache.repository.d.ts +10 -1
  65. package/dist/src/modules/v4/cache/cache.repository.js.map +1 -1
  66. package/dist/src/modules/v4/cache/cache.service.d.ts +1 -1
  67. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +34 -2
  68. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  69. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +114 -114
  70. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +12 -0
  71. package/dist/src/modules/v4/campaign/campaign.service.d.ts +1 -1
  72. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  73. package/dist/src/modules/v4/claims/claims.controller.d.ts +14 -8
  74. package/dist/src/modules/v4/claims/claims.controller.js.map +1 -1
  75. package/dist/src/modules/v4/claims/claims.model.d.ts +15 -9
  76. package/dist/src/modules/v4/claims/claims.model.js.map +1 -1
  77. package/dist/src/modules/v4/claims/claims.service.d.ts +20 -9
  78. package/dist/src/modules/v4/claims/claims.service.js.map +1 -1
  79. package/dist/src/modules/v4/computedValue/computedValue.controller.js.map +1 -1
  80. package/dist/src/modules/v4/config/config.controller.d.ts +38 -0
  81. package/dist/src/modules/v4/config/config.controller.js.map +1 -1
  82. package/dist/src/modules/v4/config/config.service.js.map +1 -1
  83. package/dist/src/modules/v4/creator/creator.controller.d.ts +38 -0
  84. package/dist/src/modules/v4/creator/creator.controller.js.map +1 -1
  85. package/dist/src/modules/v4/jobWatermark/jobWatermark.constants.d.ts +4 -0
  86. package/dist/src/modules/v4/jobWatermark/jobWatermark.constants.js.map +1 -0
  87. package/dist/src/modules/v4/jobWatermark/jobWatermark.repository.d.ts +11 -0
  88. package/dist/src/modules/v4/jobWatermark/jobWatermark.repository.js.map +1 -0
  89. package/dist/src/modules/v4/jobWatermark/jobWatermark.service.d.ts +20 -0
  90. package/dist/src/modules/v4/jobWatermark/jobWatermark.service.js.map +1 -0
  91. package/dist/src/modules/v4/leaf/leafLeaderboard.service.js.map +1 -1
  92. package/dist/src/modules/v4/node/node.controller.js.map +1 -1
  93. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +62 -20
  94. package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
  95. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +59 -56
  96. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +4 -0
  97. package/dist/src/modules/v4/privacy/privacy.controller.d.ts +36 -0
  98. package/dist/src/modules/v4/privacy/privacy.controller.js.map +1 -1
  99. package/dist/src/modules/v4/reward/reward.controller.d.ts +34 -2
  100. package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
  101. package/dist/src/modules/v4/router.d.ts +364 -27
  102. package/dist/src/modules/v4/router.js.map +1 -1
  103. package/dist/src/modules/v4/token/token.controller.js.map +1 -1
  104. package/dist/src/modules/v4/ton/ton.controller.js.map +1 -1
  105. package/dist/src/modules/v4/transaction/transaction.service.d.ts +3707 -7857
  106. package/dist/src/modules/v4/turtle/turtle.controller.js.map +1 -1
  107. package/dist/src/modules/v4/tvl/tvl.service.js.map +1 -1
  108. package/dist/src/modules/v4/uniswap/uniswap.controller.js.map +1 -1
  109. package/dist/src/modules/v4/user/user.controller.d.ts +141 -2
  110. package/dist/src/modules/v4/user/user.controller.js.map +1 -1
  111. package/dist/src/modules/v4/user/user.formatter.js.map +1 -1
  112. package/dist/src/modules/v4/user/user.model.d.ts +4 -0
  113. package/dist/src/modules/v4/user/user.model.js.map +1 -1
  114. package/dist/src/modules/v4/user/user.repository.d.ts +2 -0
  115. package/dist/src/modules/v4/user/user.repository.js.map +1 -1
  116. package/dist/src/modules/v4/user/user.service.d.ts +6 -0
  117. package/dist/src/modules/v4/user/user.service.js.map +1 -1
  118. package/dist/src/plugins/AddressChecksum.plugin.d.ts +36 -0
  119. package/dist/src/plugins/AddressChecksum.plugin.js.map +1 -0
  120. package/dist/src/plugins/ApiKeyTracking.plugin.d.ts +42 -0
  121. package/dist/src/plugins/ApiKeyTracking.plugin.js.map +1 -0
  122. package/dist/src/plugins/AuthResolve.plugin.d.ts +70 -0
  123. package/dist/src/plugins/AuthResolve.plugin.js.map +1 -0
  124. package/dist/src/plugins/errorHandler.d.ts +5 -7
  125. package/dist/src/plugins/errorHandler.js.map +1 -1
  126. package/dist/src/scripts/count-worldchain-claims.d.ts +1 -0
  127. package/dist/src/scripts/count-worldchain-claims.js.map +1 -0
  128. package/dist/src/scripts/exportOpportunities.js.map +1 -1
  129. package/dist/src/scripts/importOpportunities.js.map +1 -1
  130. package/dist/src/scripts/ingest-tree-all.d.ts +3 -2
  131. package/dist/src/scripts/ingest-tree-all.js.map +1 -1
  132. package/dist/src/scripts/ingest-tree-history.js.map +1 -1
  133. package/dist/src/scripts/ingest-tree.js.map +1 -1
  134. package/dist/src/scripts/perf-tree.js.map +1 -1
  135. package/dist/src/scripts/revert-merge-etl.d.ts +5 -0
  136. package/dist/src/scripts/revert-merge-etl.js.map +1 -0
  137. package/dist/src/scripts/verify-reward-totals.d.ts +25 -0
  138. package/dist/src/scripts/verify-reward-totals.js.map +1 -0
  139. package/dist/src/scripts/verify-tree.js.map +1 -1
  140. package/dist/src/utils/getAPR.d.ts +807 -2882
  141. package/dist/src/utils/parseDistributionType.d.ts +780 -2855
  142. package/dist/tsconfig.tsbuildinfo +1 -1
  143. 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,9 +206,10 @@ 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;
212
+ tags?: undefined;
223
213
  Creator: {
224
214
  id: string;
225
215
  };
@@ -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,49 +246,48 @@ 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
  };
253
+ campaignId?: undefined;
254
+ creatorAddress?: undefined;
266
255
  Opportunity?: undefined;
256
+ RewardToken?: undefined;
267
257
  } | {
268
258
  id?: undefined;
269
- creatorAddress?: undefined;
270
- RewardToken?: undefined;
271
259
  campaignId: {
272
260
  contains: string;
273
261
  mode: "insensitive";
274
262
  };
263
+ creatorAddress?: undefined;
275
264
  Opportunity?: undefined;
265
+ RewardToken?: undefined;
276
266
  } | {
277
267
  id?: undefined;
278
268
  campaignId?: undefined;
279
- RewardToken?: undefined;
280
269
  creatorAddress: {
281
270
  contains: string;
282
271
  mode: "insensitive";
283
272
  };
284
273
  Opportunity?: undefined;
274
+ RewardToken?: undefined;
285
275
  } | {
286
276
  id?: undefined;
287
277
  campaignId?: undefined;
288
278
  creatorAddress?: undefined;
289
- RewardToken?: undefined;
290
279
  Opportunity: {
291
- mainProtocolId?: undefined;
292
280
  identifier: {
293
281
  contains: string;
294
282
  mode: "insensitive";
295
283
  };
284
+ mainProtocolId?: undefined;
296
285
  };
286
+ RewardToken?: undefined;
297
287
  } | {
298
288
  id?: undefined;
299
289
  campaignId?: undefined;
300
290
  creatorAddress?: undefined;
301
- RewardToken?: undefined;
302
291
  Opportunity: {
303
292
  identifier?: undefined;
304
293
  mainProtocolId: {
@@ -306,6 +295,7 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
306
295
  mode: "insensitive";
307
296
  };
308
297
  };
298
+ RewardToken?: undefined;
309
299
  } | {
310
300
  id?: undefined;
311
301
  campaignId?: undefined;
@@ -313,19 +303,19 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
313
303
  Opportunity?: undefined;
314
304
  RewardToken: {
315
305
  OR: ({
316
- address?: undefined;
317
306
  symbol: {
318
307
  contains: string;
319
308
  mode: "insensitive";
320
309
  };
321
310
  displaySymbol?: undefined;
311
+ address?: undefined;
322
312
  } | {
323
313
  symbol?: undefined;
324
- address?: undefined;
325
314
  displaySymbol: {
326
315
  contains: string;
327
316
  mode: "insensitive";
328
317
  };
318
+ address?: undefined;
329
319
  } | {
330
320
  symbol?: undefined;
331
321
  displaySymbol?: undefined;
@@ -338,12 +328,6 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
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,9 +424,10 @@ 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;
430
+ tags?: undefined;
447
431
  Creator: {
448
432
  id: string;
449
433
  };
@@ -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,49 +464,48 @@ 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
  };
471
+ campaignId?: undefined;
472
+ creatorAddress?: undefined;
490
473
  Opportunity?: undefined;
474
+ RewardToken?: undefined;
491
475
  } | {
492
476
  id?: undefined;
493
- creatorAddress?: undefined;
494
- RewardToken?: undefined;
495
477
  campaignId: {
496
478
  contains: string;
497
479
  mode: "insensitive";
498
480
  };
481
+ creatorAddress?: undefined;
499
482
  Opportunity?: undefined;
483
+ RewardToken?: undefined;
500
484
  } | {
501
485
  id?: undefined;
502
486
  campaignId?: undefined;
503
- RewardToken?: undefined;
504
487
  creatorAddress: {
505
488
  contains: string;
506
489
  mode: "insensitive";
507
490
  };
508
491
  Opportunity?: undefined;
492
+ RewardToken?: undefined;
509
493
  } | {
510
494
  id?: undefined;
511
495
  campaignId?: undefined;
512
496
  creatorAddress?: undefined;
513
- RewardToken?: undefined;
514
497
  Opportunity: {
515
- mainProtocolId?: undefined;
516
498
  identifier: {
517
499
  contains: string;
518
500
  mode: "insensitive";
519
501
  };
502
+ mainProtocolId?: undefined;
520
503
  };
504
+ RewardToken?: undefined;
521
505
  } | {
522
506
  id?: undefined;
523
507
  campaignId?: undefined;
524
508
  creatorAddress?: undefined;
525
- RewardToken?: undefined;
526
509
  Opportunity: {
527
510
  identifier?: undefined;
528
511
  mainProtocolId: {
@@ -530,6 +513,7 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
530
513
  mode: "insensitive";
531
514
  };
532
515
  };
516
+ RewardToken?: undefined;
533
517
  } | {
534
518
  id?: undefined;
535
519
  campaignId?: undefined;
@@ -537,19 +521,19 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
537
521
  Opportunity?: undefined;
538
522
  RewardToken: {
539
523
  OR: ({
540
- address?: undefined;
541
524
  symbol: {
542
525
  contains: string;
543
526
  mode: "insensitive";
544
527
  };
545
528
  displaySymbol?: undefined;
529
+ address?: undefined;
546
530
  } | {
547
531
  symbol?: undefined;
548
- address?: undefined;
549
532
  displaySymbol: {
550
533
  contains: string;
551
534
  mode: "insensitive";
552
535
  };
536
+ address?: undefined;
553
537
  } | {
554
538
  symbol?: undefined;
555
539
  displaySymbol?: undefined;
@@ -561,13 +545,17 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
561
545
  };
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,9 +652,10 @@ 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;
658
+ tags?: undefined;
671
659
  Creator: {
672
660
  id: string;
673
661
  };
@@ -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,49 +692,48 @@ 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
  };
699
+ campaignId?: undefined;
700
+ creatorAddress?: undefined;
714
701
  Opportunity?: undefined;
702
+ RewardToken?: undefined;
715
703
  } | {
716
704
  id?: undefined;
717
- creatorAddress?: undefined;
718
- RewardToken?: undefined;
719
705
  campaignId: {
720
706
  contains: string;
721
707
  mode: "insensitive";
722
708
  };
709
+ creatorAddress?: undefined;
723
710
  Opportunity?: undefined;
711
+ RewardToken?: undefined;
724
712
  } | {
725
713
  id?: undefined;
726
714
  campaignId?: undefined;
727
- RewardToken?: undefined;
728
715
  creatorAddress: {
729
716
  contains: string;
730
717
  mode: "insensitive";
731
718
  };
732
719
  Opportunity?: undefined;
720
+ RewardToken?: undefined;
733
721
  } | {
734
722
  id?: undefined;
735
723
  campaignId?: undefined;
736
724
  creatorAddress?: undefined;
737
- RewardToken?: undefined;
738
725
  Opportunity: {
739
- mainProtocolId?: undefined;
740
726
  identifier: {
741
727
  contains: string;
742
728
  mode: "insensitive";
743
729
  };
730
+ mainProtocolId?: undefined;
744
731
  };
732
+ RewardToken?: undefined;
745
733
  } | {
746
734
  id?: undefined;
747
735
  campaignId?: undefined;
748
736
  creatorAddress?: undefined;
749
- RewardToken?: undefined;
750
737
  Opportunity: {
751
738
  identifier?: undefined;
752
739
  mainProtocolId: {
@@ -754,6 +741,7 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
754
741
  mode: "insensitive";
755
742
  };
756
743
  };
744
+ RewardToken?: undefined;
757
745
  } | {
758
746
  id?: undefined;
759
747
  campaignId?: undefined;
@@ -761,19 +749,19 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
761
749
  Opportunity?: undefined;
762
750
  RewardToken: {
763
751
  OR: ({
764
- address?: undefined;
765
752
  symbol: {
766
753
  contains: string;
767
754
  mode: "insensitive";
768
755
  };
769
756
  displaySymbol?: undefined;
757
+ address?: undefined;
770
758
  } | {
771
759
  symbol?: undefined;
772
- address?: undefined;
773
760
  displaySymbol: {
774
761
  contains: string;
775
762
  mode: "insensitive";
776
763
  };
764
+ address?: undefined;
777
765
  } | {
778
766
  symbol?: undefined;
779
767
  displaySymbol?: undefined;
@@ -785,17 +773,13 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
785
773
  };
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,9 +876,10 @@ 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;
882
+ tags?: undefined;
899
883
  Creator: {
900
884
  id: string;
901
885
  };
@@ -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,49 +916,48 @@ 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
  };
923
+ campaignId?: undefined;
924
+ creatorAddress?: undefined;
942
925
  Opportunity?: undefined;
926
+ RewardToken?: undefined;
943
927
  } | {
944
928
  id?: undefined;
945
- creatorAddress?: undefined;
946
- RewardToken?: undefined;
947
929
  campaignId: {
948
930
  contains: string;
949
931
  mode: "insensitive";
950
932
  };
933
+ creatorAddress?: undefined;
951
934
  Opportunity?: undefined;
935
+ RewardToken?: undefined;
952
936
  } | {
953
937
  id?: undefined;
954
938
  campaignId?: undefined;
955
- RewardToken?: undefined;
956
939
  creatorAddress: {
957
940
  contains: string;
958
941
  mode: "insensitive";
959
942
  };
960
943
  Opportunity?: undefined;
944
+ RewardToken?: undefined;
961
945
  } | {
962
946
  id?: undefined;
963
947
  campaignId?: undefined;
964
948
  creatorAddress?: undefined;
965
- RewardToken?: undefined;
966
949
  Opportunity: {
967
- mainProtocolId?: undefined;
968
950
  identifier: {
969
951
  contains: string;
970
952
  mode: "insensitive";
971
953
  };
954
+ mainProtocolId?: undefined;
972
955
  };
956
+ RewardToken?: undefined;
973
957
  } | {
974
958
  id?: undefined;
975
959
  campaignId?: undefined;
976
960
  creatorAddress?: undefined;
977
- RewardToken?: undefined;
978
961
  Opportunity: {
979
962
  identifier?: undefined;
980
963
  mainProtocolId: {
@@ -982,6 +965,7 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
982
965
  mode: "insensitive";
983
966
  };
984
967
  };
968
+ RewardToken?: undefined;
985
969
  } | {
986
970
  id?: undefined;
987
971
  campaignId?: undefined;
@@ -989,19 +973,19 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
989
973
  Opportunity?: undefined;
990
974
  RewardToken: {
991
975
  OR: ({
992
- address?: undefined;
993
976
  symbol: {
994
977
  contains: string;
995
978
  mode: "insensitive";
996
979
  };
997
980
  displaySymbol?: undefined;
981
+ address?: undefined;
998
982
  } | {
999
983
  symbol?: undefined;
1000
- address?: undefined;
1001
984
  displaySymbol: {
1002
985
  contains: string;
1003
986
  mode: "insensitive";
1004
987
  };
988
+ address?: undefined;
1005
989
  } | {
1006
990
  symbol?: undefined;
1007
991
  displaySymbol?: undefined;
@@ -1013,6 +997,12 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1013
997
  };
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,9 +1100,10 @@ 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;
1106
+ tags?: undefined;
1117
1107
  Creator: {
1118
1108
  id: string;
1119
1109
  };
@@ -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,49 +1140,48 @@ 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
  };
1147
+ campaignId?: undefined;
1148
+ creatorAddress?: undefined;
1160
1149
  Opportunity?: undefined;
1150
+ RewardToken?: undefined;
1161
1151
  } | {
1162
1152
  id?: undefined;
1163
- creatorAddress?: undefined;
1164
- RewardToken?: undefined;
1165
1153
  campaignId: {
1166
1154
  contains: string;
1167
1155
  mode: "insensitive";
1168
1156
  };
1157
+ creatorAddress?: undefined;
1169
1158
  Opportunity?: undefined;
1159
+ RewardToken?: undefined;
1170
1160
  } | {
1171
1161
  id?: undefined;
1172
1162
  campaignId?: undefined;
1173
- RewardToken?: undefined;
1174
1163
  creatorAddress: {
1175
1164
  contains: string;
1176
1165
  mode: "insensitive";
1177
1166
  };
1178
1167
  Opportunity?: undefined;
1168
+ RewardToken?: undefined;
1179
1169
  } | {
1180
1170
  id?: undefined;
1181
1171
  campaignId?: undefined;
1182
1172
  creatorAddress?: undefined;
1183
- RewardToken?: undefined;
1184
1173
  Opportunity: {
1185
- mainProtocolId?: undefined;
1186
1174
  identifier: {
1187
1175
  contains: string;
1188
1176
  mode: "insensitive";
1189
1177
  };
1178
+ mainProtocolId?: undefined;
1190
1179
  };
1180
+ RewardToken?: undefined;
1191
1181
  } | {
1192
1182
  id?: undefined;
1193
1183
  campaignId?: undefined;
1194
1184
  creatorAddress?: undefined;
1195
- RewardToken?: undefined;
1196
1185
  Opportunity: {
1197
1186
  identifier?: undefined;
1198
1187
  mainProtocolId: {
@@ -1200,6 +1189,7 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1200
1189
  mode: "insensitive";
1201
1190
  };
1202
1191
  };
1192
+ RewardToken?: undefined;
1203
1193
  } | {
1204
1194
  id?: undefined;
1205
1195
  campaignId?: undefined;
@@ -1207,19 +1197,19 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1207
1197
  Opportunity?: undefined;
1208
1198
  RewardToken: {
1209
1199
  OR: ({
1210
- address?: undefined;
1211
1200
  symbol: {
1212
1201
  contains: string;
1213
1202
  mode: "insensitive";
1214
1203
  };
1215
1204
  displaySymbol?: undefined;
1205
+ address?: undefined;
1216
1206
  } | {
1217
1207
  symbol?: undefined;
1218
- address?: undefined;
1219
1208
  displaySymbol: {
1220
1209
  contains: string;
1221
1210
  mode: "insensitive";
1222
1211
  };
1212
+ address?: undefined;
1223
1213
  } | {
1224
1214
  symbol?: undefined;
1225
1215
  displaySymbol?: undefined;
@@ -1231,5 +1221,15 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1231
1221
  };
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
  };