@closerplatform/spinner-openapi 0.12.1132 → 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.
- package/dist/api.d.ts +40 -42
- package/dist/api.js +41 -32
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -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
|
|
@@ -5503,40 +5531,6 @@ export interface RecordingSignedUrl {
|
|
|
5503
5531
|
*/
|
|
5504
5532
|
speechEvents: Array<SpeechEvent>;
|
|
5505
5533
|
}
|
|
5506
|
-
/**
|
|
5507
|
-
*
|
|
5508
|
-
* @export
|
|
5509
|
-
* @interface RegisterInPushService
|
|
5510
|
-
*/
|
|
5511
|
-
export interface RegisterInPushService {
|
|
5512
|
-
/**
|
|
5513
|
-
*
|
|
5514
|
-
* @type {string}
|
|
5515
|
-
* @memberof RegisterInPushService
|
|
5516
|
-
*/
|
|
5517
|
-
pushId: string;
|
|
5518
|
-
/**
|
|
5519
|
-
*
|
|
5520
|
-
* @type {string}
|
|
5521
|
-
* @memberof RegisterInPushService
|
|
5522
|
-
*/
|
|
5523
|
-
deviceType: RegisterInPushService.DeviceTypeEnum;
|
|
5524
|
-
}
|
|
5525
|
-
/**
|
|
5526
|
-
* @export
|
|
5527
|
-
* @namespace RegisterInPushService
|
|
5528
|
-
*/
|
|
5529
|
-
export declare namespace RegisterInPushService {
|
|
5530
|
-
/**
|
|
5531
|
-
* @export
|
|
5532
|
-
* @enum {string}
|
|
5533
|
-
*/
|
|
5534
|
-
enum DeviceTypeEnum {
|
|
5535
|
-
Android = "android",
|
|
5536
|
-
Ios = "ios",
|
|
5537
|
-
IosVoip = "ios_voip"
|
|
5538
|
-
}
|
|
5539
|
-
}
|
|
5540
5534
|
/**
|
|
5541
5535
|
*
|
|
5542
5536
|
* @export
|
|
@@ -12577,11 +12571,12 @@ export declare const PushApiFetchParamCreator: (configuration?: Configuration) =
|
|
|
12577
12571
|
/**
|
|
12578
12572
|
*
|
|
12579
12573
|
* @summary Register user in push notification service
|
|
12580
|
-
* @param {
|
|
12574
|
+
* @param {DeviceTypeForm} body
|
|
12575
|
+
* @param {string} pushId
|
|
12581
12576
|
* @param {*} [options] Override http request option.
|
|
12582
12577
|
* @throws {RequiredError}
|
|
12583
12578
|
*/
|
|
12584
|
-
registerPush(body:
|
|
12579
|
+
registerPush(body: DeviceTypeForm, pushId: string, options?: any): FetchArgs;
|
|
12585
12580
|
/**
|
|
12586
12581
|
*
|
|
12587
12582
|
* @summary Unregister device in push notification service
|
|
@@ -12599,11 +12594,12 @@ export declare const PushApiFp: (configuration?: Configuration) => {
|
|
|
12599
12594
|
/**
|
|
12600
12595
|
*
|
|
12601
12596
|
* @summary Register user in push notification service
|
|
12602
|
-
* @param {
|
|
12597
|
+
* @param {DeviceTypeForm} body
|
|
12598
|
+
* @param {string} pushId
|
|
12603
12599
|
* @param {*} [options] Override http request option.
|
|
12604
12600
|
* @throws {RequiredError}
|
|
12605
12601
|
*/
|
|
12606
|
-
registerPush(body:
|
|
12602
|
+
registerPush(body: DeviceTypeForm, pushId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
|
|
12607
12603
|
/**
|
|
12608
12604
|
*
|
|
12609
12605
|
* @summary Unregister device in push notification service
|
|
@@ -12621,11 +12617,12 @@ export declare const PushApiFactory: (configuration?: Configuration, fetch?: Fet
|
|
|
12621
12617
|
/**
|
|
12622
12618
|
*
|
|
12623
12619
|
* @summary Register user in push notification service
|
|
12624
|
-
* @param {
|
|
12620
|
+
* @param {DeviceTypeForm} body
|
|
12621
|
+
* @param {string} pushId
|
|
12625
12622
|
* @param {*} [options] Override http request option.
|
|
12626
12623
|
* @throws {RequiredError}
|
|
12627
12624
|
*/
|
|
12628
|
-
registerPush(body:
|
|
12625
|
+
registerPush(body: DeviceTypeForm, pushId: string, options?: any): Promise<Response>;
|
|
12629
12626
|
/**
|
|
12630
12627
|
*
|
|
12631
12628
|
* @summary Unregister device in push notification service
|
|
@@ -12645,12 +12642,13 @@ export declare class PushApi extends BaseAPI {
|
|
|
12645
12642
|
/**
|
|
12646
12643
|
*
|
|
12647
12644
|
* @summary Register user in push notification service
|
|
12648
|
-
* @param {
|
|
12645
|
+
* @param {DeviceTypeForm} body
|
|
12646
|
+
* @param {string} pushId
|
|
12649
12647
|
* @param {*} [options] Override http request option.
|
|
12650
12648
|
* @throws {RequiredError}
|
|
12651
12649
|
* @memberof PushApi
|
|
12652
12650
|
*/
|
|
12653
|
-
registerPush(body:
|
|
12651
|
+
registerPush(body: DeviceTypeForm, pushId: string, options?: any): Promise<Response>;
|
|
12654
12652
|
/**
|
|
12655
12653
|
*
|
|
12656
12654
|
* @summary Unregister device in push notification service
|
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.
|
|
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 {
|
|
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
|
-
|
|
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 = ("
|
|
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/
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
*
|