@closerplatform/spinner-openapi 0.12.606 → 0.12.608
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 +17 -12
- package/dist/api.js +15 -8
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2342,12 +2342,6 @@ export interface FileDto {
|
|
|
2342
2342
|
* @memberof FileDto
|
|
2343
2343
|
*/
|
|
2344
2344
|
roomId?: string;
|
|
2345
|
-
/**
|
|
2346
|
-
*
|
|
2347
|
-
* @type {string}
|
|
2348
|
-
* @memberof FileDto
|
|
2349
|
-
*/
|
|
2350
|
-
callback?: string;
|
|
2351
2345
|
/**
|
|
2352
2346
|
*
|
|
2353
2347
|
* @type {FileInfo}
|
|
@@ -3428,12 +3422,19 @@ export interface KnowledgeBaseCreateForm {
|
|
|
3428
3422
|
* @memberof KnowledgeBaseCreateForm
|
|
3429
3423
|
*/
|
|
3430
3424
|
name: string;
|
|
3425
|
+
}
|
|
3426
|
+
/**
|
|
3427
|
+
*
|
|
3428
|
+
* @export
|
|
3429
|
+
* @interface KnowledgeBaseUpdateForm
|
|
3430
|
+
*/
|
|
3431
|
+
export interface KnowledgeBaseUpdateForm {
|
|
3431
3432
|
/**
|
|
3432
3433
|
*
|
|
3433
3434
|
* @type {string}
|
|
3434
|
-
* @memberof
|
|
3435
|
+
* @memberof KnowledgeBaseUpdateForm
|
|
3435
3436
|
*/
|
|
3436
|
-
|
|
3437
|
+
name: string;
|
|
3437
3438
|
}
|
|
3438
3439
|
/**
|
|
3439
3440
|
*
|
|
@@ -9439,10 +9440,11 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
|
|
|
9439
9440
|
*
|
|
9440
9441
|
* @summary Update knowledge base
|
|
9441
9442
|
* @param {string} id
|
|
9443
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
9442
9444
|
* @param {*} [options] Override http request option.
|
|
9443
9445
|
* @throws {RequiredError}
|
|
9444
9446
|
*/
|
|
9445
|
-
update(id: string, options?: any): FetchArgs;
|
|
9447
|
+
update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): FetchArgs;
|
|
9446
9448
|
};
|
|
9447
9449
|
/**
|
|
9448
9450
|
* KnowledgeBasesApi - functional programming interface
|
|
@@ -9501,10 +9503,11 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
|
|
|
9501
9503
|
*
|
|
9502
9504
|
* @summary Update knowledge base
|
|
9503
9505
|
* @param {string} id
|
|
9506
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
9504
9507
|
* @param {*} [options] Override http request option.
|
|
9505
9508
|
* @throws {RequiredError}
|
|
9506
9509
|
*/
|
|
9507
|
-
update(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
9510
|
+
update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
9508
9511
|
};
|
|
9509
9512
|
/**
|
|
9510
9513
|
* KnowledgeBasesApi - factory interface
|
|
@@ -9563,10 +9566,11 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
|
|
|
9563
9566
|
*
|
|
9564
9567
|
* @summary Update knowledge base
|
|
9565
9568
|
* @param {string} id
|
|
9569
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
9566
9570
|
* @param {*} [options] Override http request option.
|
|
9567
9571
|
* @throws {RequiredError}
|
|
9568
9572
|
*/
|
|
9569
|
-
update(id: string, options?: any): Promise<Response>;
|
|
9573
|
+
update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): Promise<Response>;
|
|
9570
9574
|
};
|
|
9571
9575
|
/**
|
|
9572
9576
|
* KnowledgeBasesApi - object-oriented interface
|
|
@@ -9633,11 +9637,12 @@ export declare class KnowledgeBasesApi extends BaseAPI {
|
|
|
9633
9637
|
*
|
|
9634
9638
|
* @summary Update knowledge base
|
|
9635
9639
|
* @param {string} id
|
|
9640
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
9636
9641
|
* @param {*} [options] Override http request option.
|
|
9637
9642
|
* @throws {RequiredError}
|
|
9638
9643
|
* @memberof KnowledgeBasesApi
|
|
9639
9644
|
*/
|
|
9640
|
-
update(id: string, options?: any): Promise<Response>;
|
|
9645
|
+
update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): Promise<Response>;
|
|
9641
9646
|
}
|
|
9642
9647
|
/**
|
|
9643
9648
|
* MainNotificationsApi - fetch parameter creator
|
package/dist/api.js
CHANGED
|
@@ -5140,7 +5140,7 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5140
5140
|
if (id === null || id === undefined) {
|
|
5141
5141
|
throw new RequiredError('id', 'Required parameter id was null or undefined when calling getUploadedFiles.');
|
|
5142
5142
|
}
|
|
5143
|
-
const localVarPath = `/knowledge-bases/{id}`
|
|
5143
|
+
const localVarPath = `/knowledge-bases/{id}/files`
|
|
5144
5144
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5145
5145
|
const localVarUrlObj = url.parse(localVarPath, true);
|
|
5146
5146
|
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
@@ -5166,10 +5166,11 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5166
5166
|
*
|
|
5167
5167
|
* @summary Update knowledge base
|
|
5168
5168
|
* @param {string} id
|
|
5169
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
5169
5170
|
* @param {*} [options] Override http request option.
|
|
5170
5171
|
* @throws {RequiredError}
|
|
5171
5172
|
*/
|
|
5172
|
-
update(id, options = {}) {
|
|
5173
|
+
update(id, body, options = {}) {
|
|
5173
5174
|
// verify required parameter 'id' is not null or undefined
|
|
5174
5175
|
if (id === null || id === undefined) {
|
|
5175
5176
|
throw new RequiredError('id', 'Required parameter id was null or undefined when calling update.');
|
|
@@ -5187,10 +5188,13 @@ const KnowledgeBasesApiFetchParamCreator = function (configuration) {
|
|
|
5187
5188
|
: configuration.apiKey;
|
|
5188
5189
|
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
5189
5190
|
}
|
|
5191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5190
5192
|
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
5191
5193
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
5192
5194
|
delete localVarUrlObj.search;
|
|
5193
5195
|
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
5196
|
+
const needsSerialization = ("KnowledgeBaseUpdateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
5197
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
5194
5198
|
return {
|
|
5195
5199
|
url: url.format(localVarUrlObj),
|
|
5196
5200
|
options: localVarRequestOptions,
|
|
@@ -5329,11 +5333,12 @@ const KnowledgeBasesApiFp = function (configuration) {
|
|
|
5329
5333
|
*
|
|
5330
5334
|
* @summary Update knowledge base
|
|
5331
5335
|
* @param {string} id
|
|
5336
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
5332
5337
|
* @param {*} [options] Override http request option.
|
|
5333
5338
|
* @throws {RequiredError}
|
|
5334
5339
|
*/
|
|
5335
|
-
update(id, options) {
|
|
5336
|
-
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).update(id, options);
|
|
5340
|
+
update(id, body, options) {
|
|
5341
|
+
const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration).update(id, body, options);
|
|
5337
5342
|
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
5338
5343
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
5339
5344
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -5418,11 +5423,12 @@ const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
|
|
|
5418
5423
|
*
|
|
5419
5424
|
* @summary Update knowledge base
|
|
5420
5425
|
* @param {string} id
|
|
5426
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
5421
5427
|
* @param {*} [options] Override http request option.
|
|
5422
5428
|
* @throws {RequiredError}
|
|
5423
5429
|
*/
|
|
5424
|
-
update(id, options) {
|
|
5425
|
-
return (0, exports.KnowledgeBasesApiFp)(configuration).update(id, options)(fetch, basePath);
|
|
5430
|
+
update(id, body, options) {
|
|
5431
|
+
return (0, exports.KnowledgeBasesApiFp)(configuration).update(id, body, options)(fetch, basePath);
|
|
5426
5432
|
},
|
|
5427
5433
|
};
|
|
5428
5434
|
};
|
|
@@ -5504,12 +5510,13 @@ class KnowledgeBasesApi extends BaseAPI {
|
|
|
5504
5510
|
*
|
|
5505
5511
|
* @summary Update knowledge base
|
|
5506
5512
|
* @param {string} id
|
|
5513
|
+
* @param {KnowledgeBaseUpdateForm} [body]
|
|
5507
5514
|
* @param {*} [options] Override http request option.
|
|
5508
5515
|
* @throws {RequiredError}
|
|
5509
5516
|
* @memberof KnowledgeBasesApi
|
|
5510
5517
|
*/
|
|
5511
|
-
update(id, options) {
|
|
5512
|
-
return (0, exports.KnowledgeBasesApiFp)(this.configuration).update(id, options)(this.fetch, this.basePath);
|
|
5518
|
+
update(id, body, options) {
|
|
5519
|
+
return (0, exports.KnowledgeBasesApiFp)(this.configuration).update(id, body, options)(this.fetch, this.basePath);
|
|
5513
5520
|
}
|
|
5514
5521
|
}
|
|
5515
5522
|
exports.KnowledgeBasesApi = KnowledgeBasesApi;
|