@merkl/api 0.10.90 → 0.10.92
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/eden/index.d.ts +107 -0
- package/dist/src/index.d.ts +39 -0
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/helpers/tokenType.d.ts +2 -1
- package/dist/src/libs/campaigns/campaignTypes/ERC20SubTypes/subtypesPricesRefactoFinal.d.ts +1 -1
- package/dist/src/modules/v4/router.d.ts +39 -0
- package/dist/src/modules/v4/status/status.controller.d.ts +39 -0
- package/dist/src/modules/v4/status/status.model.d.ts +6 -1
- package/dist/src/modules/v4/status/status.repository.d.ts +24 -0
- package/dist/src/modules/v4/status/status.service.d.ts +25 -1
- package/dist/src/routes/v3/ERC20Campaigns.d.ts +39 -0
- package/dist/src/routes/v3/blacklist.d.ts +39 -0
- package/dist/src/routes/v3/campaigns.d.ts +39 -0
- package/dist/src/routes/v3/campaignsInfo.d.ts +39 -0
- package/dist/src/routes/v3/multiChainPositions.d.ts +39 -0
- package/dist/src/routes/v3/opportunity.d.ts +39 -0
- package/dist/src/routes/v3/positions.d.ts +39 -0
- package/dist/src/routes/v3/rewards.d.ts +39 -0
- package/dist/src/routes/v3/updates.d.ts +39 -0
- package/dist/src/routes/v3/userRewards.d.ts +39 -0
- package/dist/tsconfig.package.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/eden/index.d.ts
CHANGED
@@ -1466,6 +1466,40 @@ declare const eden: {
|
|
1466
1466
|
}[];
|
1467
1467
|
}>>;
|
1468
1468
|
};
|
1469
|
+
status: {
|
1470
|
+
get: (options: {
|
1471
|
+
headers?: Record<string, unknown> | undefined;
|
1472
|
+
query: {
|
1473
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1474
|
+
};
|
1475
|
+
fetch?: RequestInit | undefined;
|
1476
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
1477
|
+
200: ({
|
1478
|
+
Campaign: {
|
1479
|
+
id: string;
|
1480
|
+
computeChainId: number;
|
1481
|
+
distributionChainId: number;
|
1482
|
+
campaignId: string;
|
1483
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
1484
|
+
subType: number | null;
|
1485
|
+
rewardTokenId: string;
|
1486
|
+
amount: string;
|
1487
|
+
opportunityId: string;
|
1488
|
+
startTimestamp: bigint;
|
1489
|
+
endTimestamp: bigint;
|
1490
|
+
params: import("../../database/api/.generated").Prisma.JsonValue;
|
1491
|
+
creatorAddress: string;
|
1492
|
+
};
|
1493
|
+
} & {
|
1494
|
+
campaignId: string;
|
1495
|
+
computedUntil: bigint;
|
1496
|
+
processingStarted: bigint;
|
1497
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
1498
|
+
error: string;
|
1499
|
+
details: import("../../database/api/.generated").Prisma.JsonValue;
|
1500
|
+
})[];
|
1501
|
+
}>>;
|
1502
|
+
};
|
1469
1503
|
unique: {
|
1470
1504
|
get: (options: {
|
1471
1505
|
headers?: Record<string, unknown> | undefined;
|
@@ -3370,6 +3404,45 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
3370
3404
|
};
|
3371
3405
|
};
|
3372
3406
|
};
|
3407
|
+
} & {
|
3408
|
+
campaignStatus: {
|
3409
|
+
status: {
|
3410
|
+
get: {
|
3411
|
+
body: unknown;
|
3412
|
+
params: Record<never, string>;
|
3413
|
+
query: {
|
3414
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
3415
|
+
};
|
3416
|
+
headers: unknown;
|
3417
|
+
response: {
|
3418
|
+
200: ({
|
3419
|
+
Campaign: {
|
3420
|
+
id: string;
|
3421
|
+
computeChainId: number;
|
3422
|
+
distributionChainId: number;
|
3423
|
+
campaignId: string;
|
3424
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
3425
|
+
subType: number | null;
|
3426
|
+
rewardTokenId: string;
|
3427
|
+
amount: string;
|
3428
|
+
opportunityId: string;
|
3429
|
+
startTimestamp: bigint;
|
3430
|
+
endTimestamp: bigint;
|
3431
|
+
params: import("../../database/api/.generated").Prisma.JsonValue;
|
3432
|
+
creatorAddress: string;
|
3433
|
+
};
|
3434
|
+
} & {
|
3435
|
+
campaignId: string;
|
3436
|
+
computedUntil: bigint;
|
3437
|
+
processingStarted: bigint;
|
3438
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
3439
|
+
error: string;
|
3440
|
+
details: import("../../database/api/.generated").Prisma.JsonValue;
|
3441
|
+
})[];
|
3442
|
+
};
|
3443
|
+
};
|
3444
|
+
};
|
3445
|
+
};
|
3373
3446
|
} & {
|
3374
3447
|
campaignStatus: {
|
3375
3448
|
unique: {
|
@@ -4917,6 +4990,40 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
|
|
4917
4990
|
}[];
|
4918
4991
|
}>>;
|
4919
4992
|
};
|
4993
|
+
status: {
|
4994
|
+
get: (options: {
|
4995
|
+
headers?: Record<string, unknown> | undefined;
|
4996
|
+
query: {
|
4997
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
4998
|
+
};
|
4999
|
+
fetch?: RequestInit | undefined;
|
5000
|
+
}) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
|
5001
|
+
200: ({
|
5002
|
+
Campaign: {
|
5003
|
+
id: string;
|
5004
|
+
computeChainId: number;
|
5005
|
+
distributionChainId: number;
|
5006
|
+
campaignId: string;
|
5007
|
+
type: import("../../database/api/.generated").$Enums.CampaignType;
|
5008
|
+
subType: number | null;
|
5009
|
+
rewardTokenId: string;
|
5010
|
+
amount: string;
|
5011
|
+
opportunityId: string;
|
5012
|
+
startTimestamp: bigint;
|
5013
|
+
endTimestamp: bigint;
|
5014
|
+
params: import("../../database/api/.generated").Prisma.JsonValue;
|
5015
|
+
creatorAddress: string;
|
5016
|
+
};
|
5017
|
+
} & {
|
5018
|
+
campaignId: string;
|
5019
|
+
computedUntil: bigint;
|
5020
|
+
processingStarted: bigint;
|
5021
|
+
status: import("../../database/api/.generated").$Enums.RunStatus;
|
5022
|
+
error: string;
|
5023
|
+
details: import("../../database/api/.generated").Prisma.JsonValue;
|
5024
|
+
})[];
|
5025
|
+
}>>;
|
5026
|
+
};
|
4920
5027
|
unique: {
|
4921
5028
|
get: (options: {
|
4922
5029
|
headers?: Record<string, unknown> | undefined;
|
package/dist/src/index.d.ts
CHANGED
@@ -1841,6 +1841,45 @@ declare const app: Elysia<"", false, {
|
|
1841
1841
|
};
|
1842
1842
|
};
|
1843
1843
|
};
|
1844
|
+
} & {
|
1845
|
+
campaignStatus: {
|
1846
|
+
status: {
|
1847
|
+
get: {
|
1848
|
+
body: unknown;
|
1849
|
+
params: Record<never, string>;
|
1850
|
+
query: {
|
1851
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1852
|
+
};
|
1853
|
+
headers: unknown;
|
1854
|
+
response: {
|
1855
|
+
200: ({
|
1856
|
+
Campaign: {
|
1857
|
+
id: string;
|
1858
|
+
computeChainId: number;
|
1859
|
+
distributionChainId: number;
|
1860
|
+
campaignId: string;
|
1861
|
+
type: import("../database/api/.generated").$Enums.CampaignType;
|
1862
|
+
subType: number | null;
|
1863
|
+
rewardTokenId: string;
|
1864
|
+
amount: string;
|
1865
|
+
opportunityId: string;
|
1866
|
+
startTimestamp: bigint;
|
1867
|
+
endTimestamp: bigint;
|
1868
|
+
params: import("../database/api/.generated").Prisma.JsonValue;
|
1869
|
+
creatorAddress: string;
|
1870
|
+
};
|
1871
|
+
} & {
|
1872
|
+
campaignId: string;
|
1873
|
+
computedUntil: bigint;
|
1874
|
+
processingStarted: bigint;
|
1875
|
+
status: import("../database/api/.generated").$Enums.RunStatus;
|
1876
|
+
error: string;
|
1877
|
+
details: import("../database/api/.generated").Prisma.JsonValue;
|
1878
|
+
})[];
|
1879
|
+
};
|
1880
|
+
};
|
1881
|
+
};
|
1882
|
+
};
|
1844
1883
|
} & {
|
1845
1884
|
campaignStatus: {
|
1846
1885
|
unique: {
|
@@ -46,7 +46,8 @@ export declare enum tokenType {
|
|
46
46
|
zerolend_lending = "zerolend_lending",
|
47
47
|
ironclad_lending = "ironclad_lending",
|
48
48
|
ironclad_borrowing = "ironclad_borrowing",
|
49
|
-
pendle = "pendle"
|
49
|
+
pendle = "pendle",
|
50
|
+
ironcladStaking = "ironcladStaking"
|
50
51
|
}
|
51
52
|
export declare const tokenTypeToProtocol: {
|
52
53
|
[key in tokenType]: {
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { Pricer } from "../../../../utils/pricer";
|
2
2
|
import type { Campaign, CampaignParameters } from "@sdk";
|
3
|
-
import
|
3
|
+
import { tokenType, type tokenTypeStruct } from "./helpers/tokenType";
|
4
4
|
export declare function getTokenPricesInfo(index: number, type: tokenType, typeInfo: any, calls: string[], campaign: CampaignParameters<Campaign.ERC20> | CampaignParameters<Campaign.EULER>, pricer: Pricer): Promise<tokenTypeStruct>;
|
@@ -1823,6 +1823,45 @@ export declare const v4: Elysia<"/v4", false, {
|
|
1823
1823
|
};
|
1824
1824
|
};
|
1825
1825
|
};
|
1826
|
+
} & {
|
1827
|
+
campaignStatus: {
|
1828
|
+
status: {
|
1829
|
+
get: {
|
1830
|
+
body: unknown;
|
1831
|
+
params: Record<never, string>;
|
1832
|
+
query: {
|
1833
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1834
|
+
};
|
1835
|
+
headers: unknown;
|
1836
|
+
response: {
|
1837
|
+
200: ({
|
1838
|
+
Campaign: {
|
1839
|
+
id: string;
|
1840
|
+
computeChainId: number;
|
1841
|
+
distributionChainId: number;
|
1842
|
+
campaignId: string;
|
1843
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1844
|
+
subType: number | null;
|
1845
|
+
rewardTokenId: string;
|
1846
|
+
amount: string;
|
1847
|
+
opportunityId: string;
|
1848
|
+
startTimestamp: bigint;
|
1849
|
+
endTimestamp: bigint;
|
1850
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1851
|
+
creatorAddress: string;
|
1852
|
+
};
|
1853
|
+
} & {
|
1854
|
+
campaignId: string;
|
1855
|
+
computedUntil: bigint;
|
1856
|
+
processingStarted: bigint;
|
1857
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1858
|
+
error: string;
|
1859
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1860
|
+
})[];
|
1861
|
+
};
|
1862
|
+
};
|
1863
|
+
};
|
1864
|
+
};
|
1826
1865
|
} & {
|
1827
1866
|
campaignStatus: {
|
1828
1867
|
unique: {
|
@@ -64,6 +64,45 @@ export declare const StatusController: Elysia<"/campaignStatus", false, {
|
|
64
64
|
};
|
65
65
|
};
|
66
66
|
};
|
67
|
+
} & {
|
68
|
+
campaignStatus: {
|
69
|
+
status: {
|
70
|
+
get: {
|
71
|
+
body: unknown;
|
72
|
+
params: Record<never, string>;
|
73
|
+
query: {
|
74
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
75
|
+
};
|
76
|
+
headers: unknown;
|
77
|
+
response: {
|
78
|
+
200: ({
|
79
|
+
Campaign: {
|
80
|
+
id: string;
|
81
|
+
computeChainId: number;
|
82
|
+
distributionChainId: number;
|
83
|
+
campaignId: string;
|
84
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
85
|
+
subType: number | null;
|
86
|
+
rewardTokenId: string;
|
87
|
+
amount: string;
|
88
|
+
opportunityId: string;
|
89
|
+
startTimestamp: bigint;
|
90
|
+
endTimestamp: bigint;
|
91
|
+
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
92
|
+
creatorAddress: string;
|
93
|
+
};
|
94
|
+
} & {
|
95
|
+
campaignId: string;
|
96
|
+
computedUntil: bigint;
|
97
|
+
processingStarted: bigint;
|
98
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
99
|
+
error: string;
|
100
|
+
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
101
|
+
})[];
|
102
|
+
};
|
103
|
+
};
|
104
|
+
};
|
105
|
+
};
|
67
106
|
} & {
|
68
107
|
campaignStatus: {
|
69
108
|
unique: {
|
@@ -19,5 +19,10 @@ export declare const UpdateStatusDto: import("@sinclair/typebox").TObject<{
|
|
19
19
|
details: import("@sinclair/typebox").TString;
|
20
20
|
}>]>;
|
21
21
|
}>;
|
22
|
-
export declare const
|
22
|
+
export declare const RunStatusDto: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"SUCCESS">, import("@sinclair/typebox").TLiteral<"FAILED">, import("@sinclair/typebox").TLiteral<"PROCESSING">, import("@sinclair/typebox").TLiteral<"SKIPPED">]>;
|
23
|
+
export declare const RunStatusListDto: import("@sinclair/typebox").TObject<{
|
24
|
+
status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"SUCCESS">, import("@sinclair/typebox").TLiteral<"FAILED">, import("@sinclair/typebox").TLiteral<"PROCESSING">, import("@sinclair/typebox").TLiteral<"SKIPPED">]>>, import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"SUCCESS">, import("@sinclair/typebox").TLiteral<"FAILED">, import("@sinclair/typebox").TLiteral<"PROCESSING">, import("@sinclair/typebox").TLiteral<"SKIPPED">]>]>;
|
25
|
+
}>;
|
26
|
+
export type ChainModel = typeof ChainDto.static;
|
27
|
+
export type RunStatusListModel = typeof RunStatusListDto.static;
|
23
28
|
export type UpdateStatusModel = typeof UpdateStatusDto.static;
|
@@ -9,6 +9,30 @@ export declare class StatusRepository {
|
|
9
9
|
error: string;
|
10
10
|
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
11
11
|
}[]>;
|
12
|
+
static findManyByRunStatus(statuses: RunStatus[]): Promise<({
|
13
|
+
Campaign: {
|
14
|
+
id: string;
|
15
|
+
computeChainId: number;
|
16
|
+
distributionChainId: number;
|
17
|
+
campaignId: string;
|
18
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
19
|
+
subType: number | null;
|
20
|
+
rewardTokenId: string;
|
21
|
+
amount: string;
|
22
|
+
opportunityId: string;
|
23
|
+
startTimestamp: bigint;
|
24
|
+
endTimestamp: bigint;
|
25
|
+
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
26
|
+
creatorAddress: string;
|
27
|
+
};
|
28
|
+
} & {
|
29
|
+
campaignId: string;
|
30
|
+
computedUntil: bigint;
|
31
|
+
processingStarted: bigint;
|
32
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
33
|
+
error: string;
|
34
|
+
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
35
|
+
})[]>;
|
12
36
|
static findManyPerChain(chainId: number): Promise<{
|
13
37
|
campaignId: string;
|
14
38
|
computedUntil: bigint;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { type CampaignUnique } from "../campaign";
|
2
|
-
import type { UpdateStatusModel } from "./status.model";
|
2
|
+
import type { RunStatusListModel, UpdateStatusModel } from "./status.model";
|
3
3
|
export declare class StatusService {
|
4
4
|
static findMany(): Promise<{
|
5
5
|
campaignId: string;
|
@@ -9,6 +9,30 @@ export declare class StatusService {
|
|
9
9
|
error: string;
|
10
10
|
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
11
11
|
}[]>;
|
12
|
+
static findManyByRunStatus(x: RunStatusListModel): Promise<({
|
13
|
+
Campaign: {
|
14
|
+
id: string;
|
15
|
+
computeChainId: number;
|
16
|
+
distributionChainId: number;
|
17
|
+
campaignId: string;
|
18
|
+
type: import("../../../../database/api/.generated").$Enums.CampaignType;
|
19
|
+
subType: number | null;
|
20
|
+
rewardTokenId: string;
|
21
|
+
amount: string;
|
22
|
+
opportunityId: string;
|
23
|
+
startTimestamp: bigint;
|
24
|
+
endTimestamp: bigint;
|
25
|
+
params: import("../../../../database/api/.generated").Prisma.JsonValue;
|
26
|
+
creatorAddress: string;
|
27
|
+
};
|
28
|
+
} & {
|
29
|
+
campaignId: string;
|
30
|
+
computedUntil: bigint;
|
31
|
+
processingStarted: bigint;
|
32
|
+
status: import("../../../../database/api/.generated").$Enums.RunStatus;
|
33
|
+
error: string;
|
34
|
+
details: import("../../../../database/api/.generated").Prisma.JsonValue;
|
35
|
+
})[]>;
|
12
36
|
static findManyPerChain(chainId: number): Promise<{
|
13
37
|
campaignId: string;
|
14
38
|
computedUntil: bigint;
|
@@ -1849,6 +1849,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1849
1849
|
};
|
1850
1850
|
};
|
1851
1851
|
};
|
1852
|
+
} & {
|
1853
|
+
campaignStatus: {
|
1854
|
+
status: {
|
1855
|
+
get: {
|
1856
|
+
body: unknown;
|
1857
|
+
params: Record<never, string>;
|
1858
|
+
query: {
|
1859
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1860
|
+
};
|
1861
|
+
headers: unknown;
|
1862
|
+
response: {
|
1863
|
+
200: ({
|
1864
|
+
Campaign: {
|
1865
|
+
id: string;
|
1866
|
+
computeChainId: number;
|
1867
|
+
distributionChainId: number;
|
1868
|
+
campaignId: string;
|
1869
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1870
|
+
subType: number | null;
|
1871
|
+
rewardTokenId: string;
|
1872
|
+
amount: string;
|
1873
|
+
opportunityId: string;
|
1874
|
+
startTimestamp: bigint;
|
1875
|
+
endTimestamp: bigint;
|
1876
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1877
|
+
creatorAddress: string;
|
1878
|
+
};
|
1879
|
+
} & {
|
1880
|
+
campaignId: string;
|
1881
|
+
computedUntil: bigint;
|
1882
|
+
processingStarted: bigint;
|
1883
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1884
|
+
error: string;
|
1885
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1886
|
+
})[];
|
1887
|
+
};
|
1888
|
+
};
|
1889
|
+
};
|
1890
|
+
};
|
1852
1891
|
} & {
|
1853
1892
|
campaignStatus: {
|
1854
1893
|
unique: {
|
@@ -1847,6 +1847,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1847
1847
|
};
|
1848
1848
|
};
|
1849
1849
|
};
|
1850
|
+
} & {
|
1851
|
+
campaignStatus: {
|
1852
|
+
status: {
|
1853
|
+
get: {
|
1854
|
+
body: unknown;
|
1855
|
+
params: Record<never, string>;
|
1856
|
+
query: {
|
1857
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1858
|
+
};
|
1859
|
+
headers: unknown;
|
1860
|
+
response: {
|
1861
|
+
200: ({
|
1862
|
+
Campaign: {
|
1863
|
+
id: string;
|
1864
|
+
computeChainId: number;
|
1865
|
+
distributionChainId: number;
|
1866
|
+
campaignId: string;
|
1867
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1868
|
+
subType: number | null;
|
1869
|
+
rewardTokenId: string;
|
1870
|
+
amount: string;
|
1871
|
+
opportunityId: string;
|
1872
|
+
startTimestamp: bigint;
|
1873
|
+
endTimestamp: bigint;
|
1874
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1875
|
+
creatorAddress: string;
|
1876
|
+
};
|
1877
|
+
} & {
|
1878
|
+
campaignId: string;
|
1879
|
+
computedUntil: bigint;
|
1880
|
+
processingStarted: bigint;
|
1881
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1882
|
+
error: string;
|
1883
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1884
|
+
})[];
|
1885
|
+
};
|
1886
|
+
};
|
1887
|
+
};
|
1888
|
+
};
|
1850
1889
|
} & {
|
1851
1890
|
campaignStatus: {
|
1852
1891
|
unique: {
|
@@ -1850,6 +1850,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1850
1850
|
};
|
1851
1851
|
};
|
1852
1852
|
};
|
1853
|
+
} & {
|
1854
|
+
campaignStatus: {
|
1855
|
+
status: {
|
1856
|
+
get: {
|
1857
|
+
body: unknown;
|
1858
|
+
params: Record<never, string>;
|
1859
|
+
query: {
|
1860
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1861
|
+
};
|
1862
|
+
headers: unknown;
|
1863
|
+
response: {
|
1864
|
+
200: ({
|
1865
|
+
Campaign: {
|
1866
|
+
id: string;
|
1867
|
+
computeChainId: number;
|
1868
|
+
distributionChainId: number;
|
1869
|
+
campaignId: string;
|
1870
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1871
|
+
subType: number | null;
|
1872
|
+
rewardTokenId: string;
|
1873
|
+
amount: string;
|
1874
|
+
opportunityId: string;
|
1875
|
+
startTimestamp: bigint;
|
1876
|
+
endTimestamp: bigint;
|
1877
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1878
|
+
creatorAddress: string;
|
1879
|
+
};
|
1880
|
+
} & {
|
1881
|
+
campaignId: string;
|
1882
|
+
computedUntil: bigint;
|
1883
|
+
processingStarted: bigint;
|
1884
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1885
|
+
error: string;
|
1886
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1887
|
+
})[];
|
1888
|
+
};
|
1889
|
+
};
|
1890
|
+
};
|
1891
|
+
};
|
1853
1892
|
} & {
|
1854
1893
|
campaignStatus: {
|
1855
1894
|
unique: {
|
@@ -1841,6 +1841,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1841
1841
|
};
|
1842
1842
|
};
|
1843
1843
|
};
|
1844
|
+
} & {
|
1845
|
+
campaignStatus: {
|
1846
|
+
status: {
|
1847
|
+
get: {
|
1848
|
+
body: unknown;
|
1849
|
+
params: Record<never, string>;
|
1850
|
+
query: {
|
1851
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1852
|
+
};
|
1853
|
+
headers: unknown;
|
1854
|
+
response: {
|
1855
|
+
200: ({
|
1856
|
+
Campaign: {
|
1857
|
+
id: string;
|
1858
|
+
computeChainId: number;
|
1859
|
+
distributionChainId: number;
|
1860
|
+
campaignId: string;
|
1861
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1862
|
+
subType: number | null;
|
1863
|
+
rewardTokenId: string;
|
1864
|
+
amount: string;
|
1865
|
+
opportunityId: string;
|
1866
|
+
startTimestamp: bigint;
|
1867
|
+
endTimestamp: bigint;
|
1868
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1869
|
+
creatorAddress: string;
|
1870
|
+
};
|
1871
|
+
} & {
|
1872
|
+
campaignId: string;
|
1873
|
+
computedUntil: bigint;
|
1874
|
+
processingStarted: bigint;
|
1875
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1876
|
+
error: string;
|
1877
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1878
|
+
})[];
|
1879
|
+
};
|
1880
|
+
};
|
1881
|
+
};
|
1882
|
+
};
|
1844
1883
|
} & {
|
1845
1884
|
campaignStatus: {
|
1846
1885
|
unique: {
|
@@ -1846,6 +1846,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1846
1846
|
};
|
1847
1847
|
};
|
1848
1848
|
};
|
1849
|
+
} & {
|
1850
|
+
campaignStatus: {
|
1851
|
+
status: {
|
1852
|
+
get: {
|
1853
|
+
body: unknown;
|
1854
|
+
params: Record<never, string>;
|
1855
|
+
query: {
|
1856
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1857
|
+
};
|
1858
|
+
headers: unknown;
|
1859
|
+
response: {
|
1860
|
+
200: ({
|
1861
|
+
Campaign: {
|
1862
|
+
id: string;
|
1863
|
+
computeChainId: number;
|
1864
|
+
distributionChainId: number;
|
1865
|
+
campaignId: string;
|
1866
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1867
|
+
subType: number | null;
|
1868
|
+
rewardTokenId: string;
|
1869
|
+
amount: string;
|
1870
|
+
opportunityId: string;
|
1871
|
+
startTimestamp: bigint;
|
1872
|
+
endTimestamp: bigint;
|
1873
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1874
|
+
creatorAddress: string;
|
1875
|
+
};
|
1876
|
+
} & {
|
1877
|
+
campaignId: string;
|
1878
|
+
computedUntil: bigint;
|
1879
|
+
processingStarted: bigint;
|
1880
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1881
|
+
error: string;
|
1882
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1883
|
+
})[];
|
1884
|
+
};
|
1885
|
+
};
|
1886
|
+
};
|
1887
|
+
};
|
1849
1888
|
} & {
|
1850
1889
|
campaignStatus: {
|
1851
1890
|
unique: {
|
@@ -1864,6 +1864,45 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
|
|
1864
1864
|
};
|
1865
1865
|
};
|
1866
1866
|
};
|
1867
|
+
} & {
|
1868
|
+
campaignStatus: {
|
1869
|
+
status: {
|
1870
|
+
get: {
|
1871
|
+
body: unknown;
|
1872
|
+
params: Record<never, string>;
|
1873
|
+
query: {
|
1874
|
+
status: "PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED" | ("PROCESSING" | "SUCCESS" | "FAILED" | "SKIPPED")[];
|
1875
|
+
};
|
1876
|
+
headers: unknown;
|
1877
|
+
response: {
|
1878
|
+
200: ({
|
1879
|
+
Campaign: {
|
1880
|
+
id: string;
|
1881
|
+
computeChainId: number;
|
1882
|
+
distributionChainId: number;
|
1883
|
+
campaignId: string;
|
1884
|
+
type: import("../../../database/api/.generated").$Enums.CampaignType;
|
1885
|
+
subType: number | null;
|
1886
|
+
rewardTokenId: string;
|
1887
|
+
amount: string;
|
1888
|
+
opportunityId: string;
|
1889
|
+
startTimestamp: bigint;
|
1890
|
+
endTimestamp: bigint;
|
1891
|
+
params: import("../../../database/api/.generated").Prisma.JsonValue;
|
1892
|
+
creatorAddress: string;
|
1893
|
+
};
|
1894
|
+
} & {
|
1895
|
+
campaignId: string;
|
1896
|
+
computedUntil: bigint;
|
1897
|
+
processingStarted: bigint;
|
1898
|
+
status: import("../../../database/api/.generated").$Enums.RunStatus;
|
1899
|
+
error: string;
|
1900
|
+
details: import("../../../database/api/.generated").Prisma.JsonValue;
|
1901
|
+
})[];
|
1902
|
+
};
|
1903
|
+
};
|
1904
|
+
};
|
1905
|
+
};
|
1867
1906
|
} & {
|
1868
1907
|
campaignStatus: {
|
1869
1908
|
unique: {
|