@ember-home/unbound-ts-client 0.0.94 → 0.0.95
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 +382 -225
- package/dist/index.d.ts +382 -225
- package/dist/index.js +589 -371
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +471 -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
|
};
|
|
@@ -208,13 +202,16 @@ var SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunic
|
|
|
208
202
|
Channel: "CHANNEL",
|
|
209
203
|
Whatsapp: "WHATSAPP"
|
|
210
204
|
};
|
|
211
|
-
var
|
|
212
|
-
|
|
205
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
|
|
206
|
+
Text: "TEXT"
|
|
213
207
|
};
|
|
214
208
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum = {
|
|
215
|
-
|
|
209
|
+
RentalProvider: "RENTAL_PROVIDER"
|
|
216
210
|
};
|
|
217
211
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = {
|
|
212
|
+
Text: "TEXT"
|
|
213
|
+
};
|
|
214
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum = {
|
|
218
215
|
Email: "EMAIL"
|
|
219
216
|
};
|
|
220
217
|
var SrcResourceModelsListingsModelListingBaseSortBy = {
|
|
@@ -236,12 +233,16 @@ var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
|
236
233
|
var StaffApiParticipantTypeEnum = {
|
|
237
234
|
Staff: "STAFF"
|
|
238
235
|
};
|
|
236
|
+
var SuggestionRejectionReasonType = {
|
|
237
|
+
Irrelevant: "IRRELEVANT",
|
|
238
|
+
Inaccurate: "INACCURATE",
|
|
239
|
+
InappropriateTone: "INAPPROPRIATE_TONE",
|
|
240
|
+
TooVerboseOrTerse: "TOO_VERBOSE_OR_TERSE"
|
|
241
|
+
};
|
|
239
242
|
var SuggestionStatus = {
|
|
240
243
|
Generating: "GENERATING",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
AnsweredByStaff: "ANSWERED_BY_STAFF",
|
|
244
|
-
ReplyGenerated: "REPLY_GENERATED"
|
|
244
|
+
ReplyGenerated: "REPLY_GENERATED",
|
|
245
|
+
NoAvailableReply: "NO_AVAILABLE_REPLY"
|
|
245
246
|
};
|
|
246
247
|
var UserDeviceOs = {
|
|
247
248
|
Android: "ANDROID",
|
|
@@ -1733,118 +1734,6 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1733
1734
|
};
|
|
1734
1735
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1735
1736
|
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
1737
|
/**
|
|
1849
1738
|
* Messages Create
|
|
1850
1739
|
* @summary Messages Create
|
|
@@ -1974,53 +1863,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1974
1863
|
var ConversationsApiFp = function(configuration) {
|
|
1975
1864
|
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1976
1865
|
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
1866
|
/**
|
|
2025
1867
|
* Messages Create
|
|
2026
1868
|
* @summary Messages Create
|
|
@@ -2031,8 +1873,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2031
1873
|
*/
|
|
2032
1874
|
async messagesCreate(conversationId, messagecreate, options) {
|
|
2033
1875
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
2034
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2035
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1876
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1877
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.messagesCreate"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
2036
1878
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2037
1879
|
},
|
|
2038
1880
|
/**
|
|
@@ -2044,8 +1886,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2044
1886
|
*/
|
|
2045
1887
|
async messagesGet(messageId, options) {
|
|
2046
1888
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
2047
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2048
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1889
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
1890
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["ConversationsApi.messagesGet"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
2049
1891
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2050
1892
|
},
|
|
2051
1893
|
/**
|
|
@@ -2067,8 +1909,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2067
1909
|
*/
|
|
2068
1910
|
async messagesList(conversationId, searchString, sentAtAfter, sentAtBefore, scheduledAtAfter, scheduledAtBefore, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2069
1911
|
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',
|
|
1912
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
1913
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["ConversationsApi.messagesList"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
2072
1914
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2073
1915
|
}
|
|
2074
1916
|
};
|
|
@@ -2076,44 +1918,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2076
1918
|
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
2077
1919
|
const localVarFp = ConversationsApiFp(configuration);
|
|
2078
1920
|
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
1921
|
/**
|
|
2118
1922
|
* Messages Create
|
|
2119
1923
|
* @summary Messages Create
|
|
@@ -2158,47 +1962,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2158
1962
|
};
|
|
2159
1963
|
};
|
|
2160
1964
|
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
1965
|
/**
|
|
2203
1966
|
* Messages Create
|
|
2204
1967
|
* @summary Messages Create
|
|
@@ -2289,8 +2052,8 @@ var HostawayApiFp = function(configuration) {
|
|
|
2289
2052
|
*/
|
|
2290
2053
|
async webhook(body, options) {
|
|
2291
2054
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
|
|
2292
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2293
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2055
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
2056
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["HostawayApi.webhook"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
2294
2057
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2295
2058
|
}
|
|
2296
2059
|
};
|
|
@@ -2325,6 +2088,148 @@ var HostawayApi = class extends BaseAPI {
|
|
|
2325
2088
|
};
|
|
2326
2089
|
var InboxesApiAxiosParamCreator = function(configuration) {
|
|
2327
2090
|
return {
|
|
2091
|
+
/**
|
|
2092
|
+
* Conversations Create
|
|
2093
|
+
* @summary Conversations Create
|
|
2094
|
+
* @param {string} inboxId
|
|
2095
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2096
|
+
* @param {*} [options] Override http request option.
|
|
2097
|
+
* @throws {RequiredError}
|
|
2098
|
+
*/
|
|
2099
|
+
conversationsCreate: async (inboxId, aPIConversationCreate, options = {}) => {
|
|
2100
|
+
assertParamExists("conversationsCreate", "inboxId", inboxId);
|
|
2101
|
+
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
2102
|
+
const localVarPath = `/v1/inboxes/{inboxId}/conversations`.replace(`{${"inboxId"}}`, encodeURIComponent(String(inboxId)));
|
|
2103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2104
|
+
let baseOptions;
|
|
2105
|
+
if (configuration) {
|
|
2106
|
+
baseOptions = configuration.baseOptions;
|
|
2107
|
+
}
|
|
2108
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2109
|
+
const localVarHeaderParameter = {};
|
|
2110
|
+
const localVarQueryParameter = {};
|
|
2111
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2114
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2115
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
2116
|
+
return {
|
|
2117
|
+
url: toPathString(localVarUrlObj),
|
|
2118
|
+
options: localVarRequestOptions
|
|
2119
|
+
};
|
|
2120
|
+
},
|
|
2121
|
+
/**
|
|
2122
|
+
* Conversations Get
|
|
2123
|
+
* @summary Conversations Get
|
|
2124
|
+
* @param {string} conversationId
|
|
2125
|
+
* @param {*} [options] Override http request option.
|
|
2126
|
+
* @throws {RequiredError}
|
|
2127
|
+
*/
|
|
2128
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
2129
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
2130
|
+
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2131
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2132
|
+
let baseOptions;
|
|
2133
|
+
if (configuration) {
|
|
2134
|
+
baseOptions = configuration.baseOptions;
|
|
2135
|
+
}
|
|
2136
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2137
|
+
const localVarHeaderParameter = {};
|
|
2138
|
+
const localVarQueryParameter = {};
|
|
2139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2141
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2142
|
+
return {
|
|
2143
|
+
url: toPathString(localVarUrlObj),
|
|
2144
|
+
options: localVarRequestOptions
|
|
2145
|
+
};
|
|
2146
|
+
},
|
|
2147
|
+
/**
|
|
2148
|
+
* List all conversations, must filter by contact_id
|
|
2149
|
+
* @summary Conversations List
|
|
2150
|
+
* @param {string | null} [searchString]
|
|
2151
|
+
* @param {string | null} [contactId]
|
|
2152
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2153
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2154
|
+
* @param {number} [limit]
|
|
2155
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2156
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2157
|
+
* @param {string | null} [inboxId]
|
|
2158
|
+
* @param {*} [options] Override http request option.
|
|
2159
|
+
* @throws {RequiredError}
|
|
2160
|
+
*/
|
|
2161
|
+
conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
|
|
2162
|
+
const localVarPath = `/v1/conversations`;
|
|
2163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2164
|
+
let baseOptions;
|
|
2165
|
+
if (configuration) {
|
|
2166
|
+
baseOptions = configuration.baseOptions;
|
|
2167
|
+
}
|
|
2168
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2169
|
+
const localVarHeaderParameter = {};
|
|
2170
|
+
const localVarQueryParameter = {};
|
|
2171
|
+
if (searchString !== void 0) {
|
|
2172
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
2173
|
+
}
|
|
2174
|
+
if (contactId !== void 0) {
|
|
2175
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
2176
|
+
}
|
|
2177
|
+
if (status) {
|
|
2178
|
+
localVarQueryParameter["status"] = status;
|
|
2179
|
+
}
|
|
2180
|
+
if (cursor !== void 0) {
|
|
2181
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
2182
|
+
}
|
|
2183
|
+
if (limit !== void 0) {
|
|
2184
|
+
localVarQueryParameter["limit"] = limit;
|
|
2185
|
+
}
|
|
2186
|
+
if (pageDir !== void 0) {
|
|
2187
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
2188
|
+
}
|
|
2189
|
+
if (sortOrder !== void 0) {
|
|
2190
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
2191
|
+
}
|
|
2192
|
+
if (inboxId !== void 0) {
|
|
2193
|
+
localVarQueryParameter["inboxId"] = inboxId;
|
|
2194
|
+
}
|
|
2195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2197
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2198
|
+
return {
|
|
2199
|
+
url: toPathString(localVarUrlObj),
|
|
2200
|
+
options: localVarRequestOptions
|
|
2201
|
+
};
|
|
2202
|
+
},
|
|
2203
|
+
/**
|
|
2204
|
+
* Conversations Update
|
|
2205
|
+
* @summary Conversations Update
|
|
2206
|
+
* @param {string} conversationId
|
|
2207
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2208
|
+
* @param {*} [options] Override http request option.
|
|
2209
|
+
* @throws {RequiredError}
|
|
2210
|
+
*/
|
|
2211
|
+
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
2212
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
2213
|
+
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
2214
|
+
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2216
|
+
let baseOptions;
|
|
2217
|
+
if (configuration) {
|
|
2218
|
+
baseOptions = configuration.baseOptions;
|
|
2219
|
+
}
|
|
2220
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2221
|
+
const localVarHeaderParameter = {};
|
|
2222
|
+
const localVarQueryParameter = {};
|
|
2223
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2224
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2225
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2226
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2227
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
2228
|
+
return {
|
|
2229
|
+
url: toPathString(localVarUrlObj),
|
|
2230
|
+
options: localVarRequestOptions
|
|
2231
|
+
};
|
|
2232
|
+
},
|
|
2328
2233
|
/**
|
|
2329
2234
|
* Inboxes List
|
|
2330
2235
|
* @summary Inboxes List
|
|
@@ -2354,6 +2259,67 @@ var InboxesApiAxiosParamCreator = function(configuration) {
|
|
|
2354
2259
|
var InboxesApiFp = function(configuration) {
|
|
2355
2260
|
const localVarAxiosParamCreator = InboxesApiAxiosParamCreator(configuration);
|
|
2356
2261
|
return {
|
|
2262
|
+
/**
|
|
2263
|
+
* Conversations Create
|
|
2264
|
+
* @summary Conversations Create
|
|
2265
|
+
* @param {string} inboxId
|
|
2266
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2267
|
+
* @param {*} [options] Override http request option.
|
|
2268
|
+
* @throws {RequiredError}
|
|
2269
|
+
*/
|
|
2270
|
+
async conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2271
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(inboxId, aPIConversationCreate, options);
|
|
2272
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
2273
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["InboxesApi.conversationsCreate"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
2274
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2275
|
+
},
|
|
2276
|
+
/**
|
|
2277
|
+
* Conversations Get
|
|
2278
|
+
* @summary Conversations Get
|
|
2279
|
+
* @param {string} conversationId
|
|
2280
|
+
* @param {*} [options] Override http request option.
|
|
2281
|
+
* @throws {RequiredError}
|
|
2282
|
+
*/
|
|
2283
|
+
async conversationsGet(conversationId, options) {
|
|
2284
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
2285
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
2286
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["InboxesApi.conversationsGet"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
2287
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2288
|
+
},
|
|
2289
|
+
/**
|
|
2290
|
+
* List all conversations, must filter by contact_id
|
|
2291
|
+
* @summary Conversations List
|
|
2292
|
+
* @param {string | null} [searchString]
|
|
2293
|
+
* @param {string | null} [contactId]
|
|
2294
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2295
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2296
|
+
* @param {number} [limit]
|
|
2297
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2298
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2299
|
+
* @param {string | null} [inboxId]
|
|
2300
|
+
* @param {*} [options] Override http request option.
|
|
2301
|
+
* @throws {RequiredError}
|
|
2302
|
+
*/
|
|
2303
|
+
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
2305
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2306
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["InboxesApi.conversationsList"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
2307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2308
|
+
},
|
|
2309
|
+
/**
|
|
2310
|
+
* Conversations Update
|
|
2311
|
+
* @summary Conversations Update
|
|
2312
|
+
* @param {string} conversationId
|
|
2313
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2314
|
+
* @param {*} [options] Override http request option.
|
|
2315
|
+
* @throws {RequiredError}
|
|
2316
|
+
*/
|
|
2317
|
+
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
2319
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2320
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["InboxesApi.conversationsUpdate"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
2321
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2322
|
+
},
|
|
2357
2323
|
/**
|
|
2358
2324
|
* Inboxes List
|
|
2359
2325
|
* @summary Inboxes List
|
|
@@ -2362,8 +2328,8 @@ var InboxesApiFp = function(configuration) {
|
|
|
2362
2328
|
*/
|
|
2363
2329
|
async inboxesList(options) {
|
|
2364
2330
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
|
|
2365
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2366
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2331
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2332
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["InboxesApi.inboxesList"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
2367
2333
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2368
2334
|
}
|
|
2369
2335
|
};
|
|
@@ -2371,6 +2337,55 @@ var InboxesApiFp = function(configuration) {
|
|
|
2371
2337
|
var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
2372
2338
|
const localVarFp = InboxesApiFp(configuration);
|
|
2373
2339
|
return {
|
|
2340
|
+
/**
|
|
2341
|
+
* Conversations Create
|
|
2342
|
+
* @summary Conversations Create
|
|
2343
|
+
* @param {string} inboxId
|
|
2344
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2345
|
+
* @param {*} [options] Override http request option.
|
|
2346
|
+
* @throws {RequiredError}
|
|
2347
|
+
*/
|
|
2348
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2349
|
+
return localVarFp.conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
2350
|
+
},
|
|
2351
|
+
/**
|
|
2352
|
+
* Conversations Get
|
|
2353
|
+
* @summary Conversations Get
|
|
2354
|
+
* @param {string} conversationId
|
|
2355
|
+
* @param {*} [options] Override http request option.
|
|
2356
|
+
* @throws {RequiredError}
|
|
2357
|
+
*/
|
|
2358
|
+
conversationsGet(conversationId, options) {
|
|
2359
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2360
|
+
},
|
|
2361
|
+
/**
|
|
2362
|
+
* List all conversations, must filter by contact_id
|
|
2363
|
+
* @summary Conversations List
|
|
2364
|
+
* @param {string | null} [searchString]
|
|
2365
|
+
* @param {string | null} [contactId]
|
|
2366
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2367
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2368
|
+
* @param {number} [limit]
|
|
2369
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2370
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2371
|
+
* @param {string | null} [inboxId]
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2376
|
+
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2377
|
+
},
|
|
2378
|
+
/**
|
|
2379
|
+
* Conversations Update
|
|
2380
|
+
* @summary Conversations Update
|
|
2381
|
+
* @param {string} conversationId
|
|
2382
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2383
|
+
* @param {*} [options] Override http request option.
|
|
2384
|
+
* @throws {RequiredError}
|
|
2385
|
+
*/
|
|
2386
|
+
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2387
|
+
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2388
|
+
},
|
|
2374
2389
|
/**
|
|
2375
2390
|
* Inboxes List
|
|
2376
2391
|
* @summary Inboxes List
|
|
@@ -2383,6 +2398,59 @@ var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
|
2383
2398
|
};
|
|
2384
2399
|
};
|
|
2385
2400
|
var InboxesApi = class extends BaseAPI {
|
|
2401
|
+
/**
|
|
2402
|
+
* Conversations Create
|
|
2403
|
+
* @summary Conversations Create
|
|
2404
|
+
* @param {string} inboxId
|
|
2405
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
2406
|
+
* @param {*} [options] Override http request option.
|
|
2407
|
+
* @throws {RequiredError}
|
|
2408
|
+
* @memberof InboxesApi
|
|
2409
|
+
*/
|
|
2410
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
2411
|
+
return InboxesApiFp(this.configuration).conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2412
|
+
}
|
|
2413
|
+
/**
|
|
2414
|
+
* Conversations Get
|
|
2415
|
+
* @summary Conversations Get
|
|
2416
|
+
* @param {string} conversationId
|
|
2417
|
+
* @param {*} [options] Override http request option.
|
|
2418
|
+
* @throws {RequiredError}
|
|
2419
|
+
* @memberof InboxesApi
|
|
2420
|
+
*/
|
|
2421
|
+
conversationsGet(conversationId, options) {
|
|
2422
|
+
return InboxesApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
* List all conversations, must filter by contact_id
|
|
2426
|
+
* @summary Conversations List
|
|
2427
|
+
* @param {string | null} [searchString]
|
|
2428
|
+
* @param {string | null} [contactId]
|
|
2429
|
+
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2430
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2431
|
+
* @param {number} [limit]
|
|
2432
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2433
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2434
|
+
* @param {string | null} [inboxId]
|
|
2435
|
+
* @param {*} [options] Override http request option.
|
|
2436
|
+
* @throws {RequiredError}
|
|
2437
|
+
* @memberof InboxesApi
|
|
2438
|
+
*/
|
|
2439
|
+
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2440
|
+
return InboxesApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* Conversations Update
|
|
2444
|
+
* @summary Conversations Update
|
|
2445
|
+
* @param {string} conversationId
|
|
2446
|
+
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
* @memberof InboxesApi
|
|
2450
|
+
*/
|
|
2451
|
+
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2452
|
+
return InboxesApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2453
|
+
}
|
|
2386
2454
|
/**
|
|
2387
2455
|
* Inboxes List
|
|
2388
2456
|
* @summary Inboxes List
|
|
@@ -2438,8 +2506,8 @@ var InquiriesApiFp = function(configuration) {
|
|
|
2438
2506
|
*/
|
|
2439
2507
|
async inquiriesList(contactId, options) {
|
|
2440
2508
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
2441
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2442
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2509
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2510
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["InquiriesApi.inquiriesList"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
2443
2511
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2444
2512
|
}
|
|
2445
2513
|
};
|
|
@@ -2566,8 +2634,8 @@ var ListingsApiFp = function(configuration) {
|
|
|
2566
2634
|
*/
|
|
2567
2635
|
async listingsGet(listingId, options) {
|
|
2568
2636
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
2569
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2570
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2637
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
2638
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["ListingsApi.listingsGet"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
2571
2639
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2572
2640
|
},
|
|
2573
2641
|
/**
|
|
@@ -2585,8 +2653,8 @@ var ListingsApiFp = function(configuration) {
|
|
|
2585
2653
|
*/
|
|
2586
2654
|
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2587
2655
|
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',
|
|
2656
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
2657
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["ListingsApi.listingsList"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
2590
2658
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2591
2659
|
}
|
|
2592
2660
|
};
|
|
@@ -2691,8 +2759,8 @@ var ManagedPhoneNumbersApiFp = function(configuration) {
|
|
|
2691
2759
|
*/
|
|
2692
2760
|
async managedPhoneNumbersList(options) {
|
|
2693
2761
|
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
2694
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2695
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2762
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2763
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["ManagedPhoneNumbersApi.managedPhoneNumbersList"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2696
2764
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2697
2765
|
}
|
|
2698
2766
|
};
|
|
@@ -2847,8 +2915,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2847
2915
|
*/
|
|
2848
2916
|
async providersCreate(aPIProviderCreate, options) {
|
|
2849
2917
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(aPIProviderCreate, options);
|
|
2850
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2851
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2918
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
|
|
2919
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["ProvidersApi.providersCreate"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
|
|
2852
2920
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2853
2921
|
},
|
|
2854
2922
|
/**
|
|
@@ -2860,8 +2928,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2860
2928
|
*/
|
|
2861
2929
|
async providersGet(providerId, options) {
|
|
2862
2930
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
|
|
2863
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2864
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2931
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
|
|
2932
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["ProvidersApi.providersGet"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
|
|
2865
2933
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2866
2934
|
},
|
|
2867
2935
|
/**
|
|
@@ -2872,8 +2940,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2872
2940
|
*/
|
|
2873
2941
|
async providersList(options) {
|
|
2874
2942
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
|
|
2875
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2876
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2943
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
|
|
2944
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["ProvidersApi.providersList"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
|
|
2877
2945
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2878
2946
|
},
|
|
2879
2947
|
/**
|
|
@@ -2886,8 +2954,8 @@ var ProvidersApiFp = function(configuration) {
|
|
|
2886
2954
|
*/
|
|
2887
2955
|
async providersUpdate(providerId, aPIProviderUpdate, options) {
|
|
2888
2956
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, aPIProviderUpdate, options);
|
|
2889
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2890
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2957
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
|
|
2958
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["ProvidersApi.providersUpdate"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
|
|
2891
2959
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2892
2960
|
}
|
|
2893
2961
|
};
|
|
@@ -3077,8 +3145,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
3077
3145
|
*/
|
|
3078
3146
|
async reservationsGet(reservationId, options) {
|
|
3079
3147
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsGet(reservationId, options);
|
|
3080
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3081
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3148
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
|
|
3149
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["ReservationsApi.reservationsGet"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
|
|
3082
3150
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3083
3151
|
},
|
|
3084
3152
|
/**
|
|
@@ -3096,8 +3164,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
3096
3164
|
*/
|
|
3097
3165
|
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3098
3166
|
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',
|
|
3167
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
|
|
3168
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["ReservationsApi.reservationsList"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
|
|
3101
3169
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3102
3170
|
}
|
|
3103
3171
|
};
|
|
@@ -3163,6 +3231,84 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3163
3231
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3164
3232
|
}
|
|
3165
3233
|
};
|
|
3234
|
+
var TelnyxApiAxiosParamCreator = function(configuration) {
|
|
3235
|
+
return {
|
|
3236
|
+
/**
|
|
3237
|
+
*
|
|
3238
|
+
* @summary Telnyx Webhook
|
|
3239
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3240
|
+
* @param {*} [options] Override http request option.
|
|
3241
|
+
* @throws {RequiredError}
|
|
3242
|
+
*/
|
|
3243
|
+
telnyxWebhookTelnyxWebhooksPost: async (requestBody, options = {}) => {
|
|
3244
|
+
assertParamExists("telnyxWebhookTelnyxWebhooksPost", "requestBody", requestBody);
|
|
3245
|
+
const localVarPath = `/telnyx-webhooks`;
|
|
3246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3247
|
+
let baseOptions;
|
|
3248
|
+
if (configuration) {
|
|
3249
|
+
baseOptions = configuration.baseOptions;
|
|
3250
|
+
}
|
|
3251
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3252
|
+
const localVarHeaderParameter = {};
|
|
3253
|
+
const localVarQueryParameter = {};
|
|
3254
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3255
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3256
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3257
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3258
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
3259
|
+
return {
|
|
3260
|
+
url: toPathString(localVarUrlObj),
|
|
3261
|
+
options: localVarRequestOptions
|
|
3262
|
+
};
|
|
3263
|
+
}
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
3266
|
+
var TelnyxApiFp = function(configuration) {
|
|
3267
|
+
const localVarAxiosParamCreator = TelnyxApiAxiosParamCreator(configuration);
|
|
3268
|
+
return {
|
|
3269
|
+
/**
|
|
3270
|
+
*
|
|
3271
|
+
* @summary Telnyx Webhook
|
|
3272
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3273
|
+
* @param {*} [options] Override http request option.
|
|
3274
|
+
* @throws {RequiredError}
|
|
3275
|
+
*/
|
|
3276
|
+
async telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.telnyxWebhookTelnyxWebhooksPost(requestBody, options);
|
|
3278
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
|
|
3279
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["TelnyxApi.telnyxWebhookTelnyxWebhooksPost"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
|
|
3280
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3281
|
+
}
|
|
3282
|
+
};
|
|
3283
|
+
};
|
|
3284
|
+
var TelnyxApiFactory = function(configuration, basePath, axios) {
|
|
3285
|
+
const localVarFp = TelnyxApiFp(configuration);
|
|
3286
|
+
return {
|
|
3287
|
+
/**
|
|
3288
|
+
*
|
|
3289
|
+
* @summary Telnyx Webhook
|
|
3290
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3291
|
+
* @param {*} [options] Override http request option.
|
|
3292
|
+
* @throws {RequiredError}
|
|
3293
|
+
*/
|
|
3294
|
+
telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3295
|
+
return localVarFp.telnyxWebhookTelnyxWebhooksPost(requestBody, options).then((request) => request(axios, basePath));
|
|
3296
|
+
}
|
|
3297
|
+
};
|
|
3298
|
+
};
|
|
3299
|
+
var TelnyxApi = class extends BaseAPI {
|
|
3300
|
+
/**
|
|
3301
|
+
*
|
|
3302
|
+
* @summary Telnyx Webhook
|
|
3303
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
3304
|
+
* @param {*} [options] Override http request option.
|
|
3305
|
+
* @throws {RequiredError}
|
|
3306
|
+
* @memberof TelnyxApi
|
|
3307
|
+
*/
|
|
3308
|
+
telnyxWebhookTelnyxWebhooksPost(requestBody, options) {
|
|
3309
|
+
return TelnyxApiFp(this.configuration).telnyxWebhookTelnyxWebhooksPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
3310
|
+
}
|
|
3311
|
+
};
|
|
3166
3312
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3167
3313
|
return {
|
|
3168
3314
|
/**
|
|
@@ -3555,6 +3701,36 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3555
3701
|
options: localVarRequestOptions
|
|
3556
3702
|
};
|
|
3557
3703
|
},
|
|
3704
|
+
/**
|
|
3705
|
+
* Conversations Create
|
|
3706
|
+
* @summary Conversations Create
|
|
3707
|
+
* @param {string} inboxId
|
|
3708
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
3709
|
+
* @param {*} [options] Override http request option.
|
|
3710
|
+
* @throws {RequiredError}
|
|
3711
|
+
*/
|
|
3712
|
+
conversationsCreate: async (inboxId, aPIConversationCreate, options = {}) => {
|
|
3713
|
+
assertParamExists("conversationsCreate", "inboxId", inboxId);
|
|
3714
|
+
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
3715
|
+
const localVarPath = `/v1/inboxes/{inboxId}/conversations`.replace(`{${"inboxId"}}`, encodeURIComponent(String(inboxId)));
|
|
3716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3717
|
+
let baseOptions;
|
|
3718
|
+
if (configuration) {
|
|
3719
|
+
baseOptions = configuration.baseOptions;
|
|
3720
|
+
}
|
|
3721
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3722
|
+
const localVarHeaderParameter = {};
|
|
3723
|
+
const localVarQueryParameter = {};
|
|
3724
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3725
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3727
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3728
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
3729
|
+
return {
|
|
3730
|
+
url: toPathString(localVarUrlObj),
|
|
3731
|
+
options: localVarRequestOptions
|
|
3732
|
+
};
|
|
3733
|
+
},
|
|
3558
3734
|
/**
|
|
3559
3735
|
* Conversations Get
|
|
3560
3736
|
* @summary Conversations Get
|
|
@@ -4475,8 +4651,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4475
4651
|
*/
|
|
4476
4652
|
async accountsList(options) {
|
|
4477
4653
|
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
4478
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4479
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4654
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
|
|
4655
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["UnboundApi.accountsList"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
|
|
4480
4656
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4481
4657
|
},
|
|
4482
4658
|
/**
|
|
@@ -4489,8 +4665,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4489
4665
|
*/
|
|
4490
4666
|
async addressesCreate(contactId, aPIAddressCreate, options) {
|
|
4491
4667
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, aPIAddressCreate, options);
|
|
4492
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4493
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4668
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
|
|
4669
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["UnboundApi.addressesCreate"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
|
|
4494
4670
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4495
4671
|
},
|
|
4496
4672
|
/**
|
|
@@ -4502,8 +4678,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4502
4678
|
*/
|
|
4503
4679
|
async addressesDelete(addressId, options) {
|
|
4504
4680
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
4505
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4506
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4681
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
|
|
4682
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["UnboundApi.addressesDelete"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
|
|
4507
4683
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4508
4684
|
},
|
|
4509
4685
|
/**
|
|
@@ -4515,8 +4691,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4515
4691
|
*/
|
|
4516
4692
|
async addressesGet(addressId, options) {
|
|
4517
4693
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesGet(addressId, options);
|
|
4518
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4519
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4694
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _182 => _182.serverIndex]), () => ( 0));
|
|
4695
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _183 => _183["UnboundApi.addressesGet"], 'optionalAccess', _184 => _184[localVarOperationServerIndex], 'optionalAccess', _185 => _185.url]);
|
|
4520
4696
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4521
4697
|
},
|
|
4522
4698
|
/**
|
|
@@ -4529,8 +4705,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4529
4705
|
*/
|
|
4530
4706
|
async addressesUpdate(addressId, aPIAddressUpdate, options) {
|
|
4531
4707
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, aPIAddressUpdate, options);
|
|
4532
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4533
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4708
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _186 => _186.serverIndex]), () => ( 0));
|
|
4709
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _187 => _187["UnboundApi.addressesUpdate"], 'optionalAccess', _188 => _188[localVarOperationServerIndex], 'optionalAccess', _189 => _189.url]);
|
|
4534
4710
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4535
4711
|
},
|
|
4536
4712
|
/**
|
|
@@ -4544,8 +4720,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4544
4720
|
*/
|
|
4545
4721
|
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
4546
4722
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
4547
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4548
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4723
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _190 => _190.serverIndex]), () => ( 0));
|
|
4724
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _191 => _191["UnboundApi.contactsAddListing"], 'optionalAccess', _192 => _192[localVarOperationServerIndex], 'optionalAccess', _193 => _193.url]);
|
|
4549
4725
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4550
4726
|
},
|
|
4551
4727
|
/**
|
|
@@ -4557,8 +4733,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4557
4733
|
*/
|
|
4558
4734
|
async contactsCreate(contactcreate, options) {
|
|
4559
4735
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactcreate, options);
|
|
4560
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4561
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4736
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _194 => _194.serverIndex]), () => ( 0));
|
|
4737
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _195 => _195["UnboundApi.contactsCreate"], 'optionalAccess', _196 => _196[localVarOperationServerIndex], 'optionalAccess', _197 => _197.url]);
|
|
4562
4738
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4563
4739
|
},
|
|
4564
4740
|
/**
|
|
@@ -4570,8 +4746,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4570
4746
|
*/
|
|
4571
4747
|
async contactsDelete(contactId, options) {
|
|
4572
4748
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
4573
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4574
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4749
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _198 => _198.serverIndex]), () => ( 0));
|
|
4750
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _199 => _199["UnboundApi.contactsDelete"], 'optionalAccess', _200 => _200[localVarOperationServerIndex], 'optionalAccess', _201 => _201.url]);
|
|
4575
4751
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4576
4752
|
},
|
|
4577
4753
|
/**
|
|
@@ -4583,8 +4759,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4583
4759
|
*/
|
|
4584
4760
|
async contactsGet(contactId, options) {
|
|
4585
4761
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
4586
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4587
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4762
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _202 => _202.serverIndex]), () => ( 0));
|
|
4763
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _203 => _203["UnboundApi.contactsGet"], 'optionalAccess', _204 => _204[localVarOperationServerIndex], 'optionalAccess', _205 => _205.url]);
|
|
4588
4764
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4589
4765
|
},
|
|
4590
4766
|
/**
|
|
@@ -4601,8 +4777,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4601
4777
|
*/
|
|
4602
4778
|
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4603
4779
|
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',
|
|
4780
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _206 => _206.serverIndex]), () => ( 0));
|
|
4781
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _207 => _207["UnboundApi.contactsList"], 'optionalAccess', _208 => _208[localVarOperationServerIndex], 'optionalAccess', _209 => _209.url]);
|
|
4606
4782
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4607
4783
|
},
|
|
4608
4784
|
/**
|
|
@@ -4616,8 +4792,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4616
4792
|
*/
|
|
4617
4793
|
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
4618
4794
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
4619
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4620
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4795
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _210 => _210.serverIndex]), () => ( 0));
|
|
4796
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _211 => _211["UnboundApi.contactsRemoveListing"], 'optionalAccess', _212 => _212[localVarOperationServerIndex], 'optionalAccess', _213 => _213.url]);
|
|
4621
4797
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4622
4798
|
},
|
|
4623
4799
|
/**
|
|
@@ -4630,8 +4806,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4630
4806
|
*/
|
|
4631
4807
|
async contactsUpdate(contactId, aPIContactUpdate, options) {
|
|
4632
4808
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, aPIContactUpdate, options);
|
|
4633
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4634
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4809
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _214 => _214.serverIndex]), () => ( 0));
|
|
4810
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _215 => _215["UnboundApi.contactsUpdate"], 'optionalAccess', _216 => _216[localVarOperationServerIndex], 'optionalAccess', _217 => _217.url]);
|
|
4635
4811
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4636
4812
|
},
|
|
4637
4813
|
/**
|
|
@@ -4645,8 +4821,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
4645
4821
|
*/
|
|
4646
4822
|
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
4647
4823
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
4648
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4649
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4824
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _218 => _218.serverIndex]), () => ( 0));
|
|
4825
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _219 => _219["UnboundApi.contactsUpdateListing"], 'optionalAccess', _220 => _220[localVarOperationServerIndex], 'optionalAccess', _221 => _221.url]);
|
|
4826
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4827
|
+
},
|
|
4828
|
+
/**
|
|
4829
|
+
* Conversations Create
|
|
4830
|
+
* @summary Conversations Create
|
|
4831
|
+
* @param {string} inboxId
|
|
4832
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
4833
|
+
* @param {*} [options] Override http request option.
|
|
4834
|
+
* @throws {RequiredError}
|
|
4835
|
+
*/
|
|
4836
|
+
async conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
4837
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(inboxId, aPIConversationCreate, options);
|
|
4838
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _222 => _222.serverIndex]), () => ( 0));
|
|
4839
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _223 => _223["UnboundApi.conversationsCreate"], 'optionalAccess', _224 => _224[localVarOperationServerIndex], 'optionalAccess', _225 => _225.url]);
|
|
4650
4840
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4651
4841
|
},
|
|
4652
4842
|
/**
|
|
@@ -4658,8 +4848,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4658
4848
|
*/
|
|
4659
4849
|
async conversationsGet(conversationId, options) {
|
|
4660
4850
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
4661
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4662
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4851
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _226 => _226.serverIndex]), () => ( 0));
|
|
4852
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _227 => _227["UnboundApi.conversationsGet"], 'optionalAccess', _228 => _228[localVarOperationServerIndex], 'optionalAccess', _229 => _229.url]);
|
|
4663
4853
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4664
4854
|
},
|
|
4665
4855
|
/**
|
|
@@ -4678,8 +4868,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4678
4868
|
*/
|
|
4679
4869
|
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
4680
4870
|
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',
|
|
4871
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _230 => _230.serverIndex]), () => ( 0));
|
|
4872
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _231 => _231["UnboundApi.conversationsList"], 'optionalAccess', _232 => _232[localVarOperationServerIndex], 'optionalAccess', _233 => _233.url]);
|
|
4683
4873
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4684
4874
|
},
|
|
4685
4875
|
/**
|
|
@@ -4692,8 +4882,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4692
4882
|
*/
|
|
4693
4883
|
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
4694
4884
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
4695
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4696
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4885
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _234 => _234.serverIndex]), () => ( 0));
|
|
4886
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _235 => _235["UnboundApi.conversationsUpdate"], 'optionalAccess', _236 => _236[localVarOperationServerIndex], 'optionalAccess', _237 => _237.url]);
|
|
4697
4887
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4698
4888
|
},
|
|
4699
4889
|
/**
|
|
@@ -4706,8 +4896,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4706
4896
|
*/
|
|
4707
4897
|
async emailsCreate(contactId, aPIEmailCreate, options) {
|
|
4708
4898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, aPIEmailCreate, options);
|
|
4709
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4710
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4899
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _238 => _238.serverIndex]), () => ( 0));
|
|
4900
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _239 => _239["UnboundApi.emailsCreate"], 'optionalAccess', _240 => _240[localVarOperationServerIndex], 'optionalAccess', _241 => _241.url]);
|
|
4711
4901
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4712
4902
|
},
|
|
4713
4903
|
/**
|
|
@@ -4719,8 +4909,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4719
4909
|
*/
|
|
4720
4910
|
async emailsDelete(emailId, options) {
|
|
4721
4911
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
4722
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4723
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4912
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _242 => _242.serverIndex]), () => ( 0));
|
|
4913
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _243 => _243["UnboundApi.emailsDelete"], 'optionalAccess', _244 => _244[localVarOperationServerIndex], 'optionalAccess', _245 => _245.url]);
|
|
4724
4914
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4725
4915
|
},
|
|
4726
4916
|
/**
|
|
@@ -4732,8 +4922,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4732
4922
|
*/
|
|
4733
4923
|
async emailsGet(emailId, options) {
|
|
4734
4924
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsGet(emailId, options);
|
|
4735
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4736
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4925
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _246 => _246.serverIndex]), () => ( 0));
|
|
4926
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _247 => _247["UnboundApi.emailsGet"], 'optionalAccess', _248 => _248[localVarOperationServerIndex], 'optionalAccess', _249 => _249.url]);
|
|
4737
4927
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4738
4928
|
},
|
|
4739
4929
|
/**
|
|
@@ -4746,8 +4936,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4746
4936
|
*/
|
|
4747
4937
|
async emailsUpdate(emailId, aPIEmailUpdate, options) {
|
|
4748
4938
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, aPIEmailUpdate, options);
|
|
4749
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4750
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4939
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _250 => _250.serverIndex]), () => ( 0));
|
|
4940
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _251 => _251["UnboundApi.emailsUpdate"], 'optionalAccess', _252 => _252[localVarOperationServerIndex], 'optionalAccess', _253 => _253.url]);
|
|
4751
4941
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4752
4942
|
},
|
|
4753
4943
|
/**
|
|
@@ -4758,8 +4948,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4758
4948
|
*/
|
|
4759
4949
|
async getMe(options) {
|
|
4760
4950
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getMe(options);
|
|
4761
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4762
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4951
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _254 => _254.serverIndex]), () => ( 0));
|
|
4952
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _255 => _255["UnboundApi.getMe"], 'optionalAccess', _256 => _256[localVarOperationServerIndex], 'optionalAccess', _257 => _257.url]);
|
|
4763
4953
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4764
4954
|
},
|
|
4765
4955
|
/**
|
|
@@ -4770,8 +4960,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4770
4960
|
*/
|
|
4771
4961
|
async inboxesList(options) {
|
|
4772
4962
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
|
|
4773
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4774
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4963
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _258 => _258.serverIndex]), () => ( 0));
|
|
4964
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _259 => _259["UnboundApi.inboxesList"], 'optionalAccess', _260 => _260[localVarOperationServerIndex], 'optionalAccess', _261 => _261.url]);
|
|
4775
4965
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4776
4966
|
},
|
|
4777
4967
|
/**
|
|
@@ -4783,8 +4973,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4783
4973
|
*/
|
|
4784
4974
|
async inquiriesList(contactId, options) {
|
|
4785
4975
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
4786
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4787
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4976
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _262 => _262.serverIndex]), () => ( 0));
|
|
4977
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _263 => _263["UnboundApi.inquiriesList"], 'optionalAccess', _264 => _264[localVarOperationServerIndex], 'optionalAccess', _265 => _265.url]);
|
|
4788
4978
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4789
4979
|
},
|
|
4790
4980
|
/**
|
|
@@ -4796,8 +4986,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4796
4986
|
*/
|
|
4797
4987
|
async listingsGet(listingId, options) {
|
|
4798
4988
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
4799
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4800
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4989
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _266 => _266.serverIndex]), () => ( 0));
|
|
4990
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _267 => _267["UnboundApi.listingsGet"], 'optionalAccess', _268 => _268[localVarOperationServerIndex], 'optionalAccess', _269 => _269.url]);
|
|
4801
4991
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4802
4992
|
},
|
|
4803
4993
|
/**
|
|
@@ -4815,8 +5005,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4815
5005
|
*/
|
|
4816
5006
|
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4817
5007
|
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',
|
|
5008
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _270 => _270.serverIndex]), () => ( 0));
|
|
5009
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _271 => _271["UnboundApi.listingsList"], 'optionalAccess', _272 => _272[localVarOperationServerIndex], 'optionalAccess', _273 => _273.url]);
|
|
4820
5010
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4821
5011
|
},
|
|
4822
5012
|
/**
|
|
@@ -4827,8 +5017,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4827
5017
|
*/
|
|
4828
5018
|
async managedPhoneNumbersList(options) {
|
|
4829
5019
|
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
4830
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4831
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5020
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _274 => _274.serverIndex]), () => ( 0));
|
|
5021
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _275 => _275["UnboundApi.managedPhoneNumbersList"], 'optionalAccess', _276 => _276[localVarOperationServerIndex], 'optionalAccess', _277 => _277.url]);
|
|
4832
5022
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4833
5023
|
},
|
|
4834
5024
|
/**
|
|
@@ -4841,8 +5031,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4841
5031
|
*/
|
|
4842
5032
|
async messagesCreate(conversationId, messagecreate, options) {
|
|
4843
5033
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messagecreate, options);
|
|
4844
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4845
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5034
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _278 => _278.serverIndex]), () => ( 0));
|
|
5035
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _279 => _279["UnboundApi.messagesCreate"], 'optionalAccess', _280 => _280[localVarOperationServerIndex], 'optionalAccess', _281 => _281.url]);
|
|
4846
5036
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4847
5037
|
},
|
|
4848
5038
|
/**
|
|
@@ -4854,8 +5044,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4854
5044
|
*/
|
|
4855
5045
|
async messagesGet(messageId, options) {
|
|
4856
5046
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
4857
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4858
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5047
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _282 => _282.serverIndex]), () => ( 0));
|
|
5048
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _283 => _283["UnboundApi.messagesGet"], 'optionalAccess', _284 => _284[localVarOperationServerIndex], 'optionalAccess', _285 => _285.url]);
|
|
4859
5049
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4860
5050
|
},
|
|
4861
5051
|
/**
|
|
@@ -4877,8 +5067,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4877
5067
|
*/
|
|
4878
5068
|
async messagesList(conversationId, searchString, sentAtAfter, sentAtBefore, scheduledAtAfter, scheduledAtBefore, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4879
5069
|
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',
|
|
5070
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _286 => _286.serverIndex]), () => ( 0));
|
|
5071
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _287 => _287["UnboundApi.messagesList"], 'optionalAccess', _288 => _288[localVarOperationServerIndex], 'optionalAccess', _289 => _289.url]);
|
|
4882
5072
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4883
5073
|
},
|
|
4884
5074
|
/**
|
|
@@ -4891,8 +5081,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4891
5081
|
*/
|
|
4892
5082
|
async phonesCreate(contactId, aPIPhoneCreate, options) {
|
|
4893
5083
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, aPIPhoneCreate, options);
|
|
4894
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4895
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5084
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _290 => _290.serverIndex]), () => ( 0));
|
|
5085
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _291 => _291["UnboundApi.phonesCreate"], 'optionalAccess', _292 => _292[localVarOperationServerIndex], 'optionalAccess', _293 => _293.url]);
|
|
4896
5086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4897
5087
|
},
|
|
4898
5088
|
/**
|
|
@@ -4904,8 +5094,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4904
5094
|
*/
|
|
4905
5095
|
async phonesDelete(phoneId, options) {
|
|
4906
5096
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
4907
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4908
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5097
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _294 => _294.serverIndex]), () => ( 0));
|
|
5098
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _295 => _295["UnboundApi.phonesDelete"], 'optionalAccess', _296 => _296[localVarOperationServerIndex], 'optionalAccess', _297 => _297.url]);
|
|
4909
5099
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4910
5100
|
},
|
|
4911
5101
|
/**
|
|
@@ -4917,8 +5107,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4917
5107
|
*/
|
|
4918
5108
|
async phonesGet(phoneId, options) {
|
|
4919
5109
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesGet(phoneId, options);
|
|
4920
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4921
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5110
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _298 => _298.serverIndex]), () => ( 0));
|
|
5111
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _299 => _299["UnboundApi.phonesGet"], 'optionalAccess', _300 => _300[localVarOperationServerIndex], 'optionalAccess', _301 => _301.url]);
|
|
4922
5112
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4923
5113
|
},
|
|
4924
5114
|
/**
|
|
@@ -4931,8 +5121,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4931
5121
|
*/
|
|
4932
5122
|
async phonesUpdate(phoneId, aPIPhoneUpdate, options) {
|
|
4933
5123
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesUpdate(phoneId, aPIPhoneUpdate, options);
|
|
4934
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4935
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5124
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _302 => _302.serverIndex]), () => ( 0));
|
|
5125
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _303 => _303["UnboundApi.phonesUpdate"], 'optionalAccess', _304 => _304[localVarOperationServerIndex], 'optionalAccess', _305 => _305.url]);
|
|
4936
5126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4937
5127
|
},
|
|
4938
5128
|
/**
|
|
@@ -4944,8 +5134,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4944
5134
|
*/
|
|
4945
5135
|
async providersCreate(aPIProviderCreate, options) {
|
|
4946
5136
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(aPIProviderCreate, options);
|
|
4947
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4948
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5137
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _306 => _306.serverIndex]), () => ( 0));
|
|
5138
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _307 => _307["UnboundApi.providersCreate"], 'optionalAccess', _308 => _308[localVarOperationServerIndex], 'optionalAccess', _309 => _309.url]);
|
|
4949
5139
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4950
5140
|
},
|
|
4951
5141
|
/**
|
|
@@ -4957,8 +5147,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4957
5147
|
*/
|
|
4958
5148
|
async providersGet(providerId, options) {
|
|
4959
5149
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
|
|
4960
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4961
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5150
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _310 => _310.serverIndex]), () => ( 0));
|
|
5151
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _311 => _311["UnboundApi.providersGet"], 'optionalAccess', _312 => _312[localVarOperationServerIndex], 'optionalAccess', _313 => _313.url]);
|
|
4962
5152
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4963
5153
|
},
|
|
4964
5154
|
/**
|
|
@@ -4969,8 +5159,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4969
5159
|
*/
|
|
4970
5160
|
async providersList(options) {
|
|
4971
5161
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
|
|
4972
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4973
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5162
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _314 => _314.serverIndex]), () => ( 0));
|
|
5163
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _315 => _315["UnboundApi.providersList"], 'optionalAccess', _316 => _316[localVarOperationServerIndex], 'optionalAccess', _317 => _317.url]);
|
|
4974
5164
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4975
5165
|
},
|
|
4976
5166
|
/**
|
|
@@ -4983,8 +5173,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4983
5173
|
*/
|
|
4984
5174
|
async providersUpdate(providerId, aPIProviderUpdate, options) {
|
|
4985
5175
|
const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, aPIProviderUpdate, options);
|
|
4986
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
4987
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5176
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _318 => _318.serverIndex]), () => ( 0));
|
|
5177
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _319 => _319["UnboundApi.providersUpdate"], 'optionalAccess', _320 => _320[localVarOperationServerIndex], 'optionalAccess', _321 => _321.url]);
|
|
4988
5178
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4989
5179
|
},
|
|
4990
5180
|
/**
|
|
@@ -4996,8 +5186,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4996
5186
|
*/
|
|
4997
5187
|
async reservationsGet(reservationId, options) {
|
|
4998
5188
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsGet(reservationId, options);
|
|
4999
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5000
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5189
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _322 => _322.serverIndex]), () => ( 0));
|
|
5190
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _323 => _323["UnboundApi.reservationsGet"], 'optionalAccess', _324 => _324[localVarOperationServerIndex], 'optionalAccess', _325 => _325.url]);
|
|
5001
5191
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5002
5192
|
},
|
|
5003
5193
|
/**
|
|
@@ -5015,8 +5205,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5015
5205
|
*/
|
|
5016
5206
|
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5017
5207
|
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',
|
|
5208
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _326 => _326.serverIndex]), () => ( 0));
|
|
5209
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _327 => _327["UnboundApi.reservationsList"], 'optionalAccess', _328 => _328[localVarOperationServerIndex], 'optionalAccess', _329 => _329.url]);
|
|
5020
5210
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5021
5211
|
},
|
|
5022
5212
|
/**
|
|
@@ -5028,8 +5218,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5028
5218
|
*/
|
|
5029
5219
|
async userDevicesCreate(aPIUserDeviceCreate, options) {
|
|
5030
5220
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
|
|
5031
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5032
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5221
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _330 => _330.serverIndex]), () => ( 0));
|
|
5222
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _331 => _331["UnboundApi.userDevicesCreate"], 'optionalAccess', _332 => _332[localVarOperationServerIndex], 'optionalAccess', _333 => _333.url]);
|
|
5033
5223
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5034
5224
|
},
|
|
5035
5225
|
/**
|
|
@@ -5041,8 +5231,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5041
5231
|
*/
|
|
5042
5232
|
async userDevicesDelete(userDeviceId, options) {
|
|
5043
5233
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesDelete(userDeviceId, options);
|
|
5044
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5045
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5234
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _334 => _334.serverIndex]), () => ( 0));
|
|
5235
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _335 => _335["UnboundApi.userDevicesDelete"], 'optionalAccess', _336 => _336[localVarOperationServerIndex], 'optionalAccess', _337 => _337.url]);
|
|
5046
5236
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5047
5237
|
},
|
|
5048
5238
|
/**
|
|
@@ -5054,8 +5244,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
5054
5244
|
*/
|
|
5055
5245
|
async webhook(body, options) {
|
|
5056
5246
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
|
|
5057
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
5058
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5247
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _338 => _338.serverIndex]), () => ( 0));
|
|
5248
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _339 => _339["UnboundApi.webhook"], 'optionalAccess', _340 => _340[localVarOperationServerIndex], 'optionalAccess', _341 => _341.url]);
|
|
5059
5249
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5060
5250
|
}
|
|
5061
5251
|
};
|
|
@@ -5206,6 +5396,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5206
5396
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5207
5397
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
5208
5398
|
},
|
|
5399
|
+
/**
|
|
5400
|
+
* Conversations Create
|
|
5401
|
+
* @summary Conversations Create
|
|
5402
|
+
* @param {string} inboxId
|
|
5403
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
5404
|
+
* @param {*} [options] Override http request option.
|
|
5405
|
+
* @throws {RequiredError}
|
|
5406
|
+
*/
|
|
5407
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
5408
|
+
return localVarFp.conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
5409
|
+
},
|
|
5209
5410
|
/**
|
|
5210
5411
|
* Conversations Get
|
|
5211
5412
|
* @summary Conversations Get
|
|
@@ -5687,6 +5888,18 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5687
5888
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5688
5889
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
5689
5890
|
}
|
|
5891
|
+
/**
|
|
5892
|
+
* Conversations Create
|
|
5893
|
+
* @summary Conversations Create
|
|
5894
|
+
* @param {string} inboxId
|
|
5895
|
+
* @param {APIConversationCreate} aPIConversationCreate
|
|
5896
|
+
* @param {*} [options] Override http request option.
|
|
5897
|
+
* @throws {RequiredError}
|
|
5898
|
+
* @memberof UnboundApi
|
|
5899
|
+
*/
|
|
5900
|
+
conversationsCreate(inboxId, aPIConversationCreate, options) {
|
|
5901
|
+
return UnboundApiFp(this.configuration).conversationsCreate(inboxId, aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5902
|
+
}
|
|
5690
5903
|
/**
|
|
5691
5904
|
* Conversations Get
|
|
5692
5905
|
* @summary Conversations Get
|
|
@@ -6109,8 +6322,8 @@ var UserDevicesApiFp = function(configuration) {
|
|
|
6109
6322
|
*/
|
|
6110
6323
|
async userDevicesCreate(aPIUserDeviceCreate, options) {
|
|
6111
6324
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
|
|
6112
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
6113
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
6325
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _342 => _342.serverIndex]), () => ( 0));
|
|
6326
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _343 => _343["UserDevicesApi.userDevicesCreate"], 'optionalAccess', _344 => _344[localVarOperationServerIndex], 'optionalAccess', _345 => _345.url]);
|
|
6114
6327
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6115
6328
|
},
|
|
6116
6329
|
/**
|
|
@@ -6122,8 +6335,8 @@ var UserDevicesApiFp = function(configuration) {
|
|
|
6122
6335
|
*/
|
|
6123
6336
|
async userDevicesDelete(userDeviceId, options) {
|
|
6124
6337
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesDelete(userDeviceId, options);
|
|
6125
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
6126
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
6338
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _346 => _346.serverIndex]), () => ( 0));
|
|
6339
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _347 => _347["UserDevicesApi.userDevicesDelete"], 'optionalAccess', _348 => _348[localVarOperationServerIndex], 'optionalAccess', _349 => _349.url]);
|
|
6127
6340
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6128
6341
|
}
|
|
6129
6342
|
};
|
|
@@ -6246,7 +6459,7 @@ var Configuration = class {
|
|
|
6246
6459
|
this.baseOptions = {
|
|
6247
6460
|
...param.baseOptions,
|
|
6248
6461
|
headers: {
|
|
6249
|
-
..._optionalChain([param, 'access',
|
|
6462
|
+
..._optionalChain([param, 'access', _350 => _350.baseOptions, 'optionalAccess', _351 => _351.headers])
|
|
6250
6463
|
}
|
|
6251
6464
|
};
|
|
6252
6465
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -6359,5 +6572,10 @@ var Configuration = class {
|
|
|
6359
6572
|
|
|
6360
6573
|
|
|
6361
6574
|
|
|
6362
|
-
|
|
6575
|
+
|
|
6576
|
+
|
|
6577
|
+
|
|
6578
|
+
|
|
6579
|
+
|
|
6580
|
+
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.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
6581
|
//# sourceMappingURL=index.js.map
|