@r2wa-org/eden 0.0.91 → 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.
- package/dist/admin/index.d.ts +447 -0
- package/dist/asset/admin/router.d.ts +13 -1
- package/dist/asset-price/admin/router.d.ts +1 -13
- package/dist/auth/better-auth.d.ts +1 -1
- package/dist/check-in/admin/router.d.ts +13 -1
- package/dist/db/schemas.d.ts +1 -0
- package/dist/file-storage/share/router.d.ts +1 -13
- package/dist/index.d.ts +556 -3
- package/dist/ledger-account-import/admin/router.d.ts +1 -13
- package/dist/lock-activity/admin/dto.schemas.d.ts +145 -0
- package/dist/lock-activity/admin/router.d.ts +900 -0
- package/dist/lock-activity/admin/service.d.ts +392 -0
- package/dist/lock-activity/db.schemas.d.ts +482 -0
- package/dist/lock-activity/errors/index.d.ts +21 -0
- package/dist/lock-activity/errors/locales/zh.d.ts +20 -0
- package/dist/lock-activity/index.d.ts +7 -0
- package/dist/lock-activity/internal/service.d.ts +25 -0
- package/dist/lock-activity/permissions.d.ts +4 -0
- package/dist/lock-activity/schema.d.ts +255 -0
- package/dist/lock-activity/user/dto.schemas.d.ts +92 -0
- package/dist/lock-activity/user/router.d.ts +528 -0
- package/dist/lock-activity/user/service.d.ts +50 -0
- package/dist/trade-market/admin/service.d.ts +1 -0
- package/dist/trade-market/errors/index.d.ts +1 -0
- package/dist/trade-market/errors/locales/zh.d.ts +1 -0
- package/dist/user-security/admin/router.d.ts +13 -1
- package/package.json +2 -2
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/** 锁仓活动配置状态 */
|
|
2
|
+
export declare const lockActivityStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "active", "ended", "cancelled"]>;
|
|
3
|
+
/**
|
|
4
|
+
* 锁仓活动配置表
|
|
5
|
+
* 后台配置活动展示与奖励规则;奖励固定发放至锁仓账户
|
|
6
|
+
*/
|
|
7
|
+
export declare const lockActivity: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8
|
+
name: "lock_activity";
|
|
9
|
+
schema: undefined;
|
|
10
|
+
columns: {
|
|
11
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
12
|
+
name: "created_at";
|
|
13
|
+
tableName: "lock_activity";
|
|
14
|
+
dataType: "date";
|
|
15
|
+
columnType: "PgTimestamp";
|
|
16
|
+
data: Date;
|
|
17
|
+
driverParam: string;
|
|
18
|
+
notNull: true;
|
|
19
|
+
hasDefault: true;
|
|
20
|
+
isPrimaryKey: false;
|
|
21
|
+
isAutoincrement: false;
|
|
22
|
+
hasRuntimeDefault: false;
|
|
23
|
+
enumValues: undefined;
|
|
24
|
+
baseColumn: never;
|
|
25
|
+
identity: undefined;
|
|
26
|
+
generated: undefined;
|
|
27
|
+
}, {}, {}>;
|
|
28
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
29
|
+
name: "updated_at";
|
|
30
|
+
tableName: "lock_activity";
|
|
31
|
+
dataType: "date";
|
|
32
|
+
columnType: "PgTimestamp";
|
|
33
|
+
data: Date;
|
|
34
|
+
driverParam: string;
|
|
35
|
+
notNull: true;
|
|
36
|
+
hasDefault: true;
|
|
37
|
+
isPrimaryKey: false;
|
|
38
|
+
isAutoincrement: false;
|
|
39
|
+
hasRuntimeDefault: false;
|
|
40
|
+
enumValues: undefined;
|
|
41
|
+
baseColumn: never;
|
|
42
|
+
identity: undefined;
|
|
43
|
+
generated: undefined;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
46
|
+
name: "id";
|
|
47
|
+
tableName: "lock_activity";
|
|
48
|
+
dataType: "string";
|
|
49
|
+
columnType: "PgUUID";
|
|
50
|
+
data: string;
|
|
51
|
+
driverParam: string;
|
|
52
|
+
notNull: true;
|
|
53
|
+
hasDefault: true;
|
|
54
|
+
isPrimaryKey: true;
|
|
55
|
+
isAutoincrement: false;
|
|
56
|
+
hasRuntimeDefault: false;
|
|
57
|
+
enumValues: undefined;
|
|
58
|
+
baseColumn: never;
|
|
59
|
+
identity: undefined;
|
|
60
|
+
generated: undefined;
|
|
61
|
+
}, {}, {}>;
|
|
62
|
+
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
63
|
+
name: "title";
|
|
64
|
+
tableName: "lock_activity";
|
|
65
|
+
dataType: "string";
|
|
66
|
+
columnType: "PgText";
|
|
67
|
+
data: string;
|
|
68
|
+
driverParam: string;
|
|
69
|
+
notNull: true;
|
|
70
|
+
hasDefault: false;
|
|
71
|
+
isPrimaryKey: false;
|
|
72
|
+
isAutoincrement: false;
|
|
73
|
+
hasRuntimeDefault: false;
|
|
74
|
+
enumValues: [string, ...string[]];
|
|
75
|
+
baseColumn: never;
|
|
76
|
+
identity: undefined;
|
|
77
|
+
generated: undefined;
|
|
78
|
+
}, {}, {}>;
|
|
79
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
80
|
+
name: "description";
|
|
81
|
+
tableName: "lock_activity";
|
|
82
|
+
dataType: "string";
|
|
83
|
+
columnType: "PgText";
|
|
84
|
+
data: string;
|
|
85
|
+
driverParam: string;
|
|
86
|
+
notNull: false;
|
|
87
|
+
hasDefault: false;
|
|
88
|
+
isPrimaryKey: false;
|
|
89
|
+
isAutoincrement: false;
|
|
90
|
+
hasRuntimeDefault: false;
|
|
91
|
+
enumValues: [string, ...string[]];
|
|
92
|
+
baseColumn: never;
|
|
93
|
+
identity: undefined;
|
|
94
|
+
generated: undefined;
|
|
95
|
+
}, {}, {}>;
|
|
96
|
+
coverImageUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
97
|
+
name: "cover_image_url";
|
|
98
|
+
tableName: "lock_activity";
|
|
99
|
+
dataType: "string";
|
|
100
|
+
columnType: "PgText";
|
|
101
|
+
data: string;
|
|
102
|
+
driverParam: string;
|
|
103
|
+
notNull: true;
|
|
104
|
+
hasDefault: false;
|
|
105
|
+
isPrimaryKey: false;
|
|
106
|
+
isAutoincrement: false;
|
|
107
|
+
hasRuntimeDefault: false;
|
|
108
|
+
enumValues: [string, ...string[]];
|
|
109
|
+
baseColumn: never;
|
|
110
|
+
identity: undefined;
|
|
111
|
+
generated: undefined;
|
|
112
|
+
}, {}, {}>;
|
|
113
|
+
startAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
114
|
+
name: "start_at";
|
|
115
|
+
tableName: "lock_activity";
|
|
116
|
+
dataType: "date";
|
|
117
|
+
columnType: "PgTimestamp";
|
|
118
|
+
data: Date;
|
|
119
|
+
driverParam: string;
|
|
120
|
+
notNull: true;
|
|
121
|
+
hasDefault: false;
|
|
122
|
+
isPrimaryKey: false;
|
|
123
|
+
isAutoincrement: false;
|
|
124
|
+
hasRuntimeDefault: false;
|
|
125
|
+
enumValues: undefined;
|
|
126
|
+
baseColumn: never;
|
|
127
|
+
identity: undefined;
|
|
128
|
+
generated: undefined;
|
|
129
|
+
}, {}, {}>;
|
|
130
|
+
endAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
131
|
+
name: "end_at";
|
|
132
|
+
tableName: "lock_activity";
|
|
133
|
+
dataType: "date";
|
|
134
|
+
columnType: "PgTimestamp";
|
|
135
|
+
data: Date;
|
|
136
|
+
driverParam: string;
|
|
137
|
+
notNull: true;
|
|
138
|
+
hasDefault: false;
|
|
139
|
+
isPrimaryKey: false;
|
|
140
|
+
isAutoincrement: false;
|
|
141
|
+
hasRuntimeDefault: false;
|
|
142
|
+
enumValues: undefined;
|
|
143
|
+
baseColumn: never;
|
|
144
|
+
identity: undefined;
|
|
145
|
+
generated: undefined;
|
|
146
|
+
}, {}, {}>;
|
|
147
|
+
rewardCnyEquivalent: import("drizzle-orm/pg-core").PgColumn<{
|
|
148
|
+
name: "reward_cny_equivalent";
|
|
149
|
+
tableName: "lock_activity";
|
|
150
|
+
dataType: "string";
|
|
151
|
+
columnType: "PgNumeric";
|
|
152
|
+
data: string;
|
|
153
|
+
driverParam: string;
|
|
154
|
+
notNull: true;
|
|
155
|
+
hasDefault: false;
|
|
156
|
+
isPrimaryKey: false;
|
|
157
|
+
isAutoincrement: false;
|
|
158
|
+
hasRuntimeDefault: false;
|
|
159
|
+
enumValues: undefined;
|
|
160
|
+
baseColumn: never;
|
|
161
|
+
identity: undefined;
|
|
162
|
+
generated: undefined;
|
|
163
|
+
}, {}, {}>;
|
|
164
|
+
rewardAssetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
165
|
+
name: "reward_asset_id";
|
|
166
|
+
tableName: "lock_activity";
|
|
167
|
+
dataType: "string";
|
|
168
|
+
columnType: "PgUUID";
|
|
169
|
+
data: string;
|
|
170
|
+
driverParam: string;
|
|
171
|
+
notNull: true;
|
|
172
|
+
hasDefault: false;
|
|
173
|
+
isPrimaryKey: false;
|
|
174
|
+
isAutoincrement: false;
|
|
175
|
+
hasRuntimeDefault: false;
|
|
176
|
+
enumValues: undefined;
|
|
177
|
+
baseColumn: never;
|
|
178
|
+
identity: undefined;
|
|
179
|
+
generated: undefined;
|
|
180
|
+
}, {}, {}>;
|
|
181
|
+
receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
182
|
+
name: "receive_account_type_id";
|
|
183
|
+
tableName: "lock_activity";
|
|
184
|
+
dataType: "string";
|
|
185
|
+
columnType: "PgUUID";
|
|
186
|
+
data: string;
|
|
187
|
+
driverParam: string;
|
|
188
|
+
notNull: true;
|
|
189
|
+
hasDefault: false;
|
|
190
|
+
isPrimaryKey: false;
|
|
191
|
+
isAutoincrement: false;
|
|
192
|
+
hasRuntimeDefault: false;
|
|
193
|
+
enumValues: undefined;
|
|
194
|
+
baseColumn: never;
|
|
195
|
+
identity: undefined;
|
|
196
|
+
generated: undefined;
|
|
197
|
+
}, {}, {}>;
|
|
198
|
+
isVisibleOnFrontend: import("drizzle-orm/pg-core").PgColumn<{
|
|
199
|
+
name: "is_visible_on_frontend";
|
|
200
|
+
tableName: "lock_activity";
|
|
201
|
+
dataType: "boolean";
|
|
202
|
+
columnType: "PgBoolean";
|
|
203
|
+
data: boolean;
|
|
204
|
+
driverParam: boolean;
|
|
205
|
+
notNull: true;
|
|
206
|
+
hasDefault: true;
|
|
207
|
+
isPrimaryKey: false;
|
|
208
|
+
isAutoincrement: false;
|
|
209
|
+
hasRuntimeDefault: false;
|
|
210
|
+
enumValues: undefined;
|
|
211
|
+
baseColumn: never;
|
|
212
|
+
identity: undefined;
|
|
213
|
+
generated: undefined;
|
|
214
|
+
}, {}, {}>;
|
|
215
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
216
|
+
name: "status";
|
|
217
|
+
tableName: "lock_activity";
|
|
218
|
+
dataType: "string";
|
|
219
|
+
columnType: "PgEnumColumn";
|
|
220
|
+
data: "active" | "cancelled" | "draft" | "ended";
|
|
221
|
+
driverParam: string;
|
|
222
|
+
notNull: true;
|
|
223
|
+
hasDefault: true;
|
|
224
|
+
isPrimaryKey: false;
|
|
225
|
+
isAutoincrement: false;
|
|
226
|
+
hasRuntimeDefault: false;
|
|
227
|
+
enumValues: ["draft", "active", "ended", "cancelled"];
|
|
228
|
+
baseColumn: never;
|
|
229
|
+
identity: undefined;
|
|
230
|
+
generated: undefined;
|
|
231
|
+
}, {}, {}>;
|
|
232
|
+
sortOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
233
|
+
name: "sort_order";
|
|
234
|
+
tableName: "lock_activity";
|
|
235
|
+
dataType: "number";
|
|
236
|
+
columnType: "PgInteger";
|
|
237
|
+
data: number;
|
|
238
|
+
driverParam: string | number;
|
|
239
|
+
notNull: true;
|
|
240
|
+
hasDefault: true;
|
|
241
|
+
isPrimaryKey: false;
|
|
242
|
+
isAutoincrement: false;
|
|
243
|
+
hasRuntimeDefault: false;
|
|
244
|
+
enumValues: undefined;
|
|
245
|
+
baseColumn: never;
|
|
246
|
+
identity: undefined;
|
|
247
|
+
generated: undefined;
|
|
248
|
+
}, {}, {}>;
|
|
249
|
+
};
|
|
250
|
+
dialect: 'pg';
|
|
251
|
+
}>;
|
|
252
|
+
export declare const lockActivityRelations: import("drizzle-orm").Relations<"lock_activity", {
|
|
253
|
+
rewardAsset: import("drizzle-orm").One<"asset", true>;
|
|
254
|
+
receiveAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
|
|
255
|
+
}>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const lockActivityIdParamsSchema: import("@sinclair/typebox").TObject<{
|
|
2
|
+
id: import("@sinclair/typebox").TString;
|
|
3
|
+
}>;
|
|
4
|
+
export type LockActivityIdParamsType = typeof lockActivityIdParamsSchema.static;
|
|
5
|
+
export declare const lockActivityPublicListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
6
|
+
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
7
|
+
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
8
|
+
pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
9
|
+
pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
10
|
+
}>;
|
|
11
|
+
export type LockActivityPublicListQueryType = typeof lockActivityPublicListQuerySchema.static;
|
|
12
|
+
export declare const lockActivityPublicResponseSchema: import("@sinclair/typebox").TObject<{
|
|
13
|
+
coverImageUrl: import("@sinclair/typebox").TString;
|
|
14
|
+
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
15
|
+
endAt: import("@sinclair/typebox").TDate;
|
|
16
|
+
id: import("@sinclair/typebox").TString;
|
|
17
|
+
isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
|
|
18
|
+
rewardAsset: import("@sinclair/typebox").TObject<{
|
|
19
|
+
id: import("@sinclair/typebox").TString;
|
|
20
|
+
code: import("@sinclair/typebox").TString;
|
|
21
|
+
name: import("@sinclair/typebox").TString;
|
|
22
|
+
iconUrl: import("@sinclair/typebox").TString;
|
|
23
|
+
symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
24
|
+
}>;
|
|
25
|
+
rewardCnyEquivalent: import("@sinclair/typebox").TString;
|
|
26
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
27
|
+
startAt: import("@sinclair/typebox").TDate;
|
|
28
|
+
status: import("@sinclair/typebox").TEnum<{
|
|
29
|
+
active: "active";
|
|
30
|
+
cancelled: "cancelled";
|
|
31
|
+
draft: "draft";
|
|
32
|
+
ended: "ended";
|
|
33
|
+
}>;
|
|
34
|
+
title: import("@sinclair/typebox").TString;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const lockActivityPublicListResponseSchema: import("@sinclair/typebox").TObject<{
|
|
37
|
+
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
38
|
+
coverImageUrl: import("@sinclair/typebox").TString;
|
|
39
|
+
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
40
|
+
endAt: import("@sinclair/typebox").TDate;
|
|
41
|
+
id: import("@sinclair/typebox").TString;
|
|
42
|
+
isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
|
|
43
|
+
rewardAsset: import("@sinclair/typebox").TObject<{
|
|
44
|
+
id: import("@sinclair/typebox").TString;
|
|
45
|
+
code: import("@sinclair/typebox").TString;
|
|
46
|
+
name: import("@sinclair/typebox").TString;
|
|
47
|
+
iconUrl: import("@sinclair/typebox").TString;
|
|
48
|
+
symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
49
|
+
}>;
|
|
50
|
+
rewardCnyEquivalent: import("@sinclair/typebox").TString;
|
|
51
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
52
|
+
startAt: import("@sinclair/typebox").TDate;
|
|
53
|
+
status: import("@sinclair/typebox").TEnum<{
|
|
54
|
+
active: "active";
|
|
55
|
+
cancelled: "cancelled";
|
|
56
|
+
draft: "draft";
|
|
57
|
+
ended: "ended";
|
|
58
|
+
}>;
|
|
59
|
+
title: import("@sinclair/typebox").TString;
|
|
60
|
+
}>>;
|
|
61
|
+
pagination: import("@sinclair/typebox").TObject<{
|
|
62
|
+
pageSize: import("@sinclair/typebox").TNumber;
|
|
63
|
+
pageIndex: import("@sinclair/typebox").TNumber;
|
|
64
|
+
total: import("@sinclair/typebox").TNumber;
|
|
65
|
+
totalPages: import("@sinclair/typebox").TNumber;
|
|
66
|
+
hasNextPage: import("@sinclair/typebox").TBoolean;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const lockActivityPublicDetailResponseSchema: import("@sinclair/typebox").TObject<{
|
|
70
|
+
coverImageUrl: import("@sinclair/typebox").TString;
|
|
71
|
+
description: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
72
|
+
endAt: import("@sinclair/typebox").TDate;
|
|
73
|
+
id: import("@sinclair/typebox").TString;
|
|
74
|
+
isVisibleOnFrontend: import("@sinclair/typebox").TBoolean;
|
|
75
|
+
rewardAsset: import("@sinclair/typebox").TObject<{
|
|
76
|
+
id: import("@sinclair/typebox").TString;
|
|
77
|
+
code: import("@sinclair/typebox").TString;
|
|
78
|
+
name: import("@sinclair/typebox").TString;
|
|
79
|
+
iconUrl: import("@sinclair/typebox").TString;
|
|
80
|
+
symbol: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
81
|
+
}>;
|
|
82
|
+
rewardCnyEquivalent: import("@sinclair/typebox").TString;
|
|
83
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
84
|
+
startAt: import("@sinclair/typebox").TDate;
|
|
85
|
+
status: import("@sinclair/typebox").TEnum<{
|
|
86
|
+
active: "active";
|
|
87
|
+
cancelled: "cancelled";
|
|
88
|
+
draft: "draft";
|
|
89
|
+
ended: "ended";
|
|
90
|
+
}>;
|
|
91
|
+
title: import("@sinclair/typebox").TString;
|
|
92
|
+
}>;
|