@closerplatform/spinner-openapi 0.12.606 → 0.12.607

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 CHANGED
@@ -3428,12 +3428,19 @@ export interface KnowledgeBaseCreateForm {
3428
3428
  * @memberof KnowledgeBaseCreateForm
3429
3429
  */
3430
3430
  name: string;
3431
+ }
3432
+ /**
3433
+ *
3434
+ * @export
3435
+ * @interface KnowledgeBaseUpdateForm
3436
+ */
3437
+ export interface KnowledgeBaseUpdateForm {
3431
3438
  /**
3432
3439
  *
3433
3440
  * @type {string}
3434
- * @memberof KnowledgeBaseCreateForm
3441
+ * @memberof KnowledgeBaseUpdateForm
3435
3442
  */
3436
- description?: string;
3443
+ name: string;
3437
3444
  }
3438
3445
  /**
3439
3446
  *
@@ -9439,10 +9446,11 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
9439
9446
  *
9440
9447
  * @summary Update knowledge base
9441
9448
  * @param {string} id
9449
+ * @param {KnowledgeBaseUpdateForm} [body]
9442
9450
  * @param {*} [options] Override http request option.
9443
9451
  * @throws {RequiredError}
9444
9452
  */
9445
- update(id: string, options?: any): FetchArgs;
9453
+ update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): FetchArgs;
9446
9454
  };
9447
9455
  /**
9448
9456
  * KnowledgeBasesApi - functional programming interface
@@ -9501,10 +9509,11 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
9501
9509
  *
9502
9510
  * @summary Update knowledge base
9503
9511
  * @param {string} id
9512
+ * @param {KnowledgeBaseUpdateForm} [body]
9504
9513
  * @param {*} [options] Override http request option.
9505
9514
  * @throws {RequiredError}
9506
9515
  */
9507
- update(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
9516
+ update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
9508
9517
  };
9509
9518
  /**
9510
9519
  * KnowledgeBasesApi - factory interface
@@ -9563,10 +9572,11 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
9563
9572
  *
9564
9573
  * @summary Update knowledge base
9565
9574
  * @param {string} id
9575
+ * @param {KnowledgeBaseUpdateForm} [body]
9566
9576
  * @param {*} [options] Override http request option.
9567
9577
  * @throws {RequiredError}
9568
9578
  */
9569
- update(id: string, options?: any): Promise<Response>;
9579
+ update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): Promise<Response>;
9570
9580
  };
9571
9581
  /**
9572
9582
  * KnowledgeBasesApi - object-oriented interface
@@ -9633,11 +9643,12 @@ export declare class KnowledgeBasesApi extends BaseAPI {
9633
9643
  *
9634
9644
  * @summary Update knowledge base
9635
9645
  * @param {string} id
9646
+ * @param {KnowledgeBaseUpdateForm} [body]
9636
9647
  * @param {*} [options] Override http request option.
9637
9648
  * @throws {RequiredError}
9638
9649
  * @memberof KnowledgeBasesApi
9639
9650
  */
9640
- update(id: string, options?: any): Promise<Response>;
9651
+ update(id: string, body?: KnowledgeBaseUpdateForm, options?: any): Promise<Response>;
9641
9652
  }
9642
9653
  /**
9643
9654
  * MainNotificationsApi - fetch parameter creator
package/dist/api.js CHANGED
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.606",
3
+ "version": "0.12.607",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [