@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/dist/api.js CHANGED
@@ -22,8 +22,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.UserPayServiceApi = exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = exports.UserModelServiceFrontendModelsResponseOptionEnum = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAdminServiceApi = exports.UserAdminServiceApiFactory = exports.UserAdminServiceApiFp = exports.UserAdminServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory = exports.UserAPIKeyServiceApiFp = exports.UserAPIKeyServiceApiAxiosParamCreator = exports.QRCodeAdminServiceApi = exports.QRCodeAdminServiceApiFactory = exports.QRCodeAdminServiceApiFp = exports.QRCodeAdminServiceApiAxiosParamCreator = exports.ProviderModelAdminServiceApi = exports.ProviderModelAdminServiceApiFactory = exports.ProviderModelAdminServiceApiFp = exports.ProviderModelAdminServiceApiAxiosParamCreator = exports.ProviderAdminServiceApi = exports.ProviderAdminServiceApiFactory = exports.ProviderAdminServiceApiFp = exports.ProviderAdminServiceApiAxiosParamCreator = exports.DiscountAdminServiceApi = exports.DiscountAdminServiceApiFactory = exports.DiscountAdminServiceApiFp = exports.DiscountAdminServiceApiAxiosParamCreator = exports.AdminAPITokenServiceApi = exports.AdminAPITokenServiceApiFactory = exports.AdminAPITokenServiceApiFp = exports.AdminAPITokenServiceApiAxiosParamCreator = exports.AIModelAdminServiceApi = exports.AIModelAdminServiceApiFactory = exports.AIModelAdminServiceApiFp = exports.AIModelAdminServiceApiAxiosParamCreator = exports.FrontendModelsResponseOption = void 0;
26
- exports.UserPortalServiceApi = exports.UserPortalServiceApiFactory = exports.UserPortalServiceApiFp = exports.UserPortalServiceApiAxiosParamCreator = void 0;
25
+ exports.UserPayAdminServiceApi = exports.UserPayAdminServiceApiFactory = exports.UserPayAdminServiceApiFp = exports.UserPayAdminServiceApiAxiosParamCreator = exports.UserModelServiceFrontendModelsResponseOptionEnum = exports.UserModelServiceApi = exports.UserModelServiceApiFactory = exports.UserModelServiceApiFp = exports.UserModelServiceApiAxiosParamCreator = exports.UserLabelServiceApi = exports.UserLabelServiceApiFactory = exports.UserLabelServiceApiFp = exports.UserLabelServiceApiAxiosParamCreator = exports.UserBalanceServiceApi = exports.UserBalanceServiceApiFactory = exports.UserBalanceServiceApiFp = exports.UserBalanceServiceApiAxiosParamCreator = exports.UserAdminServiceApi = exports.UserAdminServiceApiFactory = exports.UserAdminServiceApiFp = exports.UserAdminServiceApiAxiosParamCreator = exports.UserAPIKeyServiceApi = exports.UserAPIKeyServiceApiFactory = exports.UserAPIKeyServiceApiFp = exports.UserAPIKeyServiceApiAxiosParamCreator = exports.QRCodeAdminServiceApi = exports.QRCodeAdminServiceApiFactory = exports.QRCodeAdminServiceApiFp = exports.QRCodeAdminServiceApiAxiosParamCreator = exports.ProviderModelAdminServiceApi = exports.ProviderModelAdminServiceApiFactory = exports.ProviderModelAdminServiceApiFp = exports.ProviderModelAdminServiceApiAxiosParamCreator = exports.ProviderAdminServiceApi = exports.ProviderAdminServiceApiFactory = exports.ProviderAdminServiceApiFp = exports.ProviderAdminServiceApiAxiosParamCreator = exports.DiscountAdminServiceApi = exports.DiscountAdminServiceApiFactory = exports.DiscountAdminServiceApiFp = exports.DiscountAdminServiceApiAxiosParamCreator = exports.AdminAPITokenServiceApi = exports.AdminAPITokenServiceApiFactory = exports.AdminAPITokenServiceApiFp = exports.AdminAPITokenServiceApiAxiosParamCreator = exports.AIModelAdminServiceApi = exports.AIModelAdminServiceApiFactory = exports.AIModelAdminServiceApiFp = exports.AIModelAdminServiceApiAxiosParamCreator = exports.FrontendModelsResponseOption = void 0;
26
+ exports.UserPortalServiceApi = exports.UserPortalServiceApiFactory = exports.UserPortalServiceApiFp = exports.UserPortalServiceApiAxiosParamCreator = exports.UserPayServiceApi = exports.UserPayServiceApiFactory = exports.UserPayServiceApiFp = exports.UserPayServiceApiAxiosParamCreator = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -4032,7 +4032,7 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
4032
4032
  * @throws {RequiredError}
4033
4033
  */
4034
4034
  userBalanceServiceUserBalanceChange: (forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1], void 0, function* (forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options = {}) {
4035
- const localVarPath = `/v1/user_balance/change`;
4035
+ const localVarPath = `/admin/users/balance/change`;
4036
4036
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4037
4037
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4038
4038
  let baseOptions;
@@ -4089,7 +4089,7 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
4089
4089
  * @throws {RequiredError}
4090
4090
  */
4091
4091
  userBalanceServiceUserBalanceEdit: (forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1], void 0, function* (forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options = {}) {
4092
- const localVarPath = `/v1/user_balance/edit`;
4092
+ const localVarPath = `/admin/users/balance/edit`;
4093
4093
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4094
4094
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4095
4095
  let baseOptions;
@@ -4159,7 +4159,7 @@ const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
4159
4159
  * @throws {RequiredError}
4160
4160
  */
4161
4161
  userBalanceServiceUserBalanceList: (page_1, pageSize_1, uidList_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uidList_1, ...args_1], void 0, function* (page, pageSize, uidList, options = {}) {
4162
- const localVarPath = `/v1/user_balance/list`;
4162
+ const localVarPath = `/admin/users/balance/list`;
4163
4163
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4164
4164
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4165
4165
  let baseOptions;
@@ -5166,6 +5166,104 @@ exports.UserModelServiceFrontendModelsResponseOptionEnum = {
5166
5166
  ResponseOptionCdnOnly: 'RESPONSE_OPTION_CDN_ONLY',
5167
5167
  ResponseOptionDataOnly: 'RESPONSE_OPTION_DATA_ONLY'
5168
5168
  };
5169
+ /**
5170
+ * UserPayAdminServiceApi - axios parameter creator
5171
+ */
5172
+ const UserPayAdminServiceApiAxiosParamCreator = function (configuration) {
5173
+ return {
5174
+ /**
5175
+ *
5176
+ * @summary Admin - 用户订单查询列表
5177
+ * @param {UserPayOrderAdminListRequest} body
5178
+ * @param {*} [options] Override http request option.
5179
+ * @throws {RequiredError}
5180
+ */
5181
+ userPayAdminServiceUserPayOrderAdminList: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
5182
+ // verify required parameter 'body' is not null or undefined
5183
+ (0, common_1.assertParamExists)('userPayAdminServiceUserPayOrderAdminList', 'body', body);
5184
+ const localVarPath = `/admin/users/orders/list`;
5185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5186
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5187
+ let baseOptions;
5188
+ if (configuration) {
5189
+ baseOptions = configuration.baseOptions;
5190
+ }
5191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5192
+ const localVarHeaderParameter = {};
5193
+ const localVarQueryParameter = {};
5194
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5195
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5197
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5198
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
5199
+ return {
5200
+ url: (0, common_1.toPathString)(localVarUrlObj),
5201
+ options: localVarRequestOptions,
5202
+ };
5203
+ }),
5204
+ };
5205
+ };
5206
+ exports.UserPayAdminServiceApiAxiosParamCreator = UserPayAdminServiceApiAxiosParamCreator;
5207
+ /**
5208
+ * UserPayAdminServiceApi - functional programming interface
5209
+ */
5210
+ const UserPayAdminServiceApiFp = function (configuration) {
5211
+ const localVarAxiosParamCreator = (0, exports.UserPayAdminServiceApiAxiosParamCreator)(configuration);
5212
+ return {
5213
+ /**
5214
+ *
5215
+ * @summary Admin - 用户订单查询列表
5216
+ * @param {UserPayOrderAdminListRequest} body
5217
+ * @param {*} [options] Override http request option.
5218
+ * @throws {RequiredError}
5219
+ */
5220
+ userPayAdminServiceUserPayOrderAdminList(body, options) {
5221
+ return __awaiter(this, void 0, void 0, function* () {
5222
+ var _a, _b, _c;
5223
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayAdminServiceUserPayOrderAdminList(body, options);
5224
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5225
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserPayAdminServiceApi.userPayAdminServiceUserPayOrderAdminList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5226
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5227
+ });
5228
+ },
5229
+ };
5230
+ };
5231
+ exports.UserPayAdminServiceApiFp = UserPayAdminServiceApiFp;
5232
+ /**
5233
+ * UserPayAdminServiceApi - factory interface
5234
+ */
5235
+ const UserPayAdminServiceApiFactory = function (configuration, basePath, axios) {
5236
+ const localVarFp = (0, exports.UserPayAdminServiceApiFp)(configuration);
5237
+ return {
5238
+ /**
5239
+ *
5240
+ * @summary Admin - 用户订单查询列表
5241
+ * @param {UserPayOrderAdminListRequest} body
5242
+ * @param {*} [options] Override http request option.
5243
+ * @throws {RequiredError}
5244
+ */
5245
+ userPayAdminServiceUserPayOrderAdminList(body, options) {
5246
+ return localVarFp.userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(axios, basePath));
5247
+ },
5248
+ };
5249
+ };
5250
+ exports.UserPayAdminServiceApiFactory = UserPayAdminServiceApiFactory;
5251
+ /**
5252
+ * UserPayAdminServiceApi - object-oriented interface
5253
+ */
5254
+ class UserPayAdminServiceApi extends base_1.BaseAPI {
5255
+ /**
5256
+ *
5257
+ * @summary Admin - 用户订单查询列表
5258
+ * @param {UserPayOrderAdminListRequest} body
5259
+ * @param {*} [options] Override http request option.
5260
+ * @throws {RequiredError}
5261
+ */
5262
+ userPayAdminServiceUserPayOrderAdminList(body, options) {
5263
+ return (0, exports.UserPayAdminServiceApiFp)(this.configuration).userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(this.axios, this.basePath));
5264
+ }
5265
+ }
5266
+ exports.UserPayAdminServiceApi = UserPayAdminServiceApi;
5169
5267
  /**
5170
5268
  * UserPayServiceApi - axios parameter creator
5171
5269
  */
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'?: AigwpbUserInfo;
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'?: PassportpbUserInfo;
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
  */
package/dist/esm/api.js CHANGED
@@ -3996,7 +3996,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
3996
3996
  * @throws {RequiredError}
3997
3997
  */
3998
3998
  userBalanceServiceUserBalanceChange: (forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, balanceCode_1, action_1, deltaPrepaidBalanceTotal_1, deltaBonusBalanceTotal_1, ...args_1], void 0, function* (forceCreate, uid, balanceCode, action, deltaPrepaidBalanceTotal, deltaBonusBalanceTotal, options = {}) {
3999
- const localVarPath = `/v1/user_balance/change`;
3999
+ const localVarPath = `/admin/users/balance/change`;
4000
4000
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4001
4001
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4002
4002
  let baseOptions;
@@ -4053,7 +4053,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
4053
4053
  * @throws {RequiredError}
4054
4054
  */
4055
4055
  userBalanceServiceUserBalanceEdit: (forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1) => __awaiter(this, [forceCreate_1, uid_1, dataId_1, dataCreatedAt_1, dataUpdatedAt_1, dataUid_1, dataBalanceCode_1, dataPrepaidBalanceTotal_1, dataPrepaidBalanceUsed_1, dataPrepaidBalanceFrozen_1, dataBonusBalanceTotal_1, dataBonusBalanceUsed_1, dataBonusBalanceFrozen_1, dataVersion_1, ...args_1], void 0, function* (forceCreate, uid, dataId, dataCreatedAt, dataUpdatedAt, dataUid, dataBalanceCode, dataPrepaidBalanceTotal, dataPrepaidBalanceUsed, dataPrepaidBalanceFrozen, dataBonusBalanceTotal, dataBonusBalanceUsed, dataBonusBalanceFrozen, dataVersion, options = {}) {
4056
- const localVarPath = `/v1/user_balance/edit`;
4056
+ const localVarPath = `/admin/users/balance/edit`;
4057
4057
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4058
4058
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4059
4059
  let baseOptions;
@@ -4123,7 +4123,7 @@ export const UserBalanceServiceApiAxiosParamCreator = function (configuration) {
4123
4123
  * @throws {RequiredError}
4124
4124
  */
4125
4125
  userBalanceServiceUserBalanceList: (page_1, pageSize_1, uidList_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, uidList_1, ...args_1], void 0, function* (page, pageSize, uidList, options = {}) {
4126
- const localVarPath = `/v1/user_balance/list`;
4126
+ const localVarPath = `/admin/users/balance/list`;
4127
4127
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4128
4128
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4129
4129
  let baseOptions;
@@ -5118,6 +5118,100 @@ export const UserModelServiceFrontendModelsResponseOptionEnum = {
5118
5118
  ResponseOptionCdnOnly: 'RESPONSE_OPTION_CDN_ONLY',
5119
5119
  ResponseOptionDataOnly: 'RESPONSE_OPTION_DATA_ONLY'
5120
5120
  };
5121
+ /**
5122
+ * UserPayAdminServiceApi - axios parameter creator
5123
+ */
5124
+ export const UserPayAdminServiceApiAxiosParamCreator = function (configuration) {
5125
+ return {
5126
+ /**
5127
+ *
5128
+ * @summary Admin - 用户订单查询列表
5129
+ * @param {UserPayOrderAdminListRequest} body
5130
+ * @param {*} [options] Override http request option.
5131
+ * @throws {RequiredError}
5132
+ */
5133
+ userPayAdminServiceUserPayOrderAdminList: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
5134
+ // verify required parameter 'body' is not null or undefined
5135
+ assertParamExists('userPayAdminServiceUserPayOrderAdminList', 'body', body);
5136
+ const localVarPath = `/admin/users/orders/list`;
5137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5138
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5139
+ let baseOptions;
5140
+ if (configuration) {
5141
+ baseOptions = configuration.baseOptions;
5142
+ }
5143
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5144
+ const localVarHeaderParameter = {};
5145
+ const localVarQueryParameter = {};
5146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5150
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
5151
+ return {
5152
+ url: toPathString(localVarUrlObj),
5153
+ options: localVarRequestOptions,
5154
+ };
5155
+ }),
5156
+ };
5157
+ };
5158
+ /**
5159
+ * UserPayAdminServiceApi - functional programming interface
5160
+ */
5161
+ export const UserPayAdminServiceApiFp = function (configuration) {
5162
+ const localVarAxiosParamCreator = UserPayAdminServiceApiAxiosParamCreator(configuration);
5163
+ return {
5164
+ /**
5165
+ *
5166
+ * @summary Admin - 用户订单查询列表
5167
+ * @param {UserPayOrderAdminListRequest} body
5168
+ * @param {*} [options] Override http request option.
5169
+ * @throws {RequiredError}
5170
+ */
5171
+ userPayAdminServiceUserPayOrderAdminList(body, options) {
5172
+ return __awaiter(this, void 0, void 0, function* () {
5173
+ var _a, _b, _c;
5174
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.userPayAdminServiceUserPayOrderAdminList(body, options);
5175
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5176
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserPayAdminServiceApi.userPayAdminServiceUserPayOrderAdminList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5177
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5178
+ });
5179
+ },
5180
+ };
5181
+ };
5182
+ /**
5183
+ * UserPayAdminServiceApi - factory interface
5184
+ */
5185
+ export const UserPayAdminServiceApiFactory = function (configuration, basePath, axios) {
5186
+ const localVarFp = UserPayAdminServiceApiFp(configuration);
5187
+ return {
5188
+ /**
5189
+ *
5190
+ * @summary Admin - 用户订单查询列表
5191
+ * @param {UserPayOrderAdminListRequest} body
5192
+ * @param {*} [options] Override http request option.
5193
+ * @throws {RequiredError}
5194
+ */
5195
+ userPayAdminServiceUserPayOrderAdminList(body, options) {
5196
+ return localVarFp.userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(axios, basePath));
5197
+ },
5198
+ };
5199
+ };
5200
+ /**
5201
+ * UserPayAdminServiceApi - object-oriented interface
5202
+ */
5203
+ export class UserPayAdminServiceApi extends BaseAPI {
5204
+ /**
5205
+ *
5206
+ * @summary Admin - 用户订单查询列表
5207
+ * @param {UserPayOrderAdminListRequest} body
5208
+ * @param {*} [options] Override http request option.
5209
+ * @throws {RequiredError}
5210
+ */
5211
+ userPayAdminServiceUserPayOrderAdminList(body, options) {
5212
+ return UserPayAdminServiceApiFp(this.configuration).userPayAdminServiceUserPayOrderAdminList(body, options).then((request) => request(this.axios, this.basePath));
5213
+ }
5214
+ }
5121
5215
  /**
5122
5216
  * UserPayServiceApi - axios parameter creator
5123
5217
  */
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **info** | [**AigwpbUserInfo**](AigwpbUserInfo.md) | | [optional] [default to undefined]
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,9 +4,9 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**userBalanceServiceUserBalanceChange**](#userbalanceserviceuserbalancechange) | **POST** /v1/user_balance/change | 用户余额变更接口 - 增量操作|
8
- |[**userBalanceServiceUserBalanceEdit**](#userbalanceserviceuserbalanceedit) | **POST** /v1/user_balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致|
9
- |[**userBalanceServiceUserBalanceList**](#userbalanceserviceuserbalancelist) | **GET** /v1/user_balance/list | 用户余额列表接口|
7
+ |[**userBalanceServiceUserBalanceChange**](#userbalanceserviceuserbalancechange) | **POST** /admin/users/balance/change | 用户余额变更接口 - 增量操作|
8
+ |[**userBalanceServiceUserBalanceEdit**](#userbalanceserviceuserbalanceedit) | **POST** /admin/users/balance/edit | 编辑用户余额信息 - 注意,这是直接编辑最终结果值,不是增量操作 NOTE: 后台尽量别用此接口做增量变更操作,避免并发问题导致数据不一致|
9
+ |[**userBalanceServiceUserBalanceList**](#userbalanceserviceuserbalancelist) | **GET** /admin/users/balance/list | 用户余额列表接口|
10
10
 
11
11
  # **userBalanceServiceUserBalanceChange**
12
12
  > UserBalanceChangeResponse userBalanceServiceUserBalanceChange()
@@ -1,4 +1,4 @@
1
- # AigwpbUserInfo
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 { AigwpbUserInfo } from '@cherryin/aigw-api-client';
19
+ import { UserInfo } from '@cherryin/aigw-api-client';
20
20
 
21
- const instance: AigwpbUserInfo = {
21
+ const instance: UserInfo = {
22
22
  id,
23
23
  name,
24
24
  email,
@@ -5,7 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **user** | [**PassportpbUserInfo**](PassportpbUserInfo.md) | | [optional] [default to undefined]
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&lt;AuthUserMethod&gt;**](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
  ```
@@ -0,0 +1,60 @@
1
+ # UserPayAdminServiceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**userPayAdminServiceUserPayOrderAdminList**](#userpayadminserviceuserpayorderadminlist) | **POST** /admin/users/orders/list | Admin - 用户订单查询列表|
8
+
9
+ # **userPayAdminServiceUserPayOrderAdminList**
10
+ > UserPayOrderAdminListResponse userPayAdminServiceUserPayOrderAdminList(body)
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ UserPayAdminServiceApi,
18
+ Configuration,
19
+ UserPayOrderAdminListRequest
20
+ } from '@cherryin/aigw-api-client';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new UserPayAdminServiceApi(configuration);
24
+
25
+ let body: UserPayOrderAdminListRequest; //
26
+
27
+ const { status, data } = await apiInstance.userPayAdminServiceUserPayOrderAdminList(
28
+ body
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **body** | **UserPayOrderAdminListRequest**| | |
37
+
38
+
39
+ ### Return type
40
+
41
+ **UserPayOrderAdminListResponse**
42
+
43
+ ### Authorization
44
+
45
+ No authorization required
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: application/json
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | A successful response. | - |
57
+ |**0** | An unexpected error response. | - |
58
+
59
+ [[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
+
@@ -0,0 +1,48 @@
1
+ # UserPayOrderAdminItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **order_no** | **string** | | [optional] [default to undefined]
9
+ **balance_code** | **string** | | [optional] [default to undefined]
10
+ **charge_amount** | **string** | | [optional] [default to undefined]
11
+ **pay_amount** | **string** | | [optional] [default to undefined]
12
+ **payment_method** | **string** | | [optional] [default to undefined]
13
+ **order_status** | **string** | | [optional] [default to undefined]
14
+ **confirmed_at** | **string** | | [optional] [default to undefined]
15
+ **created_at** | **string** | | [optional] [default to undefined]
16
+ **failed_at** | **string** | | [optional] [default to undefined]
17
+ **expired_at** | **string** | | [optional] [default to undefined]
18
+ **refunded_at** | **string** | | [optional] [default to undefined]
19
+ **user_agent** | **string** | | [optional] [default to undefined]
20
+ **client_ip** | **string** | | [optional] [default to undefined]
21
+ **user_id** | **string** | | [optional] [default to undefined]
22
+ **extra_stripe** | [**UserPayOrderStripe**](UserPayOrderStripe.md) | | [optional] [default to undefined]
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import { UserPayOrderAdminItem } from '@cherryin/aigw-api-client';
28
+
29
+ const instance: UserPayOrderAdminItem = {
30
+ order_no,
31
+ balance_code,
32
+ charge_amount,
33
+ pay_amount,
34
+ payment_method,
35
+ order_status,
36
+ confirmed_at,
37
+ created_at,
38
+ failed_at,
39
+ expired_at,
40
+ refunded_at,
41
+ user_agent,
42
+ client_ip,
43
+ user_id,
44
+ extra_stripe,
45
+ };
46
+ ```
47
+
48
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)