@seekora-ai/admin-api 1.0.21 → 1.0.23

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.d.ts CHANGED
@@ -3352,6 +3352,61 @@ export interface DataTypesPlansListResponse {
3352
3352
  */
3353
3353
  'status'?: number;
3354
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
+ }
3355
3410
  /**
3356
3411
  *
3357
3412
  * @export
@@ -5011,6 +5066,68 @@ export interface DataTypesUpdateIndexSchemaRequestFieldsInner {
5011
5066
  */
5012
5067
  'sort'?: boolean;
5013
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
+ }
5014
5131
  /**
5015
5132
  *
5016
5133
  * @export
@@ -5561,6 +5678,31 @@ export interface MultipartFileHeader {
5561
5678
  */
5562
5679
  'size'?: number;
5563
5680
  }
5681
+ /**
5682
+ *
5683
+ * @export
5684
+ * @interface ProfileGet200Response
5685
+ */
5686
+ export interface ProfileGet200Response {
5687
+ /**
5688
+ *
5689
+ * @type {DataTypesProfileResponse}
5690
+ * @memberof ProfileGet200Response
5691
+ */
5692
+ 'data'?: DataTypesProfileResponse;
5693
+ /**
5694
+ *
5695
+ * @type {string}
5696
+ * @memberof ProfileGet200Response
5697
+ */
5698
+ 'message'?: string;
5699
+ /**
5700
+ *
5701
+ * @type {number}
5702
+ * @memberof ProfileGet200Response
5703
+ */
5704
+ 'status'?: number;
5705
+ }
5564
5706
  /**
5565
5707
  *
5566
5708
  * @export
@@ -5789,6 +5931,127 @@ export declare class APICallsApi extends BaseAPI {
5789
5931
  */
5790
5932
  adminAPICallsPost(aPICall: DataTypesAPICallRequestDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
5791
5933
  }
5934
+ /**
5935
+ * AccountSettingsApi - axios parameter creator
5936
+ * @export
5937
+ */
5938
+ export declare const AccountSettingsApiAxiosParamCreator: (configuration?: Configuration) => {
5939
+ /**
5940
+ * Updates the password of the currently logged-in user
5941
+ * @summary Update user password
5942
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
5943
+ * @param {*} [options] Override http request option.
5944
+ * @throws {RequiredError}
5945
+ */
5946
+ passwordPut: (password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5947
+ /**
5948
+ * Retrieves the profile of the currently logged-in user
5949
+ * @summary Retrieve user profile
5950
+ * @param {*} [options] Override http request option.
5951
+ * @throws {RequiredError}
5952
+ */
5953
+ profileGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5954
+ /**
5955
+ * Updates the profile of the currently logged-in user
5956
+ * @summary Update user profile
5957
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
5958
+ * @param {*} [options] Override http request option.
5959
+ * @throws {RequiredError}
5960
+ */
5961
+ profilePut: (profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
5962
+ };
5963
+ /**
5964
+ * AccountSettingsApi - functional programming interface
5965
+ * @export
5966
+ */
5967
+ export declare const AccountSettingsApiFp: (configuration?: Configuration) => {
5968
+ /**
5969
+ * Updates the password of the currently logged-in user
5970
+ * @summary Update user password
5971
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
5972
+ * @param {*} [options] Override http request option.
5973
+ * @throws {RequiredError}
5974
+ */
5975
+ passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
5976
+ /**
5977
+ * Retrieves the profile of the currently logged-in user
5978
+ * @summary Retrieve user profile
5979
+ * @param {*} [options] Override http request option.
5980
+ * @throws {RequiredError}
5981
+ */
5982
+ profileGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileGet200Response>>;
5983
+ /**
5984
+ * Updates the profile of the currently logged-in user
5985
+ * @summary Update user profile
5986
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
5987
+ * @param {*} [options] Override http request option.
5988
+ * @throws {RequiredError}
5989
+ */
5990
+ profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileGet200Response>>;
5991
+ };
5992
+ /**
5993
+ * AccountSettingsApi - factory interface
5994
+ * @export
5995
+ */
5996
+ export declare const AccountSettingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
5997
+ /**
5998
+ * Updates the password of the currently logged-in user
5999
+ * @summary Update user password
6000
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6001
+ * @param {*} [options] Override http request option.
6002
+ * @throws {RequiredError}
6003
+ */
6004
+ passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
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<ProfileGet200Response>;
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<ProfileGet200Response>;
6020
+ };
6021
+ /**
6022
+ * AccountSettingsApi - object-oriented interface
6023
+ * @export
6024
+ * @class AccountSettingsApi
6025
+ * @extends {BaseAPI}
6026
+ */
6027
+ export declare class AccountSettingsApi extends BaseAPI {
6028
+ /**
6029
+ * Updates the password of the currently logged-in user
6030
+ * @summary Update user password
6031
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6032
+ * @param {*} [options] Override http request option.
6033
+ * @throws {RequiredError}
6034
+ * @memberof AccountSettingsApi
6035
+ */
6036
+ passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any>>;
6037
+ /**
6038
+ * Retrieves the profile of the currently logged-in user
6039
+ * @summary Retrieve user profile
6040
+ * @param {*} [options] Override http request option.
6041
+ * @throws {RequiredError}
6042
+ * @memberof AccountSettingsApi
6043
+ */
6044
+ profileGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProfileGet200Response, any>>;
6045
+ /**
6046
+ * Updates the profile of the currently logged-in user
6047
+ * @summary Update user profile
6048
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6049
+ * @param {*} [options] Override http request option.
6050
+ * @throws {RequiredError}
6051
+ * @memberof AccountSettingsApi
6052
+ */
6053
+ profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProfileGet200Response, any>>;
6054
+ }
5792
6055
  /**
5793
6056
  * ArticlesApi - axios parameter creator
5794
6057
  * @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.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = 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.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 = 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