@r2wa-org/eden 0.0.99 → 0.0.101
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/admin/index.d.ts +706 -12
- package/dist/asset-convert-product/admin/router.d.ts +1 -13
- package/dist/auth/better-auth.d.ts +13 -1
- package/dist/auth/permissions.d.ts +11 -1
- package/dist/auth/roles.d.ts +30 -0
- package/dist/bank-account/admin/router.d.ts +1 -13
- package/dist/check-in/admin/reward.dto.schemas.d.ts +179 -0
- package/dist/check-in/admin/reward.router.d.ts +1091 -0
- package/dist/check-in/admin/reward.service.d.ts +430 -0
- package/dist/check-in/admin/router.d.ts +644 -0
- package/dist/check-in/errors/index.d.ts +10 -0
- package/dist/check-in/errors/locales/zh.d.ts +10 -0
- package/dist/check-in/index.d.ts +5 -0
- package/dist/check-in/internal/reward-config.service.d.ts +97 -0
- package/dist/check-in/permissions.d.ts +2 -0
- package/dist/check-in/reward.db.schemas.d.ts +896 -0
- package/dist/check-in/reward.schema.d.ts +477 -0
- package/dist/content-video/admin/dto.schemas.d.ts +14 -14
- package/dist/content-video/admin/router.d.ts +12 -12
- package/dist/content-video/admin/service.d.ts +1 -0
- package/dist/db/schemas.d.ts +1 -0
- package/dist/index.d.ts +722 -12
- package/dist/lock-activity/admin/dto.schemas.d.ts +16 -0
- package/dist/lock-activity/admin/router.d.ts +69 -1
- package/dist/lock-activity/admin/service.d.ts +134 -8
- package/dist/lock-activity/db.schemas.d.ts +34 -0
- package/dist/lock-activity/internal/service.d.ts +41 -0
- package/dist/lock-activity/schema.d.ts +18 -0
- package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
- package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
- package/dist/lock-activity/user/router.d.ts +16 -0
- package/dist/lock-activity/user/service.d.ts +39 -3
- package/dist/news/admin/router.d.ts +13 -1
- package/package.json +1 -1
|
@@ -54,6 +54,14 @@ export declare const lockActivityListQuerySchema: import("@sinclair/typebox").TO
|
|
|
54
54
|
}>;
|
|
55
55
|
export type LockActivityListQueryType = typeof lockActivityListQuerySchema.static;
|
|
56
56
|
export declare const lockActivityResponseSchema: import("@sinclair/typebox").TObject<{
|
|
57
|
+
coverImageFile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
58
|
+
id: import("@sinclair/typebox").TString;
|
|
59
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
60
|
+
mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
61
|
+
fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
62
|
+
publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
63
|
+
}>>;
|
|
64
|
+
coverImageFileId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
57
65
|
coverImageUrl: import("@sinclair/typebox").TString;
|
|
58
66
|
createdAt: import("@sinclair/typebox").TDate;
|
|
59
67
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
@@ -96,6 +104,14 @@ export declare const lockActivityResponseSchema: import("@sinclair/typebox").TOb
|
|
|
96
104
|
export type LockActivityResponseType = typeof lockActivityResponseSchema.static;
|
|
97
105
|
export declare const lockActivityListResponseSchema: import("@sinclair/typebox").TObject<{
|
|
98
106
|
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
107
|
+
coverImageFile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
108
|
+
id: import("@sinclair/typebox").TString;
|
|
109
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
110
|
+
mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
111
|
+
fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
112
|
+
publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
113
|
+
}>>;
|
|
114
|
+
coverImageFileId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
99
115
|
coverImageUrl: import("@sinclair/typebox").TString;
|
|
100
116
|
createdAt: import("@sinclair/typebox").TDate;
|
|
101
117
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
@@ -35,7 +35,19 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
38
|
+
cookie?: Record<string, {
|
|
39
|
+
domain?: string | undefined;
|
|
40
|
+
expires?: Date | undefined;
|
|
41
|
+
httpOnly?: boolean | undefined;
|
|
42
|
+
maxAge?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
+
partitioned?: boolean | undefined;
|
|
46
|
+
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
+
secure?: boolean | undefined;
|
|
48
|
+
secrets?: string | null | (string | null)[];
|
|
49
|
+
value?: unknown;
|
|
50
|
+
}>;
|
|
39
51
|
};
|
|
40
52
|
path: string;
|
|
41
53
|
route: string;
|
|
@@ -400,6 +412,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
400
412
|
headers: {};
|
|
401
413
|
response: {
|
|
402
414
|
200: {
|
|
415
|
+
coverImageFile?: {
|
|
416
|
+
id: string;
|
|
417
|
+
fileName: string | null;
|
|
418
|
+
mimeType: string | null;
|
|
419
|
+
fileSize: number | null;
|
|
420
|
+
publicUrl: string | null;
|
|
421
|
+
} | undefined;
|
|
422
|
+
coverImageFileId: string | null;
|
|
403
423
|
coverImageUrl: string;
|
|
404
424
|
createdAt: Date;
|
|
405
425
|
description: string | null;
|
|
@@ -468,6 +488,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
468
488
|
headers: {};
|
|
469
489
|
response: {
|
|
470
490
|
200: {
|
|
491
|
+
coverImageFile?: {
|
|
492
|
+
id: string;
|
|
493
|
+
fileName: string | null;
|
|
494
|
+
mimeType: string | null;
|
|
495
|
+
fileSize: number | null;
|
|
496
|
+
publicUrl: string | null;
|
|
497
|
+
} | undefined;
|
|
498
|
+
coverImageFileId: string | null;
|
|
471
499
|
coverImageUrl: string;
|
|
472
500
|
createdAt: Date;
|
|
473
501
|
description: string | null;
|
|
@@ -526,6 +554,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
526
554
|
headers: {};
|
|
527
555
|
response: {
|
|
528
556
|
200: {
|
|
557
|
+
coverImageFile?: {
|
|
558
|
+
id: string;
|
|
559
|
+
fileName: string | null;
|
|
560
|
+
mimeType: string | null;
|
|
561
|
+
fileSize: number | null;
|
|
562
|
+
publicUrl: string | null;
|
|
563
|
+
} | undefined;
|
|
564
|
+
coverImageFileId: string | null;
|
|
529
565
|
coverImageUrl: string;
|
|
530
566
|
createdAt: Date;
|
|
531
567
|
description: string | null;
|
|
@@ -590,6 +626,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
590
626
|
response: {
|
|
591
627
|
200: {
|
|
592
628
|
data: {
|
|
629
|
+
coverImageFile?: {
|
|
630
|
+
id: string;
|
|
631
|
+
fileName: string | null;
|
|
632
|
+
mimeType: string | null;
|
|
633
|
+
fileSize: number | null;
|
|
634
|
+
publicUrl: string | null;
|
|
635
|
+
} | undefined;
|
|
636
|
+
coverImageFileId: string | null;
|
|
593
637
|
coverImageUrl: string;
|
|
594
638
|
createdAt: Date;
|
|
595
639
|
description: string | null;
|
|
@@ -656,6 +700,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
656
700
|
headers: {};
|
|
657
701
|
response: {
|
|
658
702
|
200: {
|
|
703
|
+
coverImageFile?: {
|
|
704
|
+
id: string;
|
|
705
|
+
fileName: string | null;
|
|
706
|
+
mimeType: string | null;
|
|
707
|
+
fileSize: number | null;
|
|
708
|
+
publicUrl: string | null;
|
|
709
|
+
} | undefined;
|
|
710
|
+
coverImageFileId: string | null;
|
|
659
711
|
coverImageUrl: string;
|
|
660
712
|
createdAt: Date;
|
|
661
713
|
description: string | null;
|
|
@@ -716,6 +768,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
716
768
|
headers: {};
|
|
717
769
|
response: {
|
|
718
770
|
200: {
|
|
771
|
+
coverImageFile?: {
|
|
772
|
+
id: string;
|
|
773
|
+
fileName: string | null;
|
|
774
|
+
mimeType: string | null;
|
|
775
|
+
fileSize: number | null;
|
|
776
|
+
publicUrl: string | null;
|
|
777
|
+
} | undefined;
|
|
778
|
+
coverImageFileId: string | null;
|
|
719
779
|
coverImageUrl: string;
|
|
720
780
|
createdAt: Date;
|
|
721
781
|
description: string | null;
|
|
@@ -776,6 +836,14 @@ export declare const lockActivityAdminRouter: Elysia<"/lock_activity", {
|
|
|
776
836
|
headers: {};
|
|
777
837
|
response: {
|
|
778
838
|
200: {
|
|
839
|
+
coverImageFile?: {
|
|
840
|
+
id: string;
|
|
841
|
+
fileName: string | null;
|
|
842
|
+
mimeType: string | null;
|
|
843
|
+
fileSize: number | null;
|
|
844
|
+
publicUrl: string | null;
|
|
845
|
+
} | undefined;
|
|
846
|
+
coverImageFileId: string | null;
|
|
779
847
|
coverImageUrl: string;
|
|
780
848
|
createdAt: Date;
|
|
781
849
|
description: string | null;
|
|
@@ -2,7 +2,16 @@ import type { LockActivityCreateInputType, LockActivityListQueryType, LockActivi
|
|
|
2
2
|
export declare abstract class AdminLockActivityService {
|
|
3
3
|
private static getActivityDetail;
|
|
4
4
|
private static assertCoreUpdateAllowed;
|
|
5
|
-
static createActivity(input: LockActivityCreateInputType): Promise<{
|
|
5
|
+
static createActivity(input: LockActivityCreateInputType): Promise<Omit<{
|
|
6
|
+
coverImageFile: {
|
|
7
|
+
fileName: string | null;
|
|
8
|
+
fileSize: number | null;
|
|
9
|
+
id: string;
|
|
10
|
+
mimeType: string | null;
|
|
11
|
+
publicUrl: string | null;
|
|
12
|
+
thumbnailUrl: string | null;
|
|
13
|
+
} | null;
|
|
14
|
+
coverImageFileId: string | null;
|
|
6
15
|
coverImageUrl: string;
|
|
7
16
|
createdAt: Date;
|
|
8
17
|
description: string | null;
|
|
@@ -55,8 +64,26 @@ export declare abstract class AdminLockActivityService {
|
|
|
55
64
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
56
65
|
title: string;
|
|
57
66
|
updatedAt: Date;
|
|
67
|
+
}, "coverImageFile"> & {
|
|
68
|
+
coverImageUrl: string;
|
|
69
|
+
coverImageFile: {
|
|
70
|
+
id: string;
|
|
71
|
+
fileName: string | null;
|
|
72
|
+
mimeType: string | null;
|
|
73
|
+
fileSize: number | null;
|
|
74
|
+
publicUrl: string | null;
|
|
75
|
+
} | undefined;
|
|
58
76
|
}>;
|
|
59
|
-
static updateActivity(activityId: string, input: LockActivityUpdateInputType): Promise<{
|
|
77
|
+
static updateActivity(activityId: string, input: LockActivityUpdateInputType): Promise<Omit<{
|
|
78
|
+
coverImageFile: {
|
|
79
|
+
fileName: string | null;
|
|
80
|
+
fileSize: number | null;
|
|
81
|
+
id: string;
|
|
82
|
+
mimeType: string | null;
|
|
83
|
+
publicUrl: string | null;
|
|
84
|
+
thumbnailUrl: string | null;
|
|
85
|
+
} | null;
|
|
86
|
+
coverImageFileId: string | null;
|
|
60
87
|
coverImageUrl: string;
|
|
61
88
|
createdAt: Date;
|
|
62
89
|
description: string | null;
|
|
@@ -109,8 +136,26 @@ export declare abstract class AdminLockActivityService {
|
|
|
109
136
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
110
137
|
title: string;
|
|
111
138
|
updatedAt: Date;
|
|
139
|
+
}, "coverImageFile"> & {
|
|
140
|
+
coverImageUrl: string;
|
|
141
|
+
coverImageFile: {
|
|
142
|
+
id: string;
|
|
143
|
+
fileName: string | null;
|
|
144
|
+
mimeType: string | null;
|
|
145
|
+
fileSize: number | null;
|
|
146
|
+
publicUrl: string | null;
|
|
147
|
+
} | undefined;
|
|
112
148
|
}>;
|
|
113
|
-
static activateActivity(activityId: string): Promise<{
|
|
149
|
+
static activateActivity(activityId: string): Promise<Omit<{
|
|
150
|
+
coverImageFile: {
|
|
151
|
+
fileName: string | null;
|
|
152
|
+
fileSize: number | null;
|
|
153
|
+
id: string;
|
|
154
|
+
mimeType: string | null;
|
|
155
|
+
publicUrl: string | null;
|
|
156
|
+
thumbnailUrl: string | null;
|
|
157
|
+
} | null;
|
|
158
|
+
coverImageFileId: string | null;
|
|
114
159
|
coverImageUrl: string;
|
|
115
160
|
createdAt: Date;
|
|
116
161
|
description: string | null;
|
|
@@ -163,8 +208,26 @@ export declare abstract class AdminLockActivityService {
|
|
|
163
208
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
164
209
|
title: string;
|
|
165
210
|
updatedAt: Date;
|
|
211
|
+
}, "coverImageFile"> & {
|
|
212
|
+
coverImageUrl: string;
|
|
213
|
+
coverImageFile: {
|
|
214
|
+
id: string;
|
|
215
|
+
fileName: string | null;
|
|
216
|
+
mimeType: string | null;
|
|
217
|
+
fileSize: number | null;
|
|
218
|
+
publicUrl: string | null;
|
|
219
|
+
} | undefined;
|
|
166
220
|
}>;
|
|
167
|
-
static endActivity(activityId: string): Promise<{
|
|
221
|
+
static endActivity(activityId: string): Promise<Omit<{
|
|
222
|
+
coverImageFile: {
|
|
223
|
+
fileName: string | null;
|
|
224
|
+
fileSize: number | null;
|
|
225
|
+
id: string;
|
|
226
|
+
mimeType: string | null;
|
|
227
|
+
publicUrl: string | null;
|
|
228
|
+
thumbnailUrl: string | null;
|
|
229
|
+
} | null;
|
|
230
|
+
coverImageFileId: string | null;
|
|
168
231
|
coverImageUrl: string;
|
|
169
232
|
createdAt: Date;
|
|
170
233
|
description: string | null;
|
|
@@ -217,8 +280,26 @@ export declare abstract class AdminLockActivityService {
|
|
|
217
280
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
218
281
|
title: string;
|
|
219
282
|
updatedAt: Date;
|
|
283
|
+
}, "coverImageFile"> & {
|
|
284
|
+
coverImageUrl: string;
|
|
285
|
+
coverImageFile: {
|
|
286
|
+
id: string;
|
|
287
|
+
fileName: string | null;
|
|
288
|
+
mimeType: string | null;
|
|
289
|
+
fileSize: number | null;
|
|
290
|
+
publicUrl: string | null;
|
|
291
|
+
} | undefined;
|
|
220
292
|
}>;
|
|
221
|
-
static cancelActivity(activityId: string): Promise<{
|
|
293
|
+
static cancelActivity(activityId: string): Promise<Omit<{
|
|
294
|
+
coverImageFile: {
|
|
295
|
+
fileName: string | null;
|
|
296
|
+
fileSize: number | null;
|
|
297
|
+
id: string;
|
|
298
|
+
mimeType: string | null;
|
|
299
|
+
publicUrl: string | null;
|
|
300
|
+
thumbnailUrl: string | null;
|
|
301
|
+
} | null;
|
|
302
|
+
coverImageFileId: string | null;
|
|
222
303
|
coverImageUrl: string;
|
|
223
304
|
createdAt: Date;
|
|
224
305
|
description: string | null;
|
|
@@ -271,8 +352,26 @@ export declare abstract class AdminLockActivityService {
|
|
|
271
352
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
272
353
|
title: string;
|
|
273
354
|
updatedAt: Date;
|
|
355
|
+
}, "coverImageFile"> & {
|
|
356
|
+
coverImageUrl: string;
|
|
357
|
+
coverImageFile: {
|
|
358
|
+
id: string;
|
|
359
|
+
fileName: string | null;
|
|
360
|
+
mimeType: string | null;
|
|
361
|
+
fileSize: number | null;
|
|
362
|
+
publicUrl: string | null;
|
|
363
|
+
} | undefined;
|
|
274
364
|
}>;
|
|
275
|
-
static getActivity(activityId: string): Promise<{
|
|
365
|
+
static getActivity(activityId: string): Promise<Omit<{
|
|
366
|
+
coverImageFile: {
|
|
367
|
+
fileName: string | null;
|
|
368
|
+
fileSize: number | null;
|
|
369
|
+
id: string;
|
|
370
|
+
mimeType: string | null;
|
|
371
|
+
publicUrl: string | null;
|
|
372
|
+
thumbnailUrl: string | null;
|
|
373
|
+
} | null;
|
|
374
|
+
coverImageFileId: string | null;
|
|
276
375
|
coverImageUrl: string;
|
|
277
376
|
createdAt: Date;
|
|
278
377
|
description: string | null;
|
|
@@ -325,9 +424,27 @@ export declare abstract class AdminLockActivityService {
|
|
|
325
424
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
326
425
|
title: string;
|
|
327
426
|
updatedAt: Date;
|
|
427
|
+
}, "coverImageFile"> & {
|
|
428
|
+
coverImageUrl: string;
|
|
429
|
+
coverImageFile: {
|
|
430
|
+
id: string;
|
|
431
|
+
fileName: string | null;
|
|
432
|
+
mimeType: string | null;
|
|
433
|
+
fileSize: number | null;
|
|
434
|
+
publicUrl: string | null;
|
|
435
|
+
} | undefined;
|
|
328
436
|
}>;
|
|
329
437
|
static listActivities(filters: LockActivityListQueryType): Promise<{
|
|
330
|
-
data: {
|
|
438
|
+
data: (Omit<{
|
|
439
|
+
coverImageFile: {
|
|
440
|
+
fileName: string | null;
|
|
441
|
+
fileSize: number | null;
|
|
442
|
+
id: string;
|
|
443
|
+
mimeType: string | null;
|
|
444
|
+
publicUrl: string | null;
|
|
445
|
+
thumbnailUrl: string | null;
|
|
446
|
+
} | null;
|
|
447
|
+
coverImageFileId: string | null;
|
|
331
448
|
coverImageUrl: string;
|
|
332
449
|
createdAt: Date;
|
|
333
450
|
description: string | null;
|
|
@@ -380,7 +497,16 @@ export declare abstract class AdminLockActivityService {
|
|
|
380
497
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
381
498
|
title: string;
|
|
382
499
|
updatedAt: Date;
|
|
383
|
-
}
|
|
500
|
+
}, "coverImageFile"> & {
|
|
501
|
+
coverImageUrl: string;
|
|
502
|
+
coverImageFile: {
|
|
503
|
+
id: string;
|
|
504
|
+
fileName: string | null;
|
|
505
|
+
mimeType: string | null;
|
|
506
|
+
fileSize: number | null;
|
|
507
|
+
publicUrl: string | null;
|
|
508
|
+
} | undefined;
|
|
509
|
+
})[];
|
|
384
510
|
pagination: {
|
|
385
511
|
pageSize: number;
|
|
386
512
|
pageIndex: number;
|
|
@@ -101,6 +101,23 @@ export declare const lockActivitySelectSchema: import("drizzle-typebox").BuildSc
|
|
|
101
101
|
identity: undefined;
|
|
102
102
|
generated: undefined;
|
|
103
103
|
}, {}, {}>;
|
|
104
|
+
coverImageFileId: import("drizzle-orm/pg-core").PgColumn<{
|
|
105
|
+
name: "cover_image_file_id";
|
|
106
|
+
tableName: "lock_activity";
|
|
107
|
+
dataType: "string";
|
|
108
|
+
columnType: "PgText";
|
|
109
|
+
data: string;
|
|
110
|
+
driverParam: string;
|
|
111
|
+
notNull: false;
|
|
112
|
+
hasDefault: false;
|
|
113
|
+
isPrimaryKey: false;
|
|
114
|
+
isAutoincrement: false;
|
|
115
|
+
hasRuntimeDefault: false;
|
|
116
|
+
enumValues: [string, ...string[]];
|
|
117
|
+
baseColumn: never;
|
|
118
|
+
identity: undefined;
|
|
119
|
+
generated: undefined;
|
|
120
|
+
}, {}, {}>;
|
|
104
121
|
startAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
105
122
|
name: "start_at";
|
|
106
123
|
tableName: "lock_activity";
|
|
@@ -342,6 +359,23 @@ export declare const lockActivityInsertSchema: import("drizzle-typebox").BuildSc
|
|
|
342
359
|
identity: undefined;
|
|
343
360
|
generated: undefined;
|
|
344
361
|
}, {}, {}>;
|
|
362
|
+
coverImageFileId: import("drizzle-orm/pg-core").PgColumn<{
|
|
363
|
+
name: "cover_image_file_id";
|
|
364
|
+
tableName: "lock_activity";
|
|
365
|
+
dataType: "string";
|
|
366
|
+
columnType: "PgText";
|
|
367
|
+
data: string;
|
|
368
|
+
driverParam: string;
|
|
369
|
+
notNull: false;
|
|
370
|
+
hasDefault: false;
|
|
371
|
+
isPrimaryKey: false;
|
|
372
|
+
isAutoincrement: false;
|
|
373
|
+
hasRuntimeDefault: false;
|
|
374
|
+
enumValues: [string, ...string[]];
|
|
375
|
+
baseColumn: never;
|
|
376
|
+
identity: undefined;
|
|
377
|
+
generated: undefined;
|
|
378
|
+
}, {}, {}>;
|
|
345
379
|
startAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
346
380
|
name: "start_at";
|
|
347
381
|
tableName: "lock_activity";
|
|
@@ -3,7 +3,48 @@ export type LockActivityTimeInput = {
|
|
|
3
3
|
startAt: Date;
|
|
4
4
|
endAt: Date;
|
|
5
5
|
};
|
|
6
|
+
export type LockActivityCoverImageFileRow = {
|
|
7
|
+
id: string;
|
|
8
|
+
fileName: string | null;
|
|
9
|
+
mimeType: string | null;
|
|
10
|
+
fileSize: number | null;
|
|
11
|
+
publicUrl: string | null;
|
|
12
|
+
thumbnailUrl: string | null;
|
|
13
|
+
};
|
|
14
|
+
export declare const lockActivityCoverImageFileWith: {
|
|
15
|
+
readonly coverImageFile: {
|
|
16
|
+
readonly columns: {
|
|
17
|
+
readonly id: true;
|
|
18
|
+
readonly fileName: true;
|
|
19
|
+
readonly mimeType: true;
|
|
20
|
+
readonly fileSize: true;
|
|
21
|
+
readonly publicUrl: true;
|
|
22
|
+
readonly thumbnailUrl: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
6
26
|
export declare abstract class InternalLockActivityService {
|
|
27
|
+
static resolveCoverImageUrlFromFile(file: LockActivityCoverImageFileRow | null | undefined, fallbackUrl: string): string;
|
|
28
|
+
static formatCoverImageFile(file: LockActivityCoverImageFileRow | null | undefined): {
|
|
29
|
+
id: string;
|
|
30
|
+
fileName: string | null;
|
|
31
|
+
mimeType: string | null;
|
|
32
|
+
fileSize: number | null;
|
|
33
|
+
publicUrl: string | null;
|
|
34
|
+
} | undefined;
|
|
35
|
+
static formatActivityRow<T extends {
|
|
36
|
+
coverImageUrl: string;
|
|
37
|
+
coverImageFile?: LockActivityCoverImageFileRow | null;
|
|
38
|
+
}>(row: T): Omit<T, "coverImageFile"> & {
|
|
39
|
+
coverImageUrl: string;
|
|
40
|
+
coverImageFile: {
|
|
41
|
+
id: string;
|
|
42
|
+
fileName: string | null;
|
|
43
|
+
mimeType: string | null;
|
|
44
|
+
fileSize: number | null;
|
|
45
|
+
publicUrl: string | null;
|
|
46
|
+
} | undefined;
|
|
47
|
+
};
|
|
7
48
|
static assertTimeRange(input: LockActivityTimeInput): void;
|
|
8
49
|
static assertRewardCnyEquivalent(value: string): string;
|
|
9
50
|
static resolveCoverImageUrlByFileId(tx: TransactionTx, fileId: string): Promise<string>;
|
|
@@ -110,6 +110,23 @@ export declare const lockActivity: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
110
110
|
identity: undefined;
|
|
111
111
|
generated: undefined;
|
|
112
112
|
}, {}, {}>;
|
|
113
|
+
coverImageFileId: import("drizzle-orm/pg-core").PgColumn<{
|
|
114
|
+
name: "cover_image_file_id";
|
|
115
|
+
tableName: "lock_activity";
|
|
116
|
+
dataType: "string";
|
|
117
|
+
columnType: "PgText";
|
|
118
|
+
data: string;
|
|
119
|
+
driverParam: string;
|
|
120
|
+
notNull: false;
|
|
121
|
+
hasDefault: false;
|
|
122
|
+
isPrimaryKey: false;
|
|
123
|
+
isAutoincrement: false;
|
|
124
|
+
hasRuntimeDefault: false;
|
|
125
|
+
enumValues: [string, ...string[]];
|
|
126
|
+
baseColumn: never;
|
|
127
|
+
identity: undefined;
|
|
128
|
+
generated: undefined;
|
|
129
|
+
}, {}, {}>;
|
|
113
130
|
startAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
114
131
|
name: "start_at";
|
|
115
132
|
tableName: "lock_activity";
|
|
@@ -252,4 +269,5 @@ export declare const lockActivity: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
252
269
|
export declare const lockActivityRelations: import("drizzle-orm").Relations<"lock_activity", {
|
|
253
270
|
rewardAsset: import("drizzle-orm").One<"asset", true>;
|
|
254
271
|
receiveAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
|
|
272
|
+
coverImageFile: import("drizzle-orm").One<"file_storage", false>;
|
|
255
273
|
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const lockActivityCoverImageFileSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
id: import("@sinclair/typebox").TString;
|
|
3
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
4
|
+
mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
5
|
+
fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
6
|
+
publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
7
|
+
}>;
|
|
@@ -10,6 +10,14 @@ export declare const lockActivityPublicListQuerySchema: import("@sinclair/typebo
|
|
|
10
10
|
}>;
|
|
11
11
|
export type LockActivityPublicListQueryType = typeof lockActivityPublicListQuerySchema.static;
|
|
12
12
|
export declare const lockActivityPublicResponseSchema: import("@sinclair/typebox").TObject<{
|
|
13
|
+
coverImageFile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
14
|
+
id: import("@sinclair/typebox").TString;
|
|
15
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
16
|
+
mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
17
|
+
fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
18
|
+
publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
19
|
+
}>>;
|
|
20
|
+
coverImageFileId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
13
21
|
coverImageUrl: import("@sinclair/typebox").TString;
|
|
14
22
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
15
23
|
endAt: import("@sinclair/typebox").TDate;
|
|
@@ -35,6 +43,14 @@ export declare const lockActivityPublicResponseSchema: import("@sinclair/typebox
|
|
|
35
43
|
}>;
|
|
36
44
|
export declare const lockActivityPublicListResponseSchema: import("@sinclair/typebox").TObject<{
|
|
37
45
|
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
46
|
+
coverImageFile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
47
|
+
id: import("@sinclair/typebox").TString;
|
|
48
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
49
|
+
mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
50
|
+
fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
51
|
+
publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
52
|
+
}>>;
|
|
53
|
+
coverImageFileId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
38
54
|
coverImageUrl: import("@sinclair/typebox").TString;
|
|
39
55
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
40
56
|
endAt: import("@sinclair/typebox").TDate;
|
|
@@ -67,6 +83,14 @@ export declare const lockActivityPublicListResponseSchema: import("@sinclair/typ
|
|
|
67
83
|
}>;
|
|
68
84
|
}>;
|
|
69
85
|
export declare const lockActivityPublicDetailResponseSchema: import("@sinclair/typebox").TObject<{
|
|
86
|
+
coverImageFile: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
87
|
+
id: import("@sinclair/typebox").TString;
|
|
88
|
+
fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
89
|
+
mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
90
|
+
fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
91
|
+
publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
92
|
+
}>>;
|
|
93
|
+
coverImageFileId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
70
94
|
coverImageUrl: import("@sinclair/typebox").TString;
|
|
71
95
|
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
72
96
|
endAt: import("@sinclair/typebox").TDate;
|
|
@@ -407,6 +407,14 @@ export declare const lockActivityRouter: Elysia<"/lock_activity", {
|
|
|
407
407
|
response: {
|
|
408
408
|
200: {
|
|
409
409
|
data: {
|
|
410
|
+
coverImageFile?: {
|
|
411
|
+
id: string;
|
|
412
|
+
fileName: string | null;
|
|
413
|
+
mimeType: string | null;
|
|
414
|
+
fileSize: number | null;
|
|
415
|
+
publicUrl: string | null;
|
|
416
|
+
} | undefined;
|
|
417
|
+
coverImageFileId: string | null;
|
|
410
418
|
coverImageUrl: string;
|
|
411
419
|
description: string | null;
|
|
412
420
|
endAt: Date;
|
|
@@ -460,6 +468,14 @@ export declare const lockActivityRouter: Elysia<"/lock_activity", {
|
|
|
460
468
|
headers: {};
|
|
461
469
|
response: {
|
|
462
470
|
200: {
|
|
471
|
+
coverImageFile?: {
|
|
472
|
+
id: string;
|
|
473
|
+
fileName: string | null;
|
|
474
|
+
mimeType: string | null;
|
|
475
|
+
fileSize: number | null;
|
|
476
|
+
publicUrl: string | null;
|
|
477
|
+
} | undefined;
|
|
478
|
+
coverImageFileId: string | null;
|
|
463
479
|
coverImageUrl: string;
|
|
464
480
|
description: string | null;
|
|
465
481
|
endAt: Date;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import type { LockActivityPublicListQueryType } from './dto.schemas';
|
|
2
2
|
export declare abstract class UserLockActivityService {
|
|
3
3
|
static listVisibleActivities(filters?: LockActivityPublicListQueryType): Promise<{
|
|
4
|
-
data: {
|
|
4
|
+
data: (Omit<{
|
|
5
|
+
coverImageFile: {
|
|
6
|
+
fileName: string | null;
|
|
7
|
+
fileSize: number | null;
|
|
8
|
+
id: string;
|
|
9
|
+
mimeType: string | null;
|
|
10
|
+
publicUrl: string | null;
|
|
11
|
+
thumbnailUrl: string | null;
|
|
12
|
+
} | null;
|
|
13
|
+
coverImageFileId: string | null;
|
|
5
14
|
coverImageUrl: string;
|
|
6
15
|
description: string | null;
|
|
7
16
|
endAt: Date;
|
|
@@ -19,7 +28,16 @@ export declare abstract class UserLockActivityService {
|
|
|
19
28
|
startAt: Date;
|
|
20
29
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
21
30
|
title: string;
|
|
22
|
-
}
|
|
31
|
+
}, "coverImageFile"> & {
|
|
32
|
+
coverImageUrl: string;
|
|
33
|
+
coverImageFile: {
|
|
34
|
+
id: string;
|
|
35
|
+
fileName: string | null;
|
|
36
|
+
mimeType: string | null;
|
|
37
|
+
fileSize: number | null;
|
|
38
|
+
publicUrl: string | null;
|
|
39
|
+
} | undefined;
|
|
40
|
+
})[];
|
|
23
41
|
pagination: {
|
|
24
42
|
pageSize: number;
|
|
25
43
|
pageIndex: number;
|
|
@@ -28,7 +46,16 @@ export declare abstract class UserLockActivityService {
|
|
|
28
46
|
hasNextPage: boolean;
|
|
29
47
|
};
|
|
30
48
|
}>;
|
|
31
|
-
static getVisibleActivity(activityId: string): Promise<{
|
|
49
|
+
static getVisibleActivity(activityId: string): Promise<Omit<{
|
|
50
|
+
coverImageFile: {
|
|
51
|
+
fileName: string | null;
|
|
52
|
+
fileSize: number | null;
|
|
53
|
+
id: string;
|
|
54
|
+
mimeType: string | null;
|
|
55
|
+
publicUrl: string | null;
|
|
56
|
+
thumbnailUrl: string | null;
|
|
57
|
+
} | null;
|
|
58
|
+
coverImageFileId: string | null;
|
|
32
59
|
coverImageUrl: string;
|
|
33
60
|
description: string | null;
|
|
34
61
|
endAt: Date;
|
|
@@ -46,5 +73,14 @@ export declare abstract class UserLockActivityService {
|
|
|
46
73
|
startAt: Date;
|
|
47
74
|
status: "active" | "cancelled" | "draft" | "ended";
|
|
48
75
|
title: string;
|
|
76
|
+
}, "coverImageFile"> & {
|
|
77
|
+
coverImageUrl: string;
|
|
78
|
+
coverImageFile: {
|
|
79
|
+
id: string;
|
|
80
|
+
fileName: string | null;
|
|
81
|
+
mimeType: string | null;
|
|
82
|
+
fileSize: number | null;
|
|
83
|
+
publicUrl: string | null;
|
|
84
|
+
} | undefined;
|
|
49
85
|
}>;
|
|
50
86
|
}
|
|
@@ -35,7 +35,19 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: string;
|
|
38
|
-
cookie?: Record<string,
|
|
38
|
+
cookie?: Record<string, {
|
|
39
|
+
domain?: string | undefined;
|
|
40
|
+
expires?: Date | undefined;
|
|
41
|
+
httpOnly?: boolean | undefined;
|
|
42
|
+
maxAge?: number | undefined;
|
|
43
|
+
path?: string | undefined;
|
|
44
|
+
priority?: 'low' | 'medium' | 'high' | undefined;
|
|
45
|
+
partitioned?: boolean | undefined;
|
|
46
|
+
sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
|
|
47
|
+
secure?: boolean | undefined;
|
|
48
|
+
secrets?: string | null | (string | null)[];
|
|
49
|
+
value?: unknown;
|
|
50
|
+
}>;
|
|
39
51
|
};
|
|
40
52
|
path: string;
|
|
41
53
|
route: string;
|