@merkl/api 0.20.171 → 0.20.172

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 (34) hide show
  1. package/dist/database/api/.generated/drizzle/schema.d.ts +57 -0
  2. package/dist/database/api/.generated/drizzle/schema.js +52 -4
  3. package/dist/database/api/.generated/drizzle/schema.ts +52 -4
  4. package/dist/database/api/.generated/edge.js +13 -7
  5. package/dist/database/api/.generated/index-browser.js +10 -4
  6. package/dist/database/api/.generated/index.d.ts +1624 -39
  7. package/dist/database/api/.generated/index.js +13 -7
  8. package/dist/database/api/.generated/package.json +1 -1
  9. package/dist/database/api/.generated/schema.prisma +23 -13
  10. package/dist/database/api/.generated/wasm.js +10 -4
  11. package/dist/src/eden/index.d.ts +65 -0
  12. package/dist/src/engine/deprecated/dynamicData/factory.js +0 -1
  13. package/dist/src/engine/metadata/factory.js +0 -1
  14. package/dist/src/index.d.ts +23 -0
  15. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +10 -0
  16. package/dist/src/modules/v4/campaign/campaign.model.d.ts +4 -0
  17. package/dist/src/modules/v4/campaign/campaign.model.js +2 -0
  18. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +16 -0
  19. package/dist/src/modules/v4/campaign/campaign.service.d.ts +24 -0
  20. package/dist/src/modules/v4/campaign/campaign.service.js +3 -1
  21. package/dist/src/modules/v4/campaign/campaign.test.controller.d.ts +4 -0
  22. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +6 -0
  23. package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -0
  24. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +10 -0
  25. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +10 -0
  26. package/dist/src/modules/v4/protocol/protocol.repository.d.ts +2 -0
  27. package/dist/src/modules/v4/reward/reward.model.d.ts +3 -1
  28. package/dist/src/modules/v4/reward/reward.repository.d.ts +2 -0
  29. package/dist/src/modules/v4/reward/reward.service.d.ts +9 -0
  30. package/dist/src/modules/v4/reward/reward.service.js +2 -1
  31. package/dist/src/modules/v4/router.d.ts +23 -0
  32. package/dist/src/modules/v4/user/user.controller.d.ts +3 -0
  33. package/dist/tsconfig.package.tsbuildinfo +1 -1
  34. package/package.json +1 -1
@@ -340,6 +340,8 @@ export declare abstract class CampaignRepository {
340
340
  creatorAddress: string;
341
341
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
342
342
  createdAt: Date;
343
+ rootCampaignId: string | null;
344
+ parentCampaignId: string | null;
343
345
  })[]>;
344
346
  /**
345
347
  * Retrieves all past campaigns from the database.
@@ -391,6 +393,8 @@ export declare abstract class CampaignRepository {
391
393
  creatorAddress: string;
392
394
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
393
395
  createdAt: Date;
396
+ rootCampaignId: string | null;
397
+ parentCampaignId: string | null;
394
398
  })[]>;
395
399
  /**
396
400
  * Retrieves all live campaigns from the database.
@@ -459,6 +463,8 @@ export declare abstract class CampaignRepository {
459
463
  creatorAddress: string;
460
464
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
461
465
  createdAt: Date;
466
+ rootCampaignId: string | null;
467
+ parentCampaignId: string | null;
462
468
  })[]>;
463
469
  static countLives(query?: {
464
470
  distributionChainId?: number;
@@ -502,6 +508,8 @@ export declare abstract class CampaignRepository {
502
508
  creatorAddress: string;
503
509
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
504
510
  createdAt: Date;
511
+ rootCampaignId: string | null;
512
+ parentCampaignId: string | null;
505
513
  } | undefined>;
506
514
  /**
507
515
  * Retrieves a campaign from the engine database by its chain and campaign id.
@@ -582,6 +590,8 @@ export declare abstract class CampaignRepository {
582
590
  creatorAddress: string;
583
591
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
584
592
  createdAt: Date;
593
+ rootCampaignId: string | null;
594
+ parentCampaignId: string | null;
585
595
  }) | null>;
586
596
  static findUniqueOrThrow(id: string, withOpportunity: boolean): Promise<{
587
597
  ComputeChain: {
@@ -661,6 +671,8 @@ export declare abstract class CampaignRepository {
661
671
  creatorAddress: string;
662
672
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
663
673
  createdAt: Date;
674
+ rootCampaignId: string | null;
675
+ parentCampaignId: string | null;
664
676
  }>;
665
677
  static findCampaignsToProcess(distributionChainId: ChainId): Promise<{
666
678
  campaignId: string;
@@ -749,6 +761,8 @@ export declare abstract class CampaignRepository {
749
761
  creatorAddress: string;
750
762
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
751
763
  createdAt: Date;
764
+ rootCampaignId: string | null;
765
+ parentCampaignId: string | null;
752
766
  })[]>;
753
767
  static countMany(query: GetCampaignQueryModel): Promise<number>;
754
768
  static findChains(): Promise<Record<string, ChainId>>;
@@ -774,6 +788,8 @@ export declare abstract class CampaignRepository {
774
788
  creatorAddress: string;
775
789
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
776
790
  createdAt: Date;
791
+ rootCampaignId: string | null;
792
+ parentCampaignId: string | null;
777
793
  }>;
778
794
  static getTvlRecords(campaign: {
779
795
  opportunityId: string;
@@ -48,6 +48,8 @@ export declare abstract class CampaignService {
48
48
  creatorAddress: string;
49
49
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
50
50
  createdAt: Date;
51
+ rootCampaignId: string | null;
52
+ parentCampaignId: string | null;
51
53
  })[]>;
52
54
  static getFutureCampaigns(query?: {
53
55
  computeChainId?: number;
@@ -91,6 +93,8 @@ export declare abstract class CampaignService {
91
93
  creatorAddress: string;
92
94
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
93
95
  createdAt: Date;
96
+ rootCampaignId: string | null;
97
+ parentCampaignId: string | null;
94
98
  })[]>;
95
99
  static getLiveCampaigns(query?: {
96
100
  distributionChainId?: number;
@@ -151,6 +155,8 @@ export declare abstract class CampaignService {
151
155
  creatorAddress: string;
152
156
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
153
157
  createdAt: Date;
158
+ rootCampaignId: string | null;
159
+ parentCampaignId: string | null;
154
160
  })[]>;
155
161
  static countLives(query?: {
156
162
  distributionChainId?: number;
@@ -175,6 +181,8 @@ export declare abstract class CampaignService {
175
181
  creatorAddress: string;
176
182
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
177
183
  createdAt: Date;
184
+ rootCampaignId: string | null;
185
+ parentCampaignId: string | null;
178
186
  } | ({
179
187
  Tokens: {
180
188
  symbol: string;
@@ -272,6 +280,8 @@ export declare abstract class CampaignService {
272
280
  creatorAddress: string;
273
281
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
274
282
  createdAt: Date;
283
+ rootCampaignId: string | null;
284
+ parentCampaignId: string | null;
275
285
  }>;
276
286
  /**
277
287
  * @dev back-office function for manual overrides
@@ -332,6 +342,8 @@ export declare abstract class CampaignService {
332
342
  };
333
343
  createdAt: string;
334
344
  description: string | undefined;
345
+ parentCampaignId: string | undefined;
346
+ rootCampaignId: string | undefined;
335
347
  Opportunity: {
336
348
  status: import("@db/api").$Enums.Status;
337
349
  type: string;
@@ -409,6 +421,8 @@ export declare abstract class CampaignService {
409
421
  };
410
422
  createdAt: string;
411
423
  description: string | undefined;
424
+ parentCampaignId: string | undefined;
425
+ rootCampaignId: string | undefined;
412
426
  Opportunity: {
413
427
  status: import("@db/api").$Enums.Status;
414
428
  type: string;
@@ -487,6 +501,8 @@ export declare abstract class CampaignService {
487
501
  };
488
502
  createdAt: string;
489
503
  description: string | undefined;
504
+ parentCampaignId: string | undefined;
505
+ rootCampaignId: string | undefined;
490
506
  Opportunity: {
491
507
  status: import("@db/api").$Enums.Status;
492
508
  type: string;
@@ -565,6 +581,8 @@ export declare abstract class CampaignService {
565
581
  };
566
582
  createdAt: string;
567
583
  description: string | undefined;
584
+ parentCampaignId: string | undefined;
585
+ rootCampaignId: string | undefined;
568
586
  Opportunity: {
569
587
  status: import("@db/api").$Enums.Status;
570
588
  type: string;
@@ -664,6 +682,8 @@ export declare abstract class CampaignService {
664
682
  creatorAddress: string;
665
683
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
666
684
  createdAt: Date;
685
+ rootCampaignId: string | null;
686
+ parentCampaignId: string | null;
667
687
  }) | null>;
668
688
  static findUniqueOrThrow(campaign: CampaignUnique | string, withOpportunity?: boolean): Promise<{
669
689
  ComputeChain: {
@@ -743,6 +763,8 @@ export declare abstract class CampaignService {
743
763
  creatorAddress: string;
744
764
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
745
765
  createdAt: Date;
766
+ rootCampaignId: string | null;
767
+ parentCampaignId: string | null;
746
768
  }>;
747
769
  static findCampaignValue(params: GetCampaignComputedValueModel): Promise<{
748
770
  averageBoost: number | null;
@@ -856,6 +878,8 @@ export declare abstract class CampaignService {
856
878
  };
857
879
  createdAt: string;
858
880
  description: string | undefined;
881
+ parentCampaignId: string | undefined;
882
+ rootCampaignId: string | undefined;
859
883
  Opportunity: {
860
884
  status: import("@db/api").$Enums.Status;
861
885
  type: string;
@@ -304,7 +304,7 @@ export class CampaignService {
304
304
  * TODO: remove CampaignService function in favor of prisma client extensions
305
305
  */
306
306
  static format(campaign) {
307
- const { DistributionChain, ComputeChain, Creator, RewardToken, params, CampaignStatus, createdAt, manualOverrides: _, description, ...c } = campaign;
307
+ const { DistributionChain, ComputeChain, Creator, RewardToken, params, CampaignStatus, createdAt, manualOverrides: _, description, parentCampaignId, rootCampaignId, ...c } = campaign;
308
308
  const updatedParams = params;
309
309
  return {
310
310
  ...c,
@@ -320,6 +320,8 @@ export class CampaignService {
320
320
  creator: Creator,
321
321
  createdAt: createdAt.toISOString(),
322
322
  description: !!description ? description : undefined,
323
+ parentCampaignId: parentCampaignId ?? undefined,
324
+ rootCampaignId: rootCampaignId ?? undefined,
323
325
  };
324
326
  }
325
327
  /**
@@ -170,6 +170,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
170
170
  creatorAddress: string;
171
171
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
172
172
  createdAt: Date;
173
+ rootCampaignId: string | null;
174
+ parentCampaignId: string | null;
173
175
  } | {
174
176
  Tokens: {
175
177
  symbol: string;
@@ -280,6 +282,8 @@ export declare const CampaignTestController: Elysia<"/campaigns", false, {
280
282
  creatorAddress: string;
281
283
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
282
284
  createdAt: Date;
285
+ rootCampaignId: string | null;
286
+ parentCampaignId: string | null;
283
287
  } | {
284
288
  Tokens: {
285
289
  symbol: string;
@@ -451,6 +451,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
451
451
  };
452
452
  createdAt: string;
453
453
  description: string | undefined;
454
+ parentCampaignId: string | undefined;
455
+ rootCampaignId: string | undefined;
454
456
  Opportunity: {
455
457
  status: import("@db/api").$Enums.Status;
456
458
  type: string;
@@ -899,6 +901,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
899
901
  creatorId?: string | null | undefined;
900
902
  address: string;
901
903
  } | undefined;
904
+ rootCampaignId?: string | undefined;
905
+ parentCampaignId?: string | undefined;
902
906
  campaignStatus?: {
903
907
  error?: string | undefined;
904
908
  details?: any;
@@ -1071,6 +1075,8 @@ export declare const OpportunityController: Elysia<"/opportunities", false, {
1071
1075
  creatorId?: string | null | undefined;
1072
1076
  address: string;
1073
1077
  } | undefined;
1078
+ rootCampaignId?: string | undefined;
1079
+ parentCampaignId?: string | undefined;
1074
1080
  campaignStatus?: {
1075
1081
  error?: string | undefined;
1076
1082
  details?: any;
@@ -289,6 +289,8 @@ export declare const OpportunityWithCampaignsResourceDto: import("@sinclair/type
289
289
  details: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
290
290
  }>>;
291
291
  createdAt: import("@sinclair/typebox").TString;
292
+ rootCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
293
+ parentCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
292
294
  }>>;
293
295
  }>;
294
296
  export declare const OpportunityUniqueDto: import("@sinclair/typebox").TObject<{
@@ -95,6 +95,8 @@ export declare abstract class OpportunityRepository {
95
95
  creatorAddress: string;
96
96
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
97
97
  createdAt: Date;
98
+ rootCampaignId: string | null;
99
+ parentCampaignId: string | null;
98
100
  })[];
99
101
  Tokens: {
100
102
  symbol: string;
@@ -241,6 +243,8 @@ export declare abstract class OpportunityRepository {
241
243
  creatorAddress: string;
242
244
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
243
245
  createdAt: Date;
246
+ rootCampaignId: string | null;
247
+ parentCampaignId: string | null;
244
248
  }[];
245
249
  Tokens: {
246
250
  symbol: string;
@@ -446,6 +450,8 @@ export declare abstract class OpportunityRepository {
446
450
  creatorAddress: string;
447
451
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
448
452
  createdAt: Date;
453
+ rootCampaignId: string | null;
454
+ parentCampaignId: string | null;
449
455
  })[];
450
456
  Tokens: {
451
457
  symbol: string;
@@ -599,6 +605,8 @@ export declare abstract class OpportunityRepository {
599
605
  creatorAddress: string;
600
606
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
601
607
  createdAt: Date;
608
+ rootCampaignId: string | null;
609
+ parentCampaignId: string | null;
602
610
  }[];
603
611
  Tokens: {
604
612
  symbol: string;
@@ -806,6 +814,8 @@ export declare abstract class OpportunityRepository {
806
814
  creatorAddress: string;
807
815
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
808
816
  createdAt: Date;
817
+ rootCampaignId: string | null;
818
+ parentCampaignId: string | null;
809
819
  })[];
810
820
  Tokens: {
811
821
  symbol: string;
@@ -426,6 +426,8 @@ export declare abstract class OpportunityService {
426
426
  creatorId?: string | null | undefined;
427
427
  address: string;
428
428
  } | undefined;
429
+ rootCampaignId?: string | undefined;
430
+ parentCampaignId?: string | undefined;
429
431
  campaignStatus?: {
430
432
  error?: string | undefined;
431
433
  details?: any;
@@ -570,6 +572,8 @@ export declare abstract class OpportunityService {
570
572
  creatorId?: string | null | undefined;
571
573
  address: string;
572
574
  } | undefined;
575
+ rootCampaignId?: string | undefined;
576
+ parentCampaignId?: string | undefined;
573
577
  campaignStatus?: {
574
578
  error?: string | undefined;
575
579
  details?: any;
@@ -725,6 +729,8 @@ export declare abstract class OpportunityService {
725
729
  };
726
730
  createdAt: string;
727
731
  description: string | undefined;
732
+ parentCampaignId: string | undefined;
733
+ rootCampaignId: string | undefined;
728
734
  Opportunity: {
729
735
  status: import("@db/api").$Enums.Status;
730
736
  type: string;
@@ -909,6 +915,8 @@ export declare abstract class OpportunityService {
909
915
  };
910
916
  createdAt: string;
911
917
  description: string | undefined;
918
+ parentCampaignId: string | undefined;
919
+ rootCampaignId: string | undefined;
912
920
  Opportunity: {
913
921
  status: import("@db/api").$Enums.Status;
914
922
  type: string;
@@ -1086,6 +1094,8 @@ export declare abstract class OpportunityService {
1086
1094
  };
1087
1095
  createdAt: string;
1088
1096
  description: string | undefined;
1097
+ parentCampaignId: string | undefined;
1098
+ rootCampaignId: string | undefined;
1089
1099
  Opportunity: {
1090
1100
  status: import("@db/api").$Enums.Status;
1091
1101
  type: string;
@@ -46,6 +46,8 @@ export declare abstract class ProtocolRepository {
46
46
  creatorAddress: string;
47
47
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
48
48
  createdAt: Date;
49
+ rootCampaignId: string | null;
50
+ parentCampaignId: string | null;
49
51
  }[];
50
52
  } & {
51
53
  status: import("@db/api").$Enums.Status;
@@ -18,7 +18,9 @@ export type Reward = Resource<"Reward", "rewardTokenId" | "id", {
18
18
  * @description Describes one reward amount for one token and campaign
19
19
  * @see {@link Resource}
20
20
  */
21
- export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId">;
21
+ export type RewardBreakdown = Resource<"RewardBreakdown", "id" | "rewardId" | "protocolId", {
22
+ subCampaignId?: string;
23
+ }>;
22
24
  /**
23
25
  * Daily Rewards
24
26
  * @description Describes rewards breakdown from the opportunity view
@@ -91,6 +91,7 @@ export declare abstract class RewardRepository {
91
91
  claimed: string;
92
92
  protocolId: string | null;
93
93
  rewardId: string;
94
+ subCampaignId: string | null;
94
95
  })[];
95
96
  } & {
96
97
  pending: string;
@@ -116,6 +117,7 @@ export declare abstract class RewardRepository {
116
117
  claimed: string;
117
118
  protocolId: string | null;
118
119
  rewardId: string;
120
+ subCampaignId: string | null;
119
121
  })[];
120
122
  } & {
121
123
  pending: string;
@@ -109,6 +109,8 @@ export declare abstract class RewardService {
109
109
  };
110
110
  createdAt: string;
111
111
  description: string | undefined;
112
+ parentCampaignId: string | undefined;
113
+ rootCampaignId: string | undefined;
112
114
  Opportunity: {
113
115
  status: import("@db/api").$Enums.Status;
114
116
  type: string;
@@ -196,6 +198,7 @@ export declare abstract class RewardService {
196
198
  */
197
199
  static formatBreakdown(breakdown: Awaited<ReturnType<(typeof RewardRepository)["getByRecipient"]>>[number]["Breakdown"][number]): {
198
200
  campaignId: string;
201
+ subCampaignId: string | undefined;
199
202
  opportunity: {
200
203
  Chain: {
201
204
  name: string;
@@ -283,6 +286,7 @@ export declare abstract class RewardService {
283
286
  };
284
287
  breakdowns: {
285
288
  campaignId: string;
289
+ subCampaignId: string | undefined;
286
290
  opportunity: {
287
291
  Chain: {
288
292
  name: string;
@@ -442,6 +446,7 @@ export declare abstract class RewardService {
442
446
  claimed: string;
443
447
  protocolId: string | null;
444
448
  rewardId: string;
449
+ subCampaignId: string | null;
445
450
  })[];
446
451
  } & {
447
452
  pending: string;
@@ -494,6 +499,7 @@ export declare abstract class RewardService {
494
499
  };
495
500
  breakdowns: {
496
501
  campaignId: string;
502
+ subCampaignId: string | undefined;
497
503
  opportunity: {
498
504
  Chain: {
499
505
  name: string;
@@ -596,6 +602,7 @@ export declare abstract class RewardService {
596
602
  };
597
603
  breakdowns: {
598
604
  campaignId: string;
605
+ subCampaignId: string | undefined;
599
606
  opportunity: {
600
607
  Chain: {
601
608
  name: string;
@@ -668,6 +675,7 @@ export declare abstract class RewardService {
668
675
  }, "breakdowns"> & {
669
676
  breakdowns: {
670
677
  campaignId: string;
678
+ subCampaignId: string | undefined;
671
679
  reason: string;
672
680
  pending: string;
673
681
  amount: string;
@@ -764,6 +772,7 @@ export declare abstract class RewardService {
764
772
  claimed: string;
765
773
  protocolId: string | null;
766
774
  rewardId: string;
775
+ subCampaignId: string | null;
767
776
  })[];
768
777
  } & {
769
778
  pending: string;
@@ -79,10 +79,11 @@ export class RewardService {
79
79
  * @returns a RewardBreakdown model
80
80
  */
81
81
  static formatBreakdown(breakdown) {
82
- const { Campaign, id, rewardId, protocolId, ...rest } = breakdown;
82
+ const { Campaign, id, rewardId, protocolId, subCampaignId, ...rest } = breakdown;
83
83
  return {
84
84
  ...rest,
85
85
  campaignId: Campaign.campaignId,
86
+ subCampaignId: subCampaignId ?? undefined,
86
87
  opportunity: Campaign.Opportunity,
87
88
  };
88
89
  }
@@ -466,6 +466,8 @@ export declare const v4: Elysia<"/v4", false, {
466
466
  };
467
467
  createdAt: string;
468
468
  description: string | undefined;
469
+ parentCampaignId: string | undefined;
470
+ rootCampaignId: string | undefined;
469
471
  Opportunity: {
470
472
  status: import("@db/api").$Enums.Status;
471
473
  type: string;
@@ -914,6 +916,8 @@ export declare const v4: Elysia<"/v4", false, {
914
916
  creatorId?: string | null | undefined;
915
917
  address: string;
916
918
  } | undefined;
919
+ rootCampaignId?: string | undefined;
920
+ parentCampaignId?: string | undefined;
917
921
  campaignStatus?: {
918
922
  error?: string | undefined;
919
923
  details?: any;
@@ -1086,6 +1090,8 @@ export declare const v4: Elysia<"/v4", false, {
1086
1090
  creatorId?: string | null | undefined;
1087
1091
  address: string;
1088
1092
  } | undefined;
1093
+ rootCampaignId?: string | undefined;
1094
+ parentCampaignId?: string | undefined;
1089
1095
  campaignStatus?: {
1090
1096
  error?: string | undefined;
1091
1097
  details?: any;
@@ -1324,6 +1330,8 @@ export declare const v4: Elysia<"/v4", false, {
1324
1330
  creatorAddress: string;
1325
1331
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1326
1332
  createdAt: Date;
1333
+ rootCampaignId: string | null;
1334
+ parentCampaignId: string | null;
1327
1335
  } | {
1328
1336
  Tokens: {
1329
1337
  symbol: string;
@@ -1487,6 +1495,8 @@ export declare const v4: Elysia<"/v4", false, {
1487
1495
  creatorAddress: string;
1488
1496
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1489
1497
  createdAt: Date;
1498
+ rootCampaignId: string | null;
1499
+ parentCampaignId: string | null;
1490
1500
  };
1491
1501
  };
1492
1502
  };
@@ -1586,6 +1596,8 @@ export declare const v4: Elysia<"/v4", false, {
1586
1596
  };
1587
1597
  createdAt: string;
1588
1598
  description: string | undefined;
1599
+ parentCampaignId: string | undefined;
1600
+ rootCampaignId: string | undefined;
1589
1601
  Opportunity: {
1590
1602
  status: import("@db/api").$Enums.Status;
1591
1603
  type: string;
@@ -1676,6 +1688,8 @@ export declare const v4: Elysia<"/v4", false, {
1676
1688
  };
1677
1689
  createdAt: string;
1678
1690
  description: string | undefined;
1691
+ parentCampaignId: string | undefined;
1692
+ rootCampaignId: string | undefined;
1679
1693
  Opportunity: {
1680
1694
  status: import("@db/api").$Enums.Status;
1681
1695
  type: string;
@@ -1892,6 +1906,8 @@ export declare const v4: Elysia<"/v4", false, {
1892
1906
  };
1893
1907
  createdAt: string;
1894
1908
  description: string | undefined;
1909
+ parentCampaignId: string | undefined;
1910
+ rootCampaignId: string | undefined;
1895
1911
  Opportunity: {
1896
1912
  status: import("@db/api").$Enums.Status;
1897
1913
  type: string;
@@ -2252,6 +2268,8 @@ export declare const v4: Elysia<"/v4", false, {
2252
2268
  creatorAddress: string;
2253
2269
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
2254
2270
  createdAt: Date;
2271
+ rootCampaignId: string | null;
2272
+ parentCampaignId: string | null;
2255
2273
  } | {
2256
2274
  Tokens: {
2257
2275
  symbol: string;
@@ -2362,6 +2380,8 @@ export declare const v4: Elysia<"/v4", false, {
2362
2380
  creatorAddress: string;
2363
2381
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
2364
2382
  createdAt: Date;
2383
+ rootCampaignId: string | null;
2384
+ parentCampaignId: string | null;
2365
2385
  } | {
2366
2386
  Tokens: {
2367
2387
  symbol: string;
@@ -3976,6 +3996,7 @@ export declare const v4: Elysia<"/v4", false, {
3976
3996
  };
3977
3997
  breakdowns: {
3978
3998
  campaignId: string;
3999
+ subCampaignId: string | undefined;
3979
4000
  opportunity: {
3980
4001
  Chain: {
3981
4002
  name: string;
@@ -4101,6 +4122,7 @@ export declare const v4: Elysia<"/v4", false, {
4101
4122
  };
4102
4123
  breakdowns: {
4103
4124
  campaignId: string;
4125
+ subCampaignId: string | undefined;
4104
4126
  opportunity: {
4105
4127
  Chain: {
4106
4128
  name: string;
@@ -4173,6 +4195,7 @@ export declare const v4: Elysia<"/v4", false, {
4173
4195
  }, "breakdowns"> & {
4174
4196
  breakdowns: {
4175
4197
  campaignId: string;
4198
+ subCampaignId: string | undefined;
4176
4199
  reason: string;
4177
4200
  pending: string;
4178
4201
  amount: string;
@@ -139,6 +139,7 @@ export declare const UserController: Elysia<"/users", false, {
139
139
  };
140
140
  breakdowns: {
141
141
  campaignId: string;
142
+ subCampaignId: string | undefined;
142
143
  opportunity: {
143
144
  Chain: {
144
145
  name: string;
@@ -264,6 +265,7 @@ export declare const UserController: Elysia<"/users", false, {
264
265
  };
265
266
  breakdowns: {
266
267
  campaignId: string;
268
+ subCampaignId: string | undefined;
267
269
  opportunity: {
268
270
  Chain: {
269
271
  name: string;
@@ -336,6 +338,7 @@ export declare const UserController: Elysia<"/users", false, {
336
338
  }, "breakdowns"> & {
337
339
  breakdowns: {
338
340
  campaignId: string;
341
+ subCampaignId: string | undefined;
339
342
  reason: string;
340
343
  pending: string;
341
344
  amount: string;