@merkl/api 1.0.95 → 1.0.96

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.
@@ -1516,6 +1516,7 @@ declare const app: Elysia<"", {
1516
1516
  creatorTag?: string | undefined;
1517
1517
  distributionChainIds?: number[] | undefined;
1518
1518
  types?: string[] | undefined;
1519
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
1519
1520
  withOpportunity?: boolean | undefined;
1520
1521
  createdAfter?: Date | null | undefined;
1521
1522
  excludeSubCampaigns?: boolean | undefined;
@@ -1569,6 +1570,7 @@ declare const app: Elysia<"", {
1569
1570
  address: string;
1570
1571
  id: string;
1571
1572
  chainId: number;
1573
+ type: "TOKEN" | "PRETGE" | "POINT";
1572
1574
  icon: string;
1573
1575
  isNative: boolean;
1574
1576
  isPoint: boolean;
@@ -1591,6 +1593,7 @@ declare const app: Elysia<"", {
1591
1593
  address: string;
1592
1594
  id: string;
1593
1595
  chainId: number;
1596
+ type: "TOKEN" | "PRETGE" | "POINT";
1594
1597
  icon: string;
1595
1598
  isNative: boolean;
1596
1599
  isPoint: boolean;
@@ -1638,6 +1641,7 @@ declare const app: Elysia<"", {
1638
1641
  address: string;
1639
1642
  id: string;
1640
1643
  chainId: number;
1644
+ type: "TOKEN" | "PRETGE" | "POINT";
1641
1645
  icon: string;
1642
1646
  isNative: boolean;
1643
1647
  isPoint: boolean;
@@ -1720,6 +1724,7 @@ declare const app: Elysia<"", {
1720
1724
  campaigns?: boolean | undefined;
1721
1725
  point?: boolean | undefined;
1722
1726
  test?: boolean | undefined;
1727
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
1723
1728
  excludeSubCampaigns?: boolean | undefined;
1724
1729
  };
1725
1730
  headers: unknown;
@@ -1771,6 +1776,7 @@ declare const app: Elysia<"", {
1771
1776
  address: string;
1772
1777
  id: string;
1773
1778
  chainId: number;
1779
+ type: "TOKEN" | "PRETGE" | "POINT";
1774
1780
  icon: string;
1775
1781
  isNative: boolean;
1776
1782
  isPoint: boolean;
@@ -1793,6 +1799,7 @@ declare const app: Elysia<"", {
1793
1799
  address: string;
1794
1800
  id: string;
1795
1801
  chainId: number;
1802
+ type: "TOKEN" | "PRETGE" | "POINT";
1796
1803
  icon: string;
1797
1804
  isNative: boolean;
1798
1805
  isPoint: boolean;
@@ -1858,6 +1865,7 @@ declare const app: Elysia<"", {
1858
1865
  campaigns?: boolean | undefined;
1859
1866
  point?: boolean | undefined;
1860
1867
  test?: boolean | undefined;
1868
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
1861
1869
  excludeSubCampaigns?: boolean | undefined;
1862
1870
  };
1863
1871
  headers: unknown;
@@ -1909,6 +1917,7 @@ declare const app: Elysia<"", {
1909
1917
  address: string;
1910
1918
  id: string;
1911
1919
  chainId: number;
1920
+ type: "TOKEN" | "PRETGE" | "POINT";
1912
1921
  icon: string;
1913
1922
  isNative: boolean;
1914
1923
  isPoint: boolean;
@@ -1931,6 +1940,7 @@ declare const app: Elysia<"", {
1931
1940
  address: string;
1932
1941
  id: string;
1933
1942
  chainId: number;
1943
+ type: "TOKEN" | "PRETGE" | "POINT";
1934
1944
  icon: string;
1935
1945
  isNative: boolean;
1936
1946
  isPoint: boolean;
@@ -1978,6 +1988,7 @@ declare const app: Elysia<"", {
1978
1988
  address: string;
1979
1989
  id: string;
1980
1990
  chainId: number;
1991
+ type: "TOKEN" | "PRETGE" | "POINT";
1981
1992
  icon: string;
1982
1993
  isNative: boolean;
1983
1994
  isPoint: boolean;
@@ -2074,6 +2085,7 @@ declare const app: Elysia<"", {
2074
2085
  tags?: string | undefined;
2075
2086
  test?: boolean | undefined;
2076
2087
  page?: number | undefined;
2088
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2077
2089
  excludeSubCampaigns?: boolean | undefined;
2078
2090
  minimumTvl?: number | undefined;
2079
2091
  maximumTvl?: number | undefined;
@@ -2130,6 +2142,7 @@ declare const app: Elysia<"", {
2130
2142
  address: string;
2131
2143
  id: string;
2132
2144
  chainId: number;
2145
+ type: "TOKEN" | "PRETGE" | "POINT";
2133
2146
  icon: string;
2134
2147
  isNative: boolean;
2135
2148
  isPoint: boolean;
@@ -2152,6 +2165,7 @@ declare const app: Elysia<"", {
2152
2165
  address: string;
2153
2166
  id: string;
2154
2167
  chainId: number;
2168
+ type: "TOKEN" | "PRETGE" | "POINT";
2155
2169
  icon: string;
2156
2170
  isNative: boolean;
2157
2171
  isPoint: boolean;
@@ -2220,6 +2234,7 @@ declare const app: Elysia<"", {
2220
2234
  tags?: string | undefined;
2221
2235
  test?: boolean | undefined;
2222
2236
  page?: number | undefined;
2237
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2223
2238
  excludeSubCampaigns?: boolean | undefined;
2224
2239
  minimumTvl?: number | undefined;
2225
2240
  maximumTvl?: number | undefined;
@@ -2270,6 +2285,7 @@ declare const app: Elysia<"", {
2270
2285
  tags?: string | undefined;
2271
2286
  test?: boolean | undefined;
2272
2287
  page?: number | undefined;
2288
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2273
2289
  excludeSubCampaigns?: boolean | undefined;
2274
2290
  minimumTvl?: number | undefined;
2275
2291
  maximumTvl?: number | undefined;
@@ -2327,6 +2343,7 @@ declare const app: Elysia<"", {
2327
2343
  tags?: string | undefined;
2328
2344
  test?: boolean | undefined;
2329
2345
  page?: number | undefined;
2346
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2330
2347
  excludeSubCampaigns?: boolean | undefined;
2331
2348
  minimumTvl?: number | undefined;
2332
2349
  maximumTvl?: number | undefined;
@@ -2386,6 +2403,7 @@ declare const app: Elysia<"", {
2386
2403
  tags?: string | undefined;
2387
2404
  test?: boolean | undefined;
2388
2405
  page?: number | undefined;
2406
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2389
2407
  excludeSubCampaigns?: boolean | undefined;
2390
2408
  minimumTvl?: number | undefined;
2391
2409
  maximumTvl?: number | undefined;
@@ -2442,6 +2460,7 @@ declare const app: Elysia<"", {
2442
2460
  tags?: string | undefined;
2443
2461
  test?: boolean | undefined;
2444
2462
  page?: number | undefined;
2463
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2445
2464
  excludeSubCampaigns?: boolean | undefined;
2446
2465
  minimumTvl?: number | undefined;
2447
2466
  maximumTvl?: number | undefined;
@@ -2499,6 +2518,7 @@ declare const app: Elysia<"", {
2499
2518
  tags?: string | undefined;
2500
2519
  test?: boolean | undefined;
2501
2520
  page?: number | undefined;
2521
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
2502
2522
  excludeSubCampaigns?: boolean | undefined;
2503
2523
  minimumTvl?: number | undefined;
2504
2524
  maximumTvl?: number | undefined;
@@ -3020,6 +3040,7 @@ declare const app: Elysia<"", {
3020
3040
  address: string;
3021
3041
  id: string;
3022
3042
  chainId: number;
3043
+ type: "TOKEN" | "PRETGE" | "POINT";
3023
3044
  icon: string;
3024
3045
  isNative: boolean;
3025
3046
  isPoint: boolean;
@@ -3270,6 +3291,7 @@ declare const app: Elysia<"", {
3270
3291
  creatorTag?: string | undefined;
3271
3292
  distributionChainIds?: number[] | undefined;
3272
3293
  types?: string[] | undefined;
3294
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3273
3295
  withOpportunity?: boolean | undefined;
3274
3296
  createdAfter?: Date | null | undefined;
3275
3297
  excludeSubCampaigns?: boolean | undefined;
@@ -3311,6 +3333,7 @@ declare const app: Elysia<"", {
3311
3333
  address: string;
3312
3334
  id: string;
3313
3335
  chainId: number;
3336
+ type: "TOKEN" | "PRETGE" | "POINT";
3314
3337
  icon: string;
3315
3338
  isNative: boolean;
3316
3339
  isPoint: boolean;
@@ -3382,6 +3405,7 @@ declare const app: Elysia<"", {
3382
3405
  creatorTag?: string | undefined;
3383
3406
  distributionChainIds?: number[] | undefined;
3384
3407
  types?: string[] | undefined;
3408
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3385
3409
  withOpportunity?: boolean | undefined;
3386
3410
  createdAfter?: Date | null | undefined;
3387
3411
  excludeSubCampaigns?: boolean | undefined;
@@ -3432,6 +3456,7 @@ declare const app: Elysia<"", {
3432
3456
  creatorTag?: string | undefined;
3433
3457
  distributionChainIds?: number[] | undefined;
3434
3458
  types?: string[] | undefined;
3459
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3435
3460
  withOpportunity?: boolean | undefined;
3436
3461
  createdAfter?: Date | null | undefined;
3437
3462
  excludeSubCampaigns?: boolean | undefined;
@@ -3487,6 +3512,7 @@ declare const app: Elysia<"", {
3487
3512
  creatorTag?: string | undefined;
3488
3513
  distributionChainIds?: number[] | undefined;
3489
3514
  types?: string[] | undefined;
3515
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3490
3516
  withOpportunity?: boolean | undefined;
3491
3517
  createdAfter?: Date | null | undefined;
3492
3518
  excludeSubCampaigns?: boolean | undefined;
@@ -3545,6 +3571,7 @@ declare const app: Elysia<"", {
3545
3571
  creatorTag?: string | undefined;
3546
3572
  distributionChainIds?: number[] | undefined;
3547
3573
  types?: string[] | undefined;
3574
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3548
3575
  withOpportunity?: boolean | undefined;
3549
3576
  createdAfter?: Date | null | undefined;
3550
3577
  excludeSubCampaigns?: boolean | undefined;
@@ -3600,6 +3627,7 @@ declare const app: Elysia<"", {
3600
3627
  creatorTag?: string | undefined;
3601
3628
  distributionChainIds?: number[] | undefined;
3602
3629
  types?: string[] | undefined;
3630
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3603
3631
  withOpportunity?: boolean | undefined;
3604
3632
  createdAfter?: Date | null | undefined;
3605
3633
  excludeSubCampaigns?: boolean | undefined;
@@ -3655,6 +3683,7 @@ declare const app: Elysia<"", {
3655
3683
  creatorTag?: string | undefined;
3656
3684
  distributionChainIds?: number[] | undefined;
3657
3685
  types?: string[] | undefined;
3686
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3658
3687
  withOpportunity?: boolean | undefined;
3659
3688
  createdAfter?: Date | null | undefined;
3660
3689
  excludeSubCampaigns?: boolean | undefined;
@@ -3709,6 +3738,7 @@ declare const app: Elysia<"", {
3709
3738
  creatorTag?: string | undefined;
3710
3739
  distributionChainIds?: number[] | undefined;
3711
3740
  types?: string[] | undefined;
3741
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3712
3742
  withOpportunity?: boolean | undefined;
3713
3743
  createdAfter?: Date | null | undefined;
3714
3744
  excludeSubCampaigns?: boolean | undefined;
@@ -3762,6 +3792,7 @@ declare const app: Elysia<"", {
3762
3792
  creatorTag?: string | undefined;
3763
3793
  distributionChainIds?: number[] | undefined;
3764
3794
  types?: string[] | undefined;
3795
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
3765
3796
  withOpportunity?: boolean | undefined;
3766
3797
  createdAfter?: Date | null | undefined;
3767
3798
  excludeSubCampaigns?: boolean | undefined;
@@ -4943,7 +4974,7 @@ declare const app: Elysia<"", {
4943
4974
  } & {
4944
4975
  post: {
4945
4976
  body: {
4946
- isPreTGE?: boolean | undefined;
4977
+ type?: "TOKEN" | "PRETGE" | "POINT" | undefined;
4947
4978
  isTest?: boolean | undefined;
4948
4979
  address: string;
4949
4980
  chainId: number;
@@ -4989,6 +5020,7 @@ declare const app: Elysia<"", {
4989
5020
  patch: {
4990
5021
  body: {
4991
5022
  name?: string | undefined;
5023
+ type?: "TOKEN" | "PRETGE" | "POINT" | undefined;
4992
5024
  icon?: string | undefined;
4993
5025
  isPoint?: boolean | undefined;
4994
5026
  isPreTGE?: boolean | undefined;
@@ -196,6 +196,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
196
196
  address: string;
197
197
  id: string;
198
198
  chainId: number;
199
+ type: "TOKEN" | "PRETGE" | "POINT";
199
200
  icon: string;
200
201
  isNative: boolean;
201
202
  isPoint: boolean;
@@ -446,6 +447,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
446
447
  creatorTag?: string | undefined;
447
448
  distributionChainIds?: number[] | undefined;
448
449
  types?: string[] | undefined;
450
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
449
451
  withOpportunity?: boolean | undefined;
450
452
  createdAfter?: Date | null | undefined;
451
453
  excludeSubCampaigns?: boolean | undefined;
@@ -487,6 +489,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
487
489
  address: string;
488
490
  id: string;
489
491
  chainId: number;
492
+ type: "TOKEN" | "PRETGE" | "POINT";
490
493
  icon: string;
491
494
  isNative: boolean;
492
495
  isPoint: boolean;
@@ -558,6 +561,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
558
561
  creatorTag?: string | undefined;
559
562
  distributionChainIds?: number[] | undefined;
560
563
  types?: string[] | undefined;
564
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
561
565
  withOpportunity?: boolean | undefined;
562
566
  createdAfter?: Date | null | undefined;
563
567
  excludeSubCampaigns?: boolean | undefined;
@@ -608,6 +612,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
608
612
  creatorTag?: string | undefined;
609
613
  distributionChainIds?: number[] | undefined;
610
614
  types?: string[] | undefined;
615
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
611
616
  withOpportunity?: boolean | undefined;
612
617
  createdAfter?: Date | null | undefined;
613
618
  excludeSubCampaigns?: boolean | undefined;
@@ -663,6 +668,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
663
668
  creatorTag?: string | undefined;
664
669
  distributionChainIds?: number[] | undefined;
665
670
  types?: string[] | undefined;
671
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
666
672
  withOpportunity?: boolean | undefined;
667
673
  createdAfter?: Date | null | undefined;
668
674
  excludeSubCampaigns?: boolean | undefined;
@@ -721,6 +727,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
721
727
  creatorTag?: string | undefined;
722
728
  distributionChainIds?: number[] | undefined;
723
729
  types?: string[] | undefined;
730
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
724
731
  withOpportunity?: boolean | undefined;
725
732
  createdAfter?: Date | null | undefined;
726
733
  excludeSubCampaigns?: boolean | undefined;
@@ -776,6 +783,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
776
783
  creatorTag?: string | undefined;
777
784
  distributionChainIds?: number[] | undefined;
778
785
  types?: string[] | undefined;
786
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
779
787
  withOpportunity?: boolean | undefined;
780
788
  createdAfter?: Date | null | undefined;
781
789
  excludeSubCampaigns?: boolean | undefined;
@@ -831,6 +839,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
831
839
  creatorTag?: string | undefined;
832
840
  distributionChainIds?: number[] | undefined;
833
841
  types?: string[] | undefined;
842
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
834
843
  withOpportunity?: boolean | undefined;
835
844
  createdAfter?: Date | null | undefined;
836
845
  excludeSubCampaigns?: boolean | undefined;
@@ -885,6 +894,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
885
894
  creatorTag?: string | undefined;
886
895
  distributionChainIds?: number[] | undefined;
887
896
  types?: string[] | undefined;
897
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
888
898
  withOpportunity?: boolean | undefined;
889
899
  createdAfter?: Date | null | undefined;
890
900
  excludeSubCampaigns?: boolean | undefined;
@@ -938,6 +948,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
938
948
  creatorTag?: string | undefined;
939
949
  distributionChainIds?: number[] | undefined;
940
950
  types?: string[] | undefined;
951
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
941
952
  withOpportunity?: boolean | undefined;
942
953
  createdAfter?: Date | null | undefined;
943
954
  excludeSubCampaigns?: boolean | undefined;
@@ -998,6 +1009,7 @@ export declare const CampaignController: Elysia<"/campaigns", {
998
1009
  creatorTag?: string | undefined;
999
1010
  distributionChainIds?: number[] | undefined;
1000
1011
  types?: string[] | undefined;
1012
+ tokenTypes?: ("TOKEN" | "PRETGE" | "POINT")[] | undefined;
1001
1013
  withOpportunity?: boolean | undefined;
1002
1014
  createdAfter?: Date | null | undefined;
1003
1015
  excludeSubCampaigns?: boolean | undefined;
@@ -80,6 +80,11 @@ export declare const CampaignResourceDto: import("@sinclair/typebox").TObject<{
80
80
  isPreTGE: import("@sinclair/typebox").TBoolean;
81
81
  price: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TNull]>>;
82
82
  symbol: import("@sinclair/typebox").TString;
83
+ type: import("@sinclair/typebox").TEnum<{
84
+ readonly TOKEN: "TOKEN";
85
+ readonly PRETGE: "PRETGE";
86
+ readonly POINT: "POINT";
87
+ }>;
83
88
  }>;
84
89
  distributionChain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
85
90
  id: import("@sinclair/typebox").TNumber;
@@ -186,6 +191,11 @@ export declare const FindCampaignDto: import("@sinclair/typebox").TObject<{
186
191
  tokenSymbol: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
187
192
  tokenAddress: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
188
193
  test: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
194
+ tokenTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TEnum<{
195
+ readonly TOKEN: "TOKEN";
196
+ readonly PRETGE: "PRETGE";
197
+ readonly POINT: "POINT";
198
+ }>>>;
189
199
  point: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
190
200
  opportunityId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
191
201
  status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
@@ -5,30 +5,6 @@ export declare abstract class CampaignRepository {
5
5
  #private;
6
6
  static transformQueryToPrismaFilters(query: Omit<FindCampaignModel, "page" | "items">): {
7
7
  where: {
8
- createdAt: {
9
- gte: Date;
10
- } | undefined;
11
- rootCampaignId: {
12
- equals: string;
13
- mode: "insensitive";
14
- } | {
15
- equals: null;
16
- mode?: undefined;
17
- } | undefined;
18
- parentCampaignId: {
19
- equals: string;
20
- mode: "insensitive";
21
- } | undefined;
22
- endTimestamp: {
23
- gt: number;
24
- lt?: undefined;
25
- gte?: undefined;
26
- };
27
- startTimestamp: {
28
- lte: number;
29
- gt?: undefined;
30
- gte?: undefined;
31
- };
32
8
  OR: {
33
9
  id: string;
34
10
  }[] | undefined;
@@ -65,7 +41,9 @@ export declare abstract class CampaignRepository {
65
41
  symbol?: undefined;
66
42
  })[] | undefined;
67
43
  isTest: false | undefined;
68
- isPoint: boolean | undefined;
44
+ type: {
45
+ in: import("@package/databases").TokenType[];
46
+ } | undefined;
69
47
  };
70
48
  };
71
49
  Creator: {
@@ -95,7 +73,6 @@ export declare abstract class CampaignRepository {
95
73
  OR?: undefined;
96
74
  Creator?: undefined;
97
75
  } | undefined;
98
- } | {
99
76
  createdAt: {
100
77
  gte: Date;
101
78
  } | undefined;
@@ -111,11 +88,16 @@ export declare abstract class CampaignRepository {
111
88
  mode: "insensitive";
112
89
  } | undefined;
113
90
  endTimestamp: {
114
- lt: number;
91
+ gt: number;
92
+ lt?: undefined;
93
+ gte?: undefined;
94
+ };
95
+ startTimestamp: {
96
+ lte: number;
115
97
  gt?: undefined;
116
98
  gte?: undefined;
117
99
  };
118
- startTimestamp?: undefined;
100
+ } | {
119
101
  OR: {
120
102
  id: string;
121
103
  }[] | undefined;
@@ -152,7 +134,9 @@ export declare abstract class CampaignRepository {
152
134
  symbol?: undefined;
153
135
  })[] | undefined;
154
136
  isTest: false | undefined;
155
- isPoint: boolean | undefined;
137
+ type: {
138
+ in: import("@package/databases").TokenType[];
139
+ } | undefined;
156
140
  };
157
141
  };
158
142
  Creator: {
@@ -182,7 +166,6 @@ export declare abstract class CampaignRepository {
182
166
  OR?: undefined;
183
167
  Creator?: undefined;
184
168
  } | undefined;
185
- } | {
186
169
  createdAt: {
187
170
  gte: Date;
188
171
  } | undefined;
@@ -197,12 +180,13 @@ export declare abstract class CampaignRepository {
197
180
  equals: string;
198
181
  mode: "insensitive";
199
182
  } | undefined;
200
- startTimestamp: {
201
- gt: number;
202
- lte?: undefined;
183
+ endTimestamp: {
184
+ lt: number;
185
+ gt?: undefined;
203
186
  gte?: undefined;
204
187
  };
205
- endTimestamp?: undefined;
188
+ startTimestamp?: undefined;
189
+ } | {
206
190
  OR: {
207
191
  id: string;
208
192
  }[] | undefined;
@@ -239,7 +223,9 @@ export declare abstract class CampaignRepository {
239
223
  symbol?: undefined;
240
224
  })[] | undefined;
241
225
  isTest: false | undefined;
242
- isPoint: boolean | undefined;
226
+ type: {
227
+ in: import("@package/databases").TokenType[];
228
+ } | undefined;
243
229
  };
244
230
  };
245
231
  Creator: {
@@ -269,7 +255,6 @@ export declare abstract class CampaignRepository {
269
255
  OR?: undefined;
270
256
  Creator?: undefined;
271
257
  } | undefined;
272
- } | {
273
258
  createdAt: {
274
259
  gte: Date;
275
260
  } | undefined;
@@ -284,16 +269,13 @@ export declare abstract class CampaignRepository {
284
269
  equals: string;
285
270
  mode: "insensitive";
286
271
  } | undefined;
287
- endTimestamp: {
288
- gte: number;
289
- gt?: undefined;
290
- lt?: undefined;
291
- } | undefined;
292
272
  startTimestamp: {
293
- gte: number;
273
+ gt: number;
294
274
  lte?: undefined;
295
- gt?: undefined;
296
- } | undefined;
275
+ gte?: undefined;
276
+ };
277
+ endTimestamp?: undefined;
278
+ } | {
297
279
  OR: {
298
280
  id: string;
299
281
  }[] | undefined;
@@ -330,7 +312,9 @@ export declare abstract class CampaignRepository {
330
312
  symbol?: undefined;
331
313
  })[] | undefined;
332
314
  isTest: false | undefined;
333
- isPoint: boolean | undefined;
315
+ type: {
316
+ in: import("@package/databases").TokenType[];
317
+ } | undefined;
334
318
  };
335
319
  };
336
320
  Creator: {
@@ -360,6 +344,30 @@ export declare abstract class CampaignRepository {
360
344
  OR?: undefined;
361
345
  Creator?: undefined;
362
346
  } | undefined;
347
+ createdAt: {
348
+ gte: Date;
349
+ } | undefined;
350
+ rootCampaignId: {
351
+ equals: string;
352
+ mode: "insensitive";
353
+ } | {
354
+ equals: null;
355
+ mode?: undefined;
356
+ } | undefined;
357
+ parentCampaignId: {
358
+ equals: string;
359
+ mode: "insensitive";
360
+ } | undefined;
361
+ endTimestamp: {
362
+ gte: number;
363
+ gt?: undefined;
364
+ lt?: undefined;
365
+ } | undefined;
366
+ startTimestamp: {
367
+ gte: number;
368
+ lte?: undefined;
369
+ gt?: undefined;
370
+ } | undefined;
363
371
  };
364
372
  };
365
373
  /**
@@ -5,6 +5,47 @@ import type { FindCampaignComputedValueModel } from "../computedValue/computedVa
5
5
  import { CampaignFormatter } from "./campaign.formatter";
6
6
  export declare abstract class CampaignService {
7
7
  static hashId(campaign: CampaignUnique): string;
8
+ static transformStatusToTimestampFilter(query: {
9
+ status: FindCampaignModel["status"];
10
+ startTimestamp: FindCampaignModel["startTimestamp"];
11
+ endTimestamp: FindCampaignModel["endTimestamp"];
12
+ }): {
13
+ endTimestamp: {
14
+ gt: number;
15
+ lt?: undefined;
16
+ gte?: undefined;
17
+ };
18
+ startTimestamp: {
19
+ lte: number;
20
+ gt?: undefined;
21
+ gte?: undefined;
22
+ };
23
+ } | {
24
+ endTimestamp: {
25
+ lt: number;
26
+ gt?: undefined;
27
+ gte?: undefined;
28
+ };
29
+ startTimestamp?: undefined;
30
+ } | {
31
+ startTimestamp: {
32
+ gt: number;
33
+ lte?: undefined;
34
+ gte?: undefined;
35
+ };
36
+ endTimestamp?: undefined;
37
+ } | {
38
+ endTimestamp: {
39
+ gte: number;
40
+ gt?: undefined;
41
+ lt?: undefined;
42
+ } | undefined;
43
+ startTimestamp: {
44
+ gte: number;
45
+ lte?: undefined;
46
+ gt?: undefined;
47
+ } | undefined;
48
+ };
8
49
  static splitIdOrThrow(chainAndCampaignId: `${number}-${string}` | string): CampaignUnique;
9
50
  static getPastCampaigns(query?: findCampaignWithStatusModel): Promise<({
10
51
  Opportunity: {