@closerplatform/spinner-openapi 0.12.49 → 0.12.54

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 +192 -148
  2. package/dist/api.js +278 -360
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -3586,6 +3586,69 @@ 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
+ locale: string;
3613
+ /**
3614
+ *
3615
+ * @type {boolean}
3616
+ * @memberof MainNotificationDto
3617
+ */
3618
+ enabled: boolean;
3619
+ }
3620
+ /**
3621
+ *
3622
+ * @export
3623
+ * @interface MainNotificationPatchForm
3624
+ */
3625
+ export interface MainNotificationPatchForm {
3626
+ /**
3627
+ *
3628
+ * @type {boolean}
3629
+ * @memberof MainNotificationPatchForm
3630
+ */
3631
+ enabled?: boolean;
3632
+ }
3633
+ /**
3634
+ *
3635
+ * @export
3636
+ * @interface MainNotificationPostForm
3637
+ */
3638
+ export interface MainNotificationPostForm {
3639
+ /**
3640
+ *
3641
+ * @type {string}
3642
+ * @memberof MainNotificationPostForm
3643
+ */
3644
+ locale: string;
3645
+ /**
3646
+ *
3647
+ * @type {boolean}
3648
+ * @memberof MainNotificationPostForm
3649
+ */
3650
+ enabled: boolean;
3651
+ }
3589
3652
  /**
3590
3653
  *
3591
3654
  * @export
@@ -9376,6 +9439,135 @@ export declare class InviteesApi extends BaseAPI {
9376
9439
  */
9377
9440
  revokeInvitation(body: RevokeInvitationForm, options?: any): Promise<Response>;
9378
9441
  }
9442
+ /**
9443
+ * MainNotificationsApi - fetch parameter creator
9444
+ * @export
9445
+ */
9446
+ export declare const MainNotificationsApiFetchParamCreator: (configuration?: Configuration) => {
9447
+ /**
9448
+ *
9449
+ * @summary endpoint to create main notification
9450
+ * @param {MainNotificationPostForm} body
9451
+ * @param {*} [options] Override http request option.
9452
+ * @throws {RequiredError}
9453
+ */
9454
+ createMainNotification(body: MainNotificationPostForm, options?: any): FetchArgs;
9455
+ /**
9456
+ *
9457
+ * @summary endpoint to get main notifications
9458
+ * @param {string} [locale] locale
9459
+ * @param {*} [options] Override http request option.
9460
+ * @throws {RequiredError}
9461
+ */
9462
+ getMainNotifications(locale?: string, options?: any): FetchArgs;
9463
+ /**
9464
+ *
9465
+ * @summary endpoint to patch main notification
9466
+ * @param {MainNotificationPatchForm} body
9467
+ * @param {string} id primary key of record which should be updated
9468
+ * @param {*} [options] Override http request option.
9469
+ * @throws {RequiredError}
9470
+ */
9471
+ patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): FetchArgs;
9472
+ };
9473
+ /**
9474
+ * MainNotificationsApi - functional programming interface
9475
+ * @export
9476
+ */
9477
+ export declare const MainNotificationsApiFp: (configuration?: Configuration) => {
9478
+ /**
9479
+ *
9480
+ * @summary endpoint to create main notification
9481
+ * @param {MainNotificationPostForm} body
9482
+ * @param {*} [options] Override http request option.
9483
+ * @throws {RequiredError}
9484
+ */
9485
+ createMainNotification(body: MainNotificationPostForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MainNotificationDto>;
9486
+ /**
9487
+ *
9488
+ * @summary endpoint to get main notifications
9489
+ * @param {string} [locale] locale
9490
+ * @param {*} [options] Override http request option.
9491
+ * @throws {RequiredError}
9492
+ */
9493
+ getMainNotifications(locale?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<MainNotificationDto>>;
9494
+ /**
9495
+ *
9496
+ * @summary endpoint to patch main notification
9497
+ * @param {MainNotificationPatchForm} body
9498
+ * @param {string} id primary key of record which should be updated
9499
+ * @param {*} [options] Override http request option.
9500
+ * @throws {RequiredError}
9501
+ */
9502
+ patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<MainNotificationDto>;
9503
+ };
9504
+ /**
9505
+ * MainNotificationsApi - factory interface
9506
+ * @export
9507
+ */
9508
+ export declare const MainNotificationsApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
9509
+ /**
9510
+ *
9511
+ * @summary endpoint to create main notification
9512
+ * @param {MainNotificationPostForm} body
9513
+ * @param {*} [options] Override http request option.
9514
+ * @throws {RequiredError}
9515
+ */
9516
+ createMainNotification(body: MainNotificationPostForm, options?: any): Promise<MainNotificationDto>;
9517
+ /**
9518
+ *
9519
+ * @summary endpoint to get main notifications
9520
+ * @param {string} [locale] locale
9521
+ * @param {*} [options] Override http request option.
9522
+ * @throws {RequiredError}
9523
+ */
9524
+ getMainNotifications(locale?: string, options?: any): Promise<MainNotificationDto[]>;
9525
+ /**
9526
+ *
9527
+ * @summary endpoint to patch main notification
9528
+ * @param {MainNotificationPatchForm} body
9529
+ * @param {string} id primary key of record which should be updated
9530
+ * @param {*} [options] Override http request option.
9531
+ * @throws {RequiredError}
9532
+ */
9533
+ patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): Promise<MainNotificationDto>;
9534
+ };
9535
+ /**
9536
+ * MainNotificationsApi - object-oriented interface
9537
+ * @export
9538
+ * @class MainNotificationsApi
9539
+ * @extends {BaseAPI}
9540
+ */
9541
+ export declare class MainNotificationsApi extends BaseAPI {
9542
+ /**
9543
+ *
9544
+ * @summary endpoint to create main notification
9545
+ * @param {MainNotificationPostForm} body
9546
+ * @param {*} [options] Override http request option.
9547
+ * @throws {RequiredError}
9548
+ * @memberof MainNotificationsApi
9549
+ */
9550
+ createMainNotification(body: MainNotificationPostForm, options?: any): Promise<MainNotificationDto>;
9551
+ /**
9552
+ *
9553
+ * @summary endpoint to get main notifications
9554
+ * @param {string} [locale] locale
9555
+ * @param {*} [options] Override http request option.
9556
+ * @throws {RequiredError}
9557
+ * @memberof MainNotificationsApi
9558
+ */
9559
+ getMainNotifications(locale?: string, options?: any): Promise<MainNotificationDto[]>;
9560
+ /**
9561
+ *
9562
+ * @summary endpoint to patch main notification
9563
+ * @param {MainNotificationPatchForm} body
9564
+ * @param {string} id primary key of record which should be updated
9565
+ * @param {*} [options] Override http request option.
9566
+ * @throws {RequiredError}
9567
+ * @memberof MainNotificationsApi
9568
+ */
9569
+ patchMainNotification(body: MainNotificationPatchForm, id: string, options?: any): Promise<MainNotificationDto>;
9570
+ }
9379
9571
  /**
9380
9572
  * MeetingsApi - fetch parameter creator
9381
9573
  * @export
@@ -14400,14 +14592,6 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
14400
14592
  * @throws {RequiredError}
14401
14593
  */
14402
14594
  searchGuest(query: string, options?: any): FetchArgs;
14403
- /**
14404
- *
14405
- * @summary Search for a lead with inbox.
14406
- * @param {string} query
14407
- * @param {*} [options] Override http request option.
14408
- * @throws {RequiredError}
14409
- */
14410
- searchLeadWithInbox(query: string, options?: any): FetchArgs;
14411
14595
  /**
14412
14596
  *
14413
14597
  * @summary Grant or revoke admin privileges
@@ -14475,25 +14659,6 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
14475
14659
  * @throws {RequiredError}
14476
14660
  */
14477
14661
  setCloserCustomerApiKey(body: AdviserApiKeyForm, options?: any): FetchArgs;
14478
- /**
14479
- *
14480
- * @summary Replace the guest profile.
14481
- * @param {GuestProfileForm} body
14482
- * @param {string} orgId
14483
- * @param {string} customerId
14484
- * @param {*} [options] Override http request option.
14485
- * @throws {RequiredError}
14486
- */
14487
- setGuestProfile(body: GuestProfileForm, orgId: string, customerId: string, options?: any): FetchArgs;
14488
- /**
14489
- *
14490
- * @summary Replace the guest profile.
14491
- * @param {GuestProfileForm} body
14492
- * @param {string} orgId
14493
- * @param {*} [options] Override http request option.
14494
- * @throws {RequiredError}
14495
- */
14496
- setOwnGuestProfile(body: GuestProfileForm, orgId: string, options?: any): FetchArgs;
14497
14662
  /**
14498
14663
  *
14499
14664
  * @summary Authorize guest with oauth login hint token
@@ -14553,15 +14718,6 @@ export declare const UsersApiFetchParamCreator: (configuration?: Configuration)
14553
14718
  * @throws {RequiredError}
14554
14719
  */
14555
14720
  updateOwnGuestProfile(body: GuestProfileFormPatch, orgId: string, options?: any): FetchArgs;
14556
- /**
14557
- *
14558
- * @summary Update the guest profile.
14559
- * @param {GuestProfileFormPatch} body
14560
- * @param {string} orgId
14561
- * @param {*} [options] Override http request option.
14562
- * @throws {RequiredError}
14563
- */
14564
- updateOwnGuestProfileDeprecated(body: GuestProfileFormPatch, orgId: string, options?: any): FetchArgs;
14565
14721
  /**
14566
14722
  *
14567
14723
  * @summary Validate phone number
@@ -14828,14 +14984,6 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
14828
14984
  * @throws {RequiredError}
14829
14985
  */
14830
14986
  searchGuest(query: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<GuestProfile>>;
14831
- /**
14832
- *
14833
- * @summary Search for a lead with inbox.
14834
- * @param {string} query
14835
- * @param {*} [options] Override http request option.
14836
- * @throws {RequiredError}
14837
- */
14838
- searchLeadWithInbox(query: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Array<GuestProfile>>;
14839
14987
  /**
14840
14988
  *
14841
14989
  * @summary Grant or revoke admin privileges
@@ -14903,25 +15051,6 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
14903
15051
  * @throws {RequiredError}
14904
15052
  */
14905
15053
  setCloserCustomerApiKey(body: AdviserApiKeyForm, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
14906
- /**
14907
- *
14908
- * @summary Replace the guest profile.
14909
- * @param {GuestProfileForm} body
14910
- * @param {string} orgId
14911
- * @param {string} customerId
14912
- * @param {*} [options] Override http request option.
14913
- * @throws {RequiredError}
14914
- */
14915
- setGuestProfile(body: GuestProfileForm, orgId: string, customerId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
14916
- /**
14917
- *
14918
- * @summary Replace the guest profile.
14919
- * @param {GuestProfileForm} body
14920
- * @param {string} orgId
14921
- * @param {*} [options] Override http request option.
14922
- * @throws {RequiredError}
14923
- */
14924
- setOwnGuestProfile(body: GuestProfileForm, orgId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
14925
15054
  /**
14926
15055
  *
14927
15056
  * @summary Authorize guest with oauth login hint token
@@ -14981,15 +15110,6 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
14981
15110
  * @throws {RequiredError}
14982
15111
  */
14983
15112
  updateOwnGuestProfile(body: GuestProfileFormPatch, orgId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<LeadProfile>;
14984
- /**
14985
- *
14986
- * @summary Update the guest profile.
14987
- * @param {GuestProfileFormPatch} body
14988
- * @param {string} orgId
14989
- * @param {*} [options] Override http request option.
14990
- * @throws {RequiredError}
14991
- */
14992
- updateOwnGuestProfileDeprecated(body: GuestProfileFormPatch, orgId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Response>;
14993
15113
  /**
14994
15114
  *
14995
15115
  * @summary Validate phone number
@@ -15256,14 +15376,6 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
15256
15376
  * @throws {RequiredError}
15257
15377
  */
15258
15378
  searchGuest(query: string, options?: any): Promise<GuestProfile[]>;
15259
- /**
15260
- *
15261
- * @summary Search for a lead with inbox.
15262
- * @param {string} query
15263
- * @param {*} [options] Override http request option.
15264
- * @throws {RequiredError}
15265
- */
15266
- searchLeadWithInbox(query: string, options?: any): Promise<GuestProfile[]>;
15267
15379
  /**
15268
15380
  *
15269
15381
  * @summary Grant or revoke admin privileges
@@ -15331,25 +15443,6 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
15331
15443
  * @throws {RequiredError}
15332
15444
  */
15333
15445
  setCloserCustomerApiKey(body: AdviserApiKeyForm, options?: any): Promise<Response>;
15334
- /**
15335
- *
15336
- * @summary Replace the guest profile.
15337
- * @param {GuestProfileForm} body
15338
- * @param {string} orgId
15339
- * @param {string} customerId
15340
- * @param {*} [options] Override http request option.
15341
- * @throws {RequiredError}
15342
- */
15343
- setGuestProfile(body: GuestProfileForm, orgId: string, customerId: string, options?: any): Promise<Response>;
15344
- /**
15345
- *
15346
- * @summary Replace the guest profile.
15347
- * @param {GuestProfileForm} body
15348
- * @param {string} orgId
15349
- * @param {*} [options] Override http request option.
15350
- * @throws {RequiredError}
15351
- */
15352
- setOwnGuestProfile(body: GuestProfileForm, orgId: string, options?: any): Promise<Response>;
15353
15446
  /**
15354
15447
  *
15355
15448
  * @summary Authorize guest with oauth login hint token
@@ -15409,15 +15502,6 @@ export declare const UsersApiFactory: (configuration?: Configuration, fetch?: Fe
15409
15502
  * @throws {RequiredError}
15410
15503
  */
15411
15504
  updateOwnGuestProfile(body: GuestProfileFormPatch, orgId: string, options?: any): Promise<LeadProfile>;
15412
- /**
15413
- *
15414
- * @summary Update the guest profile.
15415
- * @param {GuestProfileFormPatch} body
15416
- * @param {string} orgId
15417
- * @param {*} [options] Override http request option.
15418
- * @throws {RequiredError}
15419
- */
15420
- updateOwnGuestProfileDeprecated(body: GuestProfileFormPatch, orgId: string, options?: any): Promise<Response>;
15421
15505
  /**
15422
15506
  *
15423
15507
  * @summary Validate phone number
@@ -15718,15 +15802,6 @@ export declare class UsersApi extends BaseAPI {
15718
15802
  * @memberof UsersApi
15719
15803
  */
15720
15804
  searchGuest(query: string, options?: any): Promise<GuestProfile[]>;
15721
- /**
15722
- *
15723
- * @summary Search for a lead with inbox.
15724
- * @param {string} query
15725
- * @param {*} [options] Override http request option.
15726
- * @throws {RequiredError}
15727
- * @memberof UsersApi
15728
- */
15729
- searchLeadWithInbox(query: string, options?: any): Promise<GuestProfile[]>;
15730
15805
  /**
15731
15806
  *
15732
15807
  * @summary Grant or revoke admin privileges
@@ -15802,27 +15877,6 @@ export declare class UsersApi extends BaseAPI {
15802
15877
  * @memberof UsersApi
15803
15878
  */
15804
15879
  setCloserCustomerApiKey(body: AdviserApiKeyForm, options?: any): Promise<Response>;
15805
- /**
15806
- *
15807
- * @summary Replace the guest profile.
15808
- * @param {GuestProfileForm} body
15809
- * @param {string} orgId
15810
- * @param {string} customerId
15811
- * @param {*} [options] Override http request option.
15812
- * @throws {RequiredError}
15813
- * @memberof UsersApi
15814
- */
15815
- setGuestProfile(body: GuestProfileForm, orgId: string, customerId: string, options?: any): Promise<Response>;
15816
- /**
15817
- *
15818
- * @summary Replace the guest profile.
15819
- * @param {GuestProfileForm} body
15820
- * @param {string} orgId
15821
- * @param {*} [options] Override http request option.
15822
- * @throws {RequiredError}
15823
- * @memberof UsersApi
15824
- */
15825
- setOwnGuestProfile(body: GuestProfileForm, orgId: string, options?: any): Promise<Response>;
15826
15880
  /**
15827
15881
  *
15828
15882
  * @summary Authorize guest with oauth login hint token
@@ -15889,16 +15943,6 @@ export declare class UsersApi extends BaseAPI {
15889
15943
  * @memberof UsersApi
15890
15944
  */
15891
15945
  updateOwnGuestProfile(body: GuestProfileFormPatch, orgId: string, options?: any): Promise<LeadProfile>;
15892
- /**
15893
- *
15894
- * @summary Update the guest profile.
15895
- * @param {GuestProfileFormPatch} body
15896
- * @param {string} orgId
15897
- * @param {*} [options] Override http request option.
15898
- * @throws {RequiredError}
15899
- * @memberof UsersApi
15900
- */
15901
- updateOwnGuestProfileDeprecated(body: GuestProfileFormPatch, orgId: string, options?: any): Promise<Response>;
15902
15946
  /**
15903
15947
  *
15904
15948
  * @summary Validate phone number
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
@@ -17381,7 +17657,7 @@ exports.UsersApiFetchParamCreator = function (configuration) {
17381
17657
  if (customerId === null || customerId === undefined) {
17382
17658
  throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling patchGuestProfile.');
17383
17659
  }
17384
- const localVarPath = `/agents/customer/{customerId}/{orgId}`
17660
+ const localVarPath = `/bots/personalData`
17385
17661
  .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
17386
17662
  .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
17387
17663
  const localVarUrlObj = url.parse(localVarPath, true);
@@ -17585,42 +17861,6 @@ exports.UsersApiFetchParamCreator = function (configuration) {
17585
17861
  options: localVarRequestOptions,
17586
17862
  };
17587
17863
  },
17588
- /**
17589
- *
17590
- * @summary Search for a lead with inbox.
17591
- * @param {string} query
17592
- * @param {*} [options] Override http request option.
17593
- * @throws {RequiredError}
17594
- */
17595
- searchLeadWithInbox(query, options = {}) {
17596
- // verify required parameter 'query' is not null or undefined
17597
- if (query === null || query === undefined) {
17598
- throw new RequiredError('query', 'Required parameter query was null or undefined when calling searchLeadWithInbox.');
17599
- }
17600
- const localVarPath = `/users/leads/search`;
17601
- const localVarUrlObj = url.parse(localVarPath, true);
17602
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
17603
- const localVarHeaderParameter = {};
17604
- const localVarQueryParameter = {};
17605
- // authentication apiKey required
17606
- if (configuration && configuration.apiKey) {
17607
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17608
- ? configuration.apiKey("X-Api-Key")
17609
- : configuration.apiKey;
17610
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17611
- }
17612
- if (query !== undefined) {
17613
- localVarQueryParameter['query'] = query;
17614
- }
17615
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17616
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17617
- delete localVarUrlObj.search;
17618
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
17619
- return {
17620
- url: url.format(localVarUrlObj),
17621
- options: localVarRequestOptions,
17622
- };
17623
- },
17624
17864
  /**
17625
17865
  *
17626
17866
  * @summary Grant or revoke admin privileges
@@ -17927,103 +18167,6 @@ exports.UsersApiFetchParamCreator = function (configuration) {
17927
18167
  options: localVarRequestOptions,
17928
18168
  };
17929
18169
  },
17930
- /**
17931
- *
17932
- * @summary Replace the guest profile.
17933
- * @param {GuestProfileForm} body
17934
- * @param {string} orgId
17935
- * @param {string} customerId
17936
- * @param {*} [options] Override http request option.
17937
- * @throws {RequiredError}
17938
- */
17939
- setGuestProfile(body, orgId, customerId, options = {}) {
17940
- // verify required parameter 'body' is not null or undefined
17941
- if (body === null || body === undefined) {
17942
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling setGuestProfile.');
17943
- }
17944
- // verify required parameter 'orgId' is not null or undefined
17945
- if (orgId === null || orgId === undefined) {
17946
- throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling setGuestProfile.');
17947
- }
17948
- // verify required parameter 'customerId' is not null or undefined
17949
- if (customerId === null || customerId === undefined) {
17950
- throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling setGuestProfile.');
17951
- }
17952
- const localVarPath = `/agents/customer/{customerId}/{orgId}`
17953
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)))
17954
- .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
17955
- const localVarUrlObj = url.parse(localVarPath, true);
17956
- const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
17957
- const localVarHeaderParameter = {};
17958
- const localVarQueryParameter = {};
17959
- // authentication apiKey required
17960
- if (configuration && configuration.apiKey) {
17961
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17962
- ? configuration.apiKey("X-Api-Key")
17963
- : configuration.apiKey;
17964
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17965
- }
17966
- localVarHeaderParameter['Content-Type'] = 'application/json';
17967
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17968
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17969
- delete localVarUrlObj.search;
17970
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
17971
- const needsSerialization = ("GuestProfileForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
17972
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
17973
- return {
17974
- url: url.format(localVarUrlObj),
17975
- options: localVarRequestOptions,
17976
- };
17977
- },
17978
- /**
17979
- *
17980
- * @summary Replace the guest profile.
17981
- * @param {GuestProfileForm} body
17982
- * @param {string} orgId
17983
- * @param {*} [options] Override http request option.
17984
- * @throws {RequiredError}
17985
- */
17986
- setOwnGuestProfile(body, orgId, options = {}) {
17987
- // verify required parameter 'body' is not null or undefined
17988
- if (body === null || body === undefined) {
17989
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling setOwnGuestProfile.');
17990
- }
17991
- // verify required parameter 'orgId' is not null or undefined
17992
- if (orgId === null || orgId === undefined) {
17993
- throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling setOwnGuestProfile.');
17994
- }
17995
- const localVarPath = `/users/guest/{orgId}`
17996
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
17997
- const localVarUrlObj = url.parse(localVarPath, true);
17998
- const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
17999
- const localVarHeaderParameter = {};
18000
- const localVarQueryParameter = {};
18001
- // authentication apiKey required
18002
- if (configuration && configuration.apiKey) {
18003
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18004
- ? configuration.apiKey("X-Api-Key")
18005
- : configuration.apiKey;
18006
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
18007
- }
18008
- // authentication fingerprintAuth required
18009
- if (configuration && configuration.apiKey) {
18010
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18011
- ? configuration.apiKey("X-Fingerprint")
18012
- : configuration.apiKey;
18013
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
18014
- }
18015
- localVarHeaderParameter['Content-Type'] = 'application/json';
18016
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
18017
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18018
- delete localVarUrlObj.search;
18019
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
18020
- const needsSerialization = ("GuestProfileForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
18021
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
18022
- return {
18023
- url: url.format(localVarUrlObj),
18024
- options: localVarRequestOptions,
18025
- };
18026
- },
18027
18170
  /**
18028
18171
  *
18029
18172
  * @summary Authorize guest with oauth login hint token
@@ -18303,55 +18446,6 @@ exports.UsersApiFetchParamCreator = function (configuration) {
18303
18446
  options: localVarRequestOptions,
18304
18447
  };
18305
18448
  },
18306
- /**
18307
- *
18308
- * @summary Update the guest profile.
18309
- * @param {GuestProfileFormPatch} body
18310
- * @param {string} orgId
18311
- * @param {*} [options] Override http request option.
18312
- * @throws {RequiredError}
18313
- */
18314
- updateOwnGuestProfileDeprecated(body, orgId, options = {}) {
18315
- // verify required parameter 'body' is not null or undefined
18316
- if (body === null || body === undefined) {
18317
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateOwnGuestProfileDeprecated.');
18318
- }
18319
- // verify required parameter 'orgId' is not null or undefined
18320
- if (orgId === null || orgId === undefined) {
18321
- throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling updateOwnGuestProfileDeprecated.');
18322
- }
18323
- const localVarPath = `/users/guest/{orgId}`
18324
- .replace(`{${"orgId"}}`, encodeURIComponent(String(orgId)));
18325
- const localVarUrlObj = url.parse(localVarPath, true);
18326
- const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
18327
- const localVarHeaderParameter = {};
18328
- const localVarQueryParameter = {};
18329
- // authentication apiKey required
18330
- if (configuration && configuration.apiKey) {
18331
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18332
- ? configuration.apiKey("X-Api-Key")
18333
- : configuration.apiKey;
18334
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
18335
- }
18336
- // authentication fingerprintAuth required
18337
- if (configuration && configuration.apiKey) {
18338
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
18339
- ? configuration.apiKey("X-Fingerprint")
18340
- : configuration.apiKey;
18341
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
18342
- }
18343
- localVarHeaderParameter['Content-Type'] = 'application/json';
18344
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
18345
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
18346
- delete localVarUrlObj.search;
18347
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
18348
- const needsSerialization = ("GuestProfileFormPatch" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
18349
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
18350
- return {
18351
- url: url.format(localVarUrlObj),
18352
- options: localVarRequestOptions,
18353
- };
18354
- },
18355
18449
  /**
18356
18450
  *
18357
18451
  * @summary Validate phone number
@@ -19039,26 +19133,6 @@ exports.UsersApiFp = function (configuration) {
19039
19133
  });
19040
19134
  };
19041
19135
  },
19042
- /**
19043
- *
19044
- * @summary Search for a lead with inbox.
19045
- * @param {string} query
19046
- * @param {*} [options] Override http request option.
19047
- * @throws {RequiredError}
19048
- */
19049
- searchLeadWithInbox(query, options) {
19050
- const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).searchLeadWithInbox(query, options);
19051
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
19052
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
19053
- if (response.status >= 200 && response.status < 300) {
19054
- return response.json();
19055
- }
19056
- else {
19057
- throw response;
19058
- }
19059
- });
19060
- };
19061
- },
19062
19136
  /**
19063
19137
  *
19064
19138
  * @summary Grant or revoke admin privileges
@@ -19222,49 +19296,6 @@ exports.UsersApiFp = function (configuration) {
19222
19296
  });
19223
19297
  };
19224
19298
  },
19225
- /**
19226
- *
19227
- * @summary Replace the guest profile.
19228
- * @param {GuestProfileForm} body
19229
- * @param {string} orgId
19230
- * @param {string} customerId
19231
- * @param {*} [options] Override http request option.
19232
- * @throws {RequiredError}
19233
- */
19234
- setGuestProfile(body, orgId, customerId, options) {
19235
- const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).setGuestProfile(body, orgId, customerId, options);
19236
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
19237
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
19238
- if (response.status >= 200 && response.status < 300) {
19239
- return response;
19240
- }
19241
- else {
19242
- throw response;
19243
- }
19244
- });
19245
- };
19246
- },
19247
- /**
19248
- *
19249
- * @summary Replace the guest profile.
19250
- * @param {GuestProfileForm} body
19251
- * @param {string} orgId
19252
- * @param {*} [options] Override http request option.
19253
- * @throws {RequiredError}
19254
- */
19255
- setOwnGuestProfile(body, orgId, options) {
19256
- const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).setOwnGuestProfile(body, orgId, options);
19257
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
19258
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
19259
- if (response.status >= 200 && response.status < 300) {
19260
- return response;
19261
- }
19262
- else {
19263
- throw response;
19264
- }
19265
- });
19266
- };
19267
- },
19268
19299
  /**
19269
19300
  *
19270
19301
  * @summary Authorize guest with oauth login hint token
@@ -19408,27 +19439,6 @@ exports.UsersApiFp = function (configuration) {
19408
19439
  });
19409
19440
  };
19410
19441
  },
19411
- /**
19412
- *
19413
- * @summary Update the guest profile.
19414
- * @param {GuestProfileFormPatch} body
19415
- * @param {string} orgId
19416
- * @param {*} [options] Override http request option.
19417
- * @throws {RequiredError}
19418
- */
19419
- updateOwnGuestProfileDeprecated(body, orgId, options) {
19420
- const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).updateOwnGuestProfileDeprecated(body, orgId, options);
19421
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
19422
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
19423
- if (response.status >= 200 && response.status < 300) {
19424
- return response;
19425
- }
19426
- else {
19427
- throw response;
19428
- }
19429
- });
19430
- };
19431
- },
19432
19442
  /**
19433
19443
  *
19434
19444
  * @summary Validate phone number
@@ -19773,16 +19783,6 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
19773
19783
  searchGuest(query, options) {
19774
19784
  return exports.UsersApiFp(configuration).searchGuest(query, options)(fetch, basePath);
19775
19785
  },
19776
- /**
19777
- *
19778
- * @summary Search for a lead with inbox.
19779
- * @param {string} query
19780
- * @param {*} [options] Override http request option.
19781
- * @throws {RequiredError}
19782
- */
19783
- searchLeadWithInbox(query, options) {
19784
- return exports.UsersApiFp(configuration).searchLeadWithInbox(query, options)(fetch, basePath);
19785
- },
19786
19786
  /**
19787
19787
  *
19788
19788
  * @summary Grant or revoke admin privileges
@@ -19866,29 +19866,6 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
19866
19866
  setCloserCustomerApiKey(body, options) {
19867
19867
  return exports.UsersApiFp(configuration).setCloserCustomerApiKey(body, options)(fetch, basePath);
19868
19868
  },
19869
- /**
19870
- *
19871
- * @summary Replace the guest profile.
19872
- * @param {GuestProfileForm} body
19873
- * @param {string} orgId
19874
- * @param {string} customerId
19875
- * @param {*} [options] Override http request option.
19876
- * @throws {RequiredError}
19877
- */
19878
- setGuestProfile(body, orgId, customerId, options) {
19879
- return exports.UsersApiFp(configuration).setGuestProfile(body, orgId, customerId, options)(fetch, basePath);
19880
- },
19881
- /**
19882
- *
19883
- * @summary Replace the guest profile.
19884
- * @param {GuestProfileForm} body
19885
- * @param {string} orgId
19886
- * @param {*} [options] Override http request option.
19887
- * @throws {RequiredError}
19888
- */
19889
- setOwnGuestProfile(body, orgId, options) {
19890
- return exports.UsersApiFp(configuration).setOwnGuestProfile(body, orgId, options)(fetch, basePath);
19891
- },
19892
19869
  /**
19893
19870
  *
19894
19871
  * @summary Authorize guest with oauth login hint token
@@ -19962,17 +19939,6 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
19962
19939
  updateOwnGuestProfile(body, orgId, options) {
19963
19940
  return exports.UsersApiFp(configuration).updateOwnGuestProfile(body, orgId, options)(fetch, basePath);
19964
19941
  },
19965
- /**
19966
- *
19967
- * @summary Update the guest profile.
19968
- * @param {GuestProfileFormPatch} body
19969
- * @param {string} orgId
19970
- * @param {*} [options] Override http request option.
19971
- * @throws {RequiredError}
19972
- */
19973
- updateOwnGuestProfileDeprecated(body, orgId, options) {
19974
- return exports.UsersApiFp(configuration).updateOwnGuestProfileDeprecated(body, orgId, options)(fetch, basePath);
19975
- },
19976
19942
  /**
19977
19943
  *
19978
19944
  * @summary Validate phone number
@@ -20340,17 +20306,6 @@ class UsersApi extends BaseAPI {
20340
20306
  searchGuest(query, options) {
20341
20307
  return exports.UsersApiFp(this.configuration).searchGuest(query, options)(this.fetch, this.basePath);
20342
20308
  }
20343
- /**
20344
- *
20345
- * @summary Search for a lead with inbox.
20346
- * @param {string} query
20347
- * @param {*} [options] Override http request option.
20348
- * @throws {RequiredError}
20349
- * @memberof UsersApi
20350
- */
20351
- searchLeadWithInbox(query, options) {
20352
- return exports.UsersApiFp(this.configuration).searchLeadWithInbox(query, options)(this.fetch, this.basePath);
20353
- }
20354
20309
  /**
20355
20310
  *
20356
20311
  * @summary Grant or revoke admin privileges
@@ -20442,31 +20397,6 @@ class UsersApi extends BaseAPI {
20442
20397
  setCloserCustomerApiKey(body, options) {
20443
20398
  return exports.UsersApiFp(this.configuration).setCloserCustomerApiKey(body, options)(this.fetch, this.basePath);
20444
20399
  }
20445
- /**
20446
- *
20447
- * @summary Replace the guest profile.
20448
- * @param {GuestProfileForm} body
20449
- * @param {string} orgId
20450
- * @param {string} customerId
20451
- * @param {*} [options] Override http request option.
20452
- * @throws {RequiredError}
20453
- * @memberof UsersApi
20454
- */
20455
- setGuestProfile(body, orgId, customerId, options) {
20456
- return exports.UsersApiFp(this.configuration).setGuestProfile(body, orgId, customerId, options)(this.fetch, this.basePath);
20457
- }
20458
- /**
20459
- *
20460
- * @summary Replace the guest profile.
20461
- * @param {GuestProfileForm} body
20462
- * @param {string} orgId
20463
- * @param {*} [options] Override http request option.
20464
- * @throws {RequiredError}
20465
- * @memberof UsersApi
20466
- */
20467
- setOwnGuestProfile(body, orgId, options) {
20468
- return exports.UsersApiFp(this.configuration).setOwnGuestProfile(body, orgId, options)(this.fetch, this.basePath);
20469
- }
20470
20400
  /**
20471
20401
  *
20472
20402
  * @summary Authorize guest with oauth login hint token
@@ -20547,18 +20477,6 @@ class UsersApi extends BaseAPI {
20547
20477
  updateOwnGuestProfile(body, orgId, options) {
20548
20478
  return exports.UsersApiFp(this.configuration).updateOwnGuestProfile(body, orgId, options)(this.fetch, this.basePath);
20549
20479
  }
20550
- /**
20551
- *
20552
- * @summary Update the guest profile.
20553
- * @param {GuestProfileFormPatch} body
20554
- * @param {string} orgId
20555
- * @param {*} [options] Override http request option.
20556
- * @throws {RequiredError}
20557
- * @memberof UsersApi
20558
- */
20559
- updateOwnGuestProfileDeprecated(body, orgId, options) {
20560
- return exports.UsersApiFp(this.configuration).updateOwnGuestProfileDeprecated(body, orgId, options)(this.fetch, this.basePath);
20561
- }
20562
20480
  /**
20563
20481
  *
20564
20482
  * @summary Validate phone number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.49",
3
+ "version": "0.12.54",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [