@merkl/api 1.0.42 → 1.0.44
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.
- package/dist/src/eden/index.d.ts +1590 -1518
- package/dist/src/index.d.ts +842 -848
- package/dist/src/modules/v4/accounting/accounting.controller.d.ts +2 -2
- package/dist/src/modules/v4/accounting/accounting.model.d.ts +4 -4
- package/dist/src/modules/v4/accounting/accounting.repository.d.ts +1 -1
- package/dist/src/modules/v4/accounting/accounting.service.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +303 -315
- package/dist/src/modules/v4/campaign/campaign.model.d.ts +2 -2
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +83 -2
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +90 -7
- package/dist/src/modules/v4/computedValue/computedValue.controller.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.repository.d.ts +2 -0
- package/dist/src/modules/v4/computedValue/computedValue.service.d.ts +2 -0
- package/dist/src/modules/v4/creator/creator.controller.d.ts +2 -2
- package/dist/src/modules/v4/creator/creator.model.d.ts +2 -2
- package/dist/src/modules/v4/dynamicData/dynamicData.service.d.ts +6 -0
- package/dist/src/modules/v4/opportunity/opportunity.controller.d.ts +627 -627
- package/dist/src/modules/v4/opportunity/opportunity.model.d.ts +2 -2
- package/dist/src/modules/v4/programPayload/programPayload.repository.d.ts +36 -4
- package/dist/src/modules/v4/protocol/protocol.controller.d.ts +4 -4
- package/dist/src/modules/v4/protocol/protocol.model.d.ts +2 -2
- package/dist/src/modules/v4/reward/reward.controller.d.ts +18 -18
- package/dist/src/modules/v4/reward/reward.model.d.ts +6 -6
- package/dist/src/modules/v4/router.d.ts +842 -848
- package/dist/src/modules/v4/token/token.controller.d.ts +4 -4
- package/dist/src/modules/v4/token/token.model.d.ts +2 -2
- package/dist/src/modules/v4/token/token.repository.d.ts +16 -0
- package/dist/src/modules/v4/token/token.service.d.ts +1 -1
- package/dist/src/modules/v4/user/user.controller.d.ts +2 -2
- package/dist/src/modules/v4/user/user.model.d.ts +2 -2
- package/dist/src/utils/pagination.d.ts +11 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -149,276 +149,9 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
149
149
|
};
|
150
150
|
};
|
151
151
|
};
|
152
|
-
}
|
153
|
-
|
154
|
-
|
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: {
|
@@ -702,7 +445,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
702
445
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
703
446
|
chainId?: number | undefined;
|
704
447
|
startTimestamp?: string | undefined;
|
705
|
-
items?: number | undefined;
|
706
448
|
point?: boolean | undefined;
|
707
449
|
tokenSymbol?: string | undefined;
|
708
450
|
type?: string | undefined;
|
@@ -715,7 +457,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
715
457
|
parentCampaignId?: string | undefined;
|
716
458
|
creatorId?: string | undefined;
|
717
459
|
mainParameter?: string | undefined;
|
718
|
-
page?: number | undefined;
|
719
460
|
test?: boolean | undefined;
|
720
461
|
creatorTag?: string | undefined;
|
721
462
|
distributionChainIds?: number[] | undefined;
|
@@ -723,6 +464,8 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
723
464
|
withOpportunity?: boolean | undefined;
|
724
465
|
createdAfter?: Date | null | undefined;
|
725
466
|
excludeSubCampaigns?: boolean | undefined;
|
467
|
+
items: number;
|
468
|
+
page: number;
|
726
469
|
};
|
727
470
|
headers: unknown;
|
728
471
|
response: {
|
@@ -819,7 +562,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
819
562
|
status?: "NONE" | "PAST" | "LIVE" | "SOON" | undefined;
|
820
563
|
chainId?: number | undefined;
|
821
564
|
startTimestamp?: string | undefined;
|
822
|
-
items?: number | undefined;
|
823
565
|
point?: boolean | undefined;
|
824
566
|
tokenSymbol?: string | undefined;
|
825
567
|
type?: string | undefined;
|
@@ -832,7 +574,6 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
832
574
|
parentCampaignId?: string | undefined;
|
833
575
|
creatorId?: string | undefined;
|
834
576
|
mainParameter?: string | undefined;
|
835
|
-
page?: number | undefined;
|
836
577
|
test?: boolean | undefined;
|
837
578
|
creatorTag?: string | undefined;
|
838
579
|
distributionChainIds?: number[] | undefined;
|
@@ -840,6 +581,8 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
840
581
|
withOpportunity?: boolean | undefined;
|
841
582
|
createdAfter?: Date | null | undefined;
|
842
583
|
excludeSubCampaigns?: boolean | undefined;
|
584
|
+
items: number;
|
585
|
+
page: number;
|
843
586
|
};
|
844
587
|
headers: unknown;
|
845
588
|
response: {
|
@@ -863,7 +606,35 @@ export declare const CampaignController: Elysia<"/campaigns", {
|
|
863
606
|
get: {
|
864
607
|
body: unknown;
|
865
608
|
params: {};
|
866
|
-
query:
|
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
|
+
point?: boolean | undefined;
|
617
|
+
tokenSymbol?: string | undefined;
|
618
|
+
type?: string | undefined;
|
619
|
+
endTimestamp?: string | undefined;
|
620
|
+
opportunityId?: string | undefined;
|
621
|
+
creatorAddress?: string | undefined;
|
622
|
+
mainProtocolId?: string | undefined;
|
623
|
+
subType?: number | undefined;
|
624
|
+
rootCampaignId?: string | undefined;
|
625
|
+
parentCampaignId?: string | undefined;
|
626
|
+
creatorId?: string | undefined;
|
627
|
+
mainParameter?: string | undefined;
|
628
|
+
test?: boolean | undefined;
|
629
|
+
creatorTag?: string | undefined;
|
630
|
+
distributionChainIds?: number[] | undefined;
|
631
|
+
types?: string[] | undefined;
|
632
|
+
withOpportunity?: boolean | undefined;
|
633
|
+
createdAfter?: Date | null | undefined;
|
634
|
+
excludeSubCampaigns?: boolean | undefined;
|
635
|
+
items: number;
|
636
|
+
page: number;
|
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:
|
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
|
+
point?: boolean | undefined;
|
673
|
+
tokenSymbol?: string | undefined;
|
674
|
+
type?: string | undefined;
|
675
|
+
endTimestamp?: string | undefined;
|
676
|
+
opportunityId?: string | undefined;
|
677
|
+
creatorAddress?: string | undefined;
|
678
|
+
mainProtocolId?: string | undefined;
|
679
|
+
subType?: number | undefined;
|
680
|
+
rootCampaignId?: string | undefined;
|
681
|
+
parentCampaignId?: string | undefined;
|
682
|
+
creatorId?: string | undefined;
|
683
|
+
mainParameter?: string | undefined;
|
684
|
+
test?: boolean | undefined;
|
685
|
+
creatorTag?: string | undefined;
|
686
|
+
distributionChainIds?: number[] | undefined;
|
687
|
+
types?: string[] | undefined;
|
688
|
+
withOpportunity?: boolean | undefined;
|
689
|
+
createdAfter?: Date | null | undefined;
|
690
|
+
excludeSubCampaigns?: boolean | undefined;
|
691
|
+
items: number;
|
692
|
+
page: number;
|
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:
|
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
|
+
point?: boolean | undefined;
|
730
|
+
tokenSymbol?: string | undefined;
|
731
|
+
type?: string | undefined;
|
732
|
+
endTimestamp?: string | undefined;
|
733
|
+
opportunityId?: string | undefined;
|
734
|
+
creatorAddress?: string | undefined;
|
735
|
+
mainProtocolId?: string | undefined;
|
736
|
+
subType?: number | undefined;
|
737
|
+
rootCampaignId?: string | undefined;
|
738
|
+
parentCampaignId?: string | undefined;
|
739
|
+
creatorId?: string | undefined;
|
740
|
+
mainParameter?: string | undefined;
|
741
|
+
test?: boolean | undefined;
|
742
|
+
creatorTag?: string | undefined;
|
743
|
+
distributionChainIds?: number[] | undefined;
|
744
|
+
types?: string[] | undefined;
|
745
|
+
withOpportunity?: boolean | undefined;
|
746
|
+
createdAfter?: Date | null | undefined;
|
747
|
+
excludeSubCampaigns?: boolean | undefined;
|
748
|
+
items: number;
|
749
|
+
page: number;
|
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
|
}>;
|