@closerplatform/spinner-openapi 0.12.134 → 0.12.136

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
@@ -12430,6 +12430,14 @@ export declare const RoomsApiFetchParamCreator: (configuration?: Configuration)
12430
12430
  * @throws {RequiredError}
12431
12431
  */
12432
12432
  addFollower(body: Follower, roomId: string, options?: any): FetchArgs;
12433
+ /**
12434
+ *
12435
+ * @summary Assign conversation
12436
+ * @param {string} roomId The ID of the room of the conversation.
12437
+ * @param {*} [options] Override http request option.
12438
+ * @throws {RequiredError}
12439
+ */
12440
+ assignConversation(roomId: string, options?: any): FetchArgs;
12433
12441
  /**
12434
12442
  *
12435
12443
  * @summary Auto assign conversation
@@ -12561,6 +12569,14 @@ export declare const RoomsApiFp: (configuration?: Configuration) => {
12561
12569
  * @throws {RequiredError}
12562
12570
  */
12563
12571
  addFollower(body: Follower, roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12572
+ /**
12573
+ *
12574
+ * @summary Assign conversation
12575
+ * @param {string} roomId The ID of the room of the conversation.
12576
+ * @param {*} [options] Override http request option.
12577
+ * @throws {RequiredError}
12578
+ */
12579
+ assignConversation(roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12564
12580
  /**
12565
12581
  *
12566
12582
  * @summary Auto assign conversation
@@ -12692,6 +12708,14 @@ export declare const RoomsApiFactory: (configuration?: Configuration, fetch?: Fe
12692
12708
  * @throws {RequiredError}
12693
12709
  */
12694
12710
  addFollower(body: Follower, roomId: string, options?: any): Promise<Response>;
12711
+ /**
12712
+ *
12713
+ * @summary Assign conversation
12714
+ * @param {string} roomId The ID of the room of the conversation.
12715
+ * @param {*} [options] Override http request option.
12716
+ * @throws {RequiredError}
12717
+ */
12718
+ assignConversation(roomId: string, options?: any): Promise<Response>;
12695
12719
  /**
12696
12720
  *
12697
12721
  * @summary Auto assign conversation
@@ -12826,6 +12850,15 @@ export declare class RoomsApi extends BaseAPI {
12826
12850
  * @memberof RoomsApi
12827
12851
  */
12828
12852
  addFollower(body: Follower, roomId: string, options?: any): Promise<Response>;
12853
+ /**
12854
+ *
12855
+ * @summary Assign conversation
12856
+ * @param {string} roomId The ID of the room of the conversation.
12857
+ * @param {*} [options] Override http request option.
12858
+ * @throws {RequiredError}
12859
+ * @memberof RoomsApi
12860
+ */
12861
+ assignConversation(roomId: string, options?: any): Promise<Response>;
12829
12862
  /**
12830
12863
  *
12831
12864
  * @summary Auto assign conversation
package/dist/api.js CHANGED
@@ -12111,6 +12111,40 @@ const RoomsApiFetchParamCreator = function (configuration) {
12111
12111
  options: localVarRequestOptions,
12112
12112
  };
12113
12113
  },
12114
+ /**
12115
+ *
12116
+ * @summary Assign conversation
12117
+ * @param {string} roomId The ID of the room of the conversation.
12118
+ * @param {*} [options] Override http request option.
12119
+ * @throws {RequiredError}
12120
+ */
12121
+ assignConversation(roomId, options = {}) {
12122
+ // verify required parameter 'roomId' is not null or undefined
12123
+ if (roomId === null || roomId === undefined) {
12124
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling assignConversation.');
12125
+ }
12126
+ const localVarPath = `/rooms/{roomId}/assign`
12127
+ .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
12128
+ const localVarUrlObj = url.parse(localVarPath, true);
12129
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
12130
+ const localVarHeaderParameter = {};
12131
+ const localVarQueryParameter = {};
12132
+ // authentication apiKey required
12133
+ if (configuration && configuration.apiKey) {
12134
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
12135
+ ? configuration.apiKey("X-Api-Key")
12136
+ : configuration.apiKey;
12137
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
12138
+ }
12139
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
12140
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
12141
+ delete localVarUrlObj.search;
12142
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
12143
+ return {
12144
+ url: url.format(localVarUrlObj),
12145
+ options: localVarRequestOptions,
12146
+ };
12147
+ },
12114
12148
  /**
12115
12149
  *
12116
12150
  * @summary Auto assign conversation
@@ -12658,6 +12692,26 @@ const RoomsApiFp = function (configuration) {
12658
12692
  });
12659
12693
  };
12660
12694
  },
12695
+ /**
12696
+ *
12697
+ * @summary Assign conversation
12698
+ * @param {string} roomId The ID of the room of the conversation.
12699
+ * @param {*} [options] Override http request option.
12700
+ * @throws {RequiredError}
12701
+ */
12702
+ assignConversation(roomId, options) {
12703
+ const localVarFetchArgs = (0, exports.RoomsApiFetchParamCreator)(configuration).assignConversation(roomId, options);
12704
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12705
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12706
+ if (response.status >= 200 && response.status < 300) {
12707
+ return response;
12708
+ }
12709
+ else {
12710
+ throw response;
12711
+ }
12712
+ });
12713
+ };
12714
+ },
12661
12715
  /**
12662
12716
  *
12663
12717
  * @summary Auto assign conversation
@@ -12962,6 +13016,16 @@ const RoomsApiFactory = function (configuration, fetch, basePath) {
12962
13016
  addFollower(body, roomId, options) {
12963
13017
  return (0, exports.RoomsApiFp)(configuration).addFollower(body, roomId, options)(fetch, basePath);
12964
13018
  },
13019
+ /**
13020
+ *
13021
+ * @summary Assign conversation
13022
+ * @param {string} roomId The ID of the room of the conversation.
13023
+ * @param {*} [options] Override http request option.
13024
+ * @throws {RequiredError}
13025
+ */
13026
+ assignConversation(roomId, options) {
13027
+ return (0, exports.RoomsApiFp)(configuration).assignConversation(roomId, options)(fetch, basePath);
13028
+ },
12965
13029
  /**
12966
13030
  *
12967
13031
  * @summary Auto assign conversation
@@ -13128,6 +13192,17 @@ class RoomsApi extends BaseAPI {
13128
13192
  addFollower(body, roomId, options) {
13129
13193
  return (0, exports.RoomsApiFp)(this.configuration).addFollower(body, roomId, options)(this.fetch, this.basePath);
13130
13194
  }
13195
+ /**
13196
+ *
13197
+ * @summary Assign conversation
13198
+ * @param {string} roomId The ID of the room of the conversation.
13199
+ * @param {*} [options] Override http request option.
13200
+ * @throws {RequiredError}
13201
+ * @memberof RoomsApi
13202
+ */
13203
+ assignConversation(roomId, options) {
13204
+ return (0, exports.RoomsApiFp)(this.configuration).assignConversation(roomId, options)(this.fetch, this.basePath);
13205
+ }
13131
13206
  /**
13132
13207
  *
13133
13208
  * @summary Auto assign conversation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.134",
3
+ "version": "0.12.136",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [