@ember-home/unbound-ts-client 0.0.94 → 0.0.96
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/index.d.mts +426 -222
- package/dist/index.d.ts +426 -222
- package/dist/index.js +600 -371
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +482 -253
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -140,12 +140,6 @@ var ProviderConversationDataApiConversationTypeEnum = {
|
|
|
140
140
|
var ProviderStaffApiStaffTypeEnum = {
|
|
141
141
|
ProviderStaff: "PROVIDER_STAFF"
|
|
142
142
|
};
|
|
143
|
-
var ReasonType = {
|
|
144
|
-
Irrelevant: "IRRELEVANT",
|
|
145
|
-
Inaccurate: "INACCURATE",
|
|
146
|
-
InappropriateTone: "INAPPROPRIATE_TONE",
|
|
147
|
-
TooVerboseOrTerse: "TOO_VERBOSE_OR_TERSE"
|
|
148
|
-
};
|
|
149
143
|
var RentalProviderMessageApiMessageTypeEnum = {
|
|
150
144
|
RentalProvider: "RENTAL_PROVIDER"
|
|
151
145
|
};
|
|
@@ -190,6 +184,16 @@ var SMSInboundSenderTypeDataApiDirectionEnum = {
|
|
|
190
184
|
var SMSMessageApiMessageTypeEnum = {
|
|
191
185
|
Text: "TEXT"
|
|
192
186
|
};
|
|
187
|
+
var SMSMessageStatus = {
|
|
188
|
+
Queued: "queued",
|
|
189
|
+
Sending: "sending",
|
|
190
|
+
Sent: "sent",
|
|
191
|
+
Expired: "expired",
|
|
192
|
+
SendingFailed: "sending_failed",
|
|
193
|
+
DeliveryUnconfirmed: "delivery_unconfirmed",
|
|
194
|
+
Delivered: "delivered",
|
|
195
|
+
DeliveryFailed: "delivery_failed"
|
|
196
|
+
};
|
|
193
197
|
var SMSOutboundSenderTypeDataApiDirectionEnum = {
|
|
194
198
|
Outbound: "OUTBOUND"
|
|
195
199
|
};
|
|
@@ -208,13 +212,16 @@ var SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunic
|
|
|
208
212
|
Channel: "CHANNEL",
|
|
209
213
|
Whatsapp: "WHATSAPP"
|
|
210
214
|
};
|
|
211
|
-
var
|
|
212
|
-
|
|
215
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
|
|
216
|
+
Text: "TEXT"
|
|
213
217
|
};
|
|
214
218
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum = {
|
|
215
|
-
|
|
219
|
+
RentalProvider: "RENTAL_PROVIDER"
|
|
216
220
|
};
|
|
217
221
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = {
|
|
222
|
+
Text: "TEXT"
|
|
223
|
+
};
|
|
224
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum = {
|
|
218
225
|
Email: "EMAIL"
|
|
219
226
|
};
|
|
220
227
|
var SrcResourceModelsListingsModelListingBaseSortBy = {
|
|
@@ -236,12 +243,16 @@ var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
|
236
243
|
var StaffApiParticipantTypeEnum = {
|
|
237
244
|
Staff: "STAFF"
|
|
238
245
|
};
|
|
246
|
+
var SuggestionRejectionReasonType = {
|
|
247
|
+
Irrelevant: "IRRELEVANT",
|
|
248
|
+
Inaccurate: "INACCURATE",
|
|
249
|
+
InappropriateTone: "INAPPROPRIATE_TONE",
|
|
250
|
+
TooVerboseOrTerse: "TOO_VERBOSE_OR_TERSE"
|
|
251
|
+
};
|
|
239
252
|
var SuggestionStatus = {
|
|
240
253
|
Generating: "GENERATING",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
AnsweredByStaff: "ANSWERED_BY_STAFF",
|
|
244
|
-
ReplyGenerated: "REPLY_GENERATED"
|
|
254
|
+
ReplyGenerated: "REPLY_GENERATED",
|
|
255
|
+
NoAvailableReply: "NO_AVAILABLE_REPLY"
|
|
245
256
|
};
|
|
246
257
|
var UserDeviceOs = {
|
|
247
258
|
Android: "ANDROID",
|
|
@@ -1733,118 +1744,6 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1733
1744
|
};
|
|
1734
1745
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1735
1746
|
return {
|
|
1736
|
-
/**
|
|
1737
|
-
* Conversations Get
|
|
1738
|
-
* @summary Conversations Get
|
|
1739
|
-
* @param {string} conversationId
|
|
1740
|
-
* @param {*} [options] Override http request option.
|
|
1741
|
-
* @throws {RequiredError}
|
|
1742
|
-
*/
|
|
1743
|
-
conversationsGet: async (conversationId, options = {}) => {
|
|
1744
|
-
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
1745
|
-
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1746
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1747
|
-
let baseOptions;
|
|
1748
|
-
if (configuration) {
|
|
1749
|
-
baseOptions = configuration.baseOptions;
|
|
1750
|
-
}
|
|
1751
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1752
|
-
const localVarHeaderParameter = {};
|
|
1753
|
-
const localVarQueryParameter = {};
|
|
1754
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1755
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1756
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1757
|
-
return {
|
|
1758
|
-
url: toPathString(localVarUrlObj),
|
|
1759
|
-
options: localVarRequestOptions
|
|
1760
|
-
};
|
|
1761
|
-
},
|
|
1762
|
-
/**
|
|
1763
|
-
* List all conversations, must filter by contact_id
|
|
1764
|
-
* @summary Conversations List
|
|
1765
|
-
* @param {string | null} [searchString]
|
|
1766
|
-
* @param {string | null} [contactId]
|
|
1767
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
1768
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1769
|
-
* @param {number} [limit]
|
|
1770
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1771
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1772
|
-
* @param {string | null} [inboxId]
|
|
1773
|
-
* @param {*} [options] Override http request option.
|
|
1774
|
-
* @throws {RequiredError}
|
|
1775
|
-
*/
|
|
1776
|
-
conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
|
|
1777
|
-
const localVarPath = `/v1/conversations`;
|
|
1778
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1779
|
-
let baseOptions;
|
|
1780
|
-
if (configuration) {
|
|
1781
|
-
baseOptions = configuration.baseOptions;
|
|
1782
|
-
}
|
|
1783
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1784
|
-
const localVarHeaderParameter = {};
|
|
1785
|
-
const localVarQueryParameter = {};
|
|
1786
|
-
if (searchString !== void 0) {
|
|
1787
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
1788
|
-
}
|
|
1789
|
-
if (contactId !== void 0) {
|
|
1790
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
1791
|
-
}
|
|
1792
|
-
if (status) {
|
|
1793
|
-
localVarQueryParameter["status"] = status;
|
|
1794
|
-
}
|
|
1795
|
-
if (cursor !== void 0) {
|
|
1796
|
-
localVarQueryParameter["cursor"] = cursor;
|
|
1797
|
-
}
|
|
1798
|
-
if (limit !== void 0) {
|
|
1799
|
-
localVarQueryParameter["limit"] = limit;
|
|
1800
|
-
}
|
|
1801
|
-
if (pageDir !== void 0) {
|
|
1802
|
-
localVarQueryParameter["pageDir"] = pageDir;
|
|
1803
|
-
}
|
|
1804
|
-
if (sortOrder !== void 0) {
|
|
1805
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1806
|
-
}
|
|
1807
|
-
if (inboxId !== void 0) {
|
|
1808
|
-
localVarQueryParameter["inboxId"] = inboxId;
|
|
1809
|
-
}
|
|
1810
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1811
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1812
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1813
|
-
return {
|
|
1814
|
-
url: toPathString(localVarUrlObj),
|
|
1815
|
-
options: localVarRequestOptions
|
|
1816
|
-
};
|
|
1817
|
-
},
|
|
1818
|
-
/**
|
|
1819
|
-
* Conversations Update
|
|
1820
|
-
* @summary Conversations Update
|
|
1821
|
-
* @param {string} conversationId
|
|
1822
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1823
|
-
* @param {*} [options] Override http request option.
|
|
1824
|
-
* @throws {RequiredError}
|
|
1825
|
-
*/
|
|
1826
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
1827
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1828
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
1829
|
-
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1830
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1831
|
-
let baseOptions;
|
|
1832
|
-
if (configuration) {
|
|
1833
|
-
baseOptions = configuration.baseOptions;
|
|
1834
|
-
}
|
|
1835
|
-
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1836
|
-
const localVarHeaderParameter = {};
|
|
1837
|
-
const localVarQueryParameter = {};
|
|
1838
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1839
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1840
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1841
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1842
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
1843
|
-
return {
|
|
1844
|
-
url: toPathString(localVarUrlObj),
|
|
1845
|
-
options: localVarRequestOptions
|
|
1846
|
-
};
|
|
1847
|
-
},
|
|
1848
1747
|
/**
|
|
1849
1748
|
* Messages Create
|
|
1850
1749
|
* @summary Messages Create
|
|
@@ -1974,53 +1873,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1974
1873
|
var ConversationsApiFp = function(configuration) {
|
|
1975
1874
|
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1976
1875
|
return {
|
|
1977
|
-
/**
|
|
1978
|
-
* Conversations Get
|
|
1979
|
-
* @summary Conversations Get
|
|
1980
|
-
* @param {string} conversationId
|
|
1981
|
-
* @param {*} [options] Override http request option.
|
|
1982
|
-
* @throws {RequiredError}
|
|
1983
|
-
*/
|
|
1984
|
-
async conversationsGet(conversationId, options) {
|
|
1985
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
1986
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1987
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.conversationsGet"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
1988
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1989
|
-
},
|
|
1990
|
-
/**
|
|
1991
|
-
* List all conversations, must filter by contact_id
|
|
1992
|
-
* @summary Conversations List
|
|
1993
|
-
* @param {string | null} [searchString]
|
|
1994
|
-
* @param {string | null} [contactId]
|
|
1995
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
1996
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1997
|
-
* @param {number} [limit]
|
|
1998
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1999
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2000
|
-
* @param {string | null} [inboxId]
|
|
2001
|
-
* @param {*} [options] Override http request option.
|
|
2002
|
-
* @throws {RequiredError}
|
|
2003
|
-
*/
|
|
2004
|
-
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2005
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
2006
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
2007
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["ConversationsApi.conversationsList"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
2008
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2009
|
-
},
|
|
2010
|
-
/**
|
|
2011
|
-
* Conversations Update
|
|
2012
|
-
* @summary Conversations Update
|
|
2013
|
-
* @param {string} conversationId
|
|
2014
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2015
|
-
* @param {*} [options] Override http request option.
|
|
2016
|
-
* @throws {RequiredError}
|
|
2017
|
-
*/
|
|
2018
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2019
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
2020
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
2021
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["ConversationsApi.conversationsUpdate"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
2022
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2023
|
-
},
|
|
2024
1876
|
/**
|
|
2025
1877
|
* Messages Create
|
|
2026
1878
|
* @summary Messages Create
|
|
@@ -2031,8 +1883,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2031
1883
|
*/
|
|
2032
1884
|
async messagesCreate(conversationId, messagecreate, options) {
|
|
2033
1885
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
2034
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2035
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1886
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1887
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.messagesCreate"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
2036
1888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2037
1889
|
},
|
|
2038
1890
|
/**
|
|
@@ -2044,8 +1896,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2044
1896
|
*/
|
|
2045
1897
|
async messagesGet(messageId, options) {
|
|
2046
1898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
2047
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2048
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1899
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
1900
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["ConversationsApi.messagesGet"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
2049
1901
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2050
1902
|
},
|
|
2051
1903
|
/**
|
|
@@ -2067,8 +1919,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2067
1919
|
*/
|
|
2068
1920
|
async messagesList(conversationId, searchString, sentAtAfter, sentAtBefore, scheduledAtAfter, scheduledAtBefore, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2069
1921
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, searchString, sentAtAfter, sentAtBefore, scheduledAtAfter, scheduledAtBefore, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2070
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2071
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1922
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
1923
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["ConversationsApi.messagesList"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
2072
1924
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2073
1925
|
}
|
|
2074
1926
|
};
|
|
@@ -2076,44 +1928,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2076
1928
|
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
2077
1929
|
const localVarFp = ConversationsApiFp(configuration);
|
|
2078
1930
|
return {
|
|
2079
|
-
/**
|
|
2080
|
-
* Conversations Get
|
|
2081
|
-
* @summary Conversations Get
|
|
2082
|
-
* @param {string} conversationId
|
|
2083
|
-
* @param {*} [options] Override http request option.
|
|
2084
|
-
* @throws {RequiredError}
|
|
2085
|
-
*/
|
|
2086
|
-
conversationsGet(conversationId, options) {
|
|
2087
|
-
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2088
|
-
},
|
|
2089
|
-
/**
|
|
2090
|
-
* List all conversations, must filter by contact_id
|
|
2091
|
-
* @summary Conversations List
|
|
2092
|
-
* @param {string | null} [searchString]
|
|
2093
|
-
* @param {string | null} [contactId]
|
|
2094
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2095
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2096
|
-
* @param {number} [limit]
|
|
2097
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2098
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2099
|
-
* @param {string | null} [inboxId]
|
|
2100
|
-
* @param {*} [options] Override http request option.
|
|
2101
|
-
* @throws {RequiredError}
|
|
2102
|
-
*/
|
|
2103
|
-
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2104
|
-
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2105
|
-
},
|
|
2106
|
-
/**
|
|
2107
|
-
* Conversations Update
|
|
2108
|
-
* @summary Conversations Update
|
|
2109
|
-
* @param {string} conversationId
|
|
2110
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2111
|
-
* @param {*} [options] Override http request option.
|
|
2112
|
-
* @throws {RequiredError}
|
|
2113
|
-
*/
|
|
2114
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2115
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2116
|
-
},
|
|
2117
1931
|
/**
|
|
2118
1932
|
* Messages Create
|
|
2119
1933
|
* @summary Messages Create
|
|
@@ -2158,47 +1972,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2158
1972
|
};
|
|
2159
1973
|
};
|
|
2160
1974
|
var ConversationsApi = class extends BaseAPI {
|
|
2161
|
-
/**
|
|
2162
|
-
* Conversations Get
|
|
2163
|
-
* @summary Conversations Get
|
|
2164
|
-
* @param {string} conversationId
|
|
2165
|
-
* @param {*} [options] Override http request option.
|
|
2166
|
-
* @throws {RequiredError}
|
|
2167
|
-
* @memberof ConversationsApi
|
|
2168
|
-
*/
|
|
2169
|
-
conversationsGet(conversationId, options) {
|
|
2170
|
-
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2171
|
-
}
|
|
2172
|
-
/**
|
|
2173
|
-
* List all conversations, must filter by contact_id
|
|
2174
|
-
* @summary Conversations List
|
|
2175
|
-
* @param {string | null} [searchString]
|
|
2176
|
-
* @param {string | null} [contactId]
|
|
2177
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2178
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2179
|
-
* @param {number} [limit]
|
|
2180
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2181
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2182
|
-
* @param {string | null} [inboxId]
|
|
2183
|
-
* @param {*} [options] Override http request option.
|
|
2184
|
-
* @throws {RequiredError}
|
|
2185
|
-
* @memberof ConversationsApi
|
|
2186
|
-
*/
|
|
2187
|
-
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2188
|
-
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2189
|
-
}
|
|
2190
|
-
/**
|
|
2191
|
-
* Conversations Update
|
|
2192
|
-
* @summary Conversations Update
|
|
2193
|
-
* @param {string} conversationId
|
|
2194
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2195
|
-
* @param {*} [options] Override http request option.
|
|
2196
|
-
* @throws {RequiredError}
|
|
2197
|
-
* @memberof ConversationsApi
|
|
2198
|
-
*/
|
|
2199
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2200
|
-
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2201
|
-
}
|
|
2202
1975
|
/**
|
|
2203
1976
|
* Messages Create
|
|
2204
1977
|
* @summary Messages Create
|
|
@@ -2289,8 +2062,8 @@ var HostawayApiFp = function(configuration) {
|
|
|
2289
2062
|
*/
|
|
2290
2063
|
async webhook(body, options) {
|
|
2291
2064
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
|
|
2292
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2293
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2065
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
2066
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["HostawayApi.webhook"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
2294
2067
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2295
2068
|
}
|
|
2296
2069
|
};
|
|
@@ -2325,6 +2098,148 @@ var HostawayApi = class extends BaseAPI {
|
|
|
2325
2098
|
};
|
|
2326
2099
|
var InboxesApiAxiosParamCreator = function(configuration) {
|
|
2327
2100
|
return {
|
|
2101
|
+
/**
|
|
2102
|
+
* Conversations Create
|
|
2103
|
+
* @summary Conversations Create
|
|
2104
|
+
* @param {string} inboxId
|
|
2105
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2106
|
+
* @param {*} [options] Override http request option.
|
|
2107
|
+
* @throws {RequiredError}
|
|
2108
|
+
*/
|
|
2109
|
+
conversationsCreate: async (inboxId, aPIConversationCreate, options = {}) => {
|
|
2110
|
+
assertParamExists("conversationsCreate", "inboxId", inboxId);
|
|
2111
|
+
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
2112
|
+
const localVarPath = `/v1/inboxes/{inboxId}/conversations`.replace(`{${"inboxId"}}`, encodeURIComponent(String(inboxId)));
|
|
2113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2114
|
+
let baseOptions;
|
|
2115
|
+
if (configuration) {
|
|
2116
|
+
baseOptions = configuration.baseOptions;
|
|
2117
|
+
}
|
|
2118
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2119
|
+
const localVarHeaderParameter = {};
|
|
2120
|
+
const localVarQueryParameter = {};
|
|
2121
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2124
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
2126
|
+
return {
|
|
2127
|
+
url: toPathString(localVarUrlObj),
|
|
2128
|
+
options: localVarRequestOptions
|
|
2129
|
+
};
|
|
2130
|
+
},
|
|
2131
|
+
/**
|
|
2132
|
+
* Conversations Get
|
|
2133
|
+
* @summary Conversations Get
|
|
2134
|
+
* @param {string} conversationId
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
*/
|
|
2138
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
2139
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
2140
|
+
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2141
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2142
|
+
let baseOptions;
|
|
2143
|
+
if (configuration) {
|
|
2144
|
+
baseOptions = configuration.baseOptions;
|
|
2145
|
+
}
|
|
2146
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2147
|
+
const localVarHeaderParameter = {};
|
|
2148
|
+
const localVarQueryParameter = {};
|
|
2149
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2150
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2151
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2152
|
+
return {
|
|
2153
|
+
url: toPathString(localVarUrlObj),
|
|
2154
|
+
options: localVarRequestOptions
|
|
2155
|
+
};
|
|
2156
|
+
},
|
|
2157
|
+
/**
|
|
2158
|
+
* List all conversations, must filter by contact_id
|
|
2159
|
+
* @summary Conversations List
|
|
2160
|
+
* @param {string | null} [searchString]
|
|
2161
|
+
* @param {string | null} [contactId]
|
|
2162
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2163
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2164
|
+
* @param {number} [limit]
|
|
2165
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2166
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2167
|
+
* @param {string | null} [inboxId]
|
|
2168
|
+
* @param {*} [options] Override http request option.
|
|
2169
|
+
* @throws {RequiredError}
|
|
2170
|
+
*/
|
|
2171
|
+
conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
|
|
2172
|
+
const localVarPath = `/v1/conversations`;
|
|
2173
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2174
|
+
let baseOptions;
|
|
2175
|
+
if (configuration) {
|
|
2176
|
+
baseOptions = configuration.baseOptions;
|
|
2177
|
+
}
|
|
2178
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2179
|
+
const localVarHeaderParameter = {};
|
|
2180
|
+
const localVarQueryParameter = {};
|
|
2181
|
+
if (searchString !== void 0) {
|
|
2182
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
2183
|
+
}
|
|
2184
|
+
if (contactId !== void 0) {
|
|
2185
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
2186
|
+
}
|
|
2187
|
+
if (status) {
|
|
2188
|
+
localVarQueryParameter["status"] = status;
|
|
2189
|
+
}
|
|
2190
|
+
if (cursor !== void 0) {
|
|
2191
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
2192
|
+
}
|
|
2193
|
+
if (limit !== void 0) {
|
|
2194
|
+
localVarQueryParameter["limit"] = limit;
|
|
2195
|
+
}
|
|
2196
|
+
if (pageDir !== void 0) {
|
|
2197
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
2198
|
+
}
|
|
2199
|
+
if (sortOrder !== void 0) {
|
|
2200
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
2201
|
+
}
|
|
2202
|
+
if (inboxId !== void 0) {
|
|
2203
|
+
localVarQueryParameter["inboxId"] = inboxId;
|
|
2204
|
+
}
|
|
2205
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2207
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2208
|
+
return {
|
|
2209
|
+
url: toPathString(localVarUrlObj),
|
|
2210
|
+
options: localVarRequestOptions
|
|
2211
|
+
};
|
|
2212
|
+
},
|
|
2213
|
+
/**
|
|
2214
|
+
* Conversations Update
|
|
2215
|
+
* @summary Conversations Update
|
|
2216
|
+
* @param {string} conversationId
|
|
2217
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2218
|
+
* @param {*} [options] Override http request option.
|
|
2219
|
+
* @throws {RequiredError}
|
|
2220
|
+
*/
|
|
2221
|
+
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
2222
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
2223
|
+
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
2224
|
+
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2225
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2226
|
+
let baseOptions;
|
|
2227
|
+
if (configuration) {
|
|
2228
|
+
baseOptions = configuration.baseOptions;
|
|
2229
|
+
}
|
|
2230
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2231
|
+
const localVarHeaderParameter = {};
|
|
2232
|
+
const localVarQueryParameter = {};
|
|
2233
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2234
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2235
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2236
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2237
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
2238
|
+
return {
|
|
2239
|
+
url: toPathString(localVarUrlObj),
|
|
2240
|
+
options: localVarRequestOptions
|
|
2241
|
+
};
|
|
2242
|
+
},
|
|
2328
2243
|
/**
|
|
2329
2244
|
* Inboxes List
|
|
2330
2245
|
* @summary Inboxes List
|
|
@@ -2354,6 +2269,67 @@ var InboxesApiAxiosParamCreator = function(configuration) {
|
|
|
2354
2269
|
var InboxesApiFp = function(configuration) {
|
|
2355
2270
|
const localVarAxiosParamCreator = InboxesApiAxiosParamCreator(configuration);
|
|
2356
2271
|
return {
|
|
2272
|
+
/**
|
|
2273
|
+
* Conversations Create
|
|
2274
|
+
* @summary Conversations Create
|
|
2275
|
+
* @param {string} inboxId
|
|
2276
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2277
|
+
* @param {*} [options] Override http request option.
|
|
2278
|
+
* @throws {RequiredError}
|
|
2279
|
+
*/
|
|
2280
|
+
async conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(inboxId, aPIConversationCreate, options);
|
|
2282
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
2283
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["InboxesApi.conversationsCreate"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
2284
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2285
|
+
},
|
|
2286
|
+
/**
|
|
2287
|
+
* Conversations Get
|
|
2288
|
+
* @summary Conversations Get
|
|
2289
|
+
* @param {string} conversationId
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
async conversationsGet(conversationId, options) {
|
|
2294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
2295
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
2296
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["InboxesApi.conversationsGet"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
2297
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2298
|
+
},
|
|
2299
|
+
/**
|
|
2300
|
+
* List all conversations, must filter by contact_id
|
|
2301
|
+
* @summary Conversations List
|
|
2302
|
+
* @param {string | null} [searchString]
|
|
2303
|
+
* @param {string | null} [contactId]
|
|
2304
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2305
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2306
|
+
* @param {number} [limit]
|
|
2307
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2308
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2309
|
+
* @param {string | null} [inboxId]
|
|
2310
|
+
* @param {*} [options] Override http request option.
|
|
2311
|
+
* @throws {RequiredError}
|
|
2312
|
+
*/
|
|
2313
|
+
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
2315
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2316
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["InboxesApi.conversationsList"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
2317
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2318
|
+
},
|
|
2319
|
+
/**
|
|
2320
|
+
* Conversations Update
|
|
2321
|
+
* @summary Conversations Update
|
|
2322
|
+
* @param {string} conversationId
|
|
2323
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2324
|
+
* @param {*} [options] Override http request option.
|
|
2325
|
+
* @throws {RequiredError}
|
|
2326
|
+
*/
|
|
2327
|
+
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2328
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
2329
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2330
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["InboxesApi.conversationsUpdate"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
2331
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2332
|
+
},
|
|
2357
2333
|
/**
|
|
2358
2334
|
* Inboxes List
|
|
2359
2335
|
* @summary Inboxes List
|
|
@@ -2362,8 +2338,8 @@ var InboxesApiFp = function(configuration) {
|
|
|
2362
2338
|
*/
|
|
2363
2339
|
async inboxesList(options) {
|
|
2364
2340
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
|
|
2365
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2366
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2341
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2342
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["InboxesApi.inboxesList"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
2367
2343
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2368
2344
|
}
|
|
2369
2345
|
};
|
|
@@ -2371,6 +2347,55 @@ var InboxesApiFp = function(configuration) {
|
|
|
2371
2347
|
var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
2372
2348
|
const localVarFp = InboxesApiFp(configuration);
|
|
2373
2349
|
return {
|
|
2350
|
+
/**
|
|
2351
|
+
* Conversations Create
|
|
2352
|
+
* @summary Conversations Create
|
|
2353
|
+
* @param {string} inboxId
|
|
2354
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2359
|
+
return localVarFp.conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
2360
|
+
},
|
|
2361
|
+
/**
|
|
2362
|
+
* Conversations Get
|
|
2363
|
+
* @summary Conversations Get
|
|
2364
|
+
* @param {string} conversationId
|
|
2365
|
+
* @param {*} [options] Override http request option.
|
|
2366
|
+
* @throws {RequiredError}
|
|
2367
|
+
*/
|
|
2368
|
+
conversationsGet(conversationId, options) {
|
|
2369
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2370
|
+
},
|
|
2371
|
+
/**
|
|
2372
|
+
* List all conversations, must filter by contact_id
|
|
2373
|
+
* @summary Conversations List
|
|
2374
|
+
* @param {string | null} [searchString]
|
|
2375
|
+
* @param {string | null} [contactId]
|
|
2376
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2377
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2378
|
+
* @param {number} [limit]
|
|
2379
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2380
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2381
|
+
* @param {string | null} [inboxId]
|
|
2382
|
+
* @param {*} [options] Override http request option.
|
|
2383
|
+
* @throws {RequiredError}
|
|
2384
|
+
*/
|
|
2385
|
+
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2386
|
+
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2387
|
+
},
|
|
2388
|
+
/**
|
|
2389
|
+
* Conversations Update
|
|
2390
|
+
* @summary Conversations Update
|
|
2391
|
+
* @param {string} conversationId
|
|
2392
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2393
|
+
* @param {*} [options] Override http request option.
|
|
2394
|
+
* @throws {RequiredError}
|
|
2395
|
+
*/
|
|
2396
|
+
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2397
|
+
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2398
|
+
},
|
|
2374
2399
|
/**
|
|
2375
2400
|
* Inboxes List
|
|
2376
2401
|
* @summary Inboxes List
|
|
@@ -2383,6 +2408,59 @@ var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
|
2383
2408
|
};
|
|
2384
2409
|
};
|
|
2385
2410
|
var InboxesApi = class extends BaseAPI {
|
|
2411
|
+
/**
|
|
2412
|
+
* Conversations Create
|
|
2413
|
+
* @summary Conversations Create
|
|
2414
|
+
* @param {string} inboxId
|
|
2415
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2416
|
+
* @param {*} [options] Override http request option.
|
|
2417
|
+
* @throws {RequiredError}
|
|
2418
|
+
* @memberof InboxesApi
|
|
2419
|
+
*/
|
|
2420
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2421
|
+
return InboxesApiFp(this.configuration).conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
* Conversations Get
|
|
2425
|
+
* @summary Conversations Get
|
|
2426
|
+
* @param {string} conversationId
|
|
2427
|
+
* @param {*} [options] Override http request option.
|
|
2428
|
+
* @throws {RequiredError}
|
|
2429
|
+
* @memberof InboxesApi
|
|
2430
|
+
*/
|
|
2431
|
+
conversationsGet(conversationId, options) {
|
|
2432
|
+
return InboxesApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2433
|
+
}
|
|
2434
|
+
/**
|
|
2435
|
+
* List all conversations, must filter by contact_id
|
|
2436
|
+
* @summary Conversations List
|
|
2437
|
+
* @param {string | null} [searchString]
|
|
2438
|
+
* @param {string | null} [contactId]
|
|
2439
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2440
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2441
|
+
* @param {number} [limit]
|
|
2442
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2443
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2444
|
+
* @param {string | null} [inboxId]
|
|
2445
|
+
* @param {*} [options] Override http request option.
|
|
2446
|
+
* @throws {RequiredError}
|
|
2447
|
+
* @memberof InboxesApi
|
|
2448
|
+
*/
|
|
2449
|
+
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2450
|
+
return InboxesApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2451
|
+
}
|
|
2452
|
+
/**
|
|
2453
|
+
* Conversations Update
|
|
2454
|
+
* @summary Conversations Update
|
|
2455
|
+
* @param {string} conversationId
|
|
2456
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
* @memberof InboxesApi
|
|
2460
|
+
*/
|
|
2461
|
+
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2462
|
+
return InboxesApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2463
|
+
}
|
|
2386
2464
|
/**
|
|
2387
2465
|
* Inboxes List
|
|
2388
2466
|
* @summary Inboxes List
|
|
@@ -2438,8 +2516,8 @@ var InquiriesApiFp = function(configuration) {
|
|
|
2438
2516
|
*/
|
|
2439
2517
|
async inquiriesList(contactId, options) {
|
|
2440
2518
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
2441
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2442
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2519
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2520
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["InquiriesApi.inquiriesList"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
2443
2521
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2444
2522
|
}
|
|
2445
2523
|
};
|
|
@@ -2566,8 +2644,8 @@ var ListingsApiFp = function(configuration) {
|
|
|
2566
2644
|
*/
|
|
2567
2645
|
async listingsGet(listingId, options) {
|
|
2568
2646
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
2569
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2570
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2647
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
2648
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["ListingsApi.listingsGet"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
2571
2649
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2572
2650
|
},
|
|
2573
2651
|
/**
|
|
@@ -2585,8 +2663,8 @@ var ListingsApiFp = function(configuration) {
|
|
|
2585
2663
|
*/
|
|
2586
2664
|
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2587
2665
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2588
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2589
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2666
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
2667
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["ListingsApi.listingsList"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
2590
2668
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2591
2669
|
}
|
|
2592
2670
|
};
|
|
@@ -2691,8 +2769,8 @@ var ManagedPhoneNumbersApiFp = function(configuration) {
|
|
|
2691
2769
|
*/
|
|
2692
2770
|
async managedPhoneNumbersList(options) {
|
|
2693
2771
|
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
2694
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2695
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2772
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2773
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["ManagedPhoneNumbersApi.managedPhoneNumbersList"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2696
2774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2697
2775
|
}
|
|
2698
2776
|
};
|
|
@@ -2847,8 +2925,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2847
2925
|
*/
|
|
2848
2926
|
async providersCreate(aPIProviderCreate, options) {
|
|
2849
2927
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(aPIProviderCreate, options);
|
|
2850
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2851
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2928
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
|
|
2929
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["ProvidersApi.providersCreate"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
|
|
2852
2930
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2853
2931
|
},
|
|
2854
2932
|
/**
|
|
@@ -2860,8 +2938,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2860
2938
|
*/
|
|
2861
2939
|
async providersGet(providerId, options) {
|
|
2862
2940
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
|
|
2863
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2864
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2941
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
|
|
2942
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["ProvidersApi.providersGet"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
|
|
2865
2943
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2866
2944
|
},
|
|
2867
2945
|
/**
|
|
@@ -2872,8 +2950,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2872
2950
|
*/
|
|
2873
2951
|
async providersList(options) {
|
|
2874
2952
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
|
|
2875
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2876
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2953
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
|
|
2954
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["ProvidersApi.providersList"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
|
|
2877
2955
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2878
2956
|
},
|
|
2879
2957
|
/**
|
|
@@ -2886,8 +2964,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2886
2964
|
*/
|
|
2887
2965
|
async providersUpdate(providerId, aPIProviderUpdate, options) {
|
|
2888
2966
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, aPIProviderUpdate, options);
|
|
2889
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2890
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2967
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
|
|
2968
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["ProvidersApi.providersUpdate"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
|
|
2891
2969
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2892
2970
|
}
|
|
2893
2971
|
};
|
|
@@ -3077,8 +3155,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
3077
3155
|
*/
|
|
3078
3156
|
async reservationsGet(reservationId, options) {
|
|
3079
3157
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsGet(reservationId, options);
|
|
3080
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3081
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3158
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
|
|
3159
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["ReservationsApi.reservationsGet"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
|
|
3082
3160
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3083
3161
|
},
|
|
3084
3162
|
/**
|
|
@@ -3096,8 +3174,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
3096
3174
|
*/
|
|
3097
3175
|
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3098
3176
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3099
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3100
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3177
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
|
|
3178
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["ReservationsApi.reservationsList"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
|
|
3101
3179
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3102
3180
|
}
|
|
3103
3181
|
};
|
|
@@ -3163,6 +3241,84 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3163
3241
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3164
3242
|
}
|
|
3165
3243
|
};
|
|
3244
|
+
var TelnyxApiAxiosParamCreator = function(configuration) {
|
|
3245
|
+
return {
|
|
3246
|
+
/**
|
|
3247
|
+
*
|
|
3248
|
+
* @summary Telnyx Webhook
|
|
3249
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3250
|
+
* @param {*} [options] Override http request option.
|
|
3251
|
+
* @throws {RequiredError}
|
|
3252
|
+
*/
|
|
3253
|
+
telnyxWebhookTelnyxWebhooksPost: async (requestBody, options = {}) => {
|
|
3254
|
+
assertParamExists("telnyxWebhookTelnyxWebhooksPost", "requestBody", requestBody);
|
|
3255
|
+
const localVarPath = `/telnyx-webhooks`;
|
|
3256
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3257
|
+
let baseOptions;
|
|
3258
|
+
if (configuration) {
|
|
3259
|
+
baseOptions = configuration.baseOptions;
|
|
3260
|
+
}
|
|
3261
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3262
|
+
const localVarHeaderParameter = {};
|
|
3263
|
+
const localVarQueryParameter = {};
|
|
3264
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3267
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3268
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
3269
|
+
return {
|
|
3270
|
+
url: toPathString(localVarUrlObj),
|
|
3271
|
+
options: localVarRequestOptions
|
|
3272
|
+
};
|
|
3273
|
+
}
|
|
3274
|
+
};
|
|
3275
|
+
};
|
|
3276
|
+
var TelnyxApiFp = function(configuration) {
|
|
3277
|
+
const localVarAxiosParamCreator = TelnyxApiAxiosParamCreator(configuration);
|
|
3278
|
+
return {
|
|
3279
|
+
/**
|
|
3280
|
+
*
|
|
3281
|
+
* @summary Telnyx Webhook
|
|
3282
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3283
|
+
* @param {*} [options] Override http request option.
|
|
3284
|
+
* @throws {RequiredError}
|
|
3285
|
+
*/
|
|
3286
|
+
async telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.telnyxWebhookTelnyxWebhooksPost(requestBody, options);
|
|
3288
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
|
|
3289
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["TelnyxApi.telnyxWebhookTelnyxWebhooksPost"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
|
|
3290
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3291
|
+
}
|
|
3292
|
+
};
|
|
3293
|
+
};
|
|
3294
|
+
var TelnyxApiFactory = function(configuration, basePath, axios) {
|
|
3295
|
+
const localVarFp = TelnyxApiFp(configuration);
|
|
3296
|
+
return {
|
|
3297
|
+
/**
|
|
3298
|
+
*
|
|
3299
|
+
* @summary Telnyx Webhook
|
|
3300
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3301
|
+
* @param {*} [options] Override http request option.
|
|
3302
|
+
* @throws {RequiredError}
|
|
3303
|
+
*/
|
|
3304
|
+
telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3305
|
+
return localVarFp.telnyxWebhookTelnyxWebhooksPost(requestBody, options).then((request) => request(axios, basePath));
|
|
3306
|
+
}
|
|
3307
|
+
};
|
|
3308
|
+
};
|
|
3309
|
+
var TelnyxApi = class extends BaseAPI {
|
|
3310
|
+
/**
|
|
3311
|
+
*
|
|
3312
|
+
* @summary Telnyx Webhook
|
|
3313
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3314
|
+
* @param {*} [options] Override http request option.
|
|
3315
|
+
* @throws {RequiredError}
|
|
3316
|
+
* @memberof TelnyxApi
|
|
3317
|
+
*/
|
|
3318
|
+
telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3319
|
+
return TelnyxApiFp(this.configuration).telnyxWebhookTelnyxWebhooksPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3320
|
+
}
|
|
3321
|
+
};
|
|
3166
3322
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3167
3323
|
return {
|
|
3168
3324
|
/**
|
|
@@ -3555,6 +3711,36 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3555
3711
|
options: localVarRequestOptions
|
|
3556
3712
|
};
|
|
3557
3713
|
},
|
|
3714
|
+
/**
|
|
3715
|
+
* Conversations Create
|
|
3716
|
+
* @summary Conversations Create
|
|
3717
|
+
* @param {string} inboxId
|
|
3718
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
3719
|
+
* @param {*} [options] Override http request option.
|
|
3720
|
+
* @throws {RequiredError}
|
|
3721
|
+
*/
|
|
3722
|
+
conversationsCreate: async (inboxId, aPIConversationCreate, options = {}) => {
|
|
3723
|
+
assertParamExists("conversationsCreate", "inboxId", inboxId);
|
|
3724
|
+
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
3725
|
+
const localVarPath = `/v1/inboxes/{inboxId}/conversations`.replace(`{${"inboxId"}}`, encodeURIComponent(String(inboxId)));
|
|
3726
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3727
|
+
let baseOptions;
|
|
3728
|
+
if (configuration) {
|
|
3729
|
+
baseOptions = configuration.baseOptions;
|
|
3730
|
+
}
|
|
3731
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3732
|
+
const localVarHeaderParameter = {};
|
|
3733
|
+
const localVarQueryParameter = {};
|
|
3734
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3737
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3738
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
3739
|
+
return {
|
|
3740
|
+
url: toPathString(localVarUrlObj),
|
|
3741
|
+
options: localVarRequestOptions
|
|
3742
|
+
};
|
|
3743
|
+
},
|
|
3558
3744
|
/**
|
|
3559
3745
|
* Conversations Get
|
|
3560
3746
|
* @summary Conversations Get
|
|
@@ -4475,8 +4661,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4475
4661
|
*/
|
|
4476
4662
|
async accountsList(options) {
|
|
4477
4663
|
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
4478
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4479
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4664
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
|
|
4665
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["UnboundApi.accountsList"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
|
|
4480
4666
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4481
4667
|
},
|
|
4482
4668
|
/**
|
|
@@ -4489,8 +4675,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4489
4675
|
*/
|
|
4490
4676
|
async addressesCreate(contactId, aPIAddressCreate, options) {
|
|
4491
4677
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, aPIAddressCreate, options);
|
|
4492
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4493
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4678
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
|
|
4679
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["UnboundApi.addressesCreate"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
|
|
4494
4680
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4495
4681
|
},
|
|
4496
4682
|
/**
|
|
@@ -4502,8 +4688,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4502
4688
|
*/
|
|
4503
4689
|
async addressesDelete(addressId, options) {
|
|
4504
4690
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
4505
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4506
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4691
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
|
|
4692
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["UnboundApi.addressesDelete"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
|
|
4507
4693
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4508
4694
|
},
|
|
4509
4695
|
/**
|
|
@@ -4515,8 +4701,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4515
4701
|
*/
|
|
4516
4702
|
async addressesGet(addressId, options) {
|
|
4517
4703
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesGet(addressId, options);
|
|
4518
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4519
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4704
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _182 => _182.serverIndex]), () => ( 0));
|
|
4705
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _183 => _183["UnboundApi.addressesGet"], 'optionalAccess', _184 => _184[localVarOperationServerIndex], 'optionalAccess', _185 => _185.url]);
|
|
4520
4706
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4521
4707
|
},
|
|
4522
4708
|
/**
|
|
@@ -4529,8 +4715,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4529
4715
|
*/
|
|
4530
4716
|
async addressesUpdate(addressId, aPIAddressUpdate, options) {
|
|
4531
4717
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, aPIAddressUpdate, options);
|
|
4532
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4533
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4718
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _186 => _186.serverIndex]), () => ( 0));
|
|
4719
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _187 => _187["UnboundApi.addressesUpdate"], 'optionalAccess', _188 => _188[localVarOperationServerIndex], 'optionalAccess', _189 => _189.url]);
|
|
4534
4720
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4535
4721
|
},
|
|
4536
4722
|
/**
|
|
@@ -4544,8 +4730,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4544
4730
|
*/
|
|
4545
4731
|
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
4546
4732
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
4547
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4548
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4733
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _190 => _190.serverIndex]), () => ( 0));
|
|
4734
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _191 => _191["UnboundApi.contactsAddListing"], 'optionalAccess', _192 => _192[localVarOperationServerIndex], 'optionalAccess', _193 => _193.url]);
|
|
4549
4735
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4550
4736
|
},
|
|
4551
4737
|
/**
|
|
@@ -4557,8 +4743,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4557
4743
|
*/
|
|
4558
4744
|
async contactsCreate(contactcreate, options) {
|
|
4559
4745
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactcreate, options);
|
|
4560
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4561
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4746
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _194 => _194.serverIndex]), () => ( 0));
|
|
4747
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _195 => _195["UnboundApi.contactsCreate"], 'optionalAccess', _196 => _196[localVarOperationServerIndex], 'optionalAccess', _197 => _197.url]);
|
|
4562
4748
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4563
4749
|
},
|
|
4564
4750
|
/**
|
|
@@ -4570,8 +4756,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4570
4756
|
*/
|
|
4571
4757
|
async contactsDelete(contactId, options) {
|
|
4572
4758
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
4573
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4574
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4759
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _198 => _198.serverIndex]), () => ( 0));
|
|
4760
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _199 => _199["UnboundApi.contactsDelete"], 'optionalAccess', _200 => _200[localVarOperationServerIndex], 'optionalAccess', _201 => _201.url]);
|
|
4575
4761
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4576
4762
|
},
|
|
4577
4763
|
/**
|
|
@@ -4583,8 +4769,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4583
4769
|
*/
|
|
4584
4770
|
async contactsGet(contactId, options) {
|
|
4585
4771
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
4586
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4587
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4772
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _202 => _202.serverIndex]), () => ( 0));
|
|
4773
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _203 => _203["UnboundApi.contactsGet"], 'optionalAccess', _204 => _204[localVarOperationServerIndex], 'optionalAccess', _205 => _205.url]);
|
|
4588
4774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4589
4775
|
},
|
|
4590
4776
|
/**
|
|
@@ -4601,8 +4787,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4601
4787
|
*/
|
|
4602
4788
|
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4603
4789
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
4604
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4605
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4790
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _206 => _206.serverIndex]), () => ( 0));
|
|
4791
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _207 => _207["UnboundApi.contactsList"], 'optionalAccess', _208 => _208[localVarOperationServerIndex], 'optionalAccess', _209 => _209.url]);
|
|
4606
4792
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4607
4793
|
},
|
|
4608
4794
|
/**
|
|
@@ -4616,8 +4802,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4616
4802
|
*/
|
|
4617
4803
|
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
4618
4804
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
4619
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4620
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4805
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _210 => _210.serverIndex]), () => ( 0));
|
|
4806
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _211 => _211["UnboundApi.contactsRemoveListing"], 'optionalAccess', _212 => _212[localVarOperationServerIndex], 'optionalAccess', _213 => _213.url]);
|
|
4621
4807
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4622
4808
|
},
|
|
4623
4809
|
/**
|
|
@@ -4630,8 +4816,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4630
4816
|
*/
|
|
4631
4817
|
async contactsUpdate(contactId, aPIContactUpdate, options) {
|
|
4632
4818
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, aPIContactUpdate, options);
|
|
4633
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4634
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4819
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _214 => _214.serverIndex]), () => ( 0));
|
|
4820
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _215 => _215["UnboundApi.contactsUpdate"], 'optionalAccess', _216 => _216[localVarOperationServerIndex], 'optionalAccess', _217 => _217.url]);
|
|
4635
4821
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4636
4822
|
},
|
|
4637
4823
|
/**
|
|
@@ -4645,8 +4831,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
4645
4831
|
*/
|
|
4646
4832
|
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
4647
4833
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
4648
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4649
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4834
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _218 => _218.serverIndex]), () => ( 0));
|
|
4835
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _219 => _219["UnboundApi.contactsUpdateListing"], 'optionalAccess', _220 => _220[localVarOperationServerIndex], 'optionalAccess', _221 => _221.url]);
|
|
4836
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4837
|
+
},
|
|
4838
|
+
/**
|
|
4839
|
+
* Conversations Create
|
|
4840
|
+
* @summary Conversations Create
|
|
4841
|
+
* @param {string} inboxId
|
|
4842
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
4843
|
+
* @param {*} [options] Override http request option.
|
|
4844
|
+
* @throws {RequiredError}
|
|
4845
|
+
*/
|
|
4846
|
+
async conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
4847
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(inboxId, aPIConversationCreate, options);
|
|
4848
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _222 => _222.serverIndex]), () => ( 0));
|
|
4849
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _223 => _223["UnboundApi.conversationsCreate"], 'optionalAccess', _224 => _224[localVarOperationServerIndex], 'optionalAccess', _225 => _225.url]);
|
|
4650
4850
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4651
4851
|
},
|
|
4652
4852
|
/**
|
|
@@ -4658,8 +4858,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4658
4858
|
*/
|
|
4659
4859
|
async conversationsGet(conversationId, options) {
|
|
4660
4860
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
4661
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4662
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4861
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _226 => _226.serverIndex]), () => ( 0));
|
|
4862
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _227 => _227["UnboundApi.conversationsGet"], 'optionalAccess', _228 => _228[localVarOperationServerIndex], 'optionalAccess', _229 => _229.url]);
|
|
4663
4863
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4664
4864
|
},
|
|
4665
4865
|
/**
|
|
@@ -4678,8 +4878,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4678
4878
|
*/
|
|
4679
4879
|
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
4680
4880
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
4681
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4682
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4881
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _230 => _230.serverIndex]), () => ( 0));
|
|
4882
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _231 => _231["UnboundApi.conversationsList"], 'optionalAccess', _232 => _232[localVarOperationServerIndex], 'optionalAccess', _233 => _233.url]);
|
|
4683
4883
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4684
4884
|
},
|
|
4685
4885
|
/**
|
|
@@ -4692,8 +4892,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4692
4892
|
*/
|
|
4693
4893
|
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
4694
4894
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
4695
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4696
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4895
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _234 => _234.serverIndex]), () => ( 0));
|
|
4896
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _235 => _235["UnboundApi.conversationsUpdate"], 'optionalAccess', _236 => _236[localVarOperationServerIndex], 'optionalAccess', _237 => _237.url]);
|
|
4697
4897
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4698
4898
|
},
|
|
4699
4899
|
/**
|
|
@@ -4706,8 +4906,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4706
4906
|
*/
|
|
4707
4907
|
async emailsCreate(contactId, aPIEmailCreate, options) {
|
|
4708
4908
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, aPIEmailCreate, options);
|
|
4709
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4710
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4909
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _238 => _238.serverIndex]), () => ( 0));
|
|
4910
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _239 => _239["UnboundApi.emailsCreate"], 'optionalAccess', _240 => _240[localVarOperationServerIndex], 'optionalAccess', _241 => _241.url]);
|
|
4711
4911
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4712
4912
|
},
|
|
4713
4913
|
/**
|
|
@@ -4719,8 +4919,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4719
4919
|
*/
|
|
4720
4920
|
async emailsDelete(emailId, options) {
|
|
4721
4921
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
4722
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4723
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4922
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _242 => _242.serverIndex]), () => ( 0));
|
|
4923
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _243 => _243["UnboundApi.emailsDelete"], 'optionalAccess', _244 => _244[localVarOperationServerIndex], 'optionalAccess', _245 => _245.url]);
|
|
4724
4924
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4725
4925
|
},
|
|
4726
4926
|
/**
|
|
@@ -4732,8 +4932,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4732
4932
|
*/
|
|
4733
4933
|
async emailsGet(emailId, options) {
|
|
4734
4934
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsGet(emailId, options);
|
|
4735
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4736
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4935
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _246 => _246.serverIndex]), () => ( 0));
|
|
4936
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _247 => _247["UnboundApi.emailsGet"], 'optionalAccess', _248 => _248[localVarOperationServerIndex], 'optionalAccess', _249 => _249.url]);
|
|
4737
4937
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4738
4938
|
},
|
|
4739
4939
|
/**
|
|
@@ -4746,8 +4946,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4746
4946
|
*/
|
|
4747
4947
|
async emailsUpdate(emailId, aPIEmailUpdate, options) {
|
|
4748
4948
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, aPIEmailUpdate, options);
|
|
4749
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4750
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4949
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _250 => _250.serverIndex]), () => ( 0));
|
|
4950
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _251 => _251["UnboundApi.emailsUpdate"], 'optionalAccess', _252 => _252[localVarOperationServerIndex], 'optionalAccess', _253 => _253.url]);
|
|
4751
4951
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4752
4952
|
},
|
|
4753
4953
|
/**
|
|
@@ -4758,8 +4958,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4758
4958
|
*/
|
|
4759
4959
|
async getMe(options) {
|
|
4760
4960
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getMe(options);
|
|
4761
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4762
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4961
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _254 => _254.serverIndex]), () => ( 0));
|
|
4962
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _255 => _255["UnboundApi.getMe"], 'optionalAccess', _256 => _256[localVarOperationServerIndex], 'optionalAccess', _257 => _257.url]);
|
|
4763
4963
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4764
4964
|
},
|
|
4765
4965
|
/**
|
|
@@ -4770,8 +4970,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4770
4970
|
*/
|
|
4771
4971
|
async inboxesList(options) {
|
|
4772
4972
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
|
|
4773
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4774
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4973
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _258 => _258.serverIndex]), () => ( 0));
|
|
4974
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _259 => _259["UnboundApi.inboxesList"], 'optionalAccess', _260 => _260[localVarOperationServerIndex], 'optionalAccess', _261 => _261.url]);
|
|
4775
4975
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4776
4976
|
},
|
|
4777
4977
|
/**
|
|
@@ -4783,8 +4983,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4783
4983
|
*/
|
|
4784
4984
|
async inquiriesList(contactId, options) {
|
|
4785
4985
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
4786
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4787
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4986
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _262 => _262.serverIndex]), () => ( 0));
|
|
4987
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _263 => _263["UnboundApi.inquiriesList"], 'optionalAccess', _264 => _264[localVarOperationServerIndex], 'optionalAccess', _265 => _265.url]);
|
|
4788
4988
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4789
4989
|
},
|
|
4790
4990
|
/**
|
|
@@ -4796,8 +4996,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4796
4996
|
*/
|
|
4797
4997
|
async listingsGet(listingId, options) {
|
|
4798
4998
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
4799
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4800
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4999
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _266 => _266.serverIndex]), () => ( 0));
|
|
5000
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _267 => _267["UnboundApi.listingsGet"], 'optionalAccess', _268 => _268[localVarOperationServerIndex], 'optionalAccess', _269 => _269.url]);
|
|
4801
5001
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4802
5002
|
},
|
|
4803
5003
|
/**
|
|
@@ -4815,8 +5015,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4815
5015
|
*/
|
|
4816
5016
|
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4817
5017
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
4818
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4819
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5018
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _270 => _270.serverIndex]), () => ( 0));
|
|
5019
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _271 => _271["UnboundApi.listingsList"], 'optionalAccess', _272 => _272[localVarOperationServerIndex], 'optionalAccess', _273 => _273.url]);
|
|
4820
5020
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4821
5021
|
},
|
|
4822
5022
|
/**
|
|
@@ -4827,8 +5027,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4827
5027
|
*/
|
|
4828
5028
|
async managedPhoneNumbersList(options) {
|
|
4829
5029
|
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
4830
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4831
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5030
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _274 => _274.serverIndex]), () => ( 0));
|
|
5031
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _275 => _275["UnboundApi.managedPhoneNumbersList"], 'optionalAccess', _276 => _276[localVarOperationServerIndex], 'optionalAccess', _277 => _277.url]);
|
|
4832
5032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4833
5033
|
},
|
|
4834
5034
|
/**
|
|
@@ -4841,8 +5041,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4841
5041
|
*/
|
|
4842
5042
|
async messagesCreate(conversationId, messagecreate, options) {
|
|
4843
5043
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
4844
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4845
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5044
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _278 => _278.serverIndex]), () => ( 0));
|
|
5045
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _279 => _279["UnboundApi.messagesCreate"], 'optionalAccess', _280 => _280[localVarOperationServerIndex], 'optionalAccess', _281 => _281.url]);
|
|
4846
5046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4847
5047
|
},
|
|
4848
5048
|
/**
|
|
@@ -4854,8 +5054,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4854
5054
|
*/
|
|
4855
5055
|
async messagesGet(messageId, options) {
|
|
4856
5056
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
4857
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4858
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5057
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _282 => _282.serverIndex]), () => ( 0));
|
|
5058
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _283 => _283["UnboundApi.messagesGet"], 'optionalAccess', _284 => _284[localVarOperationServerIndex], 'optionalAccess', _285 => _285.url]);
|
|
4859
5059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4860
5060
|
},
|
|
4861
5061
|
/**
|
|
@@ -4877,8 +5077,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4877
5077
|
*/
|
|
4878
5078
|
async messagesList(conversationId, searchString, sentAtAfter, sentAtBefore, scheduledAtAfter, scheduledAtBefore, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4879
5079
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, searchString, sentAtAfter, sentAtBefore, scheduledAtAfter, scheduledAtBefore, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
4880
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4881
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5080
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _286 => _286.serverIndex]), () => ( 0));
|
|
5081
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _287 => _287["UnboundApi.messagesList"], 'optionalAccess', _288 => _288[localVarOperationServerIndex], 'optionalAccess', _289 => _289.url]);
|
|
4882
5082
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4883
5083
|
},
|
|
4884
5084
|
/**
|
|
@@ -4891,8 +5091,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4891
5091
|
*/
|
|
4892
5092
|
async phonesCreate(contactId, aPIPhoneCreate, options) {
|
|
4893
5093
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, aPIPhoneCreate, options);
|
|
4894
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4895
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5094
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _290 => _290.serverIndex]), () => ( 0));
|
|
5095
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _291 => _291["UnboundApi.phonesCreate"], 'optionalAccess', _292 => _292[localVarOperationServerIndex], 'optionalAccess', _293 => _293.url]);
|
|
4896
5096
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4897
5097
|
},
|
|
4898
5098
|
/**
|
|
@@ -4904,8 +5104,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4904
5104
|
*/
|
|
4905
5105
|
async phonesDelete(phoneId, options) {
|
|
4906
5106
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
4907
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4908
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5107
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _294 => _294.serverIndex]), () => ( 0));
|
|
5108
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _295 => _295["UnboundApi.phonesDelete"], 'optionalAccess', _296 => _296[localVarOperationServerIndex], 'optionalAccess', _297 => _297.url]);
|
|
4909
5109
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4910
5110
|
},
|
|
4911
5111
|
/**
|
|
@@ -4917,8 +5117,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4917
5117
|
*/
|
|
4918
5118
|
async phonesGet(phoneId, options) {
|
|
4919
5119
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesGet(phoneId, options);
|
|
4920
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4921
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5120
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _298 => _298.serverIndex]), () => ( 0));
|
|
5121
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _299 => _299["UnboundApi.phonesGet"], 'optionalAccess', _300 => _300[localVarOperationServerIndex], 'optionalAccess', _301 => _301.url]);
|
|
4922
5122
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4923
5123
|
},
|
|
4924
5124
|
/**
|
|
@@ -4931,8 +5131,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4931
5131
|
*/
|
|
4932
5132
|
async phonesUpdate(phoneId, aPIPhoneUpdate, options) {
|
|
4933
5133
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesUpdate(phoneId, aPIPhoneUpdate, options);
|
|
4934
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4935
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5134
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _302 => _302.serverIndex]), () => ( 0));
|
|
5135
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _303 => _303["UnboundApi.phonesUpdate"], 'optionalAccess', _304 => _304[localVarOperationServerIndex], 'optionalAccess', _305 => _305.url]);
|
|
4936
5136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4937
5137
|
},
|
|
4938
5138
|
/**
|
|
@@ -4944,8 +5144,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4944
5144
|
*/
|
|
4945
5145
|
async providersCreate(aPIProviderCreate, options) {
|
|
4946
5146
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(aPIProviderCreate, options);
|
|
4947
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4948
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5147
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _306 => _306.serverIndex]), () => ( 0));
|
|
5148
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _307 => _307["UnboundApi.providersCreate"], 'optionalAccess', _308 => _308[localVarOperationServerIndex], 'optionalAccess', _309 => _309.url]);
|
|
4949
5149
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4950
5150
|
},
|
|
4951
5151
|
/**
|
|
@@ -4957,8 +5157,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4957
5157
|
*/
|
|
4958
5158
|
async providersGet(providerId, options) {
|
|
4959
5159
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
|
|
4960
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4961
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5160
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _310 => _310.serverIndex]), () => ( 0));
|
|
5161
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _311 => _311["UnboundApi.providersGet"], 'optionalAccess', _312 => _312[localVarOperationServerIndex], 'optionalAccess', _313 => _313.url]);
|
|
4962
5162
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4963
5163
|
},
|
|
4964
5164
|
/**
|
|
@@ -4969,8 +5169,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4969
5169
|
*/
|
|
4970
5170
|
async providersList(options) {
|
|
4971
5171
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
|
|
4972
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4973
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5172
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _314 => _314.serverIndex]), () => ( 0));
|
|
5173
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _315 => _315["UnboundApi.providersList"], 'optionalAccess', _316 => _316[localVarOperationServerIndex], 'optionalAccess', _317 => _317.url]);
|
|
4974
5174
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4975
5175
|
},
|
|
4976
5176
|
/**
|
|
@@ -4983,8 +5183,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4983
5183
|
*/
|
|
4984
5184
|
async providersUpdate(providerId, aPIProviderUpdate, options) {
|
|
4985
5185
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, aPIProviderUpdate, options);
|
|
4986
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4987
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5186
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _318 => _318.serverIndex]), () => ( 0));
|
|
5187
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _319 => _319["UnboundApi.providersUpdate"], 'optionalAccess', _320 => _320[localVarOperationServerIndex], 'optionalAccess', _321 => _321.url]);
|
|
4988
5188
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4989
5189
|
},
|
|
4990
5190
|
/**
|
|
@@ -4996,8 +5196,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4996
5196
|
*/
|
|
4997
5197
|
async reservationsGet(reservationId, options) {
|
|
4998
5198
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsGet(reservationId, options);
|
|
4999
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5000
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5199
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _322 => _322.serverIndex]), () => ( 0));
|
|
5200
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _323 => _323["UnboundApi.reservationsGet"], 'optionalAccess', _324 => _324[localVarOperationServerIndex], 'optionalAccess', _325 => _325.url]);
|
|
5001
5201
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5002
5202
|
},
|
|
5003
5203
|
/**
|
|
@@ -5015,8 +5215,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5015
5215
|
*/
|
|
5016
5216
|
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5017
5217
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
5018
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5019
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5218
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _326 => _326.serverIndex]), () => ( 0));
|
|
5219
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _327 => _327["UnboundApi.reservationsList"], 'optionalAccess', _328 => _328[localVarOperationServerIndex], 'optionalAccess', _329 => _329.url]);
|
|
5020
5220
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5021
5221
|
},
|
|
5022
5222
|
/**
|
|
@@ -5028,8 +5228,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5028
5228
|
*/
|
|
5029
5229
|
async userDevicesCreate(aPIUserDeviceCreate, options) {
|
|
5030
5230
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
|
|
5031
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5032
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5231
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _330 => _330.serverIndex]), () => ( 0));
|
|
5232
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _331 => _331["UnboundApi.userDevicesCreate"], 'optionalAccess', _332 => _332[localVarOperationServerIndex], 'optionalAccess', _333 => _333.url]);
|
|
5033
5233
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5034
5234
|
},
|
|
5035
5235
|
/**
|
|
@@ -5041,8 +5241,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5041
5241
|
*/
|
|
5042
5242
|
async userDevicesDelete(userDeviceId, options) {
|
|
5043
5243
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesDelete(userDeviceId, options);
|
|
5044
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5045
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5244
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _334 => _334.serverIndex]), () => ( 0));
|
|
5245
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _335 => _335["UnboundApi.userDevicesDelete"], 'optionalAccess', _336 => _336[localVarOperationServerIndex], 'optionalAccess', _337 => _337.url]);
|
|
5046
5246
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5047
5247
|
},
|
|
5048
5248
|
/**
|
|
@@ -5054,8 +5254,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5054
5254
|
*/
|
|
5055
5255
|
async webhook(body, options) {
|
|
5056
5256
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
|
|
5057
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5058
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5257
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _338 => _338.serverIndex]), () => ( 0));
|
|
5258
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _339 => _339["UnboundApi.webhook"], 'optionalAccess', _340 => _340[localVarOperationServerIndex], 'optionalAccess', _341 => _341.url]);
|
|
5059
5259
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5060
5260
|
}
|
|
5061
5261
|
};
|
|
@@ -5206,6 +5406,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5206
5406
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5207
5407
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
5208
5408
|
},
|
|
5409
|
+
/**
|
|
5410
|
+
* Conversations Create
|
|
5411
|
+
* @summary Conversations Create
|
|
5412
|
+
* @param {string} inboxId
|
|
5413
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
5414
|
+
* @param {*} [options] Override http request option.
|
|
5415
|
+
* @throws {RequiredError}
|
|
5416
|
+
*/
|
|
5417
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
5418
|
+
return localVarFp.conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
5419
|
+
},
|
|
5209
5420
|
/**
|
|
5210
5421
|
* Conversations Get
|
|
5211
5422
|
* @summary Conversations Get
|
|
@@ -5687,6 +5898,18 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5687
5898
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5688
5899
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
5689
5900
|
}
|
|
5901
|
+
/**
|
|
5902
|
+
* Conversations Create
|
|
5903
|
+
* @summary Conversations Create
|
|
5904
|
+
* @param {string} inboxId
|
|
5905
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
5906
|
+
* @param {*} [options] Override http request option.
|
|
5907
|
+
* @throws {RequiredError}
|
|
5908
|
+
* @memberof UnboundApi
|
|
5909
|
+
*/
|
|
5910
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
5911
|
+
return UnboundApiFp(this.configuration).conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5912
|
+
}
|
|
5690
5913
|
/**
|
|
5691
5914
|
* Conversations Get
|
|
5692
5915
|
* @summary Conversations Get
|
|
@@ -6109,8 +6332,8 @@ var UserDevicesApiFp = function(configuration) {
|
|
|
6109
6332
|
*/
|
|
6110
6333
|
async userDevicesCreate(aPIUserDeviceCreate, options) {
|
|
6111
6334
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
|
|
6112
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
6113
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
6335
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _342 => _342.serverIndex]), () => ( 0));
|
|
6336
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _343 => _343["UserDevicesApi.userDevicesCreate"], 'optionalAccess', _344 => _344[localVarOperationServerIndex], 'optionalAccess', _345 => _345.url]);
|
|
6114
6337
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6115
6338
|
},
|
|
6116
6339
|
/**
|
|
@@ -6122,8 +6345,8 @@ var UserDevicesApiFp = function(configuration) {
|
|
|
6122
6345
|
*/
|
|
6123
6346
|
async userDevicesDelete(userDeviceId, options) {
|
|
6124
6347
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesDelete(userDeviceId, options);
|
|
6125
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
6126
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
6348
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _346 => _346.serverIndex]), () => ( 0));
|
|
6349
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _347 => _347["UserDevicesApi.userDevicesDelete"], 'optionalAccess', _348 => _348[localVarOperationServerIndex], 'optionalAccess', _349 => _349.url]);
|
|
6127
6350
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6128
6351
|
}
|
|
6129
6352
|
};
|
|
@@ -6246,7 +6469,7 @@ var Configuration = class {
|
|
|
6246
6469
|
this.baseOptions = {
|
|
6247
6470
|
...param.baseOptions,
|
|
6248
6471
|
headers: {
|
|
6249
|
-
..._optionalChain([param, 'access',
|
|
6472
|
+
..._optionalChain([param, 'access', _350 => _350.baseOptions, 'optionalAccess', _351 => _351.headers])
|
|
6250
6473
|
}
|
|
6251
6474
|
};
|
|
6252
6475
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -6359,5 +6582,11 @@ var Configuration = class {
|
|
|
6359
6582
|
|
|
6360
6583
|
|
|
6361
6584
|
|
|
6362
|
-
|
|
6585
|
+
|
|
6586
|
+
|
|
6587
|
+
|
|
6588
|
+
|
|
6589
|
+
|
|
6590
|
+
|
|
6591
|
+
exports.AccountsApi = AccountsApi; exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator; exports.AccountsApiFactory = AccountsApiFactory; exports.AccountsApiFp = AccountsApiFp; exports.AuthApi = AuthApi; exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator; exports.AuthApiFactory = AuthApiFactory; exports.AuthApiFp = AuthApiFp; exports.BotApiParticipantTypeEnum = BotApiParticipantTypeEnum; exports.Configuration = Configuration; exports.ContactListingType = ContactListingType; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.ConversationStatus = ConversationStatus; exports.ConversationsApi = ConversationsApi; exports.ConversationsApiAxiosParamCreator = ConversationsApiAxiosParamCreator; exports.ConversationsApiFactory = ConversationsApiFactory; exports.ConversationsApiFp = ConversationsApiFp; exports.EmailConversationDataApiConversationTypeEnum = EmailConversationDataApiConversationTypeEnum; exports.EmailInboxApiInboxTypeEnum = EmailInboxApiInboxTypeEnum; exports.EmailProviderMessageApiMessageTypeEnum = EmailProviderMessageApiMessageTypeEnum; exports.ExternalStaffApiStaffTypeEnum = ExternalStaffApiStaffTypeEnum; exports.GuestApiParticipantTypeEnum = GuestApiParticipantTypeEnum; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.InboxesApi = InboxesApi; exports.InboxesApiAxiosParamCreator = InboxesApiAxiosParamCreator; exports.InboxesApiFactory = InboxesApiFactory; exports.InboxesApiFp = InboxesApiFp; exports.InquiriesApi = InquiriesApi; exports.InquiriesApiAxiosParamCreator = InquiriesApiAxiosParamCreator; exports.InquiriesApiFactory = InquiriesApiFactory; exports.InquiriesApiFp = InquiriesApiFp; exports.InternalStaffApiStaffTypeEnum = InternalStaffApiStaffTypeEnum; exports.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.ManagedPhoneNumbersApi = ManagedPhoneNumbersApi; exports.ManagedPhoneNumbersApiAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator; exports.ManagedPhoneNumbersApiFactory = ManagedPhoneNumbersApiFactory; exports.ManagedPhoneNumbersApiFp = ManagedPhoneNumbersApiFp; exports.MessageDirection = MessageDirection; exports.MessageStatus = MessageStatus; exports.PaginationDirection = PaginationDirection; exports.PhoneInboxApiInboxTypeEnum = PhoneInboxApiInboxTypeEnum; exports.ProviderAccountInboxApiInboxTypeEnum = ProviderAccountInboxApiInboxTypeEnum; exports.ProviderCommunicationTypeInput = ProviderCommunicationTypeInput; exports.ProviderConversationDataApiConversationTypeEnum = ProviderConversationDataApiConversationTypeEnum; exports.ProviderStaffApiStaffTypeEnum = ProviderStaffApiStaffTypeEnum; exports.ProvidersApi = ProvidersApi; exports.ProvidersApiAxiosParamCreator = ProvidersApiAxiosParamCreator; exports.ProvidersApiFactory = ProvidersApiFactory; exports.ProvidersApiFp = ProvidersApiFp; exports.RentalProviderMessageApiMessageTypeEnum = RentalProviderMessageApiMessageTypeEnum; exports.RentalProviderTypes = RentalProviderTypes; exports.ReservationChannelTypes = ReservationChannelTypes; exports.ReservationStatus = ReservationStatus; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.SMSConversationDataApiConversationTypeEnum = SMSConversationDataApiConversationTypeEnum; exports.SMSInboundSenderTypeDataApiDirectionEnum = SMSInboundSenderTypeDataApiDirectionEnum; exports.SMSMessageApiMessageTypeEnum = SMSMessageApiMessageTypeEnum; exports.SMSMessageStatus = SMSMessageStatus; exports.SMSOutboundSenderTypeDataApiDirectionEnum = SMSOutboundSenderTypeDataApiDirectionEnum; exports.SortOrder = SortOrder; exports.SrcResourceModelsContactsModelContactsModelContactSortBy = SrcResourceModelsContactsModelContactsModelContactSortBy; exports.SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunicationType = SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunicationType; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum; exports.SrcResourceModelsListingsModelListingBaseSortBy = SrcResourceModelsListingsModelListingBaseSortBy; exports.SrcResourceModelsMessagesModelMessagesHelperModelsProviderCommunicationType = SrcResourceModelsMessagesModelMessagesHelperModelsProviderCommunicationType; exports.SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy = SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy; exports.SrcResourceModelsReservationsModelReservationBaseModelSortBy = SrcResourceModelsReservationsModelReservationBaseModelSortBy; exports.StaffApiParticipantTypeEnum = StaffApiParticipantTypeEnum; exports.SuggestionRejectionReasonType = SuggestionRejectionReasonType; exports.SuggestionStatus = SuggestionStatus; exports.TelnyxApi = TelnyxApi; exports.TelnyxApiAxiosParamCreator = TelnyxApiAxiosParamCreator; exports.TelnyxApiFactory = TelnyxApiFactory; exports.TelnyxApiFp = TelnyxApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp; exports.UserDeviceOs = UserDeviceOs; exports.UserDevicesApi = UserDevicesApi; exports.UserDevicesApiAxiosParamCreator = UserDevicesApiAxiosParamCreator; exports.UserDevicesApiFactory = UserDevicesApiFactory; exports.UserDevicesApiFp = UserDevicesApiFp;
|
|
6363
6592
|
//# sourceMappingURL=index.js.map
|