@ember-home/unbound-ts-client 0.0.93 → 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 +383 -225
- package/dist/index.d.ts +383 -225
- package/dist/index.js +593 -374
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +475 -256
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
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,17 +233,22 @@ 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",
|
|
248
249
|
Ios: "IOS",
|
|
249
|
-
Macos: "MACOS"
|
|
250
|
+
Macos: "MACOS",
|
|
251
|
+
Web: "WEB"
|
|
250
252
|
};
|
|
251
253
|
var AccountsApiAxiosParamCreator = function(configuration) {
|
|
252
254
|
return {
|
|
@@ -1732,118 +1734,6 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1732
1734
|
};
|
|
1733
1735
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1734
1736
|
return {
|
|
1735
|
-
/**
|
|
1736
|
-
* Conversations Get
|
|
1737
|
-
* @summary Conversations Get
|
|
1738
|
-
* @param {string} conversationId
|
|
1739
|
-
* @param {*} [options] Override http request option.
|
|
1740
|
-
* @throws {RequiredError}
|
|
1741
|
-
*/
|
|
1742
|
-
conversationsGet: async (conversationId, options = {}) => {
|
|
1743
|
-
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
1744
|
-
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1745
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1746
|
-
let baseOptions;
|
|
1747
|
-
if (configuration) {
|
|
1748
|
-
baseOptions = configuration.baseOptions;
|
|
1749
|
-
}
|
|
1750
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1751
|
-
const localVarHeaderParameter = {};
|
|
1752
|
-
const localVarQueryParameter = {};
|
|
1753
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1754
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1755
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1756
|
-
return {
|
|
1757
|
-
url: toPathString(localVarUrlObj),
|
|
1758
|
-
options: localVarRequestOptions
|
|
1759
|
-
};
|
|
1760
|
-
},
|
|
1761
|
-
/**
|
|
1762
|
-
* List all conversations, must filter by contact_id
|
|
1763
|
-
* @summary Conversations List
|
|
1764
|
-
* @param {string | null} [searchString]
|
|
1765
|
-
* @param {string | null} [contactId]
|
|
1766
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
1767
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1768
|
-
* @param {number} [limit]
|
|
1769
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1770
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1771
|
-
* @param {string | null} [inboxId]
|
|
1772
|
-
* @param {*} [options] Override http request option.
|
|
1773
|
-
* @throws {RequiredError}
|
|
1774
|
-
*/
|
|
1775
|
-
conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
|
|
1776
|
-
const localVarPath = `/v1/conversations`;
|
|
1777
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1778
|
-
let baseOptions;
|
|
1779
|
-
if (configuration) {
|
|
1780
|
-
baseOptions = configuration.baseOptions;
|
|
1781
|
-
}
|
|
1782
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1783
|
-
const localVarHeaderParameter = {};
|
|
1784
|
-
const localVarQueryParameter = {};
|
|
1785
|
-
if (searchString !== void 0) {
|
|
1786
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
1787
|
-
}
|
|
1788
|
-
if (contactId !== void 0) {
|
|
1789
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
1790
|
-
}
|
|
1791
|
-
if (status) {
|
|
1792
|
-
localVarQueryParameter["status"] = status;
|
|
1793
|
-
}
|
|
1794
|
-
if (cursor !== void 0) {
|
|
1795
|
-
localVarQueryParameter["cursor"] = cursor;
|
|
1796
|
-
}
|
|
1797
|
-
if (limit !== void 0) {
|
|
1798
|
-
localVarQueryParameter["limit"] = limit;
|
|
1799
|
-
}
|
|
1800
|
-
if (pageDir !== void 0) {
|
|
1801
|
-
localVarQueryParameter["pageDir"] = pageDir;
|
|
1802
|
-
}
|
|
1803
|
-
if (sortOrder !== void 0) {
|
|
1804
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1805
|
-
}
|
|
1806
|
-
if (inboxId !== void 0) {
|
|
1807
|
-
localVarQueryParameter["inboxId"] = inboxId;
|
|
1808
|
-
}
|
|
1809
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1810
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1811
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1812
|
-
return {
|
|
1813
|
-
url: toPathString(localVarUrlObj),
|
|
1814
|
-
options: localVarRequestOptions
|
|
1815
|
-
};
|
|
1816
|
-
},
|
|
1817
|
-
/**
|
|
1818
|
-
* Conversations Update
|
|
1819
|
-
* @summary Conversations Update
|
|
1820
|
-
* @param {string} conversationId
|
|
1821
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1822
|
-
* @param {*} [options] Override http request option.
|
|
1823
|
-
* @throws {RequiredError}
|
|
1824
|
-
*/
|
|
1825
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
1826
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1827
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
1828
|
-
const localVarPath = `/v1/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1829
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1830
|
-
let baseOptions;
|
|
1831
|
-
if (configuration) {
|
|
1832
|
-
baseOptions = configuration.baseOptions;
|
|
1833
|
-
}
|
|
1834
|
-
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1835
|
-
const localVarHeaderParameter = {};
|
|
1836
|
-
const localVarQueryParameter = {};
|
|
1837
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1838
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1839
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1840
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1841
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
1842
|
-
return {
|
|
1843
|
-
url: toPathString(localVarUrlObj),
|
|
1844
|
-
options: localVarRequestOptions
|
|
1845
|
-
};
|
|
1846
|
-
},
|
|
1847
1737
|
/**
|
|
1848
1738
|
* Messages Create
|
|
1849
1739
|
* @summary Messages Create
|
|
@@ -1973,53 +1863,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1973
1863
|
var ConversationsApiFp = function(configuration) {
|
|
1974
1864
|
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1975
1865
|
return {
|
|
1976
|
-
/**
|
|
1977
|
-
* Conversations Get
|
|
1978
|
-
* @summary Conversations Get
|
|
1979
|
-
* @param {string} conversationId
|
|
1980
|
-
* @param {*} [options] Override http request option.
|
|
1981
|
-
* @throws {RequiredError}
|
|
1982
|
-
*/
|
|
1983
|
-
async conversationsGet(conversationId, options) {
|
|
1984
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
1985
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1986
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1987
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1988
|
-
},
|
|
1989
|
-
/**
|
|
1990
|
-
* List all conversations, must filter by contact_id
|
|
1991
|
-
* @summary Conversations List
|
|
1992
|
-
* @param {string | null} [searchString]
|
|
1993
|
-
* @param {string | null} [contactId]
|
|
1994
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
1995
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1996
|
-
* @param {number} [limit]
|
|
1997
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1998
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1999
|
-
* @param {string | null} [inboxId]
|
|
2000
|
-
* @param {*} [options] Override http request option.
|
|
2001
|
-
* @throws {RequiredError}
|
|
2002
|
-
*/
|
|
2003
|
-
async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2004
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
|
|
2005
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2006
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
2007
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2008
|
-
},
|
|
2009
|
-
/**
|
|
2010
|
-
* Conversations Update
|
|
2011
|
-
* @summary Conversations Update
|
|
2012
|
-
* @param {string} conversationId
|
|
2013
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2014
|
-
* @param {*} [options] Override http request option.
|
|
2015
|
-
* @throws {RequiredError}
|
|
2016
|
-
*/
|
|
2017
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2018
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
2019
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2020
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2021
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2022
|
-
},
|
|
2023
1866
|
/**
|
|
2024
1867
|
* Messages Create
|
|
2025
1868
|
* @summary Messages Create
|
|
@@ -2075,44 +1918,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
2075
1918
|
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
2076
1919
|
const localVarFp = ConversationsApiFp(configuration);
|
|
2077
1920
|
return {
|
|
2078
|
-
/**
|
|
2079
|
-
* Conversations Get
|
|
2080
|
-
* @summary Conversations Get
|
|
2081
|
-
* @param {string} conversationId
|
|
2082
|
-
* @param {*} [options] Override http request option.
|
|
2083
|
-
* @throws {RequiredError}
|
|
2084
|
-
*/
|
|
2085
|
-
conversationsGet(conversationId, options) {
|
|
2086
|
-
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2087
|
-
},
|
|
2088
|
-
/**
|
|
2089
|
-
* List all conversations, must filter by contact_id
|
|
2090
|
-
* @summary Conversations List
|
|
2091
|
-
* @param {string | null} [searchString]
|
|
2092
|
-
* @param {string | null} [contactId]
|
|
2093
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2094
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2095
|
-
* @param {number} [limit]
|
|
2096
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2097
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2098
|
-
* @param {string | null} [inboxId]
|
|
2099
|
-
* @param {*} [options] Override http request option.
|
|
2100
|
-
* @throws {RequiredError}
|
|
2101
|
-
*/
|
|
2102
|
-
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2103
|
-
return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
|
|
2104
|
-
},
|
|
2105
|
-
/**
|
|
2106
|
-
* Conversations Update
|
|
2107
|
-
* @summary Conversations Update
|
|
2108
|
-
* @param {string} conversationId
|
|
2109
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2110
|
-
* @param {*} [options] Override http request option.
|
|
2111
|
-
* @throws {RequiredError}
|
|
2112
|
-
*/
|
|
2113
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2114
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2115
|
-
},
|
|
2116
1921
|
/**
|
|
2117
1922
|
* Messages Create
|
|
2118
1923
|
* @summary Messages Create
|
|
@@ -2157,47 +1962,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2157
1962
|
};
|
|
2158
1963
|
};
|
|
2159
1964
|
var ConversationsApi = class extends BaseAPI {
|
|
2160
|
-
/**
|
|
2161
|
-
* Conversations Get
|
|
2162
|
-
* @summary Conversations Get
|
|
2163
|
-
* @param {string} conversationId
|
|
2164
|
-
* @param {*} [options] Override http request option.
|
|
2165
|
-
* @throws {RequiredError}
|
|
2166
|
-
* @memberof ConversationsApi
|
|
2167
|
-
*/
|
|
2168
|
-
conversationsGet(conversationId, options) {
|
|
2169
|
-
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2170
|
-
}
|
|
2171
|
-
/**
|
|
2172
|
-
* List all conversations, must filter by contact_id
|
|
2173
|
-
* @summary Conversations List
|
|
2174
|
-
* @param {string | null} [searchString]
|
|
2175
|
-
* @param {string | null} [contactId]
|
|
2176
|
-
* @param {Array<ConversationStatus> | null} [status] Filter conversations by status
|
|
2177
|
-
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2178
|
-
* @param {number} [limit]
|
|
2179
|
-
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2180
|
-
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2181
|
-
* @param {string | null} [inboxId]
|
|
2182
|
-
* @param {*} [options] Override http request option.
|
|
2183
|
-
* @throws {RequiredError}
|
|
2184
|
-
* @memberof ConversationsApi
|
|
2185
|
-
*/
|
|
2186
|
-
conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
|
|
2187
|
-
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
|
|
2188
|
-
}
|
|
2189
|
-
/**
|
|
2190
|
-
* Conversations Update
|
|
2191
|
-
* @summary Conversations Update
|
|
2192
|
-
* @param {string} conversationId
|
|
2193
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2194
|
-
* @param {*} [options] Override http request option.
|
|
2195
|
-
* @throws {RequiredError}
|
|
2196
|
-
* @memberof ConversationsApi
|
|
2197
|
-
*/
|
|
2198
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2199
|
-
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2200
|
-
}
|
|
2201
1965
|
/**
|
|
2202
1966
|
* Messages Create
|
|
2203
1967
|
* @summary Messages Create
|
|
@@ -2254,7 +2018,7 @@ var HostawayApiAxiosParamCreator = function(configuration) {
|
|
|
2254
2018
|
*/
|
|
2255
2019
|
webhook: async (body, options = {}) => {
|
|
2256
2020
|
assertParamExists("webhook", "body", body);
|
|
2257
|
-
const localVarPath = `/
|
|
2021
|
+
const localVarPath = `/hostaway-unified-webhooks`;
|
|
2258
2022
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2259
2023
|
let baseOptions;
|
|
2260
2024
|
if (configuration) {
|
|
@@ -2324,6 +2088,148 @@ var HostawayApi = class extends BaseAPI {
|
|
|
2324
2088
|
};
|
|
2325
2089
|
var InboxesApiAxiosParamCreator = function(configuration) {
|
|
2326
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
|
+
},
|
|
2327
2233
|
/**
|
|
2328
2234
|
* Inboxes List
|
|
2329
2235
|
* @summary Inboxes List
|
|
@@ -2353,6 +2259,67 @@ var InboxesApiAxiosParamCreator = function(configuration) {
|
|
|
2353
2259
|
var InboxesApiFp = function(configuration) {
|
|
2354
2260
|
const localVarAxiosParamCreator = InboxesApiAxiosParamCreator(configuration);
|
|
2355
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 = configuration?.serverIndex ?? 0;
|
|
2273
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
2274
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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 = configuration?.serverIndex ?? 0;
|
|
2286
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
2287
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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 = configuration?.serverIndex ?? 0;
|
|
2306
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
2307
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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 = configuration?.serverIndex ?? 0;
|
|
2320
|
+
const localVarOperationServerBasePath = operationServerMap["InboxesApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2321
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2322
|
+
},
|
|
2356
2323
|
/**
|
|
2357
2324
|
* Inboxes List
|
|
2358
2325
|
* @summary Inboxes List
|
|
@@ -2370,6 +2337,55 @@ var InboxesApiFp = function(configuration) {
|
|
|
2370
2337
|
var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
2371
2338
|
const localVarFp = InboxesApiFp(configuration);
|
|
2372
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
|
+
},
|
|
2373
2389
|
/**
|
|
2374
2390
|
* Inboxes List
|
|
2375
2391
|
* @summary Inboxes List
|
|
@@ -2382,6 +2398,59 @@ var InboxesApiFactory = function(configuration, basePath, axios) {
|
|
|
2382
2398
|
};
|
|
2383
2399
|
};
|
|
2384
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
|
+
}
|
|
2385
2454
|
/**
|
|
2386
2455
|
* Inboxes List
|
|
2387
2456
|
* @summary Inboxes List
|
|
@@ -3162,6 +3231,84 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3162
3231
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3163
3232
|
}
|
|
3164
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 = configuration?.serverIndex ?? 0;
|
|
3279
|
+
const localVarOperationServerBasePath = operationServerMap["TelnyxApi.telnyxWebhookTelnyxWebhooksPost"]?.[localVarOperationServerIndex]?.url;
|
|
3280
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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
|
+
};
|
|
3165
3312
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3166
3313
|
return {
|
|
3167
3314
|
/**
|
|
@@ -3554,6 +3701,36 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3554
3701
|
options: localVarRequestOptions
|
|
3555
3702
|
};
|
|
3556
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
|
+
},
|
|
3557
3734
|
/**
|
|
3558
3735
|
* Conversations Get
|
|
3559
3736
|
* @summary Conversations Get
|
|
@@ -4441,7 +4618,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
4441
4618
|
*/
|
|
4442
4619
|
webhook: async (body, options = {}) => {
|
|
4443
4620
|
assertParamExists("webhook", "body", body);
|
|
4444
|
-
const localVarPath = `/
|
|
4621
|
+
const localVarPath = `/hostaway-unified-webhooks`;
|
|
4445
4622
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4446
4623
|
let baseOptions;
|
|
4447
4624
|
if (configuration) {
|
|
@@ -4648,6 +4825,20 @@ var UnboundApiFp = function(configuration) {
|
|
|
4648
4825
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
4649
4826
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4650
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 = configuration?.serverIndex ?? 0;
|
|
4839
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4840
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4841
|
+
},
|
|
4651
4842
|
/**
|
|
4652
4843
|
* Conversations Get
|
|
4653
4844
|
* @summary Conversations Get
|
|
@@ -5205,6 +5396,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5205
5396
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5206
5397
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
5207
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
|
+
},
|
|
5208
5410
|
/**
|
|
5209
5411
|
* Conversations Get
|
|
5210
5412
|
* @summary Conversations Get
|
|
@@ -5686,6 +5888,18 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5686
5888
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5687
5889
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
5688
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
|
+
}
|
|
5689
5903
|
/**
|
|
5690
5904
|
* Conversations Get
|
|
5691
5905
|
* @summary Conversations Get
|
|
@@ -6324,7 +6538,6 @@ export {
|
|
|
6324
6538
|
ProvidersApiAxiosParamCreator,
|
|
6325
6539
|
ProvidersApiFactory,
|
|
6326
6540
|
ProvidersApiFp,
|
|
6327
|
-
ReasonType,
|
|
6328
6541
|
RentalProviderMessageApiMessageTypeEnum,
|
|
6329
6542
|
RentalProviderTypes,
|
|
6330
6543
|
ReservationChannelTypes,
|
|
@@ -6340,15 +6553,21 @@ export {
|
|
|
6340
6553
|
SortOrder,
|
|
6341
6554
|
SrcResourceModelsContactsModelContactsModelContactSortBy,
|
|
6342
6555
|
SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunicationType,
|
|
6343
|
-
|
|
6556
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum,
|
|
6344
6557
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum,
|
|
6345
6558
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum,
|
|
6559
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum,
|
|
6346
6560
|
SrcResourceModelsListingsModelListingBaseSortBy,
|
|
6347
6561
|
SrcResourceModelsMessagesModelMessagesHelperModelsProviderCommunicationType,
|
|
6348
6562
|
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
6349
6563
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
6350
6564
|
StaffApiParticipantTypeEnum,
|
|
6565
|
+
SuggestionRejectionReasonType,
|
|
6351
6566
|
SuggestionStatus,
|
|
6567
|
+
TelnyxApi,
|
|
6568
|
+
TelnyxApiAxiosParamCreator,
|
|
6569
|
+
TelnyxApiFactory,
|
|
6570
|
+
TelnyxApiFp,
|
|
6352
6571
|
UnboundApi,
|
|
6353
6572
|
UnboundApiAxiosParamCreator,
|
|
6354
6573
|
UnboundApiFactory,
|