@seekora-ai/admin-api 1.0.21 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.0.21
1
+ ## @seekora-ai/admin-api@1.0.22
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @seekora-ai/admin-api@1.0.21 --save
39
+ npm install @seekora-ai/admin-api@1.0.22 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -56,6 +56,9 @@ Class | Method | HTTP request | Description
56
56
  *APICallsApi* | [**adminAPICallsCallIDPut**](docs/APICallsApi.md#adminapicallscallidput) | **PUT** /admin/APICalls/{callID} | UpdateAPICall an existing apicall details
57
57
  *APICallsApi* | [**adminAPICallsGet**](docs/APICallsApi.md#adminapicallsget) | **GET** /admin/APICalls | Fetches list of APICalls
58
58
  *APICallsApi* | [**adminAPICallsPost**](docs/APICallsApi.md#adminapicallspost) | **POST** /admin/APICalls | Creates a new apicall
59
+ *AccountSettingsApi* | [**passwordPut**](docs/AccountSettingsApi.md#passwordput) | **PUT** /password | Update user password
60
+ *AccountSettingsApi* | [**profileGet**](docs/AccountSettingsApi.md#profileget) | **GET** /profile | Retrieve user profile
61
+ *AccountSettingsApi* | [**profilePut**](docs/AccountSettingsApi.md#profileput) | **PUT** /profile | Update user profile
59
62
  *ArticlesApi* | [**adminArticlesArticleIDDelete**](docs/ArticlesApi.md#adminarticlesarticleiddelete) | **DELETE** /admin/Articles/{articleID} | Delete an existing Article
60
63
  *ArticlesApi* | [**adminArticlesArticleIDGet**](docs/ArticlesApi.md#adminarticlesarticleidget) | **GET** /admin/Articles/{articleID} | Fetches article by id
61
64
  *ArticlesApi* | [**adminArticlesArticleIDPut**](docs/ArticlesApi.md#adminarticlesarticleidput) | **PUT** /admin/Articles/{articleID} | Update an existing Article
@@ -269,6 +272,7 @@ Class | Method | HTTP request | Description
269
272
  - [DataTypesPlan](docs/DataTypesPlan.md)
270
273
  - [DataTypesPlanResponse](docs/DataTypesPlanResponse.md)
271
274
  - [DataTypesPlansListResponse](docs/DataTypesPlansListResponse.md)
275
+ - [DataTypesProfileResponse](docs/DataTypesProfileResponse.md)
272
276
  - [DataTypesPublicSearchRequest](docs/DataTypesPublicSearchRequest.md)
273
277
  - [DataTypesResponse](docs/DataTypesResponse.md)
274
278
  - [DataTypesRole](docs/DataTypesRole.md)
@@ -308,6 +312,8 @@ Class | Method | HTTP request | Description
308
312
  - [DataTypesTriggerTaskRunResponse](docs/DataTypesTriggerTaskRunResponse.md)
309
313
  - [DataTypesUpdateIndexSchemaRequest](docs/DataTypesUpdateIndexSchemaRequest.md)
310
314
  - [DataTypesUpdateIndexSchemaRequestFieldsInner](docs/DataTypesUpdateIndexSchemaRequestFieldsInner.md)
315
+ - [DataTypesUpdatePasswordRequest](docs/DataTypesUpdatePasswordRequest.md)
316
+ - [DataTypesUpdateProfileRequest](docs/DataTypesUpdateProfileRequest.md)
311
317
  - [DataTypesUpdateSchemaResponse](docs/DataTypesUpdateSchemaResponse.md)
312
318
  - [DataTypesUpdateSourceConfigResponseWrapper](docs/DataTypesUpdateSourceConfigResponseWrapper.md)
313
319
  - [DataTypesUploadSourceDataResponseWrapper](docs/DataTypesUploadSourceDataResponseWrapper.md)
@@ -319,6 +325,7 @@ Class | Method | HTTP request | Description
319
325
  - [DataTypesValidationErrorResult](docs/DataTypesValidationErrorResult.md)
320
326
  - [DataTypesVerifyOTPResponse](docs/DataTypesVerifyOTPResponse.md)
321
327
  - [DataTypesVerifyOTPResponseWrapper](docs/DataTypesVerifyOTPResponseWrapper.md)
328
+ - [FiberError](docs/FiberError.md)
322
329
  - [MgDocumentTypesArticle](docs/MgDocumentTypesArticle.md)
323
330
  - [MgDocumentTypesCreateArticleRequestDto](docs/MgDocumentTypesCreateArticleRequestDto.md)
324
331
  - [MultipartFileHeader](docs/MultipartFileHeader.md)
package/api.ts CHANGED
@@ -3349,6 +3349,61 @@ export interface DataTypesPlansListResponse {
3349
3349
  */
3350
3350
  'status'?: number;
3351
3351
  }
3352
+ /**
3353
+ *
3354
+ * @export
3355
+ * @interface DataTypesProfileResponse
3356
+ */
3357
+ export interface DataTypesProfileResponse {
3358
+ /**
3359
+ *
3360
+ * @type {string}
3361
+ * @memberof DataTypesProfileResponse
3362
+ */
3363
+ 'firstname'?: string;
3364
+ /**
3365
+ *
3366
+ * @type {string}
3367
+ * @memberof DataTypesProfileResponse
3368
+ */
3369
+ 'lastname'?: string;
3370
+ /**
3371
+ *
3372
+ * @type {string}
3373
+ * @memberof DataTypesProfileResponse
3374
+ */
3375
+ 'profileimagepath'?: string;
3376
+ /**
3377
+ *
3378
+ * @type {string}
3379
+ * @memberof DataTypesProfileResponse
3380
+ */
3381
+ 'usercode'?: string;
3382
+ /**
3383
+ *
3384
+ * @type {string}
3385
+ * @memberof DataTypesProfileResponse
3386
+ */
3387
+ 'useremailid'?: string;
3388
+ /**
3389
+ *
3390
+ * @type {number}
3391
+ * @memberof DataTypesProfileResponse
3392
+ */
3393
+ 'userid'?: number;
3394
+ /**
3395
+ *
3396
+ * @type {string}
3397
+ * @memberof DataTypesProfileResponse
3398
+ */
3399
+ 'username'?: string;
3400
+ /**
3401
+ *
3402
+ * @type {string}
3403
+ * @memberof DataTypesProfileResponse
3404
+ */
3405
+ 'userphone'?: string;
3406
+ }
3352
3407
  /**
3353
3408
  *
3354
3409
  * @export
@@ -5008,6 +5063,68 @@ export interface DataTypesUpdateIndexSchemaRequestFieldsInner {
5008
5063
  */
5009
5064
  'sort'?: boolean;
5010
5065
  }
5066
+ /**
5067
+ *
5068
+ * @export
5069
+ * @interface DataTypesUpdatePasswordRequest
5070
+ */
5071
+ export interface DataTypesUpdatePasswordRequest {
5072
+ /**
5073
+ *
5074
+ * @type {string}
5075
+ * @memberof DataTypesUpdatePasswordRequest
5076
+ */
5077
+ 'currentpassword': string;
5078
+ /**
5079
+ *
5080
+ * @type {string}
5081
+ * @memberof DataTypesUpdatePasswordRequest
5082
+ */
5083
+ 'newpassword': string;
5084
+ }
5085
+ /**
5086
+ *
5087
+ * @export
5088
+ * @interface DataTypesUpdateProfileRequest
5089
+ */
5090
+ export interface DataTypesUpdateProfileRequest {
5091
+ /**
5092
+ *
5093
+ * @type {string}
5094
+ * @memberof DataTypesUpdateProfileRequest
5095
+ */
5096
+ 'firstname': string;
5097
+ /**
5098
+ *
5099
+ * @type {string}
5100
+ * @memberof DataTypesUpdateProfileRequest
5101
+ */
5102
+ 'lastname': string;
5103
+ /**
5104
+ *
5105
+ * @type {string}
5106
+ * @memberof DataTypesUpdateProfileRequest
5107
+ */
5108
+ 'profileimagepath'?: string;
5109
+ /**
5110
+ *
5111
+ * @type {string}
5112
+ * @memberof DataTypesUpdateProfileRequest
5113
+ */
5114
+ 'useremailid': string;
5115
+ /**
5116
+ *
5117
+ * @type {string}
5118
+ * @memberof DataTypesUpdateProfileRequest
5119
+ */
5120
+ 'username': string;
5121
+ /**
5122
+ *
5123
+ * @type {string}
5124
+ * @memberof DataTypesUpdateProfileRequest
5125
+ */
5126
+ 'userphone': string;
5127
+ }
5011
5128
  /**
5012
5129
  *
5013
5130
  * @export
@@ -5439,6 +5556,25 @@ export interface DataTypesVerifyOTPResponseWrapper {
5439
5556
  */
5440
5557
  'status'?: number;
5441
5558
  }
5559
+ /**
5560
+ *
5561
+ * @export
5562
+ * @interface FiberError
5563
+ */
5564
+ export interface FiberError {
5565
+ /**
5566
+ *
5567
+ * @type {number}
5568
+ * @memberof FiberError
5569
+ */
5570
+ 'code'?: number;
5571
+ /**
5572
+ *
5573
+ * @type {string}
5574
+ * @memberof FiberError
5575
+ */
5576
+ 'message'?: string;
5577
+ }
5442
5578
  /**
5443
5579
  *
5444
5580
  * @export
@@ -5997,6 +6133,258 @@ export class APICallsApi extends BaseAPI {
5997
6133
 
5998
6134
 
5999
6135
 
6136
+ /**
6137
+ * AccountSettingsApi - axios parameter creator
6138
+ * @export
6139
+ */
6140
+ export const AccountSettingsApiAxiosParamCreator = function (configuration?: Configuration) {
6141
+ return {
6142
+ /**
6143
+ * Updates the password of the currently logged-in user
6144
+ * @summary Update user password
6145
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6146
+ * @param {*} [options] Override http request option.
6147
+ * @throws {RequiredError}
6148
+ */
6149
+ passwordPut: async (password: DataTypesUpdatePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6150
+ // verify required parameter 'password' is not null or undefined
6151
+ assertParamExists('passwordPut', 'password', password)
6152
+ const localVarPath = `/password`;
6153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6155
+ let baseOptions;
6156
+ if (configuration) {
6157
+ baseOptions = configuration.baseOptions;
6158
+ }
6159
+
6160
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6161
+ const localVarHeaderParameter = {} as any;
6162
+ const localVarQueryParameter = {} as any;
6163
+
6164
+ // authentication BearerAuth required
6165
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6166
+
6167
+
6168
+
6169
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6170
+
6171
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6173
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6174
+ localVarRequestOptions.data = serializeDataIfNeeded(password, localVarRequestOptions, configuration)
6175
+
6176
+ return {
6177
+ url: toPathString(localVarUrlObj),
6178
+ options: localVarRequestOptions,
6179
+ };
6180
+ },
6181
+ /**
6182
+ * Retrieves the profile of the currently logged-in user
6183
+ * @summary Retrieve user profile
6184
+ * @param {*} [options] Override http request option.
6185
+ * @throws {RequiredError}
6186
+ */
6187
+ profileGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6188
+ const localVarPath = `/profile`;
6189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6191
+ let baseOptions;
6192
+ if (configuration) {
6193
+ baseOptions = configuration.baseOptions;
6194
+ }
6195
+
6196
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6197
+ const localVarHeaderParameter = {} as any;
6198
+ const localVarQueryParameter = {} as any;
6199
+
6200
+ // authentication BearerAuth required
6201
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6202
+
6203
+
6204
+
6205
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6207
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6208
+
6209
+ return {
6210
+ url: toPathString(localVarUrlObj),
6211
+ options: localVarRequestOptions,
6212
+ };
6213
+ },
6214
+ /**
6215
+ * Updates the profile of the currently logged-in user
6216
+ * @summary Update user profile
6217
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6218
+ * @param {*} [options] Override http request option.
6219
+ * @throws {RequiredError}
6220
+ */
6221
+ profilePut: async (profile: DataTypesUpdateProfileRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6222
+ // verify required parameter 'profile' is not null or undefined
6223
+ assertParamExists('profilePut', 'profile', profile)
6224
+ const localVarPath = `/profile`;
6225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6227
+ let baseOptions;
6228
+ if (configuration) {
6229
+ baseOptions = configuration.baseOptions;
6230
+ }
6231
+
6232
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6233
+ const localVarHeaderParameter = {} as any;
6234
+ const localVarQueryParameter = {} as any;
6235
+
6236
+ // authentication BearerAuth required
6237
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6238
+
6239
+
6240
+
6241
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6242
+
6243
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6244
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6245
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6246
+ localVarRequestOptions.data = serializeDataIfNeeded(profile, localVarRequestOptions, configuration)
6247
+
6248
+ return {
6249
+ url: toPathString(localVarUrlObj),
6250
+ options: localVarRequestOptions,
6251
+ };
6252
+ },
6253
+ }
6254
+ };
6255
+
6256
+ /**
6257
+ * AccountSettingsApi - functional programming interface
6258
+ * @export
6259
+ */
6260
+ export const AccountSettingsApiFp = function(configuration?: Configuration) {
6261
+ const localVarAxiosParamCreator = AccountSettingsApiAxiosParamCreator(configuration)
6262
+ return {
6263
+ /**
6264
+ * Updates the password of the currently logged-in user
6265
+ * @summary Update user password
6266
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6267
+ * @param {*} [options] Override http request option.
6268
+ * @throws {RequiredError}
6269
+ */
6270
+ async passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
6271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passwordPut(password, options);
6272
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6273
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.passwordPut']?.[localVarOperationServerIndex]?.url;
6274
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6275
+ },
6276
+ /**
6277
+ * Retrieves the profile of the currently logged-in user
6278
+ * @summary Retrieve user profile
6279
+ * @param {*} [options] Override http request option.
6280
+ * @throws {RequiredError}
6281
+ */
6282
+ async profileGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesProfileResponse>> {
6283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.profileGet(options);
6284
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6285
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.profileGet']?.[localVarOperationServerIndex]?.url;
6286
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6287
+ },
6288
+ /**
6289
+ * Updates the profile of the currently logged-in user
6290
+ * @summary Update user profile
6291
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6292
+ * @param {*} [options] Override http request option.
6293
+ * @throws {RequiredError}
6294
+ */
6295
+ async profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
6296
+ const localVarAxiosArgs = await localVarAxiosParamCreator.profilePut(profile, options);
6297
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6298
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.profilePut']?.[localVarOperationServerIndex]?.url;
6299
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6300
+ },
6301
+ }
6302
+ };
6303
+
6304
+ /**
6305
+ * AccountSettingsApi - factory interface
6306
+ * @export
6307
+ */
6308
+ export const AccountSettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6309
+ const localVarFp = AccountSettingsApiFp(configuration)
6310
+ return {
6311
+ /**
6312
+ * Updates the password of the currently logged-in user
6313
+ * @summary Update user password
6314
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6315
+ * @param {*} [options] Override http request option.
6316
+ * @throws {RequiredError}
6317
+ */
6318
+ passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
6319
+ return localVarFp.passwordPut(password, options).then((request) => request(axios, basePath));
6320
+ },
6321
+ /**
6322
+ * Retrieves the profile of the currently logged-in user
6323
+ * @summary Retrieve user profile
6324
+ * @param {*} [options] Override http request option.
6325
+ * @throws {RequiredError}
6326
+ */
6327
+ profileGet(options?: RawAxiosRequestConfig): AxiosPromise<DataTypesProfileResponse> {
6328
+ return localVarFp.profileGet(options).then((request) => request(axios, basePath));
6329
+ },
6330
+ /**
6331
+ * Updates the profile of the currently logged-in user
6332
+ * @summary Update user profile
6333
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6334
+ * @param {*} [options] Override http request option.
6335
+ * @throws {RequiredError}
6336
+ */
6337
+ profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
6338
+ return localVarFp.profilePut(profile, options).then((request) => request(axios, basePath));
6339
+ },
6340
+ };
6341
+ };
6342
+
6343
+ /**
6344
+ * AccountSettingsApi - object-oriented interface
6345
+ * @export
6346
+ * @class AccountSettingsApi
6347
+ * @extends {BaseAPI}
6348
+ */
6349
+ export class AccountSettingsApi extends BaseAPI {
6350
+ /**
6351
+ * Updates the password of the currently logged-in user
6352
+ * @summary Update user password
6353
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6354
+ * @param {*} [options] Override http request option.
6355
+ * @throws {RequiredError}
6356
+ * @memberof AccountSettingsApi
6357
+ */
6358
+ public passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig) {
6359
+ return AccountSettingsApiFp(this.configuration).passwordPut(password, options).then((request) => request(this.axios, this.basePath));
6360
+ }
6361
+
6362
+ /**
6363
+ * Retrieves the profile of the currently logged-in user
6364
+ * @summary Retrieve user profile
6365
+ * @param {*} [options] Override http request option.
6366
+ * @throws {RequiredError}
6367
+ * @memberof AccountSettingsApi
6368
+ */
6369
+ public profileGet(options?: RawAxiosRequestConfig) {
6370
+ return AccountSettingsApiFp(this.configuration).profileGet(options).then((request) => request(this.axios, this.basePath));
6371
+ }
6372
+
6373
+ /**
6374
+ * Updates the profile of the currently logged-in user
6375
+ * @summary Update user profile
6376
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6377
+ * @param {*} [options] Override http request option.
6378
+ * @throws {RequiredError}
6379
+ * @memberof AccountSettingsApi
6380
+ */
6381
+ public profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig) {
6382
+ return AccountSettingsApiFp(this.configuration).profilePut(profile, options).then((request) => request(this.axios, this.basePath));
6383
+ }
6384
+ }
6385
+
6386
+
6387
+
6000
6388
  /**
6001
6389
  * ArticlesApi - axios parameter creator
6002
6390
  * @export