@closerplatform/spinner-openapi 0.12.59 → 0.12.63

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 +342 -783
  2. package/dist/api.js +165 -1344
  3. package/package.json +1 -1
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.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;
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.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(/\/+$/, "");
@@ -77,6 +77,7 @@ var AppPermission;
77
77
  AppPermission["SettingsAdvisersConfiguration"] = "settings_advisers_configuration";
78
78
  AppPermission["SettingsAgentGroupsConfiguration"] = "settings_agent_groups_configuration";
79
79
  AppPermission["SettingsAdvisersAssignments"] = "settings_advisers_assignments";
80
+ AppPermission["SettingsAdvisersAutoAssignedLimit"] = "settings_advisers_auto_assigned_limit";
80
81
  AppPermission["SettingsAdvisersAvatar"] = "settings_advisers_avatar";
81
82
  AppPermission["SettingsActionForms"] = "settings_action_forms";
82
83
  AppPermission["SettingsStatuses"] = "settings_statuses";
@@ -3791,1283 +3792,6 @@ class ConversationsApi extends BaseAPI {
3791
3792
  }
3792
3793
  }
3793
3794
  exports.ConversationsApi = ConversationsApi;
3794
- /**
3795
- * CustomersApi - fetch parameter creator
3796
- * @export
3797
- */
3798
- exports.CustomersApiFetchParamCreator = function (configuration) {
3799
- return {
3800
- /**
3801
- *
3802
- * @summary Add new address
3803
- * @param {CustomerAddressForm} body
3804
- * @param {*} [options] Override http request option.
3805
- * @throws {RequiredError}
3806
- */
3807
- addAddress(body, options = {}) {
3808
- // verify required parameter 'body' is not null or undefined
3809
- if (body === null || body === undefined) {
3810
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling addAddress.');
3811
- }
3812
- const localVarPath = `/customers/addresses`;
3813
- const localVarUrlObj = url.parse(localVarPath, true);
3814
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
3815
- const localVarHeaderParameter = {};
3816
- const localVarQueryParameter = {};
3817
- localVarHeaderParameter['Content-Type'] = 'application/json';
3818
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3819
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3820
- delete localVarUrlObj.search;
3821
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3822
- const needsSerialization = ("CustomerAddressForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
3823
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
3824
- return {
3825
- url: url.format(localVarUrlObj),
3826
- options: localVarRequestOptions,
3827
- };
3828
- },
3829
- /**
3830
- *
3831
- * @summary Add uncofirmed login
3832
- * @param {CustomerLoginForm} body
3833
- * @param {*} [options] Override http request option.
3834
- * @throws {RequiredError}
3835
- */
3836
- addLogin(body, options = {}) {
3837
- // verify required parameter 'body' is not null or undefined
3838
- if (body === null || body === undefined) {
3839
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling addLogin.');
3840
- }
3841
- const localVarPath = `/customers/logins`;
3842
- const localVarUrlObj = url.parse(localVarPath, true);
3843
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
3844
- const localVarHeaderParameter = {};
3845
- const localVarQueryParameter = {};
3846
- // authentication apiKey required
3847
- if (configuration && configuration.apiKey) {
3848
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3849
- ? configuration.apiKey("X-Api-Key")
3850
- : configuration.apiKey;
3851
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
3852
- }
3853
- localVarHeaderParameter['Content-Type'] = 'application/json';
3854
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3855
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3856
- delete localVarUrlObj.search;
3857
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3858
- const needsSerialization = ("CustomerLoginForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
3859
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
3860
- return {
3861
- url: url.format(localVarUrlObj),
3862
- options: localVarRequestOptions,
3863
- };
3864
- },
3865
- /**
3866
- *
3867
- * @summary Add or replace pin to Vault
3868
- * @param {PinForm} body
3869
- * @param {*} [options] Override http request option.
3870
- * @throws {RequiredError}
3871
- */
3872
- addPin(body, options = {}) {
3873
- // verify required parameter 'body' is not null or undefined
3874
- if (body === null || body === undefined) {
3875
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling addPin.');
3876
- }
3877
- const localVarPath = `/customers/pin`;
3878
- const localVarUrlObj = url.parse(localVarPath, true);
3879
- const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
3880
- const localVarHeaderParameter = {};
3881
- const localVarQueryParameter = {};
3882
- // authentication apiKey required
3883
- if (configuration && configuration.apiKey) {
3884
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3885
- ? configuration.apiKey("X-Api-Key")
3886
- : configuration.apiKey;
3887
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
3888
- }
3889
- // authentication fingerprintAuth required
3890
- if (configuration && configuration.apiKey) {
3891
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
3892
- ? configuration.apiKey("X-Fingerprint")
3893
- : configuration.apiKey;
3894
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
3895
- }
3896
- localVarHeaderParameter['Content-Type'] = 'application/json';
3897
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3898
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3899
- delete localVarUrlObj.search;
3900
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3901
- const needsSerialization = ("PinForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
3902
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
3903
- return {
3904
- url: url.format(localVarUrlObj),
3905
- options: localVarRequestOptions,
3906
- };
3907
- },
3908
- /**
3909
- *
3910
- * @summary Confirm the new login (either email or phone number)
3911
- * @param {CustomerLoginConfirmForm} body
3912
- * @param {*} [options] Override http request option.
3913
- * @throws {RequiredError}
3914
- */
3915
- confirmLogin(body, options = {}) {
3916
- // verify required parameter 'body' is not null or undefined
3917
- if (body === null || body === undefined) {
3918
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling confirmLogin.');
3919
- }
3920
- const localVarPath = `/customers/logins/confirm`;
3921
- const localVarUrlObj = url.parse(localVarPath, true);
3922
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
3923
- const localVarHeaderParameter = {};
3924
- const localVarQueryParameter = {};
3925
- localVarHeaderParameter['Content-Type'] = 'application/json';
3926
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3927
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3928
- delete localVarUrlObj.search;
3929
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3930
- const needsSerialization = ("CustomerLoginConfirmForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
3931
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
3932
- return {
3933
- url: url.format(localVarUrlObj),
3934
- options: localVarRequestOptions,
3935
- };
3936
- },
3937
- /**
3938
- *
3939
- * @summary Confirm an email/number while signing in
3940
- * @param {CustomerSignInConfirm} body
3941
- * @param {*} [options] Override http request option.
3942
- * @throws {RequiredError}
3943
- */
3944
- confirmSignIn(body, options = {}) {
3945
- // verify required parameter 'body' is not null or undefined
3946
- if (body === null || body === undefined) {
3947
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling confirmSignIn.');
3948
- }
3949
- const localVarPath = `/customers/confirmSignIn`;
3950
- const localVarUrlObj = url.parse(localVarPath, true);
3951
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
3952
- const localVarHeaderParameter = {};
3953
- const localVarQueryParameter = {};
3954
- localVarHeaderParameter['Content-Type'] = 'application/json';
3955
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3956
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3957
- delete localVarUrlObj.search;
3958
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3959
- const needsSerialization = ("CustomerSignInConfirm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
3960
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
3961
- return {
3962
- url: url.format(localVarUrlObj),
3963
- options: localVarRequestOptions,
3964
- };
3965
- },
3966
- /**
3967
- *
3968
- * @summary Confirm an email/number while signing up
3969
- * @param {CustomerSignUpConfirm} body
3970
- * @param {*} [options] Override http request option.
3971
- * @throws {RequiredError}
3972
- */
3973
- confirmSignUp(body, options = {}) {
3974
- // verify required parameter 'body' is not null or undefined
3975
- if (body === null || body === undefined) {
3976
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling confirmSignUp.');
3977
- }
3978
- const localVarPath = `/customers/confirmSignUp`;
3979
- const localVarUrlObj = url.parse(localVarPath, true);
3980
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
3981
- const localVarHeaderParameter = {};
3982
- const localVarQueryParameter = {};
3983
- localVarHeaderParameter['Content-Type'] = 'application/json';
3984
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
3985
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
3986
- delete localVarUrlObj.search;
3987
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
3988
- const needsSerialization = ("CustomerSignUpConfirm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
3989
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
3990
- return {
3991
- url: url.format(localVarUrlObj),
3992
- options: localVarRequestOptions,
3993
- };
3994
- },
3995
- /**
3996
- *
3997
- * @summary Create lead for org
3998
- * @param {LeadRequest} body
3999
- * @param {*} [options] Override http request option.
4000
- * @throws {RequiredError}
4001
- */
4002
- createLead(body, options = {}) {
4003
- // verify required parameter 'body' is not null or undefined
4004
- if (body === null || body === undefined) {
4005
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling createLead.');
4006
- }
4007
- const localVarPath = `/customers/lead`;
4008
- const localVarUrlObj = url.parse(localVarPath, true);
4009
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
4010
- const localVarHeaderParameter = {};
4011
- const localVarQueryParameter = {};
4012
- // authentication apiKey required
4013
- if (configuration && configuration.apiKey) {
4014
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4015
- ? configuration.apiKey("X-Api-Key")
4016
- : configuration.apiKey;
4017
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4018
- }
4019
- localVarHeaderParameter['Content-Type'] = 'application/json';
4020
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4021
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4022
- delete localVarUrlObj.search;
4023
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4024
- const needsSerialization = ("LeadRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
4025
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
4026
- return {
4027
- url: url.format(localVarUrlObj),
4028
- options: localVarRequestOptions,
4029
- };
4030
- },
4031
- /**
4032
- *
4033
- * @summary Anonymize customer profile
4034
- * @param {string} customerId
4035
- * @param {*} [options] Override http request option.
4036
- * @throws {RequiredError}
4037
- */
4038
- deleteCustomerDeprecated(customerId, options = {}) {
4039
- // verify required parameter 'customerId' is not null or undefined
4040
- if (customerId === null || customerId === undefined) {
4041
- throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling deleteCustomerDeprecated.');
4042
- }
4043
- const localVarPath = `/customers/customer/{customerId}`
4044
- .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
4045
- const localVarUrlObj = url.parse(localVarPath, true);
4046
- const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
4047
- const localVarHeaderParameter = {};
4048
- const localVarQueryParameter = {};
4049
- // authentication apiKey required
4050
- if (configuration && configuration.apiKey) {
4051
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4052
- ? configuration.apiKey("X-Api-Key")
4053
- : configuration.apiKey;
4054
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4055
- }
4056
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4057
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4058
- delete localVarUrlObj.search;
4059
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4060
- return {
4061
- url: url.format(localVarUrlObj),
4062
- options: localVarRequestOptions,
4063
- };
4064
- },
4065
- /**
4066
- *
4067
- * @summary Get list of customer addresses
4068
- * @param {*} [options] Override http request option.
4069
- * @throws {RequiredError}
4070
- */
4071
- getAddresses(options = {}) {
4072
- const localVarPath = `/customers/addresses`;
4073
- const localVarUrlObj = url.parse(localVarPath, true);
4074
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
4075
- const localVarHeaderParameter = {};
4076
- const localVarQueryParameter = {};
4077
- // authentication vaultToken required
4078
- if (configuration && configuration.apiKey) {
4079
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4080
- ? configuration.apiKey("X-Vault-Token")
4081
- : configuration.apiKey;
4082
- localVarHeaderParameter["X-Vault-Token"] = localVarApiKeyValue;
4083
- }
4084
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4085
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4086
- delete localVarUrlObj.search;
4087
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4088
- return {
4089
- url: url.format(localVarUrlObj),
4090
- options: localVarRequestOptions,
4091
- };
4092
- },
4093
- /**
4094
- *
4095
- * @summary Get customer logins
4096
- * @param {*} [options] Override http request option.
4097
- * @throws {RequiredError}
4098
- */
4099
- getCustomerLogins(options = {}) {
4100
- const localVarPath = `/customers/logins`;
4101
- const localVarUrlObj = url.parse(localVarPath, true);
4102
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
4103
- const localVarHeaderParameter = {};
4104
- const localVarQueryParameter = {};
4105
- // authentication apiKey required
4106
- if (configuration && configuration.apiKey) {
4107
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4108
- ? configuration.apiKey("X-Api-Key")
4109
- : configuration.apiKey;
4110
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4111
- }
4112
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4113
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4114
- delete localVarUrlObj.search;
4115
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4116
- return {
4117
- url: url.format(localVarUrlObj),
4118
- options: localVarRequestOptions,
4119
- };
4120
- },
4121
- /**
4122
- *
4123
- * @summary Get customer profile by id
4124
- * @param {string} customerId
4125
- * @param {*} [options] Override http request option.
4126
- * @throws {RequiredError}
4127
- */
4128
- getCustomerProfile(customerId, options = {}) {
4129
- // verify required parameter 'customerId' is not null or undefined
4130
- if (customerId === null || customerId === undefined) {
4131
- throw new RequiredError('customerId', 'Required parameter customerId was null or undefined when calling getCustomerProfile.');
4132
- }
4133
- const localVarPath = `/customers/customer/{customerId}`
4134
- .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
4135
- const localVarUrlObj = url.parse(localVarPath, true);
4136
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
4137
- const localVarHeaderParameter = {};
4138
- const localVarQueryParameter = {};
4139
- // authentication apiKey required
4140
- if (configuration && configuration.apiKey) {
4141
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4142
- ? configuration.apiKey("X-Api-Key")
4143
- : configuration.apiKey;
4144
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4145
- }
4146
- // authentication fingerprintAuth required
4147
- if (configuration && configuration.apiKey) {
4148
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4149
- ? configuration.apiKey("X-Fingerprint")
4150
- : configuration.apiKey;
4151
- localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
4152
- }
4153
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4154
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4155
- delete localVarUrlObj.search;
4156
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4157
- return {
4158
- url: url.format(localVarUrlObj),
4159
- options: localVarRequestOptions,
4160
- };
4161
- },
4162
- /**
4163
- *
4164
- * @summary Get own customer profile
4165
- * @param {*} [options] Override http request option.
4166
- * @throws {RequiredError}
4167
- */
4168
- getOwnCustomerProfile(options = {}) {
4169
- const localVarPath = `/customers/customer`;
4170
- const localVarUrlObj = url.parse(localVarPath, true);
4171
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
4172
- const localVarHeaderParameter = {};
4173
- const localVarQueryParameter = {};
4174
- // authentication apiKey required
4175
- if (configuration && configuration.apiKey) {
4176
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4177
- ? configuration.apiKey("X-Api-Key")
4178
- : configuration.apiKey;
4179
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4180
- }
4181
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4182
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4183
- delete localVarUrlObj.search;
4184
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4185
- return {
4186
- url: url.format(localVarUrlObj),
4187
- options: localVarRequestOptions,
4188
- };
4189
- },
4190
- /**
4191
- *
4192
- * @summary Generate and get vault token
4193
- * @param {PinForm} body
4194
- * @param {*} [options] Override http request option.
4195
- * @throws {RequiredError}
4196
- */
4197
- getVaultToken(body, options = {}) {
4198
- // verify required parameter 'body' is not null or undefined
4199
- if (body === null || body === undefined) {
4200
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling getVaultToken.');
4201
- }
4202
- const localVarPath = `/customers/vaultToken`;
4203
- const localVarUrlObj = url.parse(localVarPath, true);
4204
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
4205
- const localVarHeaderParameter = {};
4206
- const localVarQueryParameter = {};
4207
- // authentication apiKey required
4208
- if (configuration && configuration.apiKey) {
4209
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4210
- ? configuration.apiKey("X-Api-Key")
4211
- : configuration.apiKey;
4212
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4213
- }
4214
- localVarHeaderParameter['Content-Type'] = 'application/json';
4215
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4216
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4217
- delete localVarUrlObj.search;
4218
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4219
- const needsSerialization = ("PinForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
4220
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
4221
- return {
4222
- url: url.format(localVarUrlObj),
4223
- options: localVarRequestOptions,
4224
- };
4225
- },
4226
- /**
4227
- *
4228
- * @summary Request confirmation code to sign in
4229
- * @param {CustomerSignInForm} body
4230
- * @param {*} [options] Override http request option.
4231
- * @throws {RequiredError}
4232
- */
4233
- requestSignIn(body, options = {}) {
4234
- // verify required parameter 'body' is not null or undefined
4235
- if (body === null || body === undefined) {
4236
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling requestSignIn.');
4237
- }
4238
- const localVarPath = `/customers/requestSignIn`;
4239
- const localVarUrlObj = url.parse(localVarPath, true);
4240
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
4241
- const localVarHeaderParameter = {};
4242
- const localVarQueryParameter = {};
4243
- localVarHeaderParameter['Content-Type'] = 'application/json';
4244
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4245
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4246
- delete localVarUrlObj.search;
4247
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4248
- const needsSerialization = ("CustomerSignInForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
4249
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
4250
- return {
4251
- url: url.format(localVarUrlObj),
4252
- options: localVarRequestOptions,
4253
- };
4254
- },
4255
- /**
4256
- *
4257
- * @summary Request confirmation code to sign up
4258
- * @param {CustomerSignUpForm} body
4259
- * @param {*} [options] Override http request option.
4260
- * @throws {RequiredError}
4261
- */
4262
- requestSignUp(body, options = {}) {
4263
- // verify required parameter 'body' is not null or undefined
4264
- if (body === null || body === undefined) {
4265
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling requestSignUp.');
4266
- }
4267
- const localVarPath = `/customers/requestSignUp`;
4268
- const localVarUrlObj = url.parse(localVarPath, true);
4269
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
4270
- const localVarHeaderParameter = {};
4271
- const localVarQueryParameter = {};
4272
- localVarHeaderParameter['Content-Type'] = 'application/json';
4273
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4274
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4275
- delete localVarUrlObj.search;
4276
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4277
- const needsSerialization = ("CustomerSignUpForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
4278
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
4279
- return {
4280
- url: url.format(localVarUrlObj),
4281
- options: localVarRequestOptions,
4282
- };
4283
- },
4284
- /**
4285
- *
4286
- * @summary Search customer by login
4287
- * @param {string} query
4288
- * @param {*} [options] Override http request option.
4289
- * @throws {RequiredError}
4290
- */
4291
- searchCustomer(query, options = {}) {
4292
- // verify required parameter 'query' is not null or undefined
4293
- if (query === null || query === undefined) {
4294
- throw new RequiredError('query', 'Required parameter query was null or undefined when calling searchCustomer.');
4295
- }
4296
- const localVarPath = `/customers/search`;
4297
- const localVarUrlObj = url.parse(localVarPath, true);
4298
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
4299
- const localVarHeaderParameter = {};
4300
- const localVarQueryParameter = {};
4301
- // authentication apiKey required
4302
- if (configuration && configuration.apiKey) {
4303
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4304
- ? configuration.apiKey("X-Api-Key")
4305
- : configuration.apiKey;
4306
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4307
- }
4308
- if (query !== undefined) {
4309
- localVarQueryParameter['query'] = query;
4310
- }
4311
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4312
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4313
- delete localVarUrlObj.search;
4314
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4315
- return {
4316
- url: url.format(localVarUrlObj),
4317
- options: localVarRequestOptions,
4318
- };
4319
- },
4320
- /**
4321
- *
4322
- * @summary Update customer names
4323
- * @param {CustomerNames} body
4324
- * @param {*} [options] Override http request option.
4325
- * @throws {RequiredError}
4326
- */
4327
- updateCustomerNames(body, options = {}) {
4328
- // verify required parameter 'body' is not null or undefined
4329
- if (body === null || body === undefined) {
4330
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateCustomerNames.');
4331
- }
4332
- const localVarPath = `/customers/names`;
4333
- const localVarUrlObj = url.parse(localVarPath, true);
4334
- const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
4335
- const localVarHeaderParameter = {};
4336
- const localVarQueryParameter = {};
4337
- // authentication apiKey required
4338
- if (configuration && configuration.apiKey) {
4339
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
4340
- ? configuration.apiKey("X-Api-Key")
4341
- : configuration.apiKey;
4342
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
4343
- }
4344
- localVarHeaderParameter['Content-Type'] = 'application/json';
4345
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
4346
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
4347
- delete localVarUrlObj.search;
4348
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
4349
- const needsSerialization = ("CustomerNames" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
4350
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
4351
- return {
4352
- url: url.format(localVarUrlObj),
4353
- options: localVarRequestOptions,
4354
- };
4355
- },
4356
- };
4357
- };
4358
- /**
4359
- * CustomersApi - functional programming interface
4360
- * @export
4361
- */
4362
- exports.CustomersApiFp = function (configuration) {
4363
- return {
4364
- /**
4365
- *
4366
- * @summary Add new address
4367
- * @param {CustomerAddressForm} body
4368
- * @param {*} [options] Override http request option.
4369
- * @throws {RequiredError}
4370
- */
4371
- addAddress(body, options) {
4372
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).addAddress(body, options);
4373
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4374
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4375
- if (response.status >= 200 && response.status < 300) {
4376
- return response;
4377
- }
4378
- else {
4379
- throw response;
4380
- }
4381
- });
4382
- };
4383
- },
4384
- /**
4385
- *
4386
- * @summary Add uncofirmed login
4387
- * @param {CustomerLoginForm} body
4388
- * @param {*} [options] Override http request option.
4389
- * @throws {RequiredError}
4390
- */
4391
- addLogin(body, options) {
4392
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).addLogin(body, options);
4393
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4394
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4395
- if (response.status >= 200 && response.status < 300) {
4396
- return response;
4397
- }
4398
- else {
4399
- throw response;
4400
- }
4401
- });
4402
- };
4403
- },
4404
- /**
4405
- *
4406
- * @summary Add or replace pin to Vault
4407
- * @param {PinForm} body
4408
- * @param {*} [options] Override http request option.
4409
- * @throws {RequiredError}
4410
- */
4411
- addPin(body, options) {
4412
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).addPin(body, options);
4413
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4414
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4415
- if (response.status >= 200 && response.status < 300) {
4416
- return response;
4417
- }
4418
- else {
4419
- throw response;
4420
- }
4421
- });
4422
- };
4423
- },
4424
- /**
4425
- *
4426
- * @summary Confirm the new login (either email or phone number)
4427
- * @param {CustomerLoginConfirmForm} body
4428
- * @param {*} [options] Override http request option.
4429
- * @throws {RequiredError}
4430
- */
4431
- confirmLogin(body, options) {
4432
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).confirmLogin(body, options);
4433
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4434
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4435
- if (response.status >= 200 && response.status < 300) {
4436
- return response;
4437
- }
4438
- else {
4439
- throw response;
4440
- }
4441
- });
4442
- };
4443
- },
4444
- /**
4445
- *
4446
- * @summary Confirm an email/number while signing in
4447
- * @param {CustomerSignInConfirm} body
4448
- * @param {*} [options] Override http request option.
4449
- * @throws {RequiredError}
4450
- */
4451
- confirmSignIn(body, options) {
4452
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).confirmSignIn(body, options);
4453
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4454
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4455
- if (response.status >= 200 && response.status < 300) {
4456
- return response.json();
4457
- }
4458
- else {
4459
- throw response;
4460
- }
4461
- });
4462
- };
4463
- },
4464
- /**
4465
- *
4466
- * @summary Confirm an email/number while signing up
4467
- * @param {CustomerSignUpConfirm} body
4468
- * @param {*} [options] Override http request option.
4469
- * @throws {RequiredError}
4470
- */
4471
- confirmSignUp(body, options) {
4472
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).confirmSignUp(body, options);
4473
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4474
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4475
- if (response.status >= 200 && response.status < 300) {
4476
- return response.json();
4477
- }
4478
- else {
4479
- throw response;
4480
- }
4481
- });
4482
- };
4483
- },
4484
- /**
4485
- *
4486
- * @summary Create lead for org
4487
- * @param {LeadRequest} body
4488
- * @param {*} [options] Override http request option.
4489
- * @throws {RequiredError}
4490
- */
4491
- createLead(body, options) {
4492
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).createLead(body, options);
4493
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4494
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4495
- if (response.status >= 200 && response.status < 300) {
4496
- return response.json();
4497
- }
4498
- else {
4499
- throw response;
4500
- }
4501
- });
4502
- };
4503
- },
4504
- /**
4505
- *
4506
- * @summary Anonymize customer profile
4507
- * @param {string} customerId
4508
- * @param {*} [options] Override http request option.
4509
- * @throws {RequiredError}
4510
- */
4511
- deleteCustomerDeprecated(customerId, options) {
4512
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).deleteCustomerDeprecated(customerId, options);
4513
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4514
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4515
- if (response.status >= 200 && response.status < 300) {
4516
- return response;
4517
- }
4518
- else {
4519
- throw response;
4520
- }
4521
- });
4522
- };
4523
- },
4524
- /**
4525
- *
4526
- * @summary Get list of customer addresses
4527
- * @param {*} [options] Override http request option.
4528
- * @throws {RequiredError}
4529
- */
4530
- getAddresses(options) {
4531
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).getAddresses(options);
4532
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4533
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4534
- if (response.status >= 200 && response.status < 300) {
4535
- return response.json();
4536
- }
4537
- else {
4538
- throw response;
4539
- }
4540
- });
4541
- };
4542
- },
4543
- /**
4544
- *
4545
- * @summary Get customer logins
4546
- * @param {*} [options] Override http request option.
4547
- * @throws {RequiredError}
4548
- */
4549
- getCustomerLogins(options) {
4550
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).getCustomerLogins(options);
4551
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4552
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4553
- if (response.status >= 200 && response.status < 300) {
4554
- return response.json();
4555
- }
4556
- else {
4557
- throw response;
4558
- }
4559
- });
4560
- };
4561
- },
4562
- /**
4563
- *
4564
- * @summary Get customer profile by id
4565
- * @param {string} customerId
4566
- * @param {*} [options] Override http request option.
4567
- * @throws {RequiredError}
4568
- */
4569
- getCustomerProfile(customerId, options) {
4570
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).getCustomerProfile(customerId, options);
4571
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4572
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4573
- if (response.status >= 200 && response.status < 300) {
4574
- return response.json();
4575
- }
4576
- else {
4577
- throw response;
4578
- }
4579
- });
4580
- };
4581
- },
4582
- /**
4583
- *
4584
- * @summary Get own customer profile
4585
- * @param {*} [options] Override http request option.
4586
- * @throws {RequiredError}
4587
- */
4588
- getOwnCustomerProfile(options) {
4589
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).getOwnCustomerProfile(options);
4590
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4591
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4592
- if (response.status >= 200 && response.status < 300) {
4593
- return response.json();
4594
- }
4595
- else {
4596
- throw response;
4597
- }
4598
- });
4599
- };
4600
- },
4601
- /**
4602
- *
4603
- * @summary Generate and get vault token
4604
- * @param {PinForm} body
4605
- * @param {*} [options] Override http request option.
4606
- * @throws {RequiredError}
4607
- */
4608
- getVaultToken(body, options) {
4609
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).getVaultToken(body, options);
4610
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4611
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4612
- if (response.status >= 200 && response.status < 300) {
4613
- return response.json();
4614
- }
4615
- else {
4616
- throw response;
4617
- }
4618
- });
4619
- };
4620
- },
4621
- /**
4622
- *
4623
- * @summary Request confirmation code to sign in
4624
- * @param {CustomerSignInForm} body
4625
- * @param {*} [options] Override http request option.
4626
- * @throws {RequiredError}
4627
- */
4628
- requestSignIn(body, options) {
4629
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).requestSignIn(body, options);
4630
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4631
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4632
- if (response.status >= 200 && response.status < 300) {
4633
- return response;
4634
- }
4635
- else {
4636
- throw response;
4637
- }
4638
- });
4639
- };
4640
- },
4641
- /**
4642
- *
4643
- * @summary Request confirmation code to sign up
4644
- * @param {CustomerSignUpForm} body
4645
- * @param {*} [options] Override http request option.
4646
- * @throws {RequiredError}
4647
- */
4648
- requestSignUp(body, options) {
4649
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).requestSignUp(body, options);
4650
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4651
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4652
- if (response.status >= 200 && response.status < 300) {
4653
- return response;
4654
- }
4655
- else {
4656
- throw response;
4657
- }
4658
- });
4659
- };
4660
- },
4661
- /**
4662
- *
4663
- * @summary Search customer by login
4664
- * @param {string} query
4665
- * @param {*} [options] Override http request option.
4666
- * @throws {RequiredError}
4667
- */
4668
- searchCustomer(query, options) {
4669
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).searchCustomer(query, options);
4670
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4671
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4672
- if (response.status >= 200 && response.status < 300) {
4673
- return response.json();
4674
- }
4675
- else {
4676
- throw response;
4677
- }
4678
- });
4679
- };
4680
- },
4681
- /**
4682
- *
4683
- * @summary Update customer names
4684
- * @param {CustomerNames} body
4685
- * @param {*} [options] Override http request option.
4686
- * @throws {RequiredError}
4687
- */
4688
- updateCustomerNames(body, options) {
4689
- const localVarFetchArgs = exports.CustomersApiFetchParamCreator(configuration).updateCustomerNames(body, options);
4690
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4691
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4692
- if (response.status >= 200 && response.status < 300) {
4693
- return response;
4694
- }
4695
- else {
4696
- throw response;
4697
- }
4698
- });
4699
- };
4700
- },
4701
- };
4702
- };
4703
- /**
4704
- * CustomersApi - factory interface
4705
- * @export
4706
- */
4707
- exports.CustomersApiFactory = function (configuration, fetch, basePath) {
4708
- return {
4709
- /**
4710
- *
4711
- * @summary Add new address
4712
- * @param {CustomerAddressForm} body
4713
- * @param {*} [options] Override http request option.
4714
- * @throws {RequiredError}
4715
- */
4716
- addAddress(body, options) {
4717
- return exports.CustomersApiFp(configuration).addAddress(body, options)(fetch, basePath);
4718
- },
4719
- /**
4720
- *
4721
- * @summary Add uncofirmed login
4722
- * @param {CustomerLoginForm} body
4723
- * @param {*} [options] Override http request option.
4724
- * @throws {RequiredError}
4725
- */
4726
- addLogin(body, options) {
4727
- return exports.CustomersApiFp(configuration).addLogin(body, options)(fetch, basePath);
4728
- },
4729
- /**
4730
- *
4731
- * @summary Add or replace pin to Vault
4732
- * @param {PinForm} body
4733
- * @param {*} [options] Override http request option.
4734
- * @throws {RequiredError}
4735
- */
4736
- addPin(body, options) {
4737
- return exports.CustomersApiFp(configuration).addPin(body, options)(fetch, basePath);
4738
- },
4739
- /**
4740
- *
4741
- * @summary Confirm the new login (either email or phone number)
4742
- * @param {CustomerLoginConfirmForm} body
4743
- * @param {*} [options] Override http request option.
4744
- * @throws {RequiredError}
4745
- */
4746
- confirmLogin(body, options) {
4747
- return exports.CustomersApiFp(configuration).confirmLogin(body, options)(fetch, basePath);
4748
- },
4749
- /**
4750
- *
4751
- * @summary Confirm an email/number while signing in
4752
- * @param {CustomerSignInConfirm} body
4753
- * @param {*} [options] Override http request option.
4754
- * @throws {RequiredError}
4755
- */
4756
- confirmSignIn(body, options) {
4757
- return exports.CustomersApiFp(configuration).confirmSignIn(body, options)(fetch, basePath);
4758
- },
4759
- /**
4760
- *
4761
- * @summary Confirm an email/number while signing up
4762
- * @param {CustomerSignUpConfirm} body
4763
- * @param {*} [options] Override http request option.
4764
- * @throws {RequiredError}
4765
- */
4766
- confirmSignUp(body, options) {
4767
- return exports.CustomersApiFp(configuration).confirmSignUp(body, options)(fetch, basePath);
4768
- },
4769
- /**
4770
- *
4771
- * @summary Create lead for org
4772
- * @param {LeadRequest} body
4773
- * @param {*} [options] Override http request option.
4774
- * @throws {RequiredError}
4775
- */
4776
- createLead(body, options) {
4777
- return exports.CustomersApiFp(configuration).createLead(body, options)(fetch, basePath);
4778
- },
4779
- /**
4780
- *
4781
- * @summary Anonymize customer profile
4782
- * @param {string} customerId
4783
- * @param {*} [options] Override http request option.
4784
- * @throws {RequiredError}
4785
- */
4786
- deleteCustomerDeprecated(customerId, options) {
4787
- return exports.CustomersApiFp(configuration).deleteCustomerDeprecated(customerId, options)(fetch, basePath);
4788
- },
4789
- /**
4790
- *
4791
- * @summary Get list of customer addresses
4792
- * @param {*} [options] Override http request option.
4793
- * @throws {RequiredError}
4794
- */
4795
- getAddresses(options) {
4796
- return exports.CustomersApiFp(configuration).getAddresses(options)(fetch, basePath);
4797
- },
4798
- /**
4799
- *
4800
- * @summary Get customer logins
4801
- * @param {*} [options] Override http request option.
4802
- * @throws {RequiredError}
4803
- */
4804
- getCustomerLogins(options) {
4805
- return exports.CustomersApiFp(configuration).getCustomerLogins(options)(fetch, basePath);
4806
- },
4807
- /**
4808
- *
4809
- * @summary Get customer profile by id
4810
- * @param {string} customerId
4811
- * @param {*} [options] Override http request option.
4812
- * @throws {RequiredError}
4813
- */
4814
- getCustomerProfile(customerId, options) {
4815
- return exports.CustomersApiFp(configuration).getCustomerProfile(customerId, options)(fetch, basePath);
4816
- },
4817
- /**
4818
- *
4819
- * @summary Get own customer profile
4820
- * @param {*} [options] Override http request option.
4821
- * @throws {RequiredError}
4822
- */
4823
- getOwnCustomerProfile(options) {
4824
- return exports.CustomersApiFp(configuration).getOwnCustomerProfile(options)(fetch, basePath);
4825
- },
4826
- /**
4827
- *
4828
- * @summary Generate and get vault token
4829
- * @param {PinForm} body
4830
- * @param {*} [options] Override http request option.
4831
- * @throws {RequiredError}
4832
- */
4833
- getVaultToken(body, options) {
4834
- return exports.CustomersApiFp(configuration).getVaultToken(body, options)(fetch, basePath);
4835
- },
4836
- /**
4837
- *
4838
- * @summary Request confirmation code to sign in
4839
- * @param {CustomerSignInForm} body
4840
- * @param {*} [options] Override http request option.
4841
- * @throws {RequiredError}
4842
- */
4843
- requestSignIn(body, options) {
4844
- return exports.CustomersApiFp(configuration).requestSignIn(body, options)(fetch, basePath);
4845
- },
4846
- /**
4847
- *
4848
- * @summary Request confirmation code to sign up
4849
- * @param {CustomerSignUpForm} body
4850
- * @param {*} [options] Override http request option.
4851
- * @throws {RequiredError}
4852
- */
4853
- requestSignUp(body, options) {
4854
- return exports.CustomersApiFp(configuration).requestSignUp(body, options)(fetch, basePath);
4855
- },
4856
- /**
4857
- *
4858
- * @summary Search customer by login
4859
- * @param {string} query
4860
- * @param {*} [options] Override http request option.
4861
- * @throws {RequiredError}
4862
- */
4863
- searchCustomer(query, options) {
4864
- return exports.CustomersApiFp(configuration).searchCustomer(query, options)(fetch, basePath);
4865
- },
4866
- /**
4867
- *
4868
- * @summary Update customer names
4869
- * @param {CustomerNames} body
4870
- * @param {*} [options] Override http request option.
4871
- * @throws {RequiredError}
4872
- */
4873
- updateCustomerNames(body, options) {
4874
- return exports.CustomersApiFp(configuration).updateCustomerNames(body, options)(fetch, basePath);
4875
- },
4876
- };
4877
- };
4878
- /**
4879
- * CustomersApi - object-oriented interface
4880
- * @export
4881
- * @class CustomersApi
4882
- * @extends {BaseAPI}
4883
- */
4884
- class CustomersApi extends BaseAPI {
4885
- /**
4886
- *
4887
- * @summary Add new address
4888
- * @param {CustomerAddressForm} body
4889
- * @param {*} [options] Override http request option.
4890
- * @throws {RequiredError}
4891
- * @memberof CustomersApi
4892
- */
4893
- addAddress(body, options) {
4894
- return exports.CustomersApiFp(this.configuration).addAddress(body, options)(this.fetch, this.basePath);
4895
- }
4896
- /**
4897
- *
4898
- * @summary Add uncofirmed login
4899
- * @param {CustomerLoginForm} body
4900
- * @param {*} [options] Override http request option.
4901
- * @throws {RequiredError}
4902
- * @memberof CustomersApi
4903
- */
4904
- addLogin(body, options) {
4905
- return exports.CustomersApiFp(this.configuration).addLogin(body, options)(this.fetch, this.basePath);
4906
- }
4907
- /**
4908
- *
4909
- * @summary Add or replace pin to Vault
4910
- * @param {PinForm} body
4911
- * @param {*} [options] Override http request option.
4912
- * @throws {RequiredError}
4913
- * @memberof CustomersApi
4914
- */
4915
- addPin(body, options) {
4916
- return exports.CustomersApiFp(this.configuration).addPin(body, options)(this.fetch, this.basePath);
4917
- }
4918
- /**
4919
- *
4920
- * @summary Confirm the new login (either email or phone number)
4921
- * @param {CustomerLoginConfirmForm} body
4922
- * @param {*} [options] Override http request option.
4923
- * @throws {RequiredError}
4924
- * @memberof CustomersApi
4925
- */
4926
- confirmLogin(body, options) {
4927
- return exports.CustomersApiFp(this.configuration).confirmLogin(body, options)(this.fetch, this.basePath);
4928
- }
4929
- /**
4930
- *
4931
- * @summary Confirm an email/number while signing in
4932
- * @param {CustomerSignInConfirm} body
4933
- * @param {*} [options] Override http request option.
4934
- * @throws {RequiredError}
4935
- * @memberof CustomersApi
4936
- */
4937
- confirmSignIn(body, options) {
4938
- return exports.CustomersApiFp(this.configuration).confirmSignIn(body, options)(this.fetch, this.basePath);
4939
- }
4940
- /**
4941
- *
4942
- * @summary Confirm an email/number while signing up
4943
- * @param {CustomerSignUpConfirm} body
4944
- * @param {*} [options] Override http request option.
4945
- * @throws {RequiredError}
4946
- * @memberof CustomersApi
4947
- */
4948
- confirmSignUp(body, options) {
4949
- return exports.CustomersApiFp(this.configuration).confirmSignUp(body, options)(this.fetch, this.basePath);
4950
- }
4951
- /**
4952
- *
4953
- * @summary Create lead for org
4954
- * @param {LeadRequest} body
4955
- * @param {*} [options] Override http request option.
4956
- * @throws {RequiredError}
4957
- * @memberof CustomersApi
4958
- */
4959
- createLead(body, options) {
4960
- return exports.CustomersApiFp(this.configuration).createLead(body, options)(this.fetch, this.basePath);
4961
- }
4962
- /**
4963
- *
4964
- * @summary Anonymize customer profile
4965
- * @param {string} customerId
4966
- * @param {*} [options] Override http request option.
4967
- * @throws {RequiredError}
4968
- * @memberof CustomersApi
4969
- */
4970
- deleteCustomerDeprecated(customerId, options) {
4971
- return exports.CustomersApiFp(this.configuration).deleteCustomerDeprecated(customerId, options)(this.fetch, this.basePath);
4972
- }
4973
- /**
4974
- *
4975
- * @summary Get list of customer addresses
4976
- * @param {*} [options] Override http request option.
4977
- * @throws {RequiredError}
4978
- * @memberof CustomersApi
4979
- */
4980
- getAddresses(options) {
4981
- return exports.CustomersApiFp(this.configuration).getAddresses(options)(this.fetch, this.basePath);
4982
- }
4983
- /**
4984
- *
4985
- * @summary Get customer logins
4986
- * @param {*} [options] Override http request option.
4987
- * @throws {RequiredError}
4988
- * @memberof CustomersApi
4989
- */
4990
- getCustomerLogins(options) {
4991
- return exports.CustomersApiFp(this.configuration).getCustomerLogins(options)(this.fetch, this.basePath);
4992
- }
4993
- /**
4994
- *
4995
- * @summary Get customer profile by id
4996
- * @param {string} customerId
4997
- * @param {*} [options] Override http request option.
4998
- * @throws {RequiredError}
4999
- * @memberof CustomersApi
5000
- */
5001
- getCustomerProfile(customerId, options) {
5002
- return exports.CustomersApiFp(this.configuration).getCustomerProfile(customerId, options)(this.fetch, this.basePath);
5003
- }
5004
- /**
5005
- *
5006
- * @summary Get own customer profile
5007
- * @param {*} [options] Override http request option.
5008
- * @throws {RequiredError}
5009
- * @memberof CustomersApi
5010
- */
5011
- getOwnCustomerProfile(options) {
5012
- return exports.CustomersApiFp(this.configuration).getOwnCustomerProfile(options)(this.fetch, this.basePath);
5013
- }
5014
- /**
5015
- *
5016
- * @summary Generate and get vault token
5017
- * @param {PinForm} body
5018
- * @param {*} [options] Override http request option.
5019
- * @throws {RequiredError}
5020
- * @memberof CustomersApi
5021
- */
5022
- getVaultToken(body, options) {
5023
- return exports.CustomersApiFp(this.configuration).getVaultToken(body, options)(this.fetch, this.basePath);
5024
- }
5025
- /**
5026
- *
5027
- * @summary Request confirmation code to sign in
5028
- * @param {CustomerSignInForm} body
5029
- * @param {*} [options] Override http request option.
5030
- * @throws {RequiredError}
5031
- * @memberof CustomersApi
5032
- */
5033
- requestSignIn(body, options) {
5034
- return exports.CustomersApiFp(this.configuration).requestSignIn(body, options)(this.fetch, this.basePath);
5035
- }
5036
- /**
5037
- *
5038
- * @summary Request confirmation code to sign up
5039
- * @param {CustomerSignUpForm} body
5040
- * @param {*} [options] Override http request option.
5041
- * @throws {RequiredError}
5042
- * @memberof CustomersApi
5043
- */
5044
- requestSignUp(body, options) {
5045
- return exports.CustomersApiFp(this.configuration).requestSignUp(body, options)(this.fetch, this.basePath);
5046
- }
5047
- /**
5048
- *
5049
- * @summary Search customer by login
5050
- * @param {string} query
5051
- * @param {*} [options] Override http request option.
5052
- * @throws {RequiredError}
5053
- * @memberof CustomersApi
5054
- */
5055
- searchCustomer(query, options) {
5056
- return exports.CustomersApiFp(this.configuration).searchCustomer(query, options)(this.fetch, this.basePath);
5057
- }
5058
- /**
5059
- *
5060
- * @summary Update customer names
5061
- * @param {CustomerNames} body
5062
- * @param {*} [options] Override http request option.
5063
- * @throws {RequiredError}
5064
- * @memberof CustomersApi
5065
- */
5066
- updateCustomerNames(body, options) {
5067
- return exports.CustomersApiFp(this.configuration).updateCustomerNames(body, options)(this.fetch, this.basePath);
5068
- }
5069
- }
5070
- exports.CustomersApi = CustomersApi;
5071
3795
  /**
5072
3796
  * EventActionsApi - fetch parameter creator
5073
3797
  * @export
@@ -10487,34 +9211,6 @@ exports.OrgsApiFetchParamCreator = function (configuration) {
10487
9211
  options: localVarRequestOptions,
10488
9212
  };
10489
9213
  },
10490
- /**
10491
- *
10492
- * @summary Retrieve data of all orgs
10493
- * @param {*} [options] Override http request option.
10494
- * @throws {RequiredError}
10495
- */
10496
- getOrgs(options = {}) {
10497
- const localVarPath = `/orgs`;
10498
- const localVarUrlObj = url.parse(localVarPath, true);
10499
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
10500
- const localVarHeaderParameter = {};
10501
- const localVarQueryParameter = {};
10502
- // authentication apiKey required
10503
- if (configuration && configuration.apiKey) {
10504
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
10505
- ? configuration.apiKey("X-Api-Key")
10506
- : configuration.apiKey;
10507
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
10508
- }
10509
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
10510
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
10511
- delete localVarUrlObj.search;
10512
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
10513
- return {
10514
- url: url.format(localVarUrlObj),
10515
- options: localVarRequestOptions,
10516
- };
10517
- },
10518
9214
  /**
10519
9215
  *
10520
9216
  * @summary Get maxCharacters limit for messages handled by autoresponder
@@ -11129,25 +9825,6 @@ exports.OrgsApiFp = function (configuration) {
11129
9825
  });
11130
9826
  };
11131
9827
  },
11132
- /**
11133
- *
11134
- * @summary Retrieve data of all orgs
11135
- * @param {*} [options] Override http request option.
11136
- * @throws {RequiredError}
11137
- */
11138
- getOrgs(options) {
11139
- const localVarFetchArgs = exports.OrgsApiFetchParamCreator(configuration).getOrgs(options);
11140
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
11141
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
11142
- if (response.status >= 200 && response.status < 300) {
11143
- return response.json();
11144
- }
11145
- else {
11146
- throw response;
11147
- }
11148
- });
11149
- };
11150
- },
11151
9828
  /**
11152
9829
  *
11153
9830
  * @summary Get maxCharacters limit for messages handled by autoresponder
@@ -11471,15 +10148,6 @@ exports.OrgsApiFactory = function (configuration, fetch, basePath) {
11471
10148
  getOrganizationConfig(id, options) {
11472
10149
  return exports.OrgsApiFp(configuration).getOrganizationConfig(id, options)(fetch, basePath);
11473
10150
  },
11474
- /**
11475
- *
11476
- * @summary Retrieve data of all orgs
11477
- * @param {*} [options] Override http request option.
11478
- * @throws {RequiredError}
11479
- */
11480
- getOrgs(options) {
11481
- return exports.OrgsApiFp(configuration).getOrgs(options)(fetch, basePath);
11482
- },
11483
10151
  /**
11484
10152
  *
11485
10153
  * @summary Get maxCharacters limit for messages handled by autoresponder
@@ -11775,16 +10443,6 @@ class OrgsApi extends BaseAPI {
11775
10443
  getOrganizationConfig(id, options) {
11776
10444
  return exports.OrgsApiFp(this.configuration).getOrganizationConfig(id, options)(this.fetch, this.basePath);
11777
10445
  }
11778
- /**
11779
- *
11780
- * @summary Retrieve data of all orgs
11781
- * @param {*} [options] Override http request option.
11782
- * @throws {RequiredError}
11783
- * @memberof OrgsApi
11784
- */
11785
- getOrgs(options) {
11786
- return exports.OrgsApiFp(this.configuration).getOrgs(options)(this.fetch, this.basePath);
11787
- }
11788
10446
  /**
11789
10447
  *
11790
10448
  * @summary Get maxCharacters limit for messages handled by autoresponder
@@ -17633,6 +16291,84 @@ exports.UsersApiFetchParamCreator = function (configuration) {
17633
16291
  options: localVarRequestOptions,
17634
16292
  };
17635
16293
  },
16294
+ /**
16295
+ *
16296
+ * @summary update adviser
16297
+ * @param {AdviserPatchForm} body
16298
+ * @param {string} id
16299
+ * @param {*} [options] Override http request option.
16300
+ * @throws {RequiredError}
16301
+ */
16302
+ patchAdviser(body, id, options = {}) {
16303
+ // verify required parameter 'body' is not null or undefined
16304
+ if (body === null || body === undefined) {
16305
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchAdviser.');
16306
+ }
16307
+ // verify required parameter 'id' is not null or undefined
16308
+ if (id === null || id === undefined) {
16309
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling patchAdviser.');
16310
+ }
16311
+ const localVarPath = `/advisers/{id}`
16312
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
16313
+ const localVarUrlObj = url.parse(localVarPath, true);
16314
+ const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
16315
+ const localVarHeaderParameter = {};
16316
+ const localVarQueryParameter = {};
16317
+ // authentication apiKey required
16318
+ if (configuration && configuration.apiKey) {
16319
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
16320
+ ? configuration.apiKey("X-Api-Key")
16321
+ : configuration.apiKey;
16322
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
16323
+ }
16324
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16325
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
16326
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
16327
+ delete localVarUrlObj.search;
16328
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
16329
+ const needsSerialization = ("AdviserPatchForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
16330
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
16331
+ return {
16332
+ url: url.format(localVarUrlObj),
16333
+ options: localVarRequestOptions,
16334
+ };
16335
+ },
16336
+ /**
16337
+ *
16338
+ * @summary Batch update advisers
16339
+ * @param {Array<AdviserBatchPatchForm>} body
16340
+ * @param {*} [options] Override http request option.
16341
+ * @throws {RequiredError}
16342
+ */
16343
+ patchAdvisers(body, options = {}) {
16344
+ // verify required parameter 'body' is not null or undefined
16345
+ if (body === null || body === undefined) {
16346
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchAdvisers.');
16347
+ }
16348
+ const localVarPath = `/advisers`;
16349
+ const localVarUrlObj = url.parse(localVarPath, true);
16350
+ const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
16351
+ const localVarHeaderParameter = {};
16352
+ const localVarQueryParameter = {};
16353
+ // authentication apiKey required
16354
+ if (configuration && configuration.apiKey) {
16355
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
16356
+ ? configuration.apiKey("X-Api-Key")
16357
+ : configuration.apiKey;
16358
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
16359
+ }
16360
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16361
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
16362
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
16363
+ delete localVarUrlObj.search;
16364
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
16365
+ const needsSerialization = ("Array&lt;AdviserBatchPatchForm&gt;" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
16366
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
16367
+ return {
16368
+ url: url.format(localVarUrlObj),
16369
+ options: localVarRequestOptions,
16370
+ };
16371
+ },
17636
16372
  /**
17637
16373
  *
17638
16374
  * @summary Partially update the preferences
@@ -19045,6 +17781,47 @@ exports.UsersApiFp = function (configuration) {
19045
17781
  });
19046
17782
  };
19047
17783
  },
17784
+ /**
17785
+ *
17786
+ * @summary update adviser
17787
+ * @param {AdviserPatchForm} body
17788
+ * @param {string} id
17789
+ * @param {*} [options] Override http request option.
17790
+ * @throws {RequiredError}
17791
+ */
17792
+ patchAdviser(body, id, options) {
17793
+ const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).patchAdviser(body, id, options);
17794
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
17795
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
17796
+ if (response.status >= 200 && response.status < 300) {
17797
+ return response.json();
17798
+ }
17799
+ else {
17800
+ throw response;
17801
+ }
17802
+ });
17803
+ };
17804
+ },
17805
+ /**
17806
+ *
17807
+ * @summary Batch update advisers
17808
+ * @param {Array<AdviserBatchPatchForm>} body
17809
+ * @param {*} [options] Override http request option.
17810
+ * @throws {RequiredError}
17811
+ */
17812
+ patchAdvisers(body, options) {
17813
+ const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).patchAdvisers(body, options);
17814
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
17815
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
17816
+ if (response.status >= 200 && response.status < 300) {
17817
+ return response.json();
17818
+ }
17819
+ else {
17820
+ throw response;
17821
+ }
17822
+ });
17823
+ };
17824
+ },
19048
17825
  /**
19049
17826
  *
19050
17827
  * @summary Partially update the preferences
@@ -19775,6 +18552,27 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
19775
18552
  joinMeeting(body, options) {
19776
18553
  return exports.UsersApiFp(configuration).joinMeeting(body, options)(fetch, basePath);
19777
18554
  },
18555
+ /**
18556
+ *
18557
+ * @summary update adviser
18558
+ * @param {AdviserPatchForm} body
18559
+ * @param {string} id
18560
+ * @param {*} [options] Override http request option.
18561
+ * @throws {RequiredError}
18562
+ */
18563
+ patchAdviser(body, id, options) {
18564
+ return exports.UsersApiFp(configuration).patchAdviser(body, id, options)(fetch, basePath);
18565
+ },
18566
+ /**
18567
+ *
18568
+ * @summary Batch update advisers
18569
+ * @param {Array<AdviserBatchPatchForm>} body
18570
+ * @param {*} [options] Override http request option.
18571
+ * @throws {RequiredError}
18572
+ */
18573
+ patchAdvisers(body, options) {
18574
+ return exports.UsersApiFp(configuration).patchAdvisers(body, options)(fetch, basePath);
18575
+ },
19778
18576
  /**
19779
18577
  *
19780
18578
  * @summary Partially update the preferences
@@ -20302,6 +19100,29 @@ class UsersApi extends BaseAPI {
20302
19100
  joinMeeting(body, options) {
20303
19101
  return exports.UsersApiFp(this.configuration).joinMeeting(body, options)(this.fetch, this.basePath);
20304
19102
  }
19103
+ /**
19104
+ *
19105
+ * @summary update adviser
19106
+ * @param {AdviserPatchForm} body
19107
+ * @param {string} id
19108
+ * @param {*} [options] Override http request option.
19109
+ * @throws {RequiredError}
19110
+ * @memberof UsersApi
19111
+ */
19112
+ patchAdviser(body, id, options) {
19113
+ return exports.UsersApiFp(this.configuration).patchAdviser(body, id, options)(this.fetch, this.basePath);
19114
+ }
19115
+ /**
19116
+ *
19117
+ * @summary Batch update advisers
19118
+ * @param {Array<AdviserBatchPatchForm>} body
19119
+ * @param {*} [options] Override http request option.
19120
+ * @throws {RequiredError}
19121
+ * @memberof UsersApi
19122
+ */
19123
+ patchAdvisers(body, options) {
19124
+ return exports.UsersApiFp(this.configuration).patchAdvisers(body, options)(this.fetch, this.basePath);
19125
+ }
20305
19126
  /**
20306
19127
  *
20307
19128
  * @summary Partially update the preferences