@merkl/api 1.1.8 → 1.1.9

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.
@@ -2078,54 +2078,108 @@ declare const app: Elysia<"", {
2078
2078
  minimumApr?: number | undefined;
2079
2079
  maximumApr?: number | undefined;
2080
2080
  rewardTokenSymbol?: string | undefined;
2081
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2081
2082
  };
2082
2083
  headers: unknown;
2083
2084
  response: {
2084
- 200: string;
2085
- 422: {
2086
- type: "validation";
2087
- on: string;
2088
- summary?: string;
2089
- message?: string;
2090
- found?: unknown;
2091
- property?: string;
2092
- expected?: string;
2093
- };
2094
- } | {
2095
- 200: number;
2096
- 422: {
2097
- type: "validation";
2098
- on: string;
2099
- summary?: string;
2100
- message?: string;
2101
- found?: unknown;
2102
- property?: string;
2103
- expected?: string;
2104
- };
2105
- } | {
2106
- 200: false;
2107
- 422: {
2108
- type: "validation";
2109
- on: string;
2110
- summary?: string;
2111
- message?: string;
2112
- found?: unknown;
2113
- property?: string;
2114
- expected?: string;
2115
- };
2116
- } | {
2117
- 200: true;
2118
- 422: {
2119
- type: "validation";
2120
- on: string;
2121
- summary?: string;
2122
- message?: string;
2123
- found?: unknown;
2124
- property?: string;
2125
- expected?: string;
2126
- };
2127
- } | {
2128
- 200: object;
2085
+ [x: string]: any;
2086
+ 200: ({
2087
+ protocol?: {
2088
+ dailyRewards?: number | undefined;
2089
+ numberOfLiveCampaigns?: number | undefined;
2090
+ opportunityLiveTags?: string[] | undefined;
2091
+ name: string;
2092
+ description: string;
2093
+ id: string;
2094
+ url: string;
2095
+ icon: string;
2096
+ tags: string[];
2097
+ } | null | undefined;
2098
+ depositUrl?: string | undefined;
2099
+ aprRecord?: {
2100
+ timestamp: string | bigint;
2101
+ cumulated: number;
2102
+ breakdowns: {
2103
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2104
+ value: number;
2105
+ type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
2106
+ identifier: string;
2107
+ }[];
2108
+ } | undefined;
2109
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2110
+ explorerAddress?: string | undefined;
2111
+ tvlRecord?: {
2112
+ timestamp: string | bigint;
2113
+ total: number;
2114
+ breakdowns: {
2115
+ value: number;
2116
+ type: "TOKEN" | "PROTOCOL";
2117
+ identifier: string;
2118
+ }[];
2119
+ } | undefined;
2120
+ rewardsRecord?: {
2121
+ timestamp: string | bigint;
2122
+ total: number;
2123
+ breakdowns: {
2124
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2125
+ token: {
2126
+ price?: number | null | undefined;
2127
+ symbol: string;
2128
+ name: string | null;
2129
+ decimals: number;
2130
+ address: string;
2131
+ id: string;
2132
+ chainId: number;
2133
+ type: "TOKEN" | "PRETGE" | "POINT";
2134
+ icon: string;
2135
+ isNative: boolean;
2136
+ isTest: boolean;
2137
+ verified: boolean;
2138
+ };
2139
+ campaignId: string;
2140
+ value: number;
2141
+ amount: string | bigint;
2142
+ }[];
2143
+ } | undefined;
2144
+ name: string;
2145
+ apr: number;
2146
+ tokens: {
2147
+ price?: number | null | undefined;
2148
+ symbol: string;
2149
+ name: string | null;
2150
+ decimals: number;
2151
+ address: string;
2152
+ id: string;
2153
+ chainId: number;
2154
+ type: "TOKEN" | "PRETGE" | "POINT";
2155
+ icon: string;
2156
+ isNative: boolean;
2157
+ isTest: boolean;
2158
+ verified: boolean;
2159
+ }[];
2160
+ tvl: number;
2161
+ description: string;
2162
+ id: string;
2163
+ status: string;
2164
+ chainId: number;
2165
+ action: string;
2166
+ type: string;
2167
+ chain: {
2168
+ explorers?: {
2169
+ chainId: number;
2170
+ type: "ETHERSCAN" | "BLOCKSCOUT";
2171
+ url: string;
2172
+ }[] | undefined;
2173
+ name: string;
2174
+ id: number;
2175
+ icon: string;
2176
+ };
2177
+ identifier: string;
2178
+ howToSteps: string[];
2179
+ dailyRewards: number;
2180
+ tags: string[];
2181
+ lastCampaignCreatedAt: number;
2182
+ } | null)[];
2129
2183
  422: {
2130
2184
  type: "validation";
2131
2185
  on: string;
@@ -2136,8 +2190,103 @@ declare const app: Elysia<"", {
2136
2190
  expected?: string;
2137
2191
  };
2138
2192
  } | {
2139
- [x: string]: any;
2140
- 200: any;
2193
+ 200: ({
2194
+ protocol?: {
2195
+ dailyRewards?: number | undefined;
2196
+ numberOfLiveCampaigns?: number | undefined;
2197
+ opportunityLiveTags?: string[] | undefined;
2198
+ name: string;
2199
+ description: string;
2200
+ id: string;
2201
+ url: string;
2202
+ icon: string;
2203
+ tags: string[];
2204
+ } | null | undefined;
2205
+ depositUrl?: string | undefined;
2206
+ aprRecord?: {
2207
+ timestamp: string | bigint;
2208
+ cumulated: number;
2209
+ breakdowns: {
2210
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2211
+ value: number;
2212
+ type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
2213
+ identifier: string;
2214
+ }[];
2215
+ } | undefined;
2216
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2217
+ explorerAddress?: string | undefined;
2218
+ tvlRecord?: {
2219
+ timestamp: string | bigint;
2220
+ total: number;
2221
+ breakdowns: {
2222
+ value: number;
2223
+ type: "TOKEN" | "PROTOCOL";
2224
+ identifier: string;
2225
+ }[];
2226
+ } | undefined;
2227
+ rewardsRecord?: {
2228
+ timestamp: string | bigint;
2229
+ total: number;
2230
+ breakdowns: {
2231
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2232
+ token: {
2233
+ price?: number | null | undefined;
2234
+ symbol: string;
2235
+ name: string | null;
2236
+ decimals: number;
2237
+ address: string;
2238
+ id: string;
2239
+ chainId: number;
2240
+ type: "TOKEN" | "PRETGE" | "POINT";
2241
+ icon: string;
2242
+ isNative: boolean;
2243
+ isTest: boolean;
2244
+ verified: boolean;
2245
+ };
2246
+ campaignId: string;
2247
+ value: number;
2248
+ amount: string | bigint;
2249
+ }[];
2250
+ } | undefined;
2251
+ name: string;
2252
+ apr: number;
2253
+ tokens: {
2254
+ price?: number | null | undefined;
2255
+ symbol: string;
2256
+ name: string | null;
2257
+ decimals: number;
2258
+ address: string;
2259
+ id: string;
2260
+ chainId: number;
2261
+ type: "TOKEN" | "PRETGE" | "POINT";
2262
+ icon: string;
2263
+ isNative: boolean;
2264
+ isTest: boolean;
2265
+ verified: boolean;
2266
+ }[];
2267
+ tvl: number;
2268
+ description: string;
2269
+ id: string;
2270
+ status: string;
2271
+ chainId: number;
2272
+ action: string;
2273
+ type: string;
2274
+ chain: {
2275
+ explorers?: {
2276
+ chainId: number;
2277
+ type: "ETHERSCAN" | "BLOCKSCOUT";
2278
+ url: string;
2279
+ }[] | undefined;
2280
+ name: string;
2281
+ id: number;
2282
+ icon: string;
2283
+ };
2284
+ identifier: string;
2285
+ howToSteps: string[];
2286
+ dailyRewards: number;
2287
+ tags: string[];
2288
+ lastCampaignCreatedAt: number;
2289
+ } | null)[];
2141
2290
  422: {
2142
2291
  type: "validation";
2143
2292
  on: string;
@@ -2148,7 +2297,103 @@ declare const app: Elysia<"", {
2148
2297
  expected?: string;
2149
2298
  };
2150
2299
  } | {
2151
- 200: unknown;
2300
+ 200: ({
2301
+ protocol?: {
2302
+ dailyRewards?: number | undefined;
2303
+ numberOfLiveCampaigns?: number | undefined;
2304
+ opportunityLiveTags?: string[] | undefined;
2305
+ name: string;
2306
+ description: string;
2307
+ id: string;
2308
+ url: string;
2309
+ icon: string;
2310
+ tags: string[];
2311
+ } | null | undefined;
2312
+ depositUrl?: string | undefined;
2313
+ aprRecord?: {
2314
+ timestamp: string | bigint;
2315
+ cumulated: number;
2316
+ breakdowns: {
2317
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2318
+ value: number;
2319
+ type: "TOKEN" | "CAMPAIGN" | "PROTOCOL";
2320
+ identifier: string;
2321
+ }[];
2322
+ } | undefined;
2323
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2324
+ explorerAddress?: string | undefined;
2325
+ tvlRecord?: {
2326
+ timestamp: string | bigint;
2327
+ total: number;
2328
+ breakdowns: {
2329
+ value: number;
2330
+ type: "TOKEN" | "PROTOCOL";
2331
+ identifier: string;
2332
+ }[];
2333
+ } | undefined;
2334
+ rewardsRecord?: {
2335
+ timestamp: string | bigint;
2336
+ total: number;
2337
+ breakdowns: {
2338
+ 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" | "MAX_REWARD_VALUE_PER_LIQUIDITY_VALUE" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_VALUE" | "MAX_REWARD_VALUE_PER_LIQUIDITY_AMOUNT" | "MAX_REWARD_AMOUNT_PER_LIQUIDITY_AMOUNT" | undefined;
2339
+ token: {
2340
+ price?: number | null | undefined;
2341
+ symbol: string;
2342
+ name: string | null;
2343
+ decimals: number;
2344
+ address: string;
2345
+ id: string;
2346
+ chainId: number;
2347
+ type: "TOKEN" | "PRETGE" | "POINT";
2348
+ icon: string;
2349
+ isNative: boolean;
2350
+ isTest: boolean;
2351
+ verified: boolean;
2352
+ };
2353
+ campaignId: string;
2354
+ value: number;
2355
+ amount: string | bigint;
2356
+ }[];
2357
+ } | undefined;
2358
+ name: string;
2359
+ apr: number;
2360
+ tokens: {
2361
+ price?: number | null | undefined;
2362
+ symbol: string;
2363
+ name: string | null;
2364
+ decimals: number;
2365
+ address: string;
2366
+ id: string;
2367
+ chainId: number;
2368
+ type: "TOKEN" | "PRETGE" | "POINT";
2369
+ icon: string;
2370
+ isNative: boolean;
2371
+ isTest: boolean;
2372
+ verified: boolean;
2373
+ }[];
2374
+ tvl: number;
2375
+ description: string;
2376
+ id: string;
2377
+ status: string;
2378
+ chainId: number;
2379
+ action: string;
2380
+ type: string;
2381
+ chain: {
2382
+ explorers?: {
2383
+ chainId: number;
2384
+ type: "ETHERSCAN" | "BLOCKSCOUT";
2385
+ url: string;
2386
+ }[] | undefined;
2387
+ name: string;
2388
+ id: number;
2389
+ icon: string;
2390
+ };
2391
+ identifier: string;
2392
+ howToSteps: string[];
2393
+ dailyRewards: number;
2394
+ tags: string[];
2395
+ lastCampaignCreatedAt: number;
2396
+ } | null)[];
2152
2397
  422: {
2153
2398
  type: "validation";
2154
2399
  on: string;
@@ -2194,6 +2439,7 @@ declare const app: Elysia<"", {
2194
2439
  minimumApr?: number | undefined;
2195
2440
  maximumApr?: number | undefined;
2196
2441
  rewardTokenSymbol?: string | undefined;
2442
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2197
2443
  };
2198
2444
  headers: unknown;
2199
2445
  response: {
@@ -2245,6 +2491,7 @@ declare const app: Elysia<"", {
2245
2491
  minimumApr?: number | undefined;
2246
2492
  maximumApr?: number | undefined;
2247
2493
  rewardTokenSymbol?: string | undefined;
2494
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2248
2495
  };
2249
2496
  headers: unknown;
2250
2497
  response: {
@@ -2303,6 +2550,7 @@ declare const app: Elysia<"", {
2303
2550
  minimumApr?: number | undefined;
2304
2551
  maximumApr?: number | undefined;
2305
2552
  rewardTokenSymbol?: string | undefined;
2553
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2306
2554
  };
2307
2555
  headers: unknown;
2308
2556
  response: {
@@ -2363,6 +2611,7 @@ declare const app: Elysia<"", {
2363
2611
  minimumApr?: number | undefined;
2364
2612
  maximumApr?: number | undefined;
2365
2613
  rewardTokenSymbol?: string | undefined;
2614
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2366
2615
  };
2367
2616
  headers: unknown;
2368
2617
  response: {
@@ -2420,6 +2669,7 @@ declare const app: Elysia<"", {
2420
2669
  minimumApr?: number | undefined;
2421
2670
  maximumApr?: number | undefined;
2422
2671
  rewardTokenSymbol?: string | undefined;
2672
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2423
2673
  };
2424
2674
  headers: unknown;
2425
2675
  response: {
@@ -2478,6 +2728,7 @@ declare const app: Elysia<"", {
2478
2728
  minimumApr?: number | undefined;
2479
2729
  maximumApr?: number | undefined;
2480
2730
  rewardTokenSymbol?: string | undefined;
2731
+ distributionTypes?: ("DUTCH_AUCTION" | "FIX_REWARD" | "MAX_REWARD")[] | undefined;
2481
2732
  };
2482
2733
  headers: unknown;
2483
2734
  response: {
@@ -34,7 +34,6 @@ export declare const CampaignUniqueDto: import("@sinclair/typebox").TObject<{
34
34
  distributionChain: import("@sinclair/typebox").TNumber;
35
35
  campaignId: import("@sinclair/typebox").TString;
36
36
  }>;
37
- export declare const CampaignsDto: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
38
37
  export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
39
38
  id: import("@sinclair/typebox").TString;
40
39
  computeChainId: import("@sinclair/typebox").TNumber;
@@ -119,21 +118,6 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
119
118
  rootCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
120
119
  parentCampaignId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
121
120
  }>;
122
- export declare const TransactionDto: import("@sinclair/typebox").TObject<{
123
- hash: import("@sinclair/typebox").TString;
124
- chainId: import("@sinclair/typebox").TNumber;
125
- }>;
126
- export declare const TransactionParametersDto: import("@sinclair/typebox").TObject<{
127
- chainId: import("@sinclair/typebox").TNumber;
128
- data: import("@sinclair/typebox").TString;
129
- to: import("@sinclair/typebox").TString;
130
- from: import("@sinclair/typebox").TString;
131
- value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
132
- gas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
133
- maxFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
134
- maxPriorityFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
135
- nonce: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
136
- }>;
137
121
  export declare const CampaignConfigMinimal: import("@sinclair/typebox").TObject<{
138
122
  computeChainId: import("@sinclair/typebox").TNumber;
139
123
  params: import("@sinclair/typebox").TAny;
@@ -184,11 +168,6 @@ export declare const RemoveManualOverrideDto: import("@sinclair/typebox").TObjec
184
168
  readonly creatorAddress: "creatorAddress";
185
169
  }>;
186
170
  }>;
187
- export declare const UpdateMetaDataCampaignDto: import("@sinclair/typebox").TObject<{
188
- distributionChain: import("@sinclair/typebox").TNumber;
189
- campaignId: import("@sinclair/typebox").TString;
190
- url: import("@sinclair/typebox").TString;
191
- }>;
192
171
  export declare const FindCampaignDto: import("@sinclair/typebox").TObject<{
193
172
  id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
194
173
  creatorTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
@@ -236,13 +215,8 @@ export type UpdateCampaignModel = typeof UpdateCampaignDto.static & {
236
215
  id: string;
237
216
  };
238
217
  export type UpdateCampaignCreatorModel = typeof UpdateCampaignCreatorDto.static;
239
- export type UpdateMetaDataCampaignModel = typeof UpdateMetaDataCampaignDto.static & {
240
- url: string;
241
- };
242
- export type TransactionModel = typeof TransactionDto.static;
243
- export type TransactionParametersModel = typeof TransactionParametersDto.static;
244
218
  export type FindCampaignModel = typeof FindCampaignDto.static;
245
- export type findCampaignWithStatusModel = Partial<{
219
+ export type FindCampaignWithStatusModel = Partial<{
246
220
  computeChainId: number;
247
221
  distributionChainId: number;
248
222
  type: string;
@@ -1,6 +1,6 @@
1
1
  import { type ChainId } from "@angleprotocol/sdk/ts";
2
2
  import { type CampaignManualOverride } from "@package/databases/api";
3
- import type { Campaign, CampaignUnique, CampaignWithParams, FindCampaignModel, findCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
3
+ import type { Campaign, CampaignUnique, CampaignWithParams, FindCampaignModel, FindCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
4
4
  export declare abstract class CampaignRepository {
5
5
  #private;
6
6
  static transformQueryToPrismaFilters(query: Omit<FindCampaignModel, "page" | "items">): {
@@ -378,7 +378,7 @@ export declare abstract class CampaignRepository {
378
378
  *
379
379
  * @dev Excludes test campaigns
380
380
  */
381
- static getPastCampaigns(query?: findCampaignWithStatusModel): Promise<({
381
+ static getPastCampaigns(query?: FindCampaignWithStatusModel): Promise<({
382
382
  Opportunity: {
383
383
  name: string;
384
384
  apr: number;
@@ -428,7 +428,7 @@ export declare abstract class CampaignRepository {
428
428
  *
429
429
  * @dev Excludes test campaigns
430
430
  */
431
- static getFutureCampaigns(query?: findCampaignWithStatusModel): Promise<({
431
+ static getFutureCampaigns(query?: FindCampaignWithStatusModel): Promise<({
432
432
  Opportunity: {
433
433
  name: string;
434
434
  apr: number;
@@ -478,7 +478,7 @@ export declare abstract class CampaignRepository {
478
478
  *
479
479
  * @dev Excludes test campaigns
480
480
  */
481
- static getLiveCampaigns(query?: findCampaignWithStatusModel): Promise<({
481
+ static getLiveCampaigns(query?: FindCampaignWithStatusModel): Promise<({
482
482
  Opportunity: {
483
483
  name: string;
484
484
  apr: number;
@@ -557,7 +557,7 @@ export declare abstract class CampaignRepository {
557
557
  rootCampaignId: string | null;
558
558
  parentCampaignId: string | null;
559
559
  })[]>;
560
- static countLives(query?: findCampaignWithStatusModel, includeSubCampaigns?: boolean): Promise<number>;
560
+ static countLives(query?: FindCampaignWithStatusModel, includeSubCampaigns?: boolean): Promise<number>;
561
561
  /**
562
562
  * Upserts a campaign in the database. If the campaign already exists, it updates the existing record;
563
563
  * otherwise, it creates a new one.
@@ -1,6 +1,7 @@
1
1
  import { type CampaignParameters, Campaign as CampaignType, type ChainId, type OnChainCampaignDto } from "@angleprotocol/sdk/ts";
2
2
  import type { CampaignManualOverride } from "@package/databases/api";
3
- import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, FindCampaignModel, TransactionModel, UpdateCampaignCreatorModel, UpdateCampaignModel, findCampaignWithStatusModel } from "../../../modules/v4/campaign/campaign.model";
3
+ import type { CampaignConfigMinimalModel, CampaignUnique, CampaignWithParams, CreateCampaignModel, FindCampaignModel, FindCampaignWithStatusModel, UpdateCampaignCreatorModel, UpdateCampaignModel } from "../../../modules/v4/campaign/campaign.model";
4
+ import type { TransactionModel } from "../../../modules/v4/transaction/transaction.model";
4
5
  import type { FindCampaignComputedValueModel } from "../computedValue/computedValue.model";
5
6
  import { CampaignFormatter } from "./campaign.formatter";
6
7
  export declare abstract class CampaignService {
@@ -47,7 +48,7 @@ export declare abstract class CampaignService {
47
48
  } | undefined;
48
49
  };
49
50
  static splitIdOrThrow(chainAndCampaignId: `${number}-${string}` | string): CampaignUnique;
50
- static getPastCampaigns(query?: findCampaignWithStatusModel): Promise<({
51
+ static getPastCampaigns(query?: FindCampaignWithStatusModel): Promise<({
51
52
  Opportunity: {
52
53
  name: string;
53
54
  apr: number;
@@ -89,7 +90,7 @@ export declare abstract class CampaignService {
89
90
  rootCampaignId: string | null;
90
91
  parentCampaignId: string | null;
91
92
  })[]>;
92
- static getFutureCampaigns(query?: findCampaignWithStatusModel): Promise<({
93
+ static getFutureCampaigns(query?: FindCampaignWithStatusModel): Promise<({
93
94
  Opportunity: {
94
95
  name: string;
95
96
  apr: number;
@@ -131,7 +132,7 @@ export declare abstract class CampaignService {
131
132
  rootCampaignId: string | null;
132
133
  parentCampaignId: string | null;
133
134
  })[]>;
134
- static getLiveCampaigns(query?: findCampaignWithStatusModel): Promise<({
135
+ static getLiveCampaigns(query?: FindCampaignWithStatusModel): Promise<({
135
136
  Opportunity: {
136
137
  name: string;
137
138
  apr: number;
@@ -210,7 +211,7 @@ export declare abstract class CampaignService {
210
211
  rootCampaignId: string | null;
211
212
  parentCampaignId: string | null;
212
213
  })[]>;
213
- static countLives(query?: findCampaignWithStatusModel): Promise<number>;
214
+ static countLives(query?: FindCampaignWithStatusModel): Promise<number>;
214
215
  static create(body: Omit<CreateCampaignModel, "id">, dryRun?: boolean): Promise<Omit<CampaignWithParams, "manualOverrides"> | {
215
216
  id: string;
216
217
  chainId: number;