@merkl/api 1.6.74 → 1.6.76
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 +226 -276
- package/dist/src/engine/deprecated/dynamicData/implementations/Erc20.d.ts +60 -30
- package/dist/src/index.d.ts +263 -335
- package/dist/src/index.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.d.ts +1 -1
- package/dist/src/modules/v4/campaign/campaign.controller.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.formatter.js.map +1 -1
- package/dist/src/modules/v4/campaign/campaign.repository.d.ts +0 -24
- package/dist/src/modules/v4/campaign/campaign.service.d.ts +2 -3
- package/dist/src/modules/v4/campaign/campaign.service.js.map +1 -1
- package/dist/src/modules/v4/config/config.controller.d.ts +2 -2
- package/dist/src/modules/v4/config/config.model.d.ts +1 -1
- package/dist/src/modules/v4/config/config.service.js.map +1 -1
- package/dist/src/modules/v4/opportunity/opportunity.repository.d.ts +0 -4
- package/dist/src/modules/v4/programPayload/programPayload.service.js.map +1 -1
- package/dist/src/modules/v4/router.d.ts +263 -335
- package/dist/src/modules/v4/router.js.map +1 -1
- package/dist/src/modules/v4/{campaignBatch/campaignBatch.model.d.ts → safePayload/safePayload.model.d.ts} +0 -12
- package/dist/src/modules/v4/safePayload/safePayload.model.js.map +1 -0
- package/dist/src/modules/v4/safePayload/safePayload.service.d.ts +9 -0
- package/dist/src/modules/v4/safePayload/safePayload.service.js.map +1 -0
- package/dist/src/modules/v4/template/template.controller.d.ts +302 -0
- package/dist/src/modules/v4/template/template.controller.js.map +1 -0
- package/dist/src/modules/v4/template/template.formatter.d.ts +24 -0
- package/dist/src/modules/v4/template/template.formatter.js.map +1 -0
- package/dist/src/modules/v4/template/template.model.d.ts +11 -0
- package/dist/src/modules/v4/template/template.model.js.map +1 -0
- package/dist/src/modules/v4/template/template.repository.d.ts +36 -0
- package/dist/src/modules/v4/template/template.repository.js.map +1 -0
- package/dist/src/modules/v4/template/template.service.d.ts +108 -0
- package/dist/src/modules/v4/template/template.service.js.map +1 -0
- package/dist/src/scripts/exportOpportunities.js.map +1 -1
- package/dist/src/scripts/importOpportunities.js.map +1 -1
- package/dist/src/utils/getAPR.d.ts +835 -805
- package/dist/src/utils/parseDistributionType.d.ts +30 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.d.ts +0 -361
- package/dist/src/modules/v4/campaignBatch/campaignBatch.controller.js.map +0 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.model.js.map +0 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.d.ts +0 -96
- package/dist/src/modules/v4/campaignBatch/campaignBatch.repository.js.map +0 -1
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.d.ts +0 -121
- package/dist/src/modules/v4/campaignBatch/campaignBatch.service.js.map +0 -1
- package/dist/src/modules/v4/campaignGroup/campaignGroup.model.d.ts +0 -16
- package/dist/src/modules/v4/campaignGroup/campaignGroup.model.js.map +0 -1
- package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.d.ts +0 -127
- package/dist/src/modules/v4/campaignGroup/campaignGroup.repository.js.map +0 -1
- package/dist/src/modules/v4/campaignGroup/campaignGroup.service.d.ts +0 -127
- package/dist/src/modules/v4/campaignGroup/campaignGroup.service.js.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChainId, ValidCampaign } from "@package/resources/enums";
|
|
2
|
+
import type { CampaignConfig } from "@package/resources/schemas";
|
|
3
|
+
import { type SafePayload } from "./safePayload.model";
|
|
4
|
+
export declare abstract class CampaignBatchService {
|
|
5
|
+
static initSafePayload(distributionChainId: number, distributionCreator: string, rewardToken: string, approvalAmount?: string): SafePayload;
|
|
6
|
+
static buildSafePayload(campaignConfig: CampaignConfig<ValidCampaign> & {
|
|
7
|
+
distributionChainId: ChainId;
|
|
8
|
+
}, initialCampaignPayload?: SafePayload | null, totalAmount?: string): SafePayload;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safePayload.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/safePayload/safePayload.service.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAGhE,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAIL,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,MAAM,OAAgB,oBAAoB;IACxC,MAAM,CAAC,eAAe,CACpB,mBAA2B,EAC3B,mBAA2B,EAC3B,WAAmB,EACnB,cAAc,GAAG,GAAG,EACP;QACb,MAAM,WAAW,GAAG,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;QAC9C,WAAW,CAAC,OAAO,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC;QACrD,WAAW,CAAC,SAAS,GAAG,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;QACxC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,mBAAmB,CAAC;QACrD,IAAI,cAAc,KAAK,GAAG,EAAE,CAAC;YAC3B,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,WAAW,CAAC;YAC7C,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,oBAAoB,GAAG;gBACjD,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,mBAAmB;aAC7B,CAAC;YACF,WAAW,CAAC,YAAY,GAAG,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;QACxF,CAAC;;YA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;YACF,OAAO,WAAW,CAAC;QAAA,CACpB;QAED,MAAM,gBAAgB,GACpB,sBAAsB,KAAK,IAAI;YAC7B,CAAC,CAAC,oBAAoB,CAAC,eAAe,CAClC,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,CAAC,WAAW,EAC1B,WAAW,CACZ;YACH,CAAC,CAAE,sBAAsC,CAAC;QAC9C,MAAM,YAAY,GAAG,mBAAmB,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QACvE,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;QAEpD,OAAO,gBAAgB,CAAC;IAAA,CACzB;CACF"}
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import Elysia from "elysia";
|
|
2
|
+
/**
|
|
3
|
+
* Template Controller
|
|
4
|
+
* Handles HTTP requests for template CRUD operations
|
|
5
|
+
*/
|
|
6
|
+
export declare const TemplateController: Elysia<"/templates", {
|
|
7
|
+
decorator: {};
|
|
8
|
+
store: {};
|
|
9
|
+
derive: {};
|
|
10
|
+
resolve: {};
|
|
11
|
+
}, {
|
|
12
|
+
typebox: {};
|
|
13
|
+
error: {};
|
|
14
|
+
}, {
|
|
15
|
+
schema: {};
|
|
16
|
+
standaloneSchema: {};
|
|
17
|
+
macro: {};
|
|
18
|
+
macroFn: {};
|
|
19
|
+
parser: {};
|
|
20
|
+
response: {};
|
|
21
|
+
}, {
|
|
22
|
+
templates: {
|
|
23
|
+
get: {
|
|
24
|
+
body: unknown;
|
|
25
|
+
params: {};
|
|
26
|
+
query: {
|
|
27
|
+
page?: number | undefined;
|
|
28
|
+
items?: number | undefined;
|
|
29
|
+
protocolId?: string | undefined;
|
|
30
|
+
search?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
headers: unknown;
|
|
33
|
+
response: {
|
|
34
|
+
200: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
config: any;
|
|
39
|
+
toFill: string[];
|
|
40
|
+
protocolId?: string | undefined;
|
|
41
|
+
protocol?: {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
tags: string[];
|
|
46
|
+
description: string;
|
|
47
|
+
url: string;
|
|
48
|
+
dailyRewards?: number | undefined;
|
|
49
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
50
|
+
opportunityLiveTags?: string[] | undefined;
|
|
51
|
+
banner: string | null;
|
|
52
|
+
opportunityBannerLight: string | null;
|
|
53
|
+
opportunityBannerDark: string | null;
|
|
54
|
+
} | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
422: {
|
|
57
|
+
type: "validation";
|
|
58
|
+
on: string;
|
|
59
|
+
summary?: string | undefined;
|
|
60
|
+
message?: string | undefined;
|
|
61
|
+
found?: unknown;
|
|
62
|
+
property?: string | undefined;
|
|
63
|
+
expected?: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
} & {
|
|
69
|
+
templates: {
|
|
70
|
+
count: {
|
|
71
|
+
get: {
|
|
72
|
+
body: unknown;
|
|
73
|
+
params: {};
|
|
74
|
+
query: {
|
|
75
|
+
page?: number | undefined;
|
|
76
|
+
items?: number | undefined;
|
|
77
|
+
protocolId?: string | undefined;
|
|
78
|
+
search?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
headers: unknown;
|
|
81
|
+
response: {
|
|
82
|
+
200: number;
|
|
83
|
+
422: {
|
|
84
|
+
type: "validation";
|
|
85
|
+
on: string;
|
|
86
|
+
summary?: string | undefined;
|
|
87
|
+
message?: string | undefined;
|
|
88
|
+
found?: unknown;
|
|
89
|
+
property?: string | undefined;
|
|
90
|
+
expected?: string | undefined;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
} & {
|
|
97
|
+
templates: {
|
|
98
|
+
":id": {
|
|
99
|
+
get: {
|
|
100
|
+
body: unknown;
|
|
101
|
+
params: {
|
|
102
|
+
id: string;
|
|
103
|
+
};
|
|
104
|
+
query: unknown;
|
|
105
|
+
headers: unknown;
|
|
106
|
+
response: {
|
|
107
|
+
200: {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
config: any;
|
|
112
|
+
toFill: string[];
|
|
113
|
+
protocolId?: string | undefined;
|
|
114
|
+
protocol?: {
|
|
115
|
+
id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
icon: string;
|
|
118
|
+
tags: string[];
|
|
119
|
+
description: string;
|
|
120
|
+
url: string;
|
|
121
|
+
dailyRewards?: number | undefined;
|
|
122
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
123
|
+
opportunityLiveTags?: string[] | undefined;
|
|
124
|
+
banner: string | null;
|
|
125
|
+
opportunityBannerLight: string | null;
|
|
126
|
+
opportunityBannerDark: string | null;
|
|
127
|
+
} | undefined;
|
|
128
|
+
} | null;
|
|
129
|
+
422: {
|
|
130
|
+
type: "validation";
|
|
131
|
+
on: string;
|
|
132
|
+
summary?: string | undefined;
|
|
133
|
+
message?: string | undefined;
|
|
134
|
+
found?: unknown;
|
|
135
|
+
property?: string | undefined;
|
|
136
|
+
expected?: string | undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
} & {
|
|
143
|
+
templates: {
|
|
144
|
+
post: {
|
|
145
|
+
body: {
|
|
146
|
+
name: string;
|
|
147
|
+
description: string;
|
|
148
|
+
config: any;
|
|
149
|
+
toFill: string[];
|
|
150
|
+
protocolId?: string | undefined;
|
|
151
|
+
};
|
|
152
|
+
params: {};
|
|
153
|
+
query: unknown;
|
|
154
|
+
headers: {
|
|
155
|
+
authorization: string;
|
|
156
|
+
};
|
|
157
|
+
response: {
|
|
158
|
+
200: {
|
|
159
|
+
id: string;
|
|
160
|
+
name: string;
|
|
161
|
+
description: string;
|
|
162
|
+
config: any;
|
|
163
|
+
toFill: string[];
|
|
164
|
+
protocolId?: string | undefined;
|
|
165
|
+
protocol?: {
|
|
166
|
+
id: string;
|
|
167
|
+
name: string;
|
|
168
|
+
icon: string;
|
|
169
|
+
tags: string[];
|
|
170
|
+
description: string;
|
|
171
|
+
url: string;
|
|
172
|
+
dailyRewards?: number | undefined;
|
|
173
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
174
|
+
opportunityLiveTags?: string[] | undefined;
|
|
175
|
+
banner: string | null;
|
|
176
|
+
opportunityBannerLight: string | null;
|
|
177
|
+
opportunityBannerDark: string | null;
|
|
178
|
+
} | undefined;
|
|
179
|
+
};
|
|
180
|
+
422: {
|
|
181
|
+
type: "validation";
|
|
182
|
+
on: string;
|
|
183
|
+
summary?: string | undefined;
|
|
184
|
+
message?: string | undefined;
|
|
185
|
+
found?: unknown;
|
|
186
|
+
property?: string | undefined;
|
|
187
|
+
expected?: string | undefined;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
} & {
|
|
193
|
+
templates: {
|
|
194
|
+
":id": {
|
|
195
|
+
put: {
|
|
196
|
+
body: {
|
|
197
|
+
id: string;
|
|
198
|
+
name?: string | undefined;
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
config?: any;
|
|
201
|
+
toFill?: string[] | undefined;
|
|
202
|
+
protocolId?: string | undefined;
|
|
203
|
+
};
|
|
204
|
+
params: {
|
|
205
|
+
id: string;
|
|
206
|
+
};
|
|
207
|
+
query: unknown;
|
|
208
|
+
headers: {
|
|
209
|
+
authorization: string;
|
|
210
|
+
};
|
|
211
|
+
response: {
|
|
212
|
+
200: {
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
description: string;
|
|
216
|
+
config: any;
|
|
217
|
+
toFill: string[];
|
|
218
|
+
protocolId?: string | undefined;
|
|
219
|
+
protocol?: {
|
|
220
|
+
id: string;
|
|
221
|
+
name: string;
|
|
222
|
+
icon: string;
|
|
223
|
+
tags: string[];
|
|
224
|
+
description: string;
|
|
225
|
+
url: string;
|
|
226
|
+
dailyRewards?: number | undefined;
|
|
227
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
228
|
+
opportunityLiveTags?: string[] | undefined;
|
|
229
|
+
banner: string | null;
|
|
230
|
+
opportunityBannerLight: string | null;
|
|
231
|
+
opportunityBannerDark: string | null;
|
|
232
|
+
} | undefined;
|
|
233
|
+
};
|
|
234
|
+
422: {
|
|
235
|
+
type: "validation";
|
|
236
|
+
on: string;
|
|
237
|
+
summary?: string | undefined;
|
|
238
|
+
message?: string | undefined;
|
|
239
|
+
found?: unknown;
|
|
240
|
+
property?: string | undefined;
|
|
241
|
+
expected?: string | undefined;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
} & {
|
|
248
|
+
templates: {
|
|
249
|
+
":id": {
|
|
250
|
+
delete: {
|
|
251
|
+
body: unknown;
|
|
252
|
+
params: {
|
|
253
|
+
id: string;
|
|
254
|
+
};
|
|
255
|
+
query: unknown;
|
|
256
|
+
headers: {
|
|
257
|
+
authorization: string;
|
|
258
|
+
};
|
|
259
|
+
response: {
|
|
260
|
+
200: {
|
|
261
|
+
id: string;
|
|
262
|
+
name: string;
|
|
263
|
+
description: string;
|
|
264
|
+
config: import("@prisma/client/runtime/client").JsonValue;
|
|
265
|
+
toFill: string[];
|
|
266
|
+
protocolId: string | null;
|
|
267
|
+
};
|
|
268
|
+
422: {
|
|
269
|
+
type: "validation";
|
|
270
|
+
on: string;
|
|
271
|
+
summary?: string | undefined;
|
|
272
|
+
message?: string | undefined;
|
|
273
|
+
found?: unknown;
|
|
274
|
+
property?: string | undefined;
|
|
275
|
+
expected?: string | undefined;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
}, {
|
|
282
|
+
derive: {};
|
|
283
|
+
resolve: {};
|
|
284
|
+
schema: {};
|
|
285
|
+
standaloneSchema: {};
|
|
286
|
+
response: {};
|
|
287
|
+
}, {
|
|
288
|
+
derive: {};
|
|
289
|
+
resolve: {};
|
|
290
|
+
schema: {
|
|
291
|
+
body: unknown;
|
|
292
|
+
headers: {
|
|
293
|
+
authorization: string;
|
|
294
|
+
};
|
|
295
|
+
query: unknown;
|
|
296
|
+
params: {};
|
|
297
|
+
cookie: unknown;
|
|
298
|
+
response: unknown;
|
|
299
|
+
};
|
|
300
|
+
standaloneSchema: {};
|
|
301
|
+
response: {};
|
|
302
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.controller.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,MAAM,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;IAEjH,4MAAgF;IAEhF;;OAEG;KACF,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;IAC9D,KAAK,EAAE,oBAAoB;IAC3B,MAAM,EAAE;QACN,WAAW,EAAE,gDAAgD;KAC9D;CACF,CAAC;IAEF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E,EAAE,IAAI,EAAE,IAAI,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Protocol as PrismaProtocol, Template as PrismaTemplate } from "@package/databases/api";
|
|
2
|
+
import type { Template } from "@package/resources/schemas";
|
|
3
|
+
type PrismaTemplateWithProtocol = PrismaTemplate & {
|
|
4
|
+
Protocol?: PrismaProtocol | null;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* TemplateFormatter
|
|
8
|
+
* Transforms Prisma Template types to Resource Template types
|
|
9
|
+
*/
|
|
10
|
+
export declare abstract class TemplateFormatter {
|
|
11
|
+
/**
|
|
12
|
+
* Format a Prisma Template to a Resource Template
|
|
13
|
+
* @param prismaTemplate Raw Prisma Template from repository
|
|
14
|
+
* @returns Formatted Template Resource
|
|
15
|
+
*/
|
|
16
|
+
static format(prismaTemplate: PrismaTemplateWithProtocol): Template;
|
|
17
|
+
/**
|
|
18
|
+
* Format multiple Prisma Templates to Resource Templates
|
|
19
|
+
* @param prismaTemplates Array of raw Prisma Templates
|
|
20
|
+
* @returns Array of formatted Template Resources
|
|
21
|
+
*/
|
|
22
|
+
static formatMany(prismaTemplates: PrismaTemplateWithProtocol[]): Template[];
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.formatter.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.formatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMnE;;;GAGG;AACH,MAAM,OAAgB,iBAAiB;IACrC;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,cAA0C,EAAY;QAClE,OAAO;YACL,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,WAAW,EAAE,cAAc,CAAC,WAAW;YACvC,MAAM,EAAE,cAAc,CAAC,MAAM;YAC7B,MAAM,EAAE,cAAc,CAAC,MAAM;YAC7B,UAAU,EAAE,cAAc,CAAC,UAAU,IAAI,SAAS;YAClD,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;SAClG,CAAC;IAAA,CACH;IAED;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,eAA6C,EAAc;QAC3E,OAAO,eAAe,CAAC,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAAA,CACtD;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const GetTemplatesQueryDto: import("@sinclair/typebox").TObject<{
|
|
2
|
+
page: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
3
|
+
items: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
4
|
+
protocolId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
search: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const TemplateIdDto: import("@sinclair/typebox").TObject<{
|
|
8
|
+
id: import("@sinclair/typebox").TString;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetTemplatesQueryDtoModel = typeof GetTemplatesQueryDto.static;
|
|
11
|
+
export type TemplateIdDtoModel = typeof TemplateIdDto.static;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.model.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,CAAC,CAAC,QAAQ,CACpB,CAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE,CAAC,YAAY,CAAC;KACzB,CAAC,CACH;IACD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAChB,CAAC,CAAC,MAAM,CAAC;QACP,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE,CAAC,SAAS,CAAC;KACtB,CAAC,CACH;IACD,GAAG,qBAAqB,CAAC,EAAE,EAAE,GAAG,CAAC;CAClC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC;QACX,WAAW,EAAE,mDAAmD;QAChE,QAAQ,EAAE,CAAC,sCAAsC,EAAE,qBAAqB,CAAC;KAC1E,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Template } from "@package/resources/schemas";
|
|
2
|
+
import type { GetTemplatesQueryDtoModel } from "./template.model";
|
|
3
|
+
export declare abstract class TemplateRepository {
|
|
4
|
+
static getRecordInclusion(): {
|
|
5
|
+
Protocol: boolean;
|
|
6
|
+
};
|
|
7
|
+
static create(body: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
config: object;
|
|
11
|
+
toFill: string[];
|
|
12
|
+
protocolId?: string;
|
|
13
|
+
}): Promise<Template>;
|
|
14
|
+
static findMany(query: GetTemplatesQueryDtoModel): Promise<Template[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Find a template by ID (UUID) or name
|
|
17
|
+
* Tries ID first, then falls back to name lookup
|
|
18
|
+
*/
|
|
19
|
+
static findUnique(idOrName: string): Promise<Template | null>;
|
|
20
|
+
static update(id: string, body: {
|
|
21
|
+
name?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
config?: object;
|
|
24
|
+
toFill?: string[];
|
|
25
|
+
protocolId?: string | null;
|
|
26
|
+
}): Promise<Template>;
|
|
27
|
+
static count(query: GetTemplatesQueryDtoModel): Promise<number>;
|
|
28
|
+
static delete(id: string): Promise<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description: string;
|
|
32
|
+
config: import("@prisma/client/runtime/client").JsonValue;
|
|
33
|
+
toFill: string[];
|
|
34
|
+
protocolId: string | null;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.repository.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,MAAM,OAAgB,kBAAkB;IACtC,MAAM,CAAC,kBAAkB,GAAG;QAC1B,OAAO;YACL,QAAQ,EAAE,IAAI;SACf,CAAC;IAAA,CACH;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAMnB,EAAqB;QACpB,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC/C,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,GAAG,CAAC,IAAI,CAAC,UAAU,IAAI;oBACrB,QAAQ,EAAE;wBACR,OAAO,EAAE;4BACP,EAAE,EAAE,IAAI,CAAC,UAAU;yBACpB;qBACF;iBACF,CAAC;aACH;YACD,OAAO,EAAE,kBAAkB,CAAC,kBAAkB,EAAE;SACjD,CAAC,CAAC;QAEH,OAAO,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAAA,CACzC;I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AG,KAAK,CAAC;QAErC,OAAO,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC;YAChC,KAAK,EAAE;gBACL,GAAG,CAAC,UAAU,IAAI,EAAE,UAAU,EAAE,CAAC;gBACjC,GAAG,CAAC,MAAM,IAAI;oBACZ,EAAE,EAAE;wBACF,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE;wBACnD,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE;qBAC3D;iBACF,CAAC;aACH;SACF,CAAC,CAAC;IAAA,CACJ;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE;QAC9B,OAAO,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC;YACjC,KAAK,EAAE,EAAE,EAAE,EAAE;SACd,CAAC,CAAC;IAAA,CACJ;CACF"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { CampaignType } from "@package/resources/enums";
|
|
2
|
+
import type { CreateTemplateDto, UpdateTemplateDto } from "@package/resources/schemas";
|
|
3
|
+
import type { GetTemplatesQueryDtoModel } from "./template.model";
|
|
4
|
+
export declare abstract class TemplateService {
|
|
5
|
+
/**
|
|
6
|
+
* Infer which fields need to be filled based on schema validation errors
|
|
7
|
+
*/
|
|
8
|
+
static inferToFill(config: object & {
|
|
9
|
+
campaignType: CampaignType;
|
|
10
|
+
}): string[];
|
|
11
|
+
static create(body: CreateTemplateDto): Promise<{
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
config: any;
|
|
16
|
+
toFill: string[];
|
|
17
|
+
protocolId?: string | undefined;
|
|
18
|
+
protocol?: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
tags: string[];
|
|
23
|
+
description: string;
|
|
24
|
+
url: string;
|
|
25
|
+
dailyRewards?: number | undefined;
|
|
26
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
27
|
+
opportunityLiveTags?: string[] | undefined;
|
|
28
|
+
banner: string | null;
|
|
29
|
+
opportunityBannerLight: string | null;
|
|
30
|
+
opportunityBannerDark: string | null;
|
|
31
|
+
} | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
static findMany(query: GetTemplatesQueryDtoModel): Promise<{
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
config: any;
|
|
38
|
+
toFill: string[];
|
|
39
|
+
protocolId?: string | undefined;
|
|
40
|
+
protocol?: {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
tags: string[];
|
|
45
|
+
description: string;
|
|
46
|
+
url: string;
|
|
47
|
+
dailyRewards?: number | undefined;
|
|
48
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
49
|
+
opportunityLiveTags?: string[] | undefined;
|
|
50
|
+
banner: string | null;
|
|
51
|
+
opportunityBannerLight: string | null;
|
|
52
|
+
opportunityBannerDark: string | null;
|
|
53
|
+
} | undefined;
|
|
54
|
+
}[]>;
|
|
55
|
+
static findUnique(idOrName: string): Promise<{
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
description: string;
|
|
59
|
+
config: any;
|
|
60
|
+
toFill: string[];
|
|
61
|
+
protocolId?: string | undefined;
|
|
62
|
+
protocol?: {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
tags: string[];
|
|
67
|
+
description: string;
|
|
68
|
+
url: string;
|
|
69
|
+
dailyRewards?: number | undefined;
|
|
70
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
71
|
+
opportunityLiveTags?: string[] | undefined;
|
|
72
|
+
banner: string | null;
|
|
73
|
+
opportunityBannerLight: string | null;
|
|
74
|
+
opportunityBannerDark: string | null;
|
|
75
|
+
} | undefined;
|
|
76
|
+
} | null>;
|
|
77
|
+
static update(body: UpdateTemplateDto): Promise<{
|
|
78
|
+
id: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
config: any;
|
|
82
|
+
toFill: string[];
|
|
83
|
+
protocolId?: string | undefined;
|
|
84
|
+
protocol?: {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
tags: string[];
|
|
89
|
+
description: string;
|
|
90
|
+
url: string;
|
|
91
|
+
dailyRewards?: number | undefined;
|
|
92
|
+
numberOfLiveCampaigns?: number | undefined;
|
|
93
|
+
opportunityLiveTags?: string[] | undefined;
|
|
94
|
+
banner: string | null;
|
|
95
|
+
opportunityBannerLight: string | null;
|
|
96
|
+
opportunityBannerDark: string | null;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
static count(query: GetTemplatesQueryDtoModel): Promise<number>;
|
|
100
|
+
static delete(id: string): Promise<{
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
description: string;
|
|
104
|
+
config: import("@prisma/client/runtime/client").JsonValue;
|
|
105
|
+
toFill: string[];
|
|
106
|
+
protocolId: string | null;
|
|
107
|
+
}>;
|
|
108
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.service.js","sourceRoot":"","sources":["../../../../../../../apps/api/src/modules/v4/template/template.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,MAAM,OAAgB,eAAe;IACnC;;OAEG;IACH,MAAM,CAAC,WAAW,CAAC,MAA+C,EAAY;QAC5E,MAAM,MAAM,GAAG,0BAA0B,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC/D,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAA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