qanswer-sdk 3.2030.0-main → 3.2031.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 +164 -0
- package/dist/api.d.ts +86 -0
- package/dist/api.js +133 -0
- package/package.json +1 -1
- package/qanswer-sdk-3.2031.0-main.tgz +0 -0
- package/qanswer-sdk-3.2030.0-main.tgz +0 -0
package/api.ts
CHANGED
|
@@ -50967,6 +50967,81 @@ export const ConnectorsDataApiAxiosParamCreator = function (configuration?: Conf
|
|
|
50967
50967
|
|
|
50968
50968
|
|
|
50969
50969
|
|
|
50970
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50971
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50972
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
50973
|
+
|
|
50974
|
+
return {
|
|
50975
|
+
url: toPathString(localVarUrlObj),
|
|
50976
|
+
options: localVarRequestOptions,
|
|
50977
|
+
};
|
|
50978
|
+
},
|
|
50979
|
+
/**
|
|
50980
|
+
*
|
|
50981
|
+
* @summary To get the content of data inside a connector by file id
|
|
50982
|
+
* @param {string} username
|
|
50983
|
+
* @param {string} dataset
|
|
50984
|
+
* @param {string} fileId
|
|
50985
|
+
* @param {number} connectorId
|
|
50986
|
+
* @param {string} [conversationId]
|
|
50987
|
+
* @param {string} [qAnswerApiKey]
|
|
50988
|
+
* @param {*} [options] Override http request option.
|
|
50989
|
+
* @throws {RequiredError}
|
|
50990
|
+
*/
|
|
50991
|
+
getDocumentContentByFileId: async (username: string, dataset: string, fileId: string, connectorId: number, conversationId?: string, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50992
|
+
// verify required parameter 'username' is not null or undefined
|
|
50993
|
+
assertParamExists('getDocumentContentByFileId', 'username', username)
|
|
50994
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
50995
|
+
assertParamExists('getDocumentContentByFileId', 'dataset', dataset)
|
|
50996
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
50997
|
+
assertParamExists('getDocumentContentByFileId', 'fileId', fileId)
|
|
50998
|
+
// verify required parameter 'connectorId' is not null or undefined
|
|
50999
|
+
assertParamExists('getDocumentContentByFileId', 'connectorId', connectorId)
|
|
51000
|
+
const localVarPath = `/api/connectors-data/content/by-file-id`;
|
|
51001
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51002
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51003
|
+
let baseOptions;
|
|
51004
|
+
if (configuration) {
|
|
51005
|
+
baseOptions = configuration.baseOptions;
|
|
51006
|
+
}
|
|
51007
|
+
|
|
51008
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51009
|
+
const localVarHeaderParameter = {} as any;
|
|
51010
|
+
const localVarQueryParameter = {} as any;
|
|
51011
|
+
|
|
51012
|
+
// authentication QAnswer-Api-Key required
|
|
51013
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
51014
|
+
|
|
51015
|
+
// authentication Bearer required
|
|
51016
|
+
// http bearer authentication required
|
|
51017
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
51018
|
+
|
|
51019
|
+
if (username !== undefined) {
|
|
51020
|
+
localVarQueryParameter['username'] = username;
|
|
51021
|
+
}
|
|
51022
|
+
|
|
51023
|
+
if (dataset !== undefined) {
|
|
51024
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
51025
|
+
}
|
|
51026
|
+
|
|
51027
|
+
if (fileId !== undefined) {
|
|
51028
|
+
localVarQueryParameter['fileId'] = fileId;
|
|
51029
|
+
}
|
|
51030
|
+
|
|
51031
|
+
if (connectorId !== undefined) {
|
|
51032
|
+
localVarQueryParameter['connectorId'] = connectorId;
|
|
51033
|
+
}
|
|
51034
|
+
|
|
51035
|
+
if (conversationId !== undefined) {
|
|
51036
|
+
localVarQueryParameter['conversationId'] = conversationId;
|
|
51037
|
+
}
|
|
51038
|
+
|
|
51039
|
+
if (qAnswerApiKey != null) {
|
|
51040
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
51041
|
+
}
|
|
51042
|
+
|
|
51043
|
+
|
|
51044
|
+
|
|
50970
51045
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50971
51046
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50972
51047
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -51616,6 +51691,24 @@ export const ConnectorsDataApiFp = function(configuration?: Configuration) {
|
|
|
51616
51691
|
const localVarOperationServerBasePath = operationServerMap['ConnectorsDataApi.getDocumentContent']?.[localVarOperationServerIndex]?.url;
|
|
51617
51692
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51618
51693
|
},
|
|
51694
|
+
/**
|
|
51695
|
+
*
|
|
51696
|
+
* @summary To get the content of data inside a connector by file id
|
|
51697
|
+
* @param {string} username
|
|
51698
|
+
* @param {string} dataset
|
|
51699
|
+
* @param {string} fileId
|
|
51700
|
+
* @param {number} connectorId
|
|
51701
|
+
* @param {string} [conversationId]
|
|
51702
|
+
* @param {string} [qAnswerApiKey]
|
|
51703
|
+
* @param {*} [options] Override http request option.
|
|
51704
|
+
* @throws {RequiredError}
|
|
51705
|
+
*/
|
|
51706
|
+
async getDocumentContentByFileId(username: string, dataset: string, fileId: string, connectorId: number, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentContentResponse>> {
|
|
51707
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentContentByFileId(username, dataset, fileId, connectorId, conversationId, qAnswerApiKey, options);
|
|
51708
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
51709
|
+
const localVarOperationServerBasePath = operationServerMap['ConnectorsDataApi.getDocumentContentByFileId']?.[localVarOperationServerIndex]?.url;
|
|
51710
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
51711
|
+
},
|
|
51619
51712
|
/**
|
|
51620
51713
|
*
|
|
51621
51714
|
* @summary To get the metadata of data inside a connector
|
|
@@ -51834,6 +51927,16 @@ export const ConnectorsDataApiFactory = function (configuration?: Configuration,
|
|
|
51834
51927
|
getDocumentContent(requestParameters: ConnectorsDataApiGetDocumentContentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentContentResponse> {
|
|
51835
51928
|
return localVarFp.getDocumentContent(requestParameters.username, requestParameters.dataset, requestParameters.filename, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
51836
51929
|
},
|
|
51930
|
+
/**
|
|
51931
|
+
*
|
|
51932
|
+
* @summary To get the content of data inside a connector by file id
|
|
51933
|
+
* @param {ConnectorsDataApiGetDocumentContentByFileIdRequest} requestParameters Request parameters.
|
|
51934
|
+
* @param {*} [options] Override http request option.
|
|
51935
|
+
* @throws {RequiredError}
|
|
51936
|
+
*/
|
|
51937
|
+
getDocumentContentByFileId(requestParameters: ConnectorsDataApiGetDocumentContentByFileIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentContentResponse> {
|
|
51938
|
+
return localVarFp.getDocumentContentByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
51939
|
+
},
|
|
51837
51940
|
/**
|
|
51838
51941
|
*
|
|
51839
51942
|
* @summary To get the metadata of data inside a connector
|
|
@@ -52150,6 +52253,55 @@ export interface ConnectorsDataApiGetDocumentContentRequest {
|
|
|
52150
52253
|
readonly qAnswerApiKey?: string
|
|
52151
52254
|
}
|
|
52152
52255
|
|
|
52256
|
+
/**
|
|
52257
|
+
* Request parameters for getDocumentContentByFileId operation in ConnectorsDataApi.
|
|
52258
|
+
* @export
|
|
52259
|
+
* @interface ConnectorsDataApiGetDocumentContentByFileIdRequest
|
|
52260
|
+
*/
|
|
52261
|
+
export interface ConnectorsDataApiGetDocumentContentByFileIdRequest {
|
|
52262
|
+
/**
|
|
52263
|
+
*
|
|
52264
|
+
* @type {string}
|
|
52265
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
52266
|
+
*/
|
|
52267
|
+
readonly username: string
|
|
52268
|
+
|
|
52269
|
+
/**
|
|
52270
|
+
*
|
|
52271
|
+
* @type {string}
|
|
52272
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
52273
|
+
*/
|
|
52274
|
+
readonly dataset: string
|
|
52275
|
+
|
|
52276
|
+
/**
|
|
52277
|
+
*
|
|
52278
|
+
* @type {string}
|
|
52279
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
52280
|
+
*/
|
|
52281
|
+
readonly fileId: string
|
|
52282
|
+
|
|
52283
|
+
/**
|
|
52284
|
+
*
|
|
52285
|
+
* @type {number}
|
|
52286
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
52287
|
+
*/
|
|
52288
|
+
readonly connectorId: number
|
|
52289
|
+
|
|
52290
|
+
/**
|
|
52291
|
+
*
|
|
52292
|
+
* @type {string}
|
|
52293
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
52294
|
+
*/
|
|
52295
|
+
readonly conversationId?: string
|
|
52296
|
+
|
|
52297
|
+
/**
|
|
52298
|
+
*
|
|
52299
|
+
* @type {string}
|
|
52300
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
52301
|
+
*/
|
|
52302
|
+
readonly qAnswerApiKey?: string
|
|
52303
|
+
}
|
|
52304
|
+
|
|
52153
52305
|
/**
|
|
52154
52306
|
* Request parameters for getDocumentMetadata operation in ConnectorsDataApi.
|
|
52155
52307
|
* @export
|
|
@@ -52533,6 +52685,18 @@ export class ConnectorsDataApi extends BaseAPI {
|
|
|
52533
52685
|
return ConnectorsDataApiFp(this.configuration).getDocumentContent(requestParameters.username, requestParameters.dataset, requestParameters.filename, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
52534
52686
|
}
|
|
52535
52687
|
|
|
52688
|
+
/**
|
|
52689
|
+
*
|
|
52690
|
+
* @summary To get the content of data inside a connector by file id
|
|
52691
|
+
* @param {ConnectorsDataApiGetDocumentContentByFileIdRequest} requestParameters Request parameters.
|
|
52692
|
+
* @param {*} [options] Override http request option.
|
|
52693
|
+
* @throws {RequiredError}
|
|
52694
|
+
* @memberof ConnectorsDataApi
|
|
52695
|
+
*/
|
|
52696
|
+
public getDocumentContentByFileId(requestParameters: ConnectorsDataApiGetDocumentContentByFileIdRequest, options?: RawAxiosRequestConfig) {
|
|
52697
|
+
return ConnectorsDataApiFp(this.configuration).getDocumentContentByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
52698
|
+
}
|
|
52699
|
+
|
|
52536
52700
|
/**
|
|
52537
52701
|
*
|
|
52538
52702
|
* @summary To get the metadata of data inside a connector
|
package/dist/api.d.ts
CHANGED
|
@@ -37626,6 +37626,19 @@ export declare const ConnectorsDataApiAxiosParamCreator: (configuration?: Config
|
|
|
37626
37626
|
* @throws {RequiredError}
|
|
37627
37627
|
*/
|
|
37628
37628
|
getDocumentContent: (username: string, dataset: string, filename: string, connectorId: number, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37629
|
+
/**
|
|
37630
|
+
*
|
|
37631
|
+
* @summary To get the content of data inside a connector by file id
|
|
37632
|
+
* @param {string} username
|
|
37633
|
+
* @param {string} dataset
|
|
37634
|
+
* @param {string} fileId
|
|
37635
|
+
* @param {number} connectorId
|
|
37636
|
+
* @param {string} [conversationId]
|
|
37637
|
+
* @param {string} [qAnswerApiKey]
|
|
37638
|
+
* @param {*} [options] Override http request option.
|
|
37639
|
+
* @throws {RequiredError}
|
|
37640
|
+
*/
|
|
37641
|
+
getDocumentContentByFileId: (username: string, dataset: string, fileId: string, connectorId: number, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37629
37642
|
/**
|
|
37630
37643
|
*
|
|
37631
37644
|
* @summary To get the metadata of data inside a connector
|
|
@@ -37801,6 +37814,19 @@ export declare const ConnectorsDataApiFp: (configuration?: Configuration) => {
|
|
|
37801
37814
|
* @throws {RequiredError}
|
|
37802
37815
|
*/
|
|
37803
37816
|
getDocumentContent(username: string, dataset: string, filename: string, connectorId: number, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentContentResponse>>;
|
|
37817
|
+
/**
|
|
37818
|
+
*
|
|
37819
|
+
* @summary To get the content of data inside a connector by file id
|
|
37820
|
+
* @param {string} username
|
|
37821
|
+
* @param {string} dataset
|
|
37822
|
+
* @param {string} fileId
|
|
37823
|
+
* @param {number} connectorId
|
|
37824
|
+
* @param {string} [conversationId]
|
|
37825
|
+
* @param {string} [qAnswerApiKey]
|
|
37826
|
+
* @param {*} [options] Override http request option.
|
|
37827
|
+
* @throws {RequiredError}
|
|
37828
|
+
*/
|
|
37829
|
+
getDocumentContentByFileId(username: string, dataset: string, fileId: string, connectorId: number, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentContentResponse>>;
|
|
37804
37830
|
/**
|
|
37805
37831
|
*
|
|
37806
37832
|
* @summary To get the metadata of data inside a connector
|
|
@@ -37956,6 +37982,14 @@ export declare const ConnectorsDataApiFactory: (configuration?: Configuration, b
|
|
|
37956
37982
|
* @throws {RequiredError}
|
|
37957
37983
|
*/
|
|
37958
37984
|
getDocumentContent(requestParameters: ConnectorsDataApiGetDocumentContentRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentContentResponse>;
|
|
37985
|
+
/**
|
|
37986
|
+
*
|
|
37987
|
+
* @summary To get the content of data inside a connector by file id
|
|
37988
|
+
* @param {ConnectorsDataApiGetDocumentContentByFileIdRequest} requestParameters Request parameters.
|
|
37989
|
+
* @param {*} [options] Override http request option.
|
|
37990
|
+
* @throws {RequiredError}
|
|
37991
|
+
*/
|
|
37992
|
+
getDocumentContentByFileId(requestParameters: ConnectorsDataApiGetDocumentContentByFileIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<DocumentContentResponse>;
|
|
37959
37993
|
/**
|
|
37960
37994
|
*
|
|
37961
37995
|
* @summary To get the metadata of data inside a connector
|
|
@@ -38226,6 +38260,49 @@ export interface ConnectorsDataApiGetDocumentContentRequest {
|
|
|
38226
38260
|
*/
|
|
38227
38261
|
readonly qAnswerApiKey?: string;
|
|
38228
38262
|
}
|
|
38263
|
+
/**
|
|
38264
|
+
* Request parameters for getDocumentContentByFileId operation in ConnectorsDataApi.
|
|
38265
|
+
* @export
|
|
38266
|
+
* @interface ConnectorsDataApiGetDocumentContentByFileIdRequest
|
|
38267
|
+
*/
|
|
38268
|
+
export interface ConnectorsDataApiGetDocumentContentByFileIdRequest {
|
|
38269
|
+
/**
|
|
38270
|
+
*
|
|
38271
|
+
* @type {string}
|
|
38272
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
38273
|
+
*/
|
|
38274
|
+
readonly username: string;
|
|
38275
|
+
/**
|
|
38276
|
+
*
|
|
38277
|
+
* @type {string}
|
|
38278
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
38279
|
+
*/
|
|
38280
|
+
readonly dataset: string;
|
|
38281
|
+
/**
|
|
38282
|
+
*
|
|
38283
|
+
* @type {string}
|
|
38284
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
38285
|
+
*/
|
|
38286
|
+
readonly fileId: string;
|
|
38287
|
+
/**
|
|
38288
|
+
*
|
|
38289
|
+
* @type {number}
|
|
38290
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
38291
|
+
*/
|
|
38292
|
+
readonly connectorId: number;
|
|
38293
|
+
/**
|
|
38294
|
+
*
|
|
38295
|
+
* @type {string}
|
|
38296
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
38297
|
+
*/
|
|
38298
|
+
readonly conversationId?: string;
|
|
38299
|
+
/**
|
|
38300
|
+
*
|
|
38301
|
+
* @type {string}
|
|
38302
|
+
* @memberof ConnectorsDataApiGetDocumentContentByFileId
|
|
38303
|
+
*/
|
|
38304
|
+
readonly qAnswerApiKey?: string;
|
|
38305
|
+
}
|
|
38229
38306
|
/**
|
|
38230
38307
|
* Request parameters for getDocumentMetadata operation in ConnectorsDataApi.
|
|
38231
38308
|
* @export
|
|
@@ -38555,6 +38632,15 @@ export declare class ConnectorsDataApi extends BaseAPI {
|
|
|
38555
38632
|
* @memberof ConnectorsDataApi
|
|
38556
38633
|
*/
|
|
38557
38634
|
getDocumentContent(requestParameters: ConnectorsDataApiGetDocumentContentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentContentResponse, any, {}>>;
|
|
38635
|
+
/**
|
|
38636
|
+
*
|
|
38637
|
+
* @summary To get the content of data inside a connector by file id
|
|
38638
|
+
* @param {ConnectorsDataApiGetDocumentContentByFileIdRequest} requestParameters Request parameters.
|
|
38639
|
+
* @param {*} [options] Override http request option.
|
|
38640
|
+
* @throws {RequiredError}
|
|
38641
|
+
* @memberof ConnectorsDataApi
|
|
38642
|
+
*/
|
|
38643
|
+
getDocumentContentByFileId(requestParameters: ConnectorsDataApiGetDocumentContentByFileIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentContentResponse, any, {}>>;
|
|
38558
38644
|
/**
|
|
38559
38645
|
*
|
|
38560
38646
|
* @summary To get the metadata of data inside a connector
|
package/dist/api.js
CHANGED
|
@@ -27671,6 +27671,89 @@ var ConnectorsDataApiAxiosParamCreator = function (configuration) {
|
|
|
27671
27671
|
});
|
|
27672
27672
|
});
|
|
27673
27673
|
},
|
|
27674
|
+
/**
|
|
27675
|
+
*
|
|
27676
|
+
* @summary To get the content of data inside a connector by file id
|
|
27677
|
+
* @param {string} username
|
|
27678
|
+
* @param {string} dataset
|
|
27679
|
+
* @param {string} fileId
|
|
27680
|
+
* @param {number} connectorId
|
|
27681
|
+
* @param {string} [conversationId]
|
|
27682
|
+
* @param {string} [qAnswerApiKey]
|
|
27683
|
+
* @param {*} [options] Override http request option.
|
|
27684
|
+
* @throws {RequiredError}
|
|
27685
|
+
*/
|
|
27686
|
+
getDocumentContentByFileId: function (username_1, dataset_1, fileId_1, connectorId_1, conversationId_1, qAnswerApiKey_1) {
|
|
27687
|
+
var args_1 = [];
|
|
27688
|
+
for (var _i = 6; _i < arguments.length; _i++) {
|
|
27689
|
+
args_1[_i - 6] = arguments[_i];
|
|
27690
|
+
}
|
|
27691
|
+
return __awaiter(_this, __spreadArray([username_1, dataset_1, fileId_1, connectorId_1, conversationId_1, qAnswerApiKey_1], args_1, true), void 0, function (username, dataset, fileId, connectorId, conversationId, qAnswerApiKey, options) {
|
|
27692
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
27693
|
+
if (options === void 0) { options = {}; }
|
|
27694
|
+
return __generator(this, function (_a) {
|
|
27695
|
+
switch (_a.label) {
|
|
27696
|
+
case 0:
|
|
27697
|
+
// verify required parameter 'username' is not null or undefined
|
|
27698
|
+
(0, common_1.assertParamExists)('getDocumentContentByFileId', 'username', username);
|
|
27699
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
27700
|
+
(0, common_1.assertParamExists)('getDocumentContentByFileId', 'dataset', dataset);
|
|
27701
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
27702
|
+
(0, common_1.assertParamExists)('getDocumentContentByFileId', 'fileId', fileId);
|
|
27703
|
+
// verify required parameter 'connectorId' is not null or undefined
|
|
27704
|
+
(0, common_1.assertParamExists)('getDocumentContentByFileId', 'connectorId', connectorId);
|
|
27705
|
+
localVarPath = "/api/connectors-data/content/by-file-id";
|
|
27706
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27707
|
+
if (configuration) {
|
|
27708
|
+
baseOptions = configuration.baseOptions;
|
|
27709
|
+
}
|
|
27710
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
27711
|
+
localVarHeaderParameter = {};
|
|
27712
|
+
localVarQueryParameter = {};
|
|
27713
|
+
// authentication QAnswer-Api-Key required
|
|
27714
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
27715
|
+
// authentication Bearer required
|
|
27716
|
+
// http bearer authentication required
|
|
27717
|
+
];
|
|
27718
|
+
case 1:
|
|
27719
|
+
// authentication QAnswer-Api-Key required
|
|
27720
|
+
_a.sent();
|
|
27721
|
+
// authentication Bearer required
|
|
27722
|
+
// http bearer authentication required
|
|
27723
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
27724
|
+
case 2:
|
|
27725
|
+
// authentication Bearer required
|
|
27726
|
+
// http bearer authentication required
|
|
27727
|
+
_a.sent();
|
|
27728
|
+
if (username !== undefined) {
|
|
27729
|
+
localVarQueryParameter['username'] = username;
|
|
27730
|
+
}
|
|
27731
|
+
if (dataset !== undefined) {
|
|
27732
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
27733
|
+
}
|
|
27734
|
+
if (fileId !== undefined) {
|
|
27735
|
+
localVarQueryParameter['fileId'] = fileId;
|
|
27736
|
+
}
|
|
27737
|
+
if (connectorId !== undefined) {
|
|
27738
|
+
localVarQueryParameter['connectorId'] = connectorId;
|
|
27739
|
+
}
|
|
27740
|
+
if (conversationId !== undefined) {
|
|
27741
|
+
localVarQueryParameter['conversationId'] = conversationId;
|
|
27742
|
+
}
|
|
27743
|
+
if (qAnswerApiKey != null) {
|
|
27744
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
27745
|
+
}
|
|
27746
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27747
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27748
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27749
|
+
return [2 /*return*/, {
|
|
27750
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27751
|
+
options: localVarRequestOptions,
|
|
27752
|
+
}];
|
|
27753
|
+
}
|
|
27754
|
+
});
|
|
27755
|
+
});
|
|
27756
|
+
},
|
|
27674
27757
|
/**
|
|
27675
27758
|
*
|
|
27676
27759
|
* @summary To get the metadata of data inside a connector
|
|
@@ -28475,6 +28558,34 @@ var ConnectorsDataApiFp = function (configuration) {
|
|
|
28475
28558
|
});
|
|
28476
28559
|
});
|
|
28477
28560
|
},
|
|
28561
|
+
/**
|
|
28562
|
+
*
|
|
28563
|
+
* @summary To get the content of data inside a connector by file id
|
|
28564
|
+
* @param {string} username
|
|
28565
|
+
* @param {string} dataset
|
|
28566
|
+
* @param {string} fileId
|
|
28567
|
+
* @param {number} connectorId
|
|
28568
|
+
* @param {string} [conversationId]
|
|
28569
|
+
* @param {string} [qAnswerApiKey]
|
|
28570
|
+
* @param {*} [options] Override http request option.
|
|
28571
|
+
* @throws {RequiredError}
|
|
28572
|
+
*/
|
|
28573
|
+
getDocumentContentByFileId: function (username, dataset, fileId, connectorId, conversationId, qAnswerApiKey, options) {
|
|
28574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
28575
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
28576
|
+
var _a, _b, _c;
|
|
28577
|
+
return __generator(this, function (_d) {
|
|
28578
|
+
switch (_d.label) {
|
|
28579
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getDocumentContentByFileId(username, dataset, fileId, connectorId, conversationId, qAnswerApiKey, options)];
|
|
28580
|
+
case 1:
|
|
28581
|
+
localVarAxiosArgs = _d.sent();
|
|
28582
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
28583
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ConnectorsDataApi.getDocumentContentByFileId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
28584
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
28585
|
+
}
|
|
28586
|
+
});
|
|
28587
|
+
});
|
|
28588
|
+
},
|
|
28478
28589
|
/**
|
|
28479
28590
|
*
|
|
28480
28591
|
* @summary To get the metadata of data inside a connector
|
|
@@ -28783,6 +28894,16 @@ var ConnectorsDataApiFactory = function (configuration, basePath, axios) {
|
|
|
28783
28894
|
getDocumentContent: function (requestParameters, options) {
|
|
28784
28895
|
return localVarFp.getDocumentContent(requestParameters.username, requestParameters.dataset, requestParameters.filename, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
|
|
28785
28896
|
},
|
|
28897
|
+
/**
|
|
28898
|
+
*
|
|
28899
|
+
* @summary To get the content of data inside a connector by file id
|
|
28900
|
+
* @param {ConnectorsDataApiGetDocumentContentByFileIdRequest} requestParameters Request parameters.
|
|
28901
|
+
* @param {*} [options] Override http request option.
|
|
28902
|
+
* @throws {RequiredError}
|
|
28903
|
+
*/
|
|
28904
|
+
getDocumentContentByFileId: function (requestParameters, options) {
|
|
28905
|
+
return localVarFp.getDocumentContentByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(axios, basePath); });
|
|
28906
|
+
},
|
|
28786
28907
|
/**
|
|
28787
28908
|
*
|
|
28788
28909
|
* @summary To get the metadata of data inside a connector
|
|
@@ -28968,6 +29089,18 @@ var ConnectorsDataApi = /** @class */ (function (_super) {
|
|
|
28968
29089
|
var _this = this;
|
|
28969
29090
|
return (0, exports.ConnectorsDataApiFp)(this.configuration).getDocumentContent(requestParameters.username, requestParameters.dataset, requestParameters.filename, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
28970
29091
|
};
|
|
29092
|
+
/**
|
|
29093
|
+
*
|
|
29094
|
+
* @summary To get the content of data inside a connector by file id
|
|
29095
|
+
* @param {ConnectorsDataApiGetDocumentContentByFileIdRequest} requestParameters Request parameters.
|
|
29096
|
+
* @param {*} [options] Override http request option.
|
|
29097
|
+
* @throws {RequiredError}
|
|
29098
|
+
* @memberof ConnectorsDataApi
|
|
29099
|
+
*/
|
|
29100
|
+
ConnectorsDataApi.prototype.getDocumentContentByFileId = function (requestParameters, options) {
|
|
29101
|
+
var _this = this;
|
|
29102
|
+
return (0, exports.ConnectorsDataApiFp)(this.configuration).getDocumentContentByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.connectorId, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
29103
|
+
};
|
|
28971
29104
|
/**
|
|
28972
29105
|
*
|
|
28973
29106
|
* @summary To get the metadata of data inside a connector
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|