@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.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,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 = configuration?.serverIndex ?? 0;
|
|
1987
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1988
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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 = configuration?.serverIndex ?? 0;
|
|
2007
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
2008
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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 = configuration?.serverIndex ?? 0;
|
|
2021
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2022
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2023
|
-
},
|
|
2024
1866
|
/**
|
|
2025
1867
|
* Messages Create
|
|
2026
1868
|
* @summary Messages Create
|
|
@@ -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
|
|
@@ -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 = 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
|
+
},
|
|
2357
2323
|
/**
|
|
2358
2324
|
* Inboxes List
|
|
2359
2325
|
* @summary Inboxes List
|
|
@@ -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
|
|
@@ -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 = 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
|
+
};
|
|
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
|
|
@@ -4649,6 +4825,20 @@ var UnboundApiFp = function(configuration) {
|
|
|
4649
4825
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
4650
4826
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4651
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
|
+
},
|
|
4652
4842
|
/**
|
|
4653
4843
|
* Conversations Get
|
|
4654
4844
|
* @summary Conversations Get
|
|
@@ -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
|
|
@@ -6325,7 +6538,6 @@ export {
|
|
|
6325
6538
|
ProvidersApiAxiosParamCreator,
|
|
6326
6539
|
ProvidersApiFactory,
|
|
6327
6540
|
ProvidersApiFp,
|
|
6328
|
-
ReasonType,
|
|
6329
6541
|
RentalProviderMessageApiMessageTypeEnum,
|
|
6330
6542
|
RentalProviderTypes,
|
|
6331
6543
|
ReservationChannelTypes,
|
|
@@ -6341,15 +6553,21 @@ export {
|
|
|
6341
6553
|
SortOrder,
|
|
6342
6554
|
SrcResourceModelsContactsModelContactsModelContactSortBy,
|
|
6343
6555
|
SrcResourceModelsConversationsModelConversationsHelperModelsProviderCommunicationType,
|
|
6344
|
-
|
|
6556
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum,
|
|
6345
6557
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum,
|
|
6346
6558
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum,
|
|
6559
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum,
|
|
6347
6560
|
SrcResourceModelsListingsModelListingBaseSortBy,
|
|
6348
6561
|
SrcResourceModelsMessagesModelMessagesHelperModelsProviderCommunicationType,
|
|
6349
6562
|
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
6350
6563
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
6351
6564
|
StaffApiParticipantTypeEnum,
|
|
6565
|
+
SuggestionRejectionReasonType,
|
|
6352
6566
|
SuggestionStatus,
|
|
6567
|
+
TelnyxApi,
|
|
6568
|
+
TelnyxApiAxiosParamCreator,
|
|
6569
|
+
TelnyxApiFactory,
|
|
6570
|
+
TelnyxApiFp,
|
|
6353
6571
|
UnboundApi,
|
|
6354
6572
|
UnboundApiAxiosParamCreator,
|
|
6355
6573
|
UnboundApiFactory,
|