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