@huyooo/ui 2.1.18 → 2.2.0
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/PaySubscriptions-Du9QWvlH.js +1384 -0
- package/dist/PricingPlans-BEhWsV2D.js +448 -0
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DbkGYZ2f.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrauYUc_.js} +1 -1
- package/dist/{WidthContainer-FXZqDMid.js → WidthContainer-CiabzONI.js} +1 -1
- package/dist/common.js +1 -1
- package/dist/composables/Billing/useBillingPlans.d.ts +10 -2
- package/dist/main.js +4 -4
- package/dist/pay.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +15 -0
- package/dist/types/api/billing.generated.d.ts +23 -0
- package/dist/user.js +1 -1
- package/dist/utils/rechargeGiftPreview.d.ts +9 -0
- package/package.json +1 -1
- package/dist/PaySubscriptions-pEZtjp1g.js +0 -1287
- package/dist/PricingPlans-CHC05fhu.js +0 -398
|
@@ -584,6 +584,15 @@ export type Api = {
|
|
|
584
584
|
return: any;
|
|
585
585
|
};
|
|
586
586
|
};
|
|
587
|
+
noAccessRoleId: {
|
|
588
|
+
/** 更新试用结束或无有效套餐时回退的角色 */
|
|
589
|
+
post: {
|
|
590
|
+
body: {
|
|
591
|
+
noAccessRoleId: string;
|
|
592
|
+
};
|
|
593
|
+
return: any;
|
|
594
|
+
};
|
|
595
|
+
};
|
|
587
596
|
emailConfig: {
|
|
588
597
|
/** 更新应用邮件发送配置 */
|
|
589
598
|
post: {
|
|
@@ -2795,6 +2804,12 @@ export interface ApiClient {
|
|
|
2795
2804
|
defaultRoleId: string;
|
|
2796
2805
|
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2797
2806
|
};
|
|
2807
|
+
noAccessRoleId: {
|
|
2808
|
+
/** 更新试用结束或无有效套餐时回退的角色 */
|
|
2809
|
+
post: (body: {
|
|
2810
|
+
noAccessRoleId: string;
|
|
2811
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
2812
|
+
};
|
|
2798
2813
|
emailConfig: {
|
|
2799
2814
|
/** 更新应用邮件发送配置 */
|
|
2800
2815
|
post: (body?: {
|
|
@@ -128,6 +128,7 @@ export type Api = {
|
|
|
128
128
|
interval?: "day" | "week" | "month" | "year";
|
|
129
129
|
intervalCount?: number;
|
|
130
130
|
bonusPoints?: number;
|
|
131
|
+
claimLimit?: number;
|
|
131
132
|
metadata?: Record<string, unknown>;
|
|
132
133
|
active?: boolean;
|
|
133
134
|
};
|
|
@@ -155,6 +156,7 @@ export type Api = {
|
|
|
155
156
|
active?: boolean;
|
|
156
157
|
metadata?: Record<string, unknown>;
|
|
157
158
|
bonusPoints?: number;
|
|
159
|
+
claimLimit?: number;
|
|
158
160
|
unitAmount?: number;
|
|
159
161
|
interval?: "day" | "week" | "month" | "year";
|
|
160
162
|
intervalCount?: number;
|
|
@@ -507,6 +509,15 @@ export type Api = {
|
|
|
507
509
|
return: any;
|
|
508
510
|
};
|
|
509
511
|
};
|
|
512
|
+
claimStatus: {
|
|
513
|
+
/** 查询当前用户对指定免费价是否还可领取 */
|
|
514
|
+
post: {
|
|
515
|
+
body: {
|
|
516
|
+
priceId?: string;
|
|
517
|
+
};
|
|
518
|
+
return: any;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
510
521
|
start: {
|
|
511
522
|
/** 领取当前应用的免费体验权益 */
|
|
512
523
|
post: {
|
|
@@ -1376,6 +1387,7 @@ export type Api = {
|
|
|
1376
1387
|
body: {
|
|
1377
1388
|
packageId: string;
|
|
1378
1389
|
payType: "alipay" | "weixinpay";
|
|
1390
|
+
amountFen?: number;
|
|
1379
1391
|
subjectUserId?: string;
|
|
1380
1392
|
};
|
|
1381
1393
|
return: any;
|
|
@@ -1386,6 +1398,7 @@ export type Api = {
|
|
|
1386
1398
|
post: {
|
|
1387
1399
|
body: {
|
|
1388
1400
|
packageId: string;
|
|
1401
|
+
amountFen?: number;
|
|
1389
1402
|
subjectUserId?: string;
|
|
1390
1403
|
};
|
|
1391
1404
|
return: any;
|
|
@@ -3463,6 +3476,7 @@ export interface ApiClient {
|
|
|
3463
3476
|
interval?: "day" | "week" | "month" | "year";
|
|
3464
3477
|
intervalCount?: number;
|
|
3465
3478
|
bonusPoints?: number;
|
|
3479
|
+
claimLimit?: number;
|
|
3466
3480
|
metadata?: Record<string, unknown>;
|
|
3467
3481
|
active?: boolean;
|
|
3468
3482
|
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
@@ -3484,6 +3498,7 @@ export interface ApiClient {
|
|
|
3484
3498
|
active?: boolean;
|
|
3485
3499
|
metadata?: Record<string, unknown>;
|
|
3486
3500
|
bonusPoints?: number;
|
|
3501
|
+
claimLimit?: number;
|
|
3487
3502
|
unitAmount?: number;
|
|
3488
3503
|
interval?: "day" | "week" | "month" | "year";
|
|
3489
3504
|
intervalCount?: number;
|
|
@@ -3743,6 +3758,12 @@ export interface ApiClient {
|
|
|
3743
3758
|
/** 获取当前用户免费体验状态 */
|
|
3744
3759
|
post: (config?: RequestConfig) => RequestBuilder<any>;
|
|
3745
3760
|
};
|
|
3761
|
+
claimStatus: {
|
|
3762
|
+
/** 查询当前用户对指定免费价是否还可领取 */
|
|
3763
|
+
post: (body?: {
|
|
3764
|
+
priceId?: string;
|
|
3765
|
+
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
3766
|
+
};
|
|
3746
3767
|
start: {
|
|
3747
3768
|
/** 领取当前应用的免费体验权益 */
|
|
3748
3769
|
post: (body?: {
|
|
@@ -4406,6 +4427,7 @@ export interface ApiClient {
|
|
|
4406
4427
|
post: (body: {
|
|
4407
4428
|
packageId: string;
|
|
4408
4429
|
payType: "alipay" | "weixinpay";
|
|
4430
|
+
amountFen?: number;
|
|
4409
4431
|
subjectUserId?: string;
|
|
4410
4432
|
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
4411
4433
|
};
|
|
@@ -4413,6 +4435,7 @@ export interface ApiClient {
|
|
|
4413
4435
|
/** 创建支付宝扫码支付订单(当面付) */
|
|
4414
4436
|
post: (body: {
|
|
4415
4437
|
packageId: string;
|
|
4438
|
+
amountFen?: number;
|
|
4416
4439
|
subjectUserId?: string;
|
|
4417
4440
|
}, config?: RequestConfig) => RequestBuilder<any>;
|
|
4418
4441
|
};
|
package/dist/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { U as a, a as n, b as r, c as t, d as U, _ as u, e as i, f as M, g as o, h as m, i as I, j as c, k as d, l as b, m as f } from "./UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrauYUc_.js";
|
|
2
2
|
export {
|
|
3
3
|
a as UserAccountMenu,
|
|
4
4
|
n as UserAvatar,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** 充值赠送预览:与 billing-server rechargeGiftService 同口径 */
|
|
2
|
+
export interface RechargeGiftPreviewSettings {
|
|
3
|
+
giftUnitAmountFen: number;
|
|
4
|
+
bonusPointsPerUnit: number;
|
|
5
|
+
}
|
|
6
|
+
/** 按实付金额计算赠送积分 */
|
|
7
|
+
export declare function calcRechargeBonusPoints(priceFen: number, settings: RechargeGiftPreviewSettings): number;
|
|
8
|
+
/** 自定义充值基础积分 */
|
|
9
|
+
export declare function calcCustomRechargeBasePoints(amountFen: number, pointsPerYuan: number): number;
|