@closerplatform/spinner-openapi 0.12.604 → 0.12.606

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
@@ -9387,6 +9387,14 @@ export declare class InviteesApi extends BaseAPI {
9387
9387
  * @export
9388
9388
  */
9389
9389
  export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Configuration) => {
9390
+ /**
9391
+ *
9392
+ * @summary Delete knowledge base with its files
9393
+ * @param {string} id
9394
+ * @param {*} [options] Override http request option.
9395
+ * @throws {RequiredError}
9396
+ */
9397
+ _delete(id: string, options?: any): FetchArgs;
9390
9398
  /**
9391
9399
  *
9392
9400
  * @summary Create knowledge base
@@ -9441,6 +9449,14 @@ export declare const KnowledgeBasesApiFetchParamCreator: (configuration?: Config
9441
9449
  * @export
9442
9450
  */
9443
9451
  export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
9452
+ /**
9453
+ *
9454
+ * @summary Delete knowledge base with its files
9455
+ * @param {string} id
9456
+ * @param {*} [options] Override http request option.
9457
+ * @throws {RequiredError}
9458
+ */
9459
+ _delete(id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
9444
9460
  /**
9445
9461
  *
9446
9462
  * @summary Create knowledge base
@@ -9495,6 +9511,14 @@ export declare const KnowledgeBasesApiFp: (configuration?: Configuration) => {
9495
9511
  * @export
9496
9512
  */
9497
9513
  export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
9514
+ /**
9515
+ *
9516
+ * @summary Delete knowledge base with its files
9517
+ * @param {string} id
9518
+ * @param {*} [options] Override http request option.
9519
+ * @throws {RequiredError}
9520
+ */
9521
+ _delete(id: string, options?: any): Promise<Response>;
9498
9522
  /**
9499
9523
  *
9500
9524
  * @summary Create knowledge base
@@ -9551,6 +9575,15 @@ export declare const KnowledgeBasesApiFactory: (configuration?: Configuration, f
9551
9575
  * @extends {BaseAPI}
9552
9576
  */
9553
9577
  export declare class KnowledgeBasesApi extends BaseAPI {
9578
+ /**
9579
+ *
9580
+ * @summary Delete knowledge base with its files
9581
+ * @param {string} id
9582
+ * @param {*} [options] Override http request option.
9583
+ * @throws {RequiredError}
9584
+ * @memberof KnowledgeBasesApi
9585
+ */
9586
+ _delete(id: string, options?: any): Promise<Response>;
9554
9587
  /**
9555
9588
  *
9556
9589
  * @summary Create knowledge base
package/dist/api.js CHANGED
@@ -4956,6 +4956,40 @@ exports.InviteesApi = InviteesApi;
4956
4956
  */
4957
4957
  const KnowledgeBasesApiFetchParamCreator = function (configuration) {
4958
4958
  return {
4959
+ /**
4960
+ *
4961
+ * @summary Delete knowledge base with its files
4962
+ * @param {string} id
4963
+ * @param {*} [options] Override http request option.
4964
+ * @throws {RequiredError}
4965
+ */
4966
+ _delete(id, options = {}) {
4967
+ // verify required parameter 'id' is not null or undefined
4968
+ if (id === null || id === undefined) {
4969
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling _delete.');
4970
+ }
4971
+ const localVarPath = `/knowledge-bases/{id}`
4972
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4973
+ const localVarUrlObj = url.parse(localVarPath, true);
4974
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
4975
+ const localVarHeaderParameter = {};
4976
+ const localVarQueryParameter = {};
4977
+ // authentication apiKey required
4978
+ if (configuration && configuration.apiKey) {
4979
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4980
+ ? configuration.apiKey("X-Api-Key")
4981
+ : configuration.apiKey;
4982
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4983
+ }
4984
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4985
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4986
+ delete localVarUrlObj.search;
4987
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4988
+ return {
4989
+ url: url.format(localVarUrlObj),
4990
+ options: localVarRequestOptions,
4991
+ };
4992
+ },
4959
4993
  /**
4960
4994
  *
4961
4995
  * @summary Create knowledge base
@@ -5171,6 +5205,26 @@ exports.KnowledgeBasesApiFetchParamCreator = KnowledgeBasesApiFetchParamCreator;
5171
5205
  */
5172
5206
  const KnowledgeBasesApiFp = function (configuration) {
5173
5207
  return {
5208
+ /**
5209
+ *
5210
+ * @summary Delete knowledge base with its files
5211
+ * @param {string} id
5212
+ * @param {*} [options] Override http request option.
5213
+ * @throws {RequiredError}
5214
+ */
5215
+ _delete(id, options) {
5216
+ const localVarFetchArgs = (0, exports.KnowledgeBasesApiFetchParamCreator)(configuration)._delete(id, options);
5217
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
5218
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
5219
+ if (response.status >= 200 && response.status < 300) {
5220
+ return response;
5221
+ }
5222
+ else {
5223
+ throw response;
5224
+ }
5225
+ });
5226
+ };
5227
+ },
5174
5228
  /**
5175
5229
  *
5176
5230
  * @summary Create knowledge base
@@ -5300,6 +5354,16 @@ exports.KnowledgeBasesApiFp = KnowledgeBasesApiFp;
5300
5354
  */
5301
5355
  const KnowledgeBasesApiFactory = function (configuration, fetch, basePath) {
5302
5356
  return {
5357
+ /**
5358
+ *
5359
+ * @summary Delete knowledge base with its files
5360
+ * @param {string} id
5361
+ * @param {*} [options] Override http request option.
5362
+ * @throws {RequiredError}
5363
+ */
5364
+ _delete(id, options) {
5365
+ return (0, exports.KnowledgeBasesApiFp)(configuration)._delete(id, options)(fetch, basePath);
5366
+ },
5303
5367
  /**
5304
5368
  *
5305
5369
  * @summary Create knowledge base
@@ -5370,6 +5434,17 @@ exports.KnowledgeBasesApiFactory = KnowledgeBasesApiFactory;
5370
5434
  * @extends {BaseAPI}
5371
5435
  */
5372
5436
  class KnowledgeBasesApi extends BaseAPI {
5437
+ /**
5438
+ *
5439
+ * @summary Delete knowledge base with its files
5440
+ * @param {string} id
5441
+ * @param {*} [options] Override http request option.
5442
+ * @throws {RequiredError}
5443
+ * @memberof KnowledgeBasesApi
5444
+ */
5445
+ _delete(id, options) {
5446
+ return (0, exports.KnowledgeBasesApiFp)(this.configuration)._delete(id, options)(this.fetch, this.basePath);
5447
+ }
5373
5448
  /**
5374
5449
  *
5375
5450
  * @summary Create knowledge base
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.604",
3
+ "version": "0.12.606",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [