@cherryin/aigw-api-client 0.1.29 → 0.1.31
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 +3 -2
- package/README.md +7 -5
- package/api.ts +113 -24
- package/dist/api.d.ts +74 -24
- package/dist/api.js +70 -4
- package/dist/esm/api.d.ts +74 -24
- package/dist/esm/api.js +70 -4
- package/docs/AigwpbUserMeInfo.md +1 -1
- package/docs/UserAdminServiceApi.md +54 -1
- package/docs/{AigwpbUserInfo.md → UserInfo.md} +3 -3
- package/docs/UserInfoItem.md +11 -1
- package/docs/{PassportpbUserInfo.md → UserInfoUpdateRequest.md} +7 -5
- package/docs/UserInfoUpdateResponse.md +22 -0
- package/package.json +1 -1
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,9 +145,12 @@ 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
|
|
152
|
+
docs/UserInfoUpdateRequest.md
|
|
153
|
+
docs/UserInfoUpdateResponse.md
|
|
153
154
|
docs/UserLabelItem.md
|
|
154
155
|
docs/UserLabelListResponse.md
|
|
155
156
|
docs/UserLabelPair.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cherryin/aigw-api-client@0.1.
|
|
1
|
+
## @cherryin/aigw-api-client@0.1.31
|
|
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.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -100,7 +100,8 @@ Class | Method | HTTP request | Description
|
|
|
100
100
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyGet**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeyget) | **GET** /api/v1/user/api-key/get | UserAPIKeyGet 根据 ID 或名称获取单个 UserAPIKey Request path: GET /api/user/api-key/get?id={id} or GET /api/user/api-key/get?name={name}
|
|
101
101
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyList**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeylist) | **GET** /api/v1/user/api-key/list | UserAPIKeyList 分页查询 UserAPIKey 列表,支持按状态和分组过滤 请求路径: GET /api/user/api-key/list?page={page}&page_size={page_size}&key_status={status}&key_group={group}
|
|
102
102
|
*UserAPIKeyServiceApi* | [**userAPIKeyServiceUserAPIKeyUpdate**](docs/UserAPIKeyServiceApi.md#userapikeyserviceuserapikeyupdate) | **POST** /api/v1/user/api-key/update | UserAPIKeyUpdate 更新现有的 UserAPIKey 请求路径: POST /api/user/api-key/update
|
|
103
|
-
*UserAdminServiceApi* | [**userAdminServiceUserInfoPageGet**](docs/UserAdminServiceApi.md#useradminserviceuserinfopageget) | **POST** /admin/users/search |
|
|
103
|
+
*UserAdminServiceApi* | [**userAdminServiceUserInfoPageGet**](docs/UserAdminServiceApi.md#useradminserviceuserinfopageget) | **POST** /admin/users/search | 用户信息-分页查询接口
|
|
104
|
+
*UserAdminServiceApi* | [**userAdminServiceUserInfoUpdate**](docs/UserAdminServiceApi.md#useradminserviceuserinfoupdate) | **POST** /admin/users/update | 用户信息-单个更新接口
|
|
104
105
|
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceChange**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancechange) | **POST** /v1/user_balance/change | 用户余额变更接口 - 增量操作
|
|
105
106
|
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceEdit**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalanceedit) | **POST** /v1/user_balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致
|
|
106
107
|
*UserBalanceServiceApi* | [**userBalanceServiceUserBalanceList**](docs/UserBalanceServiceApi.md#userbalanceserviceuserbalancelist) | **GET** /v1/user_balance/list | 用户余额列表接口
|
|
@@ -168,7 +169,6 @@ Class | Method | HTTP request | Description
|
|
|
168
169
|
- [AdminProviderUpdateRequest](docs/AdminProviderUpdateRequest.md)
|
|
169
170
|
- [AdminProviderUpdateResponse](docs/AdminProviderUpdateResponse.md)
|
|
170
171
|
- [AigwpbLabel](docs/AigwpbLabel.md)
|
|
171
|
-
- [AigwpbUserInfo](docs/AigwpbUserInfo.md)
|
|
172
172
|
- [AigwpbUserMeInfo](docs/AigwpbUserMeInfo.md)
|
|
173
173
|
- [AigwpbUserPayStripeCheckout](docs/AigwpbUserPayStripeCheckout.md)
|
|
174
174
|
- [AigwpbUserPortalDashboard](docs/AigwpbUserPortalDashboard.md)
|
|
@@ -211,7 +211,6 @@ Class | Method | HTTP request | Description
|
|
|
211
211
|
- [ModelModalities](docs/ModelModalities.md)
|
|
212
212
|
- [MultimodalPricing](docs/MultimodalPricing.md)
|
|
213
213
|
- [OrderItem](docs/OrderItem.md)
|
|
214
|
-
- [PassportpbUserInfo](docs/PassportpbUserInfo.md)
|
|
215
214
|
- [PassportpbUserSettings](docs/PassportpbUserSettings.md)
|
|
216
215
|
- [PricingConditions](docs/PricingConditions.md)
|
|
217
216
|
- [PricingRules](docs/PricingRules.md)
|
|
@@ -254,9 +253,12 @@ Class | Method | HTTP request | Description
|
|
|
254
253
|
- [UserBalanceListResponse](docs/UserBalanceListResponse.md)
|
|
255
254
|
- [UserBasic](docs/UserBasic.md)
|
|
256
255
|
- [UserExtendInfo](docs/UserExtendInfo.md)
|
|
256
|
+
- [UserInfo](docs/UserInfo.md)
|
|
257
257
|
- [UserInfoItem](docs/UserInfoItem.md)
|
|
258
258
|
- [UserInfoPageGetRequest](docs/UserInfoPageGetRequest.md)
|
|
259
259
|
- [UserInfoPageGetResponse](docs/UserInfoPageGetResponse.md)
|
|
260
|
+
- [UserInfoUpdateRequest](docs/UserInfoUpdateRequest.md)
|
|
261
|
+
- [UserInfoUpdateResponse](docs/UserInfoUpdateResponse.md)
|
|
260
262
|
- [UserLabelItem](docs/UserLabelItem.md)
|
|
261
263
|
- [UserLabelListResponse](docs/UserLabelListResponse.md)
|
|
262
264
|
- [UserLabelPair](docs/UserLabelPair.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 {
|
|
@@ -1074,6 +1071,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1074
1071
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1075
1072
|
'total'?: string;
|
|
1076
1073
|
}
|
|
1074
|
+
export interface UserInfoUpdateRequest {
|
|
1075
|
+
'uid'?: string;
|
|
1076
|
+
'user'?: UserBasic;
|
|
1077
|
+
'settings'?: PassportpbUserSettings;
|
|
1078
|
+
'preferences'?: UserPreferences;
|
|
1079
|
+
'payment_info'?: UserPaymentInfo;
|
|
1080
|
+
'extend_info'?: UserExtendInfo;
|
|
1081
|
+
'reason'?: string;
|
|
1082
|
+
}
|
|
1083
|
+
export interface UserInfoUpdateResponse {
|
|
1084
|
+
'code'?: string;
|
|
1085
|
+
'message'?: string;
|
|
1086
|
+
}
|
|
1077
1087
|
export interface UserLabelItem {
|
|
1078
1088
|
'uid'?: string;
|
|
1079
1089
|
'label_id'?: string;
|
|
@@ -5784,7 +5794,7 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
5784
5794
|
return {
|
|
5785
5795
|
/**
|
|
5786
5796
|
*
|
|
5787
|
-
* @summary
|
|
5797
|
+
* @summary 用户信息-分页查询接口
|
|
5788
5798
|
* @param {UserInfoPageGetRequest} body
|
|
5789
5799
|
* @param {*} [options] Override http request option.
|
|
5790
5800
|
* @throws {RequiredError}
|
|
@@ -5806,6 +5816,42 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration?: Co
|
|
|
5806
5816
|
|
|
5807
5817
|
|
|
5808
5818
|
|
|
5819
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5820
|
+
|
|
5821
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5822
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5823
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5824
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
5825
|
+
|
|
5826
|
+
return {
|
|
5827
|
+
url: toPathString(localVarUrlObj),
|
|
5828
|
+
options: localVarRequestOptions,
|
|
5829
|
+
};
|
|
5830
|
+
},
|
|
5831
|
+
/**
|
|
5832
|
+
*
|
|
5833
|
+
* @summary 用户信息-单个更新接口
|
|
5834
|
+
* @param {UserInfoUpdateRequest} body
|
|
5835
|
+
* @param {*} [options] Override http request option.
|
|
5836
|
+
* @throws {RequiredError}
|
|
5837
|
+
*/
|
|
5838
|
+
userAdminServiceUserInfoUpdate: async (body: UserInfoUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5839
|
+
// verify required parameter 'body' is not null or undefined
|
|
5840
|
+
assertParamExists('userAdminServiceUserInfoUpdate', 'body', body)
|
|
5841
|
+
const localVarPath = `/admin/users/update`;
|
|
5842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5844
|
+
let baseOptions;
|
|
5845
|
+
if (configuration) {
|
|
5846
|
+
baseOptions = configuration.baseOptions;
|
|
5847
|
+
}
|
|
5848
|
+
|
|
5849
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5850
|
+
const localVarHeaderParameter = {} as any;
|
|
5851
|
+
const localVarQueryParameter = {} as any;
|
|
5852
|
+
|
|
5853
|
+
|
|
5854
|
+
|
|
5809
5855
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5810
5856
|
|
|
5811
5857
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5829,7 +5875,7 @@ export const UserAdminServiceApiFp = function(configuration?: Configuration) {
|
|
|
5829
5875
|
return {
|
|
5830
5876
|
/**
|
|
5831
5877
|
*
|
|
5832
|
-
* @summary
|
|
5878
|
+
* @summary 用户信息-分页查询接口
|
|
5833
5879
|
* @param {UserInfoPageGetRequest} body
|
|
5834
5880
|
* @param {*} [options] Override http request option.
|
|
5835
5881
|
* @throws {RequiredError}
|
|
@@ -5840,6 +5886,19 @@ export const UserAdminServiceApiFp = function(configuration?: Configuration) {
|
|
|
5840
5886
|
const localVarOperationServerBasePath = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoPageGet']?.[localVarOperationServerIndex]?.url;
|
|
5841
5887
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5842
5888
|
},
|
|
5889
|
+
/**
|
|
5890
|
+
*
|
|
5891
|
+
* @summary 用户信息-单个更新接口
|
|
5892
|
+
* @param {UserInfoUpdateRequest} body
|
|
5893
|
+
* @param {*} [options] Override http request option.
|
|
5894
|
+
* @throws {RequiredError}
|
|
5895
|
+
*/
|
|
5896
|
+
async userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoUpdateResponse>> {
|
|
5897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.userAdminServiceUserInfoUpdate(body, options);
|
|
5898
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5899
|
+
const localVarOperationServerBasePath = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoUpdate']?.[localVarOperationServerIndex]?.url;
|
|
5900
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5901
|
+
},
|
|
5843
5902
|
}
|
|
5844
5903
|
};
|
|
5845
5904
|
|
|
@@ -5851,7 +5910,7 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5851
5910
|
return {
|
|
5852
5911
|
/**
|
|
5853
5912
|
*
|
|
5854
|
-
* @summary
|
|
5913
|
+
* @summary 用户信息-分页查询接口
|
|
5855
5914
|
* @param {UserInfoPageGetRequest} body
|
|
5856
5915
|
* @param {*} [options] Override http request option.
|
|
5857
5916
|
* @throws {RequiredError}
|
|
@@ -5859,6 +5918,16 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5859
5918
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse> {
|
|
5860
5919
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
5861
5920
|
},
|
|
5921
|
+
/**
|
|
5922
|
+
*
|
|
5923
|
+
* @summary 用户信息-单个更新接口
|
|
5924
|
+
* @param {UserInfoUpdateRequest} body
|
|
5925
|
+
* @param {*} [options] Override http request option.
|
|
5926
|
+
* @throws {RequiredError}
|
|
5927
|
+
*/
|
|
5928
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse> {
|
|
5929
|
+
return localVarFp.userAdminServiceUserInfoUpdate(body, options).then((request) => request(axios, basePath));
|
|
5930
|
+
},
|
|
5862
5931
|
};
|
|
5863
5932
|
};
|
|
5864
5933
|
|
|
@@ -5868,13 +5937,22 @@ export const UserAdminServiceApiFactory = function (configuration?: Configuratio
|
|
|
5868
5937
|
export interface UserAdminServiceApiInterface {
|
|
5869
5938
|
/**
|
|
5870
5939
|
*
|
|
5871
|
-
* @summary
|
|
5940
|
+
* @summary 用户信息-分页查询接口
|
|
5872
5941
|
* @param {UserInfoPageGetRequest} body
|
|
5873
5942
|
* @param {*} [options] Override http request option.
|
|
5874
5943
|
* @throws {RequiredError}
|
|
5875
5944
|
*/
|
|
5876
5945
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
5877
5946
|
|
|
5947
|
+
/**
|
|
5948
|
+
*
|
|
5949
|
+
* @summary 用户信息-单个更新接口
|
|
5950
|
+
* @param {UserInfoUpdateRequest} body
|
|
5951
|
+
* @param {*} [options] Override http request option.
|
|
5952
|
+
* @throws {RequiredError}
|
|
5953
|
+
*/
|
|
5954
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
5955
|
+
|
|
5878
5956
|
}
|
|
5879
5957
|
|
|
5880
5958
|
/**
|
|
@@ -5883,7 +5961,7 @@ export interface UserAdminServiceApiInterface {
|
|
|
5883
5961
|
export class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
5884
5962
|
/**
|
|
5885
5963
|
*
|
|
5886
|
-
* @summary
|
|
5964
|
+
* @summary 用户信息-分页查询接口
|
|
5887
5965
|
* @param {UserInfoPageGetRequest} body
|
|
5888
5966
|
* @param {*} [options] Override http request option.
|
|
5889
5967
|
* @throws {RequiredError}
|
|
@@ -5891,6 +5969,17 @@ export class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiI
|
|
|
5891
5969
|
public userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) {
|
|
5892
5970
|
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
5893
5971
|
}
|
|
5972
|
+
|
|
5973
|
+
/**
|
|
5974
|
+
*
|
|
5975
|
+
* @summary 用户信息-单个更新接口
|
|
5976
|
+
* @param {UserInfoUpdateRequest} body
|
|
5977
|
+
* @param {*} [options] Override http request option.
|
|
5978
|
+
* @throws {RequiredError}
|
|
5979
|
+
*/
|
|
5980
|
+
public userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
5981
|
+
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
5982
|
+
}
|
|
5894
5983
|
}
|
|
5895
5984
|
|
|
5896
5985
|
|
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 {
|
|
@@ -1075,6 +1072,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1075
1072
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1076
1073
|
'total'?: string;
|
|
1077
1074
|
}
|
|
1075
|
+
export interface UserInfoUpdateRequest {
|
|
1076
|
+
'uid'?: string;
|
|
1077
|
+
'user'?: UserBasic;
|
|
1078
|
+
'settings'?: PassportpbUserSettings;
|
|
1079
|
+
'preferences'?: UserPreferences;
|
|
1080
|
+
'payment_info'?: UserPaymentInfo;
|
|
1081
|
+
'extend_info'?: UserExtendInfo;
|
|
1082
|
+
'reason'?: string;
|
|
1083
|
+
}
|
|
1084
|
+
export interface UserInfoUpdateResponse {
|
|
1085
|
+
'code'?: string;
|
|
1086
|
+
'message'?: string;
|
|
1087
|
+
}
|
|
1078
1088
|
export interface UserLabelItem {
|
|
1079
1089
|
'uid'?: string;
|
|
1080
1090
|
'label_id'?: string;
|
|
@@ -3572,12 +3582,20 @@ export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyS
|
|
|
3572
3582
|
export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3573
3583
|
/**
|
|
3574
3584
|
*
|
|
3575
|
-
* @summary
|
|
3585
|
+
* @summary 用户信息-分页查询接口
|
|
3576
3586
|
* @param {UserInfoPageGetRequest} body
|
|
3577
3587
|
* @param {*} [options] Override http request option.
|
|
3578
3588
|
* @throws {RequiredError}
|
|
3579
3589
|
*/
|
|
3580
3590
|
userAdminServiceUserInfoPageGet: (body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3591
|
+
/**
|
|
3592
|
+
*
|
|
3593
|
+
* @summary 用户信息-单个更新接口
|
|
3594
|
+
* @param {UserInfoUpdateRequest} body
|
|
3595
|
+
* @param {*} [options] Override http request option.
|
|
3596
|
+
* @throws {RequiredError}
|
|
3597
|
+
*/
|
|
3598
|
+
userAdminServiceUserInfoUpdate: (body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3581
3599
|
};
|
|
3582
3600
|
/**
|
|
3583
3601
|
* UserAdminServiceApi - functional programming interface
|
|
@@ -3585,12 +3603,20 @@ export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Conf
|
|
|
3585
3603
|
export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
3586
3604
|
/**
|
|
3587
3605
|
*
|
|
3588
|
-
* @summary
|
|
3606
|
+
* @summary 用户信息-分页查询接口
|
|
3589
3607
|
* @param {UserInfoPageGetRequest} body
|
|
3590
3608
|
* @param {*} [options] Override http request option.
|
|
3591
3609
|
* @throws {RequiredError}
|
|
3592
3610
|
*/
|
|
3593
3611
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoPageGetResponse>>;
|
|
3612
|
+
/**
|
|
3613
|
+
*
|
|
3614
|
+
* @summary 用户信息-单个更新接口
|
|
3615
|
+
* @param {UserInfoUpdateRequest} body
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoUpdateResponse>>;
|
|
3594
3620
|
};
|
|
3595
3621
|
/**
|
|
3596
3622
|
* UserAdminServiceApi - factory interface
|
|
@@ -3598,12 +3624,20 @@ export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
|
3598
3624
|
export declare const UserAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3599
3625
|
/**
|
|
3600
3626
|
*
|
|
3601
|
-
* @summary
|
|
3627
|
+
* @summary 用户信息-分页查询接口
|
|
3602
3628
|
* @param {UserInfoPageGetRequest} body
|
|
3603
3629
|
* @param {*} [options] Override http request option.
|
|
3604
3630
|
* @throws {RequiredError}
|
|
3605
3631
|
*/
|
|
3606
3632
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3633
|
+
/**
|
|
3634
|
+
*
|
|
3635
|
+
* @summary 用户信息-单个更新接口
|
|
3636
|
+
* @param {UserInfoUpdateRequest} body
|
|
3637
|
+
* @param {*} [options] Override http request option.
|
|
3638
|
+
* @throws {RequiredError}
|
|
3639
|
+
*/
|
|
3640
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3607
3641
|
};
|
|
3608
3642
|
/**
|
|
3609
3643
|
* UserAdminServiceApi - interface
|
|
@@ -3611,12 +3645,20 @@ export declare const UserAdminServiceApiFactory: (configuration?: Configuration,
|
|
|
3611
3645
|
export interface UserAdminServiceApiInterface {
|
|
3612
3646
|
/**
|
|
3613
3647
|
*
|
|
3614
|
-
* @summary
|
|
3648
|
+
* @summary 用户信息-分页查询接口
|
|
3615
3649
|
* @param {UserInfoPageGetRequest} body
|
|
3616
3650
|
* @param {*} [options] Override http request option.
|
|
3617
3651
|
* @throws {RequiredError}
|
|
3618
3652
|
*/
|
|
3619
3653
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3654
|
+
/**
|
|
3655
|
+
*
|
|
3656
|
+
* @summary 用户信息-单个更新接口
|
|
3657
|
+
* @param {UserInfoUpdateRequest} body
|
|
3658
|
+
* @param {*} [options] Override http request option.
|
|
3659
|
+
* @throws {RequiredError}
|
|
3660
|
+
*/
|
|
3661
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3620
3662
|
}
|
|
3621
3663
|
/**
|
|
3622
3664
|
* UserAdminServiceApi - object-oriented interface
|
|
@@ -3624,12 +3666,20 @@ export interface UserAdminServiceApiInterface {
|
|
|
3624
3666
|
export declare class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
3625
3667
|
/**
|
|
3626
3668
|
*
|
|
3627
|
-
* @summary
|
|
3669
|
+
* @summary 用户信息-分页查询接口
|
|
3628
3670
|
* @param {UserInfoPageGetRequest} body
|
|
3629
3671
|
* @param {*} [options] Override http request option.
|
|
3630
3672
|
* @throws {RequiredError}
|
|
3631
3673
|
*/
|
|
3632
3674
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoPageGetResponse, any, {}>>;
|
|
3675
|
+
/**
|
|
3676
|
+
*
|
|
3677
|
+
* @summary 用户信息-单个更新接口
|
|
3678
|
+
* @param {UserInfoUpdateRequest} body
|
|
3679
|
+
* @param {*} [options] Override http request option.
|
|
3680
|
+
* @throws {RequiredError}
|
|
3681
|
+
*/
|
|
3682
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoUpdateResponse, any, {}>>;
|
|
3633
3683
|
}
|
|
3634
3684
|
/**
|
|
3635
3685
|
* UserBalanceServiceApi - axios parameter creator
|
package/dist/api.js
CHANGED
|
@@ -3857,7 +3857,7 @@ const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3857
3857
|
return {
|
|
3858
3858
|
/**
|
|
3859
3859
|
*
|
|
3860
|
-
* @summary
|
|
3860
|
+
* @summary 用户信息-分页查询接口
|
|
3861
3861
|
* @param {UserInfoPageGetRequest} body
|
|
3862
3862
|
* @param {*} [options] Override http request option.
|
|
3863
3863
|
* @throws {RequiredError}
|
|
@@ -3885,6 +3885,36 @@ const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3885
3885
|
options: localVarRequestOptions,
|
|
3886
3886
|
};
|
|
3887
3887
|
}),
|
|
3888
|
+
/**
|
|
3889
|
+
*
|
|
3890
|
+
* @summary 用户信息-单个更新接口
|
|
3891
|
+
* @param {UserInfoUpdateRequest} body
|
|
3892
|
+
* @param {*} [options] Override http request option.
|
|
3893
|
+
* @throws {RequiredError}
|
|
3894
|
+
*/
|
|
3895
|
+
userAdminServiceUserInfoUpdate: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3896
|
+
// verify required parameter 'body' is not null or undefined
|
|
3897
|
+
(0, common_1.assertParamExists)('userAdminServiceUserInfoUpdate', 'body', body);
|
|
3898
|
+
const localVarPath = `/admin/users/update`;
|
|
3899
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3900
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3901
|
+
let baseOptions;
|
|
3902
|
+
if (configuration) {
|
|
3903
|
+
baseOptions = configuration.baseOptions;
|
|
3904
|
+
}
|
|
3905
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3906
|
+
const localVarHeaderParameter = {};
|
|
3907
|
+
const localVarQueryParameter = {};
|
|
3908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3909
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3911
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3912
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
3913
|
+
return {
|
|
3914
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3915
|
+
options: localVarRequestOptions,
|
|
3916
|
+
};
|
|
3917
|
+
}),
|
|
3888
3918
|
};
|
|
3889
3919
|
};
|
|
3890
3920
|
exports.UserAdminServiceApiAxiosParamCreator = UserAdminServiceApiAxiosParamCreator;
|
|
@@ -3896,7 +3926,7 @@ const UserAdminServiceApiFp = function (configuration) {
|
|
|
3896
3926
|
return {
|
|
3897
3927
|
/**
|
|
3898
3928
|
*
|
|
3899
|
-
* @summary
|
|
3929
|
+
* @summary 用户信息-分页查询接口
|
|
3900
3930
|
* @param {UserInfoPageGetRequest} body
|
|
3901
3931
|
* @param {*} [options] Override http request option.
|
|
3902
3932
|
* @throws {RequiredError}
|
|
@@ -3910,6 +3940,22 @@ const UserAdminServiceApiFp = function (configuration) {
|
|
|
3910
3940
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3911
3941
|
});
|
|
3912
3942
|
},
|
|
3943
|
+
/**
|
|
3944
|
+
*
|
|
3945
|
+
* @summary 用户信息-单个更新接口
|
|
3946
|
+
* @param {UserInfoUpdateRequest} body
|
|
3947
|
+
* @param {*} [options] Override http request option.
|
|
3948
|
+
* @throws {RequiredError}
|
|
3949
|
+
*/
|
|
3950
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3951
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3952
|
+
var _a, _b, _c;
|
|
3953
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAdminServiceUserInfoUpdate(body, options);
|
|
3954
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3955
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3956
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3957
|
+
});
|
|
3958
|
+
},
|
|
3913
3959
|
};
|
|
3914
3960
|
};
|
|
3915
3961
|
exports.UserAdminServiceApiFp = UserAdminServiceApiFp;
|
|
@@ -3921,7 +3967,7 @@ const UserAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
3921
3967
|
return {
|
|
3922
3968
|
/**
|
|
3923
3969
|
*
|
|
3924
|
-
* @summary
|
|
3970
|
+
* @summary 用户信息-分页查询接口
|
|
3925
3971
|
* @param {UserInfoPageGetRequest} body
|
|
3926
3972
|
* @param {*} [options] Override http request option.
|
|
3927
3973
|
* @throws {RequiredError}
|
|
@@ -3929,6 +3975,16 @@ const UserAdminServiceApiFactory = function (configuration, basePath, axios) {
|
|
|
3929
3975
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3930
3976
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3931
3977
|
},
|
|
3978
|
+
/**
|
|
3979
|
+
*
|
|
3980
|
+
* @summary 用户信息-单个更新接口
|
|
3981
|
+
* @param {UserInfoUpdateRequest} body
|
|
3982
|
+
* @param {*} [options] Override http request option.
|
|
3983
|
+
* @throws {RequiredError}
|
|
3984
|
+
*/
|
|
3985
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3986
|
+
return localVarFp.userAdminServiceUserInfoUpdate(body, options).then((request) => request(axios, basePath));
|
|
3987
|
+
},
|
|
3932
3988
|
};
|
|
3933
3989
|
};
|
|
3934
3990
|
exports.UserAdminServiceApiFactory = UserAdminServiceApiFactory;
|
|
@@ -3938,7 +3994,7 @@ exports.UserAdminServiceApiFactory = UserAdminServiceApiFactory;
|
|
|
3938
3994
|
class UserAdminServiceApi extends base_1.BaseAPI {
|
|
3939
3995
|
/**
|
|
3940
3996
|
*
|
|
3941
|
-
* @summary
|
|
3997
|
+
* @summary 用户信息-分页查询接口
|
|
3942
3998
|
* @param {UserInfoPageGetRequest} body
|
|
3943
3999
|
* @param {*} [options] Override http request option.
|
|
3944
4000
|
* @throws {RequiredError}
|
|
@@ -3946,6 +4002,16 @@ class UserAdminServiceApi extends base_1.BaseAPI {
|
|
|
3946
4002
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3947
4003
|
return (0, exports.UserAdminServiceApiFp)(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3948
4004
|
}
|
|
4005
|
+
/**
|
|
4006
|
+
*
|
|
4007
|
+
* @summary 用户信息-单个更新接口
|
|
4008
|
+
* @param {UserInfoUpdateRequest} body
|
|
4009
|
+
* @param {*} [options] Override http request option.
|
|
4010
|
+
* @throws {RequiredError}
|
|
4011
|
+
*/
|
|
4012
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
4013
|
+
return (0, exports.UserAdminServiceApiFp)(this.configuration).userAdminServiceUserInfoUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
4014
|
+
}
|
|
3949
4015
|
}
|
|
3950
4016
|
exports.UserAdminServiceApi = UserAdminServiceApi;
|
|
3951
4017
|
/**
|
package/dist/esm/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 {
|
|
@@ -1075,6 +1072,19 @@ export interface UserInfoPageGetResponse {
|
|
|
1075
1072
|
'user_info_list'?: Array<UserInfoItem>;
|
|
1076
1073
|
'total'?: string;
|
|
1077
1074
|
}
|
|
1075
|
+
export interface UserInfoUpdateRequest {
|
|
1076
|
+
'uid'?: string;
|
|
1077
|
+
'user'?: UserBasic;
|
|
1078
|
+
'settings'?: PassportpbUserSettings;
|
|
1079
|
+
'preferences'?: UserPreferences;
|
|
1080
|
+
'payment_info'?: UserPaymentInfo;
|
|
1081
|
+
'extend_info'?: UserExtendInfo;
|
|
1082
|
+
'reason'?: string;
|
|
1083
|
+
}
|
|
1084
|
+
export interface UserInfoUpdateResponse {
|
|
1085
|
+
'code'?: string;
|
|
1086
|
+
'message'?: string;
|
|
1087
|
+
}
|
|
1078
1088
|
export interface UserLabelItem {
|
|
1079
1089
|
'uid'?: string;
|
|
1080
1090
|
'label_id'?: string;
|
|
@@ -3572,12 +3582,20 @@ export declare class UserAPIKeyServiceApi extends BaseAPI implements UserAPIKeyS
|
|
|
3572
3582
|
export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3573
3583
|
/**
|
|
3574
3584
|
*
|
|
3575
|
-
* @summary
|
|
3585
|
+
* @summary 用户信息-分页查询接口
|
|
3576
3586
|
* @param {UserInfoPageGetRequest} body
|
|
3577
3587
|
* @param {*} [options] Override http request option.
|
|
3578
3588
|
* @throws {RequiredError}
|
|
3579
3589
|
*/
|
|
3580
3590
|
userAdminServiceUserInfoPageGet: (body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3591
|
+
/**
|
|
3592
|
+
*
|
|
3593
|
+
* @summary 用户信息-单个更新接口
|
|
3594
|
+
* @param {UserInfoUpdateRequest} body
|
|
3595
|
+
* @param {*} [options] Override http request option.
|
|
3596
|
+
* @throws {RequiredError}
|
|
3597
|
+
*/
|
|
3598
|
+
userAdminServiceUserInfoUpdate: (body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3581
3599
|
};
|
|
3582
3600
|
/**
|
|
3583
3601
|
* UserAdminServiceApi - functional programming interface
|
|
@@ -3585,12 +3603,20 @@ export declare const UserAdminServiceApiAxiosParamCreator: (configuration?: Conf
|
|
|
3585
3603
|
export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
3586
3604
|
/**
|
|
3587
3605
|
*
|
|
3588
|
-
* @summary
|
|
3606
|
+
* @summary 用户信息-分页查询接口
|
|
3589
3607
|
* @param {UserInfoPageGetRequest} body
|
|
3590
3608
|
* @param {*} [options] Override http request option.
|
|
3591
3609
|
* @throws {RequiredError}
|
|
3592
3610
|
*/
|
|
3593
3611
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoPageGetResponse>>;
|
|
3612
|
+
/**
|
|
3613
|
+
*
|
|
3614
|
+
* @summary 用户信息-单个更新接口
|
|
3615
|
+
* @param {UserInfoUpdateRequest} body
|
|
3616
|
+
* @param {*} [options] Override http request option.
|
|
3617
|
+
* @throws {RequiredError}
|
|
3618
|
+
*/
|
|
3619
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInfoUpdateResponse>>;
|
|
3594
3620
|
};
|
|
3595
3621
|
/**
|
|
3596
3622
|
* UserAdminServiceApi - factory interface
|
|
@@ -3598,12 +3624,20 @@ export declare const UserAdminServiceApiFp: (configuration?: Configuration) => {
|
|
|
3598
3624
|
export declare const UserAdminServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3599
3625
|
/**
|
|
3600
3626
|
*
|
|
3601
|
-
* @summary
|
|
3627
|
+
* @summary 用户信息-分页查询接口
|
|
3602
3628
|
* @param {UserInfoPageGetRequest} body
|
|
3603
3629
|
* @param {*} [options] Override http request option.
|
|
3604
3630
|
* @throws {RequiredError}
|
|
3605
3631
|
*/
|
|
3606
3632
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3633
|
+
/**
|
|
3634
|
+
*
|
|
3635
|
+
* @summary 用户信息-单个更新接口
|
|
3636
|
+
* @param {UserInfoUpdateRequest} body
|
|
3637
|
+
* @param {*} [options] Override http request option.
|
|
3638
|
+
* @throws {RequiredError}
|
|
3639
|
+
*/
|
|
3640
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3607
3641
|
};
|
|
3608
3642
|
/**
|
|
3609
3643
|
* UserAdminServiceApi - interface
|
|
@@ -3611,12 +3645,20 @@ export declare const UserAdminServiceApiFactory: (configuration?: Configuration,
|
|
|
3611
3645
|
export interface UserAdminServiceApiInterface {
|
|
3612
3646
|
/**
|
|
3613
3647
|
*
|
|
3614
|
-
* @summary
|
|
3648
|
+
* @summary 用户信息-分页查询接口
|
|
3615
3649
|
* @param {UserInfoPageGetRequest} body
|
|
3616
3650
|
* @param {*} [options] Override http request option.
|
|
3617
3651
|
* @throws {RequiredError}
|
|
3618
3652
|
*/
|
|
3619
3653
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoPageGetResponse>;
|
|
3654
|
+
/**
|
|
3655
|
+
*
|
|
3656
|
+
* @summary 用户信息-单个更新接口
|
|
3657
|
+
* @param {UserInfoUpdateRequest} body
|
|
3658
|
+
* @param {*} [options] Override http request option.
|
|
3659
|
+
* @throws {RequiredError}
|
|
3660
|
+
*/
|
|
3661
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserInfoUpdateResponse>;
|
|
3620
3662
|
}
|
|
3621
3663
|
/**
|
|
3622
3664
|
* UserAdminServiceApi - object-oriented interface
|
|
@@ -3624,12 +3666,20 @@ export interface UserAdminServiceApiInterface {
|
|
|
3624
3666
|
export declare class UserAdminServiceApi extends BaseAPI implements UserAdminServiceApiInterface {
|
|
3625
3667
|
/**
|
|
3626
3668
|
*
|
|
3627
|
-
* @summary
|
|
3669
|
+
* @summary 用户信息-分页查询接口
|
|
3628
3670
|
* @param {UserInfoPageGetRequest} body
|
|
3629
3671
|
* @param {*} [options] Override http request option.
|
|
3630
3672
|
* @throws {RequiredError}
|
|
3631
3673
|
*/
|
|
3632
3674
|
userAdminServiceUserInfoPageGet(body: UserInfoPageGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoPageGetResponse, any, {}>>;
|
|
3675
|
+
/**
|
|
3676
|
+
*
|
|
3677
|
+
* @summary 用户信息-单个更新接口
|
|
3678
|
+
* @param {UserInfoUpdateRequest} body
|
|
3679
|
+
* @param {*} [options] Override http request option.
|
|
3680
|
+
* @throws {RequiredError}
|
|
3681
|
+
*/
|
|
3682
|
+
userAdminServiceUserInfoUpdate(body: UserInfoUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInfoUpdateResponse, any, {}>>;
|
|
3633
3683
|
}
|
|
3634
3684
|
/**
|
|
3635
3685
|
* UserBalanceServiceApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
|
@@ -3825,7 +3825,7 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3825
3825
|
return {
|
|
3826
3826
|
/**
|
|
3827
3827
|
*
|
|
3828
|
-
* @summary
|
|
3828
|
+
* @summary 用户信息-分页查询接口
|
|
3829
3829
|
* @param {UserInfoPageGetRequest} body
|
|
3830
3830
|
* @param {*} [options] Override http request option.
|
|
3831
3831
|
* @throws {RequiredError}
|
|
@@ -3853,6 +3853,36 @@ export const UserAdminServiceApiAxiosParamCreator = function (configuration) {
|
|
|
3853
3853
|
options: localVarRequestOptions,
|
|
3854
3854
|
};
|
|
3855
3855
|
}),
|
|
3856
|
+
/**
|
|
3857
|
+
*
|
|
3858
|
+
* @summary 用户信息-单个更新接口
|
|
3859
|
+
* @param {UserInfoUpdateRequest} body
|
|
3860
|
+
* @param {*} [options] Override http request option.
|
|
3861
|
+
* @throws {RequiredError}
|
|
3862
|
+
*/
|
|
3863
|
+
userAdminServiceUserInfoUpdate: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
3864
|
+
// verify required parameter 'body' is not null or undefined
|
|
3865
|
+
assertParamExists('userAdminServiceUserInfoUpdate', 'body', body);
|
|
3866
|
+
const localVarPath = `/admin/users/update`;
|
|
3867
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3868
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3869
|
+
let baseOptions;
|
|
3870
|
+
if (configuration) {
|
|
3871
|
+
baseOptions = configuration.baseOptions;
|
|
3872
|
+
}
|
|
3873
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3874
|
+
const localVarHeaderParameter = {};
|
|
3875
|
+
const localVarQueryParameter = {};
|
|
3876
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3880
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
3881
|
+
return {
|
|
3882
|
+
url: toPathString(localVarUrlObj),
|
|
3883
|
+
options: localVarRequestOptions,
|
|
3884
|
+
};
|
|
3885
|
+
}),
|
|
3856
3886
|
};
|
|
3857
3887
|
};
|
|
3858
3888
|
/**
|
|
@@ -3863,7 +3893,7 @@ export const UserAdminServiceApiFp = function (configuration) {
|
|
|
3863
3893
|
return {
|
|
3864
3894
|
/**
|
|
3865
3895
|
*
|
|
3866
|
-
* @summary
|
|
3896
|
+
* @summary 用户信息-分页查询接口
|
|
3867
3897
|
* @param {UserInfoPageGetRequest} body
|
|
3868
3898
|
* @param {*} [options] Override http request option.
|
|
3869
3899
|
* @throws {RequiredError}
|
|
@@ -3877,6 +3907,22 @@ export const UserAdminServiceApiFp = function (configuration) {
|
|
|
3877
3907
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3878
3908
|
});
|
|
3879
3909
|
},
|
|
3910
|
+
/**
|
|
3911
|
+
*
|
|
3912
|
+
* @summary 用户信息-单个更新接口
|
|
3913
|
+
* @param {UserInfoUpdateRequest} body
|
|
3914
|
+
* @param {*} [options] Override http request option.
|
|
3915
|
+
* @throws {RequiredError}
|
|
3916
|
+
*/
|
|
3917
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3919
|
+
var _a, _b, _c;
|
|
3920
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.userAdminServiceUserInfoUpdate(body, options);
|
|
3921
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3922
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserAdminServiceApi.userAdminServiceUserInfoUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3923
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3924
|
+
});
|
|
3925
|
+
},
|
|
3880
3926
|
};
|
|
3881
3927
|
};
|
|
3882
3928
|
/**
|
|
@@ -3887,7 +3933,7 @@ export const UserAdminServiceApiFactory = function (configuration, basePath, axi
|
|
|
3887
3933
|
return {
|
|
3888
3934
|
/**
|
|
3889
3935
|
*
|
|
3890
|
-
* @summary
|
|
3936
|
+
* @summary 用户信息-分页查询接口
|
|
3891
3937
|
* @param {UserInfoPageGetRequest} body
|
|
3892
3938
|
* @param {*} [options] Override http request option.
|
|
3893
3939
|
* @throws {RequiredError}
|
|
@@ -3895,6 +3941,16 @@ export const UserAdminServiceApiFactory = function (configuration, basePath, axi
|
|
|
3895
3941
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3896
3942
|
return localVarFp.userAdminServiceUserInfoPageGet(body, options).then((request) => request(axios, basePath));
|
|
3897
3943
|
},
|
|
3944
|
+
/**
|
|
3945
|
+
*
|
|
3946
|
+
* @summary 用户信息-单个更新接口
|
|
3947
|
+
* @param {UserInfoUpdateRequest} body
|
|
3948
|
+
* @param {*} [options] Override http request option.
|
|
3949
|
+
* @throws {RequiredError}
|
|
3950
|
+
*/
|
|
3951
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3952
|
+
return localVarFp.userAdminServiceUserInfoUpdate(body, options).then((request) => request(axios, basePath));
|
|
3953
|
+
},
|
|
3898
3954
|
};
|
|
3899
3955
|
};
|
|
3900
3956
|
/**
|
|
@@ -3903,7 +3959,7 @@ export const UserAdminServiceApiFactory = function (configuration, basePath, axi
|
|
|
3903
3959
|
export class UserAdminServiceApi extends BaseAPI {
|
|
3904
3960
|
/**
|
|
3905
3961
|
*
|
|
3906
|
-
* @summary
|
|
3962
|
+
* @summary 用户信息-分页查询接口
|
|
3907
3963
|
* @param {UserInfoPageGetRequest} body
|
|
3908
3964
|
* @param {*} [options] Override http request option.
|
|
3909
3965
|
* @throws {RequiredError}
|
|
@@ -3911,6 +3967,16 @@ export class UserAdminServiceApi extends BaseAPI {
|
|
|
3911
3967
|
userAdminServiceUserInfoPageGet(body, options) {
|
|
3912
3968
|
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoPageGet(body, options).then((request) => request(this.axios, this.basePath));
|
|
3913
3969
|
}
|
|
3970
|
+
/**
|
|
3971
|
+
*
|
|
3972
|
+
* @summary 用户信息-单个更新接口
|
|
3973
|
+
* @param {UserInfoUpdateRequest} body
|
|
3974
|
+
* @param {*} [options] Override http request option.
|
|
3975
|
+
* @throws {RequiredError}
|
|
3976
|
+
*/
|
|
3977
|
+
userAdminServiceUserInfoUpdate(body, options) {
|
|
3978
|
+
return UserAdminServiceApiFp(this.configuration).userAdminServiceUserInfoUpdate(body, options).then((request) => request(this.axios, this.basePath));
|
|
3979
|
+
}
|
|
3914
3980
|
}
|
|
3915
3981
|
/**
|
|
3916
3982
|
* UserBalanceServiceApi - axios parameter creator
|
package/docs/AigwpbUserMeInfo.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**info** | [**
|
|
8
|
+
**info** | [**UserInfo**](UserInfo.md) | | [optional] [default to undefined]
|
|
9
9
|
**settings** | [**AigwpbUserSettings**](AigwpbUserSettings.md) | | [optional] [default to undefined]
|
|
10
10
|
**balance** | [**UserBalanceBrief**](UserBalanceBrief.md) | | [optional] [default to undefined]
|
|
11
11
|
|
|
@@ -4,7 +4,8 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**userAdminServiceUserInfoPageGet**](#useradminserviceuserinfopageget) | **POST** /admin/users/search |
|
|
7
|
+
|[**userAdminServiceUserInfoPageGet**](#useradminserviceuserinfopageget) | **POST** /admin/users/search | 用户信息-分页查询接口|
|
|
8
|
+
|[**userAdminServiceUserInfoUpdate**](#useradminserviceuserinfoupdate) | **POST** /admin/users/update | 用户信息-单个更新接口|
|
|
8
9
|
|
|
9
10
|
# **userAdminServiceUserInfoPageGet**
|
|
10
11
|
> UserInfoPageGetResponse userAdminServiceUserInfoPageGet(body)
|
|
@@ -58,3 +59,55 @@ No authorization required
|
|
|
58
59
|
|
|
59
60
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
60
61
|
|
|
62
|
+
# **userAdminServiceUserInfoUpdate**
|
|
63
|
+
> UserInfoUpdateResponse userAdminServiceUserInfoUpdate(body)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
UserAdminServiceApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
UserInfoUpdateRequest
|
|
73
|
+
} from '@cherryin/aigw-api-client';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new UserAdminServiceApi(configuration);
|
|
77
|
+
|
|
78
|
+
let body: UserInfoUpdateRequest; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.userAdminServiceUserInfoUpdate(
|
|
81
|
+
body
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **body** | **UserInfoUpdateRequest**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**UserInfoUpdateResponse**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
No authorization required
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | A successful response. | - |
|
|
110
|
+
|**0** | An unexpected error response. | - |
|
|
111
|
+
|
|
112
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
113
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserInfo
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -16,9 +16,9 @@ Name | Type | Description | Notes
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import {
|
|
19
|
+
import { UserInfo } from '@cherryin/aigw-api-client';
|
|
20
20
|
|
|
21
|
-
const instance:
|
|
21
|
+
const instance: UserInfo = {
|
|
22
22
|
id,
|
|
23
23
|
name,
|
|
24
24
|
email,
|
package/docs/UserInfoItem.md
CHANGED
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**user** | [**
|
|
8
|
+
**user** | [**UserBasic**](UserBasic.md) | | [optional] [default to undefined]
|
|
9
|
+
**settings** | [**PassportpbUserSettings**](PassportpbUserSettings.md) | | [optional] [default to undefined]
|
|
10
|
+
**preferences** | [**UserPreferences**](UserPreferences.md) | | [optional] [default to undefined]
|
|
11
|
+
**payment_info** | [**UserPaymentInfo**](UserPaymentInfo.md) | | [optional] [default to undefined]
|
|
12
|
+
**extend_info** | [**UserExtendInfo**](UserExtendInfo.md) | | [optional] [default to undefined]
|
|
13
|
+
**auth_methods** | [**Array<AuthUserMethod>**](AuthUserMethod.md) | | [optional] [default to undefined]
|
|
9
14
|
**balance** | [**UserBalance**](UserBalance.md) | | [optional] [default to undefined]
|
|
10
15
|
|
|
11
16
|
## Example
|
|
@@ -15,6 +20,11 @@ import { UserInfoItem } from '@cherryin/aigw-api-client';
|
|
|
15
20
|
|
|
16
21
|
const instance: UserInfoItem = {
|
|
17
22
|
user,
|
|
23
|
+
settings,
|
|
24
|
+
preferences,
|
|
25
|
+
payment_info,
|
|
26
|
+
extend_info,
|
|
27
|
+
auth_methods,
|
|
18
28
|
balance,
|
|
19
29
|
};
|
|
20
30
|
```
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserInfoUpdateRequest
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | | [optional] [default to undefined]
|
|
8
9
|
**user** | [**UserBasic**](UserBasic.md) | | [optional] [default to undefined]
|
|
9
10
|
**settings** | [**PassportpbUserSettings**](PassportpbUserSettings.md) | | [optional] [default to undefined]
|
|
10
11
|
**preferences** | [**UserPreferences**](UserPreferences.md) | | [optional] [default to undefined]
|
|
11
12
|
**payment_info** | [**UserPaymentInfo**](UserPaymentInfo.md) | | [optional] [default to undefined]
|
|
12
13
|
**extend_info** | [**UserExtendInfo**](UserExtendInfo.md) | | [optional] [default to undefined]
|
|
13
|
-
**
|
|
14
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
17
18
|
```typescript
|
|
18
|
-
import {
|
|
19
|
+
import { UserInfoUpdateRequest } from '@cherryin/aigw-api-client';
|
|
19
20
|
|
|
20
|
-
const instance:
|
|
21
|
+
const instance: UserInfoUpdateRequest = {
|
|
22
|
+
uid,
|
|
21
23
|
user,
|
|
22
24
|
settings,
|
|
23
25
|
preferences,
|
|
24
26
|
payment_info,
|
|
25
27
|
extend_info,
|
|
26
|
-
|
|
28
|
+
reason,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UserInfoUpdateResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**code** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserInfoUpdateResponse } from '@cherryin/aigw-api-client';
|
|
15
|
+
|
|
16
|
+
const instance: UserInfoUpdateResponse = {
|
|
17
|
+
code,
|
|
18
|
+
message,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|