@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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.0.21
1
+ ## @seekora-ai/admin-api@1.0.23
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.23 --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)
@@ -322,6 +328,7 @@ Class | Method | HTTP request | Description
322
328
  - [MgDocumentTypesArticle](docs/MgDocumentTypesArticle.md)
323
329
  - [MgDocumentTypesCreateArticleRequestDto](docs/MgDocumentTypesCreateArticleRequestDto.md)
324
330
  - [MultipartFileHeader](docs/MultipartFileHeader.md)
331
+ - [ProfileGet200Response](docs/ProfileGet200Response.md)
325
332
  - [V1ConnectorsSourcesSourceidUploaddataPostRequest](docs/V1ConnectorsSourcesSourceidUploaddataPostRequest.md)
326
333
 
327
334
 
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
@@ -5556,6 +5673,31 @@ export interface MultipartFileHeader {
5556
5673
  */
5557
5674
  'size'?: number;
5558
5675
  }
5676
+ /**
5677
+ *
5678
+ * @export
5679
+ * @interface ProfileGet200Response
5680
+ */
5681
+ export interface ProfileGet200Response {
5682
+ /**
5683
+ *
5684
+ * @type {DataTypesProfileResponse}
5685
+ * @memberof ProfileGet200Response
5686
+ */
5687
+ 'data'?: DataTypesProfileResponse;
5688
+ /**
5689
+ *
5690
+ * @type {string}
5691
+ * @memberof ProfileGet200Response
5692
+ */
5693
+ 'message'?: string;
5694
+ /**
5695
+ *
5696
+ * @type {number}
5697
+ * @memberof ProfileGet200Response
5698
+ */
5699
+ 'status'?: number;
5700
+ }
5559
5701
  /**
5560
5702
  *
5561
5703
  * @export
@@ -5997,6 +6139,258 @@ export class APICallsApi extends BaseAPI {
5997
6139
 
5998
6140
 
5999
6141
 
6142
+ /**
6143
+ * AccountSettingsApi - axios parameter creator
6144
+ * @export
6145
+ */
6146
+ export const AccountSettingsApiAxiosParamCreator = function (configuration?: Configuration) {
6147
+ return {
6148
+ /**
6149
+ * Updates the password of the currently logged-in user
6150
+ * @summary Update user password
6151
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6152
+ * @param {*} [options] Override http request option.
6153
+ * @throws {RequiredError}
6154
+ */
6155
+ passwordPut: async (password: DataTypesUpdatePasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6156
+ // verify required parameter 'password' is not null or undefined
6157
+ assertParamExists('passwordPut', 'password', password)
6158
+ const localVarPath = `/password`;
6159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6161
+ let baseOptions;
6162
+ if (configuration) {
6163
+ baseOptions = configuration.baseOptions;
6164
+ }
6165
+
6166
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6167
+ const localVarHeaderParameter = {} as any;
6168
+ const localVarQueryParameter = {} as any;
6169
+
6170
+ // authentication BearerAuth required
6171
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6172
+
6173
+
6174
+
6175
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6176
+
6177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6179
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6180
+ localVarRequestOptions.data = serializeDataIfNeeded(password, localVarRequestOptions, configuration)
6181
+
6182
+ return {
6183
+ url: toPathString(localVarUrlObj),
6184
+ options: localVarRequestOptions,
6185
+ };
6186
+ },
6187
+ /**
6188
+ * Retrieves the profile of the currently logged-in user
6189
+ * @summary Retrieve user profile
6190
+ * @param {*} [options] Override http request option.
6191
+ * @throws {RequiredError}
6192
+ */
6193
+ profileGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6194
+ const localVarPath = `/profile`;
6195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6196
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6197
+ let baseOptions;
6198
+ if (configuration) {
6199
+ baseOptions = configuration.baseOptions;
6200
+ }
6201
+
6202
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6203
+ const localVarHeaderParameter = {} as any;
6204
+ const localVarQueryParameter = {} as any;
6205
+
6206
+ // authentication BearerAuth required
6207
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6208
+
6209
+
6210
+
6211
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6213
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6214
+
6215
+ return {
6216
+ url: toPathString(localVarUrlObj),
6217
+ options: localVarRequestOptions,
6218
+ };
6219
+ },
6220
+ /**
6221
+ * Updates the profile of the currently logged-in user
6222
+ * @summary Update user profile
6223
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6224
+ * @param {*} [options] Override http request option.
6225
+ * @throws {RequiredError}
6226
+ */
6227
+ profilePut: async (profile: DataTypesUpdateProfileRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6228
+ // verify required parameter 'profile' is not null or undefined
6229
+ assertParamExists('profilePut', 'profile', profile)
6230
+ const localVarPath = `/profile`;
6231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6232
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6233
+ let baseOptions;
6234
+ if (configuration) {
6235
+ baseOptions = configuration.baseOptions;
6236
+ }
6237
+
6238
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6239
+ const localVarHeaderParameter = {} as any;
6240
+ const localVarQueryParameter = {} as any;
6241
+
6242
+ // authentication BearerAuth required
6243
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6244
+
6245
+
6246
+
6247
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6248
+
6249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6251
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6252
+ localVarRequestOptions.data = serializeDataIfNeeded(profile, localVarRequestOptions, configuration)
6253
+
6254
+ return {
6255
+ url: toPathString(localVarUrlObj),
6256
+ options: localVarRequestOptions,
6257
+ };
6258
+ },
6259
+ }
6260
+ };
6261
+
6262
+ /**
6263
+ * AccountSettingsApi - functional programming interface
6264
+ * @export
6265
+ */
6266
+ export const AccountSettingsApiFp = function(configuration?: Configuration) {
6267
+ const localVarAxiosParamCreator = AccountSettingsApiAxiosParamCreator(configuration)
6268
+ return {
6269
+ /**
6270
+ * Updates the password of the currently logged-in user
6271
+ * @summary Update user password
6272
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6273
+ * @param {*} [options] Override http request option.
6274
+ * @throws {RequiredError}
6275
+ */
6276
+ async passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
6277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.passwordPut(password, options);
6278
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6279
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.passwordPut']?.[localVarOperationServerIndex]?.url;
6280
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6281
+ },
6282
+ /**
6283
+ * Retrieves the profile of the currently logged-in user
6284
+ * @summary Retrieve user profile
6285
+ * @param {*} [options] Override http request option.
6286
+ * @throws {RequiredError}
6287
+ */
6288
+ async profileGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileGet200Response>> {
6289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.profileGet(options);
6290
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6291
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.profileGet']?.[localVarOperationServerIndex]?.url;
6292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6293
+ },
6294
+ /**
6295
+ * Updates the profile of the currently logged-in user
6296
+ * @summary Update user profile
6297
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6298
+ * @param {*} [options] Override http request option.
6299
+ * @throws {RequiredError}
6300
+ */
6301
+ async profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProfileGet200Response>> {
6302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.profilePut(profile, options);
6303
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6304
+ const localVarOperationServerBasePath = operationServerMap['AccountSettingsApi.profilePut']?.[localVarOperationServerIndex]?.url;
6305
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6306
+ },
6307
+ }
6308
+ };
6309
+
6310
+ /**
6311
+ * AccountSettingsApi - factory interface
6312
+ * @export
6313
+ */
6314
+ export const AccountSettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6315
+ const localVarFp = AccountSettingsApiFp(configuration)
6316
+ return {
6317
+ /**
6318
+ * Updates the password of the currently logged-in user
6319
+ * @summary Update user password
6320
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6321
+ * @param {*} [options] Override http request option.
6322
+ * @throws {RequiredError}
6323
+ */
6324
+ passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
6325
+ return localVarFp.passwordPut(password, options).then((request) => request(axios, basePath));
6326
+ },
6327
+ /**
6328
+ * Retrieves the profile of the currently logged-in user
6329
+ * @summary Retrieve user profile
6330
+ * @param {*} [options] Override http request option.
6331
+ * @throws {RequiredError}
6332
+ */
6333
+ profileGet(options?: RawAxiosRequestConfig): AxiosPromise<ProfileGet200Response> {
6334
+ return localVarFp.profileGet(options).then((request) => request(axios, basePath));
6335
+ },
6336
+ /**
6337
+ * Updates the profile of the currently logged-in user
6338
+ * @summary Update user profile
6339
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6340
+ * @param {*} [options] Override http request option.
6341
+ * @throws {RequiredError}
6342
+ */
6343
+ profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProfileGet200Response> {
6344
+ return localVarFp.profilePut(profile, options).then((request) => request(axios, basePath));
6345
+ },
6346
+ };
6347
+ };
6348
+
6349
+ /**
6350
+ * AccountSettingsApi - object-oriented interface
6351
+ * @export
6352
+ * @class AccountSettingsApi
6353
+ * @extends {BaseAPI}
6354
+ */
6355
+ export class AccountSettingsApi extends BaseAPI {
6356
+ /**
6357
+ * Updates the password of the currently logged-in user
6358
+ * @summary Update user password
6359
+ * @param {DataTypesUpdatePasswordRequest} password Password update request
6360
+ * @param {*} [options] Override http request option.
6361
+ * @throws {RequiredError}
6362
+ * @memberof AccountSettingsApi
6363
+ */
6364
+ public passwordPut(password: DataTypesUpdatePasswordRequest, options?: RawAxiosRequestConfig) {
6365
+ return AccountSettingsApiFp(this.configuration).passwordPut(password, options).then((request) => request(this.axios, this.basePath));
6366
+ }
6367
+
6368
+ /**
6369
+ * Retrieves the profile of the currently logged-in user
6370
+ * @summary Retrieve user profile
6371
+ * @param {*} [options] Override http request option.
6372
+ * @throws {RequiredError}
6373
+ * @memberof AccountSettingsApi
6374
+ */
6375
+ public profileGet(options?: RawAxiosRequestConfig) {
6376
+ return AccountSettingsApiFp(this.configuration).profileGet(options).then((request) => request(this.axios, this.basePath));
6377
+ }
6378
+
6379
+ /**
6380
+ * Updates the profile of the currently logged-in user
6381
+ * @summary Update user profile
6382
+ * @param {DataTypesUpdateProfileRequest} profile Profile update request
6383
+ * @param {*} [options] Override http request option.
6384
+ * @throws {RequiredError}
6385
+ * @memberof AccountSettingsApi
6386
+ */
6387
+ public profilePut(profile: DataTypesUpdateProfileRequest, options?: RawAxiosRequestConfig) {
6388
+ return AccountSettingsApiFp(this.configuration).profilePut(profile, options).then((request) => request(this.axios, this.basePath));
6389
+ }
6390
+ }
6391
+
6392
+
6393
+
6000
6394
  /**
6001
6395
  * ArticlesApi - axios parameter creator
6002
6396
  * @export