@cherryin/aigw-api-client 0.1.30 → 0.1.32
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/.openapi-generator/FILES +7 -2
- package/README.md +12 -7
- package/api.ts +188 -22
- package/dist/api.d.ts +132 -19
- package/dist/api.js +103 -5
- package/dist/esm/api.d.ts +132 -19
- package/dist/esm/api.js +97 -3
- package/docs/AigwpbUserMeInfo.md +1 -1
- package/docs/UserBalanceServiceApi.md +3 -3
- package/docs/{AigwpbUserInfo.md → UserInfo.md} +3 -3
- package/docs/UserInfoItem.md +11 -1
- package/docs/UserPayAdminServiceApi.md +60 -0
- package/docs/UserPayOrderAdminItem.md +48 -0
- package/docs/UserPayOrderAdminListRequest.md +36 -0
- package/docs/UserPayOrderAdminListResponse.md +26 -0
- package/docs/UserPayOrderStripe.md +40 -0
- package/docs/UserPayOrderTimeRange.md +22 -0
- package/package.json +1 -1
- package/docs/PassportpbUserInfo.md +0 -30
package/.openapi-generator/FILES
CHANGED
|
@@ -54,7 +54,6 @@ docs/AdminProviderModelUpdateResponse.md
|
|
|
54
54
|
docs/AdminProviderUpdateRequest.md
|
|
55
55
|
docs/AdminProviderUpdateResponse.md
|
|
56
56
|
docs/AigwpbLabel.md
|
|
57
|
-
docs/AigwpbUserInfo.md
|
|
58
57
|
docs/AigwpbUserMeInfo.md
|
|
59
58
|
docs/AigwpbUserPayStripeCheckout.md
|
|
60
59
|
docs/AigwpbUserPortalDashboard.md
|
|
@@ -98,7 +97,6 @@ docs/ModelListResponse.md
|
|
|
98
97
|
docs/ModelModalities.md
|
|
99
98
|
docs/MultimodalPricing.md
|
|
100
99
|
docs/OrderItem.md
|
|
101
|
-
docs/PassportpbUserInfo.md
|
|
102
100
|
docs/PassportpbUserSettings.md
|
|
103
101
|
docs/PricingConditions.md
|
|
104
102
|
docs/PricingRules.md
|
|
@@ -147,6 +145,7 @@ docs/UserBalanceListResponse.md
|
|
|
147
145
|
docs/UserBalanceServiceApi.md
|
|
148
146
|
docs/UserBasic.md
|
|
149
147
|
docs/UserExtendInfo.md
|
|
148
|
+
docs/UserInfo.md
|
|
150
149
|
docs/UserInfoItem.md
|
|
151
150
|
docs/UserInfoPageGetRequest.md
|
|
152
151
|
docs/UserInfoPageGetResponse.md
|
|
@@ -161,8 +160,14 @@ docs/UserLabelPairChangeResponse.md
|
|
|
161
160
|
docs/UserLabelServiceApi.md
|
|
162
161
|
docs/UserMeInfoResponse.md
|
|
163
162
|
docs/UserModelServiceApi.md
|
|
163
|
+
docs/UserPayAdminServiceApi.md
|
|
164
164
|
docs/UserPayOrder.md
|
|
165
|
+
docs/UserPayOrderAdminItem.md
|
|
166
|
+
docs/UserPayOrderAdminListRequest.md
|
|
167
|
+
docs/UserPayOrderAdminListResponse.md
|
|
165
168
|
docs/UserPayOrderListResponse.md
|
|
169
|
+
docs/UserPayOrderStripe.md
|
|
170
|
+
docs/UserPayOrderTimeRange.md
|
|
166
171
|
docs/UserPayServiceApi.md
|
|
167
172
|
docs/UserPayStripeCheckoutRequest.md
|
|
168
173
|
docs/UserPayStripeCheckoutResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/aigw-api-client@0.1.
|
|
1
|
+
## @cherryin/aigw-api-client@0.1.32
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cherryin/aigw-api-client@0.1.
|
|
39
|
+
npm install @cherryin/aigw-api-client@0.1.32 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -102,9 +102,9 @@ Class | Method | HTTP request | Description
|
|
|
102
102
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyUpdate**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeyupdate) | **POST** /api/v1/user/api-key/update | UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
103
103
|
*UserAdminServiceApi* | [**userAdminServiceUserInfoPageGet**](docs/UserAdminServiceApi.md#useradminserviceuserinfopageget) | **POST** /admin/users/search | 用户信息-分页查询接口
|
|
104
104
|
*UserAdminServiceApi* | [**userAdminServiceUserInfoUpdate**](docs/UserAdminServiceApi.md#useradminserviceuserinfoupdate) | **POST** /admin/users/update | 用户信息-单个更新接口
|
|
105
|
-
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceChange**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancechange) | **POST** /
|
|
106
|
-
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceEdit**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalanceedit) | **POST** /
|
|
107
|
-
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceList**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancelist) | **GET** /
|
|
105
|
+
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceChange**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancechange) | **POST** /admin/users/balance/change | 用户余额变更接口 - 增量操作
|
|
106
|
+
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceEdit**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalanceedit) | **POST** /admin/users/balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
107
|
+
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceList**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancelist) | **GET** /admin/users/balance/list | 用户余额列表接口
|
|
108
108
|
*UserLabelServiceApi* | [**userLabelServiceLabelCreate**](docs/UserLabelServiceApi.md#userlabelservicelabelcreate) | **POST** /admin/label/create |
|
|
109
109
|
*UserLabelServiceApi* | [**userLabelServiceLabelDelete**](docs/UserLabelServiceApi.md#userlabelservicelabeldelete) | **DELETE** /admin/label/delete |
|
|
110
110
|
*UserLabelServiceApi* | [**userLabelServiceLabelGet**](docs/UserLabelServiceApi.md#userlabelservicelabelget) | **GET** /admin/label/get |
|
|
@@ -115,6 +115,7 @@ Class | Method | HTTP request | Description
|
|
|
115
115
|
*UserModelServiceApi* | [**userModelServiceFrontendModels**](docs/UserModelServiceApi.md#usermodelservicefrontendmodels) | **GET** /api/v1/frontend/models | FrontendModels 获取前端模型列表 NOTE: 登录态鉴权
|
|
116
116
|
*UserModelServiceApi* | [**userModelServiceFrontendProviders**](docs/UserModelServiceApi.md#usermodelservicefrontendproviders) | **GET** /api/v1/frontend/providers | FrontendProviders 获取前端供应商列表 NOTE: 登录态鉴权
|
|
117
117
|
*UserModelServiceApi* | [**userModelServiceModelList**](docs/UserModelServiceApi.md#usermodelservicemodellist) | **GET** /v1/models | ModelList OpenAI 通用模型列表 NOTE: 需要 API KEY 鉴权
|
|
118
|
+
*UserPayAdminServiceApi* | [**userPayAdminServiceUserPayOrderAdminList**](docs/UserPayAdminServiceApi.md#userpayadminserviceuserpayorderadminlist) | **POST** /admin/users/orders/list | Admin - 用户订单查询列表
|
|
118
119
|
*UserPayServiceApi* | [**userPayServiceUserPayOrderList**](docs/UserPayServiceApi.md#userpayserviceuserpayorderlist) | **GET** /api/v1/user/pay/order/list |
|
|
119
120
|
*UserPayServiceApi* | [**userPayServiceUserPayStripeCheckout**](docs/UserPayServiceApi.md#userpayserviceuserpaystripecheckout) | **POST** /api/v1/user/pay/stripe/checkout |
|
|
120
121
|
*UserPortalServiceApi* | [**userPortalServiceUserMeInfo**](docs/UserPortalServiceApi.md#userportalserviceusermeinfo) | **GET** /api/v1/user/me/info | 个人信息接口
|
|
@@ -169,7 +170,6 @@ Class | Method | HTTP request | Description
|
|
|
169
170
|
- [AdminProviderUpdateRequest](docs/AdminProviderUpdateRequest.md)
|
|
170
171
|
- [AdminProviderUpdateResponse](docs/AdminProviderUpdateResponse.md)
|
|
171
172
|
- [AigwpbLabel](docs/AigwpbLabel.md)
|
|
172
|
-
- [AigwpbUserInfo](docs/AigwpbUserInfo.md)
|
|
173
173
|
- [AigwpbUserMeInfo](docs/AigwpbUserMeInfo.md)
|
|
174
174
|
- [AigwpbUserPayStripeCheckout](docs/AigwpbUserPayStripeCheckout.md)
|
|
175
175
|
- [AigwpbUserPortalDashboard](docs/AigwpbUserPortalDashboard.md)
|
|
@@ -212,7 +212,6 @@ Class | Method | HTTP request | Description
|
|
|
212
212
|
- [ModelModalities](docs/ModelModalities.md)
|
|
213
213
|
- [MultimodalPricing](docs/MultimodalPricing.md)
|
|
214
214
|
- [OrderItem](docs/OrderItem.md)
|
|
215
|
-
- [PassportpbUserInfo](docs/PassportpbUserInfo.md)
|
|
216
215
|
- [PassportpbUserSettings](docs/PassportpbUserSettings.md)
|
|
217
216
|
- [PricingConditions](docs/PricingConditions.md)
|
|
218
217
|
- [PricingRules](docs/PricingRules.md)
|
|
@@ -255,6 +254,7 @@ Class | Method | HTTP request | Description
|
|
|
255
254
|
- [UserBalanceListResponse](docs/UserBalanceListResponse.md)
|
|
256
255
|
- [UserBasic](docs/UserBasic.md)
|
|
257
256
|
- [UserExtendInfo](docs/UserExtendInfo.md)
|
|
257
|
+
- [UserInfo](docs/UserInfo.md)
|
|
258
258
|
- [UserInfoItem](docs/UserInfoItem.md)
|
|
259
259
|
- [UserInfoPageGetRequest](docs/UserInfoPageGetRequest.md)
|
|
260
260
|
- [UserInfoPageGetResponse](docs/UserInfoPageGetResponse.md)
|
|
@@ -268,7 +268,12 @@ Class | Method | HTTP request | Description
|
|
|
268
268
|
- [UserLabelPairChangeResponse](docs/UserLabelPairChangeResponse.md)
|
|
269
269
|
- [UserMeInfoResponse](docs/UserMeInfoResponse.md)
|
|
270
270
|
- [UserPayOrder](docs/UserPayOrder.md)
|
|
271
|
+
- [UserPayOrderAdminItem](docs/UserPayOrderAdminItem.md)
|
|
272
|
+
- [UserPayOrderAdminListRequest](docs/UserPayOrderAdminListRequest.md)
|
|
273
|
+
- [UserPayOrderAdminListResponse](docs/UserPayOrderAdminListResponse.md)
|
|
271
274
|
- [UserPayOrderListResponse](docs/UserPayOrderListResponse.md)
|
|
275
|
+
- [UserPayOrderStripe](docs/UserPayOrderStripe.md)
|
|
276
|
+
- [UserPayOrderTimeRange](docs/UserPayOrderTimeRange.md)
|
|
272
277
|
- [UserPayStripeCheckoutRequest](docs/UserPayStripeCheckoutRequest.md)
|
|
273
278
|
- [UserPayStripeCheckoutResponse](docs/UserPayStripeCheckoutResponse.md)
|
|
274
279
|
- [UserPaymentInfo](docs/UserPaymentInfo.md)
|
package/api.ts
CHANGED
|
@@ -403,17 +403,8 @@ export interface AigwpbLabel {
|
|
|
403
403
|
'created_at'?: string;
|
|
404
404
|
'updated_at'?: string;
|
|
405
405
|
}
|
|
406
|
-
export interface AigwpbUserInfo {
|
|
407
|
-
'id'?: string;
|
|
408
|
-
'name'?: string;
|
|
409
|
-
'email'?: string;
|
|
410
|
-
'email_verified'?: boolean;
|
|
411
|
-
'image'?: string;
|
|
412
|
-
'created_at'?: string;
|
|
413
|
-
'updated_at'?: string;
|
|
414
|
-
}
|
|
415
406
|
export interface AigwpbUserMeInfo {
|
|
416
|
-
'info'?:
|
|
407
|
+
'info'?: UserInfo;
|
|
417
408
|
'settings'?: AigwpbUserSettings;
|
|
418
409
|
'balance'?: UserBalanceBrief;
|
|
419
410
|
}
|
|
@@ -750,14 +741,6 @@ export interface OrderItem {
|
|
|
750
741
|
'key'?: string;
|
|
751
742
|
'direction'?: string;
|
|
752
743
|
}
|
|
753
|
-
export interface PassportpbUserInfo {
|
|
754
|
-
'user'?: UserBasic;
|
|
755
|
-
'settings'?: PassportpbUserSettings;
|
|
756
|
-
'preferences'?: UserPreferences;
|
|
757
|
-
'payment_info'?: UserPaymentInfo;
|
|
758
|
-
'extend_info'?: UserExtendInfo;
|
|
759
|
-
'auth_methods'?: Array<AuthUserMethod>;
|
|
760
|
-
}
|
|
761
744
|
export interface PassportpbUserSettings {
|
|
762
745
|
'email_notifications_enabled'?: boolean;
|
|
763
746
|
}
|
|
@@ -1056,8 +1039,22 @@ export interface UserBasic {
|
|
|
1056
1039
|
export interface UserExtendInfo {
|
|
1057
1040
|
'user_groups'?: Array<string>;
|
|
1058
1041
|
}
|
|
1042
|
+
export interface UserInfo {
|
|
1043
|
+
'id'?: string;
|
|
1044
|
+
'name'?: string;
|
|
1045
|
+
'email'?: string;
|
|
1046
|
+
'email_verified'?: boolean;
|
|
1047
|
+
'image'?: string;
|
|
1048
|
+
'created_at'?: string;
|
|
1049
|
+
'updated_at'?: string;
|
|
1050
|
+
}
|
|
1059
1051
|
export interface UserInfoItem {
|
|
1060
|
-
'user'?:
|
|
1052
|
+
'user'?: UserBasic;
|
|
1053
|
+
'settings'?: PassportpbUserSettings;
|
|
1054
|
+
'preferences'?: UserPreferences;
|
|
1055
|
+
'payment_info'?: UserPaymentInfo;
|
|
1056
|
+
'extend_info'?: UserExtendInfo;
|
|
1057
|
+
'auth_methods'?: Array<AuthUserMethod>;
|
|
1061
1058
|
'balance'?: UserBalance;
|
|
1062
1059
|
}
|
|
1063
1060
|
export interface UserInfoPageGetRequest {
|
|
@@ -1126,12 +1123,63 @@ export interface UserPayOrder {
|
|
|
1126
1123
|
'order_status'?: string;
|
|
1127
1124
|
'confirmed_at'?: string;
|
|
1128
1125
|
}
|
|
1126
|
+
export interface UserPayOrderAdminItem {
|
|
1127
|
+
'order_no'?: string;
|
|
1128
|
+
'balance_code'?: string;
|
|
1129
|
+
'charge_amount'?: string;
|
|
1130
|
+
'pay_amount'?: string;
|
|
1131
|
+
'payment_method'?: string;
|
|
1132
|
+
'order_status'?: string;
|
|
1133
|
+
'confirmed_at'?: string;
|
|
1134
|
+
'created_at'?: string;
|
|
1135
|
+
'failed_at'?: string;
|
|
1136
|
+
'expired_at'?: string;
|
|
1137
|
+
'refunded_at'?: string;
|
|
1138
|
+
'user_agent'?: string;
|
|
1139
|
+
'client_ip'?: string;
|
|
1140
|
+
'user_id'?: string;
|
|
1141
|
+
'extra_stripe'?: UserPayOrderStripe;
|
|
1142
|
+
}
|
|
1143
|
+
export interface UserPayOrderAdminListRequest {
|
|
1144
|
+
'page'?: number;
|
|
1145
|
+
'page_size'?: number;
|
|
1146
|
+
'user_ids'?: Array<string>;
|
|
1147
|
+
'query_start_at'?: UserPayOrderTimeRange;
|
|
1148
|
+
'query_confirmed_at'?: UserPayOrderTimeRange;
|
|
1149
|
+
'query_failed_at'?: UserPayOrderTimeRange;
|
|
1150
|
+
'query_expired_at'?: UserPayOrderTimeRange;
|
|
1151
|
+
'query_order_status'?: Array<string>;
|
|
1152
|
+
'order_by'?: Array<OrderItem>;
|
|
1153
|
+
}
|
|
1154
|
+
export interface UserPayOrderAdminListResponse {
|
|
1155
|
+
'code'?: string;
|
|
1156
|
+
'message'?: string;
|
|
1157
|
+
'order_list'?: Array<UserPayOrderAdminItem>;
|
|
1158
|
+
'total'?: string;
|
|
1159
|
+
}
|
|
1129
1160
|
export interface UserPayOrderListResponse {
|
|
1130
1161
|
'code'?: string;
|
|
1131
1162
|
'message'?: string;
|
|
1132
1163
|
'list'?: Array<UserPayOrder>;
|
|
1133
1164
|
'total'?: string;
|
|
1134
1165
|
}
|
|
1166
|
+
export interface UserPayOrderStripe {
|
|
1167
|
+
'checkout_session_id'?: string;
|
|
1168
|
+
'price_id'?: string;
|
|
1169
|
+
'product_quantity'?: string;
|
|
1170
|
+
'promotion_codes_enabled'?: boolean;
|
|
1171
|
+
'customer_id'?: string;
|
|
1172
|
+
'customer_email'?: string;
|
|
1173
|
+
'customer_name'?: string;
|
|
1174
|
+
'currency'?: string;
|
|
1175
|
+
'total_amount'?: string;
|
|
1176
|
+
'subtotal_amount'?: string;
|
|
1177
|
+
'payment_intent_id'?: string;
|
|
1178
|
+
}
|
|
1179
|
+
export interface UserPayOrderTimeRange {
|
|
1180
|
+
'start_at'?: string;
|
|
1181
|
+
'until_at'?: string;
|
|
1182
|
+
}
|
|
1135
1183
|
export interface UserPayStripeCheckoutRequest {
|
|
1136
1184
|
'currency_code'?: string;
|
|
1137
1185
|
'charge_amount'?: string;
|
|
@@ -6005,7 +6053,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration?:
|
|
|
6005
6053
|
* @throws {RequiredError}
|
|
6006
6054
|
*/
|
|
6007
6055
|
userBalanceServiceUserBalanceChange: async (forceCreate?: boolean, uid?: string, balanceCode?: string, action?: string, deltaPrepaidBalanceTotal?: string, deltaBonusBalanceTotal?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6008
|
-
const localVarPath = `/
|
|
6056
|
+
const localVarPath = `/admin/users/balance/change`;
|
|
6009
6057
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6010
6058
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6011
6059
|
let baseOptions;
|
|
@@ -6073,7 +6121,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration?:
|
|
|
6073
6121
|
* @throws {RequiredError}
|
|
6074
6122
|
*/
|
|
6075
6123
|
userBalanceServiceUserBalanceEdit: async (forceCreate?: boolean, uid?: string, dataId?: string, dataCreatedAt?: string, dataUpdatedAt?: string, dataUid?: string, dataBalanceCode?: string, dataPrepaidBalanceTotal?: string, dataPrepaidBalanceUsed?: string, dataPrepaidBalanceFrozen?: string, dataBonusBalanceTotal?: string, dataBonusBalanceUsed?: string, dataBonusBalanceFrozen?: string, dataVersion?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6076
|
-
const localVarPath = `/
|
|
6124
|
+
const localVarPath = `/admin/users/balance/edit`;
|
|
6077
6125
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6078
6126
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6079
6127
|
let baseOptions;
|
|
@@ -6162,7 +6210,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration?:
|
|
|
6162
6210
|
* @throws {RequiredError}
|
|
6163
6211
|
*/
|
|
6164
6212
|
userBalanceServiceUserBalanceList: async (page?: number, pageSize?: number, uidList?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6165
|
-
const localVarPath = `/
|
|
6213
|
+
const localVarPath = `/admin/users/balance/list`;
|
|
6166
6214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6167
6215
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6168
6216
|
let baseOptions;
|
|
@@ -7389,6 +7437,124 @@ export const UserModelServiceFrontendModelsResponseOptionEnum = {
|
|
|
7389
7437
|
export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelServiceFrontendModelsResponseOptionEnum[keyof typeof UserModelServiceFrontendModelsResponseOptionEnum];
|
|
7390
7438
|
|
|
7391
7439
|
|
|
7440
|
+
/**
|
|
7441
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
7442
|
+
*/
|
|
7443
|
+
export const UserPayAdminServiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7444
|
+
return {
|
|
7445
|
+
/**
|
|
7446
|
+
*
|
|
7447
|
+
* @summary Admin - 用户订单查询列表
|
|
7448
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7449
|
+
* @param {*} [options] Override http request option.
|
|
7450
|
+
* @throws {RequiredError}
|
|
7451
|
+
*/
|
|
7452
|
+
userPayAdminServiceUserPayOrderAdminList: async (body: UserPayOrderAdminListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7453
|
+
// verify required parameter 'body' is not null or undefined
|
|
7454
|
+
assertParamExists('userPayAdminServiceUserPayOrderAdminList', 'body', body)
|
|
7455
|
+
const localVarPath = `/admin/users/orders/list`;
|
|
7456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7458
|
+
let baseOptions;
|
|
7459
|
+
if (configuration) {
|
|
7460
|
+
baseOptions = configuration.baseOptions;
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7464
|
+
const localVarHeaderParameter = {} as any;
|
|
7465
|
+
const localVarQueryParameter = {} as any;
|
|
7466
|
+
|
|
7467
|
+
|
|
7468
|
+
|
|
7469
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7470
|
+
|
|
7471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7473
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7474
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
7475
|
+
|
|
7476
|
+
return {
|
|
7477
|
+
url: toPathString(localVarUrlObj),
|
|
7478
|
+
options: localVarRequestOptions,
|
|
7479
|
+
};
|
|
7480
|
+
},
|
|
7481
|
+
}
|
|
7482
|
+
};
|
|
7483
|
+
|
|
7484
|
+
/**
|
|
7485
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
7486
|
+
*/
|
|
7487
|
+
export const UserPayAdminServiceApiFp = function(configuration?: Configuration) {
|
|
7488
|
+
const localVarAxiosParamCreator = UserPayAdminServiceApiAxiosParamCreator(configuration)
|
|
7489
|
+
return {
|
|
7490
|
+
/**
|
|
7491
|
+
*
|
|
7492
|
+
* @summary Admin - 用户订单查询列表
|
|
7493
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7494
|
+
* @param {*} [options] Override http request option.
|
|
7495
|
+
* @throws {RequiredError}
|
|
7496
|
+
*/
|
|
7497
|
+
async userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderAdminListResponse>> {
|
|
7498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userPayAdminServiceUserPayOrderAdminList(body, options);
|
|
7499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7500
|
+
const localVarOperationServerBasePath = operationServerMap['UserPayAdminServiceApi.userPayAdminServiceUserPayOrderAdminList']?.[localVarOperationServerIndex]?.url;
|
|
7501
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7502
|
+
},
|
|
7503
|
+
}
|
|
7504
|
+
};
|
|
7505
|
+
|
|
7506
|
+
/**
|
|
7507
|
+
* UserPayAdminServiceApi - factory interface
|
|
7508
|
+
*/
|
|
7509
|
+
export const UserPayAdminServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7510
|
+
const localVarFp = UserPayAdminServiceApiFp(configuration)
|
|
7511
|
+
return {
|
|
7512
|
+
/**
|
|
7513
|
+
*
|
|
7514
|
+
* @summary Admin - 用户订单查询列表
|
|
7515
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7516
|
+
* @param {*} [options] Override http request option.
|
|
7517
|
+
* @throws {RequiredError}
|
|
7518
|
+
*/
|
|
7519
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse> {
|
|
7520
|
+
return localVarFp.userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(axios, basePath));
|
|
7521
|
+
},
|
|
7522
|
+
};
|
|
7523
|
+
};
|
|
7524
|
+
|
|
7525
|
+
/**
|
|
7526
|
+
* UserPayAdminServiceApi - interface
|
|
7527
|
+
*/
|
|
7528
|
+
export interface UserPayAdminServiceApiInterface {
|
|
7529
|
+
/**
|
|
7530
|
+
*
|
|
7531
|
+
* @summary Admin - 用户订单查询列表
|
|
7532
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7533
|
+
* @param {*} [options] Override http request option.
|
|
7534
|
+
* @throws {RequiredError}
|
|
7535
|
+
*/
|
|
7536
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
7537
|
+
|
|
7538
|
+
}
|
|
7539
|
+
|
|
7540
|
+
/**
|
|
7541
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
7542
|
+
*/
|
|
7543
|
+
export class UserPayAdminServiceApi extends BaseAPI implements UserPayAdminServiceApiInterface {
|
|
7544
|
+
/**
|
|
7545
|
+
*
|
|
7546
|
+
* @summary Admin - 用户订单查询列表
|
|
7547
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
7548
|
+
* @param {*} [options] Override http request option.
|
|
7549
|
+
* @throws {RequiredError}
|
|
7550
|
+
*/
|
|
7551
|
+
public userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig) {
|
|
7552
|
+
return UserPayAdminServiceApiFp(this.configuration).userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(this.axios, this.basePath));
|
|
7553
|
+
}
|
|
7554
|
+
}
|
|
7555
|
+
|
|
7556
|
+
|
|
7557
|
+
|
|
7392
7558
|
/**
|
|
7393
7559
|
* UserPayServiceApi - axios parameter creator
|
|
7394
7560
|
*/
|
package/dist/api.d.ts
CHANGED
|
@@ -395,17 +395,8 @@ export interface AigwpbLabel {
|
|
|
395
395
|
'created_at'?: string;
|
|
396
396
|
'updated_at'?: string;
|
|
397
397
|
}
|
|
398
|
-
export interface AigwpbUserInfo {
|
|
399
|
-
'id'?: string;
|
|
400
|
-
'name'?: string;
|
|
401
|
-
'email'?: string;
|
|
402
|
-
'email_verified'?: boolean;
|
|
403
|
-
'image'?: string;
|
|
404
|
-
'created_at'?: string;
|
|
405
|
-
'updated_at'?: string;
|
|
406
|
-
}
|
|
407
398
|
export interface AigwpbUserMeInfo {
|
|
408
|
-
'info'?:
|
|
399
|
+
'info'?: UserInfo;
|
|
409
400
|
'settings'?: AigwpbUserSettings;
|
|
410
401
|
'balance'?: UserBalanceBrief;
|
|
411
402
|
}
|
|
@@ -747,14 +738,6 @@ export interface OrderItem {
|
|
|
747
738
|
'key'?: string;
|
|
748
739
|
'direction'?: string;
|
|
749
740
|
}
|
|
750
|
-
export interface PassportpbUserInfo {
|
|
751
|
-
'user'?: UserBasic;
|
|
752
|
-
'settings'?: PassportpbUserSettings;
|
|
753
|
-
'preferences'?: UserPreferences;
|
|
754
|
-
'payment_info'?: UserPaymentInfo;
|
|
755
|
-
'extend_info'?: UserExtendInfo;
|
|
756
|
-
'auth_methods'?: Array<AuthUserMethod>;
|
|
757
|
-
}
|
|
758
741
|
export interface PassportpbUserSettings {
|
|
759
742
|
'email_notifications_enabled'?: boolean;
|
|
760
743
|
}
|
|
@@ -1057,8 +1040,22 @@ export interface UserBasic {
|
|
|
1057
1040
|
export interface UserExtendInfo {
|
|
1058
1041
|
'user_groups'?: Array<string>;
|
|
1059
1042
|
}
|
|
1043
|
+
export interface UserInfo {
|
|
1044
|
+
'id'?: string;
|
|
1045
|
+
'name'?: string;
|
|
1046
|
+
'email'?: string;
|
|
1047
|
+
'email_verified'?: boolean;
|
|
1048
|
+
'image'?: string;
|
|
1049
|
+
'created_at'?: string;
|
|
1050
|
+
'updated_at'?: string;
|
|
1051
|
+
}
|
|
1060
1052
|
export interface UserInfoItem {
|
|
1061
|
-
'user'?:
|
|
1053
|
+
'user'?: UserBasic;
|
|
1054
|
+
'settings'?: PassportpbUserSettings;
|
|
1055
|
+
'preferences'?: UserPreferences;
|
|
1056
|
+
'payment_info'?: UserPaymentInfo;
|
|
1057
|
+
'extend_info'?: UserExtendInfo;
|
|
1058
|
+
'auth_methods'?: Array<AuthUserMethod>;
|
|
1062
1059
|
'balance'?: UserBalance;
|
|
1063
1060
|
}
|
|
1064
1061
|
export interface UserInfoPageGetRequest {
|
|
@@ -1127,12 +1124,63 @@ export interface UserPayOrder {
|
|
|
1127
1124
|
'order_status'?: string;
|
|
1128
1125
|
'confirmed_at'?: string;
|
|
1129
1126
|
}
|
|
1127
|
+
export interface UserPayOrderAdminItem {
|
|
1128
|
+
'order_no'?: string;
|
|
1129
|
+
'balance_code'?: string;
|
|
1130
|
+
'charge_amount'?: string;
|
|
1131
|
+
'pay_amount'?: string;
|
|
1132
|
+
'payment_method'?: string;
|
|
1133
|
+
'order_status'?: string;
|
|
1134
|
+
'confirmed_at'?: string;
|
|
1135
|
+
'created_at'?: string;
|
|
1136
|
+
'failed_at'?: string;
|
|
1137
|
+
'expired_at'?: string;
|
|
1138
|
+
'refunded_at'?: string;
|
|
1139
|
+
'user_agent'?: string;
|
|
1140
|
+
'client_ip'?: string;
|
|
1141
|
+
'user_id'?: string;
|
|
1142
|
+
'extra_stripe'?: UserPayOrderStripe;
|
|
1143
|
+
}
|
|
1144
|
+
export interface UserPayOrderAdminListRequest {
|
|
1145
|
+
'page'?: number;
|
|
1146
|
+
'page_size'?: number;
|
|
1147
|
+
'user_ids'?: Array<string>;
|
|
1148
|
+
'query_start_at'?: UserPayOrderTimeRange;
|
|
1149
|
+
'query_confirmed_at'?: UserPayOrderTimeRange;
|
|
1150
|
+
'query_failed_at'?: UserPayOrderTimeRange;
|
|
1151
|
+
'query_expired_at'?: UserPayOrderTimeRange;
|
|
1152
|
+
'query_order_status'?: Array<string>;
|
|
1153
|
+
'order_by'?: Array<OrderItem>;
|
|
1154
|
+
}
|
|
1155
|
+
export interface UserPayOrderAdminListResponse {
|
|
1156
|
+
'code'?: string;
|
|
1157
|
+
'message'?: string;
|
|
1158
|
+
'order_list'?: Array<UserPayOrderAdminItem>;
|
|
1159
|
+
'total'?: string;
|
|
1160
|
+
}
|
|
1130
1161
|
export interface UserPayOrderListResponse {
|
|
1131
1162
|
'code'?: string;
|
|
1132
1163
|
'message'?: string;
|
|
1133
1164
|
'list'?: Array<UserPayOrder>;
|
|
1134
1165
|
'total'?: string;
|
|
1135
1166
|
}
|
|
1167
|
+
export interface UserPayOrderStripe {
|
|
1168
|
+
'checkout_session_id'?: string;
|
|
1169
|
+
'price_id'?: string;
|
|
1170
|
+
'product_quantity'?: string;
|
|
1171
|
+
'promotion_codes_enabled'?: boolean;
|
|
1172
|
+
'customer_id'?: string;
|
|
1173
|
+
'customer_email'?: string;
|
|
1174
|
+
'customer_name'?: string;
|
|
1175
|
+
'currency'?: string;
|
|
1176
|
+
'total_amount'?: string;
|
|
1177
|
+
'subtotal_amount'?: string;
|
|
1178
|
+
'payment_intent_id'?: string;
|
|
1179
|
+
}
|
|
1180
|
+
export interface UserPayOrderTimeRange {
|
|
1181
|
+
'start_at'?: string;
|
|
1182
|
+
'until_at'?: string;
|
|
1183
|
+
}
|
|
1136
1184
|
export interface UserPayStripeCheckoutRequest {
|
|
1137
1185
|
'currency_code'?: string;
|
|
1138
1186
|
'charge_amount'?: string;
|
|
@@ -4415,6 +4463,71 @@ export declare const UserModelServiceFrontendModelsResponseOptionEnum: {
|
|
|
4415
4463
|
readonly ResponseOptionDataOnly: "RESPONSE_OPTION_DATA_ONLY";
|
|
4416
4464
|
};
|
|
4417
4465
|
export type UserModelServiceFrontendModelsResponseOptionEnum = typeof UserModelServiceFrontendModelsResponseOptionEnum[keyof typeof UserModelServiceFrontendModelsResponseOptionEnum];
|
|
4466
|
+
/**
|
|
4467
|
+
* UserPayAdminServiceApi - axios parameter creator
|
|
4468
|
+
*/
|
|
4469
|
+
export declare const UserPayAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Admin - 用户订单查询列表
|
|
4473
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
*/
|
|
4477
|
+
userPayAdminServiceUserPayOrderAdminList: (body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4478
|
+
};
|
|
4479
|
+
/**
|
|
4480
|
+
* UserPayAdminServiceApi - functional programming interface
|
|
4481
|
+
*/
|
|
4482
|
+
export declare const UserPayAdminServiceApiFp: (configuration?: Configuration) => {
|
|
4483
|
+
/**
|
|
4484
|
+
*
|
|
4485
|
+
* @summary Admin - 用户订单查询列表
|
|
4486
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4487
|
+
* @param {*} [options] Override http request option.
|
|
4488
|
+
* @throws {RequiredError}
|
|
4489
|
+
*/
|
|
4490
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPayOrderAdminListResponse>>;
|
|
4491
|
+
};
|
|
4492
|
+
/**
|
|
4493
|
+
* UserPayAdminServiceApi - factory interface
|
|
4494
|
+
*/
|
|
4495
|
+
export declare const UserPayAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4496
|
+
/**
|
|
4497
|
+
*
|
|
4498
|
+
* @summary Admin - 用户订单查询列表
|
|
4499
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4500
|
+
* @param {*} [options] Override http request option.
|
|
4501
|
+
* @throws {RequiredError}
|
|
4502
|
+
*/
|
|
4503
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
4504
|
+
};
|
|
4505
|
+
/**
|
|
4506
|
+
* UserPayAdminServiceApi - interface
|
|
4507
|
+
*/
|
|
4508
|
+
export interface UserPayAdminServiceApiInterface {
|
|
4509
|
+
/**
|
|
4510
|
+
*
|
|
4511
|
+
* @summary Admin - 用户订单查询列表
|
|
4512
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4513
|
+
* @param {*} [options] Override http request option.
|
|
4514
|
+
* @throws {RequiredError}
|
|
4515
|
+
*/
|
|
4516
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserPayOrderAdminListResponse>;
|
|
4517
|
+
}
|
|
4518
|
+
/**
|
|
4519
|
+
* UserPayAdminServiceApi - object-oriented interface
|
|
4520
|
+
*/
|
|
4521
|
+
export declare class UserPayAdminServiceApi extends BaseAPI implements UserPayAdminServiceApiInterface {
|
|
4522
|
+
/**
|
|
4523
|
+
*
|
|
4524
|
+
* @summary Admin - 用户订单查询列表
|
|
4525
|
+
* @param {UserPayOrderAdminListRequest} body
|
|
4526
|
+
* @param {*} [options] Override http request option.
|
|
4527
|
+
* @throws {RequiredError}
|
|
4528
|
+
*/
|
|
4529
|
+
userPayAdminServiceUserPayOrderAdminList(body: UserPayOrderAdminListRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserPayOrderAdminListResponse, any, {}>>;
|
|
4530
|
+
}
|
|
4418
4531
|
/**
|
|
4419
4532
|
* UserPayServiceApi - axios parameter creator
|
|
4420
4533
|
*/
|