@r2wa-org/eden 0.0.80 → 0.0.81
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 +4 -4
- package/dist/asset-convert-product/admin/dto.schemas.d.ts +5 -5
- package/dist/asset-convert-product/admin/router.d.ts +4 -4
- package/dist/asset-convert-product/admin/service.d.ts +3 -0
- package/dist/asset-convert-product/index.d.ts +1 -0
- package/dist/asset-convert-product/seed.d.ts +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/welfare-cycle/admin/dto.schemas.d.ts +4 -4
- package/dist/welfare-cycle/admin/service.d.ts +3 -0
- package/dist/welfare-cycle/index.d.ts +1 -0
- package/dist/welfare-cycle/seed.d.ts +1 -0
- package/package.json +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -1269,16 +1269,16 @@ export declare const adminRouter: Elysia<"/admin", {
|
|
|
1269
1269
|
body: {
|
|
1270
1270
|
description?: string | null | undefined;
|
|
1271
1271
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1272
|
+
payAssetId?: string | undefined;
|
|
1273
|
+
payAccountTypeId?: string | undefined;
|
|
1274
|
+
receiveAccountTypeId?: string | undefined;
|
|
1275
|
+
settlementMode?: "available" | "locked" | undefined;
|
|
1272
1276
|
allowPurchase?: boolean | undefined;
|
|
1273
1277
|
isHot?: boolean | undefined;
|
|
1274
1278
|
name: string;
|
|
1275
1279
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1276
1280
|
targetAssetId: string;
|
|
1277
|
-
payAssetId: string;
|
|
1278
|
-
payAccountTypeId: string;
|
|
1279
|
-
receiveAccountTypeId: string;
|
|
1280
1281
|
minPayAmount: string;
|
|
1281
|
-
settlementMode: "available" | "locked";
|
|
1282
1282
|
};
|
|
1283
1283
|
params: {};
|
|
1284
1284
|
query: {};
|
|
@@ -366,14 +366,14 @@ export declare const assetConvertProductCreateSchema: import("@sinclair/typebox"
|
|
|
366
366
|
corporate_credit: "corporate_credit";
|
|
367
367
|
}>;
|
|
368
368
|
targetAssetId: import("@sinclair/typebox").TString;
|
|
369
|
-
payAssetId: import("@sinclair/typebox").TString
|
|
370
|
-
payAccountTypeId: import("@sinclair/typebox").TString
|
|
371
|
-
receiveAccountTypeId: import("@sinclair/typebox").TString
|
|
369
|
+
payAssetId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
370
|
+
payAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
371
|
+
receiveAccountTypeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
372
372
|
minPayAmount: import("@sinclair/typebox").TString;
|
|
373
|
-
settlementMode: import("@sinclair/typebox").TEnum<{
|
|
373
|
+
settlementMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
374
374
|
available: "available";
|
|
375
375
|
locked: "locked";
|
|
376
|
-
}
|
|
376
|
+
}>>;
|
|
377
377
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
|
|
378
378
|
active: "active";
|
|
379
379
|
draft: "draft";
|
|
@@ -386,16 +386,16 @@ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_prod
|
|
|
386
386
|
body: {
|
|
387
387
|
description?: string | null | undefined;
|
|
388
388
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
389
|
+
payAssetId?: string | undefined;
|
|
390
|
+
payAccountTypeId?: string | undefined;
|
|
391
|
+
receiveAccountTypeId?: string | undefined;
|
|
392
|
+
settlementMode?: "available" | "locked" | undefined;
|
|
389
393
|
allowPurchase?: boolean | undefined;
|
|
390
394
|
isHot?: boolean | undefined;
|
|
391
395
|
name: string;
|
|
392
396
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
393
397
|
targetAssetId: string;
|
|
394
|
-
payAssetId: string;
|
|
395
|
-
payAccountTypeId: string;
|
|
396
|
-
receiveAccountTypeId: string;
|
|
397
398
|
minPayAmount: string;
|
|
398
|
-
settlementMode: "available" | "locked";
|
|
399
399
|
};
|
|
400
400
|
params: {};
|
|
401
401
|
query: {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { TransactionTx } from '../../db/transaction';
|
|
2
2
|
import type { AssetConvertOrderListQueryType, AssetConvertOrderStatsQueryType, AssetConvertOrderStatsResponseType, AssetConvertProductCreateInputType, AssetConvertProductListQueryType, AssetConvertProductUpdateInputType } from './dto.schemas';
|
|
3
3
|
export declare abstract class AdminAssetConvertProductService {
|
|
4
|
+
private static resolveDefaultPayAssetId;
|
|
5
|
+
private static resolveDefaultAccountTypeId;
|
|
6
|
+
private static resolveCreateInputDefaults;
|
|
4
7
|
private static validateMinPayAmount;
|
|
5
8
|
private static getProductById;
|
|
6
9
|
private static mapProductResponse;
|
|
@@ -3,6 +3,7 @@ export * from './db.schemas';
|
|
|
3
3
|
export * from './errors';
|
|
4
4
|
export * from './internal/service';
|
|
5
5
|
export * from './permissions';
|
|
6
|
+
export * from './seed';
|
|
6
7
|
export * from './schema';
|
|
7
8
|
export { assetConvertProductRouter } from './user/router';
|
|
8
9
|
export * from './user/service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function seedAssetConvertProducts(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1592,16 +1592,16 @@ declare const app: Elysia<"/api", {
|
|
|
1592
1592
|
body: {
|
|
1593
1593
|
description?: string | null | undefined;
|
|
1594
1594
|
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1595
|
+
payAssetId?: string | undefined;
|
|
1596
|
+
payAccountTypeId?: string | undefined;
|
|
1597
|
+
receiveAccountTypeId?: string | undefined;
|
|
1598
|
+
settlementMode?: "available" | "locked" | undefined;
|
|
1595
1599
|
allowPurchase?: boolean | undefined;
|
|
1596
1600
|
isHot?: boolean | undefined;
|
|
1597
1601
|
name: string;
|
|
1598
1602
|
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1599
1603
|
targetAssetId: string;
|
|
1600
|
-
payAssetId: string;
|
|
1601
|
-
payAccountTypeId: string;
|
|
1602
|
-
receiveAccountTypeId: string;
|
|
1603
1604
|
minPayAmount: string;
|
|
1604
|
-
settlementMode: "available" | "locked";
|
|
1605
1605
|
};
|
|
1606
1606
|
params: {};
|
|
1607
1607
|
query: {};
|
|
@@ -12,10 +12,10 @@ export declare const welfareCyclePlanCreateSchema: import("@sinclair/typebox").T
|
|
|
12
12
|
ended: "ended";
|
|
13
13
|
}>>;
|
|
14
14
|
rightsAssetId: import("@sinclair/typebox").TString;
|
|
15
|
-
pricingAssetId: import("@sinclair/typebox").TString
|
|
16
|
-
sourcePricingAccountTypeId: import("@sinclair/typebox").TString
|
|
17
|
-
dailyPayoutAccountTypeId: import("@sinclair/typebox").TString
|
|
18
|
-
maturitySettlementAccountTypeId: import("@sinclair/typebox").TString
|
|
15
|
+
pricingAssetId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
16
|
+
sourcePricingAccountTypeId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
17
|
+
dailyPayoutAccountTypeId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
18
|
+
maturitySettlementAccountTypeId: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TString]>;
|
|
19
19
|
pricePerShare: import("@sinclair/typebox").TString;
|
|
20
20
|
rightsPerShare: import("@sinclair/typebox").TString;
|
|
21
21
|
cycleDays: import("@sinclair/typebox").TInteger;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { WelfareCycleDailyPayoutListQueryType, WelfareCycleMaturitySettlementListQueryType, WelfareCyclePlanCreateInputType, WelfareCyclePlanListQueryType, WelfareCyclePlanUpdateInputType, WelfareCycleRunDailyPayoutInputType, WelfareCycleRunMaturitySettlementInputType, WelfareCycleSubscriptionListQueryType } from './dto.schemas';
|
|
2
2
|
export declare abstract class AdminWelfareCycleService {
|
|
3
|
+
private static resolveDefaultPricingAssetId;
|
|
4
|
+
private static resolveDefaultAccountTypeId;
|
|
5
|
+
private static resolvePlanReferenceDefaults;
|
|
3
6
|
private static resolveCoverImageUrlByFileId;
|
|
4
7
|
private static mapDailyPayoutResponse;
|
|
5
8
|
private static mapMaturitySettlementResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function seedWelfareCyclePlans(): Promise<void>;
|