@closerplatform/spinner-openapi 0.12.589 → 0.12.590
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +37 -0
- package/dist/api.js +84 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -9307,6 +9307,15 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9307
9307
|
* @throws {RequiredError}
|
|
9308
9308
|
*/
|
|
9309
9309
|
createFile(id: string, options?: any): FetchArgs;
|
|
9310
|
+
/**
|
|
9311
|
+
*
|
|
9312
|
+
* @summary Delete knowledge base's file
|
|
9313
|
+
* @param {string} knowledgeBaseId
|
|
9314
|
+
* @param {string} fileId
|
|
9315
|
+
* @param {*} [options] Override http request option.
|
|
9316
|
+
* @throws {RequiredError}
|
|
9317
|
+
*/
|
|
9318
|
+
deleteFile(knowledgeBaseId: string, fileId: string, options?: any): FetchArgs;
|
|
9310
9319
|
/**
|
|
9311
9320
|
*
|
|
9312
9321
|
* @summary Get knowledge bases by orgId
|
|
@@ -9343,6 +9352,15 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9343
9352
|
* @throws {RequiredError}
|
|
9344
9353
|
*/
|
|
9345
9354
|
createFile(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9355
|
+
/**
|
|
9356
|
+
*
|
|
9357
|
+
* @summary Delete knowledge base's file
|
|
9358
|
+
* @param {string} knowledgeBaseId
|
|
9359
|
+
* @param {string} fileId
|
|
9360
|
+
* @param {*} [options] Override http request option.
|
|
9361
|
+
* @throws {RequiredError}
|
|
9362
|
+
*/
|
|
9363
|
+
deleteFile(knowledgeBaseId: string, fileId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
9346
9364
|
/**
|
|
9347
9365
|
*
|
|
9348
9366
|
* @summary Get knowledge bases by orgId
|
|
@@ -9379,6 +9397,15 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9379
9397
|
* @throws {RequiredError}
|
|
9380
9398
|
*/
|
|
9381
9399
|
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9400
|
+
/**
|
|
9401
|
+
*
|
|
9402
|
+
* @summary Delete knowledge base's file
|
|
9403
|
+
* @param {string} knowledgeBaseId
|
|
9404
|
+
* @param {string} fileId
|
|
9405
|
+
* @param {*} [options] Override http request option.
|
|
9406
|
+
* @throws {RequiredError}
|
|
9407
|
+
*/
|
|
9408
|
+
deleteFile(knowledgeBaseId: string, fileId: string, options?: any): Promise<Response>;
|
|
9382
9409
|
/**
|
|
9383
9410
|
*
|
|
9384
9411
|
* @summary Get knowledge bases by orgId
|
|
@@ -9419,6 +9446,16 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9419
9446
|
* @memberof KnowledgeBasesApi
|
|
9420
9447
|
*/
|
|
9421
9448
|
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9449
|
+
/**
|
|
9450
|
+
*
|
|
9451
|
+
* @summary Delete knowledge base's file
|
|
9452
|
+
* @param {string} knowledgeBaseId
|
|
9453
|
+
* @param {string} fileId
|
|
9454
|
+
* @param {*} [options] Override http request option.
|
|
9455
|
+
* @throws {RequiredError}
|
|
9456
|
+
* @memberof KnowledgeBasesApi
|
|
9457
|
+
*/
|
|
9458
|
+
deleteFile(knowledgeBaseId: string, fileId: string, options?: any): Promise<Response>;
|
|
9422
9459
|
/**
|
|
9423
9460
|
*
|
|
9424
9461
|
* @summary Get knowledge bases by orgId
|
package/dist/api.js
CHANGED
|
@@ -4941,6 +4941,46 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4941
4941
|
options: localVarRequestOptions,
|
|
4942
4942
|
};
|
|
4943
4943
|
},
|
|
4944
|
+
/**
|
|
4945
|
+
*
|
|
4946
|
+
* @summary Delete knowledge base's file
|
|
4947
|
+
* @param {string} knowledgeBaseId
|
|
4948
|
+
* @param {string} fileId
|
|
4949
|
+
* @param {*} [options] Override http request option.
|
|
4950
|
+
* @throws {RequiredError}
|
|
4951
|
+
*/
|
|
4952
|
+
deleteFile(knowledgeBaseId, fileId, options = {}) {
|
|
4953
|
+
// verify required parameter 'knowledgeBaseId' is not null or undefined
|
|
4954
|
+
if (knowledgeBaseId === null || knowledgeBaseId === undefined) {
|
|
4955
|
+
throw new RequiredError('knowledgeBaseId', 'Required parameter knowledgeBaseId was null or undefined when calling deleteFile.');
|
|
4956
|
+
}
|
|
4957
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
4958
|
+
if (fileId === null || fileId === undefined) {
|
|
4959
|
+
throw new RequiredError('fileId', 'Required parameter fileId was null or undefined when calling deleteFile.');
|
|
4960
|
+
}
|
|
4961
|
+
const localVarPath = `/knowledge-bases/{knowledgeBaseId}/files/{fileId}`
|
|
4962
|
+
.replace(`{${"knowledgeBaseId"}}`, encodeURIComponent(String(knowledgeBaseId)))
|
|
4963
|
+
.replace(`{${"fileId"}}`, encodeURIComponent(String(fileId)));
|
|
4964
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4965
|
+
const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
|
|
4966
|
+
const localVarHeaderParameter = {};
|
|
4967
|
+
const localVarQueryParameter = {};
|
|
4968
|
+
// authentication apiKey required
|
|
4969
|
+
if (configuration && configuration.apiKey) {
|
|
4970
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
4971
|
+
? configuration.apiKey("X-Api-Key")
|
|
4972
|
+
: configuration.apiKey;
|
|
4973
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4974
|
+
}
|
|
4975
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4976
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4977
|
+
delete localVarUrlObj.search;
|
|
4978
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
4979
|
+
return {
|
|
4980
|
+
url: url.format(localVarUrlObj),
|
|
4981
|
+
options: localVarRequestOptions,
|
|
4982
|
+
};
|
|
4983
|
+
},
|
|
4944
4984
|
/**
|
|
4945
4985
|
*
|
|
4946
4986
|
* @summary Get knowledge bases by orgId
|
|
@@ -5051,6 +5091,27 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5051
5091
|
});
|
|
5052
5092
|
};
|
|
5053
5093
|
},
|
|
5094
|
+
/**
|
|
5095
|
+
*
|
|
5096
|
+
* @summary Delete knowledge base's file
|
|
5097
|
+
* @param {string} knowledgeBaseId
|
|
5098
|
+
* @param {string} fileId
|
|
5099
|
+
* @param {*} [options] Override http request option.
|
|
5100
|
+
* @throws {RequiredError}
|
|
5101
|
+
*/
|
|
5102
|
+
deleteFile(knowledgeBaseId, fileId, options) {
|
|
5103
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).deleteFile(knowledgeBaseId, fileId, options);
|
|
5104
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5105
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5106
|
+
if (response.status >= 200 && response.status < 300) {
|
|
5107
|
+
return response;
|
|
5108
|
+
}
|
|
5109
|
+
else {
|
|
5110
|
+
throw response;
|
|
5111
|
+
}
|
|
5112
|
+
});
|
|
5113
|
+
};
|
|
5114
|
+
},
|
|
5054
5115
|
/**
|
|
5055
5116
|
*
|
|
5056
5117
|
* @summary Get knowledge bases by orgId
|
|
@@ -5118,6 +5179,17 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5118
5179
|
createFile(id, options) {
|
|
5119
5180
|
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, options)(fetch, basePath);
|
|
5120
5181
|
},
|
|
5182
|
+
/**
|
|
5183
|
+
*
|
|
5184
|
+
* @summary Delete knowledge base's file
|
|
5185
|
+
* @param {string} knowledgeBaseId
|
|
5186
|
+
* @param {string} fileId
|
|
5187
|
+
* @param {*} [options] Override http request option.
|
|
5188
|
+
* @throws {RequiredError}
|
|
5189
|
+
*/
|
|
5190
|
+
deleteFile(knowledgeBaseId, fileId, options) {
|
|
5191
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).deleteFile(knowledgeBaseId, fileId, options)(fetch, basePath);
|
|
5192
|
+
},
|
|
5121
5193
|
/**
|
|
5122
5194
|
*
|
|
5123
5195
|
* @summary Get knowledge bases by orgId
|
|
@@ -5168,6 +5240,18 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5168
5240
|
createFile(id, options) {
|
|
5169
5241
|
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, options)(this.fetch, this.basePath);
|
|
5170
5242
|
}
|
|
5243
|
+
/**
|
|
5244
|
+
*
|
|
5245
|
+
* @summary Delete knowledge base's file
|
|
5246
|
+
* @param {string} knowledgeBaseId
|
|
5247
|
+
* @param {string} fileId
|
|
5248
|
+
* @param {*} [options] Override http request option.
|
|
5249
|
+
* @throws {RequiredError}
|
|
5250
|
+
* @memberof KnowledgeBasesApi
|
|
5251
|
+
*/
|
|
5252
|
+
deleteFile(knowledgeBaseId, fileId, options) {
|
|
5253
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).deleteFile(knowledgeBaseId, fileId, options)(this.fetch, this.basePath);
|
|
5254
|
+
}
|
|
5171
5255
|
/**
|
|
5172
5256
|
*
|
|
5173
5257
|
* @summary Get knowledge bases by orgId
|