@merkl/api 1.7.103 → 1.8.3

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 (55) hide show
  1. package/dist/src/eden/index.d.ts +94 -0
  2. package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +60 -0
  3. package/dist/src/engine/deprecated/erc20SubTypeProcessors/helpers/hardcoded.js.map +1 -1
  4. package/dist/src/engine/implementations/MultiLog/metadata.js.map +1 -1
  5. package/dist/src/engine/implementations/SpectraAsyncVault/metadata.d.ts +33 -0
  6. package/dist/src/engine/implementations/SpectraAsyncVault/metadata.js.map +1 -0
  7. package/dist/src/engine/metadata/factory.js.map +1 -1
  8. package/dist/src/engine/tvl/factory.js.map +1 -1
  9. package/dist/src/guards/BackOffice.guard.d.ts +8 -0
  10. package/dist/src/guards/BackOffice.guard.js.map +1 -1
  11. package/dist/src/guards/CampaignAccess.guard.d.ts +44 -0
  12. package/dist/src/guards/CampaignAccess.guard.js.map +1 -0
  13. package/dist/src/index.d.ts +131 -0
  14. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +4 -0
  15. package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
  16. package/dist/src/modules/v4/campaign/campaign.model.d.ts +1 -0
  17. package/dist/src/modules/v4/campaign/campaign.model.js.map +1 -1
  18. package/dist/src/modules/v4/campaign/campaign.query-transformer.d.ts +80 -80
  19. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +19 -0
  20. package/dist/src/modules/v4/campaign/campaign.repository.js.map +1 -1
  21. package/dist/src/modules/v4/campaign/campaign.service.d.ts +34 -0
  22. package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
  23. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
  24. package/dist/src/modules/v4/campaignStatus/campaignStatus.repository.d.ts +1 -0
  25. package/dist/src/modules/v4/config/config.controller.d.ts +1 -0
  26. package/dist/src/modules/v4/config/config.service.d.ts +1 -0
  27. package/dist/src/modules/v4/creator/creator.controller.d.ts +1 -0
  28. package/dist/src/modules/v4/creator/creator.controller.js.map +1 -1
  29. package/dist/src/modules/v4/creator/creator.service.d.ts +2 -1
  30. package/dist/src/modules/v4/creator/creator.service.js.map +1 -1
  31. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +2 -0
  32. package/dist/src/modules/v4/opportunity/opportunity.controller.js.map +1 -1
  33. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +1 -0
  34. package/dist/src/modules/v4/opportunity/opportunity.query-transformer.d.ts +48 -42
  35. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +6 -0
  36. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +313 -5
  37. package/dist/src/modules/v4/opportunity/opportunity.service.js.map +1 -1
  38. package/dist/src/modules/v4/payload/payload.controller.d.ts +3 -0
  39. package/dist/src/modules/v4/payload/payload.service.d.ts +4 -0
  40. package/dist/src/modules/v4/privacy/privacy.controller.d.ts +149 -0
  41. package/dist/src/modules/v4/privacy/privacy.controller.js.map +1 -0
  42. package/dist/src/modules/v4/privacy/privacy.model.d.ts +30 -0
  43. package/dist/src/modules/v4/privacy/privacy.model.js.map +1 -0
  44. package/dist/src/modules/v4/privacy/privacy.service.d.ts +95 -0
  45. package/dist/src/modules/v4/privacy/privacy.service.js.map +1 -0
  46. package/dist/src/modules/v4/reward/reward.controller.js.map +1 -1
  47. package/dist/src/modules/v4/reward/reward.repository.d.ts +3 -0
  48. package/dist/src/modules/v4/reward/reward.service.d.ts +9 -4
  49. package/dist/src/modules/v4/reward/reward.service.js.map +1 -1
  50. package/dist/src/modules/v4/router.d.ts +131 -0
  51. package/dist/src/modules/v4/router.js.map +1 -1
  52. package/dist/src/utils/getAPR.d.ts +1950 -1825
  53. package/dist/src/utils/parseDistributionType.d.ts +147 -22
  54. package/dist/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +1 -1
@@ -199,10 +199,10 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
199
199
  tags?: undefined;
200
200
  } | {
201
201
  OR?: undefined;
202
- tags?: undefined;
203
202
  Creator: {
204
203
  id: string;
205
204
  };
205
+ tags?: undefined;
206
206
  } | {
207
207
  OR?: undefined;
208
208
  Creator?: undefined;
@@ -239,32 +239,29 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
239
239
  contains: string;
240
240
  mode: "insensitive";
241
241
  };
242
+ Opportunity?: undefined;
242
243
  campaignId?: undefined;
243
244
  creatorAddress?: undefined;
244
- Opportunity?: undefined;
245
245
  RewardToken?: undefined;
246
246
  } | {
247
- id?: undefined;
248
247
  campaignId: {
249
248
  contains: string;
250
249
  mode: "insensitive";
251
250
  };
252
- creatorAddress?: undefined;
253
251
  Opportunity?: undefined;
252
+ id?: undefined;
253
+ creatorAddress?: undefined;
254
254
  RewardToken?: undefined;
255
255
  } | {
256
- id?: undefined;
257
- campaignId?: undefined;
258
256
  creatorAddress: {
259
257
  contains: string;
260
258
  mode: "insensitive";
261
259
  };
262
260
  Opportunity?: undefined;
263
- RewardToken?: undefined;
264
- } | {
265
261
  id?: undefined;
266
262
  campaignId?: undefined;
267
- creatorAddress?: undefined;
263
+ RewardToken?: undefined;
264
+ } | {
268
265
  Opportunity: {
269
266
  identifier: {
270
267
  contains: string;
@@ -272,23 +269,23 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
272
269
  };
273
270
  mainProtocolId?: undefined;
274
271
  };
275
- RewardToken?: undefined;
276
- } | {
277
272
  id?: undefined;
278
273
  campaignId?: undefined;
279
274
  creatorAddress?: undefined;
275
+ RewardToken?: undefined;
276
+ } | {
280
277
  Opportunity: {
281
- identifier?: undefined;
282
278
  mainProtocolId: {
283
279
  contains: string;
284
280
  mode: "insensitive";
285
281
  };
282
+ identifier?: undefined;
286
283
  };
287
- RewardToken?: undefined;
288
- } | {
289
284
  id?: undefined;
290
285
  campaignId?: undefined;
291
286
  creatorAddress?: undefined;
287
+ RewardToken?: undefined;
288
+ } | {
292
289
  Opportunity?: undefined;
293
290
  RewardToken: {
294
291
  OR: ({
@@ -299,21 +296,24 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
299
296
  displaySymbol?: undefined;
300
297
  address?: undefined;
301
298
  } | {
302
- symbol?: undefined;
303
299
  displaySymbol: {
304
300
  contains: string;
305
301
  mode: "insensitive";
306
302
  };
303
+ symbol?: undefined;
307
304
  address?: undefined;
308
305
  } | {
309
- symbol?: undefined;
310
306
  displaySymbol?: undefined;
311
307
  address: {
312
308
  contains: string;
313
309
  mode: "insensitive";
314
310
  };
311
+ symbol?: undefined;
315
312
  })[];
316
313
  };
314
+ id?: undefined;
315
+ campaignId?: undefined;
316
+ creatorAddress?: undefined;
317
317
  })[];
318
318
  }[] | undefined;
319
319
  } | {
@@ -414,10 +414,10 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
414
414
  tags?: undefined;
415
415
  } | {
416
416
  OR?: undefined;
417
- tags?: undefined;
418
417
  Creator: {
419
418
  id: string;
420
419
  };
420
+ tags?: undefined;
421
421
  } | {
422
422
  OR?: undefined;
423
423
  Creator?: undefined;
@@ -454,32 +454,29 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
454
454
  contains: string;
455
455
  mode: "insensitive";
456
456
  };
457
+ Opportunity?: undefined;
457
458
  campaignId?: undefined;
458
459
  creatorAddress?: undefined;
459
- Opportunity?: undefined;
460
460
  RewardToken?: undefined;
461
461
  } | {
462
- id?: undefined;
463
462
  campaignId: {
464
463
  contains: string;
465
464
  mode: "insensitive";
466
465
  };
467
- creatorAddress?: undefined;
468
466
  Opportunity?: undefined;
467
+ id?: undefined;
468
+ creatorAddress?: undefined;
469
469
  RewardToken?: undefined;
470
470
  } | {
471
- id?: undefined;
472
- campaignId?: undefined;
473
471
  creatorAddress: {
474
472
  contains: string;
475
473
  mode: "insensitive";
476
474
  };
477
475
  Opportunity?: undefined;
478
- RewardToken?: undefined;
479
- } | {
480
476
  id?: undefined;
481
477
  campaignId?: undefined;
482
- creatorAddress?: undefined;
478
+ RewardToken?: undefined;
479
+ } | {
483
480
  Opportunity: {
484
481
  identifier: {
485
482
  contains: string;
@@ -487,23 +484,23 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
487
484
  };
488
485
  mainProtocolId?: undefined;
489
486
  };
490
- RewardToken?: undefined;
491
- } | {
492
487
  id?: undefined;
493
488
  campaignId?: undefined;
494
489
  creatorAddress?: undefined;
490
+ RewardToken?: undefined;
491
+ } | {
495
492
  Opportunity: {
496
- identifier?: undefined;
497
493
  mainProtocolId: {
498
494
  contains: string;
499
495
  mode: "insensitive";
500
496
  };
497
+ identifier?: undefined;
501
498
  };
502
- RewardToken?: undefined;
503
- } | {
504
499
  id?: undefined;
505
500
  campaignId?: undefined;
506
501
  creatorAddress?: undefined;
502
+ RewardToken?: undefined;
503
+ } | {
507
504
  Opportunity?: undefined;
508
505
  RewardToken: {
509
506
  OR: ({
@@ -514,21 +511,24 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
514
511
  displaySymbol?: undefined;
515
512
  address?: undefined;
516
513
  } | {
517
- symbol?: undefined;
518
514
  displaySymbol: {
519
515
  contains: string;
520
516
  mode: "insensitive";
521
517
  };
518
+ symbol?: undefined;
522
519
  address?: undefined;
523
520
  } | {
524
- symbol?: undefined;
525
521
  displaySymbol?: undefined;
526
522
  address: {
527
523
  contains: string;
528
524
  mode: "insensitive";
529
525
  };
526
+ symbol?: undefined;
530
527
  })[];
531
528
  };
529
+ id?: undefined;
530
+ campaignId?: undefined;
531
+ creatorAddress?: undefined;
532
532
  })[];
533
533
  }[] | undefined;
534
534
  endTimestamp: {
@@ -639,10 +639,10 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
639
639
  tags?: undefined;
640
640
  } | {
641
641
  OR?: undefined;
642
- tags?: undefined;
643
642
  Creator: {
644
643
  id: string;
645
644
  };
645
+ tags?: undefined;
646
646
  } | {
647
647
  OR?: undefined;
648
648
  Creator?: undefined;
@@ -679,32 +679,29 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
679
679
  contains: string;
680
680
  mode: "insensitive";
681
681
  };
682
+ Opportunity?: undefined;
682
683
  campaignId?: undefined;
683
684
  creatorAddress?: undefined;
684
- Opportunity?: undefined;
685
685
  RewardToken?: undefined;
686
686
  } | {
687
- id?: undefined;
688
687
  campaignId: {
689
688
  contains: string;
690
689
  mode: "insensitive";
691
690
  };
692
- creatorAddress?: undefined;
693
691
  Opportunity?: undefined;
692
+ id?: undefined;
693
+ creatorAddress?: undefined;
694
694
  RewardToken?: undefined;
695
695
  } | {
696
- id?: undefined;
697
- campaignId?: undefined;
698
696
  creatorAddress: {
699
697
  contains: string;
700
698
  mode: "insensitive";
701
699
  };
702
700
  Opportunity?: undefined;
703
- RewardToken?: undefined;
704
- } | {
705
701
  id?: undefined;
706
702
  campaignId?: undefined;
707
- creatorAddress?: undefined;
703
+ RewardToken?: undefined;
704
+ } | {
708
705
  Opportunity: {
709
706
  identifier: {
710
707
  contains: string;
@@ -712,23 +709,23 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
712
709
  };
713
710
  mainProtocolId?: undefined;
714
711
  };
715
- RewardToken?: undefined;
716
- } | {
717
712
  id?: undefined;
718
713
  campaignId?: undefined;
719
714
  creatorAddress?: undefined;
715
+ RewardToken?: undefined;
716
+ } | {
720
717
  Opportunity: {
721
- identifier?: undefined;
722
718
  mainProtocolId: {
723
719
  contains: string;
724
720
  mode: "insensitive";
725
721
  };
722
+ identifier?: undefined;
726
723
  };
727
- RewardToken?: undefined;
728
- } | {
729
724
  id?: undefined;
730
725
  campaignId?: undefined;
731
726
  creatorAddress?: undefined;
727
+ RewardToken?: undefined;
728
+ } | {
732
729
  Opportunity?: undefined;
733
730
  RewardToken: {
734
731
  OR: ({
@@ -739,21 +736,24 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
739
736
  displaySymbol?: undefined;
740
737
  address?: undefined;
741
738
  } | {
742
- symbol?: undefined;
743
739
  displaySymbol: {
744
740
  contains: string;
745
741
  mode: "insensitive";
746
742
  };
743
+ symbol?: undefined;
747
744
  address?: undefined;
748
745
  } | {
749
- symbol?: undefined;
750
746
  displaySymbol?: undefined;
751
747
  address: {
752
748
  contains: string;
753
749
  mode: "insensitive";
754
750
  };
751
+ symbol?: undefined;
755
752
  })[];
756
753
  };
754
+ id?: undefined;
755
+ campaignId?: undefined;
756
+ creatorAddress?: undefined;
757
757
  })[];
758
758
  }[] | undefined;
759
759
  endTimestamp: {
@@ -860,10 +860,10 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
860
860
  tags?: undefined;
861
861
  } | {
862
862
  OR?: undefined;
863
- tags?: undefined;
864
863
  Creator: {
865
864
  id: string;
866
865
  };
866
+ tags?: undefined;
867
867
  } | {
868
868
  OR?: undefined;
869
869
  Creator?: undefined;
@@ -900,32 +900,29 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
900
900
  contains: string;
901
901
  mode: "insensitive";
902
902
  };
903
+ Opportunity?: undefined;
903
904
  campaignId?: undefined;
904
905
  creatorAddress?: undefined;
905
- Opportunity?: undefined;
906
906
  RewardToken?: undefined;
907
907
  } | {
908
- id?: undefined;
909
908
  campaignId: {
910
909
  contains: string;
911
910
  mode: "insensitive";
912
911
  };
913
- creatorAddress?: undefined;
914
912
  Opportunity?: undefined;
913
+ id?: undefined;
914
+ creatorAddress?: undefined;
915
915
  RewardToken?: undefined;
916
916
  } | {
917
- id?: undefined;
918
- campaignId?: undefined;
919
917
  creatorAddress: {
920
918
  contains: string;
921
919
  mode: "insensitive";
922
920
  };
923
921
  Opportunity?: undefined;
924
- RewardToken?: undefined;
925
- } | {
926
922
  id?: undefined;
927
923
  campaignId?: undefined;
928
- creatorAddress?: undefined;
924
+ RewardToken?: undefined;
925
+ } | {
929
926
  Opportunity: {
930
927
  identifier: {
931
928
  contains: string;
@@ -933,23 +930,23 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
933
930
  };
934
931
  mainProtocolId?: undefined;
935
932
  };
936
- RewardToken?: undefined;
937
- } | {
938
933
  id?: undefined;
939
934
  campaignId?: undefined;
940
935
  creatorAddress?: undefined;
936
+ RewardToken?: undefined;
937
+ } | {
941
938
  Opportunity: {
942
- identifier?: undefined;
943
939
  mainProtocolId: {
944
940
  contains: string;
945
941
  mode: "insensitive";
946
942
  };
943
+ identifier?: undefined;
947
944
  };
948
- RewardToken?: undefined;
949
- } | {
950
945
  id?: undefined;
951
946
  campaignId?: undefined;
952
947
  creatorAddress?: undefined;
948
+ RewardToken?: undefined;
949
+ } | {
953
950
  Opportunity?: undefined;
954
951
  RewardToken: {
955
952
  OR: ({
@@ -960,21 +957,24 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
960
957
  displaySymbol?: undefined;
961
958
  address?: undefined;
962
959
  } | {
963
- symbol?: undefined;
964
960
  displaySymbol: {
965
961
  contains: string;
966
962
  mode: "insensitive";
967
963
  };
964
+ symbol?: undefined;
968
965
  address?: undefined;
969
966
  } | {
970
- symbol?: undefined;
971
967
  displaySymbol?: undefined;
972
968
  address: {
973
969
  contains: string;
974
970
  mode: "insensitive";
975
971
  };
972
+ symbol?: undefined;
976
973
  })[];
977
974
  };
975
+ id?: undefined;
976
+ campaignId?: undefined;
977
+ creatorAddress?: undefined;
978
978
  })[];
979
979
  }[] | undefined;
980
980
  startTimestamp: {
@@ -1081,10 +1081,10 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1081
1081
  tags?: undefined;
1082
1082
  } | {
1083
1083
  OR?: undefined;
1084
- tags?: undefined;
1085
1084
  Creator: {
1086
1085
  id: string;
1087
1086
  };
1087
+ tags?: undefined;
1088
1088
  } | {
1089
1089
  OR?: undefined;
1090
1090
  Creator?: undefined;
@@ -1121,32 +1121,29 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1121
1121
  contains: string;
1122
1122
  mode: "insensitive";
1123
1123
  };
1124
+ Opportunity?: undefined;
1124
1125
  campaignId?: undefined;
1125
1126
  creatorAddress?: undefined;
1126
- Opportunity?: undefined;
1127
1127
  RewardToken?: undefined;
1128
1128
  } | {
1129
- id?: undefined;
1130
1129
  campaignId: {
1131
1130
  contains: string;
1132
1131
  mode: "insensitive";
1133
1132
  };
1134
- creatorAddress?: undefined;
1135
1133
  Opportunity?: undefined;
1134
+ id?: undefined;
1135
+ creatorAddress?: undefined;
1136
1136
  RewardToken?: undefined;
1137
1137
  } | {
1138
- id?: undefined;
1139
- campaignId?: undefined;
1140
1138
  creatorAddress: {
1141
1139
  contains: string;
1142
1140
  mode: "insensitive";
1143
1141
  };
1144
1142
  Opportunity?: undefined;
1145
- RewardToken?: undefined;
1146
- } | {
1147
1143
  id?: undefined;
1148
1144
  campaignId?: undefined;
1149
- creatorAddress?: undefined;
1145
+ RewardToken?: undefined;
1146
+ } | {
1150
1147
  Opportunity: {
1151
1148
  identifier: {
1152
1149
  contains: string;
@@ -1154,23 +1151,23 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1154
1151
  };
1155
1152
  mainProtocolId?: undefined;
1156
1153
  };
1157
- RewardToken?: undefined;
1158
- } | {
1159
1154
  id?: undefined;
1160
1155
  campaignId?: undefined;
1161
1156
  creatorAddress?: undefined;
1157
+ RewardToken?: undefined;
1158
+ } | {
1162
1159
  Opportunity: {
1163
- identifier?: undefined;
1164
1160
  mainProtocolId: {
1165
1161
  contains: string;
1166
1162
  mode: "insensitive";
1167
1163
  };
1164
+ identifier?: undefined;
1168
1165
  };
1169
- RewardToken?: undefined;
1170
- } | {
1171
1166
  id?: undefined;
1172
1167
  campaignId?: undefined;
1173
1168
  creatorAddress?: undefined;
1169
+ RewardToken?: undefined;
1170
+ } | {
1174
1171
  Opportunity?: undefined;
1175
1172
  RewardToken: {
1176
1173
  OR: ({
@@ -1181,21 +1178,24 @@ export declare function transformQueryToPrismaFilters(query: Omit<FindCampaignMo
1181
1178
  displaySymbol?: undefined;
1182
1179
  address?: undefined;
1183
1180
  } | {
1184
- symbol?: undefined;
1185
1181
  displaySymbol: {
1186
1182
  contains: string;
1187
1183
  mode: "insensitive";
1188
1184
  };
1185
+ symbol?: undefined;
1189
1186
  address?: undefined;
1190
1187
  } | {
1191
- symbol?: undefined;
1192
1188
  displaySymbol?: undefined;
1193
1189
  address: {
1194
1190
  contains: string;
1195
1191
  mode: "insensitive";
1196
1192
  };
1193
+ symbol?: undefined;
1197
1194
  })[];
1198
1195
  };
1196
+ id?: undefined;
1197
+ campaignId?: undefined;
1198
+ creatorAddress?: undefined;
1199
1199
  })[];
1200
1200
  }[] | undefined;
1201
1201
  endTimestamp: {
@@ -59,6 +59,7 @@ export declare abstract class CampaignRepository {
59
59
  createdAt: Date;
60
60
  rootCampaignId: string | null;
61
61
  parentCampaignId: string | null;
62
+ isPrivate: boolean;
62
63
  })[]>;
63
64
  /**
64
65
  * Retrieves all past campaigns from the database.
@@ -116,6 +117,7 @@ export declare abstract class CampaignRepository {
116
117
  createdAt: Date;
117
118
  rootCampaignId: string | null;
118
119
  parentCampaignId: string | null;
120
+ isPrivate: boolean;
119
121
  })[]>;
120
122
  /**
121
123
  * Retrieves all live campaigns from the database.
@@ -215,6 +217,7 @@ export declare abstract class CampaignRepository {
215
217
  createdAt: Date;
216
218
  rootCampaignId: string | null;
217
219
  parentCampaignId: string | null;
220
+ isPrivate: boolean;
218
221
  })[]>;
219
222
  static countLives(query?: FindCampaignWithStatusModel, includeSubCampaigns?: boolean): Promise<number>;
220
223
  static clearNonLiveWithAPRCampaigns(chainId: number): Promise<import("@prisma/client/runtime/client").GetBatchResult>;
@@ -260,6 +263,7 @@ export declare abstract class CampaignRepository {
260
263
  createdAt: Date;
261
264
  rootCampaignId: string | null;
262
265
  parentCampaignId: string | null;
266
+ isPrivate: boolean;
263
267
  } | undefined>;
264
268
  /**
265
269
  * Retrieves a campaign from the engine database by its chain and campaign id.
@@ -391,6 +395,7 @@ export declare abstract class CampaignRepository {
391
395
  createdAt: Date;
392
396
  rootCampaignId: string | null;
393
397
  parentCampaignId: string | null;
398
+ isPrivate: boolean;
394
399
  }) | null>;
395
400
  static findUniqueOrThrow(id: string, withOpportunity: boolean, options?: {
396
401
  forcePrimary?: boolean;
@@ -503,6 +508,7 @@ export declare abstract class CampaignRepository {
503
508
  createdAt: Date;
504
509
  rootCampaignId: string | null;
505
510
  parentCampaignId: string | null;
511
+ isPrivate: boolean;
506
512
  }>;
507
513
  static findMany(query: FindCampaignModel): Promise<({
508
514
  CampaignStatus: {
@@ -613,6 +619,7 @@ export declare abstract class CampaignRepository {
613
619
  createdAt: Date;
614
620
  rootCampaignId: string | null;
615
621
  parentCampaignId: string | null;
622
+ isPrivate: boolean;
616
623
  })[]>;
617
624
  static findFirst(query: Omit<FindCampaignModel, "page" | "items">): Promise<({
618
625
  CampaignStatus: {
@@ -723,6 +730,7 @@ export declare abstract class CampaignRepository {
723
730
  createdAt: Date;
724
731
  rootCampaignId: string | null;
725
732
  parentCampaignId: string | null;
733
+ isPrivate: boolean;
726
734
  }) | null>;
727
735
  static countMany(query: Omit<FindCampaignModel, "page" | "items">): Promise<number>;
728
736
  static findChains(): Promise<Record<string, ChainId>>;
@@ -837,6 +845,7 @@ export declare abstract class CampaignRepository {
837
845
  createdAt: Date;
838
846
  rootCampaignId: string | null;
839
847
  parentCampaignId: string | null;
848
+ isPrivate: boolean;
840
849
  }>;
841
850
  static updateMany(ids: string[], body: UpdateCampaignModel): Promise<({
842
851
  CampaignStatus: {
@@ -947,6 +956,7 @@ export declare abstract class CampaignRepository {
947
956
  createdAt: Date;
948
957
  rootCampaignId: string | null;
949
958
  parentCampaignId: string | null;
959
+ isPrivate: boolean;
950
960
  })[]>;
951
961
  static updateOpportunity(id: string, opportunityId: string): Promise<void>;
952
962
  static updateCreator(id: string, creatorAddress: string): Promise<void>;
@@ -973,6 +983,7 @@ export declare abstract class CampaignRepository {
973
983
  createdAt: Date;
974
984
  rootCampaignId: string | null;
975
985
  parentCampaignId: string | null;
986
+ isPrivate: boolean;
976
987
  }>;
977
988
  static getTvlRecords(campaign: {
978
989
  opportunityId: string;
@@ -1026,4 +1037,12 @@ export declare abstract class CampaignRepository {
1026
1037
  static getAllLiveCampaignsOnChainBefore(chainId: number, timestamp: bigint): Promise<{
1027
1038
  id: string;
1028
1039
  }[]>;
1040
+ /**
1041
+ * Check if a user address is a recipient of a campaign
1042
+ * Uses RewardBreakdown to check if user has rewards in this campaign
1043
+ * @param campaignId Campaign ID to check
1044
+ * @param userAddress User wallet address (lowercase)
1045
+ * @returns True if user is a recipient
1046
+ */
1047
+ static isRecipient(campaignId: string, userAddress: string): Promise<boolean>;
1029
1048
  }