@merkl/api 0.10.154 → 0.10.156

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/database/api/.generated/edge.js +2 -2
  2. package/dist/database/api/.generated/index.js +2 -2
  3. package/dist/database/api/.generated/package.json +1 -1
  4. package/dist/database/api/.generated/schema.prisma +1 -0
  5. package/dist/src/eden/index.d.ts +51 -3
  6. package/dist/src/index.d.ts +17 -1
  7. package/dist/src/index.js +1 -25
  8. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +8 -0
  9. package/dist/src/modules/v4/campaign/campaign.model.d.ts +3 -1
  10. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +8 -0
  11. package/dist/src/modules/v4/campaign/campaign.repository.js +1 -0
  12. package/dist/src/modules/v4/campaign/campaign.service.d.ts +16 -0
  13. package/dist/src/modules/v4/campaign/campaign.service.js +4 -2
  14. package/dist/src/modules/v4/chain/chain.model.d.ts +1 -1
  15. package/dist/src/modules/v4/chain/chain.model.js +4 -1
  16. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +8 -0
  17. package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +32 -0
  18. package/dist/src/modules/v4/opportunity/opportunity.repository.js +13 -2
  19. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +8 -0
  20. package/dist/src/modules/v4/router.d.ts +17 -1
  21. package/dist/src/modules/v4/status/status.model.d.ts +3 -2
  22. package/dist/src/modules/v4/user/user.controller.d.ts +1 -1
  23. package/dist/src/routes/v3/ERC20Campaigns.d.ts +17 -1
  24. package/dist/src/routes/v3/blacklist.d.ts +17 -1
  25. package/dist/src/routes/v3/campaigns.d.ts +18 -2
  26. package/dist/src/routes/v3/campaignsInfo.d.ts +17 -1
  27. package/dist/src/routes/v3/multiChainPositions.d.ts +17 -1
  28. package/dist/src/routes/v3/opportunity.d.ts +17 -1
  29. package/dist/src/routes/v3/positions.d.ts +17 -1
  30. package/dist/src/routes/v3/rewards.d.ts +17 -1
  31. package/dist/src/routes/v3/updates.d.ts +17 -1
  32. package/dist/src/routes/v3/userRewards.d.ts +17 -1
  33. package/dist/tsconfig.package.tsbuildinfo +1 -1
  34. package/package.json +1 -1
@@ -264,6 +264,14 @@ export declare const v4: Elysia<"/v4", false, {
264
264
  id: number;
265
265
  icon: string;
266
266
  } | undefined;
267
+ campaignStatus: {
268
+ error: string;
269
+ details: import("database/api/.generated/runtime/library").JsonValue;
270
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
271
+ campaignId: string;
272
+ computedUntil: bigint;
273
+ processingStarted: bigint;
274
+ };
267
275
  type: import("../../../database/api/.generated").$Enums.CampaignType;
268
276
  id: string;
269
277
  subType: number | null;
@@ -541,6 +549,14 @@ export declare const v4: Elysia<"/v4", false, {
541
549
  id: number;
542
550
  icon: string;
543
551
  } | undefined;
552
+ campaignStatus: {
553
+ error: string;
554
+ details: import("database/api/.generated/runtime/library").JsonValue;
555
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
556
+ campaignId: string;
557
+ computedUntil: bigint;
558
+ processingStarted: bigint;
559
+ };
544
560
  type: import("../../../database/api/.generated").$Enums.CampaignType;
545
561
  id: string;
546
562
  subType: number | null;
@@ -1539,7 +1555,7 @@ export declare const v4: Elysia<"/v4", false, {
1539
1555
  address: string;
1540
1556
  };
1541
1557
  query: {
1542
- chainId: number | number[];
1558
+ chainId: number[];
1543
1559
  };
1544
1560
  headers: unknown;
1545
1561
  response: {
@@ -1,8 +1,9 @@
1
1
  import type { Campaign } from "../campaign";
2
2
  import type { Resource } from "../prisma";
3
- export type Status = Resource<"CampaignStatus", "campaignId", {
3
+ export type Status = Resource<"CampaignStatus", "campaignId">;
4
+ export type StatusWithCampaign = Status & {
4
5
  campaign: Campaign["model"];
5
- }>;
6
+ };
6
7
  export declare const UpdateCampaignStatusDto: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
7
8
  value: import("@sinclair/typebox").TLiteral<"SUCCESS">;
8
9
  computedUntil: import("@sinclair/typebox").TNumber;
@@ -191,7 +191,7 @@ export declare const UserController: Elysia<"/users", false, {
191
191
  address: string;
192
192
  };
193
193
  query: {
194
- chainId: number | number[];
194
+ chainId: number[];
195
195
  };
196
196
  headers: unknown;
197
197
  response: {
@@ -290,6 +290,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
290
290
  id: number;
291
291
  icon: string;
292
292
  } | undefined;
293
+ campaignStatus: {
294
+ error: string;
295
+ details: import("database/api/.generated/runtime/library").JsonValue;
296
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
297
+ campaignId: string;
298
+ computedUntil: bigint;
299
+ processingStarted: bigint;
300
+ };
293
301
  type: import("../../../database/api/.generated").$Enums.CampaignType;
294
302
  id: string;
295
303
  subType: number | null;
@@ -567,6 +575,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
567
575
  id: number;
568
576
  icon: string;
569
577
  } | undefined;
578
+ campaignStatus: {
579
+ error: string;
580
+ details: import("database/api/.generated/runtime/library").JsonValue;
581
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
582
+ campaignId: string;
583
+ computedUntil: bigint;
584
+ processingStarted: bigint;
585
+ };
570
586
  type: import("../../../database/api/.generated").$Enums.CampaignType;
571
587
  id: string;
572
588
  subType: number | null;
@@ -1565,7 +1581,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1565
1581
  address: string;
1566
1582
  };
1567
1583
  query: {
1568
- chainId: number | number[];
1584
+ chainId: number[];
1569
1585
  };
1570
1586
  headers: unknown;
1571
1587
  response: {
@@ -288,6 +288,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
288
288
  id: number;
289
289
  icon: string;
290
290
  } | undefined;
291
+ campaignStatus: {
292
+ error: string;
293
+ details: import("database/api/.generated/runtime/library").JsonValue;
294
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
295
+ campaignId: string;
296
+ computedUntil: bigint;
297
+ processingStarted: bigint;
298
+ };
291
299
  type: import("../../../database/api/.generated").$Enums.CampaignType;
292
300
  id: string;
293
301
  subType: number | null;
@@ -565,6 +573,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
565
573
  id: number;
566
574
  icon: string;
567
575
  } | undefined;
576
+ campaignStatus: {
577
+ error: string;
578
+ details: import("database/api/.generated/runtime/library").JsonValue;
579
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
580
+ campaignId: string;
581
+ computedUntil: bigint;
582
+ processingStarted: bigint;
583
+ };
568
584
  type: import("../../../database/api/.generated").$Enums.CampaignType;
569
585
  id: string;
570
586
  subType: number | null;
@@ -1563,7 +1579,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1563
1579
  address: string;
1564
1580
  };
1565
1581
  query: {
1566
- chainId: number | number[];
1582
+ chainId: number[];
1567
1583
  };
1568
1584
  headers: unknown;
1569
1585
  response: {
@@ -291,6 +291,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
291
291
  id: number;
292
292
  icon: string;
293
293
  } | undefined;
294
+ campaignStatus: {
295
+ error: string;
296
+ details: import("database/api/.generated/runtime/library").JsonValue;
297
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
298
+ campaignId: string;
299
+ computedUntil: bigint;
300
+ processingStarted: bigint;
301
+ };
294
302
  type: import("../../../database/api/.generated").$Enums.CampaignType;
295
303
  id: string;
296
304
  subType: number | null;
@@ -568,6 +576,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
568
576
  id: number;
569
577
  icon: string;
570
578
  } | undefined;
579
+ campaignStatus: {
580
+ error: string;
581
+ details: import("database/api/.generated/runtime/library").JsonValue;
582
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
583
+ campaignId: string;
584
+ computedUntil: bigint;
585
+ processingStarted: bigint;
586
+ };
571
587
  type: import("../../../database/api/.generated").$Enums.CampaignType;
572
588
  id: string;
573
589
  subType: number | null;
@@ -1566,7 +1582,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1566
1582
  address: string;
1567
1583
  };
1568
1584
  query: {
1569
- chainId: number | number[];
1585
+ chainId: number[];
1570
1586
  };
1571
1587
  headers: unknown;
1572
1588
  response: {
@@ -2204,7 +2220,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
2204
2220
  body: unknown;
2205
2221
  params: {};
2206
2222
  query: {
2207
- types?: string | number | string[] | number[] | undefined;
2223
+ types?: string | number | number[] | string[] | undefined;
2208
2224
  live?: boolean | undefined;
2209
2225
  chainIds?: string | string[] | undefined;
2210
2226
  creatorTag?: string | undefined;
@@ -282,6 +282,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
282
282
  id: number;
283
283
  icon: string;
284
284
  } | undefined;
285
+ campaignStatus: {
286
+ error: string;
287
+ details: import("database/api/.generated/runtime/library").JsonValue;
288
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
289
+ campaignId: string;
290
+ computedUntil: bigint;
291
+ processingStarted: bigint;
292
+ };
285
293
  type: import("../../../database/api/.generated").$Enums.CampaignType;
286
294
  id: string;
287
295
  subType: number | null;
@@ -559,6 +567,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
559
567
  id: number;
560
568
  icon: string;
561
569
  } | undefined;
570
+ campaignStatus: {
571
+ error: string;
572
+ details: import("database/api/.generated/runtime/library").JsonValue;
573
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
574
+ campaignId: string;
575
+ computedUntil: bigint;
576
+ processingStarted: bigint;
577
+ };
562
578
  type: import("../../../database/api/.generated").$Enums.CampaignType;
563
579
  id: string;
564
580
  subType: number | null;
@@ -1557,7 +1573,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1557
1573
  address: string;
1558
1574
  };
1559
1575
  query: {
1560
- chainId: number | number[];
1576
+ chainId: number[];
1561
1577
  };
1562
1578
  headers: unknown;
1563
1579
  response: {
@@ -287,6 +287,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
287
287
  id: number;
288
288
  icon: string;
289
289
  } | undefined;
290
+ campaignStatus: {
291
+ error: string;
292
+ details: import("database/api/.generated/runtime/library").JsonValue;
293
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
294
+ campaignId: string;
295
+ computedUntil: bigint;
296
+ processingStarted: bigint;
297
+ };
290
298
  type: import("../../../database/api/.generated").$Enums.CampaignType;
291
299
  id: string;
292
300
  subType: number | null;
@@ -564,6 +572,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
564
572
  id: number;
565
573
  icon: string;
566
574
  } | undefined;
575
+ campaignStatus: {
576
+ error: string;
577
+ details: import("database/api/.generated/runtime/library").JsonValue;
578
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
579
+ campaignId: string;
580
+ computedUntil: bigint;
581
+ processingStarted: bigint;
582
+ };
567
583
  type: import("../../../database/api/.generated").$Enums.CampaignType;
568
584
  id: string;
569
585
  subType: number | null;
@@ -1562,7 +1578,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1562
1578
  address: string;
1563
1579
  };
1564
1580
  query: {
1565
- chainId: number | number[];
1581
+ chainId: number[];
1566
1582
  };
1567
1583
  headers: unknown;
1568
1584
  response: {
@@ -305,6 +305,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
305
305
  id: number;
306
306
  icon: string;
307
307
  } | undefined;
308
+ campaignStatus: {
309
+ error: string;
310
+ details: import("database/api/.generated/runtime/library").JsonValue;
311
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
312
+ campaignId: string;
313
+ computedUntil: bigint;
314
+ processingStarted: bigint;
315
+ };
308
316
  type: import("../../../database/api/.generated").$Enums.CampaignType;
309
317
  id: string;
310
318
  subType: number | null;
@@ -582,6 +590,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
582
590
  id: number;
583
591
  icon: string;
584
592
  } | undefined;
593
+ campaignStatus: {
594
+ error: string;
595
+ details: import("database/api/.generated/runtime/library").JsonValue;
596
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
597
+ campaignId: string;
598
+ computedUntil: bigint;
599
+ processingStarted: bigint;
600
+ };
585
601
  type: import("../../../database/api/.generated").$Enums.CampaignType;
586
602
  id: string;
587
603
  subType: number | null;
@@ -1580,7 +1596,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1580
1596
  address: string;
1581
1597
  };
1582
1598
  query: {
1583
- chainId: number | number[];
1599
+ chainId: number[];
1584
1600
  };
1585
1601
  headers: unknown;
1586
1602
  response: {
@@ -306,6 +306,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
306
306
  id: number;
307
307
  icon: string;
308
308
  } | undefined;
309
+ campaignStatus: {
310
+ error: string;
311
+ details: import("database/api/.generated/runtime/library").JsonValue;
312
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
313
+ campaignId: string;
314
+ computedUntil: bigint;
315
+ processingStarted: bigint;
316
+ };
309
317
  type: import("../../../database/api/.generated").$Enums.CampaignType;
310
318
  id: string;
311
319
  subType: number | null;
@@ -583,6 +591,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
583
591
  id: number;
584
592
  icon: string;
585
593
  } | undefined;
594
+ campaignStatus: {
595
+ error: string;
596
+ details: import("database/api/.generated/runtime/library").JsonValue;
597
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
598
+ campaignId: string;
599
+ computedUntil: bigint;
600
+ processingStarted: bigint;
601
+ };
586
602
  type: import("../../../database/api/.generated").$Enums.CampaignType;
587
603
  id: string;
588
604
  subType: number | null;
@@ -1581,7 +1597,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1581
1597
  address: string;
1582
1598
  };
1583
1599
  query: {
1584
- chainId: number | number[];
1600
+ chainId: number[];
1585
1601
  };
1586
1602
  headers: unknown;
1587
1603
  response: {
@@ -288,6 +288,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
288
288
  id: number;
289
289
  icon: string;
290
290
  } | undefined;
291
+ campaignStatus: {
292
+ error: string;
293
+ details: import("database/api/.generated/runtime/library").JsonValue;
294
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
295
+ campaignId: string;
296
+ computedUntil: bigint;
297
+ processingStarted: bigint;
298
+ };
291
299
  type: import("../../../database/api/.generated").$Enums.CampaignType;
292
300
  id: string;
293
301
  subType: number | null;
@@ -565,6 +573,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
565
573
  id: number;
566
574
  icon: string;
567
575
  } | undefined;
576
+ campaignStatus: {
577
+ error: string;
578
+ details: import("database/api/.generated/runtime/library").JsonValue;
579
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
580
+ campaignId: string;
581
+ computedUntil: bigint;
582
+ processingStarted: bigint;
583
+ };
568
584
  type: import("../../../database/api/.generated").$Enums.CampaignType;
569
585
  id: string;
570
586
  subType: number | null;
@@ -1563,7 +1579,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1563
1579
  address: string;
1564
1580
  };
1565
1581
  query: {
1566
- chainId: number | number[];
1582
+ chainId: number[];
1567
1583
  };
1568
1584
  headers: unknown;
1569
1585
  response: {
@@ -289,6 +289,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
289
289
  id: number;
290
290
  icon: string;
291
291
  } | undefined;
292
+ campaignStatus: {
293
+ error: string;
294
+ details: import("database/api/.generated/runtime/library").JsonValue;
295
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
296
+ campaignId: string;
297
+ computedUntil: bigint;
298
+ processingStarted: bigint;
299
+ };
292
300
  type: import("../../../database/api/.generated").$Enums.CampaignType;
293
301
  id: string;
294
302
  subType: number | null;
@@ -566,6 +574,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
566
574
  id: number;
567
575
  icon: string;
568
576
  } | undefined;
577
+ campaignStatus: {
578
+ error: string;
579
+ details: import("database/api/.generated/runtime/library").JsonValue;
580
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
581
+ campaignId: string;
582
+ computedUntil: bigint;
583
+ processingStarted: bigint;
584
+ };
569
585
  type: import("../../../database/api/.generated").$Enums.CampaignType;
570
586
  id: string;
571
587
  subType: number | null;
@@ -1564,7 +1580,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1564
1580
  address: string;
1565
1581
  };
1566
1582
  query: {
1567
- chainId: number | number[];
1583
+ chainId: number[];
1568
1584
  };
1569
1585
  headers: unknown;
1570
1586
  response: {
@@ -291,6 +291,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
291
291
  id: number;
292
292
  icon: string;
293
293
  } | undefined;
294
+ campaignStatus: {
295
+ error: string;
296
+ details: import("database/api/.generated/runtime/library").JsonValue;
297
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
298
+ campaignId: string;
299
+ computedUntil: bigint;
300
+ processingStarted: bigint;
301
+ };
294
302
  type: import("../../../database/api/.generated").$Enums.CampaignType;
295
303
  id: string;
296
304
  subType: number | null;
@@ -568,6 +576,14 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
568
576
  id: number;
569
577
  icon: string;
570
578
  } | undefined;
579
+ campaignStatus: {
580
+ error: string;
581
+ details: import("database/api/.generated/runtime/library").JsonValue;
582
+ status: import("../../../database/api/.generated").$Enums.RunStatus;
583
+ campaignId: string;
584
+ computedUntil: bigint;
585
+ processingStarted: bigint;
586
+ };
571
587
  type: import("../../../database/api/.generated").$Enums.CampaignType;
572
588
  id: string;
573
589
  subType: number | null;
@@ -1566,7 +1582,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1566
1582
  address: string;
1567
1583
  };
1568
1584
  query: {
1569
- chainId: number | number[];
1585
+ chainId: number[];
1570
1586
  };
1571
1587
  headers: unknown;
1572
1588
  response: {