@closerplatform/spinner-openapi 0.12.591 → 0.12.592
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 +28 -5
- package/dist/api.js +18 -7
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3367,6 +3367,12 @@ export interface KnowledgeBase {
|
|
|
3367
3367
|
* @memberof KnowledgeBase
|
|
3368
3368
|
*/
|
|
3369
3369
|
id: string;
|
|
3370
|
+
/**
|
|
3371
|
+
*
|
|
3372
|
+
* @type {string}
|
|
3373
|
+
* @memberof KnowledgeBase
|
|
3374
|
+
*/
|
|
3375
|
+
name: string;
|
|
3370
3376
|
/**
|
|
3371
3377
|
*
|
|
3372
3378
|
* @type {string}
|
|
@@ -3384,7 +3390,20 @@ export interface KnowledgeBase {
|
|
|
3384
3390
|
* @type {number}
|
|
3385
3391
|
* @memberof KnowledgeBase
|
|
3386
3392
|
*/
|
|
3387
|
-
updatedAt
|
|
3393
|
+
updatedAt: number;
|
|
3394
|
+
}
|
|
3395
|
+
/**
|
|
3396
|
+
*
|
|
3397
|
+
* @export
|
|
3398
|
+
* @interface KnowledgeBaseCreateForm
|
|
3399
|
+
*/
|
|
3400
|
+
export interface KnowledgeBaseCreateForm {
|
|
3401
|
+
/**
|
|
3402
|
+
*
|
|
3403
|
+
* @type {string}
|
|
3404
|
+
* @memberof KnowledgeBaseCreateForm
|
|
3405
|
+
*/
|
|
3406
|
+
name: string;
|
|
3388
3407
|
}
|
|
3389
3408
|
/**
|
|
3390
3409
|
*
|
|
@@ -9302,11 +9321,12 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9302
9321
|
/**
|
|
9303
9322
|
*
|
|
9304
9323
|
* @summary Create knowledge base's file
|
|
9324
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9305
9325
|
* @param {string} id
|
|
9306
9326
|
* @param {*} [options] Override http request option.
|
|
9307
9327
|
* @throws {RequiredError}
|
|
9308
9328
|
*/
|
|
9309
|
-
createFile(id: string, options?: any): FetchArgs;
|
|
9329
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): FetchArgs;
|
|
9310
9330
|
/**
|
|
9311
9331
|
*
|
|
9312
9332
|
* @summary Delete knowledge base's file
|
|
@@ -9347,11 +9367,12 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9347
9367
|
/**
|
|
9348
9368
|
*
|
|
9349
9369
|
* @summary Create knowledge base's file
|
|
9370
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9350
9371
|
* @param {string} id
|
|
9351
9372
|
* @param {*} [options] Override http request option.
|
|
9352
9373
|
* @throws {RequiredError}
|
|
9353
9374
|
*/
|
|
9354
|
-
createFile(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9375
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
9355
9376
|
/**
|
|
9356
9377
|
*
|
|
9357
9378
|
* @summary Delete knowledge base's file
|
|
@@ -9392,11 +9413,12 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9392
9413
|
/**
|
|
9393
9414
|
*
|
|
9394
9415
|
* @summary Create knowledge base's file
|
|
9416
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9395
9417
|
* @param {string} id
|
|
9396
9418
|
* @param {*} [options] Override http request option.
|
|
9397
9419
|
* @throws {RequiredError}
|
|
9398
9420
|
*/
|
|
9399
|
-
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9421
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): Promise<FileHandle>;
|
|
9400
9422
|
/**
|
|
9401
9423
|
*
|
|
9402
9424
|
* @summary Delete knowledge base's file
|
|
@@ -9440,12 +9462,13 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9440
9462
|
/**
|
|
9441
9463
|
*
|
|
9442
9464
|
* @summary Create knowledge base's file
|
|
9465
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
9443
9466
|
* @param {string} id
|
|
9444
9467
|
* @param {*} [options] Override http request option.
|
|
9445
9468
|
* @throws {RequiredError}
|
|
9446
9469
|
* @memberof KnowledgeBasesApi
|
|
9447
9470
|
*/
|
|
9448
|
-
createFile(id: string, options?: any): Promise<FileHandle>;
|
|
9471
|
+
createFile(body: KnowledgeBaseCreateForm, id: string, options?: any): Promise<FileHandle>;
|
|
9449
9472
|
/**
|
|
9450
9473
|
*
|
|
9451
9474
|
* @summary Delete knowledge base's file
|
package/dist/api.js
CHANGED
|
@@ -4910,11 +4910,16 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4910
4910
|
/**
|
|
4911
4911
|
*
|
|
4912
4912
|
* @summary Create knowledge base's file
|
|
4913
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
4913
4914
|
* @param {string} id
|
|
4914
4915
|
* @param {*} [options] Override http request option.
|
|
4915
4916
|
* @throws {RequiredError}
|
|
4916
4917
|
*/
|
|
4917
|
-
createFile(id, options = {}) {
|
|
4918
|
+
createFile(body, id, options = {}) {
|
|
4919
|
+
// verify required parameter 'body' is not null or undefined
|
|
4920
|
+
if (body === null || body === undefined) {
|
|
4921
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createFile.');
|
|
4922
|
+
}
|
|
4918
4923
|
// verify required parameter 'id' is not null or undefined
|
|
4919
4924
|
if (id === null || id === undefined) {
|
|
4920
4925
|
throw new RequiredError('id', 'Required parameter id was null or undefined when calling createFile.');
|
|
@@ -4932,10 +4937,13 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
4932
4937
|
: configuration.apiKey;
|
|
4933
4938
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4934
4939
|
}
|
|
4940
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4935
4941
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4936
4942
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4937
4943
|
delete localVarUrlObj.search;
|
|
4938
4944
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
4945
|
+
const needsSerialization = ("KnowledgeBaseCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
4946
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
4939
4947
|
return {
|
|
4940
4948
|
url: url.format(localVarUrlObj),
|
|
4941
4949
|
options: localVarRequestOptions,
|
|
@@ -5074,12 +5082,13 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5074
5082
|
/**
|
|
5075
5083
|
*
|
|
5076
5084
|
* @summary Create knowledge base's file
|
|
5085
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5077
5086
|
* @param {string} id
|
|
5078
5087
|
* @param {*} [options] Override http request option.
|
|
5079
5088
|
* @throws {RequiredError}
|
|
5080
5089
|
*/
|
|
5081
|
-
createFile(id, options) {
|
|
5082
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(id, options);
|
|
5090
|
+
createFile(body, id, options) {
|
|
5091
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).createFile(body, id, options);
|
|
5083
5092
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5084
5093
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5085
5094
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -5172,12 +5181,13 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5172
5181
|
/**
|
|
5173
5182
|
*
|
|
5174
5183
|
* @summary Create knowledge base's file
|
|
5184
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5175
5185
|
* @param {string} id
|
|
5176
5186
|
* @param {*} [options] Override http request option.
|
|
5177
5187
|
* @throws {RequiredError}
|
|
5178
5188
|
*/
|
|
5179
|
-
createFile(id, options) {
|
|
5180
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(id, options)(fetch, basePath);
|
|
5189
|
+
createFile(body, id, options) {
|
|
5190
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).createFile(body, id, options)(fetch, basePath);
|
|
5181
5191
|
},
|
|
5182
5192
|
/**
|
|
5183
5193
|
*
|
|
@@ -5232,13 +5242,14 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5232
5242
|
/**
|
|
5233
5243
|
*
|
|
5234
5244
|
* @summary Create knowledge base's file
|
|
5245
|
+
* @param {KnowledgeBaseCreateForm} body
|
|
5235
5246
|
* @param {string} id
|
|
5236
5247
|
* @param {*} [options] Override http request option.
|
|
5237
5248
|
* @throws {RequiredError}
|
|
5238
5249
|
* @memberof KnowledgeBasesApi
|
|
5239
5250
|
*/
|
|
5240
|
-
createFile(id, options) {
|
|
5241
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(id, options)(this.fetch, this.basePath);
|
|
5251
|
+
createFile(body, id, options) {
|
|
5252
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).createFile(body, id, options)(this.fetch, this.basePath);
|
|
5242
5253
|
}
|
|
5243
5254
|
/**
|
|
5244
5255
|
*
|