🐛 fix(api): Update API type definitions to replace 'deduction' with 'gift_amount' and make 'commission' field optional

This commit is contained in:
web@ppanel 2025-01-09 21:40:02 +07:00
parent 8f8a12a510
commit c2af06052c
7 changed files with 12 additions and 23 deletions

View File

@ -52,16 +52,6 @@
### ♻ Code Refactoring
- **config**: Simplify environment variable handling and improve build script ([cf54d0f](https://github.com/perfect-panel/ppanel-web/commit/cf54d0f))
<a name="readme-top"></a>
# Changelog
# [1.0.0-beta.3](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2024-12-26)
### ♻ Code Refactoring
- **publish**: Simplify environment variable handling and improve build script ([88ea21b](https://github.com/perfect-panel/ppanel-web/commit/88ea21b))
# [1.0.0-beta.2](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2024-12-26)

View File

@ -555,7 +555,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -577,7 +577,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -1016,7 +1016,7 @@ declare namespace API {
avatar: string;
balance: number;
commission: number;
deduction: number;
gift_amount: number;
telegram: number;
refer_code: string;
referer_id: number;

View File

@ -169,7 +169,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -191,7 +191,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -417,7 +417,7 @@ declare namespace API {
avatar: string;
balance: number;
commission: number;
deduction: number;
gift_amount: number;
telegram: number;
refer_code: string;
referer_id: number;

View File

@ -169,7 +169,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -191,7 +191,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -417,7 +417,6 @@ declare namespace API {
avatar: string;
balance: number;
commission: number;
deduction: number;
gift_amount: number;
telegram: number;
refer_code: string;

View File

@ -191,7 +191,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -213,7 +213,7 @@ declare namespace API {
discount: number;
coupon: string;
coupon_discount: number;
commission: number;
commission?: number;
method: string;
fee_amount: number;
trade_no: string;
@ -612,7 +612,7 @@ declare namespace API {
avatar: string;
balance: number;
commission: number;
deduction: number;
gift_amount: number;
telegram: number;
refer_code: string;
referer_id: number;

BIN
bun.lockb

Binary file not shown.

View File

@ -55,7 +55,7 @@
"@workspace/typescript-config": "workspace:*",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"semantic-release": "24.2.1",
"semantic-release": "21.1.2",
"semantic-release-config-gitmoji": "^1.5.3",
"turbo": "^2.3.3",
"typescript": "^5.7.3"