@r2wa-org/eden 0.0.90 → 0.0.93

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.
@@ -0,0 +1,392 @@
1
+ import type { LockActivityCreateInputType, LockActivityListQueryType, LockActivityUpdateInputType } from './dto.schemas';
2
+ export declare abstract class AdminLockActivityService {
3
+ private static getActivityDetail;
4
+ private static assertCoreUpdateAllowed;
5
+ static createActivity(input: LockActivityCreateInputType): Promise<{
6
+ coverImageUrl: string;
7
+ createdAt: Date;
8
+ description: string | null;
9
+ endAt: Date;
10
+ id: string;
11
+ isVisibleOnFrontend: boolean;
12
+ receiveAccountType: {
13
+ allowDeposit: boolean;
14
+ allowInternalReceiveTransfer: boolean;
15
+ allowInternalTransfer: boolean;
16
+ allowTransaction: boolean;
17
+ allowTransfer: boolean;
18
+ allowWithdraw: boolean;
19
+ createdAt: Date;
20
+ description: string | null;
21
+ expiryDays: number | null;
22
+ hasExpiry: boolean;
23
+ id: string;
24
+ internalTransferRatio: string;
25
+ isActive: boolean;
26
+ key: string;
27
+ maxInternalTransferAmount: string;
28
+ maxTransferAmount: string;
29
+ maxWithdrawAmount: string;
30
+ minInternalTransferAmount: string;
31
+ minTransferAmount: string;
32
+ minWithdrawAmount: string;
33
+ name: string;
34
+ sortOrder: number;
35
+ updatedAt: Date;
36
+ };
37
+ receiveAccountTypeId: string;
38
+ rewardAsset: {
39
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
40
+ code: string;
41
+ createdAt: Date;
42
+ iconUrl: string;
43
+ id: string;
44
+ isActive: boolean;
45
+ name: string;
46
+ precision: number;
47
+ symbol: string | null;
48
+ typeId: string | null;
49
+ updatedAt: Date;
50
+ };
51
+ rewardAssetId: string;
52
+ rewardCnyEquivalent: string;
53
+ sortOrder: number;
54
+ startAt: Date;
55
+ status: "active" | "cancelled" | "draft" | "ended";
56
+ title: string;
57
+ updatedAt: Date;
58
+ }>;
59
+ static updateActivity(activityId: string, input: LockActivityUpdateInputType): Promise<{
60
+ coverImageUrl: string;
61
+ createdAt: Date;
62
+ description: string | null;
63
+ endAt: Date;
64
+ id: string;
65
+ isVisibleOnFrontend: boolean;
66
+ receiveAccountType: {
67
+ allowDeposit: boolean;
68
+ allowInternalReceiveTransfer: boolean;
69
+ allowInternalTransfer: boolean;
70
+ allowTransaction: boolean;
71
+ allowTransfer: boolean;
72
+ allowWithdraw: boolean;
73
+ createdAt: Date;
74
+ description: string | null;
75
+ expiryDays: number | null;
76
+ hasExpiry: boolean;
77
+ id: string;
78
+ internalTransferRatio: string;
79
+ isActive: boolean;
80
+ key: string;
81
+ maxInternalTransferAmount: string;
82
+ maxTransferAmount: string;
83
+ maxWithdrawAmount: string;
84
+ minInternalTransferAmount: string;
85
+ minTransferAmount: string;
86
+ minWithdrawAmount: string;
87
+ name: string;
88
+ sortOrder: number;
89
+ updatedAt: Date;
90
+ };
91
+ receiveAccountTypeId: string;
92
+ rewardAsset: {
93
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
94
+ code: string;
95
+ createdAt: Date;
96
+ iconUrl: string;
97
+ id: string;
98
+ isActive: boolean;
99
+ name: string;
100
+ precision: number;
101
+ symbol: string | null;
102
+ typeId: string | null;
103
+ updatedAt: Date;
104
+ };
105
+ rewardAssetId: string;
106
+ rewardCnyEquivalent: string;
107
+ sortOrder: number;
108
+ startAt: Date;
109
+ status: "active" | "cancelled" | "draft" | "ended";
110
+ title: string;
111
+ updatedAt: Date;
112
+ }>;
113
+ static activateActivity(activityId: string): Promise<{
114
+ coverImageUrl: string;
115
+ createdAt: Date;
116
+ description: string | null;
117
+ endAt: Date;
118
+ id: string;
119
+ isVisibleOnFrontend: boolean;
120
+ receiveAccountType: {
121
+ allowDeposit: boolean;
122
+ allowInternalReceiveTransfer: boolean;
123
+ allowInternalTransfer: boolean;
124
+ allowTransaction: boolean;
125
+ allowTransfer: boolean;
126
+ allowWithdraw: boolean;
127
+ createdAt: Date;
128
+ description: string | null;
129
+ expiryDays: number | null;
130
+ hasExpiry: boolean;
131
+ id: string;
132
+ internalTransferRatio: string;
133
+ isActive: boolean;
134
+ key: string;
135
+ maxInternalTransferAmount: string;
136
+ maxTransferAmount: string;
137
+ maxWithdrawAmount: string;
138
+ minInternalTransferAmount: string;
139
+ minTransferAmount: string;
140
+ minWithdrawAmount: string;
141
+ name: string;
142
+ sortOrder: number;
143
+ updatedAt: Date;
144
+ };
145
+ receiveAccountTypeId: string;
146
+ rewardAsset: {
147
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
148
+ code: string;
149
+ createdAt: Date;
150
+ iconUrl: string;
151
+ id: string;
152
+ isActive: boolean;
153
+ name: string;
154
+ precision: number;
155
+ symbol: string | null;
156
+ typeId: string | null;
157
+ updatedAt: Date;
158
+ };
159
+ rewardAssetId: string;
160
+ rewardCnyEquivalent: string;
161
+ sortOrder: number;
162
+ startAt: Date;
163
+ status: "active" | "cancelled" | "draft" | "ended";
164
+ title: string;
165
+ updatedAt: Date;
166
+ }>;
167
+ static endActivity(activityId: string): Promise<{
168
+ coverImageUrl: string;
169
+ createdAt: Date;
170
+ description: string | null;
171
+ endAt: Date;
172
+ id: string;
173
+ isVisibleOnFrontend: boolean;
174
+ receiveAccountType: {
175
+ allowDeposit: boolean;
176
+ allowInternalReceiveTransfer: boolean;
177
+ allowInternalTransfer: boolean;
178
+ allowTransaction: boolean;
179
+ allowTransfer: boolean;
180
+ allowWithdraw: boolean;
181
+ createdAt: Date;
182
+ description: string | null;
183
+ expiryDays: number | null;
184
+ hasExpiry: boolean;
185
+ id: string;
186
+ internalTransferRatio: string;
187
+ isActive: boolean;
188
+ key: string;
189
+ maxInternalTransferAmount: string;
190
+ maxTransferAmount: string;
191
+ maxWithdrawAmount: string;
192
+ minInternalTransferAmount: string;
193
+ minTransferAmount: string;
194
+ minWithdrawAmount: string;
195
+ name: string;
196
+ sortOrder: number;
197
+ updatedAt: Date;
198
+ };
199
+ receiveAccountTypeId: string;
200
+ rewardAsset: {
201
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
202
+ code: string;
203
+ createdAt: Date;
204
+ iconUrl: string;
205
+ id: string;
206
+ isActive: boolean;
207
+ name: string;
208
+ precision: number;
209
+ symbol: string | null;
210
+ typeId: string | null;
211
+ updatedAt: Date;
212
+ };
213
+ rewardAssetId: string;
214
+ rewardCnyEquivalent: string;
215
+ sortOrder: number;
216
+ startAt: Date;
217
+ status: "active" | "cancelled" | "draft" | "ended";
218
+ title: string;
219
+ updatedAt: Date;
220
+ }>;
221
+ static cancelActivity(activityId: string): Promise<{
222
+ coverImageUrl: string;
223
+ createdAt: Date;
224
+ description: string | null;
225
+ endAt: Date;
226
+ id: string;
227
+ isVisibleOnFrontend: boolean;
228
+ receiveAccountType: {
229
+ allowDeposit: boolean;
230
+ allowInternalReceiveTransfer: boolean;
231
+ allowInternalTransfer: boolean;
232
+ allowTransaction: boolean;
233
+ allowTransfer: boolean;
234
+ allowWithdraw: boolean;
235
+ createdAt: Date;
236
+ description: string | null;
237
+ expiryDays: number | null;
238
+ hasExpiry: boolean;
239
+ id: string;
240
+ internalTransferRatio: string;
241
+ isActive: boolean;
242
+ key: string;
243
+ maxInternalTransferAmount: string;
244
+ maxTransferAmount: string;
245
+ maxWithdrawAmount: string;
246
+ minInternalTransferAmount: string;
247
+ minTransferAmount: string;
248
+ minWithdrawAmount: string;
249
+ name: string;
250
+ sortOrder: number;
251
+ updatedAt: Date;
252
+ };
253
+ receiveAccountTypeId: string;
254
+ rewardAsset: {
255
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
256
+ code: string;
257
+ createdAt: Date;
258
+ iconUrl: string;
259
+ id: string;
260
+ isActive: boolean;
261
+ name: string;
262
+ precision: number;
263
+ symbol: string | null;
264
+ typeId: string | null;
265
+ updatedAt: Date;
266
+ };
267
+ rewardAssetId: string;
268
+ rewardCnyEquivalent: string;
269
+ sortOrder: number;
270
+ startAt: Date;
271
+ status: "active" | "cancelled" | "draft" | "ended";
272
+ title: string;
273
+ updatedAt: Date;
274
+ }>;
275
+ static getActivity(activityId: string): Promise<{
276
+ coverImageUrl: string;
277
+ createdAt: Date;
278
+ description: string | null;
279
+ endAt: Date;
280
+ id: string;
281
+ isVisibleOnFrontend: boolean;
282
+ receiveAccountType: {
283
+ allowDeposit: boolean;
284
+ allowInternalReceiveTransfer: boolean;
285
+ allowInternalTransfer: boolean;
286
+ allowTransaction: boolean;
287
+ allowTransfer: boolean;
288
+ allowWithdraw: boolean;
289
+ createdAt: Date;
290
+ description: string | null;
291
+ expiryDays: number | null;
292
+ hasExpiry: boolean;
293
+ id: string;
294
+ internalTransferRatio: string;
295
+ isActive: boolean;
296
+ key: string;
297
+ maxInternalTransferAmount: string;
298
+ maxTransferAmount: string;
299
+ maxWithdrawAmount: string;
300
+ minInternalTransferAmount: string;
301
+ minTransferAmount: string;
302
+ minWithdrawAmount: string;
303
+ name: string;
304
+ sortOrder: number;
305
+ updatedAt: Date;
306
+ };
307
+ receiveAccountTypeId: string;
308
+ rewardAsset: {
309
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
310
+ code: string;
311
+ createdAt: Date;
312
+ iconUrl: string;
313
+ id: string;
314
+ isActive: boolean;
315
+ name: string;
316
+ precision: number;
317
+ symbol: string | null;
318
+ typeId: string | null;
319
+ updatedAt: Date;
320
+ };
321
+ rewardAssetId: string;
322
+ rewardCnyEquivalent: string;
323
+ sortOrder: number;
324
+ startAt: Date;
325
+ status: "active" | "cancelled" | "draft" | "ended";
326
+ title: string;
327
+ updatedAt: Date;
328
+ }>;
329
+ static listActivities(filters: LockActivityListQueryType): Promise<{
330
+ data: {
331
+ coverImageUrl: string;
332
+ createdAt: Date;
333
+ description: string | null;
334
+ endAt: Date;
335
+ id: string;
336
+ isVisibleOnFrontend: boolean;
337
+ receiveAccountType: {
338
+ allowDeposit: boolean;
339
+ allowInternalReceiveTransfer: boolean;
340
+ allowInternalTransfer: boolean;
341
+ allowTransaction: boolean;
342
+ allowTransfer: boolean;
343
+ allowWithdraw: boolean;
344
+ createdAt: Date;
345
+ description: string | null;
346
+ expiryDays: number | null;
347
+ hasExpiry: boolean;
348
+ id: string;
349
+ internalTransferRatio: string;
350
+ isActive: boolean;
351
+ key: string;
352
+ maxInternalTransferAmount: string;
353
+ maxTransferAmount: string;
354
+ maxWithdrawAmount: string;
355
+ minInternalTransferAmount: string;
356
+ minTransferAmount: string;
357
+ minWithdrawAmount: string;
358
+ name: string;
359
+ sortOrder: number;
360
+ updatedAt: Date;
361
+ };
362
+ receiveAccountTypeId: string;
363
+ rewardAsset: {
364
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
365
+ code: string;
366
+ createdAt: Date;
367
+ iconUrl: string;
368
+ id: string;
369
+ isActive: boolean;
370
+ name: string;
371
+ precision: number;
372
+ symbol: string | null;
373
+ typeId: string | null;
374
+ updatedAt: Date;
375
+ };
376
+ rewardAssetId: string;
377
+ rewardCnyEquivalent: string;
378
+ sortOrder: number;
379
+ startAt: Date;
380
+ status: "active" | "cancelled" | "draft" | "ended";
381
+ title: string;
382
+ updatedAt: Date;
383
+ }[];
384
+ pagination: {
385
+ pageSize: number;
386
+ pageIndex: number;
387
+ total: number;
388
+ totalPages: number;
389
+ hasNextPage: boolean;
390
+ };
391
+ }>;
392
+ }