@merkl/api 1.0.43 → 1.0.45

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 (25) hide show
  1. package/dist/src/eden/index.d.ts +2331 -2259
  2. package/dist/src/index.d.ts +794 -800
  3. package/dist/src/modules/v4/accounting/accounting.model.d.ts +2 -2
  4. package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
  5. package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
  6. package/dist/src/modules/v4/campaign/campaign.controller.d.ts +301 -313
  7. package/dist/src/modules/v4/campaign/campaign.repository.d.ts +83 -2
  8. package/dist/src/modules/v4/campaign/campaign.service.d.ts +90 -7
  9. package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
  10. package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
  11. package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -0
  12. package/dist/src/modules/v4/creator/creator.model.d.ts +2 -2
  13. package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -0
  14. package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +733 -733
  15. package/dist/src/modules/v4/opportunity/opportunity.service.d.ts +0 -167
  16. package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +12 -3
  17. package/dist/src/modules/v4/protocol/protocol.controller.d.ts +2 -2
  18. package/dist/src/modules/v4/router.d.ts +794 -800
  19. package/dist/src/modules/v4/token/token.controller.d.ts +2 -2
  20. package/dist/src/modules/v4/token/token.model.d.ts +2 -2
  21. package/dist/src/modules/v4/token/token.repository.d.ts +16 -0
  22. package/dist/src/modules/v4/token/token.service.d.ts +1 -1
  23. package/dist/src/utils/pagination.d.ts +11 -0
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/package.json +1 -1
@@ -149,276 +149,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
149
149
  };
150
150
  };
151
151
  };
152
- } & {
153
- opportunity: {
154
- patch: {
155
- body: {
156
- opportunityIdentifier?: string | undefined;
157
- campaignId: string;
158
- distributionChain: number;
159
- };
160
- params: {};
161
- query: unknown;
162
- headers: {
163
- authorization: string;
164
- };
165
- response: {
166
- 200: string;
167
- 422: {
168
- type: "validation";
169
- on: string;
170
- summary?: string;
171
- message?: string;
172
- found?: unknown;
173
- property?: string;
174
- expected?: string;
175
- };
176
- };
177
- };
178
- };
179
- } & {
180
- creator: {
181
- patch: {
182
- body: {
183
- campaignId: string;
184
- creatorAddress: string;
185
- distributionChain: number;
186
- };
187
- params: {};
188
- query: unknown;
189
- headers: {
190
- authorization: string;
191
- };
192
- response: {
193
- 200: void;
194
- 422: {
195
- type: "validation";
196
- on: string;
197
- summary?: string;
198
- message?: string;
199
- found?: unknown;
200
- property?: string;
201
- expected?: string;
202
- };
203
- };
204
- };
205
- };
206
- } & {
207
- "remove-override": {
208
- patch: {
209
- body: {
210
- campaignId: string;
211
- distributionChain: number;
212
- field: "opportunityId" | "creatorAddress";
213
- };
214
- params: {};
215
- query: unknown;
216
- headers: {
217
- authorization: string;
218
- };
219
- response: {
220
- 200: void;
221
- 422: {
222
- type: "validation";
223
- on: string;
224
- summary?: string;
225
- message?: string;
226
- found?: unknown;
227
- property?: string;
228
- expected?: string;
229
- };
230
- };
231
- };
232
- };
233
- } & {
234
- metadata: {
235
- patch: {
236
- body: {
237
- campaignId: string;
238
- url: string;
239
- distributionChain: number;
240
- };
241
- params: {};
242
- query: unknown;
243
- headers: {
244
- authorization: string;
245
- };
246
- response: {
247
- 200: {
248
- campaignId: string;
249
- description: string | null;
250
- id: string;
251
- params: import("@prisma/client/runtime/library").JsonValue;
252
- amount: string;
253
- startTimestamp: bigint;
254
- type: string;
255
- computeChainId: number;
256
- distributionChainId: number;
257
- endTimestamp: bigint;
258
- opportunityId: string;
259
- creatorAddress: string;
260
- distributionType: import("@package/databases").DistributionType;
261
- subType: number | null;
262
- rewardTokenId: string;
263
- manualOverrides: import("@package/databases").CampaignManualOverride[];
264
- createdAt: Date;
265
- rootCampaignId: string | null;
266
- parentCampaignId: string | null;
267
- };
268
- 422: {
269
- type: "validation";
270
- on: string;
271
- summary?: string;
272
- message?: string;
273
- found?: unknown;
274
- property?: string;
275
- expected?: string;
276
- };
277
- };
278
- };
279
- };
280
- } & {
281
- tvls: {
282
- ":opportunityId": {
283
- put: {
284
- body: unknown;
285
- params: {
286
- opportunityId: string;
287
- };
288
- query: unknown;
289
- headers: {
290
- authorization: string;
291
- };
292
- response: {
293
- 200: unknown[];
294
- 422: {
295
- type: "validation";
296
- on: string;
297
- summary?: string;
298
- message?: string;
299
- found?: unknown;
300
- property?: string;
301
- expected?: string;
302
- };
303
- };
304
- };
305
- };
306
- };
307
- } & {
308
- get: {
309
- body: unknown;
310
- params: {};
311
- query: {
312
- campaignId?: string | undefined;
313
- id?: string | undefined;
314
- tokenAddress?: string | undefined;
315
- status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
316
- chainId?: number | undefined;
317
- startTimestamp?: string | undefined;
318
- items?: number | undefined;
319
- point?: boolean | undefined;
320
- tokenSymbol?: string | undefined;
321
- type?: string | undefined;
322
- endTimestamp?: string | undefined;
323
- opportunityId?: string | undefined;
324
- creatorAddress?: string | undefined;
325
- mainProtocolId?: string | undefined;
326
- subType?: number | undefined;
327
- rootCampaignId?: string | undefined;
328
- parentCampaignId?: string | undefined;
329
- creatorId?: string | undefined;
330
- mainParameter?: string | undefined;
331
- page?: number | undefined;
332
- test?: boolean | undefined;
333
- creatorTag?: string | undefined;
334
- distributionChainIds?: number[] | undefined;
335
- types?: string[] | undefined;
336
- withOpportunity?: boolean | undefined;
337
- createdAfter?: Date | null | undefined;
338
- excludeSubCampaigns?: boolean | undefined;
339
- };
340
- headers: unknown;
341
- response: {
342
- 200: {
343
- description?: string | undefined;
344
- creator?: {
345
- tags?: string[] | undefined;
346
- creatorId?: string | null | undefined;
347
- address: string;
348
- } | undefined;
349
- distributionType?: "DUTCH_AUCTION" | "FIX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "FIX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "FIX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
350
- rootCampaignId?: string | undefined;
351
- parentCampaignId?: string | undefined;
352
- campaignStatus?: {
353
- error?: string | undefined;
354
- details?: any;
355
- campaignId: string;
356
- status: string;
357
- computedUntil: string | number;
358
- processingStarted: string | number;
359
- } | undefined;
360
- distributionChain?: {
361
- explorers?: {
362
- chainId: number;
363
- type: "ETHERSCAN" | "BLOCKSCOUT";
364
- url: string;
365
- }[] | undefined;
366
- name: string;
367
- id: number;
368
- icon: string;
369
- } | undefined;
370
- rewardToken: {
371
- price?: number | null | undefined;
372
- symbol: string;
373
- name: string | null;
374
- decimals: number;
375
- address: string;
376
- id: string;
377
- chainId: number;
378
- icon: string;
379
- isNative: boolean;
380
- isPoint: boolean;
381
- isPreTGE: boolean;
382
- isTest: boolean;
383
- verified: boolean;
384
- };
385
- campaignId: string;
386
- id: string;
387
- params: any;
388
- amount: string;
389
- startTimestamp: string | number;
390
- type: string;
391
- computeChainId: number;
392
- distributionChainId: number;
393
- endTimestamp: string | number;
394
- opportunityId: string;
395
- creatorAddress: string;
396
- subType: number | null;
397
- rewardTokenId: string;
398
- createdAt: string;
399
- chain: {
400
- explorers?: {
401
- chainId: number;
402
- type: "ETHERSCAN" | "BLOCKSCOUT";
403
- url: string;
404
- }[] | undefined;
405
- name: string;
406
- id: number;
407
- icon: string;
408
- };
409
- }[];
410
- 422: {
411
- type: "validation";
412
- on: string;
413
- summary?: string;
414
- message?: string;
415
- found?: unknown;
416
- property?: string;
417
- expected?: string;
418
- };
419
- };
420
- };
421
- } & {
152
+ };
153
+ } & {
154
+ campaigns: {
422
155
  ":id": {
423
156
  get: {
424
157
  body: unknown;
@@ -508,7 +241,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
508
241
  };
509
242
  };
510
243
  };
511
- } & {
244
+ };
245
+ } & {
246
+ campaigns: {
512
247
  ":id": {
513
248
  metrics: {
514
249
  get: {
@@ -551,7 +286,40 @@ export declare const CampaignController: Elysia<"/campaigns", {
551
286
  };
552
287
  };
553
288
  };
554
- } & {
289
+ };
290
+ } & {
291
+ campaigns: {
292
+ "campaigns-to-process": {
293
+ engine: {
294
+ post: {
295
+ body: unknown;
296
+ params: {};
297
+ query: {
298
+ chainId: number;
299
+ };
300
+ headers: {
301
+ authorization: string;
302
+ };
303
+ response: {
304
+ 200: {
305
+ campaignId: string;
306
+ };
307
+ 422: {
308
+ type: "validation";
309
+ on: string;
310
+ summary?: string;
311
+ message?: string;
312
+ found?: unknown;
313
+ property?: string;
314
+ expected?: string;
315
+ };
316
+ };
317
+ };
318
+ };
319
+ };
320
+ };
321
+ } & {
322
+ campaigns: {
555
323
  "campaigns-to-process": {
556
324
  get: {
557
325
  body: unknown;
@@ -582,7 +350,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
582
350
  };
583
351
  };
584
352
  };
585
- } & {
353
+ };
354
+ } & {
355
+ campaigns: {
586
356
  "campaigns-to-process": {
587
357
  count: {
588
358
  get: {
@@ -607,7 +377,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
607
377
  };
608
378
  };
609
379
  };
610
- } & {
380
+ };
381
+ } & {
382
+ campaigns: {
611
383
  "campaigns-to-process": {
612
384
  next: {
613
385
  get: {
@@ -634,35 +406,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
634
406
  };
635
407
  };
636
408
  };
637
- } & {
638
- "campaigns-to-process": {
639
- engine: {
640
- post: {
641
- body: unknown;
642
- params: {};
643
- query: {
644
- chainId: number;
645
- };
646
- headers: {
647
- authorization: string;
648
- };
649
- response: {
650
- 200: {
651
- campaignId: string;
652
- };
653
- 422: {
654
- type: "validation";
655
- on: string;
656
- summary?: string;
657
- message?: string;
658
- found?: unknown;
659
- property?: string;
660
- expected?: string;
661
- };
662
- };
663
- };
664
- };
665
- };
666
409
  };
667
410
  } & {
668
411
  campaigns: {
@@ -715,8 +458,8 @@ export declare const CampaignController: Elysia<"/campaigns", {
715
458
  parentCampaignId?: string | undefined;
716
459
  creatorId?: string | undefined;
717
460
  mainParameter?: string | undefined;
718
- page?: number | undefined;
719
461
  test?: boolean | undefined;
462
+ page?: number | undefined;
720
463
  creatorTag?: string | undefined;
721
464
  distributionChainIds?: number[] | undefined;
722
465
  types?: string[] | undefined;
@@ -832,8 +575,8 @@ export declare const CampaignController: Elysia<"/campaigns", {
832
575
  parentCampaignId?: string | undefined;
833
576
  creatorId?: string | undefined;
834
577
  mainParameter?: string | undefined;
835
- page?: number | undefined;
836
578
  test?: boolean | undefined;
579
+ page?: number | undefined;
837
580
  creatorTag?: string | undefined;
838
581
  distributionChainIds?: number[] | undefined;
839
582
  types?: string[] | undefined;
@@ -863,7 +606,35 @@ export declare const CampaignController: Elysia<"/campaigns", {
863
606
  get: {
864
607
  body: unknown;
865
608
  params: {};
866
- query: unknown;
609
+ query: {
610
+ campaignId?: string | undefined;
611
+ id?: string | undefined;
612
+ tokenAddress?: string | undefined;
613
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
614
+ chainId?: number | undefined;
615
+ startTimestamp?: string | undefined;
616
+ items?: number | undefined;
617
+ point?: boolean | undefined;
618
+ tokenSymbol?: string | undefined;
619
+ type?: string | undefined;
620
+ endTimestamp?: string | undefined;
621
+ opportunityId?: string | undefined;
622
+ creatorAddress?: string | undefined;
623
+ mainProtocolId?: string | undefined;
624
+ subType?: number | undefined;
625
+ rootCampaignId?: string | undefined;
626
+ parentCampaignId?: string | undefined;
627
+ creatorId?: string | undefined;
628
+ mainParameter?: string | undefined;
629
+ test?: boolean | undefined;
630
+ page?: number | undefined;
631
+ creatorTag?: string | undefined;
632
+ distributionChainIds?: number[] | undefined;
633
+ types?: string[] | undefined;
634
+ withOpportunity?: boolean | undefined;
635
+ createdAfter?: Date | null | undefined;
636
+ excludeSubCampaigns?: boolean | undefined;
637
+ };
867
638
  headers: {
868
639
  authorization: string;
869
640
  };
@@ -891,7 +662,35 @@ export declare const CampaignController: Elysia<"/campaigns", {
891
662
  get: {
892
663
  body: unknown;
893
664
  params: {};
894
- query: unknown;
665
+ query: {
666
+ campaignId?: string | undefined;
667
+ id?: string | undefined;
668
+ tokenAddress?: string | undefined;
669
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
670
+ chainId?: number | undefined;
671
+ startTimestamp?: string | undefined;
672
+ items?: number | undefined;
673
+ point?: boolean | undefined;
674
+ tokenSymbol?: string | undefined;
675
+ type?: string | undefined;
676
+ endTimestamp?: string | undefined;
677
+ opportunityId?: string | undefined;
678
+ creatorAddress?: string | undefined;
679
+ mainProtocolId?: string | undefined;
680
+ subType?: number | undefined;
681
+ rootCampaignId?: string | undefined;
682
+ parentCampaignId?: string | undefined;
683
+ creatorId?: string | undefined;
684
+ mainParameter?: string | undefined;
685
+ test?: boolean | undefined;
686
+ page?: number | undefined;
687
+ creatorTag?: string | undefined;
688
+ distributionChainIds?: number[] | undefined;
689
+ types?: string[] | undefined;
690
+ withOpportunity?: boolean | undefined;
691
+ createdAfter?: Date | null | undefined;
692
+ excludeSubCampaigns?: boolean | undefined;
693
+ };
895
694
  headers: {
896
695
  authorization: string;
897
696
  };
@@ -920,7 +719,35 @@ export declare const CampaignController: Elysia<"/campaigns", {
920
719
  get: {
921
720
  body: unknown;
922
721
  params: {};
923
- query: unknown;
722
+ query: {
723
+ campaignId?: string | undefined;
724
+ id?: string | undefined;
725
+ tokenAddress?: string | undefined;
726
+ status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
727
+ chainId?: number | undefined;
728
+ startTimestamp?: string | undefined;
729
+ items?: number | undefined;
730
+ point?: boolean | undefined;
731
+ tokenSymbol?: string | undefined;
732
+ type?: string | undefined;
733
+ endTimestamp?: string | undefined;
734
+ opportunityId?: string | undefined;
735
+ creatorAddress?: string | undefined;
736
+ mainProtocolId?: string | undefined;
737
+ subType?: number | undefined;
738
+ rootCampaignId?: string | undefined;
739
+ parentCampaignId?: string | undefined;
740
+ creatorId?: string | undefined;
741
+ mainParameter?: string | undefined;
742
+ test?: boolean | undefined;
743
+ page?: number | undefined;
744
+ creatorTag?: string | undefined;
745
+ distributionChainIds?: number[] | undefined;
746
+ types?: string[] | undefined;
747
+ withOpportunity?: boolean | undefined;
748
+ createdAfter?: Date | null | undefined;
749
+ excludeSubCampaigns?: boolean | undefined;
750
+ };
924
751
  headers: {
925
752
  authorization: string;
926
753
  };
@@ -942,6 +769,171 @@ export declare const CampaignController: Elysia<"/campaigns", {
942
769
  };
943
770
  };
944
771
  };
772
+ } & {
773
+ campaigns: {
774
+ opportunity: {
775
+ patch: {
776
+ body: {
777
+ opportunityIdentifier?: string | undefined;
778
+ campaignId: string;
779
+ distributionChain: number;
780
+ };
781
+ params: {};
782
+ query: unknown;
783
+ headers: {
784
+ authorization: string;
785
+ };
786
+ response: {
787
+ 200: string;
788
+ 422: {
789
+ type: "validation";
790
+ on: string;
791
+ summary?: string;
792
+ message?: string;
793
+ found?: unknown;
794
+ property?: string;
795
+ expected?: string;
796
+ };
797
+ };
798
+ };
799
+ };
800
+ };
801
+ } & {
802
+ campaigns: {
803
+ creator: {
804
+ patch: {
805
+ body: {
806
+ campaignId: string;
807
+ creatorAddress: string;
808
+ distributionChain: number;
809
+ };
810
+ params: {};
811
+ query: unknown;
812
+ headers: {
813
+ authorization: string;
814
+ };
815
+ response: {
816
+ 200: void;
817
+ 422: {
818
+ type: "validation";
819
+ on: string;
820
+ summary?: string;
821
+ message?: string;
822
+ found?: unknown;
823
+ property?: string;
824
+ expected?: string;
825
+ };
826
+ };
827
+ };
828
+ };
829
+ };
830
+ } & {
831
+ campaigns: {
832
+ "remove-override": {
833
+ patch: {
834
+ body: {
835
+ campaignId: string;
836
+ distributionChain: number;
837
+ field: "opportunityId" | "creatorAddress";
838
+ };
839
+ params: {};
840
+ query: unknown;
841
+ headers: {
842
+ authorization: string;
843
+ };
844
+ response: {
845
+ 200: void;
846
+ 422: {
847
+ type: "validation";
848
+ on: string;
849
+ summary?: string;
850
+ message?: string;
851
+ found?: unknown;
852
+ property?: string;
853
+ expected?: string;
854
+ };
855
+ };
856
+ };
857
+ };
858
+ };
859
+ } & {
860
+ campaigns: {
861
+ metadata: {
862
+ patch: {
863
+ body: {
864
+ campaignId: string;
865
+ url: string;
866
+ distributionChain: number;
867
+ };
868
+ params: {};
869
+ query: unknown;
870
+ headers: {
871
+ authorization: string;
872
+ };
873
+ response: {
874
+ 200: {
875
+ campaignId: string;
876
+ description: string | null;
877
+ id: string;
878
+ params: import("@prisma/client/runtime/library").JsonValue;
879
+ amount: string;
880
+ startTimestamp: bigint;
881
+ type: string;
882
+ computeChainId: number;
883
+ distributionChainId: number;
884
+ endTimestamp: bigint;
885
+ opportunityId: string;
886
+ creatorAddress: string;
887
+ distributionType: import("@package/databases").DistributionType;
888
+ subType: number | null;
889
+ rewardTokenId: string;
890
+ manualOverrides: import("@package/databases").CampaignManualOverride[];
891
+ createdAt: Date;
892
+ rootCampaignId: string | null;
893
+ parentCampaignId: string | null;
894
+ };
895
+ 422: {
896
+ type: "validation";
897
+ on: string;
898
+ summary?: string;
899
+ message?: string;
900
+ found?: unknown;
901
+ property?: string;
902
+ expected?: string;
903
+ };
904
+ };
905
+ };
906
+ };
907
+ };
908
+ } & {
909
+ campaigns: {
910
+ tvls: {
911
+ ":opportunityId": {
912
+ put: {
913
+ body: unknown;
914
+ params: {
915
+ opportunityId: string;
916
+ };
917
+ query: unknown;
918
+ headers: {
919
+ authorization: string;
920
+ };
921
+ response: {
922
+ 200: unknown[];
923
+ 422: {
924
+ type: "validation";
925
+ on: string;
926
+ summary?: string;
927
+ message?: string;
928
+ found?: unknown;
929
+ property?: string;
930
+ expected?: string;
931
+ };
932
+ };
933
+ };
934
+ };
935
+ };
936
+ };
945
937
  }, {
946
938
  derive: {};
947
939
  resolve: {};
@@ -958,11 +950,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
958
950
  query: unknown;
959
951
  params: {};
960
952
  cookie: unknown;
961
- response: {
962
- 200: {
963
- [x: string]: number;
964
- };
965
- };
953
+ response: {};
966
954
  };
967
955
  standaloneSchema: {};
968
956
  }>;