@seekora-ai/admin-api 1.0.20 → 1.0.22
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/README.md +9 -2
- package/api.ts +394 -0
- package/dist/api.d.ts +275 -0
- package/dist/api.js +239 -2
- package/dist/esm/api.d.ts +275 -0
- package/dist/esm/api.js +233 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.22.tgz +0 -0
- package/seekora-ai-admin-api-1.0.20.tgz +0 -0
package/dist/api.d.ts
CHANGED
|
@@ -1931,6 +1931,12 @@ export interface DataTypesLoginResponse {
|
|
|
1931
1931
|
* @memberof DataTypesLoginResponse
|
|
1932
1932
|
*/
|
|
1933
1933
|
'roleId'?: number;
|
|
1934
|
+
/**
|
|
1935
|
+
* List of stores for the user\'s organization
|
|
1936
|
+
* @type {Array<DataTypesStore>}
|
|
1937
|
+
* @memberof DataTypesLoginResponse
|
|
1938
|
+
*/
|
|
1939
|
+
'stores'?: Array<DataTypesStore>;
|
|
1934
1940
|
/**
|
|
1935
1941
|
*
|
|
1936
1942
|
* @type {string}
|
|
@@ -3346,6 +3352,61 @@ export interface DataTypesPlansListResponse {
|
|
|
3346
3352
|
*/
|
|
3347
3353
|
'status'?: number;
|
|
3348
3354
|
}
|
|
3355
|
+
/**
|
|
3356
|
+
*
|
|
3357
|
+
* @export
|
|
3358
|
+
* @interface DataTypesProfileResponse
|
|
3359
|
+
*/
|
|
3360
|
+
export interface DataTypesProfileResponse {
|
|
3361
|
+
/**
|
|
3362
|
+
*
|
|
3363
|
+
* @type {string}
|
|
3364
|
+
* @memberof DataTypesProfileResponse
|
|
3365
|
+
*/
|
|
3366
|
+
'firstname'?: string;
|
|
3367
|
+
/**
|
|
3368
|
+
*
|
|
3369
|
+
* @type {string}
|
|
3370
|
+
* @memberof DataTypesProfileResponse
|
|
3371
|
+
*/
|
|
3372
|
+
'lastname'?: string;
|
|
3373
|
+
/**
|
|
3374
|
+
*
|
|
3375
|
+
* @type {string}
|
|
3376
|
+
* @memberof DataTypesProfileResponse
|
|
3377
|
+
*/
|
|
3378
|
+
'profileimagepath'?: string;
|
|
3379
|
+
/**
|
|
3380
|
+
*
|
|
3381
|
+
* @type {string}
|
|
3382
|
+
* @memberof DataTypesProfileResponse
|
|
3383
|
+
*/
|
|
3384
|
+
'usercode'?: string;
|
|
3385
|
+
/**
|
|
3386
|
+
*
|
|
3387
|
+
* @type {string}
|
|
3388
|
+
* @memberof DataTypesProfileResponse
|
|
3389
|
+
*/
|
|
3390
|
+
'useremailid'?: string;
|
|
3391
|
+
/**
|
|
3392
|
+
*
|
|
3393
|
+
* @type {number}
|
|
3394
|
+
* @memberof DataTypesProfileResponse
|
|
3395
|
+
*/
|
|
3396
|
+
'userid'?: number;
|
|
3397
|
+
/**
|
|
3398
|
+
*
|
|
3399
|
+
* @type {string}
|
|
3400
|
+
* @memberof DataTypesProfileResponse
|
|
3401
|
+
*/
|
|
3402
|
+
'username'?: string;
|
|
3403
|
+
/**
|
|
3404
|
+
*
|
|
3405
|
+
* @type {string}
|
|
3406
|
+
* @memberof DataTypesProfileResponse
|
|
3407
|
+
*/
|
|
3408
|
+
'userphone'?: string;
|
|
3409
|
+
}
|
|
3349
3410
|
/**
|
|
3350
3411
|
*
|
|
3351
3412
|
* @export
|
|
@@ -5005,6 +5066,68 @@ export interface DataTypesUpdateIndexSchemaRequestFieldsInner {
|
|
|
5005
5066
|
*/
|
|
5006
5067
|
'sort'?: boolean;
|
|
5007
5068
|
}
|
|
5069
|
+
/**
|
|
5070
|
+
*
|
|
5071
|
+
* @export
|
|
5072
|
+
* @interface DataTypesUpdatePasswordRequest
|
|
5073
|
+
*/
|
|
5074
|
+
export interface DataTypesUpdatePasswordRequest {
|
|
5075
|
+
/**
|
|
5076
|
+
*
|
|
5077
|
+
* @type {string}
|
|
5078
|
+
* @memberof DataTypesUpdatePasswordRequest
|
|
5079
|
+
*/
|
|
5080
|
+
'currentpassword': string;
|
|
5081
|
+
/**
|
|
5082
|
+
*
|
|
5083
|
+
* @type {string}
|
|
5084
|
+
* @memberof DataTypesUpdatePasswordRequest
|
|
5085
|
+
*/
|
|
5086
|
+
'newpassword': string;
|
|
5087
|
+
}
|
|
5088
|
+
/**
|
|
5089
|
+
*
|
|
5090
|
+
* @export
|
|
5091
|
+
* @interface DataTypesUpdateProfileRequest
|
|
5092
|
+
*/
|
|
5093
|
+
export interface DataTypesUpdateProfileRequest {
|
|
5094
|
+
/**
|
|
5095
|
+
*
|
|
5096
|
+
* @type {string}
|
|
5097
|
+
* @memberof DataTypesUpdateProfileRequest
|
|
5098
|
+
*/
|
|
5099
|
+
'firstname': string;
|
|
5100
|
+
/**
|
|
5101
|
+
*
|
|
5102
|
+
* @type {string}
|
|
5103
|
+
* @memberof DataTypesUpdateProfileRequest
|
|
5104
|
+
*/
|
|
5105
|
+
'lastname': string;
|
|
5106
|
+
/**
|
|
5107
|
+
*
|
|
5108
|
+
* @type {string}
|
|
5109
|
+
* @memberof DataTypesUpdateProfileRequest
|
|
5110
|
+
*/
|
|
5111
|
+
'profileimagepath'?: string;
|
|
5112
|
+
/**
|
|
5113
|
+
*
|
|
5114
|
+
* @type {string}
|
|
5115
|
+
* @memberof DataTypesUpdateProfileRequest
|
|
5116
|
+
*/
|
|
5117
|
+
'useremailid': string;
|
|
5118
|
+
/**
|
|
5119
|
+
*
|
|
5120
|
+
* @type {string}
|
|
5121
|
+
* @memberof DataTypesUpdateProfileRequest
|
|
5122
|
+
*/
|
|
5123
|
+
'username': string;
|
|
5124
|
+
/**
|
|
5125
|
+
*
|
|
5126
|
+
* @type {string}
|
|
5127
|
+
* @memberof DataTypesUpdateProfileRequest
|
|
5128
|
+
*/
|
|
5129
|
+
'userphone': string;
|
|
5130
|
+
}
|
|
5008
5131
|
/**
|
|
5009
5132
|
*
|
|
5010
5133
|
* @export
|
|
@@ -5436,6 +5559,25 @@ export interface DataTypesVerifyOTPResponseWrapper {
|
|
|
5436
5559
|
*/
|
|
5437
5560
|
'status'?: number;
|
|
5438
5561
|
}
|
|
5562
|
+
/**
|
|
5563
|
+
*
|
|
5564
|
+
* @export
|
|
5565
|
+
* @interface FiberError
|
|
5566
|
+
*/
|
|
5567
|
+
export interface FiberError {
|
|
5568
|
+
/**
|
|
5569
|
+
*
|
|
5570
|
+
* @type {number}
|
|
5571
|
+
* @memberof FiberError
|
|
5572
|
+
*/
|
|
5573
|
+
'code'?: number;
|
|
5574
|
+
/**
|
|
5575
|
+
*
|
|
5576
|
+
* @type {string}
|
|
5577
|
+
* @memberof FiberError
|
|
5578
|
+
*/
|
|
5579
|
+
'message'?: string;
|
|
5580
|
+
}
|
|
5439
5581
|
/**
|
|
5440
5582
|
*
|
|
5441
5583
|
* @export
|
|
@@ -5783,6 +5925,139 @@ export declare class APICallsApi extends BaseAPI {
|
|
|
5783
5925
|
*/
|
|
5784
5926
|
adminAPICallsPost(aPICall: DataTypesAPICallRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
|
|
5785
5927
|
}
|
|
5928
|
+
/**
|
|
5929
|
+
* AccountSettingsApi - axios parameter creator
|
|
5930
|
+
* @export
|
|
5931
|
+
*/
|
|
5932
|
+
export declare const AccountSettingsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5933
|
+
/**
|
|
5934
|
+
* Updates the password of the currently logged-in user
|
|
5935
|
+
* @summary Update user password
|
|
5936
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
5937
|
+
* @param {*} [options] Override http request option.
|
|
5938
|
+
* @throws {RequiredError}
|
|
5939
|
+
*/
|
|
5940
|
+
passwordPut: (password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5941
|
+
/**
|
|
5942
|
+
* Retrieves the profile of the currently logged-in user
|
|
5943
|
+
* @summary Retrieve user profile
|
|
5944
|
+
* @param {*} [options] Override http request option.
|
|
5945
|
+
* @throws {RequiredError}
|
|
5946
|
+
*/
|
|
5947
|
+
profileGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5948
|
+
/**
|
|
5949
|
+
* Updates the profile of the currently logged-in user
|
|
5950
|
+
* @summary Update user profile
|
|
5951
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
5952
|
+
* @param {*} [options] Override http request option.
|
|
5953
|
+
* @throws {RequiredError}
|
|
5954
|
+
*/
|
|
5955
|
+
profilePut: (profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5956
|
+
};
|
|
5957
|
+
/**
|
|
5958
|
+
* AccountSettingsApi - functional programming interface
|
|
5959
|
+
* @export
|
|
5960
|
+
*/
|
|
5961
|
+
export declare const AccountSettingsApiFp: (configuration?: Configuration) => {
|
|
5962
|
+
/**
|
|
5963
|
+
* Updates the password of the currently logged-in user
|
|
5964
|
+
* @summary Update user password
|
|
5965
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
5966
|
+
* @param {*} [options] Override http request option.
|
|
5967
|
+
* @throws {RequiredError}
|
|
5968
|
+
*/
|
|
5969
|
+
passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
5970
|
+
[key: string]: any;
|
|
5971
|
+
}>>;
|
|
5972
|
+
/**
|
|
5973
|
+
* Retrieves the profile of the currently logged-in user
|
|
5974
|
+
* @summary Retrieve user profile
|
|
5975
|
+
* @param {*} [options] Override http request option.
|
|
5976
|
+
* @throws {RequiredError}
|
|
5977
|
+
*/
|
|
5978
|
+
profileGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesProfileResponse>>;
|
|
5979
|
+
/**
|
|
5980
|
+
* Updates the profile of the currently logged-in user
|
|
5981
|
+
* @summary Update user profile
|
|
5982
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
5983
|
+
* @param {*} [options] Override http request option.
|
|
5984
|
+
* @throws {RequiredError}
|
|
5985
|
+
*/
|
|
5986
|
+
profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{
|
|
5987
|
+
[key: string]: any;
|
|
5988
|
+
}>>;
|
|
5989
|
+
};
|
|
5990
|
+
/**
|
|
5991
|
+
* AccountSettingsApi - factory interface
|
|
5992
|
+
* @export
|
|
5993
|
+
*/
|
|
5994
|
+
export declare const AccountSettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5995
|
+
/**
|
|
5996
|
+
* Updates the password of the currently logged-in user
|
|
5997
|
+
* @summary Update user password
|
|
5998
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
5999
|
+
* @param {*} [options] Override http request option.
|
|
6000
|
+
* @throws {RequiredError}
|
|
6001
|
+
*/
|
|
6002
|
+
passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
6003
|
+
[key: string]: any;
|
|
6004
|
+
}>;
|
|
6005
|
+
/**
|
|
6006
|
+
* Retrieves the profile of the currently logged-in user
|
|
6007
|
+
* @summary Retrieve user profile
|
|
6008
|
+
* @param {*} [options] Override http request option.
|
|
6009
|
+
* @throws {RequiredError}
|
|
6010
|
+
*/
|
|
6011
|
+
profileGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesProfileResponse>;
|
|
6012
|
+
/**
|
|
6013
|
+
* Updates the profile of the currently logged-in user
|
|
6014
|
+
* @summary Update user profile
|
|
6015
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
6016
|
+
* @param {*} [options] Override http request option.
|
|
6017
|
+
* @throws {RequiredError}
|
|
6018
|
+
*/
|
|
6019
|
+
profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<{
|
|
6020
|
+
[key: string]: any;
|
|
6021
|
+
}>;
|
|
6022
|
+
};
|
|
6023
|
+
/**
|
|
6024
|
+
* AccountSettingsApi - object-oriented interface
|
|
6025
|
+
* @export
|
|
6026
|
+
* @class AccountSettingsApi
|
|
6027
|
+
* @extends {BaseAPI}
|
|
6028
|
+
*/
|
|
6029
|
+
export declare class AccountSettingsApi extends BaseAPI {
|
|
6030
|
+
/**
|
|
6031
|
+
* Updates the password of the currently logged-in user
|
|
6032
|
+
* @summary Update user password
|
|
6033
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
6034
|
+
* @param {*} [options] Override http request option.
|
|
6035
|
+
* @throws {RequiredError}
|
|
6036
|
+
* @memberof AccountSettingsApi
|
|
6037
|
+
*/
|
|
6038
|
+
passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
6039
|
+
[key: string]: any;
|
|
6040
|
+
}, any>>;
|
|
6041
|
+
/**
|
|
6042
|
+
* Retrieves the profile of the currently logged-in user
|
|
6043
|
+
* @summary Retrieve user profile
|
|
6044
|
+
* @param {*} [options] Override http request option.
|
|
6045
|
+
* @throws {RequiredError}
|
|
6046
|
+
* @memberof AccountSettingsApi
|
|
6047
|
+
*/
|
|
6048
|
+
profileGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesProfileResponse, any>>;
|
|
6049
|
+
/**
|
|
6050
|
+
* Updates the profile of the currently logged-in user
|
|
6051
|
+
* @summary Update user profile
|
|
6052
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
6053
|
+
* @param {*} [options] Override http request option.
|
|
6054
|
+
* @throws {RequiredError}
|
|
6055
|
+
* @memberof AccountSettingsApi
|
|
6056
|
+
*/
|
|
6057
|
+
profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
6058
|
+
[key: string]: any;
|
|
6059
|
+
}, any>>;
|
|
6060
|
+
}
|
|
5786
6061
|
/**
|
|
5787
6062
|
* ArticlesApi - axios parameter creator
|
|
5788
6063
|
* @export
|
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.
|
|
26
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.ParentMenusApi = void 0;
|
|
25
|
+
exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = void 0;
|
|
26
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = void 0;
|
|
27
27
|
const axios_1 = require("axios");
|
|
28
28
|
// Some imports not used depending on template conditions
|
|
29
29
|
// @ts-ignore
|
|
@@ -428,6 +428,243 @@ class APICallsApi extends base_1.BaseAPI {
|
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
exports.APICallsApi = APICallsApi;
|
|
431
|
+
/**
|
|
432
|
+
* AccountSettingsApi - axios parameter creator
|
|
433
|
+
* @export
|
|
434
|
+
*/
|
|
435
|
+
const AccountSettingsApiAxiosParamCreator = function (configuration) {
|
|
436
|
+
return {
|
|
437
|
+
/**
|
|
438
|
+
* Updates the password of the currently logged-in user
|
|
439
|
+
* @summary Update user password
|
|
440
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
passwordPut: (password_1, ...args_1) => __awaiter(this, [password_1, ...args_1], void 0, function* (password, options = {}) {
|
|
445
|
+
// verify required parameter 'password' is not null or undefined
|
|
446
|
+
(0, common_1.assertParamExists)('passwordPut', 'password', password);
|
|
447
|
+
const localVarPath = `/password`;
|
|
448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
449
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
450
|
+
let baseOptions;
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
455
|
+
const localVarHeaderParameter = {};
|
|
456
|
+
const localVarQueryParameter = {};
|
|
457
|
+
// authentication BearerAuth required
|
|
458
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
459
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
460
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
461
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
463
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(password, localVarRequestOptions, configuration);
|
|
464
|
+
return {
|
|
465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
466
|
+
options: localVarRequestOptions,
|
|
467
|
+
};
|
|
468
|
+
}),
|
|
469
|
+
/**
|
|
470
|
+
* Retrieves the profile of the currently logged-in user
|
|
471
|
+
* @summary Retrieve user profile
|
|
472
|
+
* @param {*} [options] Override http request option.
|
|
473
|
+
* @throws {RequiredError}
|
|
474
|
+
*/
|
|
475
|
+
profileGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
476
|
+
const localVarPath = `/profile`;
|
|
477
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
479
|
+
let baseOptions;
|
|
480
|
+
if (configuration) {
|
|
481
|
+
baseOptions = configuration.baseOptions;
|
|
482
|
+
}
|
|
483
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
484
|
+
const localVarHeaderParameter = {};
|
|
485
|
+
const localVarQueryParameter = {};
|
|
486
|
+
// authentication BearerAuth required
|
|
487
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
488
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
+
return {
|
|
492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
493
|
+
options: localVarRequestOptions,
|
|
494
|
+
};
|
|
495
|
+
}),
|
|
496
|
+
/**
|
|
497
|
+
* Updates the profile of the currently logged-in user
|
|
498
|
+
* @summary Update user profile
|
|
499
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
*/
|
|
503
|
+
profilePut: (profile_1, ...args_1) => __awaiter(this, [profile_1, ...args_1], void 0, function* (profile, options = {}) {
|
|
504
|
+
// verify required parameter 'profile' is not null or undefined
|
|
505
|
+
(0, common_1.assertParamExists)('profilePut', 'profile', profile);
|
|
506
|
+
const localVarPath = `/profile`;
|
|
507
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
508
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
509
|
+
let baseOptions;
|
|
510
|
+
if (configuration) {
|
|
511
|
+
baseOptions = configuration.baseOptions;
|
|
512
|
+
}
|
|
513
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
514
|
+
const localVarHeaderParameter = {};
|
|
515
|
+
const localVarQueryParameter = {};
|
|
516
|
+
// authentication BearerAuth required
|
|
517
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
518
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
519
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
520
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
521
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
522
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(profile, localVarRequestOptions, configuration);
|
|
523
|
+
return {
|
|
524
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
525
|
+
options: localVarRequestOptions,
|
|
526
|
+
};
|
|
527
|
+
}),
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
exports.AccountSettingsApiAxiosParamCreator = AccountSettingsApiAxiosParamCreator;
|
|
531
|
+
/**
|
|
532
|
+
* AccountSettingsApi - functional programming interface
|
|
533
|
+
* @export
|
|
534
|
+
*/
|
|
535
|
+
const AccountSettingsApiFp = function (configuration) {
|
|
536
|
+
const localVarAxiosParamCreator = (0, exports.AccountSettingsApiAxiosParamCreator)(configuration);
|
|
537
|
+
return {
|
|
538
|
+
/**
|
|
539
|
+
* Updates the password of the currently logged-in user
|
|
540
|
+
* @summary Update user password
|
|
541
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
passwordPut(password, options) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
var _a, _b, _c;
|
|
548
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.passwordPut(password, options);
|
|
549
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
550
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountSettingsApi.passwordPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
551
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
552
|
+
});
|
|
553
|
+
},
|
|
554
|
+
/**
|
|
555
|
+
* Retrieves the profile of the currently logged-in user
|
|
556
|
+
* @summary Retrieve user profile
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
profileGet(options) {
|
|
561
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
562
|
+
var _a, _b, _c;
|
|
563
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.profileGet(options);
|
|
564
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
565
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountSettingsApi.profileGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
566
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
567
|
+
});
|
|
568
|
+
},
|
|
569
|
+
/**
|
|
570
|
+
* Updates the profile of the currently logged-in user
|
|
571
|
+
* @summary Update user profile
|
|
572
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
profilePut(profile, options) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
var _a, _b, _c;
|
|
579
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.profilePut(profile, options);
|
|
580
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
581
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountSettingsApi.profilePut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
582
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
583
|
+
});
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
exports.AccountSettingsApiFp = AccountSettingsApiFp;
|
|
588
|
+
/**
|
|
589
|
+
* AccountSettingsApi - factory interface
|
|
590
|
+
* @export
|
|
591
|
+
*/
|
|
592
|
+
const AccountSettingsApiFactory = function (configuration, basePath, axios) {
|
|
593
|
+
const localVarFp = (0, exports.AccountSettingsApiFp)(configuration);
|
|
594
|
+
return {
|
|
595
|
+
/**
|
|
596
|
+
* Updates the password of the currently logged-in user
|
|
597
|
+
* @summary Update user password
|
|
598
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
passwordPut(password, options) {
|
|
603
|
+
return localVarFp.passwordPut(password, options).then((request) => request(axios, basePath));
|
|
604
|
+
},
|
|
605
|
+
/**
|
|
606
|
+
* Retrieves the profile of the currently logged-in user
|
|
607
|
+
* @summary Retrieve user profile
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
profileGet(options) {
|
|
612
|
+
return localVarFp.profileGet(options).then((request) => request(axios, basePath));
|
|
613
|
+
},
|
|
614
|
+
/**
|
|
615
|
+
* Updates the profile of the currently logged-in user
|
|
616
|
+
* @summary Update user profile
|
|
617
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
profilePut(profile, options) {
|
|
622
|
+
return localVarFp.profilePut(profile, options).then((request) => request(axios, basePath));
|
|
623
|
+
},
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
exports.AccountSettingsApiFactory = AccountSettingsApiFactory;
|
|
627
|
+
/**
|
|
628
|
+
* AccountSettingsApi - object-oriented interface
|
|
629
|
+
* @export
|
|
630
|
+
* @class AccountSettingsApi
|
|
631
|
+
* @extends {BaseAPI}
|
|
632
|
+
*/
|
|
633
|
+
class AccountSettingsApi extends base_1.BaseAPI {
|
|
634
|
+
/**
|
|
635
|
+
* Updates the password of the currently logged-in user
|
|
636
|
+
* @summary Update user password
|
|
637
|
+
* @param {DataTypesUpdatePasswordRequest} password Password update request
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
* @memberof AccountSettingsApi
|
|
641
|
+
*/
|
|
642
|
+
passwordPut(password, options) {
|
|
643
|
+
return (0, exports.AccountSettingsApiFp)(this.configuration).passwordPut(password, options).then((request) => request(this.axios, this.basePath));
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Retrieves the profile of the currently logged-in user
|
|
647
|
+
* @summary Retrieve user profile
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof AccountSettingsApi
|
|
651
|
+
*/
|
|
652
|
+
profileGet(options) {
|
|
653
|
+
return (0, exports.AccountSettingsApiFp)(this.configuration).profileGet(options).then((request) => request(this.axios, this.basePath));
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Updates the profile of the currently logged-in user
|
|
657
|
+
* @summary Update user profile
|
|
658
|
+
* @param {DataTypesUpdateProfileRequest} profile Profile update request
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
* @memberof AccountSettingsApi
|
|
662
|
+
*/
|
|
663
|
+
profilePut(profile, options) {
|
|
664
|
+
return (0, exports.AccountSettingsApiFp)(this.configuration).profilePut(profile, options).then((request) => request(this.axios, this.basePath));
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
exports.AccountSettingsApi = AccountSettingsApi;
|
|
431
668
|
/**
|
|
432
669
|
* ArticlesApi - axios parameter creator
|
|
433
670
|
* @export
|