@aitlabs/namkwong 0.0.92 → 0.0.103
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 +2807 -797
- package/dist/app-version/admin/router.d.ts +13 -1
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +8 -0
- package/dist/asset-convert-product/admin/router.d.ts +12 -12
- package/dist/asset-convert-product/admin/service.d.ts +12 -12
- package/dist/auth/better-auth.d.ts +19 -1
- package/dist/auth/i18n/zh.d.ts +100 -0
- package/dist/auth/permissions.d.ts +16 -1
- package/dist/auth/roles.d.ts +45 -0
- package/dist/check-in/admin/reward.dto.schemas.d.ts +321 -0
- package/dist/check-in/admin/reward.router.d.ts +1109 -0
- package/dist/check-in/admin/reward.service.d.ts +433 -0
- package/dist/check-in/admin/router.d.ts +662 -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 +128 -0
- package/dist/content-video/admin/router.d.ts +861 -0
- package/dist/content-video/admin/service.d.ts +211 -0
- package/dist/content-video/db.schemas.d.ts +486 -0
- package/dist/content-video/errors/index.d.ts +17 -0
- package/dist/content-video/errors/locales/zh.d.ts +16 -0
- package/dist/content-video/index.d.ts +8 -0
- package/dist/content-video/internal/service.d.ts +106 -0
- package/dist/content-video/permissions.d.ts +4 -0
- package/dist/content-video/schema.d.ts +257 -0
- package/dist/content-video/user/dto.schemas.d.ts +52 -0
- package/dist/content-video/user/router.d.ts +482 -0
- package/dist/content-video/user/service.d.ts +36 -0
- package/dist/db/schemas.d.ts +4 -0
- package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
- package/dist/file-storage/admin/router.d.ts +2 -2
- package/dist/file-storage/admin/service.d.ts +2 -2
- package/dist/file-storage/db.schemas.d.ts +4 -4
- package/dist/file-storage/internal/service.d.ts +1 -1
- package/dist/file-storage/s3.client.d.ts +22 -0
- package/dist/file-storage/schema.d.ts +3 -3
- package/dist/file-storage/share/dto.schemas.d.ts +1 -0
- package/dist/file-storage/share/router.d.ts +1 -1
- package/dist/file-storage/user/dto.schemas.d.ts +6 -4
- package/dist/file-storage/user/router.d.ts +3 -3
- package/dist/file-storage/user/service.d.ts +2 -2
- package/dist/index.d.ts +3131 -805
- package/dist/ledger/admin/dto.schemas.d.ts +8 -0
- package/dist/ledger/admin/router.d.ts +5 -17
- package/dist/ledger/db.schemas.d.ts +8 -8
- package/dist/ledger/schema.d.ts +6 -6
- package/dist/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/ledger/user/router.d.ts +2 -2
- package/dist/ledger/user/service.d.ts +2 -2
- package/dist/lock-activity/admin/dto.schemas.d.ts +161 -0
- package/dist/lock-activity/admin/participation.dto.schemas.d.ts +200 -0
- package/dist/lock-activity/admin/participation.service.d.ts +144 -0
- package/dist/lock-activity/admin/reward.service.d.ts +48 -0
- package/dist/lock-activity/admin/router.d.ts +1399 -0
- package/dist/lock-activity/admin/service.d.ts +518 -0
- package/dist/lock-activity/constants.d.ts +2 -0
- package/dist/lock-activity/cron.d.ts +6 -0
- package/dist/lock-activity/db.schemas.d.ts +516 -0
- package/dist/lock-activity/errors/index.d.ts +32 -0
- package/dist/lock-activity/errors/locales/zh.d.ts +31 -0
- package/dist/lock-activity/index.d.ts +7 -0
- package/dist/lock-activity/internal/participation.service.d.ts +42 -0
- package/dist/lock-activity/internal/reward.service.d.ts +15 -0
- package/dist/lock-activity/internal/service.d.ts +66 -0
- package/dist/lock-activity/participation.db.schemas.d.ts +448 -0
- package/dist/lock-activity/participation.schema.d.ts +239 -0
- package/dist/lock-activity/permissions.d.ts +5 -0
- package/dist/lock-activity/schema.d.ts +273 -0
- package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
- package/dist/lock-activity/user/dto.schemas.d.ts +116 -0
- package/dist/lock-activity/user/participation.dto.schemas.d.ts +25 -0
- package/dist/lock-activity/user/participation.service.d.ts +24 -0
- package/dist/lock-activity/user/router.d.ts +624 -0
- package/dist/lock-activity/user/service.d.ts +86 -0
- package/dist/market-pricing/admin/router.d.ts +13 -1
- package/dist/news/admin/dto.schemas.d.ts +26 -26
- package/dist/news/admin/router.d.ts +25 -25
- package/dist/news/admin/service.d.ts +4 -1
- package/dist/news/user/service.d.ts +2 -2
- package/dist/referral/index.d.ts +1 -0
- package/dist/referral/user/router.d.ts +29 -1
- package/dist/wallet-type/admin/router.d.ts +1 -13
- package/package.json +1 -1
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { LockActivityPublicListQueryType } from './dto.schemas';
|
|
2
|
+
export declare abstract class UserLockActivityService {
|
|
3
|
+
static listVisibleActivities(filters?: LockActivityPublicListQueryType): Promise<{
|
|
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;
|
|
14
|
+
coverImageUrl: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
endAt: Date;
|
|
17
|
+
id: string;
|
|
18
|
+
isVisibleOnFrontend: boolean;
|
|
19
|
+
rewardAsset: {
|
|
20
|
+
code: string;
|
|
21
|
+
iconUrl: string;
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
symbol: string | null;
|
|
25
|
+
};
|
|
26
|
+
rewardCnyEquivalent: string;
|
|
27
|
+
sortOrder: number;
|
|
28
|
+
startAt: Date;
|
|
29
|
+
status: "active" | "cancelled" | "draft" | "ended";
|
|
30
|
+
title: string;
|
|
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
|
+
})[];
|
|
41
|
+
pagination: {
|
|
42
|
+
pageSize: number;
|
|
43
|
+
pageIndex: number;
|
|
44
|
+
total: number;
|
|
45
|
+
totalPages: number;
|
|
46
|
+
hasNextPage: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>;
|
|
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;
|
|
59
|
+
coverImageUrl: string;
|
|
60
|
+
description: string | null;
|
|
61
|
+
endAt: Date;
|
|
62
|
+
id: string;
|
|
63
|
+
isVisibleOnFrontend: boolean;
|
|
64
|
+
rewardAsset: {
|
|
65
|
+
code: string;
|
|
66
|
+
iconUrl: string;
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
symbol: string | null;
|
|
70
|
+
};
|
|
71
|
+
rewardCnyEquivalent: string;
|
|
72
|
+
sortOrder: number;
|
|
73
|
+
startAt: Date;
|
|
74
|
+
status: "active" | "cancelled" | "draft" | "ended";
|
|
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;
|
|
85
|
+
}>;
|
|
86
|
+
}
|
|
@@ -35,7 +35,19 @@ export declare const marketPricingAdminRouter: Elysia<"/market_pricing", {
|
|
|
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;
|
|
@@ -97,49 +97,49 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
|
|
|
97
97
|
}>;
|
|
98
98
|
}>;
|
|
99
99
|
export declare const newsCreateModel: import("@sinclair/typebox").TObject<{
|
|
100
|
-
|
|
101
|
-
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
102
|
-
content: import("@sinclair/typebox").TString;
|
|
100
|
+
attachmentIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
103
101
|
categoryId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
102
|
+
content: import("@sinclair/typebox").TString;
|
|
103
|
+
expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
104
|
+
externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
105
|
+
hasVideo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
106
|
+
isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
107
|
+
isPinned: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
108
|
+
publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
109
|
+
requireReadConfirmation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
110
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
111
|
+
sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
104
112
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
105
113
|
archived: "archived";
|
|
106
114
|
draft: "draft";
|
|
107
115
|
published: "published";
|
|
108
116
|
}>>;
|
|
109
|
-
|
|
110
|
-
isPinned: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
111
|
-
isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
112
|
-
hasVideo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
113
|
-
sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
114
|
-
requireReadConfirmation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
115
|
-
externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
116
|
-
publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
|
|
117
|
-
expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
|
|
117
|
+
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
118
118
|
thumbnailId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
119
|
-
|
|
119
|
+
title: import("@sinclair/typebox").TString;
|
|
120
120
|
}>;
|
|
121
121
|
export type NewsCreateInput = typeof newsCreateModel.static;
|
|
122
122
|
export declare const newsUpdateModel: import("@sinclair/typebox").TObject<{
|
|
123
|
-
|
|
124
|
-
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
125
|
-
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
123
|
+
attachmentIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>, import("@sinclair/typebox").TNull]>>;
|
|
126
124
|
categoryId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
125
|
+
content: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
126
|
+
expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
127
|
+
externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
128
|
+
hasVideo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
129
|
+
isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
130
|
+
isPinned: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
131
|
+
publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
132
|
+
requireReadConfirmation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
133
|
+
scope: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
134
|
+
sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
127
135
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
128
136
|
archived: "archived";
|
|
129
137
|
draft: "draft";
|
|
130
138
|
published: "published";
|
|
131
139
|
}>>;
|
|
132
|
-
|
|
133
|
-
isPinned: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
134
|
-
isHot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
135
|
-
hasVideo: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
136
|
-
sortOrder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
137
|
-
requireReadConfirmation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
138
|
-
externalUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
139
|
-
publishedAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
|
|
140
|
-
expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>>;
|
|
140
|
+
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
141
141
|
thumbnailId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>>;
|
|
142
|
-
|
|
142
|
+
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
143
143
|
}>;
|
|
144
144
|
export type NewsUpdateInput = typeof newsUpdateModel.static;
|
|
145
145
|
export declare const newsListQueryModel: import("@sinclair/typebox").TObject<{
|
|
@@ -383,22 +383,22 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
383
383
|
news: {
|
|
384
384
|
post: {
|
|
385
385
|
body: {
|
|
386
|
-
|
|
387
|
-
summary?: string | null | undefined;
|
|
388
|
-
content: string;
|
|
386
|
+
attachmentIds?: string[] | null | undefined;
|
|
389
387
|
categoryId?: string | undefined;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
isHot?: boolean | undefined;
|
|
388
|
+
content: string;
|
|
389
|
+
expiresAt?: string | Date | null | undefined;
|
|
390
|
+
externalUrl?: string | null | undefined;
|
|
394
391
|
hasVideo?: boolean | undefined;
|
|
395
|
-
|
|
392
|
+
isHot?: boolean | undefined;
|
|
393
|
+
isPinned?: boolean | undefined;
|
|
394
|
+
publishedAt?: string | Date | null | undefined;
|
|
396
395
|
requireReadConfirmation?: boolean | undefined;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
396
|
+
scope?: string[] | undefined;
|
|
397
|
+
sortOrder?: number | undefined;
|
|
398
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
399
|
+
summary?: string | null | undefined;
|
|
400
400
|
thumbnailId?: string | null | undefined;
|
|
401
|
-
|
|
401
|
+
title: string;
|
|
402
402
|
};
|
|
403
403
|
params: {};
|
|
404
404
|
query: {};
|
|
@@ -539,7 +539,7 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
539
539
|
archivedAt: Date | null;
|
|
540
540
|
businessId: string | null;
|
|
541
541
|
businessMetadata: string | null;
|
|
542
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
542
|
+
businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
543
543
|
createdAt: Date;
|
|
544
544
|
deletedAt: Date | null;
|
|
545
545
|
downloadCount: number | null;
|
|
@@ -591,22 +591,22 @@ export declare const newsAdminRouter: Elysia<"/news", {
|
|
|
591
591
|
":id": {
|
|
592
592
|
patch: {
|
|
593
593
|
body: {
|
|
594
|
-
|
|
595
|
-
summary?: string | null | undefined;
|
|
596
|
-
content?: string | undefined;
|
|
594
|
+
attachmentIds?: string[] | null | undefined;
|
|
597
595
|
categoryId?: string | undefined;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
isHot?: boolean | undefined;
|
|
596
|
+
content?: string | undefined;
|
|
597
|
+
expiresAt?: string | Date | null | undefined;
|
|
598
|
+
externalUrl?: string | null | undefined;
|
|
602
599
|
hasVideo?: boolean | undefined;
|
|
603
|
-
|
|
600
|
+
isHot?: boolean | undefined;
|
|
601
|
+
isPinned?: boolean | undefined;
|
|
602
|
+
publishedAt?: string | Date | null | undefined;
|
|
604
603
|
requireReadConfirmation?: boolean | undefined;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
604
|
+
scope?: string[] | undefined;
|
|
605
|
+
sortOrder?: number | undefined;
|
|
606
|
+
status?: "archived" | "draft" | "published" | undefined;
|
|
607
|
+
summary?: string | null | undefined;
|
|
608
608
|
thumbnailId?: string | null | undefined;
|
|
609
|
-
|
|
609
|
+
title?: string | undefined;
|
|
610
610
|
};
|
|
611
611
|
params: {
|
|
612
612
|
id: string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { NewsCreateInput, NewsListQuery, NewsUpdateInput } from './dto.schemas';
|
|
2
2
|
import { BaseNewsService } from '../internal/service';
|
|
3
3
|
export declare abstract class AdminNewsService extends BaseNewsService {
|
|
4
|
+
private static normalizeDate;
|
|
5
|
+
private static normalizeFileId;
|
|
6
|
+
private static normalizeNewsInput;
|
|
4
7
|
private static generateFakeViewCount;
|
|
5
8
|
static createNews(data: NewsCreateInput, createdBy: string): Promise<{
|
|
6
9
|
attachmentIds: string[] | null;
|
|
@@ -88,7 +91,7 @@ export declare abstract class AdminNewsService extends BaseNewsService {
|
|
|
88
91
|
archivedAt: Date | null;
|
|
89
92
|
businessId: string | null;
|
|
90
93
|
businessMetadata: string | null;
|
|
91
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
94
|
+
businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
92
95
|
createdAt: Date;
|
|
93
96
|
deletedAt: Date | null;
|
|
94
97
|
downloadCount: number | null;
|
|
@@ -85,7 +85,7 @@ export declare abstract class UserNewsService extends BaseNewsService {
|
|
|
85
85
|
archivedAt: Date | null;
|
|
86
86
|
businessId: string | null;
|
|
87
87
|
businessMetadata: string | null;
|
|
88
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
88
|
+
businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
89
89
|
createdAt: Date;
|
|
90
90
|
deletedAt: Date | null;
|
|
91
91
|
downloadCount: number | null;
|
|
@@ -152,7 +152,7 @@ export declare abstract class UserNewsService extends BaseNewsService {
|
|
|
152
152
|
archivedAt: Date | null;
|
|
153
153
|
businessId: string | null;
|
|
154
154
|
businessMetadata: string | null;
|
|
155
|
-
businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
155
|
+
businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
|
|
156
156
|
createdAt: Date;
|
|
157
157
|
deletedAt: Date | null;
|
|
158
158
|
downloadCount: number | null;
|
package/dist/referral/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ReferralAdminQueryType, ReferralAdminSummaryType } from './admin/dto.schemas';
|
|
2
|
+
export { referralAdminRouter } from './admin/router';
|
|
2
3
|
export { AdminReferralService } from './admin/service';
|
|
3
4
|
export { BaseReferralService, InternalReferralService } from './internal/service';
|
|
4
5
|
export { referralPermissions } from './permissions';
|
|
@@ -394,7 +394,35 @@ export declare const referralRouter: Elysia<"/referrals", {
|
|
|
394
394
|
200: {
|
|
395
395
|
exists: boolean;
|
|
396
396
|
};
|
|
397
|
-
|
|
397
|
+
422: {
|
|
398
|
+
type: 'validation';
|
|
399
|
+
on: string;
|
|
400
|
+
summary?: string;
|
|
401
|
+
message?: string;
|
|
402
|
+
found?: unknown;
|
|
403
|
+
property?: string;
|
|
404
|
+
expected?: string;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
} & {
|
|
412
|
+
referrals: {
|
|
413
|
+
code: {
|
|
414
|
+
check: {
|
|
415
|
+
post: {
|
|
416
|
+
body: {
|
|
417
|
+
referralCode: string;
|
|
418
|
+
};
|
|
419
|
+
params: {};
|
|
420
|
+
query: {};
|
|
421
|
+
headers: {};
|
|
422
|
+
response: {
|
|
423
|
+
200: {
|
|
424
|
+
exists: boolean;
|
|
425
|
+
};
|
|
398
426
|
422: {
|
|
399
427
|
type: 'validation';
|
|
400
428
|
on: string;
|
|
@@ -35,19 +35,7 @@ export declare const walletTypeAdminRouter: Elysia<"/wallet_types", {
|
|
|
35
35
|
headers: import("elysia").HTTPHeaders;
|
|
36
36
|
status?: number | keyof import("elysia").StatusMap;
|
|
37
37
|
redirect?: 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
|
-
}>;
|
|
38
|
+
cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
|
|
51
39
|
};
|
|
52
40
|
path: string;
|
|
53
41
|
route: string;
|