@r2wa-org/eden 0.0.59 → 0.0.60
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/admin/dto.schemas.d.ts +8 -0
- package/dist/src/admin/admin/errors/index.d.ts +1 -0
- package/dist/src/admin/admin/errors/locales/zh.d.ts +1 -0
- package/dist/src/admin/admin/router.d.ts +31 -0
- package/dist/src/admin/admin/service.d.ts +3 -0
- package/dist/src/admin/index.d.ts +158 -34
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +44 -12
- package/dist/src/asset-convert-product/admin/router.d.ts +83 -23
- package/dist/src/asset-convert-product/admin/service.d.ts +73 -17
- package/dist/src/asset-convert-product/db.schemas.d.ts +76 -8
- package/dist/src/asset-convert-product/errors/index.d.ts +4 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +4 -0
- package/dist/src/asset-convert-product/internal/service.d.ts +4 -3
- package/dist/src/asset-convert-product/schema.d.ts +41 -6
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +264 -14
- package/dist/src/asset-convert-product/user/router.d.ts +10 -8
- package/dist/src/asset-convert-product/user/service.d.ts +9 -5
- package/dist/src/index.d.ts +255 -47
- package/dist/src/ledger-account/admin/router.d.ts +1 -1
- package/dist/src/ledger-account/user/dto.schemas.d.ts +5 -0
- package/dist/src/ledger-account/user/router.d.ts +61 -0
- package/dist/src/ledger-account/user/service.d.ts +51 -1
- 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/welfare-cycle/admin/dto.schemas.d.ts +95 -2
- package/dist/src/welfare-cycle/admin/router.d.ts +34 -1
- package/dist/src/welfare-cycle/admin/service.d.ts +26 -1
- package/dist/src/welfare-cycle/db.schemas.d.ts +174 -4
- package/dist/src/welfare-cycle/errors/index.d.ts +6 -0
- package/dist/src/welfare-cycle/errors/locales/zh.d.ts +6 -0
- package/dist/src/welfare-cycle/internal/service.d.ts +41 -3
- package/dist/src/welfare-cycle/schema.d.ts +92 -3
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +106 -6
- package/dist/src/welfare-cycle/user/router.d.ts +14 -5
- package/dist/src/welfare-cycle/user/service.d.ts +14 -3
- package/dist/src/withdraw/user/dto.schemas.d.ts +599 -0
- package/dist/src/withdraw/user/router.d.ts +73 -0
- package/dist/src/withdraw/user/service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -135,8 +135,25 @@ export declare const assetConvertProductSelectSchema: import("drizzle-typebox").
|
|
|
135
135
|
identity: undefined;
|
|
136
136
|
generated: undefined;
|
|
137
137
|
}, {}, {}>;
|
|
138
|
-
|
|
139
|
-
name: "
|
|
138
|
+
payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
139
|
+
name: "pay_account_type_id";
|
|
140
|
+
tableName: "asset_convert_product";
|
|
141
|
+
dataType: "string";
|
|
142
|
+
columnType: "PgUUID";
|
|
143
|
+
data: string;
|
|
144
|
+
driverParam: string;
|
|
145
|
+
notNull: true;
|
|
146
|
+
hasDefault: false;
|
|
147
|
+
isPrimaryKey: false;
|
|
148
|
+
isAutoincrement: false;
|
|
149
|
+
hasRuntimeDefault: false;
|
|
150
|
+
enumValues: undefined;
|
|
151
|
+
baseColumn: never;
|
|
152
|
+
identity: undefined;
|
|
153
|
+
generated: undefined;
|
|
154
|
+
}, {}, {}>;
|
|
155
|
+
receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
156
|
+
name: "receive_account_type_id";
|
|
140
157
|
tableName: "asset_convert_product";
|
|
141
158
|
dataType: "string";
|
|
142
159
|
columnType: "PgUUID";
|
|
@@ -169,6 +186,23 @@ export declare const assetConvertProductSelectSchema: import("drizzle-typebox").
|
|
|
169
186
|
identity: undefined;
|
|
170
187
|
generated: undefined;
|
|
171
188
|
}, {}, {}>;
|
|
189
|
+
settlementMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
190
|
+
name: "settlement_mode";
|
|
191
|
+
tableName: "asset_convert_product";
|
|
192
|
+
dataType: "string";
|
|
193
|
+
columnType: "PgEnumColumn";
|
|
194
|
+
data: "available" | "locked";
|
|
195
|
+
driverParam: string;
|
|
196
|
+
notNull: true;
|
|
197
|
+
hasDefault: false;
|
|
198
|
+
isPrimaryKey: false;
|
|
199
|
+
isAutoincrement: false;
|
|
200
|
+
hasRuntimeDefault: false;
|
|
201
|
+
enumValues: ["locked", "available"];
|
|
202
|
+
baseColumn: never;
|
|
203
|
+
identity: undefined;
|
|
204
|
+
generated: undefined;
|
|
205
|
+
}, {}, {}>;
|
|
172
206
|
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
173
207
|
name: "status";
|
|
174
208
|
tableName: "asset_convert_product";
|
|
@@ -325,8 +359,25 @@ export declare const assetConvertProductInsertSchema: import("drizzle-typebox").
|
|
|
325
359
|
identity: undefined;
|
|
326
360
|
generated: undefined;
|
|
327
361
|
}, {}, {}>;
|
|
328
|
-
|
|
329
|
-
name: "
|
|
362
|
+
payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
363
|
+
name: "pay_account_type_id";
|
|
364
|
+
tableName: "asset_convert_product";
|
|
365
|
+
dataType: "string";
|
|
366
|
+
columnType: "PgUUID";
|
|
367
|
+
data: string;
|
|
368
|
+
driverParam: string;
|
|
369
|
+
notNull: true;
|
|
370
|
+
hasDefault: false;
|
|
371
|
+
isPrimaryKey: false;
|
|
372
|
+
isAutoincrement: false;
|
|
373
|
+
hasRuntimeDefault: false;
|
|
374
|
+
enumValues: undefined;
|
|
375
|
+
baseColumn: never;
|
|
376
|
+
identity: undefined;
|
|
377
|
+
generated: undefined;
|
|
378
|
+
}, {}, {}>;
|
|
379
|
+
receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
380
|
+
name: "receive_account_type_id";
|
|
330
381
|
tableName: "asset_convert_product";
|
|
331
382
|
dataType: "string";
|
|
332
383
|
columnType: "PgUUID";
|
|
@@ -359,6 +410,23 @@ export declare const assetConvertProductInsertSchema: import("drizzle-typebox").
|
|
|
359
410
|
identity: undefined;
|
|
360
411
|
generated: undefined;
|
|
361
412
|
}, {}, {}>;
|
|
413
|
+
settlementMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
414
|
+
name: "settlement_mode";
|
|
415
|
+
tableName: "asset_convert_product";
|
|
416
|
+
dataType: "string";
|
|
417
|
+
columnType: "PgEnumColumn";
|
|
418
|
+
data: "available" | "locked";
|
|
419
|
+
driverParam: string;
|
|
420
|
+
notNull: true;
|
|
421
|
+
hasDefault: false;
|
|
422
|
+
isPrimaryKey: false;
|
|
423
|
+
isAutoincrement: false;
|
|
424
|
+
hasRuntimeDefault: false;
|
|
425
|
+
enumValues: ["locked", "available"];
|
|
426
|
+
baseColumn: never;
|
|
427
|
+
identity: undefined;
|
|
428
|
+
generated: undefined;
|
|
429
|
+
}, {}, {}>;
|
|
362
430
|
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
363
431
|
name: "status";
|
|
364
432
|
tableName: "asset_convert_product";
|
|
@@ -673,14 +741,14 @@ export declare const assetConvertOrderSelectSchema: import("drizzle-typebox").Bu
|
|
|
673
741
|
tableName: "asset_convert_order";
|
|
674
742
|
dataType: "string";
|
|
675
743
|
columnType: "PgEnumColumn";
|
|
676
|
-
data: "created" | "completed"
|
|
744
|
+
data: "created" | "completed";
|
|
677
745
|
driverParam: string;
|
|
678
746
|
notNull: true;
|
|
679
747
|
hasDefault: true;
|
|
680
748
|
isPrimaryKey: false;
|
|
681
749
|
isAutoincrement: false;
|
|
682
750
|
hasRuntimeDefault: false;
|
|
683
|
-
enumValues: ["created", "completed"
|
|
751
|
+
enumValues: ["created", "completed"];
|
|
684
752
|
baseColumn: never;
|
|
685
753
|
identity: undefined;
|
|
686
754
|
generated: undefined;
|
|
@@ -1050,14 +1118,14 @@ export declare const assetConvertOrderInsertSchema: import("drizzle-typebox").Bu
|
|
|
1050
1118
|
tableName: "asset_convert_order";
|
|
1051
1119
|
dataType: "string";
|
|
1052
1120
|
columnType: "PgEnumColumn";
|
|
1053
|
-
data: "created" | "completed"
|
|
1121
|
+
data: "created" | "completed";
|
|
1054
1122
|
driverParam: string;
|
|
1055
1123
|
notNull: true;
|
|
1056
1124
|
hasDefault: true;
|
|
1057
1125
|
isPrimaryKey: false;
|
|
1058
1126
|
isAutoincrement: false;
|
|
1059
1127
|
hasRuntimeDefault: false;
|
|
1060
|
-
enumValues: ["created", "completed"
|
|
1128
|
+
enumValues: ["created", "completed"];
|
|
1061
1129
|
baseColumn: never;
|
|
1062
1130
|
identity: undefined;
|
|
1063
1131
|
generated: undefined;
|
|
@@ -8,12 +8,16 @@ export declare const AssetConvertProductErrorCodes: {
|
|
|
8
8
|
readonly ASSET_CONVERT_PRODUCT_ASSET_INACTIVE: "ASSET_CONVERT_PRODUCT_ASSET_INACTIVE";
|
|
9
9
|
readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_NOT_FOUND: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_NOT_FOUND";
|
|
10
10
|
readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_INACTIVE: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_INACTIVE";
|
|
11
|
+
readonly ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_NOT_FOUND: "ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_NOT_FOUND";
|
|
12
|
+
readonly ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_INACTIVE: "ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_INACTIVE";
|
|
11
13
|
readonly ASSET_CONVERT_PRODUCT_ASSETS_MUST_DIFFER: "ASSET_CONVERT_PRODUCT_ASSETS_MUST_DIFFER";
|
|
12
14
|
readonly ASSET_CONVERT_PRODUCT_TIME_RANGE_INVALID: "ASSET_CONVERT_PRODUCT_TIME_RANGE_INVALID";
|
|
13
15
|
readonly ASSET_CONVERT_PRODUCT_ORDER_NOT_FOUND: "ASSET_CONVERT_PRODUCT_ORDER_NOT_FOUND";
|
|
14
16
|
readonly ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_NOT_FOUND: "ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_NOT_FOUND";
|
|
15
17
|
readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_NOT_FOUND: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_NOT_FOUND";
|
|
18
|
+
readonly ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_STATUS_INVALID: "ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_STATUS_INVALID";
|
|
16
19
|
readonly ASSET_CONVERT_PRODUCT_ACCOUNT_ASSET_NOT_MATCH: "ASSET_CONVERT_PRODUCT_ACCOUNT_ASSET_NOT_MATCH";
|
|
20
|
+
readonly ASSET_CONVERT_PRODUCT_ACCOUNT_TYPE_NOT_MATCH: "ASSET_CONVERT_PRODUCT_ACCOUNT_TYPE_NOT_MATCH";
|
|
17
21
|
readonly ASSET_CONVERT_PRODUCT_IDEMPOTENCY_CONFLICT: "ASSET_CONVERT_PRODUCT_IDEMPOTENCY_CONFLICT";
|
|
18
22
|
readonly ASSET_CONVERT_PRODUCT_PAY_AMOUNT_INVALID: "ASSET_CONVERT_PRODUCT_PAY_AMOUNT_INVALID";
|
|
19
23
|
readonly ASSET_CONVERT_PRODUCT_ORDER_CREATE_FAILED: "ASSET_CONVERT_PRODUCT_ORDER_CREATE_FAILED";
|
|
@@ -7,12 +7,16 @@ export declare const zh: {
|
|
|
7
7
|
ASSET_CONVERT_PRODUCT_ASSET_INACTIVE: string;
|
|
8
8
|
ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_NOT_FOUND: string;
|
|
9
9
|
ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_TYPE_INACTIVE: string;
|
|
10
|
+
ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_NOT_FOUND: string;
|
|
11
|
+
ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_TYPE_INACTIVE: string;
|
|
10
12
|
ASSET_CONVERT_PRODUCT_ASSETS_MUST_DIFFER: string;
|
|
11
13
|
ASSET_CONVERT_PRODUCT_TIME_RANGE_INVALID: string;
|
|
12
14
|
ASSET_CONVERT_PRODUCT_ORDER_NOT_FOUND: string;
|
|
13
15
|
ASSET_CONVERT_PRODUCT_PAY_ACCOUNT_NOT_FOUND: string;
|
|
14
16
|
ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_NOT_FOUND: string;
|
|
17
|
+
ASSET_CONVERT_PRODUCT_RECEIVE_ACCOUNT_STATUS_INVALID: string;
|
|
15
18
|
ASSET_CONVERT_PRODUCT_ACCOUNT_ASSET_NOT_MATCH: string;
|
|
19
|
+
ASSET_CONVERT_PRODUCT_ACCOUNT_TYPE_NOT_MATCH: string;
|
|
16
20
|
ASSET_CONVERT_PRODUCT_IDEMPOTENCY_CONFLICT: string;
|
|
17
21
|
ASSET_CONVERT_PRODUCT_PAY_AMOUNT_INVALID: string;
|
|
18
22
|
ASSET_CONVERT_PRODUCT_ORDER_CREATE_FAILED: string;
|
|
@@ -13,8 +13,10 @@ export declare abstract class BaseAssetConvertProductService {
|
|
|
13
13
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
14
14
|
targetAssetId: string;
|
|
15
15
|
payAssetId: string;
|
|
16
|
-
|
|
16
|
+
payAccountTypeId: string;
|
|
17
|
+
receiveAccountTypeId: string;
|
|
17
18
|
minPayAmount: string;
|
|
19
|
+
settlementMode: "available" | "locked";
|
|
18
20
|
}>;
|
|
19
21
|
protected static assertProductActive(product: typeof assetConvertProduct.$inferSelect): void;
|
|
20
22
|
protected static ensureProductPayAmount(productMinPayAmount: string, payAmount: Decimal): void;
|
|
@@ -31,7 +33,7 @@ export declare abstract class BaseAssetConvertProductService {
|
|
|
31
33
|
source: string;
|
|
32
34
|
effectiveAt: Date;
|
|
33
35
|
}>;
|
|
34
|
-
protected static getPayAccountForUser(tx: TransactionTx, userId: string,
|
|
36
|
+
protected static getPayAccountForUser(tx: TransactionTx, userId: string, payAssetId: string, payAccountTypeId: string): Promise<{
|
|
35
37
|
id: string;
|
|
36
38
|
createdAt: Date;
|
|
37
39
|
updatedAt: Date;
|
|
@@ -57,7 +59,6 @@ export declare abstract class BaseAssetConvertProductService {
|
|
|
57
59
|
}>;
|
|
58
60
|
protected static assertIdempotentPayload(existing: typeof assetConvertOrder.$inferSelect, input: {
|
|
59
61
|
productId: string;
|
|
60
|
-
sourcePayAccountId: string;
|
|
61
62
|
payAmount: string;
|
|
62
63
|
idempotencyKey: string;
|
|
63
64
|
}): void;
|
|
@@ -16,7 +16,7 @@ export declare const assetConvertSettlementModeEnum: import("drizzle-orm/pg-core
|
|
|
16
16
|
/**
|
|
17
17
|
* 兑换订单状态
|
|
18
18
|
*/
|
|
19
|
-
export declare const assetConvertOrderStatusEnum: import("drizzle-orm/pg-core").PgEnum<["created", "completed"
|
|
19
|
+
export declare const assetConvertOrderStatusEnum: import("drizzle-orm/pg-core").PgEnum<["created", "completed"]>;
|
|
20
20
|
/**
|
|
21
21
|
* 资产兑换产品表
|
|
22
22
|
* 定义可兑换资产、支付资产及到账策略
|
|
@@ -161,8 +161,25 @@ export declare const assetConvertProduct: import("drizzle-orm/pg-core").PgTableW
|
|
|
161
161
|
identity: undefined;
|
|
162
162
|
generated: undefined;
|
|
163
163
|
}, {}, {}>;
|
|
164
|
-
|
|
165
|
-
name: "
|
|
164
|
+
payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
165
|
+
name: "pay_account_type_id";
|
|
166
|
+
tableName: "asset_convert_product";
|
|
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";
|
|
166
183
|
tableName: "asset_convert_product";
|
|
167
184
|
dataType: "string";
|
|
168
185
|
columnType: "PgUUID";
|
|
@@ -195,6 +212,23 @@ export declare const assetConvertProduct: import("drizzle-orm/pg-core").PgTableW
|
|
|
195
212
|
identity: undefined;
|
|
196
213
|
generated: undefined;
|
|
197
214
|
}, {}, {}>;
|
|
215
|
+
settlementMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
216
|
+
name: "settlement_mode";
|
|
217
|
+
tableName: "asset_convert_product";
|
|
218
|
+
dataType: "string";
|
|
219
|
+
columnType: "PgEnumColumn";
|
|
220
|
+
data: "available" | "locked";
|
|
221
|
+
driverParam: string;
|
|
222
|
+
notNull: true;
|
|
223
|
+
hasDefault: false;
|
|
224
|
+
isPrimaryKey: false;
|
|
225
|
+
isAutoincrement: false;
|
|
226
|
+
hasRuntimeDefault: false;
|
|
227
|
+
enumValues: ["locked", "available"];
|
|
228
|
+
baseColumn: never;
|
|
229
|
+
identity: undefined;
|
|
230
|
+
generated: undefined;
|
|
231
|
+
}, {}, {}>;
|
|
198
232
|
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
199
233
|
name: "status";
|
|
200
234
|
tableName: "asset_convert_product";
|
|
@@ -517,14 +551,14 @@ export declare const assetConvertOrder: import("drizzle-orm/pg-core").PgTableWit
|
|
|
517
551
|
tableName: "asset_convert_order";
|
|
518
552
|
dataType: "string";
|
|
519
553
|
columnType: "PgEnumColumn";
|
|
520
|
-
data: "created" | "completed"
|
|
554
|
+
data: "created" | "completed";
|
|
521
555
|
driverParam: string;
|
|
522
556
|
notNull: true;
|
|
523
557
|
hasDefault: true;
|
|
524
558
|
isPrimaryKey: false;
|
|
525
559
|
isAutoincrement: false;
|
|
526
560
|
hasRuntimeDefault: false;
|
|
527
|
-
enumValues: ["created", "completed"
|
|
561
|
+
enumValues: ["created", "completed"];
|
|
528
562
|
baseColumn: never;
|
|
529
563
|
identity: undefined;
|
|
530
564
|
generated: undefined;
|
|
@@ -603,7 +637,8 @@ export declare const assetConvertOrder: import("drizzle-orm/pg-core").PgTableWit
|
|
|
603
637
|
export declare const assetConvertProductRelations: import("drizzle-orm").Relations<"asset_convert_product", {
|
|
604
638
|
targetAsset: import("drizzle-orm").One<"asset", true>;
|
|
605
639
|
payAsset: import("drizzle-orm").One<"asset", true>;
|
|
606
|
-
|
|
640
|
+
payAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
|
|
641
|
+
receiveAccountType: import("drizzle-orm").One<"ledger_account_type", true>;
|
|
607
642
|
orders: import("drizzle-orm").Many<"asset_convert_order">;
|
|
608
643
|
}>;
|
|
609
644
|
export declare const assetConvertOrderRelations: import("drizzle-orm").Relations<"asset_convert_order", {
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
export declare const assetConvertProductListQuerySchema: import("@sinclair/typebox").TObject<{
|
|
2
|
-
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
3
|
-
active: "active";
|
|
4
|
-
draft: "draft";
|
|
5
|
-
paused: "paused";
|
|
6
|
-
ended: "ended";
|
|
7
|
-
}>>;
|
|
8
2
|
productCategoryKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
9
3
|
gold: "gold";
|
|
10
4
|
gov_bond: "gov_bond";
|
|
@@ -17,6 +11,230 @@ export declare const assetConvertProductListQuerySchema: import("@sinclair/typeb
|
|
|
17
11
|
pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18
12
|
}>;
|
|
19
13
|
export type AssetConvertProductListQueryType = typeof assetConvertProductListQuerySchema.static;
|
|
14
|
+
export declare const assetConvertProductResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
|
|
15
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
16
|
+
name: "created_at";
|
|
17
|
+
tableName: "asset_convert_product";
|
|
18
|
+
dataType: "date";
|
|
19
|
+
columnType: "PgTimestamp";
|
|
20
|
+
data: Date;
|
|
21
|
+
driverParam: string;
|
|
22
|
+
notNull: true;
|
|
23
|
+
hasDefault: true;
|
|
24
|
+
isPrimaryKey: false;
|
|
25
|
+
isAutoincrement: false;
|
|
26
|
+
hasRuntimeDefault: false;
|
|
27
|
+
enumValues: undefined;
|
|
28
|
+
baseColumn: never;
|
|
29
|
+
identity: undefined;
|
|
30
|
+
generated: undefined;
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
33
|
+
name: "updated_at";
|
|
34
|
+
tableName: "asset_convert_product";
|
|
35
|
+
dataType: "date";
|
|
36
|
+
columnType: "PgTimestamp";
|
|
37
|
+
data: Date;
|
|
38
|
+
driverParam: string;
|
|
39
|
+
notNull: true;
|
|
40
|
+
hasDefault: true;
|
|
41
|
+
isPrimaryKey: false;
|
|
42
|
+
isAutoincrement: false;
|
|
43
|
+
hasRuntimeDefault: false;
|
|
44
|
+
enumValues: undefined;
|
|
45
|
+
baseColumn: never;
|
|
46
|
+
identity: undefined;
|
|
47
|
+
generated: undefined;
|
|
48
|
+
}, {}, {}>;
|
|
49
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
50
|
+
name: "id";
|
|
51
|
+
tableName: "asset_convert_product";
|
|
52
|
+
dataType: "string";
|
|
53
|
+
columnType: "PgUUID";
|
|
54
|
+
data: string;
|
|
55
|
+
driverParam: string;
|
|
56
|
+
notNull: true;
|
|
57
|
+
hasDefault: true;
|
|
58
|
+
isPrimaryKey: true;
|
|
59
|
+
isAutoincrement: false;
|
|
60
|
+
hasRuntimeDefault: false;
|
|
61
|
+
enumValues: undefined;
|
|
62
|
+
baseColumn: never;
|
|
63
|
+
identity: undefined;
|
|
64
|
+
generated: undefined;
|
|
65
|
+
}, {}, {}>;
|
|
66
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
67
|
+
name: "name";
|
|
68
|
+
tableName: "asset_convert_product";
|
|
69
|
+
dataType: "string";
|
|
70
|
+
columnType: "PgText";
|
|
71
|
+
data: string;
|
|
72
|
+
driverParam: string;
|
|
73
|
+
notNull: true;
|
|
74
|
+
hasDefault: false;
|
|
75
|
+
isPrimaryKey: false;
|
|
76
|
+
isAutoincrement: false;
|
|
77
|
+
hasRuntimeDefault: false;
|
|
78
|
+
enumValues: [string, ...string[]];
|
|
79
|
+
baseColumn: never;
|
|
80
|
+
identity: undefined;
|
|
81
|
+
generated: undefined;
|
|
82
|
+
}, {}, {}>;
|
|
83
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
84
|
+
name: "description";
|
|
85
|
+
tableName: "asset_convert_product";
|
|
86
|
+
dataType: "string";
|
|
87
|
+
columnType: "PgText";
|
|
88
|
+
data: string;
|
|
89
|
+
driverParam: string;
|
|
90
|
+
notNull: false;
|
|
91
|
+
hasDefault: false;
|
|
92
|
+
isPrimaryKey: false;
|
|
93
|
+
isAutoincrement: false;
|
|
94
|
+
hasRuntimeDefault: false;
|
|
95
|
+
enumValues: [string, ...string[]];
|
|
96
|
+
baseColumn: never;
|
|
97
|
+
identity: undefined;
|
|
98
|
+
generated: undefined;
|
|
99
|
+
}, {}, {}>;
|
|
100
|
+
productCategoryKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
101
|
+
name: "product_category_key";
|
|
102
|
+
tableName: "asset_convert_product";
|
|
103
|
+
dataType: "string";
|
|
104
|
+
columnType: "PgEnumColumn";
|
|
105
|
+
data: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
106
|
+
driverParam: string;
|
|
107
|
+
notNull: true;
|
|
108
|
+
hasDefault: false;
|
|
109
|
+
isPrimaryKey: false;
|
|
110
|
+
isAutoincrement: false;
|
|
111
|
+
hasRuntimeDefault: false;
|
|
112
|
+
enumValues: ["gold", "gov_bond", "real_estate", "corporate_credit"];
|
|
113
|
+
baseColumn: never;
|
|
114
|
+
identity: undefined;
|
|
115
|
+
generated: undefined;
|
|
116
|
+
}, {}, {}>;
|
|
117
|
+
targetAssetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
118
|
+
name: "target_asset_id";
|
|
119
|
+
tableName: "asset_convert_product";
|
|
120
|
+
dataType: "string";
|
|
121
|
+
columnType: "PgUUID";
|
|
122
|
+
data: string;
|
|
123
|
+
driverParam: string;
|
|
124
|
+
notNull: true;
|
|
125
|
+
hasDefault: false;
|
|
126
|
+
isPrimaryKey: false;
|
|
127
|
+
isAutoincrement: false;
|
|
128
|
+
hasRuntimeDefault: false;
|
|
129
|
+
enumValues: undefined;
|
|
130
|
+
baseColumn: never;
|
|
131
|
+
identity: undefined;
|
|
132
|
+
generated: undefined;
|
|
133
|
+
}, {}, {}>;
|
|
134
|
+
payAssetId: import("drizzle-orm/pg-core").PgColumn<{
|
|
135
|
+
name: "pay_asset_id";
|
|
136
|
+
tableName: "asset_convert_product";
|
|
137
|
+
dataType: "string";
|
|
138
|
+
columnType: "PgUUID";
|
|
139
|
+
data: string;
|
|
140
|
+
driverParam: string;
|
|
141
|
+
notNull: true;
|
|
142
|
+
hasDefault: false;
|
|
143
|
+
isPrimaryKey: false;
|
|
144
|
+
isAutoincrement: false;
|
|
145
|
+
hasRuntimeDefault: false;
|
|
146
|
+
enumValues: undefined;
|
|
147
|
+
baseColumn: never;
|
|
148
|
+
identity: undefined;
|
|
149
|
+
generated: undefined;
|
|
150
|
+
}, {}, {}>;
|
|
151
|
+
payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
152
|
+
name: "pay_account_type_id";
|
|
153
|
+
tableName: "asset_convert_product";
|
|
154
|
+
dataType: "string";
|
|
155
|
+
columnType: "PgUUID";
|
|
156
|
+
data: string;
|
|
157
|
+
driverParam: string;
|
|
158
|
+
notNull: true;
|
|
159
|
+
hasDefault: false;
|
|
160
|
+
isPrimaryKey: false;
|
|
161
|
+
isAutoincrement: false;
|
|
162
|
+
hasRuntimeDefault: false;
|
|
163
|
+
enumValues: undefined;
|
|
164
|
+
baseColumn: never;
|
|
165
|
+
identity: undefined;
|
|
166
|
+
generated: undefined;
|
|
167
|
+
}, {}, {}>;
|
|
168
|
+
receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
169
|
+
name: "receive_account_type_id";
|
|
170
|
+
tableName: "asset_convert_product";
|
|
171
|
+
dataType: "string";
|
|
172
|
+
columnType: "PgUUID";
|
|
173
|
+
data: string;
|
|
174
|
+
driverParam: string;
|
|
175
|
+
notNull: true;
|
|
176
|
+
hasDefault: false;
|
|
177
|
+
isPrimaryKey: false;
|
|
178
|
+
isAutoincrement: false;
|
|
179
|
+
hasRuntimeDefault: false;
|
|
180
|
+
enumValues: undefined;
|
|
181
|
+
baseColumn: never;
|
|
182
|
+
identity: undefined;
|
|
183
|
+
generated: undefined;
|
|
184
|
+
}, {}, {}>;
|
|
185
|
+
minPayAmount: import("drizzle-orm/pg-core").PgColumn<{
|
|
186
|
+
name: "min_pay_amount";
|
|
187
|
+
tableName: "asset_convert_product";
|
|
188
|
+
dataType: "string";
|
|
189
|
+
columnType: "PgNumeric";
|
|
190
|
+
data: string;
|
|
191
|
+
driverParam: string;
|
|
192
|
+
notNull: true;
|
|
193
|
+
hasDefault: false;
|
|
194
|
+
isPrimaryKey: false;
|
|
195
|
+
isAutoincrement: false;
|
|
196
|
+
hasRuntimeDefault: false;
|
|
197
|
+
enumValues: undefined;
|
|
198
|
+
baseColumn: never;
|
|
199
|
+
identity: undefined;
|
|
200
|
+
generated: undefined;
|
|
201
|
+
}, {}, {}>;
|
|
202
|
+
settlementMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
203
|
+
name: "settlement_mode";
|
|
204
|
+
tableName: "asset_convert_product";
|
|
205
|
+
dataType: "string";
|
|
206
|
+
columnType: "PgEnumColumn";
|
|
207
|
+
data: "available" | "locked";
|
|
208
|
+
driverParam: string;
|
|
209
|
+
notNull: true;
|
|
210
|
+
hasDefault: false;
|
|
211
|
+
isPrimaryKey: false;
|
|
212
|
+
isAutoincrement: false;
|
|
213
|
+
hasRuntimeDefault: false;
|
|
214
|
+
enumValues: ["locked", "available"];
|
|
215
|
+
baseColumn: never;
|
|
216
|
+
identity: undefined;
|
|
217
|
+
generated: undefined;
|
|
218
|
+
}, {}, {}>;
|
|
219
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
220
|
+
name: "status";
|
|
221
|
+
tableName: "asset_convert_product";
|
|
222
|
+
dataType: "string";
|
|
223
|
+
columnType: "PgEnumColumn";
|
|
224
|
+
data: "active" | "draft" | "paused" | "ended";
|
|
225
|
+
driverParam: string;
|
|
226
|
+
notNull: true;
|
|
227
|
+
hasDefault: true;
|
|
228
|
+
isPrimaryKey: false;
|
|
229
|
+
isAutoincrement: false;
|
|
230
|
+
hasRuntimeDefault: false;
|
|
231
|
+
enumValues: ["draft", "active", "paused", "ended"];
|
|
232
|
+
baseColumn: never;
|
|
233
|
+
identity: undefined;
|
|
234
|
+
generated: undefined;
|
|
235
|
+
}, {}, {}>;
|
|
236
|
+
}, undefined>;
|
|
237
|
+
export type AssetConvertProductResponseType = typeof assetConvertProductResponseSchema.static;
|
|
20
238
|
export declare const assetConvertProductListResponseSchema: import("@sinclair/typebox").TObject<{
|
|
21
239
|
data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
|
|
22
240
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -155,8 +373,25 @@ export declare const assetConvertProductListResponseSchema: import("@sinclair/ty
|
|
|
155
373
|
identity: undefined;
|
|
156
374
|
generated: undefined;
|
|
157
375
|
}, {}, {}>;
|
|
158
|
-
|
|
159
|
-
name: "
|
|
376
|
+
payAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
377
|
+
name: "pay_account_type_id";
|
|
378
|
+
tableName: "asset_convert_product";
|
|
379
|
+
dataType: "string";
|
|
380
|
+
columnType: "PgUUID";
|
|
381
|
+
data: string;
|
|
382
|
+
driverParam: string;
|
|
383
|
+
notNull: true;
|
|
384
|
+
hasDefault: false;
|
|
385
|
+
isPrimaryKey: false;
|
|
386
|
+
isAutoincrement: false;
|
|
387
|
+
hasRuntimeDefault: false;
|
|
388
|
+
enumValues: undefined;
|
|
389
|
+
baseColumn: never;
|
|
390
|
+
identity: undefined;
|
|
391
|
+
generated: undefined;
|
|
392
|
+
}, {}, {}>;
|
|
393
|
+
receiveAccountTypeId: import("drizzle-orm/pg-core").PgColumn<{
|
|
394
|
+
name: "receive_account_type_id";
|
|
160
395
|
tableName: "asset_convert_product";
|
|
161
396
|
dataType: "string";
|
|
162
397
|
columnType: "PgUUID";
|
|
@@ -189,6 +424,23 @@ export declare const assetConvertProductListResponseSchema: import("@sinclair/ty
|
|
|
189
424
|
identity: undefined;
|
|
190
425
|
generated: undefined;
|
|
191
426
|
}, {}, {}>;
|
|
427
|
+
settlementMode: import("drizzle-orm/pg-core").PgColumn<{
|
|
428
|
+
name: "settlement_mode";
|
|
429
|
+
tableName: "asset_convert_product";
|
|
430
|
+
dataType: "string";
|
|
431
|
+
columnType: "PgEnumColumn";
|
|
432
|
+
data: "available" | "locked";
|
|
433
|
+
driverParam: string;
|
|
434
|
+
notNull: true;
|
|
435
|
+
hasDefault: false;
|
|
436
|
+
isPrimaryKey: false;
|
|
437
|
+
isAutoincrement: false;
|
|
438
|
+
hasRuntimeDefault: false;
|
|
439
|
+
enumValues: ["locked", "available"];
|
|
440
|
+
baseColumn: never;
|
|
441
|
+
identity: undefined;
|
|
442
|
+
generated: undefined;
|
|
443
|
+
}, {}, {}>;
|
|
192
444
|
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
193
445
|
name: "status";
|
|
194
446
|
tableName: "asset_convert_product";
|
|
@@ -218,7 +470,6 @@ export declare const assetConvertProductListResponseSchema: import("@sinclair/ty
|
|
|
218
470
|
export type AssetConvertProductListResponseType = typeof assetConvertProductListResponseSchema.static;
|
|
219
471
|
export declare const assetConvertOrderCreateSchema: import("@sinclair/typebox").TObject<{
|
|
220
472
|
productId: import("@sinclair/typebox").TString;
|
|
221
|
-
sourcePayAccountId: import("@sinclair/typebox").TString;
|
|
222
473
|
payAmount: import("@sinclair/typebox").TString;
|
|
223
474
|
idempotencyKey: import("@sinclair/typebox").TString;
|
|
224
475
|
}>;
|
|
@@ -518,14 +769,14 @@ export declare const assetConvertOrderResponseSchema: import("drizzle-typebox").
|
|
|
518
769
|
tableName: "asset_convert_order";
|
|
519
770
|
dataType: "string";
|
|
520
771
|
columnType: "PgEnumColumn";
|
|
521
|
-
data: "created" | "completed"
|
|
772
|
+
data: "created" | "completed";
|
|
522
773
|
driverParam: string;
|
|
523
774
|
notNull: true;
|
|
524
775
|
hasDefault: true;
|
|
525
776
|
isPrimaryKey: false;
|
|
526
777
|
isAutoincrement: false;
|
|
527
778
|
hasRuntimeDefault: false;
|
|
528
|
-
enumValues: ["created", "completed"
|
|
779
|
+
enumValues: ["created", "completed"];
|
|
529
780
|
baseColumn: never;
|
|
530
781
|
identity: undefined;
|
|
531
782
|
generated: undefined;
|
|
@@ -604,7 +855,6 @@ export declare const assetConvertOrderListQuerySchema: import("@sinclair/typebox
|
|
|
604
855
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
605
856
|
created: "created";
|
|
606
857
|
completed: "completed";
|
|
607
|
-
failed: "failed";
|
|
608
858
|
}>>;
|
|
609
859
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
610
860
|
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -908,14 +1158,14 @@ export declare const assetConvertOrderListResponseSchema: import("@sinclair/type
|
|
|
908
1158
|
tableName: "asset_convert_order";
|
|
909
1159
|
dataType: "string";
|
|
910
1160
|
columnType: "PgEnumColumn";
|
|
911
|
-
data: "created" | "completed"
|
|
1161
|
+
data: "created" | "completed";
|
|
912
1162
|
driverParam: string;
|
|
913
1163
|
notNull: true;
|
|
914
1164
|
hasDefault: true;
|
|
915
1165
|
isPrimaryKey: false;
|
|
916
1166
|
isAutoincrement: false;
|
|
917
1167
|
hasRuntimeDefault: false;
|
|
918
|
-
enumValues: ["created", "completed"
|
|
1168
|
+
enumValues: ["created", "completed"];
|
|
919
1169
|
baseColumn: never;
|
|
920
1170
|
identity: undefined;
|
|
921
1171
|
generated: undefined;
|