@closerplatform/spinner-openapi 0.12.412 → 0.12.414

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +28 -28
  2. package/dist/api.js +47 -47
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -2631,13 +2631,13 @@ export interface GuestProfile {
2631
2631
  * @type {string}
2632
2632
  * @memberof GuestProfile
2633
2633
  */
2634
- languageLocale?: string;
2634
+ languageLocale: string;
2635
2635
  /**
2636
2636
  *
2637
2637
  * @type {string}
2638
2638
  * @memberof GuestProfile
2639
2639
  */
2640
- zoneId?: string;
2640
+ zoneId: string;
2641
2641
  /**
2642
2642
  *
2643
2643
  * @type {string}
@@ -2661,7 +2661,7 @@ export interface GuestProfile {
2661
2661
  * @type {Array<BackOfficeField>}
2662
2662
  * @memberof GuestProfile
2663
2663
  */
2664
- backOfficeData?: Array<BackOfficeField>;
2664
+ backOfficeData: Array<BackOfficeField>;
2665
2665
  /**
2666
2666
  *
2667
2667
  * @type {string}
@@ -2679,7 +2679,7 @@ export interface GuestProfile {
2679
2679
  * @type {Array<string>}
2680
2680
  * @memberof GuestProfile
2681
2681
  */
2682
- topics?: Array<string>;
2682
+ topics: Array<string>;
2683
2683
  /**
2684
2684
  *
2685
2685
  * @type {string}
@@ -12586,20 +12586,20 @@ export declare const RoomsApiFetchParamCreator: (configuration?: Configuration)
12586
12586
  getGuestProfileByRoom(roomId: string, options?: any): FetchArgs;
12587
12587
  /**
12588
12588
  *
12589
- * @summary Retrieve history for room
12590
- * @param {string} roomId
12589
+ * @summary Search for a guest profiles by lead query.
12590
+ * @param {string} query
12591
12591
  * @param {*} [options] Override http request option.
12592
12592
  * @throws {RequiredError}
12593
12593
  */
12594
- getHistory(roomId: string, options?: any): FetchArgs;
12594
+ getGuestProfilesByQuery(query: string, options?: any): FetchArgs;
12595
12595
  /**
12596
12596
  *
12597
- * @summary Search for a room by lead query.
12598
- * @param {string} query
12597
+ * @summary Retrieve history for room
12598
+ * @param {string} roomId
12599
12599
  * @param {*} [options] Override http request option.
12600
12600
  * @throws {RequiredError}
12601
12601
  */
12602
- getInboxEntriesByQuery(query: string, options?: any): FetchArgs;
12602
+ getHistory(roomId: string, options?: any): FetchArgs;
12603
12603
  /**
12604
12604
  *
12605
12605
  * @summary Get ids of agents not following the room
@@ -12725,20 +12725,20 @@ export declare const RoomsApiFp: (configuration?: Configuration) => {
12725
12725
  getGuestProfileByRoom(roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<GuestProfile>;
12726
12726
  /**
12727
12727
  *
12728
- * @summary Retrieve history for room
12729
- * @param {string} roomId
12728
+ * @summary Search for a guest profiles by lead query.
12729
+ * @param {string} query
12730
12730
  * @param {*} [options] Override http request option.
12731
12731
  * @throws {RequiredError}
12732
12732
  */
12733
- getHistory(roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<ChatEvent>>;
12733
+ getGuestProfilesByQuery(query: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<GuestProfile>>;
12734
12734
  /**
12735
12735
  *
12736
- * @summary Search for a room by lead query.
12737
- * @param {string} query
12736
+ * @summary Retrieve history for room
12737
+ * @param {string} roomId
12738
12738
  * @param {*} [options] Override http request option.
12739
12739
  * @throws {RequiredError}
12740
12740
  */
12741
- getInboxEntriesByQuery(query: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<InboxEntry>>;
12741
+ getHistory(roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<ChatEvent>>;
12742
12742
  /**
12743
12743
  *
12744
12744
  * @summary Get ids of agents not following the room
@@ -12864,20 +12864,20 @@ export declare const RoomsApiFactory: (configuration?: Configuration, fetch?: Fe
12864
12864
  getGuestProfileByRoom(roomId: string, options?: any): Promise<GuestProfile>;
12865
12865
  /**
12866
12866
  *
12867
- * @summary Retrieve history for room
12868
- * @param {string} roomId
12867
+ * @summary Search for a guest profiles by lead query.
12868
+ * @param {string} query
12869
12869
  * @param {*} [options] Override http request option.
12870
12870
  * @throws {RequiredError}
12871
12871
  */
12872
- getHistory(roomId: string, options?: any): Promise<ChatEvent[]>;
12872
+ getGuestProfilesByQuery(query: string, options?: any): Promise<GuestProfile[]>;
12873
12873
  /**
12874
12874
  *
12875
- * @summary Search for a room by lead query.
12876
- * @param {string} query
12875
+ * @summary Retrieve history for room
12876
+ * @param {string} roomId
12877
12877
  * @param {*} [options] Override http request option.
12878
12878
  * @throws {RequiredError}
12879
12879
  */
12880
- getInboxEntriesByQuery(query: string, options?: any): Promise<InboxEntry[]>;
12880
+ getHistory(roomId: string, options?: any): Promise<ChatEvent[]>;
12881
12881
  /**
12882
12882
  *
12883
12883
  * @summary Get ids of agents not following the room
@@ -13013,22 +13013,22 @@ export declare class RoomsApi extends BaseAPI {
13013
13013
  getGuestProfileByRoom(roomId: string, options?: any): Promise<GuestProfile>;
13014
13014
  /**
13015
13015
  *
13016
- * @summary Retrieve history for room
13017
- * @param {string} roomId
13016
+ * @summary Search for a guest profiles by lead query.
13017
+ * @param {string} query
13018
13018
  * @param {*} [options] Override http request option.
13019
13019
  * @throws {RequiredError}
13020
13020
  * @memberof RoomsApi
13021
13021
  */
13022
- getHistory(roomId: string, options?: any): Promise<ChatEvent[]>;
13022
+ getGuestProfilesByQuery(query: string, options?: any): Promise<GuestProfile[]>;
13023
13023
  /**
13024
13024
  *
13025
- * @summary Search for a room by lead query.
13026
- * @param {string} query
13025
+ * @summary Retrieve history for room
13026
+ * @param {string} roomId
13027
13027
  * @param {*} [options] Override http request option.
13028
13028
  * @throws {RequiredError}
13029
13029
  * @memberof RoomsApi
13030
13030
  */
13031
- getInboxEntriesByQuery(query: string, options?: any): Promise<InboxEntry[]>;
13031
+ getHistory(roomId: string, options?: any): Promise<ChatEvent[]>;
13032
13032
  /**
13033
13033
  *
13034
13034
  * @summary Get ids of agents not following the room
package/dist/api.js CHANGED
@@ -12468,18 +12468,17 @@ const RoomsApiFetchParamCreator = function (configuration) {
12468
12468
  },
12469
12469
  /**
12470
12470
  *
12471
- * @summary Retrieve history for room
12472
- * @param {string} roomId
12471
+ * @summary Search for a guest profiles by lead query.
12472
+ * @param {string} query
12473
12473
  * @param {*} [options] Override http request option.
12474
12474
  * @throws {RequiredError}
12475
12475
  */
12476
- getHistory(roomId, options = {}) {
12477
- // verify required parameter 'roomId' is not null or undefined
12478
- if (roomId === null || roomId === undefined) {
12479
- throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling getHistory.');
12476
+ getGuestProfilesByQuery(query, options = {}) {
12477
+ // verify required parameter 'query' is not null or undefined
12478
+ if (query === null || query === undefined) {
12479
+ throw new RequiredError('query', 'Required parameter query was null or undefined when calling getGuestProfilesByQuery.');
12480
12480
  }
12481
- const localVarPath = `/rooms/{roomId}/history`
12482
- .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
12481
+ const localVarPath = `/rooms/search`;
12483
12482
  const localVarUrlObj = url.parse(localVarPath, true);
12484
12483
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
12485
12484
  const localVarHeaderParameter = {};
@@ -12491,12 +12490,8 @@ const RoomsApiFetchParamCreator = function (configuration) {
12491
12490
  : configuration.apiKey;
12492
12491
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
12493
12492
  }
12494
- // authentication fingerprintAuth required
12495
- if (configuration && configuration.apiKey) {
12496
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
12497
- ? configuration.apiKey("X-Fingerprint")
12498
- : configuration.apiKey;
12499
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
12493
+ if (query !== undefined) {
12494
+ localVarQueryParameter['query'] = query;
12500
12495
  }
12501
12496
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
12502
12497
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
@@ -12509,17 +12504,18 @@ const RoomsApiFetchParamCreator = function (configuration) {
12509
12504
  },
12510
12505
  /**
12511
12506
  *
12512
- * @summary Search for a room by lead query.
12513
- * @param {string} query
12507
+ * @summary Retrieve history for room
12508
+ * @param {string} roomId
12514
12509
  * @param {*} [options] Override http request option.
12515
12510
  * @throws {RequiredError}
12516
12511
  */
12517
- getInboxEntriesByQuery(query, options = {}) {
12518
- // verify required parameter 'query' is not null or undefined
12519
- if (query === null || query === undefined) {
12520
- throw new RequiredError('query', 'Required parameter query was null or undefined when calling getInboxEntriesByQuery.');
12512
+ getHistory(roomId, options = {}) {
12513
+ // verify required parameter 'roomId' is not null or undefined
12514
+ if (roomId === null || roomId === undefined) {
12515
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling getHistory.');
12521
12516
  }
12522
- const localVarPath = `/rooms/search`;
12517
+ const localVarPath = `/rooms/{roomId}/history`
12518
+ .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
12523
12519
  const localVarUrlObj = url.parse(localVarPath, true);
12524
12520
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
12525
12521
  const localVarHeaderParameter = {};
@@ -12531,8 +12527,12 @@ const RoomsApiFetchParamCreator = function (configuration) {
12531
12527
  : configuration.apiKey;
12532
12528
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
12533
12529
  }
12534
- if (query !== undefined) {
12535
- localVarQueryParameter['query'] = query;
12530
+ // authentication fingerprintAuth required
12531
+ if (configuration && configuration.apiKey) {
12532
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
12533
+ ? configuration.apiKey("X-Fingerprint")
12534
+ : configuration.apiKey;
12535
+ localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
12536
12536
  }
12537
12537
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
12538
12538
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
@@ -12937,13 +12937,13 @@ const RoomsApiFp = function (configuration) {
12937
12937
  },
12938
12938
  /**
12939
12939
  *
12940
- * @summary Retrieve history for room
12941
- * @param {string} roomId
12940
+ * @summary Search for a guest profiles by lead query.
12941
+ * @param {string} query
12942
12942
  * @param {*} [options] Override http request option.
12943
12943
  * @throws {RequiredError}
12944
12944
  */
12945
- getHistory(roomId, options) {
12946
- const localVarFetchArgs = (0, exports.RoomsApiFetchParamCreator)(configuration).getHistory(roomId, options);
12945
+ getGuestProfilesByQuery(query, options) {
12946
+ const localVarFetchArgs = (0, exports.RoomsApiFetchParamCreator)(configuration).getGuestProfilesByQuery(query, options);
12947
12947
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12948
12948
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12949
12949
  if (response.status >= 200 && response.status < 300) {
@@ -12957,13 +12957,13 @@ const RoomsApiFp = function (configuration) {
12957
12957
  },
12958
12958
  /**
12959
12959
  *
12960
- * @summary Search for a room by lead query.
12961
- * @param {string} query
12960
+ * @summary Retrieve history for room
12961
+ * @param {string} roomId
12962
12962
  * @param {*} [options] Override http request option.
12963
12963
  * @throws {RequiredError}
12964
12964
  */
12965
- getInboxEntriesByQuery(query, options) {
12966
- const localVarFetchArgs = (0, exports.RoomsApiFetchParamCreator)(configuration).getInboxEntriesByQuery(query, options);
12965
+ getHistory(roomId, options) {
12966
+ const localVarFetchArgs = (0, exports.RoomsApiFetchParamCreator)(configuration).getHistory(roomId, options);
12967
12967
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12968
12968
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12969
12969
  if (response.status >= 200 && response.status < 300) {
@@ -13191,23 +13191,23 @@ const RoomsApiFactory = function (configuration, fetch, basePath) {
13191
13191
  },
13192
13192
  /**
13193
13193
  *
13194
- * @summary Retrieve history for room
13195
- * @param {string} roomId
13194
+ * @summary Search for a guest profiles by lead query.
13195
+ * @param {string} query
13196
13196
  * @param {*} [options] Override http request option.
13197
13197
  * @throws {RequiredError}
13198
13198
  */
13199
- getHistory(roomId, options) {
13200
- return (0, exports.RoomsApiFp)(configuration).getHistory(roomId, options)(fetch, basePath);
13199
+ getGuestProfilesByQuery(query, options) {
13200
+ return (0, exports.RoomsApiFp)(configuration).getGuestProfilesByQuery(query, options)(fetch, basePath);
13201
13201
  },
13202
13202
  /**
13203
13203
  *
13204
- * @summary Search for a room by lead query.
13205
- * @param {string} query
13204
+ * @summary Retrieve history for room
13205
+ * @param {string} roomId
13206
13206
  * @param {*} [options] Override http request option.
13207
13207
  * @throws {RequiredError}
13208
13208
  */
13209
- getInboxEntriesByQuery(query, options) {
13210
- return (0, exports.RoomsApiFp)(configuration).getInboxEntriesByQuery(query, options)(fetch, basePath);
13209
+ getHistory(roomId, options) {
13210
+ return (0, exports.RoomsApiFp)(configuration).getHistory(roomId, options)(fetch, basePath);
13211
13211
  },
13212
13212
  /**
13213
13213
  *
@@ -13374,25 +13374,25 @@ class RoomsApi extends BaseAPI {
13374
13374
  }
13375
13375
  /**
13376
13376
  *
13377
- * @summary Retrieve history for room
13378
- * @param {string} roomId
13377
+ * @summary Search for a guest profiles by lead query.
13378
+ * @param {string} query
13379
13379
  * @param {*} [options] Override http request option.
13380
13380
  * @throws {RequiredError}
13381
13381
  * @memberof RoomsApi
13382
13382
  */
13383
- getHistory(roomId, options) {
13384
- return (0, exports.RoomsApiFp)(this.configuration).getHistory(roomId, options)(this.fetch, this.basePath);
13383
+ getGuestProfilesByQuery(query, options) {
13384
+ return (0, exports.RoomsApiFp)(this.configuration).getGuestProfilesByQuery(query, options)(this.fetch, this.basePath);
13385
13385
  }
13386
13386
  /**
13387
13387
  *
13388
- * @summary Search for a room by lead query.
13389
- * @param {string} query
13388
+ * @summary Retrieve history for room
13389
+ * @param {string} roomId
13390
13390
  * @param {*} [options] Override http request option.
13391
13391
  * @throws {RequiredError}
13392
13392
  * @memberof RoomsApi
13393
13393
  */
13394
- getInboxEntriesByQuery(query, options) {
13395
- return (0, exports.RoomsApiFp)(this.configuration).getInboxEntriesByQuery(query, options)(this.fetch, this.basePath);
13394
+ getHistory(roomId, options) {
13395
+ return (0, exports.RoomsApiFp)(this.configuration).getHistory(roomId, options)(this.fetch, this.basePath);
13396
13396
  }
13397
13397
  /**
13398
13398
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.412",
3
+ "version": "0.12.414",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [