@closerplatform/spinner-openapi 0.12.50 → 0.12.55
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 +198 -0
- package/dist/api.js +277 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -3586,6 +3586,75 @@ export interface MagicLinkForm {
|
|
|
3586
3586
|
*/
|
|
3587
3587
|
email: string;
|
|
3588
3588
|
}
|
|
3589
|
+
/**
|
|
3590
|
+
*
|
|
3591
|
+
* @export
|
|
3592
|
+
* @interface MainNotificationDto
|
|
3593
|
+
*/
|
|
3594
|
+
export interface MainNotificationDto {
|
|
3595
|
+
/**
|
|
3596
|
+
*
|
|
3597
|
+
* @type {string}
|
|
3598
|
+
* @memberof MainNotificationDto
|
|
3599
|
+
*/
|
|
3600
|
+
id: string;
|
|
3601
|
+
/**
|
|
3602
|
+
*
|
|
3603
|
+
* @type {string}
|
|
3604
|
+
* @memberof MainNotificationDto
|
|
3605
|
+
*/
|
|
3606
|
+
orgId: string;
|
|
3607
|
+
/**
|
|
3608
|
+
*
|
|
3609
|
+
* @type {string}
|
|
3610
|
+
* @memberof MainNotificationDto
|
|
3611
|
+
*/
|
|
3612
|
+
text: string;
|
|
3613
|
+
/**
|
|
3614
|
+
*
|
|
3615
|
+
* @type {string}
|
|
3616
|
+
* @memberof MainNotificationDto
|
|
3617
|
+
*/
|
|
3618
|
+
locale: string;
|
|
3619
|
+
/**
|
|
3620
|
+
*
|
|
3621
|
+
* @type {boolean}
|
|
3622
|
+
* @memberof MainNotificationDto
|
|
3623
|
+
*/
|
|
3624
|
+
enabled: boolean;
|
|
3625
|
+
}
|
|
3626
|
+
/**
|
|
3627
|
+
*
|
|
3628
|
+
* @export
|
|
3629
|
+
* @interface MainNotificationPatchForm
|
|
3630
|
+
*/
|
|
3631
|
+
export interface MainNotificationPatchForm {
|
|
3632
|
+
/**
|
|
3633
|
+
*
|
|
3634
|
+
* @type {boolean}
|
|
3635
|
+
* @memberof MainNotificationPatchForm
|
|
3636
|
+
*/
|
|
3637
|
+
enabled?: boolean;
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
*
|
|
3641
|
+
* @export
|
|
3642
|
+
* @interface MainNotificationPostForm
|
|
3643
|
+
*/
|
|
3644
|
+
export interface MainNotificationPostForm {
|
|
3645
|
+
/**
|
|
3646
|
+
*
|
|
3647
|
+
* @type {string}
|
|
3648
|
+
* @memberof MainNotificationPostForm
|
|
3649
|
+
*/
|
|
3650
|
+
locale: string;
|
|
3651
|
+
/**
|
|
3652
|
+
*
|
|
3653
|
+
* @type {boolean}
|
|
3654
|
+
* @memberof MainNotificationPostForm
|
|
3655
|
+
*/
|
|
3656
|
+
enabled: boolean;
|
|
3657
|
+
}
|
|
3589
3658
|
/**
|
|
3590
3659
|
*
|
|
3591
3660
|
* @export
|
|
@@ -9376,6 +9445,135 @@ export declare class InviteesApi extends BaseAPI {
|
|
|
9376
9445
|
*/
|
|
9377
9446
|
revokeInvitation(body: RevokeInvitationForm, options?: any): Promise<Response>;
|
|
9378
9447
|
}
|
|
9448
|
+
/**
|
|
9449
|
+
* MainNotificationsApi - fetch parameter creator
|
|
9450
|
+
* @export
|
|
9451
|
+
*/
|
|
9452
|
+
export declare const MainNotificationsApiFetchParamCreator: (configuration?: Configuration) => {
|
|
9453
|
+
/**
|
|
9454
|
+
*
|
|
9455
|
+
* @summary endpoint to create main notification
|
|
9456
|
+
* @param {MainNotificationPostForm} body
|
|
9457
|
+
* @param {*} [options] Override http request option.
|
|
9458
|
+
* @throws {RequiredError}
|
|
9459
|
+
*/
|
|
9460
|
+
createMainNotification(body: MainNotificationPostForm, options?: any): FetchArgs;
|
|
9461
|
+
/**
|
|
9462
|
+
*
|
|
9463
|
+
* @summary endpoint to get main notifications
|
|
9464
|
+
* @param {string} [locale] locale
|
|
9465
|
+
* @param {*} [options] Override http request option.
|
|
9466
|
+
* @throws {RequiredError}
|
|
9467
|
+
*/
|
|
9468
|
+
getMainNotifications(locale?: string, options?: any): FetchArgs;
|
|
9469
|
+
/**
|
|
9470
|
+
*
|
|
9471
|
+
* @summary endpoint to patch main notification
|
|
9472
|
+
* @param {MainNotificationPatchForm} body
|
|
9473
|
+
* @param {string} id primary key of record which should be updated
|
|
9474
|
+
* @param {*} [options] Override http request option.
|
|
9475
|
+
* @throws {RequiredError}
|
|
9476
|
+
*/
|
|
9477
|
+
patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): FetchArgs;
|
|
9478
|
+
};
|
|
9479
|
+
/**
|
|
9480
|
+
* MainNotificationsApi - functional programming interface
|
|
9481
|
+
* @export
|
|
9482
|
+
*/
|
|
9483
|
+
export declare const MainNotificationsApiFp: (configuration?: Configuration) => {
|
|
9484
|
+
/**
|
|
9485
|
+
*
|
|
9486
|
+
* @summary endpoint to create main notification
|
|
9487
|
+
* @param {MainNotificationPostForm} body
|
|
9488
|
+
* @param {*} [options] Override http request option.
|
|
9489
|
+
* @throws {RequiredError}
|
|
9490
|
+
*/
|
|
9491
|
+
createMainNotification(body: MainNotificationPostForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MainNotificationDto>;
|
|
9492
|
+
/**
|
|
9493
|
+
*
|
|
9494
|
+
* @summary endpoint to get main notifications
|
|
9495
|
+
* @param {string} [locale] locale
|
|
9496
|
+
* @param {*} [options] Override http request option.
|
|
9497
|
+
* @throws {RequiredError}
|
|
9498
|
+
*/
|
|
9499
|
+
getMainNotifications(locale?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<MainNotificationDto>>;
|
|
9500
|
+
/**
|
|
9501
|
+
*
|
|
9502
|
+
* @summary endpoint to patch main notification
|
|
9503
|
+
* @param {MainNotificationPatchForm} body
|
|
9504
|
+
* @param {string} id primary key of record which should be updated
|
|
9505
|
+
* @param {*} [options] Override http request option.
|
|
9506
|
+
* @throws {RequiredError}
|
|
9507
|
+
*/
|
|
9508
|
+
patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MainNotificationDto>;
|
|
9509
|
+
};
|
|
9510
|
+
/**
|
|
9511
|
+
* MainNotificationsApi - factory interface
|
|
9512
|
+
* @export
|
|
9513
|
+
*/
|
|
9514
|
+
export declare const MainNotificationsApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
9515
|
+
/**
|
|
9516
|
+
*
|
|
9517
|
+
* @summary endpoint to create main notification
|
|
9518
|
+
* @param {MainNotificationPostForm} body
|
|
9519
|
+
* @param {*} [options] Override http request option.
|
|
9520
|
+
* @throws {RequiredError}
|
|
9521
|
+
*/
|
|
9522
|
+
createMainNotification(body: MainNotificationPostForm, options?: any): Promise<MainNotificationDto>;
|
|
9523
|
+
/**
|
|
9524
|
+
*
|
|
9525
|
+
* @summary endpoint to get main notifications
|
|
9526
|
+
* @param {string} [locale] locale
|
|
9527
|
+
* @param {*} [options] Override http request option.
|
|
9528
|
+
* @throws {RequiredError}
|
|
9529
|
+
*/
|
|
9530
|
+
getMainNotifications(locale?: string, options?: any): Promise<MainNotificationDto[]>;
|
|
9531
|
+
/**
|
|
9532
|
+
*
|
|
9533
|
+
* @summary endpoint to patch main notification
|
|
9534
|
+
* @param {MainNotificationPatchForm} body
|
|
9535
|
+
* @param {string} id primary key of record which should be updated
|
|
9536
|
+
* @param {*} [options] Override http request option.
|
|
9537
|
+
* @throws {RequiredError}
|
|
9538
|
+
*/
|
|
9539
|
+
patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): Promise<MainNotificationDto>;
|
|
9540
|
+
};
|
|
9541
|
+
/**
|
|
9542
|
+
* MainNotificationsApi - object-oriented interface
|
|
9543
|
+
* @export
|
|
9544
|
+
* @class MainNotificationsApi
|
|
9545
|
+
* @extends {BaseAPI}
|
|
9546
|
+
*/
|
|
9547
|
+
export declare class MainNotificationsApi extends BaseAPI {
|
|
9548
|
+
/**
|
|
9549
|
+
*
|
|
9550
|
+
* @summary endpoint to create main notification
|
|
9551
|
+
* @param {MainNotificationPostForm} body
|
|
9552
|
+
* @param {*} [options] Override http request option.
|
|
9553
|
+
* @throws {RequiredError}
|
|
9554
|
+
* @memberof MainNotificationsApi
|
|
9555
|
+
*/
|
|
9556
|
+
createMainNotification(body: MainNotificationPostForm, options?: any): Promise<MainNotificationDto>;
|
|
9557
|
+
/**
|
|
9558
|
+
*
|
|
9559
|
+
* @summary endpoint to get main notifications
|
|
9560
|
+
* @param {string} [locale] locale
|
|
9561
|
+
* @param {*} [options] Override http request option.
|
|
9562
|
+
* @throws {RequiredError}
|
|
9563
|
+
* @memberof MainNotificationsApi
|
|
9564
|
+
*/
|
|
9565
|
+
getMainNotifications(locale?: string, options?: any): Promise<MainNotificationDto[]>;
|
|
9566
|
+
/**
|
|
9567
|
+
*
|
|
9568
|
+
* @summary endpoint to patch main notification
|
|
9569
|
+
* @param {MainNotificationPatchForm} body
|
|
9570
|
+
* @param {string} id primary key of record which should be updated
|
|
9571
|
+
* @param {*} [options] Override http request option.
|
|
9572
|
+
* @throws {RequiredError}
|
|
9573
|
+
* @memberof MainNotificationsApi
|
|
9574
|
+
*/
|
|
9575
|
+
patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): Promise<MainNotificationDto>;
|
|
9576
|
+
}
|
|
9379
9577
|
/**
|
|
9380
9578
|
* MeetingsApi - fetch parameter creator
|
|
9381
9579
|
* @export
|
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.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 = exports.TagGroupsApiFactory = exports.TagGroupsApiFp = exports.TagGroupsApiFetchParamCreator = 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 = exports.OIDCApiFetchParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiFetchParamCreator = exports.NLUApi = exports.NLUApiFactory = exports.NLUApiFp = exports.NLUApiFetchParamCreator = exports.MessageWidgetsApi = exports.MessageWidgetsApiFactory = exports.MessageWidgetsApiFp = exports.MessageWidgetsApiFetchParamCreator = exports.MeetingsApi = exports.MeetingsApiFactory = exports.MeetingsApiFp = exports.MeetingsApiFetchParamCreator = 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.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiFetchParamCreator = exports.ConversationsApi = exports.ConversationsApiFactory = exports.ConversationsApiFp = exports.ConversationsApiFetchParamCreator = exports.CompatibilityApi = exports.CompatibilityApiFactory = exports.CompatibilityApiFp = exports.CompatibilityApiFetchParamCreator = exports.CobrowsingApi = 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.SnoozedStatus = exports.RegisterInPushService = exports.ModelTrainingStatus = exports.MessageWidgetConfigContextType = exports.MatchingStrategy = exports.InboxSorting = exports.InboxEntryType = exports.EventActionEvent = exports.ConversationStatus = exports.ChatEvent = exports.ChangeBotTypeForm = exports.BotInfo = exports.ArtichokePresence = exports.AppPresence = exports.AppPermission = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
16
|
+
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 = exports.TagGroupsApiFactory = exports.TagGroupsApiFp = exports.TagGroupsApiFetchParamCreator = 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 = exports.OIDCApiFetchParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiFetchParamCreator = exports.NLUApi = exports.NLUApiFactory = exports.NLUApiFp = exports.NLUApiFetchParamCreator = 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.InviteesApi = exports.InviteesApiFactory = exports.InviteesApiFp = exports.InviteesApiFetchParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiFetchParamCreator = exports.EventActionsApi = exports.EventActionsApiFactory = exports.EventActionsApiFp = exports.EventActionsApiFetchParamCreator = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiFetchParamCreator = exports.ConversationsApi = exports.ConversationsApiFactory = exports.ConversationsApiFp = exports.ConversationsApiFetchParamCreator = exports.CompatibilityApi = exports.CompatibilityApiFactory = exports.CompatibilityApiFp = exports.CompatibilityApiFetchParamCreator = exports.CobrowsingApi = 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.SnoozedStatus = exports.RegisterInPushService = exports.ModelTrainingStatus = exports.MessageWidgetConfigContextType = exports.MatchingStrategy = exports.InboxSorting = exports.InboxEntryType = exports.EventActionEvent = exports.ConversationStatus = exports.ChatEvent = exports.ChangeBotTypeForm = exports.BotInfo = exports.ArtichokePresence = exports.AppPresence = exports.AppPermission = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
17
17
|
const url = require("url");
|
|
18
18
|
const isomorphicFetch = require("isomorphic-fetch");
|
|
19
19
|
const BASE_PATH = "/api".replace(/\/+$/, "");
|
|
@@ -6065,6 +6065,282 @@ class InviteesApi extends BaseAPI {
|
|
|
6065
6065
|
}
|
|
6066
6066
|
}
|
|
6067
6067
|
exports.InviteesApi = InviteesApi;
|
|
6068
|
+
/**
|
|
6069
|
+
* MainNotificationsApi - fetch parameter creator
|
|
6070
|
+
* @export
|
|
6071
|
+
*/
|
|
6072
|
+
exports.MainNotificationsApiFetchParamCreator = function (configuration) {
|
|
6073
|
+
return {
|
|
6074
|
+
/**
|
|
6075
|
+
*
|
|
6076
|
+
* @summary endpoint to create main notification
|
|
6077
|
+
* @param {MainNotificationPostForm} body
|
|
6078
|
+
* @param {*} [options] Override http request option.
|
|
6079
|
+
* @throws {RequiredError}
|
|
6080
|
+
*/
|
|
6081
|
+
createMainNotification(body, options = {}) {
|
|
6082
|
+
// verify required parameter 'body' is not null or undefined
|
|
6083
|
+
if (body === null || body === undefined) {
|
|
6084
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling createMainNotification.');
|
|
6085
|
+
}
|
|
6086
|
+
const localVarPath = `/notifications/main-notifications`;
|
|
6087
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
6088
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
6089
|
+
const localVarHeaderParameter = {};
|
|
6090
|
+
const localVarQueryParameter = {};
|
|
6091
|
+
// authentication apiKey required
|
|
6092
|
+
if (configuration && configuration.apiKey) {
|
|
6093
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6094
|
+
? configuration.apiKey("X-Api-Key")
|
|
6095
|
+
: configuration.apiKey;
|
|
6096
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
6097
|
+
}
|
|
6098
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6099
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
6100
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
6101
|
+
delete localVarUrlObj.search;
|
|
6102
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
6103
|
+
const needsSerialization = ("MainNotificationPostForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
6104
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
6105
|
+
return {
|
|
6106
|
+
url: url.format(localVarUrlObj),
|
|
6107
|
+
options: localVarRequestOptions,
|
|
6108
|
+
};
|
|
6109
|
+
},
|
|
6110
|
+
/**
|
|
6111
|
+
*
|
|
6112
|
+
* @summary endpoint to get main notifications
|
|
6113
|
+
* @param {string} [locale] locale
|
|
6114
|
+
* @param {*} [options] Override http request option.
|
|
6115
|
+
* @throws {RequiredError}
|
|
6116
|
+
*/
|
|
6117
|
+
getMainNotifications(locale, options = {}) {
|
|
6118
|
+
const localVarPath = `/notifications/main-notifications`;
|
|
6119
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
6120
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
6121
|
+
const localVarHeaderParameter = {};
|
|
6122
|
+
const localVarQueryParameter = {};
|
|
6123
|
+
// authentication apiKey required
|
|
6124
|
+
if (configuration && configuration.apiKey) {
|
|
6125
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6126
|
+
? configuration.apiKey("X-Api-Key")
|
|
6127
|
+
: configuration.apiKey;
|
|
6128
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
6129
|
+
}
|
|
6130
|
+
// authentication fingerprintAuth required
|
|
6131
|
+
if (configuration && configuration.apiKey) {
|
|
6132
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6133
|
+
? configuration.apiKey("X-Fingerprint")
|
|
6134
|
+
: configuration.apiKey;
|
|
6135
|
+
localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
|
|
6136
|
+
}
|
|
6137
|
+
if (locale !== undefined) {
|
|
6138
|
+
localVarQueryParameter['locale'] = locale;
|
|
6139
|
+
}
|
|
6140
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
6141
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
6142
|
+
delete localVarUrlObj.search;
|
|
6143
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
6144
|
+
return {
|
|
6145
|
+
url: url.format(localVarUrlObj),
|
|
6146
|
+
options: localVarRequestOptions,
|
|
6147
|
+
};
|
|
6148
|
+
},
|
|
6149
|
+
/**
|
|
6150
|
+
*
|
|
6151
|
+
* @summary endpoint to patch main notification
|
|
6152
|
+
* @param {MainNotificationPatchForm} body
|
|
6153
|
+
* @param {string} id primary key of record which should be updated
|
|
6154
|
+
* @param {*} [options] Override http request option.
|
|
6155
|
+
* @throws {RequiredError}
|
|
6156
|
+
*/
|
|
6157
|
+
patchMainNotification(body, id, options = {}) {
|
|
6158
|
+
// verify required parameter 'body' is not null or undefined
|
|
6159
|
+
if (body === null || body === undefined) {
|
|
6160
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchMainNotification.');
|
|
6161
|
+
}
|
|
6162
|
+
// verify required parameter 'id' is not null or undefined
|
|
6163
|
+
if (id === null || id === undefined) {
|
|
6164
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchMainNotification.');
|
|
6165
|
+
}
|
|
6166
|
+
const localVarPath = `/notifications/main-notifications/{id}`
|
|
6167
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
6168
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
6169
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
6170
|
+
const localVarHeaderParameter = {};
|
|
6171
|
+
const localVarQueryParameter = {};
|
|
6172
|
+
// authentication apiKey required
|
|
6173
|
+
if (configuration && configuration.apiKey) {
|
|
6174
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
6175
|
+
? configuration.apiKey("X-Api-Key")
|
|
6176
|
+
: configuration.apiKey;
|
|
6177
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
6178
|
+
}
|
|
6179
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6180
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
6181
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
6182
|
+
delete localVarUrlObj.search;
|
|
6183
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
6184
|
+
const needsSerialization = ("MainNotificationPatchForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
6185
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
|
|
6186
|
+
return {
|
|
6187
|
+
url: url.format(localVarUrlObj),
|
|
6188
|
+
options: localVarRequestOptions,
|
|
6189
|
+
};
|
|
6190
|
+
},
|
|
6191
|
+
};
|
|
6192
|
+
};
|
|
6193
|
+
/**
|
|
6194
|
+
* MainNotificationsApi - functional programming interface
|
|
6195
|
+
* @export
|
|
6196
|
+
*/
|
|
6197
|
+
exports.MainNotificationsApiFp = function (configuration) {
|
|
6198
|
+
return {
|
|
6199
|
+
/**
|
|
6200
|
+
*
|
|
6201
|
+
* @summary endpoint to create main notification
|
|
6202
|
+
* @param {MainNotificationPostForm} body
|
|
6203
|
+
* @param {*} [options] Override http request option.
|
|
6204
|
+
* @throws {RequiredError}
|
|
6205
|
+
*/
|
|
6206
|
+
createMainNotification(body, options) {
|
|
6207
|
+
const localVarFetchArgs = exports.MainNotificationsApiFetchParamCreator(configuration).createMainNotification(body, options);
|
|
6208
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
6209
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
6210
|
+
if (response.status >= 200 && response.status < 300) {
|
|
6211
|
+
return response.json();
|
|
6212
|
+
}
|
|
6213
|
+
else {
|
|
6214
|
+
throw response;
|
|
6215
|
+
}
|
|
6216
|
+
});
|
|
6217
|
+
};
|
|
6218
|
+
},
|
|
6219
|
+
/**
|
|
6220
|
+
*
|
|
6221
|
+
* @summary endpoint to get main notifications
|
|
6222
|
+
* @param {string} [locale] locale
|
|
6223
|
+
* @param {*} [options] Override http request option.
|
|
6224
|
+
* @throws {RequiredError}
|
|
6225
|
+
*/
|
|
6226
|
+
getMainNotifications(locale, options) {
|
|
6227
|
+
const localVarFetchArgs = exports.MainNotificationsApiFetchParamCreator(configuration).getMainNotifications(locale, options);
|
|
6228
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
6229
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
6230
|
+
if (response.status >= 200 && response.status < 300) {
|
|
6231
|
+
return response.json();
|
|
6232
|
+
}
|
|
6233
|
+
else {
|
|
6234
|
+
throw response;
|
|
6235
|
+
}
|
|
6236
|
+
});
|
|
6237
|
+
};
|
|
6238
|
+
},
|
|
6239
|
+
/**
|
|
6240
|
+
*
|
|
6241
|
+
* @summary endpoint to patch main notification
|
|
6242
|
+
* @param {MainNotificationPatchForm} body
|
|
6243
|
+
* @param {string} id primary key of record which should be updated
|
|
6244
|
+
* @param {*} [options] Override http request option.
|
|
6245
|
+
* @throws {RequiredError}
|
|
6246
|
+
*/
|
|
6247
|
+
patchMainNotification(body, id, options) {
|
|
6248
|
+
const localVarFetchArgs = exports.MainNotificationsApiFetchParamCreator(configuration).patchMainNotification(body, id, options);
|
|
6249
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
6250
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
6251
|
+
if (response.status >= 200 && response.status < 300) {
|
|
6252
|
+
return response.json();
|
|
6253
|
+
}
|
|
6254
|
+
else {
|
|
6255
|
+
throw response;
|
|
6256
|
+
}
|
|
6257
|
+
});
|
|
6258
|
+
};
|
|
6259
|
+
},
|
|
6260
|
+
};
|
|
6261
|
+
};
|
|
6262
|
+
/**
|
|
6263
|
+
* MainNotificationsApi - factory interface
|
|
6264
|
+
* @export
|
|
6265
|
+
*/
|
|
6266
|
+
exports.MainNotificationsApiFactory = function (configuration, fetch, basePath) {
|
|
6267
|
+
return {
|
|
6268
|
+
/**
|
|
6269
|
+
*
|
|
6270
|
+
* @summary endpoint to create main notification
|
|
6271
|
+
* @param {MainNotificationPostForm} body
|
|
6272
|
+
* @param {*} [options] Override http request option.
|
|
6273
|
+
* @throws {RequiredError}
|
|
6274
|
+
*/
|
|
6275
|
+
createMainNotification(body, options) {
|
|
6276
|
+
return exports.MainNotificationsApiFp(configuration).createMainNotification(body, options)(fetch, basePath);
|
|
6277
|
+
},
|
|
6278
|
+
/**
|
|
6279
|
+
*
|
|
6280
|
+
* @summary endpoint to get main notifications
|
|
6281
|
+
* @param {string} [locale] locale
|
|
6282
|
+
* @param {*} [options] Override http request option.
|
|
6283
|
+
* @throws {RequiredError}
|
|
6284
|
+
*/
|
|
6285
|
+
getMainNotifications(locale, options) {
|
|
6286
|
+
return exports.MainNotificationsApiFp(configuration).getMainNotifications(locale, options)(fetch, basePath);
|
|
6287
|
+
},
|
|
6288
|
+
/**
|
|
6289
|
+
*
|
|
6290
|
+
* @summary endpoint to patch main notification
|
|
6291
|
+
* @param {MainNotificationPatchForm} body
|
|
6292
|
+
* @param {string} id primary key of record which should be updated
|
|
6293
|
+
* @param {*} [options] Override http request option.
|
|
6294
|
+
* @throws {RequiredError}
|
|
6295
|
+
*/
|
|
6296
|
+
patchMainNotification(body, id, options) {
|
|
6297
|
+
return exports.MainNotificationsApiFp(configuration).patchMainNotification(body, id, options)(fetch, basePath);
|
|
6298
|
+
},
|
|
6299
|
+
};
|
|
6300
|
+
};
|
|
6301
|
+
/**
|
|
6302
|
+
* MainNotificationsApi - object-oriented interface
|
|
6303
|
+
* @export
|
|
6304
|
+
* @class MainNotificationsApi
|
|
6305
|
+
* @extends {BaseAPI}
|
|
6306
|
+
*/
|
|
6307
|
+
class MainNotificationsApi extends BaseAPI {
|
|
6308
|
+
/**
|
|
6309
|
+
*
|
|
6310
|
+
* @summary endpoint to create main notification
|
|
6311
|
+
* @param {MainNotificationPostForm} body
|
|
6312
|
+
* @param {*} [options] Override http request option.
|
|
6313
|
+
* @throws {RequiredError}
|
|
6314
|
+
* @memberof MainNotificationsApi
|
|
6315
|
+
*/
|
|
6316
|
+
createMainNotification(body, options) {
|
|
6317
|
+
return exports.MainNotificationsApiFp(this.configuration).createMainNotification(body, options)(this.fetch, this.basePath);
|
|
6318
|
+
}
|
|
6319
|
+
/**
|
|
6320
|
+
*
|
|
6321
|
+
* @summary endpoint to get main notifications
|
|
6322
|
+
* @param {string} [locale] locale
|
|
6323
|
+
* @param {*} [options] Override http request option.
|
|
6324
|
+
* @throws {RequiredError}
|
|
6325
|
+
* @memberof MainNotificationsApi
|
|
6326
|
+
*/
|
|
6327
|
+
getMainNotifications(locale, options) {
|
|
6328
|
+
return exports.MainNotificationsApiFp(this.configuration).getMainNotifications(locale, options)(this.fetch, this.basePath);
|
|
6329
|
+
}
|
|
6330
|
+
/**
|
|
6331
|
+
*
|
|
6332
|
+
* @summary endpoint to patch main notification
|
|
6333
|
+
* @param {MainNotificationPatchForm} body
|
|
6334
|
+
* @param {string} id primary key of record which should be updated
|
|
6335
|
+
* @param {*} [options] Override http request option.
|
|
6336
|
+
* @throws {RequiredError}
|
|
6337
|
+
* @memberof MainNotificationsApi
|
|
6338
|
+
*/
|
|
6339
|
+
patchMainNotification(body, id, options) {
|
|
6340
|
+
return exports.MainNotificationsApiFp(this.configuration).patchMainNotification(body, id, options)(this.fetch, this.basePath);
|
|
6341
|
+
}
|
|
6342
|
+
}
|
|
6343
|
+
exports.MainNotificationsApi = MainNotificationsApi;
|
|
6068
6344
|
/**
|
|
6069
6345
|
* MeetingsApi - fetch parameter creator
|
|
6070
6346
|
* @export
|