@r2wa-org/eden 0.0.110 → 0.0.112
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 +1783 -3
- package/dist/asset/admin/router.d.ts +1 -13
- package/dist/asset-price/user/router.d.ts +13 -1
- 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/content-video/internal/service.d.ts +2 -2
- package/dist/db/schemas.d.ts +2 -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 +1873 -7
- package/dist/live-stream-video/admin/dto.schemas.d.ts +128 -0
- package/dist/live-stream-video/admin/router.d.ts +861 -0
- package/dist/live-stream-video/admin/service.d.ts +211 -0
- package/dist/live-stream-video/db.schemas.d.ts +486 -0
- package/dist/live-stream-video/errors/index.d.ts +17 -0
- package/dist/live-stream-video/errors/locales/zh.d.ts +16 -0
- package/dist/live-stream-video/index.d.ts +8 -0
- package/dist/live-stream-video/internal/service.d.ts +108 -0
- package/dist/live-stream-video/permissions.d.ts +4 -0
- package/dist/live-stream-video/schema.d.ts +257 -0
- package/dist/live-stream-video/user/dto.schemas.d.ts +52 -0
- package/dist/live-stream-video/user/router.d.ts +482 -0
- package/dist/live-stream-video/user/service.d.ts +36 -0
- package/dist/meeting-check-in/admin/attendee-reward.dto.schemas.d.ts +269 -0
- package/dist/meeting-check-in/admin/attendee-reward.service.d.ts +470 -0
- package/dist/meeting-check-in/admin/referral-reward.dto.schemas.d.ts +269 -0
- package/dist/meeting-check-in/admin/referral-reward.service.d.ts +470 -0
- package/dist/meeting-check-in/admin/reward-response.schemas.d.ts +19 -0
- package/dist/meeting-check-in/admin/router.d.ts +4054 -0
- package/dist/meeting-check-in/errors/index.d.ts +22 -0
- package/dist/meeting-check-in/errors/locales/zh.d.ts +21 -0
- package/dist/meeting-check-in/internal/reward-config.service.d.ts +127 -0
- package/dist/meeting-check-in/permissions.d.ts +4 -0
- package/dist/meeting-check-in/reward.db.schemas.d.ts +1656 -0
- package/dist/meeting-check-in/schema.d.ts +884 -0
- package/dist/news/admin/router.d.ts +1 -1
- package/dist/news/admin/service.d.ts +1 -1
- package/dist/news/user/router.d.ts +1 -13
- package/dist/news/user/service.d.ts +2 -2
- package/dist/trade-market/user/router.d.ts +13 -1
- package/dist/transfer/user/router.d.ts +1 -13
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './locales/zh';
|
|
2
|
+
export declare const MeetingCheckInErrorCodes: {
|
|
3
|
+
readonly MEETING_REWARD_PLAN_NOT_FOUND: 'MEETING_REWARD_PLAN_NOT_FOUND';
|
|
4
|
+
readonly MEETING_REWARD_PLAN_ALREADY_EXISTS: 'MEETING_REWARD_PLAN_ALREADY_EXISTS';
|
|
5
|
+
readonly MEETING_REWARD_TIER_NOT_FOUND: 'MEETING_REWARD_TIER_NOT_FOUND';
|
|
6
|
+
readonly MEETING_REWARD_TIER_ALREADY_EXISTS: 'MEETING_REWARD_TIER_ALREADY_EXISTS';
|
|
7
|
+
readonly MEETING_REWARD_AMOUNT_INVALID: 'MEETING_REWARD_AMOUNT_INVALID';
|
|
8
|
+
readonly MEETING_REWARD_CONSECUTIVE_DAY_INVALID: 'MEETING_REWARD_CONSECUTIVE_DAY_INVALID';
|
|
9
|
+
readonly MEETING_REWARD_REFEREE_STREAK_DAYS_INVALID: 'MEETING_REWARD_REFEREE_STREAK_DAYS_INVALID';
|
|
10
|
+
readonly MEETING_REWARD_REFEREE_STREAK_RANGE_INVALID: 'MEETING_REWARD_REFEREE_STREAK_RANGE_INVALID';
|
|
11
|
+
readonly MEETING_REWARD_REFEREE_STREAK_RANGE_OVERLAP: 'MEETING_REWARD_REFEREE_STREAK_RANGE_OVERLAP';
|
|
12
|
+
readonly MEETING_REWARD_ASSET_NOT_FOUND: 'MEETING_REWARD_ASSET_NOT_FOUND';
|
|
13
|
+
readonly MEETING_REWARD_ASSET_INACTIVE: 'MEETING_REWARD_ASSET_INACTIVE';
|
|
14
|
+
readonly MEETING_REWARD_ACCOUNT_TYPE_NOT_FOUND: 'MEETING_REWARD_ACCOUNT_TYPE_NOT_FOUND';
|
|
15
|
+
readonly MEETING_REWARD_ACCOUNT_TYPE_INACTIVE: 'MEETING_REWARD_ACCOUNT_TYPE_INACTIVE';
|
|
16
|
+
};
|
|
17
|
+
type MeetingCheckInErrorCodesType = typeof MeetingCheckInErrorCodes;
|
|
18
|
+
export type MeetingCheckInErrorCode = keyof MeetingCheckInErrorCodesType;
|
|
19
|
+
declare module '../../error/errorcode' {
|
|
20
|
+
interface ErrorCodeRegistry extends MeetingCheckInErrorCodesType {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const zh: {
|
|
2
|
+
MEETING_REWARD_PLAN_NOT_FOUND: string;
|
|
3
|
+
MEETING_REWARD_PLAN_ALREADY_EXISTS: string;
|
|
4
|
+
MEETING_REWARD_TIER_NOT_FOUND: string;
|
|
5
|
+
MEETING_REWARD_TIER_ALREADY_EXISTS: string;
|
|
6
|
+
MEETING_REWARD_AMOUNT_INVALID: string;
|
|
7
|
+
MEETING_REWARD_CONSECUTIVE_DAY_INVALID: string;
|
|
8
|
+
MEETING_REWARD_REFEREE_STREAK_DAYS_INVALID: string;
|
|
9
|
+
MEETING_REWARD_REFEREE_STREAK_RANGE_INVALID: string;
|
|
10
|
+
MEETING_REWARD_REFEREE_STREAK_RANGE_OVERLAP: string;
|
|
11
|
+
MEETING_REWARD_ASSET_NOT_FOUND: string;
|
|
12
|
+
MEETING_REWARD_ASSET_INACTIVE: string;
|
|
13
|
+
MEETING_REWARD_ACCOUNT_TYPE_NOT_FOUND: string;
|
|
14
|
+
MEETING_REWARD_ACCOUNT_TYPE_INACTIVE: string;
|
|
15
|
+
};
|
|
16
|
+
type ZHType = typeof zh;
|
|
17
|
+
declare module '../../../error/messages' {
|
|
18
|
+
interface ErrorMessageRegistry extends ZHType {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { TransactionTx } from '../../db/transaction';
|
|
2
|
+
import { MeetingCheckInErrorCodes } from '../errors';
|
|
3
|
+
export declare abstract class InternalMeetingRewardConfigService {
|
|
4
|
+
static assertNonNegativeAmount(value: string): string;
|
|
5
|
+
static assertPositiveConsecutiveDay(consecutiveDay: number): void;
|
|
6
|
+
static assertPositiveStreakDay(value: number, invalidCode: typeof MeetingCheckInErrorCodes.MEETING_REWARD_REFEREE_STREAK_DAYS_INVALID): void;
|
|
7
|
+
static assertPositiveRefereeMinStreakDays(refereeMinStreakDays: number): void;
|
|
8
|
+
static assertReferralTierRangeBounds(refereeMinStreakDays: number, refereeMaxStreakDays: number | null | undefined): void;
|
|
9
|
+
private static referralRangesOverlap;
|
|
10
|
+
static assertReferralTiersNoOverlap(tiers: Array<{
|
|
11
|
+
refereeMinStreakDays: number;
|
|
12
|
+
refereeMaxStreakDays: number | null;
|
|
13
|
+
}>): void;
|
|
14
|
+
static assertReferralTierUnique(tx: TransactionTx, input: {
|
|
15
|
+
planId: string;
|
|
16
|
+
refereeMinStreakDays: number;
|
|
17
|
+
excludeTierId?: string;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
static assertReferralPlanTiersNoOverlap(tx: TransactionTx, planId: string): Promise<void>;
|
|
20
|
+
static ensureRewardAssetValid(tx: TransactionTx, rewardAssetId: string): Promise<{
|
|
21
|
+
category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
|
|
22
|
+
code: string;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
iconUrl: string;
|
|
25
|
+
id: string;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
name: string;
|
|
28
|
+
precision: number;
|
|
29
|
+
symbol: string | null;
|
|
30
|
+
typeId: string | null;
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
}>;
|
|
33
|
+
static ensurePayoutAccountTypeValid(tx: TransactionTx, accountTypeId: string): Promise<{
|
|
34
|
+
allowDeposit: boolean;
|
|
35
|
+
allowInternalReceiveTransfer: boolean;
|
|
36
|
+
allowInternalTransfer: boolean;
|
|
37
|
+
allowTransaction: boolean;
|
|
38
|
+
allowTransfer: boolean;
|
|
39
|
+
allowWithdraw: boolean;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
description: string | null;
|
|
42
|
+
expiryDays: number | null;
|
|
43
|
+
hasExpiry: boolean;
|
|
44
|
+
id: string;
|
|
45
|
+
internalTransferRatio: string;
|
|
46
|
+
isActive: boolean;
|
|
47
|
+
key: string;
|
|
48
|
+
maxInternalTransferAmount: string;
|
|
49
|
+
maxTransferAmount: string;
|
|
50
|
+
maxWithdrawAmount: string;
|
|
51
|
+
minInternalTransferAmount: string;
|
|
52
|
+
minTransferAmount: string;
|
|
53
|
+
minWithdrawAmount: string;
|
|
54
|
+
name: string;
|
|
55
|
+
sortOrder: number;
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
}>;
|
|
58
|
+
static ensurePlanAssetsAndAccountsValid(tx: TransactionTx, input: {
|
|
59
|
+
cashAssetId: string;
|
|
60
|
+
cashPayoutAccountTypeId: string;
|
|
61
|
+
coinAssetId: string;
|
|
62
|
+
coinPayoutAccountTypeId: string;
|
|
63
|
+
}): Promise<void>;
|
|
64
|
+
static assertAttendeeTierUnique(tx: TransactionTx, input: {
|
|
65
|
+
planId: string;
|
|
66
|
+
consecutiveDay: number;
|
|
67
|
+
excludeTierId?: string;
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
static findAttendeeSingletonPlan(tx: TransactionTx): Promise<{
|
|
70
|
+
cashAssetId: string;
|
|
71
|
+
cashPayoutAccountTypeId: string;
|
|
72
|
+
coinAssetId: string;
|
|
73
|
+
coinPayoutAccountTypeId: string;
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
createdBy: string;
|
|
76
|
+
id: string;
|
|
77
|
+
isEnabled: boolean;
|
|
78
|
+
name: string;
|
|
79
|
+
sortOrder: number;
|
|
80
|
+
updatedAt: Date;
|
|
81
|
+
updatedBy: string | null;
|
|
82
|
+
} | undefined>;
|
|
83
|
+
static ensureAttendeeSingletonPlan(tx: TransactionTx): Promise<{
|
|
84
|
+
cashAssetId: string;
|
|
85
|
+
cashPayoutAccountTypeId: string;
|
|
86
|
+
coinAssetId: string;
|
|
87
|
+
coinPayoutAccountTypeId: string;
|
|
88
|
+
createdAt: Date;
|
|
89
|
+
createdBy: string;
|
|
90
|
+
id: string;
|
|
91
|
+
isEnabled: boolean;
|
|
92
|
+
name: string;
|
|
93
|
+
sortOrder: number;
|
|
94
|
+
updatedAt: Date;
|
|
95
|
+
updatedBy: string | null;
|
|
96
|
+
}>;
|
|
97
|
+
static assertNoAttendeeSingletonPlan(tx: TransactionTx): Promise<void>;
|
|
98
|
+
static findReferralSingletonPlan(tx: TransactionTx): Promise<{
|
|
99
|
+
cashAssetId: string;
|
|
100
|
+
cashPayoutAccountTypeId: string;
|
|
101
|
+
coinAssetId: string;
|
|
102
|
+
coinPayoutAccountTypeId: string;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
createdBy: string;
|
|
105
|
+
id: string;
|
|
106
|
+
isEnabled: boolean;
|
|
107
|
+
name: string;
|
|
108
|
+
sortOrder: number;
|
|
109
|
+
updatedAt: Date;
|
|
110
|
+
updatedBy: string | null;
|
|
111
|
+
} | undefined>;
|
|
112
|
+
static ensureReferralSingletonPlan(tx: TransactionTx): Promise<{
|
|
113
|
+
cashAssetId: string;
|
|
114
|
+
cashPayoutAccountTypeId: string;
|
|
115
|
+
coinAssetId: string;
|
|
116
|
+
coinPayoutAccountTypeId: string;
|
|
117
|
+
createdAt: Date;
|
|
118
|
+
createdBy: string;
|
|
119
|
+
id: string;
|
|
120
|
+
isEnabled: boolean;
|
|
121
|
+
name: string;
|
|
122
|
+
sortOrder: number;
|
|
123
|
+
updatedAt: Date;
|
|
124
|
+
updatedBy: string | null;
|
|
125
|
+
}>;
|
|
126
|
+
static assertNoReferralSingletonPlan(tx: TransactionTx): Promise<void>;
|
|
127
|
+
}
|