@closerplatform/spinner-openapi 0.12.1131 → 0.12.1133

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 +67 -90
  2. package/dist/api.js +41 -107
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -798,7 +798,7 @@ export interface AgreementForm {
798
798
  * @type {string}
799
799
  * @memberof AgreementForm
800
800
  */
801
- orgId?: string;
801
+ orgId: string;
802
802
  }
803
803
  /**
804
804
  *
@@ -2060,6 +2060,34 @@ export interface DepsStatus {
2060
2060
  */
2061
2061
  status?: string;
2062
2062
  }
2063
+ /**
2064
+ *
2065
+ * @export
2066
+ * @interface DeviceTypeForm
2067
+ */
2068
+ export interface DeviceTypeForm {
2069
+ /**
2070
+ *
2071
+ * @type {string}
2072
+ * @memberof DeviceTypeForm
2073
+ */
2074
+ deviceType: DeviceTypeForm.DeviceTypeEnum;
2075
+ }
2076
+ /**
2077
+ * @export
2078
+ * @namespace DeviceTypeForm
2079
+ */
2080
+ export declare namespace DeviceTypeForm {
2081
+ /**
2082
+ * @export
2083
+ * @enum {string}
2084
+ */
2085
+ enum DeviceTypeEnum {
2086
+ Android = "android",
2087
+ Ios = "ios",
2088
+ IosVoip = "ios_voip"
2089
+ }
2090
+ }
2063
2091
  /**
2064
2092
  *
2065
2093
  * @export
@@ -2324,6 +2352,12 @@ export interface GuestProfile {
2324
2352
  * @memberof GuestProfile
2325
2353
  */
2326
2354
  lastName?: string;
2355
+ /**
2356
+ *
2357
+ * @type {string}
2358
+ * @memberof GuestProfile
2359
+ */
2360
+ email?: string;
2327
2361
  /**
2328
2362
  *
2329
2363
  * @type {Phone}
@@ -2335,7 +2369,7 @@ export interface GuestProfile {
2335
2369
  * @type {string}
2336
2370
  * @memberof GuestProfile
2337
2371
  */
2338
- email?: string;
2372
+ randomName?: string;
2339
2373
  /**
2340
2374
  *
2341
2375
  * @type {string}
@@ -2347,43 +2381,43 @@ export interface GuestProfile {
2347
2381
  * @type {string}
2348
2382
  * @memberof GuestProfile
2349
2383
  */
2350
- randomName?: string;
2384
+ languageLocale: string;
2351
2385
  /**
2352
2386
  *
2353
2387
  * @type {string}
2354
2388
  * @memberof GuestProfile
2355
2389
  */
2356
- languageLocale?: string;
2390
+ zoneId: string;
2357
2391
  /**
2358
2392
  *
2359
- * @type {string}
2393
+ * @type {boolean}
2360
2394
  * @memberof GuestProfile
2361
2395
  */
2362
- zoneId?: string;
2396
+ isPushEnabled: boolean;
2363
2397
  /**
2364
2398
  *
2365
- * @type {string}
2399
+ * @type {Array<string>}
2366
2400
  * @memberof GuestProfile
2367
2401
  */
2368
- location?: string;
2402
+ tags: Array<string>;
2369
2403
  /**
2370
2404
  *
2371
- * @type {Array<string>}
2405
+ * @type {Array<BackOfficeField>}
2372
2406
  * @memberof GuestProfile
2373
2407
  */
2374
- tags: Array<string>;
2408
+ backOfficeData: Array<BackOfficeField>;
2375
2409
  /**
2376
2410
  *
2377
- * @type {number}
2411
+ * @type {string}
2378
2412
  * @memberof GuestProfile
2379
2413
  */
2380
- deletedAt?: number;
2414
+ location?: string;
2381
2415
  /**
2382
2416
  *
2383
- * @type {Array<BackOfficeField>}
2417
+ * @type {number}
2384
2418
  * @memberof GuestProfile
2385
2419
  */
2386
- backOfficeData?: Array<BackOfficeField>;
2420
+ deletedAt?: number;
2387
2421
  /**
2388
2422
  *
2389
2423
  * @type {string}
@@ -2396,12 +2430,18 @@ export interface GuestProfile {
2396
2430
  * @memberof GuestProfile
2397
2431
  */
2398
2432
  tagGroupId?: string;
2433
+ /**
2434
+ *
2435
+ * @type {string}
2436
+ * @memberof GuestProfile
2437
+ */
2438
+ externalId?: string;
2399
2439
  /**
2400
2440
  *
2401
2441
  * @type {Array<string>}
2402
2442
  * @memberof GuestProfile
2403
2443
  */
2404
- topics?: Array<string>;
2444
+ topics: Array<string>;
2405
2445
  /**
2406
2446
  *
2407
2447
  * @type {string}
@@ -5491,40 +5531,6 @@ export interface RecordingSignedUrl {
5491
5531
  */
5492
5532
  speechEvents: Array<SpeechEvent>;
5493
5533
  }
5494
- /**
5495
- *
5496
- * @export
5497
- * @interface RegisterInPushService
5498
- */
5499
- export interface RegisterInPushService {
5500
- /**
5501
- *
5502
- * @type {string}
5503
- * @memberof RegisterInPushService
5504
- */
5505
- pushId: string;
5506
- /**
5507
- *
5508
- * @type {string}
5509
- * @memberof RegisterInPushService
5510
- */
5511
- deviceType: RegisterInPushService.DeviceTypeEnum;
5512
- }
5513
- /**
5514
- * @export
5515
- * @namespace RegisterInPushService
5516
- */
5517
- export declare namespace RegisterInPushService {
5518
- /**
5519
- * @export
5520
- * @enum {string}
5521
- */
5522
- enum DeviceTypeEnum {
5523
- Android = "android",
5524
- Ios = "ios",
5525
- IosVoip = "ios_voip"
5526
- }
5527
- }
5528
5534
  /**
5529
5535
  *
5530
5536
  * @export
@@ -12565,11 +12571,12 @@ export declare const PushApiFetchParamCreator: (configuration?: Configuration) =
12565
12571
  /**
12566
12572
  *
12567
12573
  * @summary Register user in push notification service
12568
- * @param {RegisterInPushService} body
12574
+ * @param {DeviceTypeForm} body
12575
+ * @param {string} pushId
12569
12576
  * @param {*} [options] Override http request option.
12570
12577
  * @throws {RequiredError}
12571
12578
  */
12572
- registerPush(body: RegisterInPushService, options?: any): FetchArgs;
12579
+ registerPush(body: DeviceTypeForm, pushId: string, options?: any): FetchArgs;
12573
12580
  /**
12574
12581
  *
12575
12582
  * @summary Unregister device in push notification service
@@ -12587,11 +12594,12 @@ export declare const PushApiFp: (configuration?: Configuration) => {
12587
12594
  /**
12588
12595
  *
12589
12596
  * @summary Register user in push notification service
12590
- * @param {RegisterInPushService} body
12597
+ * @param {DeviceTypeForm} body
12598
+ * @param {string} pushId
12591
12599
  * @param {*} [options] Override http request option.
12592
12600
  * @throws {RequiredError}
12593
12601
  */
12594
- registerPush(body: RegisterInPushService, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12602
+ registerPush(body: DeviceTypeForm, pushId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
12595
12603
  /**
12596
12604
  *
12597
12605
  * @summary Unregister device in push notification service
@@ -12609,11 +12617,12 @@ export declare const PushApiFactory: (configuration?: Configuration, fetch?: Fet
12609
12617
  /**
12610
12618
  *
12611
12619
  * @summary Register user in push notification service
12612
- * @param {RegisterInPushService} body
12620
+ * @param {DeviceTypeForm} body
12621
+ * @param {string} pushId
12613
12622
  * @param {*} [options] Override http request option.
12614
12623
  * @throws {RequiredError}
12615
12624
  */
12616
- registerPush(body: RegisterInPushService, options?: any): Promise<Response>;
12625
+ registerPush(body: DeviceTypeForm, pushId: string, options?: any): Promise<Response>;
12617
12626
  /**
12618
12627
  *
12619
12628
  * @summary Unregister device in push notification service
@@ -12633,12 +12642,13 @@ export declare class PushApi extends BaseAPI {
12633
12642
  /**
12634
12643
  *
12635
12644
  * @summary Register user in push notification service
12636
- * @param {RegisterInPushService} body
12645
+ * @param {DeviceTypeForm} body
12646
+ * @param {string} pushId
12637
12647
  * @param {*} [options] Override http request option.
12638
12648
  * @throws {RequiredError}
12639
12649
  * @memberof PushApi
12640
12650
  */
12641
- registerPush(body: RegisterInPushService, options?: any): Promise<Response>;
12651
+ registerPush(body: DeviceTypeForm, pushId: string, options?: any): Promise<Response>;
12642
12652
  /**
12643
12653
  *
12644
12654
  * @summary Unregister device in push notification service
@@ -12928,14 +12938,6 @@ export declare const RoomsApiFetchParamCreator: (configuration?: Configuration)
12928
12938
  * @throws {RequiredError}
12929
12939
  */
12930
12940
  addFollower(body: Follower, roomId: string, options?: any): FetchArgs;
12931
- /**
12932
- *
12933
- * @summary Assign conversation
12934
- * @param {string} roomId The ID of the room of the conversation.
12935
- * @param {*} [options] Override http request option.
12936
- * @throws {RequiredError}
12937
- */
12938
- assignConversation(roomId: string, options?: any): FetchArgs;
12939
12941
  /**
12940
12942
  *
12941
12943
  * @summary Auto assign conversation
@@ -13059,14 +13061,6 @@ export declare const RoomsApiFp: (configuration?: Configuration) => {
13059
13061
  * @throws {RequiredError}
13060
13062
  */
13061
13063
  addFollower(body: Follower, roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
13062
- /**
13063
- *
13064
- * @summary Assign conversation
13065
- * @param {string} roomId The ID of the room of the conversation.
13066
- * @param {*} [options] Override http request option.
13067
- * @throws {RequiredError}
13068
- */
13069
- assignConversation(roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
13070
13064
  /**
13071
13065
  *
13072
13066
  * @summary Auto assign conversation
@@ -13190,14 +13184,6 @@ export declare const RoomsApiFactory: (configuration?: Configuration, fetch?: Fe
13190
13184
  * @throws {RequiredError}
13191
13185
  */
13192
13186
  addFollower(body: Follower, roomId: string, options?: any): Promise<Response>;
13193
- /**
13194
- *
13195
- * @summary Assign conversation
13196
- * @param {string} roomId The ID of the room of the conversation.
13197
- * @param {*} [options] Override http request option.
13198
- * @throws {RequiredError}
13199
- */
13200
- assignConversation(roomId: string, options?: any): Promise<Response>;
13201
13187
  /**
13202
13188
  *
13203
13189
  * @summary Auto assign conversation
@@ -13324,15 +13310,6 @@ export declare class RoomsApi extends BaseAPI {
13324
13310
  * @memberof RoomsApi
13325
13311
  */
13326
13312
  addFollower(body: Follower, roomId: string, options?: any): Promise<Response>;
13327
- /**
13328
- *
13329
- * @summary Assign conversation
13330
- * @param {string} roomId The ID of the room of the conversation.
13331
- * @param {*} [options] Override http request option.
13332
- * @throws {RequiredError}
13333
- * @memberof RoomsApi
13334
- */
13335
- assignConversation(roomId: string, options?: any): Promise<Response>;
13336
13313
  /**
13337
13314
  *
13338
13315
  * @summary Auto assign conversation
package/dist/api.js CHANGED
@@ -13,7 +13,7 @@
13
13
  * Do not edit the file manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CobrowsingApiFactory = exports.CobrowsingApiFp = exports.CobrowsingApiFetchParamCreator = exports.CallsApi = exports.CallsApiFactory = exports.CallsApiFp = exports.CallsApiFetchParamCreator = exports.CalendarsApi = exports.CalendarsApiFactory = exports.CalendarsApiFp = exports.CalendarsApiFetchParamCreator = exports.BotsApi = exports.BotsApiFactory = exports.BotsApiFp = exports.BotsApiFetchParamCreator = exports.BillingsApi = exports.BillingsApiFactory = exports.BillingsApiFp = exports.BillingsApiFetchParamCreator = exports.AgentStatusesApi = exports.AgentStatusesApiFactory = exports.AgentStatusesApiFp = exports.AgentStatusesApiFetchParamCreator = exports.AgentGroupsApi = exports.AgentGroupsApiFactory = exports.AgentGroupsApiFp = exports.AgentGroupsApiFetchParamCreator = exports.WidgetButtonsInput = exports.UserRole = exports.UnreadySubstatus = exports.SnoozedStatus = exports.RegisterInPushService = exports.Presence = exports.ModelTrainingStatus = exports.MetabaseScope = exports.MessageWidgetConfigContextType = exports.MatchingStrategy = exports.Locale = exports.InboxSorting = exports.InboxEntryType = exports.EventActionEvent = exports.ConversationStatus = exports.CallPopoutMode = exports.BotType = exports.AvailableSubstatus = exports.AppicationErrorReason = exports.AppPermission = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
16
+ exports.CobrowsingApiFactory = exports.CobrowsingApiFp = exports.CobrowsingApiFetchParamCreator = exports.CallsApi = exports.CallsApiFactory = exports.CallsApiFp = exports.CallsApiFetchParamCreator = exports.CalendarsApi = exports.CalendarsApiFactory = exports.CalendarsApiFp = exports.CalendarsApiFetchParamCreator = exports.BotsApi = exports.BotsApiFactory = exports.BotsApiFp = exports.BotsApiFetchParamCreator = exports.BillingsApi = exports.BillingsApiFactory = exports.BillingsApiFp = exports.BillingsApiFetchParamCreator = exports.AgentStatusesApi = exports.AgentStatusesApiFactory = exports.AgentStatusesApiFp = exports.AgentStatusesApiFetchParamCreator = exports.AgentGroupsApi = exports.AgentGroupsApiFactory = exports.AgentGroupsApiFp = exports.AgentGroupsApiFetchParamCreator = exports.WidgetButtonsInput = exports.UserRole = exports.UnreadySubstatus = exports.SnoozedStatus = exports.Presence = exports.ModelTrainingStatus = exports.MetabaseScope = exports.MessageWidgetConfigContextType = exports.MatchingStrategy = exports.Locale = exports.InboxSorting = exports.InboxEntryType = exports.EventActionEvent = exports.DeviceTypeForm = exports.ConversationStatus = exports.CallPopoutMode = exports.BotType = exports.AvailableSubstatus = exports.AppicationErrorReason = exports.AppPermission = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
17
17
  exports.OIDCApiFetchParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiFetchParamCreator = exports.NLUApi = exports.NLUApiFactory = exports.NLUApiFp = exports.NLUApiFetchParamCreator = exports.MetabaseApi = exports.MetabaseApiFactory = exports.MetabaseApiFp = exports.MetabaseApiFetchParamCreator = exports.MessageWidgetsApi = exports.MessageWidgetsApiFactory = exports.MessageWidgetsApiFp = exports.MessageWidgetsApiFetchParamCreator = exports.MeetingsApi = exports.MeetingsApiFactory = exports.MeetingsApiFp = exports.MeetingsApiFetchParamCreator = exports.MainNotificationsApi = exports.MainNotificationsApiFactory = exports.MainNotificationsApiFp = exports.MainNotificationsApiFetchParamCreator = exports.KnowledgeBasesApi = exports.KnowledgeBasesApiFactory = exports.KnowledgeBasesApiFp = exports.KnowledgeBasesApiFetchParamCreator = exports.InviteesApi = exports.InviteesApiFactory = exports.InviteesApiFp = exports.InviteesApiFetchParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiFetchParamCreator = exports.EventActionsApi = exports.EventActionsApiFactory = exports.EventActionsApiFp = exports.EventActionsApiFetchParamCreator = exports.ConversationsApi = exports.ConversationsApiFactory = exports.ConversationsApiFp = exports.ConversationsApiFetchParamCreator = exports.CompatibilityApi = exports.CompatibilityApiFactory = exports.CompatibilityApiFp = exports.CompatibilityApiFetchParamCreator = exports.CobrowsingApi = void 0;
18
18
  exports.TagGroupsApiFactory = exports.TagGroupsApiFp = exports.TagGroupsApiFetchParamCreator = exports.TagGroupTransfersParametersApi = exports.TagGroupTransfersParametersApiFactory = exports.TagGroupTransfersParametersApiFp = exports.TagGroupTransfersParametersApiFetchParamCreator = exports.TagGroupTransfersApi = exports.TagGroupTransfersApiFactory = exports.TagGroupTransfersApiFp = exports.TagGroupTransfersApiFetchParamCreator = exports.StatusApi = exports.StatusApiFactory = exports.StatusApiFp = exports.StatusApiFetchParamCreator = exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiFetchParamCreator = exports.RoomsApi = exports.RoomsApiFactory = exports.RoomsApiFp = exports.RoomsApiFetchParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiFetchParamCreator = exports.PushApi = exports.PushApiFactory = exports.PushApiFp = exports.PushApiFetchParamCreator = exports.ProfanitiesApi = exports.ProfanitiesApiFactory = exports.ProfanitiesApiFp = exports.ProfanitiesApiFetchParamCreator = exports.ProactiveMsgApi = exports.ProactiveMsgApiFactory = exports.ProactiveMsgApiFp = exports.ProactiveMsgApiFetchParamCreator = exports.OrgsApi = exports.OrgsApiFactory = exports.OrgsApiFp = exports.OrgsApiFetchParamCreator = exports.OplAddressApi = exports.OplAddressApiFactory = exports.OplAddressApiFp = exports.OplAddressApiFetchParamCreator = exports.OIDCApi = exports.OIDCApiFactory = exports.OIDCApiFp = void 0;
19
19
  exports.WidgetsFormsSubmissionsApi = exports.WidgetsFormsSubmissionsApiFactory = exports.WidgetsFormsSubmissionsApiFp = exports.WidgetsFormsSubmissionsApiFetchParamCreator = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiFetchParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiFetchParamCreator = exports.UrlTagMappingsApi = exports.UrlTagMappingsApiFactory = exports.UrlTagMappingsApiFp = exports.UrlTagMappingsApiFetchParamCreator = exports.UnreadApi = exports.UnreadApiFactory = exports.UnreadApiFp = exports.UnreadApiFetchParamCreator = exports.TopicsApi = exports.TopicsApiFactory = exports.TopicsApiFp = exports.TopicsApiFetchParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiFetchParamCreator = exports.TagMappingsApi = exports.TagMappingsApiFactory = exports.TagMappingsApiFp = exports.TagMappingsApiFetchParamCreator = exports.TagGroupsApi = void 0;
@@ -184,6 +184,23 @@ var ConversationStatus;
184
184
  ConversationStatus["Solved"] = "solved";
185
185
  ConversationStatus["Unsolved"] = "unsolved";
186
186
  })(ConversationStatus = exports.ConversationStatus || (exports.ConversationStatus = {}));
187
+ /**
188
+ * @export
189
+ * @namespace DeviceTypeForm
190
+ */
191
+ var DeviceTypeForm;
192
+ (function (DeviceTypeForm) {
193
+ /**
194
+ * @export
195
+ * @enum {string}
196
+ */
197
+ let DeviceTypeEnum;
198
+ (function (DeviceTypeEnum) {
199
+ DeviceTypeEnum["Android"] = "android";
200
+ DeviceTypeEnum["Ios"] = "ios";
201
+ DeviceTypeEnum["IosVoip"] = "ios_voip";
202
+ })(DeviceTypeEnum = DeviceTypeForm.DeviceTypeEnum || (DeviceTypeForm.DeviceTypeEnum = {}));
203
+ })(DeviceTypeForm = exports.DeviceTypeForm || (exports.DeviceTypeForm = {}));
187
204
  /**
188
205
  *
189
206
  * @export
@@ -295,23 +312,6 @@ var Presence;
295
312
  Presence["Available"] = "available";
296
313
  Presence["Unavailable"] = "unavailable";
297
314
  })(Presence = exports.Presence || (exports.Presence = {}));
298
- /**
299
- * @export
300
- * @namespace RegisterInPushService
301
- */
302
- var RegisterInPushService;
303
- (function (RegisterInPushService) {
304
- /**
305
- * @export
306
- * @enum {string}
307
- */
308
- let DeviceTypeEnum;
309
- (function (DeviceTypeEnum) {
310
- DeviceTypeEnum["Android"] = "android";
311
- DeviceTypeEnum["Ios"] = "ios";
312
- DeviceTypeEnum["IosVoip"] = "ios_voip";
313
- })(DeviceTypeEnum = RegisterInPushService.DeviceTypeEnum || (RegisterInPushService.DeviceTypeEnum = {}));
314
- })(RegisterInPushService = exports.RegisterInPushService || (exports.RegisterInPushService = {}));
315
315
  /**
316
316
  *
317
317
  * @export
@@ -12087,16 +12087,22 @@ const PushApiFetchParamCreator = function (configuration) {
12087
12087
  /**
12088
12088
  *
12089
12089
  * @summary Register user in push notification service
12090
- * @param {RegisterInPushService} body
12090
+ * @param {DeviceTypeForm} body
12091
+ * @param {string} pushId
12091
12092
  * @param {*} [options] Override http request option.
12092
12093
  * @throws {RequiredError}
12093
12094
  */
12094
- registerPush(body, options = {}) {
12095
+ registerPush(body, pushId, options = {}) {
12095
12096
  // verify required parameter 'body' is not null or undefined
12096
12097
  if (body === null || body === undefined) {
12097
12098
  throw new RequiredError('body', 'Required parameter body was null or undefined when calling registerPush.');
12098
12099
  }
12099
- const localVarPath = `/push/register`;
12100
+ // verify required parameter 'pushId' is not null or undefined
12101
+ if (pushId === null || pushId === undefined) {
12102
+ throw new RequiredError('pushId', 'Required parameter pushId was null or undefined when calling registerPush.');
12103
+ }
12104
+ const localVarPath = `/push/{pushId}`
12105
+ .replace(`{${"pushId"}}`, encodeURIComponent(String(pushId)));
12100
12106
  const localVarUrlObj = url.parse(localVarPath, true);
12101
12107
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
12102
12108
  const localVarHeaderParameter = {};
@@ -12113,7 +12119,7 @@ const PushApiFetchParamCreator = function (configuration) {
12113
12119
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
12114
12120
  delete localVarUrlObj.search;
12115
12121
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
12116
- const needsSerialization = ("RegisterInPushService" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
12122
+ const needsSerialization = ("DeviceTypeForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
12117
12123
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
12118
12124
  return {
12119
12125
  url: url.format(localVarUrlObj),
@@ -12132,7 +12138,7 @@ const PushApiFetchParamCreator = function (configuration) {
12132
12138
  if (pushId === null || pushId === undefined) {
12133
12139
  throw new RequiredError('pushId', 'Required parameter pushId was null or undefined when calling unregisterPush.');
12134
12140
  }
12135
- const localVarPath = `/push/unregister/{pushId}`
12141
+ const localVarPath = `/push/{pushId}`
12136
12142
  .replace(`{${"pushId"}}`, encodeURIComponent(String(pushId)));
12137
12143
  const localVarUrlObj = url.parse(localVarPath, true);
12138
12144
  const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
@@ -12166,12 +12172,13 @@ const PushApiFp = function (configuration) {
12166
12172
  /**
12167
12173
  *
12168
12174
  * @summary Register user in push notification service
12169
- * @param {RegisterInPushService} body
12175
+ * @param {DeviceTypeForm} body
12176
+ * @param {string} pushId
12170
12177
  * @param {*} [options] Override http request option.
12171
12178
  * @throws {RequiredError}
12172
12179
  */
12173
- registerPush(body, options) {
12174
- const localVarFetchArgs = (0, exports.PushApiFetchParamCreator)(configuration).registerPush(body, options);
12180
+ registerPush(body, pushId, options) {
12181
+ const localVarFetchArgs = (0, exports.PushApiFetchParamCreator)(configuration).registerPush(body, pushId, options);
12175
12182
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12176
12183
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12177
12184
  if (response.status >= 200 && response.status < 300) {
@@ -12215,12 +12222,13 @@ const PushApiFactory = function (configuration, fetch, basePath) {
12215
12222
  /**
12216
12223
  *
12217
12224
  * @summary Register user in push notification service
12218
- * @param {RegisterInPushService} body
12225
+ * @param {DeviceTypeForm} body
12226
+ * @param {string} pushId
12219
12227
  * @param {*} [options] Override http request option.
12220
12228
  * @throws {RequiredError}
12221
12229
  */
12222
- registerPush(body, options) {
12223
- return (0, exports.PushApiFp)(configuration).registerPush(body, options)(fetch, basePath);
12230
+ registerPush(body, pushId, options) {
12231
+ return (0, exports.PushApiFp)(configuration).registerPush(body, pushId, options)(fetch, basePath);
12224
12232
  },
12225
12233
  /**
12226
12234
  *
@@ -12245,13 +12253,14 @@ class PushApi extends BaseAPI {
12245
12253
  /**
12246
12254
  *
12247
12255
  * @summary Register user in push notification service
12248
- * @param {RegisterInPushService} body
12256
+ * @param {DeviceTypeForm} body
12257
+ * @param {string} pushId
12249
12258
  * @param {*} [options] Override http request option.
12250
12259
  * @throws {RequiredError}
12251
12260
  * @memberof PushApi
12252
12261
  */
12253
- registerPush(body, options) {
12254
- return (0, exports.PushApiFp)(this.configuration).registerPush(body, options)(this.fetch, this.basePath);
12262
+ registerPush(body, pushId, options) {
12263
+ return (0, exports.PushApiFp)(this.configuration).registerPush(body, pushId, options)(this.fetch, this.basePath);
12255
12264
  }
12256
12265
  /**
12257
12266
  *
@@ -12901,40 +12910,6 @@ const RoomsApiFetchParamCreator = function (configuration) {
12901
12910
  options: localVarRequestOptions,
12902
12911
  };
12903
12912
  },
12904
- /**
12905
- *
12906
- * @summary Assign conversation
12907
- * @param {string} roomId The ID of the room of the conversation.
12908
- * @param {*} [options] Override http request option.
12909
- * @throws {RequiredError}
12910
- */
12911
- assignConversation(roomId, options = {}) {
12912
- // verify required parameter 'roomId' is not null or undefined
12913
- if (roomId === null || roomId === undefined) {
12914
- throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling assignConversation.');
12915
- }
12916
- const localVarPath = `/rooms/{roomId}/assign`
12917
- .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
12918
- const localVarUrlObj = url.parse(localVarPath, true);
12919
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
12920
- const localVarHeaderParameter = {};
12921
- const localVarQueryParameter = {};
12922
- // authentication apiKey required
12923
- if (configuration && configuration.apiKey) {
12924
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
12925
- ? configuration.apiKey("X-Api-Key")
12926
- : configuration.apiKey;
12927
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
12928
- }
12929
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
12930
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
12931
- delete localVarUrlObj.search;
12932
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
12933
- return {
12934
- url: url.format(localVarUrlObj),
12935
- options: localVarRequestOptions,
12936
- };
12937
- },
12938
12913
  /**
12939
12914
  *
12940
12915
  * @summary Auto assign conversation
@@ -13441,26 +13416,6 @@ const RoomsApiFp = function (configuration) {
13441
13416
  });
13442
13417
  };
13443
13418
  },
13444
- /**
13445
- *
13446
- * @summary Assign conversation
13447
- * @param {string} roomId The ID of the room of the conversation.
13448
- * @param {*} [options] Override http request option.
13449
- * @throws {RequiredError}
13450
- */
13451
- assignConversation(roomId, options) {
13452
- const localVarFetchArgs = (0, exports.RoomsApiFetchParamCreator)(configuration).assignConversation(roomId, options);
13453
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
13454
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
13455
- if (response.status >= 200 && response.status < 300) {
13456
- return response;
13457
- }
13458
- else {
13459
- throw response;
13460
- }
13461
- });
13462
- };
13463
- },
13464
13419
  /**
13465
13420
  *
13466
13421
  * @summary Auto assign conversation
@@ -13745,16 +13700,6 @@ const RoomsApiFactory = function (configuration, fetch, basePath) {
13745
13700
  addFollower(body, roomId, options) {
13746
13701
  return (0, exports.RoomsApiFp)(configuration).addFollower(body, roomId, options)(fetch, basePath);
13747
13702
  },
13748
- /**
13749
- *
13750
- * @summary Assign conversation
13751
- * @param {string} roomId The ID of the room of the conversation.
13752
- * @param {*} [options] Override http request option.
13753
- * @throws {RequiredError}
13754
- */
13755
- assignConversation(roomId, options) {
13756
- return (0, exports.RoomsApiFp)(configuration).assignConversation(roomId, options)(fetch, basePath);
13757
- },
13758
13703
  /**
13759
13704
  *
13760
13705
  * @summary Auto assign conversation
@@ -13911,17 +13856,6 @@ class RoomsApi extends BaseAPI {
13911
13856
  addFollower(body, roomId, options) {
13912
13857
  return (0, exports.RoomsApiFp)(this.configuration).addFollower(body, roomId, options)(this.fetch, this.basePath);
13913
13858
  }
13914
- /**
13915
- *
13916
- * @summary Assign conversation
13917
- * @param {string} roomId The ID of the room of the conversation.
13918
- * @param {*} [options] Override http request option.
13919
- * @throws {RequiredError}
13920
- * @memberof RoomsApi
13921
- */
13922
- assignConversation(roomId, options) {
13923
- return (0, exports.RoomsApiFp)(this.configuration).assignConversation(roomId, options)(this.fetch, this.basePath);
13924
- }
13925
13859
  /**
13926
13860
  *
13927
13861
  * @summary Auto assign conversation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1131",
3
+ "version": "0.12.1133",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [