@r2wa-org/eden 0.0.50 → 0.0.52
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/src/admin/index.d.ts +362 -15
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +658 -0
- package/dist/src/asset-convert-product/admin/router.d.ts +803 -0
- package/dist/src/asset-convert-product/admin/service.d.ts +125 -0
- package/dist/src/asset-convert-product/db.schemas.d.ts +1134 -0
- package/dist/src/asset-convert-product/errors/index.d.ts +19 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +18 -0
- package/dist/src/asset-convert-product/index.d.ts +8 -0
- package/dist/src/asset-convert-product/internal/service.d.ts +66 -0
- package/dist/src/asset-convert-product/permissions.d.ts +5 -0
- package/dist/src/asset-convert-product/schema.d.ts +619 -0
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +1000 -0
- package/dist/src/asset-convert-product/user/router.d.ts +683 -0
- package/dist/src/asset-convert-product/user/service.d.ts +120 -0
- package/dist/src/auth/better-auth.d.ts +17 -3
- package/dist/src/auth/permissions.d.ts +11 -1
- package/dist/src/auth/roles.d.ts +30 -0
- package/dist/src/cron/index.d.ts +13 -1
- package/dist/src/db/schemas.d.ts +1 -0
- package/dist/src/deposit/admin/dto.schemas.d.ts +6 -6
- package/dist/src/deposit/user/dto.schemas.d.ts +6 -6
- package/dist/src/file-storage/admin/dto.schemas.d.ts +6 -6
- package/dist/src/index.d.ts +630 -22
- package/dist/src/ledger/admin/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/admin/router.d.ts +2 -2
- package/dist/src/ledger/admin/service.d.ts +2 -2
- package/dist/src/ledger/db.schemas.d.ts +8 -8
- package/dist/src/ledger/internal/service.d.ts +2 -2
- package/dist/src/ledger/schema.d.ts +6 -6
- package/dist/src/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/user/router.d.ts +2 -2
- package/dist/src/ledger/user/service.d.ts +2 -2
- package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
- package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
- package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
- package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
- package/dist/src/ledger-account-import/schema.d.ts +2 -2
- package/dist/src/ledger-account-transfer/user/router.d.ts +1 -1
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/notification/admin/dto.schemas.d.ts +8 -8
- package/dist/src/notification/user/dto.schemas.d.ts +8 -8
- package/dist/src/transfer/user/router.d.ts +1 -1
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/wallet/admin/dto.schemas.d.ts +3 -3
- package/dist/src/wallet/user/dto.schemas.d.ts +2 -2
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +7 -7
- package/dist/src/welfare-cycle/admin/router.d.ts +4 -4
- package/dist/src/welfare-cycle/admin/service.d.ts +2 -2
- package/dist/src/welfare-cycle/cron.d.ts +58 -0
- package/dist/src/welfare-cycle/db.schemas.d.ts +4 -4
- package/dist/src/welfare-cycle/internal/service.d.ts +2 -2
- package/dist/src/welfare-cycle/schema.d.ts +2 -2
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/user/router.d.ts +3 -3
- package/dist/src/welfare-cycle/user/service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -30,14 +30,14 @@ export declare const newsListItemModel: import("@sinclair/typebox").TObject<{
|
|
|
30
30
|
createdAt: import("@sinclair/typebox").TDate;
|
|
31
31
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
32
32
|
id: import("@sinclair/typebox").TString;
|
|
33
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
34
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
35
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
36
33
|
status: import("@sinclair/typebox").TEnum<{
|
|
37
34
|
archived: "archived";
|
|
38
35
|
draft: "draft";
|
|
39
36
|
published: "published";
|
|
40
37
|
}>;
|
|
38
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
39
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
40
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
41
41
|
createdBy: import("@sinclair/typebox").TString;
|
|
42
42
|
title: import("@sinclair/typebox").TString;
|
|
43
43
|
content: import("@sinclair/typebox").TString;
|
|
@@ -62,14 +62,14 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
|
|
|
62
62
|
createdAt: import("@sinclair/typebox").TDate;
|
|
63
63
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
64
64
|
id: import("@sinclair/typebox").TString;
|
|
65
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
66
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
67
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
68
65
|
status: import("@sinclair/typebox").TEnum<{
|
|
69
66
|
archived: "archived";
|
|
70
67
|
draft: "draft";
|
|
71
68
|
published: "published";
|
|
72
69
|
}>;
|
|
70
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
71
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
72
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
73
73
|
createdBy: import("@sinclair/typebox").TString;
|
|
74
74
|
title: import("@sinclair/typebox").TString;
|
|
75
75
|
content: import("@sinclair/typebox").TString;
|
|
@@ -30,14 +30,14 @@ export declare const newsListItemModel: import("@sinclair/typebox").TObject<{
|
|
|
30
30
|
createdAt: import("@sinclair/typebox").TDate;
|
|
31
31
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
32
32
|
id: import("@sinclair/typebox").TString;
|
|
33
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
34
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
35
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
36
33
|
status: import("@sinclair/typebox").TEnum<{
|
|
37
34
|
archived: "archived";
|
|
38
35
|
draft: "draft";
|
|
39
36
|
published: "published";
|
|
40
37
|
}>;
|
|
38
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
39
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
40
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
41
41
|
createdBy: import("@sinclair/typebox").TString;
|
|
42
42
|
title: import("@sinclair/typebox").TString;
|
|
43
43
|
content: import("@sinclair/typebox").TString;
|
|
@@ -62,14 +62,14 @@ export declare const newsListResponse: import("@sinclair/typebox").TObject<{
|
|
|
62
62
|
createdAt: import("@sinclair/typebox").TDate;
|
|
63
63
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
64
64
|
id: import("@sinclair/typebox").TString;
|
|
65
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
66
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
67
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
68
65
|
status: import("@sinclair/typebox").TEnum<{
|
|
69
66
|
archived: "archived";
|
|
70
67
|
draft: "draft";
|
|
71
68
|
published: "published";
|
|
72
69
|
}>;
|
|
70
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
71
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
72
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
73
73
|
createdBy: import("@sinclair/typebox").TString;
|
|
74
74
|
title: import("@sinclair/typebox").TString;
|
|
75
75
|
content: import("@sinclair/typebox").TString;
|
|
@@ -115,14 +115,14 @@ export declare const newsDetailResponse: import("@sinclair/typebox").TObject<{
|
|
|
115
115
|
createdAt: import("@sinclair/typebox").TDate;
|
|
116
116
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
117
117
|
id: import("@sinclair/typebox").TString;
|
|
118
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
119
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
120
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
121
118
|
status: import("@sinclair/typebox").TEnum<{
|
|
122
119
|
archived: "archived";
|
|
123
120
|
draft: "draft";
|
|
124
121
|
published: "published";
|
|
125
122
|
}>;
|
|
123
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
124
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
125
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
126
126
|
createdBy: import("@sinclair/typebox").TString;
|
|
127
127
|
title: import("@sinclair/typebox").TString;
|
|
128
128
|
content: import("@sinclair/typebox").TString;
|
|
@@ -151,14 +151,14 @@ export declare const pendingConfirmationsResponse: import("@sinclair/typebox").T
|
|
|
151
151
|
createdAt: import("@sinclair/typebox").TDate;
|
|
152
152
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
153
153
|
id: import("@sinclair/typebox").TString;
|
|
154
|
-
sortOrder: import("@sinclair/typebox").TInteger;
|
|
155
|
-
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
156
|
-
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
157
154
|
status: import("@sinclair/typebox").TEnum<{
|
|
158
155
|
archived: "archived";
|
|
159
156
|
draft: "draft";
|
|
160
157
|
published: "published";
|
|
161
158
|
}>;
|
|
159
|
+
sortOrder: import("@sinclair/typebox").TInteger;
|
|
160
|
+
expiresAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
161
|
+
scope: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
162
162
|
createdBy: import("@sinclair/typebox").TString;
|
|
163
163
|
title: import("@sinclair/typebox").TString;
|
|
164
164
|
content: import("@sinclair/typebox").TString;
|
|
@@ -2,13 +2,13 @@ export declare const notificationResponseSchema: import("@sinclair/typebox").TOb
|
|
|
2
2
|
createdAt: import("@sinclair/typebox").TDate;
|
|
3
3
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
|
-
userId: import("@sinclair/typebox").TString;
|
|
6
5
|
status: import("@sinclair/typebox").TEnum<{
|
|
7
6
|
archived: "archived";
|
|
8
7
|
unread: "unread";
|
|
9
8
|
read: "read";
|
|
10
9
|
deleted: "deleted";
|
|
11
10
|
}>;
|
|
11
|
+
userId: import("@sinclair/typebox").TString;
|
|
12
12
|
archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
13
13
|
readAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
14
14
|
notificationId: import("@sinclair/typebox").TString;
|
|
@@ -191,13 +191,13 @@ export declare const notificationListResponseSchema: import("@sinclair/typebox")
|
|
|
191
191
|
createdAt: import("@sinclair/typebox").TDate;
|
|
192
192
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
193
193
|
id: import("@sinclair/typebox").TString;
|
|
194
|
-
userId: import("@sinclair/typebox").TString;
|
|
195
194
|
status: import("@sinclair/typebox").TEnum<{
|
|
196
195
|
archived: "archived";
|
|
197
196
|
unread: "unread";
|
|
198
197
|
read: "read";
|
|
199
198
|
deleted: "deleted";
|
|
200
199
|
}>;
|
|
200
|
+
userId: import("@sinclair/typebox").TString;
|
|
201
201
|
archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
202
202
|
readAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
203
203
|
notificationId: import("@sinclair/typebox").TString;
|
|
@@ -404,18 +404,18 @@ export declare const notificationCreateSchema: import("@sinclair/typebox").TObje
|
|
|
404
404
|
}>;
|
|
405
405
|
export type NotificationCreateInputType = typeof notificationCreateSchema.static;
|
|
406
406
|
export declare const notificationListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
407
|
-
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
408
|
-
system: "system";
|
|
409
|
-
transaction: "transaction";
|
|
410
|
-
activity: "activity";
|
|
411
|
-
security: "security";
|
|
412
|
-
}>>;
|
|
413
407
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
414
408
|
archived: "archived";
|
|
415
409
|
unread: "unread";
|
|
416
410
|
read: "read";
|
|
417
411
|
deleted: "deleted";
|
|
418
412
|
}>>;
|
|
413
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
414
|
+
system: "system";
|
|
415
|
+
transaction: "transaction";
|
|
416
|
+
activity: "activity";
|
|
417
|
+
security: "security";
|
|
418
|
+
}>>;
|
|
419
419
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
420
420
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
421
421
|
pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -2,13 +2,13 @@ export declare const notificationResponseSchema: import("@sinclair/typebox").TOb
|
|
|
2
2
|
createdAt: import("@sinclair/typebox").TDate;
|
|
3
3
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
|
-
userId: import("@sinclair/typebox").TString;
|
|
6
5
|
status: import("@sinclair/typebox").TEnum<{
|
|
7
6
|
archived: "archived";
|
|
8
7
|
unread: "unread";
|
|
9
8
|
read: "read";
|
|
10
9
|
deleted: "deleted";
|
|
11
10
|
}>;
|
|
11
|
+
userId: import("@sinclair/typebox").TString;
|
|
12
12
|
archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
13
13
|
readAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
14
14
|
notificationId: import("@sinclair/typebox").TString;
|
|
@@ -191,13 +191,13 @@ export declare const notificationListResponseSchema: import("@sinclair/typebox")
|
|
|
191
191
|
createdAt: import("@sinclair/typebox").TDate;
|
|
192
192
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
193
193
|
id: import("@sinclair/typebox").TString;
|
|
194
|
-
userId: import("@sinclair/typebox").TString;
|
|
195
194
|
status: import("@sinclair/typebox").TEnum<{
|
|
196
195
|
archived: "archived";
|
|
197
196
|
unread: "unread";
|
|
198
197
|
read: "read";
|
|
199
198
|
deleted: "deleted";
|
|
200
199
|
}>;
|
|
200
|
+
userId: import("@sinclair/typebox").TString;
|
|
201
201
|
archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
202
202
|
readAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
|
|
203
203
|
notificationId: import("@sinclair/typebox").TString;
|
|
@@ -383,18 +383,18 @@ export declare const notificationListResponseSchema: import("@sinclair/typebox")
|
|
|
383
383
|
}>;
|
|
384
384
|
}>;
|
|
385
385
|
export declare const notificationListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
386
|
-
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
387
|
-
system: "system";
|
|
388
|
-
transaction: "transaction";
|
|
389
|
-
activity: "activity";
|
|
390
|
-
security: "security";
|
|
391
|
-
}>>;
|
|
392
386
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
393
387
|
archived: "archived";
|
|
394
388
|
unread: "unread";
|
|
395
389
|
read: "read";
|
|
396
390
|
deleted: "deleted";
|
|
397
391
|
}>>;
|
|
392
|
+
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
393
|
+
system: "system";
|
|
394
|
+
transaction: "transaction";
|
|
395
|
+
activity: "activity";
|
|
396
|
+
security: "security";
|
|
397
|
+
}>>;
|
|
398
398
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
399
399
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
400
400
|
pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -446,8 +446,8 @@ export declare const transferRouter: Elysia<"/transfer", {
|
|
|
446
446
|
id: string;
|
|
447
447
|
assetId: string | null;
|
|
448
448
|
amount: string;
|
|
449
|
-
ledgerEntryId: string;
|
|
450
449
|
orderNo: string;
|
|
450
|
+
ledgerEntryId: string;
|
|
451
451
|
targetAccountId: string | null;
|
|
452
452
|
sourceAccountId: string | null;
|
|
453
453
|
sourceUserId: string;
|
|
@@ -3,13 +3,13 @@ export declare const kycMethodIdParamsSchema: import("@sinclair/typebox").TObjec
|
|
|
3
3
|
}>;
|
|
4
4
|
export type KycMethodIdParamsSchemaType = typeof kycMethodIdParamsSchema.static;
|
|
5
5
|
export declare const kycMethodAdminListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
6
|
-
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
6
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
8
7
|
unverified: "unverified";
|
|
9
8
|
pending: "pending";
|
|
10
9
|
approved: "approved";
|
|
11
10
|
rejected: "rejected";
|
|
12
11
|
}>>;
|
|
12
|
+
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
13
|
method: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
14
14
|
passport: "passport";
|
|
15
15
|
id_card: "id_card";
|
|
@@ -3,8 +3,8 @@ export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObj
|
|
|
3
3
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
5
|
name: import("@sinclair/typebox").TString;
|
|
6
|
-
isActive: import("@sinclair/typebox").TBoolean;
|
|
7
6
|
userId: import("@sinclair/typebox").TString;
|
|
7
|
+
isActive: import("@sinclair/typebox").TBoolean;
|
|
8
8
|
walletTypeId: import("@sinclair/typebox").TString;
|
|
9
9
|
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
10
10
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
@@ -148,8 +148,8 @@ export declare const walletAdminResponseSchema: import("@sinclair/typebox").TObj
|
|
|
148
148
|
}>;
|
|
149
149
|
export type WalletAdminResponseType = typeof walletAdminResponseSchema.static;
|
|
150
150
|
export declare const walletAdminListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
151
|
-
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
152
151
|
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
152
|
+
isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
153
153
|
walletTypeKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
154
154
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
155
155
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -163,8 +163,8 @@ export declare const walletAdminListResponseSchema: import("@sinclair/typebox").
|
|
|
163
163
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
164
164
|
id: import("@sinclair/typebox").TString;
|
|
165
165
|
name: import("@sinclair/typebox").TString;
|
|
166
|
-
isActive: import("@sinclair/typebox").TBoolean;
|
|
167
166
|
userId: import("@sinclair/typebox").TString;
|
|
167
|
+
isActive: import("@sinclair/typebox").TBoolean;
|
|
168
168
|
walletTypeId: import("@sinclair/typebox").TString;
|
|
169
169
|
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
170
170
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
@@ -3,8 +3,8 @@ export declare const walletResponseSchema: import("@sinclair/typebox").TObject<{
|
|
|
3
3
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
4
4
|
id: import("@sinclair/typebox").TString;
|
|
5
5
|
name: import("@sinclair/typebox").TString;
|
|
6
|
-
isActive: import("@sinclair/typebox").TBoolean;
|
|
7
6
|
userId: import("@sinclair/typebox").TString;
|
|
7
|
+
isActive: import("@sinclair/typebox").TBoolean;
|
|
8
8
|
walletTypeId: import("@sinclair/typebox").TString;
|
|
9
9
|
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
10
10
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
@@ -162,8 +162,8 @@ export declare const walletListResponseSchema: import("@sinclair/typebox").TObje
|
|
|
162
162
|
updatedAt: import("@sinclair/typebox").TDate;
|
|
163
163
|
id: import("@sinclair/typebox").TString;
|
|
164
164
|
name: import("@sinclair/typebox").TString;
|
|
165
|
-
isActive: import("@sinclair/typebox").TBoolean;
|
|
166
165
|
userId: import("@sinclair/typebox").TString;
|
|
166
|
+
isActive: import("@sinclair/typebox").TBoolean;
|
|
167
167
|
walletTypeId: import("@sinclair/typebox").TString;
|
|
168
168
|
isPrimary: import("@sinclair/typebox").TBoolean;
|
|
169
169
|
walletType: import("drizzle-typebox").BuildSchema<"select", {
|
|
@@ -356,7 +356,6 @@ export declare const welfareCyclePlanListResponseSchema: import("@sinclair/typeb
|
|
|
356
356
|
}>;
|
|
357
357
|
}>;
|
|
358
358
|
export declare const welfareCycleSubscriptionListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
359
|
-
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
360
359
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
361
360
|
active: "active";
|
|
362
361
|
pending: "pending";
|
|
@@ -364,6 +363,7 @@ export declare const welfareCycleSubscriptionListQuerySchema: import("@sinclair/
|
|
|
364
363
|
matured: "matured";
|
|
365
364
|
settled: "settled";
|
|
366
365
|
}>>;
|
|
366
|
+
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
367
367
|
planId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
368
368
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
369
369
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -791,12 +791,12 @@ export declare const welfareCycleSubscriptionListResponseSchema: import("@sincla
|
|
|
791
791
|
}>;
|
|
792
792
|
}>;
|
|
793
793
|
export declare const welfareCycleDailyPayoutListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
794
|
-
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
795
794
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
796
795
|
pending: "pending";
|
|
797
|
-
failed: "failed";
|
|
798
796
|
completed: "completed";
|
|
797
|
+
failed: "failed";
|
|
799
798
|
}>>;
|
|
799
|
+
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
800
800
|
planId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
801
801
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
802
802
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -947,7 +947,7 @@ export declare const welfareCycleDailyPayoutListResponseSchema: import("@sinclai
|
|
|
947
947
|
tableName: "welfare_cycle_daily_payout";
|
|
948
948
|
dataType: "string";
|
|
949
949
|
columnType: "PgEnumColumn";
|
|
950
|
-
data: "pending" | "
|
|
950
|
+
data: "pending" | "completed" | "failed";
|
|
951
951
|
driverParam: string;
|
|
952
952
|
notNull: true;
|
|
953
953
|
hasDefault: true;
|
|
@@ -1003,12 +1003,12 @@ export declare const welfareCycleDailyPayoutListResponseSchema: import("@sinclai
|
|
|
1003
1003
|
}>;
|
|
1004
1004
|
}>;
|
|
1005
1005
|
export declare const welfareCycleMaturitySettlementListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
1006
|
-
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1007
1006
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
1008
1007
|
pending: "pending";
|
|
1009
|
-
failed: "failed";
|
|
1010
1008
|
completed: "completed";
|
|
1009
|
+
failed: "failed";
|
|
1011
1010
|
}>>;
|
|
1011
|
+
userId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1012
1012
|
planId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
1013
1013
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
1014
1014
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -1176,7 +1176,7 @@ export declare const welfareCycleMaturitySettlementListResponseSchema: import("@
|
|
|
1176
1176
|
tableName: "welfare_cycle_maturity_settlement";
|
|
1177
1177
|
dataType: "string";
|
|
1178
1178
|
columnType: "PgEnumColumn";
|
|
1179
|
-
data: "pending" | "
|
|
1179
|
+
data: "pending" | "completed" | "failed";
|
|
1180
1180
|
driverParam: string;
|
|
1181
1181
|
notNull: true;
|
|
1182
1182
|
hasDefault: true;
|
|
@@ -779,7 +779,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
779
779
|
params: {};
|
|
780
780
|
query: {
|
|
781
781
|
userId?: string | undefined;
|
|
782
|
-
status?: "pending" | "
|
|
782
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
783
783
|
planId?: string | undefined;
|
|
784
784
|
limit?: number | undefined;
|
|
785
785
|
offset?: number | undefined;
|
|
@@ -794,7 +794,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
794
794
|
createdAt: Date;
|
|
795
795
|
updatedAt: Date;
|
|
796
796
|
userId: string;
|
|
797
|
-
status: "pending" | "
|
|
797
|
+
status: "pending" | "completed" | "failed";
|
|
798
798
|
amount: string;
|
|
799
799
|
idempotencyKey: string;
|
|
800
800
|
ledgerEntryId: string | null;
|
|
@@ -833,7 +833,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
833
833
|
params: {};
|
|
834
834
|
query: {
|
|
835
835
|
userId?: string | undefined;
|
|
836
|
-
status?: "pending" | "
|
|
836
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
837
837
|
planId?: string | undefined;
|
|
838
838
|
limit?: number | undefined;
|
|
839
839
|
offset?: number | undefined;
|
|
@@ -848,7 +848,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
|
|
|
848
848
|
createdAt: Date;
|
|
849
849
|
updatedAt: Date;
|
|
850
850
|
userId: string;
|
|
851
|
-
status: "pending" | "
|
|
851
|
+
status: "pending" | "completed" | "failed";
|
|
852
852
|
idempotencyKey: string;
|
|
853
853
|
planId: string;
|
|
854
854
|
subscriptionId: string;
|
|
@@ -166,7 +166,7 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
|
|
|
166
166
|
createdAt: Date;
|
|
167
167
|
updatedAt: Date;
|
|
168
168
|
userId: string;
|
|
169
|
-
status: "pending" | "
|
|
169
|
+
status: "pending" | "completed" | "failed";
|
|
170
170
|
amount: string;
|
|
171
171
|
idempotencyKey: string;
|
|
172
172
|
ledgerEntryId: string | null;
|
|
@@ -188,7 +188,7 @@ export declare abstract class AdminWelfareCycleService extends BaseWelfareCycleS
|
|
|
188
188
|
createdAt: Date;
|
|
189
189
|
updatedAt: Date;
|
|
190
190
|
userId: string;
|
|
191
|
-
status: "pending" | "
|
|
191
|
+
status: "pending" | "completed" | "failed";
|
|
192
192
|
idempotencyKey: string;
|
|
193
193
|
planId: string;
|
|
194
194
|
subscriptionId: string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Elysia } from "elysia";
|
|
2
|
+
/**
|
|
3
|
+
* 福利周期定时任务
|
|
4
|
+
* - 每日收益发放:每 30 分钟扫描一次到期可派息持仓
|
|
5
|
+
* - 到期结算:每 10 分钟扫描一次已到期持仓
|
|
6
|
+
*/
|
|
7
|
+
export declare const welfareCycleCronJobs: Elysia<"", {
|
|
8
|
+
decorator: {};
|
|
9
|
+
store: {
|
|
10
|
+
cron: Record<`${string}-welfare-cycle-daily-payout`, import("croner").Cron> & Record<`${string}-welfare-cycle-maturity-settlement`, import("croner").Cron>;
|
|
11
|
+
};
|
|
12
|
+
derive: {};
|
|
13
|
+
resolve: {};
|
|
14
|
+
}, {
|
|
15
|
+
typebox: {};
|
|
16
|
+
error: {};
|
|
17
|
+
} & {
|
|
18
|
+
typebox: {};
|
|
19
|
+
error: {};
|
|
20
|
+
}, {
|
|
21
|
+
schema: {};
|
|
22
|
+
standaloneSchema: {};
|
|
23
|
+
macro: {};
|
|
24
|
+
macroFn: {};
|
|
25
|
+
parser: {};
|
|
26
|
+
response: {};
|
|
27
|
+
} & {
|
|
28
|
+
schema: {};
|
|
29
|
+
standaloneSchema: {};
|
|
30
|
+
macro: {};
|
|
31
|
+
macroFn: {};
|
|
32
|
+
parser: {};
|
|
33
|
+
response: {};
|
|
34
|
+
}, {}, {
|
|
35
|
+
derive: {};
|
|
36
|
+
resolve: {};
|
|
37
|
+
schema: {};
|
|
38
|
+
standaloneSchema: {};
|
|
39
|
+
response: {};
|
|
40
|
+
} & {
|
|
41
|
+
derive: {};
|
|
42
|
+
resolve: {};
|
|
43
|
+
schema: {};
|
|
44
|
+
standaloneSchema: {};
|
|
45
|
+
response: {};
|
|
46
|
+
}, {
|
|
47
|
+
derive: {};
|
|
48
|
+
resolve: {};
|
|
49
|
+
schema: {};
|
|
50
|
+
standaloneSchema: {};
|
|
51
|
+
response: {};
|
|
52
|
+
} & {
|
|
53
|
+
derive: {};
|
|
54
|
+
resolve: {};
|
|
55
|
+
schema: {};
|
|
56
|
+
standaloneSchema: {};
|
|
57
|
+
response: {};
|
|
58
|
+
}>;
|
|
@@ -1546,7 +1546,7 @@ export declare const welfareCycleDailyPayoutSelectSchema: import("drizzle-typebo
|
|
|
1546
1546
|
tableName: "welfare_cycle_daily_payout";
|
|
1547
1547
|
dataType: "string";
|
|
1548
1548
|
columnType: "PgEnumColumn";
|
|
1549
|
-
data: "pending" | "
|
|
1549
|
+
data: "pending" | "completed" | "failed";
|
|
1550
1550
|
driverParam: string;
|
|
1551
1551
|
notNull: true;
|
|
1552
1552
|
hasDefault: true;
|
|
@@ -1736,7 +1736,7 @@ export declare const welfareCycleDailyPayoutInsertSchema: import("drizzle-typebo
|
|
|
1736
1736
|
tableName: "welfare_cycle_daily_payout";
|
|
1737
1737
|
dataType: "string";
|
|
1738
1738
|
columnType: "PgEnumColumn";
|
|
1739
|
-
data: "pending" | "
|
|
1739
|
+
data: "pending" | "completed" | "failed";
|
|
1740
1740
|
driverParam: string;
|
|
1741
1741
|
notNull: true;
|
|
1742
1742
|
hasDefault: true;
|
|
@@ -1943,7 +1943,7 @@ export declare const welfareCycleMaturitySettlementSelectSchema: import("drizzle
|
|
|
1943
1943
|
tableName: "welfare_cycle_maturity_settlement";
|
|
1944
1944
|
dataType: "string";
|
|
1945
1945
|
columnType: "PgEnumColumn";
|
|
1946
|
-
data: "pending" | "
|
|
1946
|
+
data: "pending" | "completed" | "failed";
|
|
1947
1947
|
driverParam: string;
|
|
1948
1948
|
notNull: true;
|
|
1949
1949
|
hasDefault: true;
|
|
@@ -2167,7 +2167,7 @@ export declare const welfareCycleMaturitySettlementInsertSchema: import("drizzle
|
|
|
2167
2167
|
tableName: "welfare_cycle_maturity_settlement";
|
|
2168
2168
|
dataType: "string";
|
|
2169
2169
|
columnType: "PgEnumColumn";
|
|
2170
|
-
data: "pending" | "
|
|
2170
|
+
data: "pending" | "completed" | "failed";
|
|
2171
2171
|
driverParam: string;
|
|
2172
2172
|
notNull: true;
|
|
2173
2173
|
hasDefault: true;
|
|
@@ -92,7 +92,7 @@ export declare abstract class InternalWelfareCycleService extends BaseWelfareCyc
|
|
|
92
92
|
createdAt: Date;
|
|
93
93
|
updatedAt: Date;
|
|
94
94
|
userId: string;
|
|
95
|
-
status: "pending" | "
|
|
95
|
+
status: "pending" | "completed" | "failed";
|
|
96
96
|
amount: string;
|
|
97
97
|
idempotencyKey: string;
|
|
98
98
|
ledgerEntryId: string | null;
|
|
@@ -105,7 +105,7 @@ export declare abstract class InternalWelfareCycleService extends BaseWelfareCyc
|
|
|
105
105
|
createdAt: Date;
|
|
106
106
|
updatedAt: Date;
|
|
107
107
|
userId: string;
|
|
108
|
-
status: "pending" | "
|
|
108
|
+
status: "pending" | "completed" | "failed";
|
|
109
109
|
idempotencyKey: string;
|
|
110
110
|
planId: string;
|
|
111
111
|
subscriptionId: string;
|
|
@@ -872,7 +872,7 @@ export declare const welfareCycleDailyPayout: import("drizzle-orm/pg-core").PgTa
|
|
|
872
872
|
tableName: "welfare_cycle_daily_payout";
|
|
873
873
|
dataType: "string";
|
|
874
874
|
columnType: "PgEnumColumn";
|
|
875
|
-
data: "pending" | "
|
|
875
|
+
data: "pending" | "completed" | "failed";
|
|
876
876
|
driverParam: string;
|
|
877
877
|
notNull: true;
|
|
878
878
|
hasDefault: true;
|
|
@@ -1087,7 +1087,7 @@ export declare const welfareCycleMaturitySettlement: import("drizzle-orm/pg-core
|
|
|
1087
1087
|
tableName: "welfare_cycle_maturity_settlement";
|
|
1088
1088
|
dataType: "string";
|
|
1089
1089
|
columnType: "PgEnumColumn";
|
|
1090
|
-
data: "pending" | "
|
|
1090
|
+
data: "pending" | "completed" | "failed";
|
|
1091
1091
|
driverParam: string;
|
|
1092
1092
|
notNull: true;
|
|
1093
1093
|
hasDefault: true;
|
|
@@ -1169,8 +1169,8 @@ export type WelfareCycleSubscriptionListResponseType = typeof welfareCycleSubscr
|
|
|
1169
1169
|
export declare const welfareCycleDailyPayoutListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
1170
1170
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
1171
1171
|
pending: "pending";
|
|
1172
|
-
failed: "failed";
|
|
1173
1172
|
completed: "completed";
|
|
1173
|
+
failed: "failed";
|
|
1174
1174
|
}>>;
|
|
1175
1175
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
1176
1176
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -1321,7 +1321,7 @@ export declare const welfareCycleDailyPayoutListResponseSchema: import("@sinclai
|
|
|
1321
1321
|
tableName: "welfare_cycle_daily_payout";
|
|
1322
1322
|
dataType: "string";
|
|
1323
1323
|
columnType: "PgEnumColumn";
|
|
1324
|
-
data: "pending" | "
|
|
1324
|
+
data: "pending" | "completed" | "failed";
|
|
1325
1325
|
driverParam: string;
|
|
1326
1326
|
notNull: true;
|
|
1327
1327
|
hasDefault: true;
|
|
@@ -1536,7 +1536,7 @@ export declare const welfareCycleMaturitySettlementResponseSchema: import("drizz
|
|
|
1536
1536
|
tableName: "welfare_cycle_maturity_settlement";
|
|
1537
1537
|
dataType: "string";
|
|
1538
1538
|
columnType: "PgEnumColumn";
|
|
1539
|
-
data: "pending" | "
|
|
1539
|
+
data: "pending" | "completed" | "failed";
|
|
1540
1540
|
driverParam: string;
|
|
1541
1541
|
notNull: true;
|
|
1542
1542
|
hasDefault: true;
|
|
@@ -666,7 +666,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
666
666
|
id: string;
|
|
667
667
|
};
|
|
668
668
|
query: {
|
|
669
|
-
status?: "pending" | "
|
|
669
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
670
670
|
limit?: number | undefined;
|
|
671
671
|
offset?: number | undefined;
|
|
672
672
|
pageSize?: number | undefined;
|
|
@@ -680,7 +680,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
680
680
|
createdAt: Date;
|
|
681
681
|
updatedAt: Date;
|
|
682
682
|
userId: string;
|
|
683
|
-
status: "pending" | "
|
|
683
|
+
status: "pending" | "completed" | "failed";
|
|
684
684
|
amount: string;
|
|
685
685
|
idempotencyKey: string;
|
|
686
686
|
ledgerEntryId: string | null;
|
|
@@ -730,7 +730,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
|
|
|
730
730
|
createdAt: Date;
|
|
731
731
|
updatedAt: Date;
|
|
732
732
|
userId: string;
|
|
733
|
-
status: "pending" | "
|
|
733
|
+
status: "pending" | "completed" | "failed";
|
|
734
734
|
idempotencyKey: string;
|
|
735
735
|
planId: string;
|
|
736
736
|
subscriptionId: string;
|
|
@@ -141,7 +141,7 @@ export declare abstract class UserWelfareCycleService extends BaseWelfareCycleSe
|
|
|
141
141
|
createdAt: Date;
|
|
142
142
|
updatedAt: Date;
|
|
143
143
|
userId: string;
|
|
144
|
-
status: "pending" | "
|
|
144
|
+
status: "pending" | "completed" | "failed";
|
|
145
145
|
amount: string;
|
|
146
146
|
idempotencyKey: string;
|
|
147
147
|
ledgerEntryId: string | null;
|
|
@@ -162,7 +162,7 @@ export declare abstract class UserWelfareCycleService extends BaseWelfareCycleSe
|
|
|
162
162
|
createdAt: Date;
|
|
163
163
|
updatedAt: Date;
|
|
164
164
|
userId: string;
|
|
165
|
-
status: "pending" | "
|
|
165
|
+
status: "pending" | "completed" | "failed";
|
|
166
166
|
idempotencyKey: string;
|
|
167
167
|
planId: string;
|
|
168
168
|
subscriptionId: string;
|