boldsign
Version:
NodeJS client for boldsign
663 lines • 33.6 kB
JavaScript
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SenderIdentitiesApi = void 0;
const axios_1 = __importDefault(require("axios"));
const model_1 = require("../model");
const _1 = require("./");
let defaultBasePath = 'https://api.boldsign.com';
class SenderIdentitiesApi {
constructor(basePath) {
this._basePath = defaultBasePath;
this._defaultHeaders = { 'User-Agent': _1.USER_AGENT };
this._useQuerystring = true;
this.authentications = {
'default': new model_1.VoidAuth(),
'Bearer': new model_1.ApiKeyAuth('header', 'Authorization'),
'X-API-KEY': new model_1.ApiKeyAuth('header', 'X-API-KEY'),
};
this.interceptors = [];
if (basePath) {
this.basePath = basePath;
}
}
set useQuerystring(value) {
this._useQuerystring = value;
}
set basePath(basePath) {
this._basePath = basePath;
}
set defaultHeaders(defaultHeaders) {
this._defaultHeaders = Object.assign(Object.assign({}, defaultHeaders), { "User-Agent": _1.USER_AGENT });
}
get defaultHeaders() {
return this._defaultHeaders;
}
get basePath() {
return this._basePath;
}
setDefaultAuthentication(auth) {
this.authentications.default = auth;
}
setApiKey(apikey) {
this.authentications["X-API-KEY"].apiKey = apikey;
}
setAccessToken(accessToken) {
this.authentications["Bearer"].apiKey = 'bearer ' + accessToken;
}
addInterceptor(interceptor) {
this.interceptors.push(interceptor);
}
createSenderIdentities(createSenderIdentityRequest_1) {
return __awaiter(this, arguments, void 0, function* (createSenderIdentityRequest, options = { headers: {} }) {
createSenderIdentityRequest = deserializeIfNeeded(createSenderIdentityRequest, "CreateSenderIdentityRequest");
const localVarPath = this.basePath + '/v1/senderIdentities/create';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (createSenderIdentityRequest === null || createSenderIdentityRequest === undefined) {
throw new Error('Required parameter createSenderIdentityRequest was null or undefined when calling createSenderIdentities.');
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
const result = (0, _1.generateFormData)(createSenderIdentityRequest, model_1.CreateSenderIdentityRequest);
localVarUseFormData = result.localVarUseFormData;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(result.data);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
else {
data = model_1.ObjectSerializer.serialize(createSenderIdentityRequest, "CreateSenderIdentityRequest");
}
let localVarRequestOptions = {
method: 'POST',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response, "SenderIdentityCreated");
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 201, "SenderIdentityCreated")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 400, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
deleteSenderIdentities(email_1) {
return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
const localVarPath = this.basePath + '/v1/senderIdentities/delete';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (email === null || email === undefined) {
throw new Error('Required parameter email was null or undefined when calling deleteSenderIdentities.');
}
if (email !== undefined) {
localVarQueryParameters['email'] = model_1.ObjectSerializer.serialize(email, "string");
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(localVarFormParams);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
let localVarRequestOptions = {
method: 'DELETE',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response);
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
getSenderIdentityProperties(id_1, email_1) {
return __awaiter(this, arguments, void 0, function* (id, email, options = { headers: {} }) {
const localVarPath = this.basePath + '/v1/senderIdentities/properties';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (id !== undefined) {
localVarQueryParameters['id'] = model_1.ObjectSerializer.serialize(id, "string");
}
if (email !== undefined) {
localVarQueryParameters['email'] = model_1.ObjectSerializer.serialize(email, "string");
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(localVarFormParams);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
let localVarRequestOptions = {
method: 'GET',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response, "SenderIdentityViewModel");
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 200, "SenderIdentityViewModel")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
listSenderIdentities(page_1, pageSize_1, search_1, brandIds_1) {
return __awaiter(this, arguments, void 0, function* (page, pageSize, search, brandIds, options = { headers: {} }) {
const localVarPath = this.basePath + '/v1/senderIdentities/list';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (page === null || page === undefined) {
throw new Error('Required parameter page was null or undefined when calling listSenderIdentities.');
}
if (pageSize !== undefined) {
localVarQueryParameters['PageSize'] = model_1.ObjectSerializer.serialize(pageSize, "number");
}
if (page !== undefined) {
localVarQueryParameters['Page'] = model_1.ObjectSerializer.serialize(page, "number");
}
if (search !== undefined) {
localVarQueryParameters['Search'] = model_1.ObjectSerializer.serialize(search, "string");
}
if (brandIds !== undefined) {
localVarQueryParameters['BrandIds'] = model_1.ObjectSerializer.serialize(brandIds, "Array<string>");
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(localVarFormParams);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
let localVarRequestOptions = {
method: 'GET',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response, "SenderIdentityList");
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 200, "SenderIdentityList")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
reRequestSenderIdentities(email_1) {
return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
const localVarPath = this.basePath + '/v1/senderIdentities/rerequest';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (email === null || email === undefined) {
throw new Error('Required parameter email was null or undefined when calling reRequestSenderIdentities.');
}
if (email !== undefined) {
localVarQueryParameters['email'] = model_1.ObjectSerializer.serialize(email, "string");
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(localVarFormParams);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
let localVarRequestOptions = {
method: 'POST',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response);
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
resendInvitationSenderIdentities(email_1) {
return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
const localVarPath = this.basePath + '/v1/senderIdentities/resendInvitation';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (email === null || email === undefined) {
throw new Error('Required parameter email was null or undefined when calling resendInvitationSenderIdentities.');
}
if (email !== undefined) {
localVarQueryParameters['email'] = model_1.ObjectSerializer.serialize(email, "string");
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(localVarFormParams);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
let localVarRequestOptions = {
method: 'POST',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response);
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
updateSenderIdentities(email_1, editSenderIdentityRequest_1) {
return __awaiter(this, arguments, void 0, function* (email, editSenderIdentityRequest, options = { headers: {} }) {
editSenderIdentityRequest = deserializeIfNeeded(editSenderIdentityRequest, "EditSenderIdentityRequest");
const localVarPath = this.basePath + '/v1/senderIdentities/update';
let localVarQueryParameters = {};
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
const produces = ['application/json'];
if (produces.indexOf('application/json') >= 0) {
localVarHeaderParams['content-type'] = 'application/json';
}
else {
localVarHeaderParams['content-type'] = produces.join(',');
}
let localVarFormParams = {};
let localVarBodyParams = undefined;
if (email === null || email === undefined) {
throw new Error('Required parameter email was null or undefined when calling updateSenderIdentities.');
}
if (editSenderIdentityRequest === null || editSenderIdentityRequest === undefined) {
throw new Error('Required parameter editSenderIdentityRequest was null or undefined when calling updateSenderIdentities.');
}
if (email !== undefined) {
localVarQueryParameters['email'] = model_1.ObjectSerializer.serialize(email, "string");
}
Object.assign(localVarHeaderParams, options.headers);
let localVarUseFormData = false;
const result = (0, _1.generateFormData)(editSenderIdentityRequest, model_1.EditSenderIdentityRequest);
localVarUseFormData = result.localVarUseFormData;
let data = {};
if (localVarUseFormData) {
const formData = (0, _1.toFormData)(result.data);
data = formData;
localVarHeaderParams = Object.assign(Object.assign({}, localVarHeaderParams), formData.getHeaders());
}
else {
data = model_1.ObjectSerializer.serialize(editSenderIdentityRequest, "EditSenderIdentityRequest");
}
let localVarRequestOptions = {
method: 'POST',
params: localVarQueryParameters,
headers: localVarHeaderParams,
url: localVarPath,
paramsSerializer: this._useQuerystring ? _1.queryParamsSerializer : undefined,
maxContentLength: Infinity,
maxBodyLength: Infinity,
responseType: "json",
};
if (localVarRequestOptions.method !== 'GET') {
localVarRequestOptions.data = data;
}
let authenticationPromise = Promise.resolve();
if (this.authentications["X-API-KEY"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["X-API-KEY"].applyToRequest(localVarRequestOptions));
}
if (this.authentications["Bearer"].apiKey) {
authenticationPromise = authenticationPromise.then(() => this.authentications["Bearer"].applyToRequest(localVarRequestOptions));
}
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
let interceptorPromise = authenticationPromise;
for (const interceptor of this.interceptors) {
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
}
return interceptorPromise.then(() => {
return new Promise((resolve, reject) => {
axios_1.default.request(localVarRequestOptions)
.then((response) => {
handleSuccessfulResponse(resolve, reject, response);
}, (error) => {
if (error.response == null) {
reject(error);
return;
}
if (handleErrorCodeResponse(reject, error.response, 401, "ErrorResult")) {
return;
}
if (handleErrorCodeResponse(reject, error.response, 403, "ErrorResult")) {
return;
}
reject(error);
});
});
});
});
}
}
exports.SenderIdentitiesApi = SenderIdentitiesApi;
function deserializeIfNeeded(obj, classname) {
if (obj !== null && obj !== undefined && obj.constructor.name !== classname) {
return model_1.ObjectSerializer.deserialize(obj, classname);
}
return obj;
}
function handleSuccessfulResponse(resolve, reject, response, returnType) {
let body = response.data;
if (response.status &&
response.status >= 200 &&
response.status <= 299) {
if (returnType) {
body = model_1.ObjectSerializer.deserialize(body, returnType);
}
resolve(body);
}
else {
reject(new _1.HttpError(response, body, response.status));
}
}
function handleErrorCodeResponse(reject, response, code, returnType) {
if (response.status !== code) {
return false;
}
let body = response.data;
if (code === 401) {
body = "Unauthorized request (401): Invalid authentication.";
}
reject(new _1.HttpError(response, body, response.status));
return true;
}
function handleErrorRangeResponse(reject, response, code, returnType) {
let rangeCodeLeft = Number(code[0] + "00");
let rangeCodeRight = Number(code[0] + "99");
if (response.status >= rangeCodeLeft && response.status <= rangeCodeRight) {
const body = model_1.ObjectSerializer.deserialize(response.data, returnType);
reject(new _1.HttpError(response, body, response.status));
return true;
}
return false;
}
//# sourceMappingURL=senderIdentitiesApi.js.map