qanswer-sdk 3.1397.0-main → 3.1399.0-main

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/api.ts CHANGED
@@ -6162,6 +6162,12 @@ export interface FileFolderModel {
6162
6162
  * @memberof FileFolderModel
6163
6163
  */
6164
6164
  'type'?: string;
6165
+ /**
6166
+ * Publication status for SharePoint pages
6167
+ * @type {boolean}
6168
+ * @memberof FileFolderModel
6169
+ */
6170
+ 'is_published'?: boolean;
6165
6171
  /**
6166
6172
  * Whether the file is shared or not
6167
6173
  * @type {boolean}
@@ -12932,6 +12938,37 @@ export interface SetLogo2Request {
12932
12938
  */
12933
12939
  'file': File;
12934
12940
  }
12941
+ /**
12942
+ *
12943
+ * @export
12944
+ * @interface SharePointConnectorSettings
12945
+ */
12946
+ export interface SharePointConnectorSettings {
12947
+ /**
12948
+ * Username owning the connector
12949
+ * @type {string}
12950
+ * @memberof SharePointConnectorSettings
12951
+ */
12952
+ 'username': string;
12953
+ /**
12954
+ * Dataset name
12955
+ * @type {string}
12956
+ * @memberof SharePointConnectorSettings
12957
+ */
12958
+ 'dataset': string;
12959
+ /**
12960
+ * Connector ID
12961
+ * @type {number}
12962
+ * @memberof SharePointConnectorSettings
12963
+ */
12964
+ 'connector_id': number;
12965
+ /**
12966
+ * Whether to include unpublished SharePoint pages when listing or indexing.
12967
+ * @type {boolean}
12968
+ * @memberof SharePointConnectorSettings
12969
+ */
12970
+ 'include_unpublished_pages'?: boolean;
12971
+ }
12935
12972
  /**
12936
12973
  *
12937
12974
  * @export
@@ -36275,6 +36312,68 @@ export const ConnectorSharepointApiAxiosParamCreator = function (configuration?:
36275
36312
  options: localVarRequestOptions,
36276
36313
  };
36277
36314
  },
36315
+ /**
36316
+ *
36317
+ * @param {string} username
36318
+ * @param {string} dataset
36319
+ * @param {number} connectorId
36320
+ * @param {string} [qAnswerApiKey]
36321
+ * @param {*} [options] Override http request option.
36322
+ * @throws {RequiredError}
36323
+ */
36324
+ getSettings: async (username: string, dataset: string, connectorId: number, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36325
+ // verify required parameter 'username' is not null or undefined
36326
+ assertParamExists('getSettings', 'username', username)
36327
+ // verify required parameter 'dataset' is not null or undefined
36328
+ assertParamExists('getSettings', 'dataset', dataset)
36329
+ // verify required parameter 'connectorId' is not null or undefined
36330
+ assertParamExists('getSettings', 'connectorId', connectorId)
36331
+ const localVarPath = `/api/connectors/sharepoint/settings`;
36332
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36333
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36334
+ let baseOptions;
36335
+ if (configuration) {
36336
+ baseOptions = configuration.baseOptions;
36337
+ }
36338
+
36339
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
36340
+ const localVarHeaderParameter = {} as any;
36341
+ const localVarQueryParameter = {} as any;
36342
+
36343
+ // authentication QAnswer-Api-Key required
36344
+ await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
36345
+
36346
+ // authentication Bearer required
36347
+ // http bearer authentication required
36348
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
36349
+
36350
+ if (username !== undefined) {
36351
+ localVarQueryParameter['username'] = username;
36352
+ }
36353
+
36354
+ if (dataset !== undefined) {
36355
+ localVarQueryParameter['dataset'] = dataset;
36356
+ }
36357
+
36358
+ if (connectorId !== undefined) {
36359
+ localVarQueryParameter['connectorId'] = connectorId;
36360
+ }
36361
+
36362
+ if (qAnswerApiKey != null) {
36363
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
36364
+ }
36365
+
36366
+
36367
+
36368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36370
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36371
+
36372
+ return {
36373
+ url: toPathString(localVarUrlObj),
36374
+ options: localVarRequestOptions,
36375
+ };
36376
+ },
36278
36377
  /**
36279
36378
  *
36280
36379
  * @param {string} username
@@ -36707,6 +36806,53 @@ export const ConnectorSharepointApiAxiosParamCreator = function (configuration?:
36707
36806
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36708
36807
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36709
36808
 
36809
+ return {
36810
+ url: toPathString(localVarUrlObj),
36811
+ options: localVarRequestOptions,
36812
+ };
36813
+ },
36814
+ /**
36815
+ *
36816
+ * @param {SharePointConnectorSettings} sharePointConnectorSettings
36817
+ * @param {string} [qAnswerApiKey]
36818
+ * @param {*} [options] Override http request option.
36819
+ * @throws {RequiredError}
36820
+ */
36821
+ updateSettings: async (sharePointConnectorSettings: SharePointConnectorSettings, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
36822
+ // verify required parameter 'sharePointConnectorSettings' is not null or undefined
36823
+ assertParamExists('updateSettings', 'sharePointConnectorSettings', sharePointConnectorSettings)
36824
+ const localVarPath = `/api/connectors/sharepoint/settings`;
36825
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36827
+ let baseOptions;
36828
+ if (configuration) {
36829
+ baseOptions = configuration.baseOptions;
36830
+ }
36831
+
36832
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
36833
+ const localVarHeaderParameter = {} as any;
36834
+ const localVarQueryParameter = {} as any;
36835
+
36836
+ // authentication QAnswer-Api-Key required
36837
+ await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
36838
+
36839
+ // authentication Bearer required
36840
+ // http bearer authentication required
36841
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
36842
+
36843
+ if (qAnswerApiKey != null) {
36844
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
36845
+ }
36846
+
36847
+
36848
+
36849
+ localVarHeaderParameter['Content-Type'] = 'application/json';
36850
+
36851
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36853
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
36854
+ localVarRequestOptions.data = serializeDataIfNeeded(sharePointConnectorSettings, localVarRequestOptions, configuration)
36855
+
36710
36856
  return {
36711
36857
  url: toPathString(localVarUrlObj),
36712
36858
  options: localVarRequestOptions,
@@ -36737,6 +36883,21 @@ export const ConnectorSharepointApiFp = function(configuration?: Configuration)
36737
36883
  const localVarOperationServerBasePath = operationServerMap['ConnectorSharepointApi.createSharepointConnectorWithCertificate']?.[localVarOperationServerIndex]?.url;
36738
36884
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36739
36885
  },
36886
+ /**
36887
+ *
36888
+ * @param {string} username
36889
+ * @param {string} dataset
36890
+ * @param {number} connectorId
36891
+ * @param {string} [qAnswerApiKey]
36892
+ * @param {*} [options] Override http request option.
36893
+ * @throws {RequiredError}
36894
+ */
36895
+ async getSettings(username: string, dataset: string, connectorId: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharePointConnectorSettings>> {
36896
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSettings(username, dataset, connectorId, qAnswerApiKey, options);
36897
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
36898
+ const localVarOperationServerBasePath = operationServerMap['ConnectorSharepointApi.getSettings']?.[localVarOperationServerIndex]?.url;
36899
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36900
+ },
36740
36901
  /**
36741
36902
  *
36742
36903
  * @param {string} username
@@ -36845,6 +37006,19 @@ export const ConnectorSharepointApiFp = function(configuration?: Configuration)
36845
37006
  const localVarOperationServerBasePath = operationServerMap['ConnectorSharepointApi.sharepointSearchFiles']?.[localVarOperationServerIndex]?.url;
36846
37007
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36847
37008
  },
37009
+ /**
37010
+ *
37011
+ * @param {SharePointConnectorSettings} sharePointConnectorSettings
37012
+ * @param {string} [qAnswerApiKey]
37013
+ * @param {*} [options] Override http request option.
37014
+ * @throws {RequiredError}
37015
+ */
37016
+ async updateSettings(sharePointConnectorSettings: SharePointConnectorSettings, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharePointConnectorSettings>> {
37017
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSettings(sharePointConnectorSettings, qAnswerApiKey, options);
37018
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
37019
+ const localVarOperationServerBasePath = operationServerMap['ConnectorSharepointApi.updateSettings']?.[localVarOperationServerIndex]?.url;
37020
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37021
+ },
36848
37022
  }
36849
37023
  };
36850
37024
 
@@ -36865,6 +37039,15 @@ export const ConnectorSharepointApiFactory = function (configuration?: Configura
36865
37039
  createSharepointConnectorWithCertificate(requestParameters: ConnectorSharepointApiCreateSharepointConnectorWithCertificateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectorResponse> {
36866
37040
  return localVarFp.createSharepointConnectorWithCertificate(requestParameters.data, requestParameters.certificate, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
36867
37041
  },
37042
+ /**
37043
+ *
37044
+ * @param {ConnectorSharepointApiGetSettingsRequest} requestParameters Request parameters.
37045
+ * @param {*} [options] Override http request option.
37046
+ * @throws {RequiredError}
37047
+ */
37048
+ getSettings(requestParameters: ConnectorSharepointApiGetSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SharePointConnectorSettings> {
37049
+ return localVarFp.getSettings(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
37050
+ },
36868
37051
  /**
36869
37052
  *
36870
37053
  * @param {ConnectorSharepointApiRefreshSharepointRequest} requestParameters Request parameters.
@@ -36928,6 +37111,15 @@ export const ConnectorSharepointApiFactory = function (configuration?: Configura
36928
37111
  sharepointSearchFiles(requestParameters: ConnectorSharepointApiSharepointSearchFilesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFilesConnectorResponse> {
36929
37112
  return localVarFp.sharepointSearchFiles(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.query, requestParameters.itemType, requestParameters.siteId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
36930
37113
  },
37114
+ /**
37115
+ *
37116
+ * @param {ConnectorSharepointApiUpdateSettingsRequest} requestParameters Request parameters.
37117
+ * @param {*} [options] Override http request option.
37118
+ * @throws {RequiredError}
37119
+ */
37120
+ updateSettings(requestParameters: ConnectorSharepointApiUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SharePointConnectorSettings> {
37121
+ return localVarFp.updateSettings(requestParameters.sharePointConnectorSettings, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
37122
+ },
36931
37123
  };
36932
37124
  };
36933
37125
 
@@ -36959,6 +37151,41 @@ export interface ConnectorSharepointApiCreateSharepointConnectorWithCertificateR
36959
37151
  readonly qAnswerApiKey?: string
36960
37152
  }
36961
37153
 
37154
+ /**
37155
+ * Request parameters for getSettings operation in ConnectorSharepointApi.
37156
+ * @export
37157
+ * @interface ConnectorSharepointApiGetSettingsRequest
37158
+ */
37159
+ export interface ConnectorSharepointApiGetSettingsRequest {
37160
+ /**
37161
+ *
37162
+ * @type {string}
37163
+ * @memberof ConnectorSharepointApiGetSettings
37164
+ */
37165
+ readonly username: string
37166
+
37167
+ /**
37168
+ *
37169
+ * @type {string}
37170
+ * @memberof ConnectorSharepointApiGetSettings
37171
+ */
37172
+ readonly dataset: string
37173
+
37174
+ /**
37175
+ *
37176
+ * @type {number}
37177
+ * @memberof ConnectorSharepointApiGetSettings
37178
+ */
37179
+ readonly connectorId: number
37180
+
37181
+ /**
37182
+ *
37183
+ * @type {string}
37184
+ * @memberof ConnectorSharepointApiGetSettings
37185
+ */
37186
+ readonly qAnswerApiKey?: string
37187
+ }
37188
+
36962
37189
  /**
36963
37190
  * Request parameters for refreshSharepoint operation in ConnectorSharepointApi.
36964
37191
  * @export
@@ -37225,6 +37452,27 @@ export interface ConnectorSharepointApiSharepointSearchFilesRequest {
37225
37452
  readonly qAnswerApiKey?: string
37226
37453
  }
37227
37454
 
37455
+ /**
37456
+ * Request parameters for updateSettings operation in ConnectorSharepointApi.
37457
+ * @export
37458
+ * @interface ConnectorSharepointApiUpdateSettingsRequest
37459
+ */
37460
+ export interface ConnectorSharepointApiUpdateSettingsRequest {
37461
+ /**
37462
+ *
37463
+ * @type {SharePointConnectorSettings}
37464
+ * @memberof ConnectorSharepointApiUpdateSettings
37465
+ */
37466
+ readonly sharePointConnectorSettings: SharePointConnectorSettings
37467
+
37468
+ /**
37469
+ *
37470
+ * @type {string}
37471
+ * @memberof ConnectorSharepointApiUpdateSettings
37472
+ */
37473
+ readonly qAnswerApiKey?: string
37474
+ }
37475
+
37228
37476
  /**
37229
37477
  * ConnectorSharepointApi - object-oriented interface
37230
37478
  * TypeScript/Axios client for the QAnswer API
@@ -37244,6 +37492,17 @@ export class ConnectorSharepointApi extends BaseAPI {
37244
37492
  return ConnectorSharepointApiFp(this.configuration).createSharepointConnectorWithCertificate(requestParameters.data, requestParameters.certificate, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
37245
37493
  }
37246
37494
 
37495
+ /**
37496
+ *
37497
+ * @param {ConnectorSharepointApiGetSettingsRequest} requestParameters Request parameters.
37498
+ * @param {*} [options] Override http request option.
37499
+ * @throws {RequiredError}
37500
+ * @memberof ConnectorSharepointApi
37501
+ */
37502
+ public getSettings(requestParameters: ConnectorSharepointApiGetSettingsRequest, options?: RawAxiosRequestConfig) {
37503
+ return ConnectorSharepointApiFp(this.configuration).getSettings(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
37504
+ }
37505
+
37247
37506
  /**
37248
37507
  *
37249
37508
  * @param {ConnectorSharepointApiRefreshSharepointRequest} requestParameters Request parameters.
@@ -37320,6 +37579,17 @@ export class ConnectorSharepointApi extends BaseAPI {
37320
37579
  public sharepointSearchFiles(requestParameters: ConnectorSharepointApiSharepointSearchFilesRequest, options?: RawAxiosRequestConfig) {
37321
37580
  return ConnectorSharepointApiFp(this.configuration).sharepointSearchFiles(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.query, requestParameters.itemType, requestParameters.siteId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
37322
37581
  }
37582
+
37583
+ /**
37584
+ *
37585
+ * @param {ConnectorSharepointApiUpdateSettingsRequest} requestParameters Request parameters.
37586
+ * @param {*} [options] Override http request option.
37587
+ * @throws {RequiredError}
37588
+ * @memberof ConnectorSharepointApi
37589
+ */
37590
+ public updateSettings(requestParameters: ConnectorSharepointApiUpdateSettingsRequest, options?: RawAxiosRequestConfig) {
37591
+ return ConnectorSharepointApiFp(this.configuration).updateSettings(requestParameters.sharePointConnectorSettings, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
37592
+ }
37323
37593
  }
37324
37594
 
37325
37595
 
package/dist/api.d.ts CHANGED
@@ -6060,6 +6060,12 @@ export interface FileFolderModel {
6060
6060
  * @memberof FileFolderModel
6061
6061
  */
6062
6062
  'type'?: string;
6063
+ /**
6064
+ * Publication status for SharePoint pages
6065
+ * @type {boolean}
6066
+ * @memberof FileFolderModel
6067
+ */
6068
+ 'is_published'?: boolean;
6063
6069
  /**
6064
6070
  * Whether the file is shared or not
6065
6071
  * @type {boolean}
@@ -12751,6 +12757,37 @@ export interface SetLogo2Request {
12751
12757
  */
12752
12758
  'file': File;
12753
12759
  }
12760
+ /**
12761
+ *
12762
+ * @export
12763
+ * @interface SharePointConnectorSettings
12764
+ */
12765
+ export interface SharePointConnectorSettings {
12766
+ /**
12767
+ * Username owning the connector
12768
+ * @type {string}
12769
+ * @memberof SharePointConnectorSettings
12770
+ */
12771
+ 'username': string;
12772
+ /**
12773
+ * Dataset name
12774
+ * @type {string}
12775
+ * @memberof SharePointConnectorSettings
12776
+ */
12777
+ 'dataset': string;
12778
+ /**
12779
+ * Connector ID
12780
+ * @type {number}
12781
+ * @memberof SharePointConnectorSettings
12782
+ */
12783
+ 'connector_id': number;
12784
+ /**
12785
+ * Whether to include unpublished SharePoint pages when listing or indexing.
12786
+ * @type {boolean}
12787
+ * @memberof SharePointConnectorSettings
12788
+ */
12789
+ 'include_unpublished_pages'?: boolean;
12790
+ }
12754
12791
  /**
12755
12792
  *
12756
12793
  * @export
@@ -26786,6 +26823,16 @@ export declare const ConnectorSharepointApiAxiosParamCreator: (configuration?: C
26786
26823
  * @throws {RequiredError}
26787
26824
  */
26788
26825
  createSharepointConnectorWithCertificate: (data: CreateSharepointConnectorFromCertificateRequest, certificate: File, qAnswerApiKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26826
+ /**
26827
+ *
26828
+ * @param {string} username
26829
+ * @param {string} dataset
26830
+ * @param {number} connectorId
26831
+ * @param {string} [qAnswerApiKey]
26832
+ * @param {*} [options] Override http request option.
26833
+ * @throws {RequiredError}
26834
+ */
26835
+ getSettings: (username: string, dataset: string, connectorId: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26789
26836
  /**
26790
26837
  *
26791
26838
  * @param {string} username
@@ -26859,6 +26906,14 @@ export declare const ConnectorSharepointApiAxiosParamCreator: (configuration?: C
26859
26906
  * @throws {RequiredError}
26860
26907
  */
26861
26908
  sharepointSearchFiles: (username: string, dataset: string, connectorId: number, query: string, itemType?: string, siteId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26909
+ /**
26910
+ *
26911
+ * @param {SharePointConnectorSettings} sharePointConnectorSettings
26912
+ * @param {string} [qAnswerApiKey]
26913
+ * @param {*} [options] Override http request option.
26914
+ * @throws {RequiredError}
26915
+ */
26916
+ updateSettings: (sharePointConnectorSettings: SharePointConnectorSettings, qAnswerApiKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26862
26917
  };
26863
26918
  /**
26864
26919
  * ConnectorSharepointApi - functional programming interface
@@ -26875,6 +26930,16 @@ export declare const ConnectorSharepointApiFp: (configuration?: Configuration) =
26875
26930
  * @throws {RequiredError}
26876
26931
  */
26877
26932
  createSharepointConnectorWithCertificate(data: CreateSharepointConnectorFromCertificateRequest, certificate: File, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateConnectorResponse>>;
26933
+ /**
26934
+ *
26935
+ * @param {string} username
26936
+ * @param {string} dataset
26937
+ * @param {number} connectorId
26938
+ * @param {string} [qAnswerApiKey]
26939
+ * @param {*} [options] Override http request option.
26940
+ * @throws {RequiredError}
26941
+ */
26942
+ getSettings(username: string, dataset: string, connectorId: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharePointConnectorSettings>>;
26878
26943
  /**
26879
26944
  *
26880
26945
  * @param {string} username
@@ -26948,6 +27013,14 @@ export declare const ConnectorSharepointApiFp: (configuration?: Configuration) =
26948
27013
  * @throws {RequiredError}
26949
27014
  */
26950
27015
  sharepointSearchFiles(username: string, dataset: string, connectorId: number, query: string, itemType?: string, siteId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFilesConnectorResponse>>;
27016
+ /**
27017
+ *
27018
+ * @param {SharePointConnectorSettings} sharePointConnectorSettings
27019
+ * @param {string} [qAnswerApiKey]
27020
+ * @param {*} [options] Override http request option.
27021
+ * @throws {RequiredError}
27022
+ */
27023
+ updateSettings(sharePointConnectorSettings: SharePointConnectorSettings, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharePointConnectorSettings>>;
26951
27024
  };
26952
27025
  /**
26953
27026
  * ConnectorSharepointApi - factory interface
@@ -26962,6 +27035,13 @@ export declare const ConnectorSharepointApiFactory: (configuration?: Configurati
26962
27035
  * @throws {RequiredError}
26963
27036
  */
26964
27037
  createSharepointConnectorWithCertificate(requestParameters: ConnectorSharepointApiCreateSharepointConnectorWithCertificateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectorResponse>;
27038
+ /**
27039
+ *
27040
+ * @param {ConnectorSharepointApiGetSettingsRequest} requestParameters Request parameters.
27041
+ * @param {*} [options] Override http request option.
27042
+ * @throws {RequiredError}
27043
+ */
27044
+ getSettings(requestParameters: ConnectorSharepointApiGetSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SharePointConnectorSettings>;
26965
27045
  /**
26966
27046
  *
26967
27047
  * @param {ConnectorSharepointApiRefreshSharepointRequest} requestParameters Request parameters.
@@ -27011,6 +27091,13 @@ export declare const ConnectorSharepointApiFactory: (configuration?: Configurati
27011
27091
  * @throws {RequiredError}
27012
27092
  */
27013
27093
  sharepointSearchFiles(requestParameters: ConnectorSharepointApiSharepointSearchFilesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListFilesConnectorResponse>;
27094
+ /**
27095
+ *
27096
+ * @param {ConnectorSharepointApiUpdateSettingsRequest} requestParameters Request parameters.
27097
+ * @param {*} [options] Override http request option.
27098
+ * @throws {RequiredError}
27099
+ */
27100
+ updateSettings(requestParameters: ConnectorSharepointApiUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<SharePointConnectorSettings>;
27014
27101
  };
27015
27102
  /**
27016
27103
  * Request parameters for createSharepointConnectorWithCertificate operation in ConnectorSharepointApi.
@@ -27037,6 +27124,37 @@ export interface ConnectorSharepointApiCreateSharepointConnectorWithCertificateR
27037
27124
  */
27038
27125
  readonly qAnswerApiKey?: string;
27039
27126
  }
27127
+ /**
27128
+ * Request parameters for getSettings operation in ConnectorSharepointApi.
27129
+ * @export
27130
+ * @interface ConnectorSharepointApiGetSettingsRequest
27131
+ */
27132
+ export interface ConnectorSharepointApiGetSettingsRequest {
27133
+ /**
27134
+ *
27135
+ * @type {string}
27136
+ * @memberof ConnectorSharepointApiGetSettings
27137
+ */
27138
+ readonly username: string;
27139
+ /**
27140
+ *
27141
+ * @type {string}
27142
+ * @memberof ConnectorSharepointApiGetSettings
27143
+ */
27144
+ readonly dataset: string;
27145
+ /**
27146
+ *
27147
+ * @type {number}
27148
+ * @memberof ConnectorSharepointApiGetSettings
27149
+ */
27150
+ readonly connectorId: number;
27151
+ /**
27152
+ *
27153
+ * @type {string}
27154
+ * @memberof ConnectorSharepointApiGetSettings
27155
+ */
27156
+ readonly qAnswerApiKey?: string;
27157
+ }
27040
27158
  /**
27041
27159
  * Request parameters for refreshSharepoint operation in ConnectorSharepointApi.
27042
27160
  * @export
@@ -27272,6 +27390,25 @@ export interface ConnectorSharepointApiSharepointSearchFilesRequest {
27272
27390
  */
27273
27391
  readonly qAnswerApiKey?: string;
27274
27392
  }
27393
+ /**
27394
+ * Request parameters for updateSettings operation in ConnectorSharepointApi.
27395
+ * @export
27396
+ * @interface ConnectorSharepointApiUpdateSettingsRequest
27397
+ */
27398
+ export interface ConnectorSharepointApiUpdateSettingsRequest {
27399
+ /**
27400
+ *
27401
+ * @type {SharePointConnectorSettings}
27402
+ * @memberof ConnectorSharepointApiUpdateSettings
27403
+ */
27404
+ readonly sharePointConnectorSettings: SharePointConnectorSettings;
27405
+ /**
27406
+ *
27407
+ * @type {string}
27408
+ * @memberof ConnectorSharepointApiUpdateSettings
27409
+ */
27410
+ readonly qAnswerApiKey?: string;
27411
+ }
27275
27412
  /**
27276
27413
  * ConnectorSharepointApi - object-oriented interface
27277
27414
  * TypeScript/Axios client for the QAnswer API
@@ -27288,6 +27425,14 @@ export declare class ConnectorSharepointApi extends BaseAPI {
27288
27425
  * @memberof ConnectorSharepointApi
27289
27426
  */
27290
27427
  createSharepointConnectorWithCertificate(requestParameters: ConnectorSharepointApiCreateSharepointConnectorWithCertificateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateConnectorResponse, any, {}>>;
27428
+ /**
27429
+ *
27430
+ * @param {ConnectorSharepointApiGetSettingsRequest} requestParameters Request parameters.
27431
+ * @param {*} [options] Override http request option.
27432
+ * @throws {RequiredError}
27433
+ * @memberof ConnectorSharepointApi
27434
+ */
27435
+ getSettings(requestParameters: ConnectorSharepointApiGetSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SharePointConnectorSettings, any, {}>>;
27291
27436
  /**
27292
27437
  *
27293
27438
  * @param {ConnectorSharepointApiRefreshSharepointRequest} requestParameters Request parameters.
@@ -27344,6 +27489,14 @@ export declare class ConnectorSharepointApi extends BaseAPI {
27344
27489
  * @memberof ConnectorSharepointApi
27345
27490
  */
27346
27491
  sharepointSearchFiles(requestParameters: ConnectorSharepointApiSharepointSearchFilesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFilesConnectorResponse, any, {}>>;
27492
+ /**
27493
+ *
27494
+ * @param {ConnectorSharepointApiUpdateSettingsRequest} requestParameters Request parameters.
27495
+ * @param {*} [options] Override http request option.
27496
+ * @throws {RequiredError}
27497
+ * @memberof ConnectorSharepointApi
27498
+ */
27499
+ updateSettings(requestParameters: ConnectorSharepointApiUpdateSettingsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SharePointConnectorSettings, any, {}>>;
27347
27500
  }
27348
27501
  /**
27349
27502
  * ConnectorWebsearchApi - axios parameter creator
package/dist/api.js CHANGED
@@ -19451,6 +19451,78 @@ var ConnectorSharepointApiAxiosParamCreator = function (configuration) {
19451
19451
  });
19452
19452
  });
19453
19453
  },
19454
+ /**
19455
+ *
19456
+ * @param {string} username
19457
+ * @param {string} dataset
19458
+ * @param {number} connectorId
19459
+ * @param {string} [qAnswerApiKey]
19460
+ * @param {*} [options] Override http request option.
19461
+ * @throws {RequiredError}
19462
+ */
19463
+ getSettings: function (username_1, dataset_1, connectorId_1, qAnswerApiKey_1) {
19464
+ var args_1 = [];
19465
+ for (var _i = 4; _i < arguments.length; _i++) {
19466
+ args_1[_i - 4] = arguments[_i];
19467
+ }
19468
+ return __awaiter(_this, __spreadArray([username_1, dataset_1, connectorId_1, qAnswerApiKey_1], args_1, true), void 0, function (username, dataset, connectorId, qAnswerApiKey, options) {
19469
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19470
+ if (options === void 0) { options = {}; }
19471
+ return __generator(this, function (_a) {
19472
+ switch (_a.label) {
19473
+ case 0:
19474
+ // verify required parameter 'username' is not null or undefined
19475
+ (0, common_1.assertParamExists)('getSettings', 'username', username);
19476
+ // verify required parameter 'dataset' is not null or undefined
19477
+ (0, common_1.assertParamExists)('getSettings', 'dataset', dataset);
19478
+ // verify required parameter 'connectorId' is not null or undefined
19479
+ (0, common_1.assertParamExists)('getSettings', 'connectorId', connectorId);
19480
+ localVarPath = "/api/connectors/sharepoint/settings";
19481
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19482
+ if (configuration) {
19483
+ baseOptions = configuration.baseOptions;
19484
+ }
19485
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19486
+ localVarHeaderParameter = {};
19487
+ localVarQueryParameter = {};
19488
+ // authentication QAnswer-Api-Key required
19489
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
19490
+ // authentication Bearer required
19491
+ // http bearer authentication required
19492
+ ];
19493
+ case 1:
19494
+ // authentication QAnswer-Api-Key required
19495
+ _a.sent();
19496
+ // authentication Bearer required
19497
+ // http bearer authentication required
19498
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
19499
+ case 2:
19500
+ // authentication Bearer required
19501
+ // http bearer authentication required
19502
+ _a.sent();
19503
+ if (username !== undefined) {
19504
+ localVarQueryParameter['username'] = username;
19505
+ }
19506
+ if (dataset !== undefined) {
19507
+ localVarQueryParameter['dataset'] = dataset;
19508
+ }
19509
+ if (connectorId !== undefined) {
19510
+ localVarQueryParameter['connectorId'] = connectorId;
19511
+ }
19512
+ if (qAnswerApiKey != null) {
19513
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
19514
+ }
19515
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19516
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19517
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19518
+ return [2 /*return*/, {
19519
+ url: (0, common_1.toPathString)(localVarUrlObj),
19520
+ options: localVarRequestOptions,
19521
+ }];
19522
+ }
19523
+ });
19524
+ });
19525
+ },
19454
19526
  /**
19455
19527
  *
19456
19528
  * @param {string} username
@@ -19955,6 +20027,65 @@ var ConnectorSharepointApiAxiosParamCreator = function (configuration) {
19955
20027
  });
19956
20028
  });
19957
20029
  },
20030
+ /**
20031
+ *
20032
+ * @param {SharePointConnectorSettings} sharePointConnectorSettings
20033
+ * @param {string} [qAnswerApiKey]
20034
+ * @param {*} [options] Override http request option.
20035
+ * @throws {RequiredError}
20036
+ */
20037
+ updateSettings: function (sharePointConnectorSettings_1, qAnswerApiKey_1) {
20038
+ var args_1 = [];
20039
+ for (var _i = 2; _i < arguments.length; _i++) {
20040
+ args_1[_i - 2] = arguments[_i];
20041
+ }
20042
+ return __awaiter(_this, __spreadArray([sharePointConnectorSettings_1, qAnswerApiKey_1], args_1, true), void 0, function (sharePointConnectorSettings, qAnswerApiKey, options) {
20043
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
20044
+ if (options === void 0) { options = {}; }
20045
+ return __generator(this, function (_a) {
20046
+ switch (_a.label) {
20047
+ case 0:
20048
+ // verify required parameter 'sharePointConnectorSettings' is not null or undefined
20049
+ (0, common_1.assertParamExists)('updateSettings', 'sharePointConnectorSettings', sharePointConnectorSettings);
20050
+ localVarPath = "/api/connectors/sharepoint/settings";
20051
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
20052
+ if (configuration) {
20053
+ baseOptions = configuration.baseOptions;
20054
+ }
20055
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
20056
+ localVarHeaderParameter = {};
20057
+ localVarQueryParameter = {};
20058
+ // authentication QAnswer-Api-Key required
20059
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
20060
+ // authentication Bearer required
20061
+ // http bearer authentication required
20062
+ ];
20063
+ case 1:
20064
+ // authentication QAnswer-Api-Key required
20065
+ _a.sent();
20066
+ // authentication Bearer required
20067
+ // http bearer authentication required
20068
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
20069
+ case 2:
20070
+ // authentication Bearer required
20071
+ // http bearer authentication required
20072
+ _a.sent();
20073
+ if (qAnswerApiKey != null) {
20074
+ localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
20075
+ }
20076
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20077
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
20078
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20079
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
20080
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sharePointConnectorSettings, localVarRequestOptions, configuration);
20081
+ return [2 /*return*/, {
20082
+ url: (0, common_1.toPathString)(localVarUrlObj),
20083
+ options: localVarRequestOptions,
20084
+ }];
20085
+ }
20086
+ });
20087
+ });
20088
+ },
19958
20089
  };
19959
20090
  };
19960
20091
  exports.ConnectorSharepointApiAxiosParamCreator = ConnectorSharepointApiAxiosParamCreator;
@@ -19990,6 +20121,31 @@ var ConnectorSharepointApiFp = function (configuration) {
19990
20121
  });
19991
20122
  });
19992
20123
  },
20124
+ /**
20125
+ *
20126
+ * @param {string} username
20127
+ * @param {string} dataset
20128
+ * @param {number} connectorId
20129
+ * @param {string} [qAnswerApiKey]
20130
+ * @param {*} [options] Override http request option.
20131
+ * @throws {RequiredError}
20132
+ */
20133
+ getSettings: function (username, dataset, connectorId, qAnswerApiKey, options) {
20134
+ return __awaiter(this, void 0, void 0, function () {
20135
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
20136
+ var _a, _b, _c;
20137
+ return __generator(this, function (_d) {
20138
+ switch (_d.label) {
20139
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSettings(username, dataset, connectorId, qAnswerApiKey, options)];
20140
+ case 1:
20141
+ localVarAxiosArgs = _d.sent();
20142
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20143
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectorSharepointApi.getSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20144
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
20145
+ }
20146
+ });
20147
+ });
20148
+ },
19993
20149
  /**
19994
20150
  *
19995
20151
  * @param {string} username
@@ -20168,6 +20324,29 @@ var ConnectorSharepointApiFp = function (configuration) {
20168
20324
  });
20169
20325
  });
20170
20326
  },
20327
+ /**
20328
+ *
20329
+ * @param {SharePointConnectorSettings} sharePointConnectorSettings
20330
+ * @param {string} [qAnswerApiKey]
20331
+ * @param {*} [options] Override http request option.
20332
+ * @throws {RequiredError}
20333
+ */
20334
+ updateSettings: function (sharePointConnectorSettings, qAnswerApiKey, options) {
20335
+ return __awaiter(this, void 0, void 0, function () {
20336
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
20337
+ var _a, _b, _c;
20338
+ return __generator(this, function (_d) {
20339
+ switch (_d.label) {
20340
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateSettings(sharePointConnectorSettings, qAnswerApiKey, options)];
20341
+ case 1:
20342
+ localVarAxiosArgs = _d.sent();
20343
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20344
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectorSharepointApi.updateSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20345
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
20346
+ }
20347
+ });
20348
+ });
20349
+ },
20171
20350
  };
20172
20351
  };
20173
20352
  exports.ConnectorSharepointApiFp = ConnectorSharepointApiFp;
@@ -20188,6 +20367,15 @@ var ConnectorSharepointApiFactory = function (configuration, basePath, axios) {
20188
20367
  createSharepointConnectorWithCertificate: function (requestParameters, options) {
20189
20368
  return localVarFp.createSharepointConnectorWithCertificate(requestParameters.data, requestParameters.certificate, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
20190
20369
  },
20370
+ /**
20371
+ *
20372
+ * @param {ConnectorSharepointApiGetSettingsRequest} requestParameters Request parameters.
20373
+ * @param {*} [options] Override http request option.
20374
+ * @throws {RequiredError}
20375
+ */
20376
+ getSettings: function (requestParameters, options) {
20377
+ return localVarFp.getSettings(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
20378
+ },
20191
20379
  /**
20192
20380
  *
20193
20381
  * @param {ConnectorSharepointApiRefreshSharepointRequest} requestParameters Request parameters.
@@ -20251,6 +20439,15 @@ var ConnectorSharepointApiFactory = function (configuration, basePath, axios) {
20251
20439
  sharepointSearchFiles: function (requestParameters, options) {
20252
20440
  return localVarFp.sharepointSearchFiles(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.query, requestParameters.itemType, requestParameters.siteId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
20253
20441
  },
20442
+ /**
20443
+ *
20444
+ * @param {ConnectorSharepointApiUpdateSettingsRequest} requestParameters Request parameters.
20445
+ * @param {*} [options] Override http request option.
20446
+ * @throws {RequiredError}
20447
+ */
20448
+ updateSettings: function (requestParameters, options) {
20449
+ return localVarFp.updateSettings(requestParameters.sharePointConnectorSettings, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
20450
+ },
20254
20451
  };
20255
20452
  };
20256
20453
  exports.ConnectorSharepointApiFactory = ConnectorSharepointApiFactory;
@@ -20277,6 +20474,17 @@ var ConnectorSharepointApi = /** @class */ (function (_super) {
20277
20474
  var _this = this;
20278
20475
  return (0, exports.ConnectorSharepointApiFp)(this.configuration).createSharepointConnectorWithCertificate(requestParameters.data, requestParameters.certificate, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
20279
20476
  };
20477
+ /**
20478
+ *
20479
+ * @param {ConnectorSharepointApiGetSettingsRequest} requestParameters Request parameters.
20480
+ * @param {*} [options] Override http request option.
20481
+ * @throws {RequiredError}
20482
+ * @memberof ConnectorSharepointApi
20483
+ */
20484
+ ConnectorSharepointApi.prototype.getSettings = function (requestParameters, options) {
20485
+ var _this = this;
20486
+ return (0, exports.ConnectorSharepointApiFp)(this.configuration).getSettings(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
20487
+ };
20280
20488
  /**
20281
20489
  *
20282
20490
  * @param {ConnectorSharepointApiRefreshSharepointRequest} requestParameters Request parameters.
@@ -20354,6 +20562,17 @@ var ConnectorSharepointApi = /** @class */ (function (_super) {
20354
20562
  var _this = this;
20355
20563
  return (0, exports.ConnectorSharepointApiFp)(this.configuration).sharepointSearchFiles(requestParameters.username, requestParameters.dataset, requestParameters.connectorId, requestParameters.query, requestParameters.itemType, requestParameters.siteId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
20356
20564
  };
20565
+ /**
20566
+ *
20567
+ * @param {ConnectorSharepointApiUpdateSettingsRequest} requestParameters Request parameters.
20568
+ * @param {*} [options] Override http request option.
20569
+ * @throws {RequiredError}
20570
+ * @memberof ConnectorSharepointApi
20571
+ */
20572
+ ConnectorSharepointApi.prototype.updateSettings = function (requestParameters, options) {
20573
+ var _this = this;
20574
+ return (0, exports.ConnectorSharepointApiFp)(this.configuration).updateSettings(requestParameters.sharePointConnectorSettings, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
20575
+ };
20357
20576
  return ConnectorSharepointApi;
20358
20577
  }(base_1.BaseAPI));
20359
20578
  exports.ConnectorSharepointApi = ConnectorSharepointApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qanswer-sdk",
3
- "version": "3.1397.0-main",
3
+ "version": "3.1399.0-main",
4
4
  "description": "OpenAPI client for qanswer-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file