@merkl/api 0.10.122 → 0.10.123

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,6 +46,21 @@ export declare abstract class CampaignRepository {
46
46
  campaignParameters: import("database/engine/.generated/runtime/library").JsonValue;
47
47
  }[]>;
48
48
  static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
49
+ static findUnique(campaign: CampaignUnique): Promise<{
50
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
51
+ id: string;
52
+ params: Prisma.JsonValue;
53
+ subType: number | null;
54
+ startTimestamp: bigint;
55
+ endTimestamp: bigint;
56
+ computeChainId: number;
57
+ distributionChainId: number;
58
+ campaignId: string;
59
+ rewardTokenId: string;
60
+ amount: string;
61
+ opportunityId: string;
62
+ creatorAddress: string;
63
+ } | null>;
49
64
  static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
50
65
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
51
66
  id: string;
@@ -72,6 +72,21 @@ export declare abstract class CampaignService {
72
72
  */
73
73
  static countMany(query: GetCampaignQueryModel): Promise<number>;
74
74
  static checkIfExist(campaign: CampaignUnique): Promise<boolean>;
75
+ static findUnique(campaign: CampaignUnique): Promise<{
76
+ type: import("../../../../database/api/.generated").$Enums.CampaignType;
77
+ id: string;
78
+ params: import("database/api/.generated/runtime/library").JsonValue;
79
+ subType: number | null;
80
+ startTimestamp: bigint;
81
+ endTimestamp: bigint;
82
+ computeChainId: number;
83
+ distributionChainId: number;
84
+ campaignId: string;
85
+ rewardTokenId: string;
86
+ amount: string;
87
+ opportunityId: string;
88
+ creatorAddress: string;
89
+ } | null>;
75
90
  static findUniqueOrThrow(campaign: CampaignUnique): Promise<{
76
91
  type: import("../../../../database/api/.generated").$Enums.CampaignType;
77
92
  id: string;