@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
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "prisma-client-0f113b3f625675710bdc6fd40aab2046e45453d1504ba98c3a39ae5af81205c5",
2
+ "name": "prisma-client-aa9be6457bfd9899eb98a231d75ead19b45c7717f4bb8732e2744d2228d516c2",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "index-browser.js",
@@ -34,7 +34,7 @@ model Campaign {
34
34
  endTimestamp BigInt
35
35
  params Json
36
36
  description String? // Can only be added manually for now
37
- RewardBreakdown RewardBreakdown[]
37
+ RewardBreakdown RewardBreakdown[] @relation("Campaign")
38
38
  DailyRewardsBreakdown DailyRewardsBreakdown[]
39
39
  Creator User @relation(fields: [creatorAddress], references: [address])
40
40
  creatorAddress String @db.Char(42)
@@ -49,6 +49,14 @@ model Campaign {
49
49
 
50
50
  createdAt DateTime @default(now())
51
51
 
52
+ rootCampaignId String? // In case this is a subCampaign, refers to the root of the subCampaign tree
53
+ rootCampaign Campaign? @relation("root", fields: [rootCampaignId], references: [id])
54
+ subCampaigns Campaign[] @relation("root")
55
+ parentCampaignId String? // In case this is a subCampaign, refers to the parent campaign in the subCampaign tree
56
+ parentCampaign Campaign? @relation("parent", fields: [parentCampaignId], references: [id])
57
+ childCampaigns Campaign[] @relation("parent")
58
+ RewardBreakdownSubCampaign RewardBreakdown[] @relation("SubCampaign")
59
+
52
60
  @@unique([distributionChainId, campaignId])
53
61
  @@index([opportunityId], type: Hash)
54
62
  }
@@ -299,19 +307,21 @@ model Reward {
299
307
  }
300
308
 
301
309
  model RewardBreakdown {
302
- id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
303
- Protocol Protocol? @relation(fields: [protocolId], references: [id])
304
- protocolId String?
305
- reason String
306
- amount String
307
- claimed String
308
- pending String
309
- Reward Reward @relation(fields: [rewardId], references: [id], onDelete: Cascade)
310
- rewardId String
311
- campaignId String
312
- Campaign Campaign @relation(fields: [campaignId], references: [id])
313
- // Hidden index on ((CAST(amount AS INTEGER) + CAST(pending AS INTEGER)));
310
+ id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
311
+ Protocol Protocol? @relation(fields: [protocolId], references: [id])
312
+ protocolId String?
313
+ reason String
314
+ amount String
315
+ claimed String
316
+ pending String
317
+ Reward Reward @relation(fields: [rewardId], references: [id], onDelete: Cascade)
318
+ rewardId String
319
+ campaignId String
320
+ Campaign Campaign @relation(name: "Campaign", fields: [campaignId], references: [id])
321
+ subCampaignId String?
322
+ SubCampaign Campaign? @relation(name: "SubCampaign", fields: [subCampaignId], references: [id])
314
323
 
324
+ // Hidden index on ((CAST(amount AS INTEGER) + CAST(pending AS INTEGER)));
315
325
  @@unique([rewardId, campaignId, reason])
316
326
  @@index([rewardId], type: Hash)
317
327
  @@index([campaignId], type: Hash)
@@ -134,7 +134,9 @@ exports.Prisma.CampaignScalarFieldEnum = {
134
134
  description: 'description',
135
135
  creatorAddress: 'creatorAddress',
136
136
  manualOverrides: 'manualOverrides',
137
- createdAt: 'createdAt'
137
+ createdAt: 'createdAt',
138
+ rootCampaignId: 'rootCampaignId',
139
+ parentCampaignId: 'parentCampaignId'
138
140
  };
139
141
 
140
142
  exports.Prisma.RelationLoadStrategy = {
@@ -301,7 +303,8 @@ exports.Prisma.RewardBreakdownScalarFieldEnum = {
301
303
  claimed: 'claimed',
302
304
  pending: 'pending',
303
305
  rewardId: 'rewardId',
304
- campaignId: 'campaignId'
306
+ campaignId: 'campaignId',
307
+ subCampaignId: 'subCampaignId'
305
308
  };
306
309
 
307
310
  exports.Prisma.MerklRootScalarFieldEnum = {
@@ -388,7 +391,9 @@ exports.Prisma.CampaignOrderByRelevanceFieldEnum = {
388
391
  amount: 'amount',
389
392
  opportunityId: 'opportunityId',
390
393
  description: 'description',
391
- creatorAddress: 'creatorAddress'
394
+ creatorAddress: 'creatorAddress',
395
+ rootCampaignId: 'rootCampaignId',
396
+ parentCampaignId: 'parentCampaignId'
392
397
  };
393
398
 
394
399
  exports.Prisma.CampaignStatusOrderByRelevanceFieldEnum = {
@@ -512,7 +517,8 @@ exports.Prisma.RewardBreakdownOrderByRelevanceFieldEnum = {
512
517
  claimed: 'claimed',
513
518
  pending: 'pending',
514
519
  rewardId: 'rewardId',
515
- campaignId: 'campaignId'
520
+ campaignId: 'campaignId',
521
+ subCampaignId: 'subCampaignId'
516
522
  };
517
523
 
518
524
  exports.Prisma.MerklRootOrderByRelevanceFieldEnum = {
@@ -517,6 +517,8 @@ declare const eden: {
517
517
  creatorId?: string | null | undefined;
518
518
  address: string;
519
519
  } | undefined;
520
+ rootCampaignId?: string | undefined;
521
+ parentCampaignId?: string | undefined;
520
522
  campaignStatus?: {
521
523
  error?: string | undefined;
522
524
  details?: any;
@@ -776,6 +778,8 @@ declare const eden: {
776
778
  };
777
779
  createdAt: string;
778
780
  description: string | undefined;
781
+ parentCampaignId: string | undefined;
782
+ rootCampaignId: string | undefined;
779
783
  Opportunity: {
780
784
  status: import("@db/api").$Enums.Status;
781
785
  type: string;
@@ -1085,6 +1089,8 @@ declare const eden: {
1085
1089
  creatorId?: string | null | undefined;
1086
1090
  address: string;
1087
1091
  } | undefined;
1092
+ rootCampaignId?: string | undefined;
1093
+ parentCampaignId?: string | undefined;
1088
1094
  campaignStatus?: {
1089
1095
  error?: string | undefined;
1090
1096
  details?: any;
@@ -1305,6 +1311,8 @@ declare const eden: {
1305
1311
  };
1306
1312
  createdAt: string;
1307
1313
  description: string | undefined;
1314
+ parentCampaignId: string | undefined;
1315
+ rootCampaignId: string | undefined;
1308
1316
  Opportunity: {
1309
1317
  status: import("@db/api").$Enums.Status;
1310
1318
  type: string;
@@ -1397,6 +1405,8 @@ declare const eden: {
1397
1405
  creatorAddress: string;
1398
1406
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1399
1407
  createdAt: Date;
1408
+ rootCampaignId: string | null;
1409
+ parentCampaignId: string | null;
1400
1410
  } | {
1401
1411
  Tokens: {
1402
1412
  symbol: string;
@@ -1548,6 +1558,8 @@ declare const eden: {
1548
1558
  creatorAddress: string;
1549
1559
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1550
1560
  createdAt: Date;
1561
+ rootCampaignId: string | null;
1562
+ parentCampaignId: string | null;
1551
1563
  };
1552
1564
  }>>;
1553
1565
  };
@@ -1639,6 +1651,8 @@ declare const eden: {
1639
1651
  };
1640
1652
  createdAt: string;
1641
1653
  description: string | undefined;
1654
+ parentCampaignId: string | undefined;
1655
+ rootCampaignId: string | undefined;
1642
1656
  Opportunity: {
1643
1657
  status: import("@db/api").$Enums.Status;
1644
1658
  type: string;
@@ -1959,6 +1973,8 @@ declare const eden: {
1959
1973
  creatorAddress: string;
1960
1974
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1961
1975
  createdAt: Date;
1976
+ rootCampaignId: string | null;
1977
+ parentCampaignId: string | null;
1962
1978
  } | {
1963
1979
  Tokens: {
1964
1980
  symbol: string;
@@ -2062,6 +2078,8 @@ declare const eden: {
2062
2078
  creatorAddress: string;
2063
2079
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
2064
2080
  createdAt: Date;
2081
+ rootCampaignId: string | null;
2082
+ parentCampaignId: string | null;
2065
2083
  } | {
2066
2084
  Tokens: {
2067
2085
  symbol: string;
@@ -3356,6 +3374,7 @@ declare const eden: {
3356
3374
  };
3357
3375
  breakdowns: {
3358
3376
  campaignId: string;
3377
+ subCampaignId: string | undefined;
3359
3378
  opportunity: {
3360
3379
  Chain: {
3361
3380
  name: string;
@@ -3470,6 +3489,7 @@ declare const eden: {
3470
3489
  };
3471
3490
  breakdowns: {
3472
3491
  campaignId: string;
3492
+ subCampaignId: string | undefined;
3473
3493
  opportunity: {
3474
3494
  Chain: {
3475
3495
  name: string;
@@ -3542,6 +3562,7 @@ declare const eden: {
3542
3562
  }, "breakdowns"> & {
3543
3563
  breakdowns: {
3544
3564
  campaignId: string;
3565
+ subCampaignId: string | undefined;
3545
3566
  reason: string;
3546
3567
  pending: string;
3547
3568
  amount: string;
@@ -5951,6 +5972,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5951
5972
  };
5952
5973
  createdAt: string;
5953
5974
  description: string | undefined;
5975
+ parentCampaignId: string | undefined;
5976
+ rootCampaignId: string | undefined;
5954
5977
  Opportunity: {
5955
5978
  status: import("@db/api").$Enums.Status;
5956
5979
  type: string;
@@ -6399,6 +6422,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6399
6422
  creatorId?: string | null | undefined;
6400
6423
  address: string;
6401
6424
  } | undefined;
6425
+ rootCampaignId?: string | undefined;
6426
+ parentCampaignId?: string | undefined;
6402
6427
  campaignStatus?: {
6403
6428
  error?: string | undefined;
6404
6429
  details?: any;
@@ -6571,6 +6596,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6571
6596
  creatorId?: string | null | undefined;
6572
6597
  address: string;
6573
6598
  } | undefined;
6599
+ rootCampaignId?: string | undefined;
6600
+ parentCampaignId?: string | undefined;
6574
6601
  campaignStatus?: {
6575
6602
  error?: string | undefined;
6576
6603
  details?: any;
@@ -6809,6 +6836,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6809
6836
  creatorAddress: string;
6810
6837
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
6811
6838
  createdAt: Date;
6839
+ rootCampaignId: string | null;
6840
+ parentCampaignId: string | null;
6812
6841
  } | {
6813
6842
  Tokens: {
6814
6843
  symbol: string;
@@ -6972,6 +7001,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
6972
7001
  creatorAddress: string;
6973
7002
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
6974
7003
  createdAt: Date;
7004
+ rootCampaignId: string | null;
7005
+ parentCampaignId: string | null;
6975
7006
  };
6976
7007
  };
6977
7008
  };
@@ -7071,6 +7102,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7071
7102
  };
7072
7103
  createdAt: string;
7073
7104
  description: string | undefined;
7105
+ parentCampaignId: string | undefined;
7106
+ rootCampaignId: string | undefined;
7074
7107
  Opportunity: {
7075
7108
  status: import("@db/api").$Enums.Status;
7076
7109
  type: string;
@@ -7161,6 +7194,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7161
7194
  };
7162
7195
  createdAt: string;
7163
7196
  description: string | undefined;
7197
+ parentCampaignId: string | undefined;
7198
+ rootCampaignId: string | undefined;
7164
7199
  Opportunity: {
7165
7200
  status: import("@db/api").$Enums.Status;
7166
7201
  type: string;
@@ -7377,6 +7412,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7377
7412
  };
7378
7413
  createdAt: string;
7379
7414
  description: string | undefined;
7415
+ parentCampaignId: string | undefined;
7416
+ rootCampaignId: string | undefined;
7380
7417
  Opportunity: {
7381
7418
  status: import("@db/api").$Enums.Status;
7382
7419
  type: string;
@@ -7737,6 +7774,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7737
7774
  creatorAddress: string;
7738
7775
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
7739
7776
  createdAt: Date;
7777
+ rootCampaignId: string | null;
7778
+ parentCampaignId: string | null;
7740
7779
  } | {
7741
7780
  Tokens: {
7742
7781
  symbol: string;
@@ -7847,6 +7886,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
7847
7886
  creatorAddress: string;
7848
7887
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
7849
7888
  createdAt: Date;
7889
+ rootCampaignId: string | null;
7890
+ parentCampaignId: string | null;
7850
7891
  } | {
7851
7892
  Tokens: {
7852
7893
  symbol: string;
@@ -9461,6 +9502,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9461
9502
  };
9462
9503
  breakdowns: {
9463
9504
  campaignId: string;
9505
+ subCampaignId: string | undefined;
9464
9506
  opportunity: {
9465
9507
  Chain: {
9466
9508
  name: string;
@@ -9586,6 +9628,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9586
9628
  };
9587
9629
  breakdowns: {
9588
9630
  campaignId: string;
9631
+ subCampaignId: string | undefined;
9589
9632
  opportunity: {
9590
9633
  Chain: {
9591
9634
  name: string;
@@ -9658,6 +9701,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
9658
9701
  }, "breakdowns"> & {
9659
9702
  breakdowns: {
9660
9703
  campaignId: string;
9704
+ subCampaignId: string | undefined;
9661
9705
  reason: string;
9662
9706
  pending: string;
9663
9707
  amount: string;
@@ -12486,6 +12530,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12486
12530
  creatorId?: string | null | undefined;
12487
12531
  address: string;
12488
12532
  } | undefined;
12533
+ rootCampaignId?: string | undefined;
12534
+ parentCampaignId?: string | undefined;
12489
12535
  campaignStatus?: {
12490
12536
  error?: string | undefined;
12491
12537
  details?: any;
@@ -12745,6 +12791,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
12745
12791
  };
12746
12792
  createdAt: string;
12747
12793
  description: string | undefined;
12794
+ parentCampaignId: string | undefined;
12795
+ rootCampaignId: string | undefined;
12748
12796
  Opportunity: {
12749
12797
  status: import("@db/api").$Enums.Status;
12750
12798
  type: string;
@@ -13054,6 +13102,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13054
13102
  creatorId?: string | null | undefined;
13055
13103
  address: string;
13056
13104
  } | undefined;
13105
+ rootCampaignId?: string | undefined;
13106
+ parentCampaignId?: string | undefined;
13057
13107
  campaignStatus?: {
13058
13108
  error?: string | undefined;
13059
13109
  details?: any;
@@ -13274,6 +13324,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13274
13324
  };
13275
13325
  createdAt: string;
13276
13326
  description: string | undefined;
13327
+ parentCampaignId: string | undefined;
13328
+ rootCampaignId: string | undefined;
13277
13329
  Opportunity: {
13278
13330
  status: import("@db/api").$Enums.Status;
13279
13331
  type: string;
@@ -13366,6 +13418,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13366
13418
  creatorAddress: string;
13367
13419
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
13368
13420
  createdAt: Date;
13421
+ rootCampaignId: string | null;
13422
+ parentCampaignId: string | null;
13369
13423
  } | {
13370
13424
  Tokens: {
13371
13425
  symbol: string;
@@ -13517,6 +13571,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13517
13571
  creatorAddress: string;
13518
13572
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
13519
13573
  createdAt: Date;
13574
+ rootCampaignId: string | null;
13575
+ parentCampaignId: string | null;
13520
13576
  };
13521
13577
  }>>;
13522
13578
  };
@@ -13608,6 +13664,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13608
13664
  };
13609
13665
  createdAt: string;
13610
13666
  description: string | undefined;
13667
+ parentCampaignId: string | undefined;
13668
+ rootCampaignId: string | undefined;
13611
13669
  Opportunity: {
13612
13670
  status: import("@db/api").$Enums.Status;
13613
13671
  type: string;
@@ -13928,6 +13986,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
13928
13986
  creatorAddress: string;
13929
13987
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
13930
13988
  createdAt: Date;
13989
+ rootCampaignId: string | null;
13990
+ parentCampaignId: string | null;
13931
13991
  } | {
13932
13992
  Tokens: {
13933
13993
  symbol: string;
@@ -14031,6 +14091,8 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
14031
14091
  creatorAddress: string;
14032
14092
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
14033
14093
  createdAt: Date;
14094
+ rootCampaignId: string | null;
14095
+ parentCampaignId: string | null;
14034
14096
  } | {
14035
14097
  Tokens: {
14036
14098
  symbol: string;
@@ -15325,6 +15387,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15325
15387
  };
15326
15388
  breakdowns: {
15327
15389
  campaignId: string;
15390
+ subCampaignId: string | undefined;
15328
15391
  opportunity: {
15329
15392
  Chain: {
15330
15393
  name: string;
@@ -15439,6 +15502,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15439
15502
  };
15440
15503
  breakdowns: {
15441
15504
  campaignId: string;
15505
+ subCampaignId: string | undefined;
15442
15506
  opportunity: {
15443
15507
  Chain: {
15444
15508
  name: string;
@@ -15511,6 +15575,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
15511
15575
  }, "breakdowns"> & {
15512
15576
  breakdowns: {
15513
15577
  campaignId: string;
15578
+ subCampaignId: string | undefined;
15514
15579
  reason: string;
15515
15580
  pending: string;
15516
15581
  amount: string;
@@ -50,7 +50,6 @@ const map = {
50
50
  [Campaign.UNISWAP_V4]: new UniswapV4DynamicData(),
51
51
  [Campaign.VEST]: new VestDynamicData(),
52
52
  [Campaign.ION]: new DefaultDynamicData(), // TODO
53
- [Campaign.ERC20TRANSFERS]: new DefaultDynamicData(), // TODO
54
53
  [Campaign.M0]: new DefaultDynamicData(), // TODO
55
54
  [Campaign.MORPHOSUPPLY]: new DefaultDynamicData(), // TODO
56
55
  [Campaign.SYNCSWAP_VAULT]: new DefaultDynamicData(), // TODO
@@ -53,7 +53,6 @@ const map = {
53
53
  [Campaign.VEST]: new VestMetadata(),
54
54
  [Campaign.ERC20LOGPROCESSOR]: new Erc20Metadata(),
55
55
  [Campaign.ERC20REBASELOGPROCESSOR]: new Erc20Metadata(),
56
- [Campaign.ERC20TRANSFERS]: new DefaultMetadata(), // TODO
57
56
  [Campaign.M0]: new DefaultMetadata(), // TODO
58
57
  [Campaign.MORPHOSUPPLY]: new DefaultMetadata(), // TODO
59
58
  [Campaign.SYNCSWAP_VAULT]: new DefaultMetadata(), // TODO
@@ -596,6 +596,8 @@ declare const app: Elysia<"", false, {
596
596
  };
597
597
  createdAt: string;
598
598
  description: string | undefined;
599
+ parentCampaignId: string | undefined;
600
+ rootCampaignId: string | undefined;
599
601
  Opportunity: {
600
602
  status: import("@db/api").$Enums.Status;
601
603
  type: string;
@@ -1044,6 +1046,8 @@ declare const app: Elysia<"", false, {
1044
1046
  creatorId?: string | null | undefined;
1045
1047
  address: string;
1046
1048
  } | undefined;
1049
+ rootCampaignId?: string | undefined;
1050
+ parentCampaignId?: string | undefined;
1047
1051
  campaignStatus?: {
1048
1052
  error?: string | undefined;
1049
1053
  details?: any;
@@ -1216,6 +1220,8 @@ declare const app: Elysia<"", false, {
1216
1220
  creatorId?: string | null | undefined;
1217
1221
  address: string;
1218
1222
  } | undefined;
1223
+ rootCampaignId?: string | undefined;
1224
+ parentCampaignId?: string | undefined;
1219
1225
  campaignStatus?: {
1220
1226
  error?: string | undefined;
1221
1227
  details?: any;
@@ -1454,6 +1460,8 @@ declare const app: Elysia<"", false, {
1454
1460
  creatorAddress: string;
1455
1461
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1456
1462
  createdAt: Date;
1463
+ rootCampaignId: string | null;
1464
+ parentCampaignId: string | null;
1457
1465
  } | {
1458
1466
  Tokens: {
1459
1467
  symbol: string;
@@ -1617,6 +1625,8 @@ declare const app: Elysia<"", false, {
1617
1625
  creatorAddress: string;
1618
1626
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
1619
1627
  createdAt: Date;
1628
+ rootCampaignId: string | null;
1629
+ parentCampaignId: string | null;
1620
1630
  };
1621
1631
  };
1622
1632
  };
@@ -1716,6 +1726,8 @@ declare const app: Elysia<"", false, {
1716
1726
  };
1717
1727
  createdAt: string;
1718
1728
  description: string | undefined;
1729
+ parentCampaignId: string | undefined;
1730
+ rootCampaignId: string | undefined;
1719
1731
  Opportunity: {
1720
1732
  status: import("@db/api").$Enums.Status;
1721
1733
  type: string;
@@ -1806,6 +1818,8 @@ declare const app: Elysia<"", false, {
1806
1818
  };
1807
1819
  createdAt: string;
1808
1820
  description: string | undefined;
1821
+ parentCampaignId: string | undefined;
1822
+ rootCampaignId: string | undefined;
1809
1823
  Opportunity: {
1810
1824
  status: import("@db/api").$Enums.Status;
1811
1825
  type: string;
@@ -2022,6 +2036,8 @@ declare const app: Elysia<"", false, {
2022
2036
  };
2023
2037
  createdAt: string;
2024
2038
  description: string | undefined;
2039
+ parentCampaignId: string | undefined;
2040
+ rootCampaignId: string | undefined;
2025
2041
  Opportunity: {
2026
2042
  status: import("@db/api").$Enums.Status;
2027
2043
  type: string;
@@ -2382,6 +2398,8 @@ declare const app: Elysia<"", false, {
2382
2398
  creatorAddress: string;
2383
2399
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
2384
2400
  createdAt: Date;
2401
+ rootCampaignId: string | null;
2402
+ parentCampaignId: string | null;
2385
2403
  } | {
2386
2404
  Tokens: {
2387
2405
  symbol: string;
@@ -2492,6 +2510,8 @@ declare const app: Elysia<"", false, {
2492
2510
  creatorAddress: string;
2493
2511
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
2494
2512
  createdAt: Date;
2513
+ rootCampaignId: string | null;
2514
+ parentCampaignId: string | null;
2495
2515
  } | {
2496
2516
  Tokens: {
2497
2517
  symbol: string;
@@ -4106,6 +4126,7 @@ declare const app: Elysia<"", false, {
4106
4126
  };
4107
4127
  breakdowns: {
4108
4128
  campaignId: string;
4129
+ subCampaignId: string | undefined;
4109
4130
  opportunity: {
4110
4131
  Chain: {
4111
4132
  name: string;
@@ -4231,6 +4252,7 @@ declare const app: Elysia<"", false, {
4231
4252
  };
4232
4253
  breakdowns: {
4233
4254
  campaignId: string;
4255
+ subCampaignId: string | undefined;
4234
4256
  opportunity: {
4235
4257
  Chain: {
4236
4258
  name: string;
@@ -4303,6 +4325,7 @@ declare const app: Elysia<"", false, {
4303
4325
  }, "breakdowns"> & {
4304
4326
  breakdowns: {
4305
4327
  campaignId: string;
4328
+ subCampaignId: string | undefined;
4306
4329
  reason: string;
4307
4330
  pending: string;
4308
4331
  amount: string;
@@ -55,6 +55,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
55
55
  creatorAddress: string;
56
56
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
57
57
  createdAt: Date;
58
+ rootCampaignId: string | null;
59
+ parentCampaignId: string | null;
58
60
  } | {
59
61
  Tokens: {
60
62
  symbol: string;
@@ -218,6 +220,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
218
220
  creatorAddress: string;
219
221
  manualOverrides: import("@db/api").$Enums.CampaignManualOverride[];
220
222
  createdAt: Date;
223
+ rootCampaignId: string | null;
224
+ parentCampaignId: string | null;
221
225
  };
222
226
  };
223
227
  };
@@ -317,6 +321,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
317
321
  };
318
322
  createdAt: string;
319
323
  description: string | undefined;
324
+ parentCampaignId: string | undefined;
325
+ rootCampaignId: string | undefined;
320
326
  Opportunity: {
321
327
  status: import("@db/api").$Enums.Status;
322
328
  type: string;
@@ -407,6 +413,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
407
413
  };
408
414
  createdAt: string;
409
415
  description: string | undefined;
416
+ parentCampaignId: string | undefined;
417
+ rootCampaignId: string | undefined;
410
418
  Opportunity: {
411
419
  status: import("@db/api").$Enums.Status;
412
420
  type: string;
@@ -623,6 +631,8 @@ export declare const CampaignController: Elysia<"/campaigns", false, {
623
631
  };
624
632
  createdAt: string;
625
633
  description: string | undefined;
634
+ parentCampaignId: string | undefined;
635
+ rootCampaignId: string | undefined;
626
636
  Opportunity: {
627
637
  status: import("@db/api").$Enums.Status;
628
638
  type: string;
@@ -22,6 +22,8 @@ export type Campaign = Resource<"Campaign", "opportunityId" | "rewardTokenId", {
22
22
  endTimestamp: number;
23
23
  startTimestamp: number;
24
24
  createdAt: string;
25
+ rootCampaignId?: string;
26
+ parentCampaignId?: string;
25
27
  }>;
26
28
  export type CampaignWithParams<C extends CampaignType = CampaignType> = Campaign["model"] & {
27
29
  params: CampaignParameters<C>["campaignParameters"];
@@ -84,6 +86,8 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
84
86
  details: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
85
87
  }>>;
86
88
  createdAt: import("@sinclair/typebox").TString;
89
+ rootCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
90
+ parentCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
87
91
  }>;
88
92
  export declare const CampaignConfigMinimal: import("@sinclair/typebox").TObject<{
89
93
  computeChainId: import("@sinclair/typebox").TNumber;
@@ -34,6 +34,8 @@ export const CampaignResourceDto = t.Object({
34
34
  distributionChain: t.Optional(ChainResourceDto),
35
35
  campaignStatus: t.Optional(CampaignStatusResourceDto),
36
36
  createdAt: t.String({ format: "date" }),
37
+ rootCampaignId: t.Optional(t.String()),
38
+ parentCampaignId: t.Optional(t.String()),
37
39
  });
38
40
  export const CampaignConfigMinimal = t.Object({
39
41
  computeChainId: t.Number(),