mantur-components 0.1.7 → 0.1.9

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/README.md CHANGED
@@ -26,6 +26,7 @@ npm install react react-dom @arco-design/web-react next-themes react-i18next
26
26
  - 获取当前团队
27
27
  - 切换团队
28
28
  - 获取用户积分
29
+ - 充值积分(固定套餐和自定义金额)
29
30
  - 个人资料更新
30
31
  - 退出登录
31
32
  - 语言切换
@@ -11,13 +11,18 @@ export declare const RECHARGE_PACKAGES: readonly [{
11
11
  readonly points: 5500;
12
12
  readonly price: 50;
13
13
  readonly recommended: true;
14
- }, {
15
- readonly id: "points-24000";
16
- readonly points: 24000;
17
- readonly price: 200;
18
14
  }];
19
- export type RechargePackage = (typeof RECHARGE_PACKAGES)[number];
20
- export type RechargePackageId = RechargePackage["id"];
15
+ export declare const CUSTOM_RECHARGE_MIN_PRICE = 10;
16
+ export declare const CUSTOM_RECHARGE_POINTS_PER_USD = 100;
17
+ export type FixedRechargePackage = (typeof RECHARGE_PACKAGES)[number];
18
+ export interface CustomRechargePackage {
19
+ id: "custom";
20
+ points: number;
21
+ price: number;
22
+ custom: true;
23
+ }
24
+ export type RechargePackage = FixedRechargePackage | CustomRechargePackage;
25
+ export type RechargePackageId = FixedRechargePackage["id"] | CustomRechargePackage["id"];
21
26
  export type PointsLedgerType = "all" | "income" | "expense";
22
27
  export type PointsLedgerSource = "all" | "recharge" | "gift";
23
28
  export type PointsLedgerBadgeKind = "recharge" | "gift" | "deducted" | "expired";