@ember-home/unbound-ts-client 0.0.42 → 0.0.44
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 +261 -403
- package/dist/index.d.ts +261 -403
- package/dist/index.js +386 -402
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +314 -330
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -85,6 +85,9 @@ var ConversationStatus = {
|
|
|
85
85
|
Open: "OPEN",
|
|
86
86
|
Closed: "CLOSED"
|
|
87
87
|
};
|
|
88
|
+
var EmailConversationDataApiConversationTypeEnum = {
|
|
89
|
+
Email: "EMAIL"
|
|
90
|
+
};
|
|
88
91
|
var ExternalStaffApiStaffTypeEnum = {
|
|
89
92
|
ExternalStaff: "EXTERNAL_STAFF"
|
|
90
93
|
};
|
|
@@ -166,32 +169,20 @@ var SrcResourceModelsContactsModelContactsModelContactSortBy = {
|
|
|
166
169
|
var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
|
|
167
170
|
UpdatedAt: "updated_at"
|
|
168
171
|
};
|
|
169
|
-
var
|
|
170
|
-
Twilio: "TWILIO"
|
|
171
|
-
};
|
|
172
|
-
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
|
|
173
|
-
Email: "EMAIL"
|
|
174
|
-
};
|
|
175
|
-
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = {
|
|
172
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1MessageTypeEnum = {
|
|
176
173
|
RentalProvider: "RENTAL_PROVIDER"
|
|
177
174
|
};
|
|
178
|
-
var
|
|
179
|
-
Twilio: "TWILIO"
|
|
180
|
-
};
|
|
181
|
-
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi5MessageTypeEnum = {
|
|
182
|
-
Email: "EMAIL"
|
|
183
|
-
};
|
|
184
|
-
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = {
|
|
175
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum = {
|
|
185
176
|
Twilio: "TWILIO"
|
|
186
177
|
};
|
|
187
|
-
var
|
|
178
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = {
|
|
188
179
|
Email: "EMAIL"
|
|
189
180
|
};
|
|
190
181
|
var SrcResourceModelsListingsModelListingBaseSortBy = {
|
|
191
182
|
Title: "title"
|
|
192
183
|
};
|
|
193
184
|
var SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy = {
|
|
194
|
-
|
|
185
|
+
SentAt: "sent_at"
|
|
195
186
|
};
|
|
196
187
|
var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
197
188
|
ArrivalAtPropertyTz: "arrival_at_property_tz"
|
|
@@ -1624,34 +1615,6 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1624
1615
|
};
|
|
1625
1616
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1626
1617
|
return {
|
|
1627
|
-
/**
|
|
1628
|
-
* Conversations Create
|
|
1629
|
-
* @summary Conversations Create
|
|
1630
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
1631
|
-
* @param {*} [options] Override http request option.
|
|
1632
|
-
* @throws {RequiredError}
|
|
1633
|
-
*/
|
|
1634
|
-
conversationsCreate: async (aPIConversationCreate, options = {}) => {
|
|
1635
|
-
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
1636
|
-
const localVarPath = `/conversations`;
|
|
1637
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1638
|
-
let baseOptions;
|
|
1639
|
-
if (configuration) {
|
|
1640
|
-
baseOptions = configuration.baseOptions;
|
|
1641
|
-
}
|
|
1642
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1643
|
-
const localVarHeaderParameter = {};
|
|
1644
|
-
const localVarQueryParameter = {};
|
|
1645
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1646
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1647
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1648
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1649
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
1650
|
-
return {
|
|
1651
|
-
url: toPathString(localVarUrlObj),
|
|
1652
|
-
options: localVarRequestOptions
|
|
1653
|
-
};
|
|
1654
|
-
},
|
|
1655
1618
|
/**
|
|
1656
1619
|
* Conversations Get
|
|
1657
1620
|
* @summary Conversations Get
|
|
@@ -1679,7 +1642,7 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1679
1642
|
};
|
|
1680
1643
|
},
|
|
1681
1644
|
/**
|
|
1682
|
-
* List all conversations,
|
|
1645
|
+
* List all conversations, must filter by contact_id
|
|
1683
1646
|
* @summary Conversations List
|
|
1684
1647
|
* @param {string | null} [searchString]
|
|
1685
1648
|
* @param {string | null} [contactId]
|
|
@@ -1730,36 +1693,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1730
1693
|
options: localVarRequestOptions
|
|
1731
1694
|
};
|
|
1732
1695
|
},
|
|
1733
|
-
/**
|
|
1734
|
-
* Conversations Update
|
|
1735
|
-
* @summary Conversations Update
|
|
1736
|
-
* @param {string} conversationId
|
|
1737
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1738
|
-
* @param {*} [options] Override http request option.
|
|
1739
|
-
* @throws {RequiredError}
|
|
1740
|
-
*/
|
|
1741
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
1742
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1743
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
1744
|
-
const localVarPath = `/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: "PATCH", ...baseOptions, ...options };
|
|
1751
|
-
const localVarHeaderParameter = {};
|
|
1752
|
-
const localVarQueryParameter = {};
|
|
1753
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1754
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1755
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1756
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1757
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
1758
|
-
return {
|
|
1759
|
-
url: toPathString(localVarUrlObj),
|
|
1760
|
-
options: localVarRequestOptions
|
|
1761
|
-
};
|
|
1762
|
-
},
|
|
1763
1696
|
/**
|
|
1764
1697
|
* Messages Create
|
|
1765
1698
|
* @summary Messages Create
|
|
@@ -1819,9 +1752,8 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1819
1752
|
/**
|
|
1820
1753
|
* Messages List
|
|
1821
1754
|
* @summary Messages List
|
|
1755
|
+
* @param {string} [conversationId]
|
|
1822
1756
|
* @param {string | null} [searchString]
|
|
1823
|
-
* @param {string | null} [contactId]
|
|
1824
|
-
* @param {string | null} [conversationId]
|
|
1825
1757
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1826
1758
|
* @param {number} [limit]
|
|
1827
1759
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -1830,7 +1762,7 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1830
1762
|
* @param {*} [options] Override http request option.
|
|
1831
1763
|
* @throws {RequiredError}
|
|
1832
1764
|
*/
|
|
1833
|
-
messagesList: async (
|
|
1765
|
+
messagesList: async (conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
1834
1766
|
const localVarPath = `/messages`;
|
|
1835
1767
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1836
1768
|
let baseOptions;
|
|
@@ -1840,15 +1772,12 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1840
1772
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1841
1773
|
const localVarHeaderParameter = {};
|
|
1842
1774
|
const localVarQueryParameter = {};
|
|
1843
|
-
if (searchString !== void 0) {
|
|
1844
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
1845
|
-
}
|
|
1846
|
-
if (contactId !== void 0) {
|
|
1847
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
1848
|
-
}
|
|
1849
1775
|
if (conversationId !== void 0) {
|
|
1850
1776
|
localVarQueryParameter["conversationId"] = conversationId;
|
|
1851
1777
|
}
|
|
1778
|
+
if (searchString !== void 0) {
|
|
1779
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
1780
|
+
}
|
|
1852
1781
|
if (cursor !== void 0) {
|
|
1853
1782
|
localVarQueryParameter["cursor"] = cursor;
|
|
1854
1783
|
}
|
|
@@ -1877,19 +1806,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1877
1806
|
var ConversationsApiFp = function(configuration) {
|
|
1878
1807
|
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1879
1808
|
return {
|
|
1880
|
-
/**
|
|
1881
|
-
* Conversations Create
|
|
1882
|
-
* @summary Conversations Create
|
|
1883
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
1884
|
-
* @param {*} [options] Override http request option.
|
|
1885
|
-
* @throws {RequiredError}
|
|
1886
|
-
*/
|
|
1887
|
-
async conversationsCreate(aPIConversationCreate, options) {
|
|
1888
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(aPIConversationCreate, options);
|
|
1889
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1890
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1891
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1892
|
-
},
|
|
1893
1809
|
/**
|
|
1894
1810
|
* Conversations Get
|
|
1895
1811
|
* @summary Conversations Get
|
|
@@ -1904,7 +1820,7 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1904
1820
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1905
1821
|
},
|
|
1906
1822
|
/**
|
|
1907
|
-
* List all conversations,
|
|
1823
|
+
* List all conversations, must filter by contact_id
|
|
1908
1824
|
* @summary Conversations List
|
|
1909
1825
|
* @param {string | null} [searchString]
|
|
1910
1826
|
* @param {string | null} [contactId]
|
|
@@ -1922,20 +1838,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1922
1838
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
1923
1839
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1924
1840
|
},
|
|
1925
|
-
/**
|
|
1926
|
-
* Conversations Update
|
|
1927
|
-
* @summary Conversations Update
|
|
1928
|
-
* @param {string} conversationId
|
|
1929
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1930
|
-
* @param {*} [options] Override http request option.
|
|
1931
|
-
* @throws {RequiredError}
|
|
1932
|
-
*/
|
|
1933
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
1934
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
1935
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1936
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1937
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1938
|
-
},
|
|
1939
1841
|
/**
|
|
1940
1842
|
* Messages Create
|
|
1941
1843
|
* @summary Messages Create
|
|
@@ -1966,9 +1868,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1966
1868
|
/**
|
|
1967
1869
|
* Messages List
|
|
1968
1870
|
* @summary Messages List
|
|
1871
|
+
* @param {string} [conversationId]
|
|
1969
1872
|
* @param {string | null} [searchString]
|
|
1970
|
-
* @param {string | null} [contactId]
|
|
1971
|
-
* @param {string | null} [conversationId]
|
|
1972
1873
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1973
1874
|
* @param {number} [limit]
|
|
1974
1875
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -1977,8 +1878,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1977
1878
|
* @param {*} [options] Override http request option.
|
|
1978
1879
|
* @throws {RequiredError}
|
|
1979
1880
|
*/
|
|
1980
|
-
async messagesList(
|
|
1981
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(
|
|
1881
|
+
async messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
1982
1883
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1983
1884
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
1984
1885
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1988,16 +1889,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1988
1889
|
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
1989
1890
|
const localVarFp = ConversationsApiFp(configuration);
|
|
1990
1891
|
return {
|
|
1991
|
-
/**
|
|
1992
|
-
* Conversations Create
|
|
1993
|
-
* @summary Conversations Create
|
|
1994
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
1995
|
-
* @param {*} [options] Override http request option.
|
|
1996
|
-
* @throws {RequiredError}
|
|
1997
|
-
*/
|
|
1998
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
1999
|
-
return localVarFp.conversationsCreate(aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
2000
|
-
},
|
|
2001
1892
|
/**
|
|
2002
1893
|
* Conversations Get
|
|
2003
1894
|
* @summary Conversations Get
|
|
@@ -2009,7 +1900,7 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2009
1900
|
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
2010
1901
|
},
|
|
2011
1902
|
/**
|
|
2012
|
-
* List all conversations,
|
|
1903
|
+
* List all conversations, must filter by contact_id
|
|
2013
1904
|
* @summary Conversations List
|
|
2014
1905
|
* @param {string | null} [searchString]
|
|
2015
1906
|
* @param {string | null} [contactId]
|
|
@@ -2024,17 +1915,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2024
1915
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2025
1916
|
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2026
1917
|
},
|
|
2027
|
-
/**
|
|
2028
|
-
* Conversations Update
|
|
2029
|
-
* @summary Conversations Update
|
|
2030
|
-
* @param {string} conversationId
|
|
2031
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2032
|
-
* @param {*} [options] Override http request option.
|
|
2033
|
-
* @throws {RequiredError}
|
|
2034
|
-
*/
|
|
2035
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2036
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2037
|
-
},
|
|
2038
1918
|
/**
|
|
2039
1919
|
* Messages Create
|
|
2040
1920
|
* @summary Messages Create
|
|
@@ -2059,9 +1939,8 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2059
1939
|
/**
|
|
2060
1940
|
* Messages List
|
|
2061
1941
|
* @summary Messages List
|
|
1942
|
+
* @param {string} [conversationId]
|
|
2062
1943
|
* @param {string | null} [searchString]
|
|
2063
|
-
* @param {string | null} [contactId]
|
|
2064
|
-
* @param {string | null} [conversationId]
|
|
2065
1944
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2066
1945
|
* @param {number} [limit]
|
|
2067
1946
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -2070,23 +1949,12 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2070
1949
|
* @param {*} [options] Override http request option.
|
|
2071
1950
|
* @throws {RequiredError}
|
|
2072
1951
|
*/
|
|
2073
|
-
messagesList(
|
|
2074
|
-
return localVarFp.messagesList(
|
|
1952
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1953
|
+
return localVarFp.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2075
1954
|
}
|
|
2076
1955
|
};
|
|
2077
1956
|
};
|
|
2078
1957
|
var ConversationsApi = class extends BaseAPI {
|
|
2079
|
-
/**
|
|
2080
|
-
* Conversations Create
|
|
2081
|
-
* @summary Conversations Create
|
|
2082
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
2083
|
-
* @param {*} [options] Override http request option.
|
|
2084
|
-
* @throws {RequiredError}
|
|
2085
|
-
* @memberof ConversationsApi
|
|
2086
|
-
*/
|
|
2087
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
2088
|
-
return ConversationsApiFp(this.configuration).conversationsCreate(aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2089
|
-
}
|
|
2090
1958
|
/**
|
|
2091
1959
|
* Conversations Get
|
|
2092
1960
|
* @summary Conversations Get
|
|
@@ -2099,7 +1967,7 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2099
1967
|
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2100
1968
|
}
|
|
2101
1969
|
/**
|
|
2102
|
-
* List all conversations,
|
|
1970
|
+
* List all conversations, must filter by contact_id
|
|
2103
1971
|
* @summary Conversations List
|
|
2104
1972
|
* @param {string | null} [searchString]
|
|
2105
1973
|
* @param {string | null} [contactId]
|
|
@@ -2115,18 +1983,6 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2115
1983
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2116
1984
|
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2117
1985
|
}
|
|
2118
|
-
/**
|
|
2119
|
-
* Conversations Update
|
|
2120
|
-
* @summary Conversations Update
|
|
2121
|
-
* @param {string} conversationId
|
|
2122
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2123
|
-
* @param {*} [options] Override http request option.
|
|
2124
|
-
* @throws {RequiredError}
|
|
2125
|
-
* @memberof ConversationsApi
|
|
2126
|
-
*/
|
|
2127
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2128
|
-
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2129
|
-
}
|
|
2130
1986
|
/**
|
|
2131
1987
|
* Messages Create
|
|
2132
1988
|
* @summary Messages Create
|
|
@@ -2153,9 +2009,8 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2153
2009
|
/**
|
|
2154
2010
|
* Messages List
|
|
2155
2011
|
* @summary Messages List
|
|
2012
|
+
* @param {string} [conversationId]
|
|
2156
2013
|
* @param {string | null} [searchString]
|
|
2157
|
-
* @param {string | null} [contactId]
|
|
2158
|
-
* @param {string | null} [conversationId]
|
|
2159
2014
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2160
2015
|
* @param {number} [limit]
|
|
2161
2016
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -2165,8 +2020,8 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2165
2020
|
* @throws {RequiredError}
|
|
2166
2021
|
* @memberof ConversationsApi
|
|
2167
2022
|
*/
|
|
2168
|
-
messagesList(
|
|
2169
|
-
return ConversationsApiFp(this.configuration).messagesList(
|
|
2023
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2024
|
+
return ConversationsApiFp(this.configuration).messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2170
2025
|
}
|
|
2171
2026
|
};
|
|
2172
2027
|
var HostawayApiAxiosParamCreator = function(configuration) {
|
|
@@ -3017,6 +2872,146 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
3017
2872
|
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3018
2873
|
}
|
|
3019
2874
|
};
|
|
2875
|
+
var SuggestedRepliesApiAxiosParamCreator = function(configuration) {
|
|
2876
|
+
return {
|
|
2877
|
+
/**
|
|
2878
|
+
* SuggestedReplies Create
|
|
2879
|
+
* @summary SuggestedReplies Create
|
|
2880
|
+
* @param {object} body
|
|
2881
|
+
* @param {*} [options] Override http request option.
|
|
2882
|
+
* @throws {RequiredError}
|
|
2883
|
+
*/
|
|
2884
|
+
suggestedRepliesCreate: async (body, options = {}) => {
|
|
2885
|
+
assertParamExists("suggestedRepliesCreate", "body", body);
|
|
2886
|
+
const localVarPath = `/suggestedReplies`;
|
|
2887
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2888
|
+
let baseOptions;
|
|
2889
|
+
if (configuration) {
|
|
2890
|
+
baseOptions = configuration.baseOptions;
|
|
2891
|
+
}
|
|
2892
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2893
|
+
const localVarHeaderParameter = {};
|
|
2894
|
+
const localVarQueryParameter = {};
|
|
2895
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2896
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2898
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2899
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
2900
|
+
return {
|
|
2901
|
+
url: toPathString(localVarUrlObj),
|
|
2902
|
+
options: localVarRequestOptions
|
|
2903
|
+
};
|
|
2904
|
+
},
|
|
2905
|
+
/**
|
|
2906
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
2907
|
+
* @summary SuggestedReplies List
|
|
2908
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
2909
|
+
* @param {*} [options] Override http request option.
|
|
2910
|
+
* @throws {RequiredError}
|
|
2911
|
+
*/
|
|
2912
|
+
suggestedRepliesList: async (conversationId, options = {}) => {
|
|
2913
|
+
const localVarPath = `/suggestedReplies`;
|
|
2914
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2915
|
+
let baseOptions;
|
|
2916
|
+
if (configuration) {
|
|
2917
|
+
baseOptions = configuration.baseOptions;
|
|
2918
|
+
}
|
|
2919
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2920
|
+
const localVarHeaderParameter = {};
|
|
2921
|
+
const localVarQueryParameter = {};
|
|
2922
|
+
if (conversationId !== void 0) {
|
|
2923
|
+
localVarQueryParameter["conversationId"] = conversationId;
|
|
2924
|
+
}
|
|
2925
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2926
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2927
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2928
|
+
return {
|
|
2929
|
+
url: toPathString(localVarUrlObj),
|
|
2930
|
+
options: localVarRequestOptions
|
|
2931
|
+
};
|
|
2932
|
+
}
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2935
|
+
var SuggestedRepliesApiFp = function(configuration) {
|
|
2936
|
+
const localVarAxiosParamCreator = SuggestedRepliesApiAxiosParamCreator(configuration);
|
|
2937
|
+
return {
|
|
2938
|
+
/**
|
|
2939
|
+
* SuggestedReplies Create
|
|
2940
|
+
* @summary SuggestedReplies Create
|
|
2941
|
+
* @param {object} body
|
|
2942
|
+
* @param {*} [options] Override http request option.
|
|
2943
|
+
* @throws {RequiredError}
|
|
2944
|
+
*/
|
|
2945
|
+
async suggestedRepliesCreate(body, options) {
|
|
2946
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesCreate(body, options);
|
|
2947
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2948
|
+
const localVarOperationServerBasePath = operationServerMap["SuggestedRepliesApi.suggestedRepliesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
2949
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2950
|
+
},
|
|
2951
|
+
/**
|
|
2952
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
2953
|
+
* @summary SuggestedReplies List
|
|
2954
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
2955
|
+
* @param {*} [options] Override http request option.
|
|
2956
|
+
* @throws {RequiredError}
|
|
2957
|
+
*/
|
|
2958
|
+
async suggestedRepliesList(conversationId, options) {
|
|
2959
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesList(conversationId, options);
|
|
2960
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2961
|
+
const localVarOperationServerBasePath = operationServerMap["SuggestedRepliesApi.suggestedRepliesList"]?.[localVarOperationServerIndex]?.url;
|
|
2962
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2963
|
+
}
|
|
2964
|
+
};
|
|
2965
|
+
};
|
|
2966
|
+
var SuggestedRepliesApiFactory = function(configuration, basePath, axios) {
|
|
2967
|
+
const localVarFp = SuggestedRepliesApiFp(configuration);
|
|
2968
|
+
return {
|
|
2969
|
+
/**
|
|
2970
|
+
* SuggestedReplies Create
|
|
2971
|
+
* @summary SuggestedReplies Create
|
|
2972
|
+
* @param {object} body
|
|
2973
|
+
* @param {*} [options] Override http request option.
|
|
2974
|
+
* @throws {RequiredError}
|
|
2975
|
+
*/
|
|
2976
|
+
suggestedRepliesCreate(body, options) {
|
|
2977
|
+
return localVarFp.suggestedRepliesCreate(body, options).then((request) => request(axios, basePath));
|
|
2978
|
+
},
|
|
2979
|
+
/**
|
|
2980
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
2981
|
+
* @summary SuggestedReplies List
|
|
2982
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
2983
|
+
* @param {*} [options] Override http request option.
|
|
2984
|
+
* @throws {RequiredError}
|
|
2985
|
+
*/
|
|
2986
|
+
suggestedRepliesList(conversationId, options) {
|
|
2987
|
+
return localVarFp.suggestedRepliesList(conversationId, options).then((request) => request(axios, basePath));
|
|
2988
|
+
}
|
|
2989
|
+
};
|
|
2990
|
+
};
|
|
2991
|
+
var SuggestedRepliesApi = class extends BaseAPI {
|
|
2992
|
+
/**
|
|
2993
|
+
* SuggestedReplies Create
|
|
2994
|
+
* @summary SuggestedReplies Create
|
|
2995
|
+
* @param {object} body
|
|
2996
|
+
* @param {*} [options] Override http request option.
|
|
2997
|
+
* @throws {RequiredError}
|
|
2998
|
+
* @memberof SuggestedRepliesApi
|
|
2999
|
+
*/
|
|
3000
|
+
suggestedRepliesCreate(body, options) {
|
|
3001
|
+
return SuggestedRepliesApiFp(this.configuration).suggestedRepliesCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
3002
|
+
}
|
|
3003
|
+
/**
|
|
3004
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
3005
|
+
* @summary SuggestedReplies List
|
|
3006
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
3007
|
+
* @param {*} [options] Override http request option.
|
|
3008
|
+
* @throws {RequiredError}
|
|
3009
|
+
* @memberof SuggestedRepliesApi
|
|
3010
|
+
*/
|
|
3011
|
+
suggestedRepliesList(conversationId, options) {
|
|
3012
|
+
return SuggestedRepliesApiFp(this.configuration).suggestedRepliesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
3013
|
+
}
|
|
3014
|
+
};
|
|
3020
3015
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3021
3016
|
return {
|
|
3022
3017
|
/**
|
|
@@ -3409,34 +3404,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3409
3404
|
options: localVarRequestOptions
|
|
3410
3405
|
};
|
|
3411
3406
|
},
|
|
3412
|
-
/**
|
|
3413
|
-
* Conversations Create
|
|
3414
|
-
* @summary Conversations Create
|
|
3415
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
3416
|
-
* @param {*} [options] Override http request option.
|
|
3417
|
-
* @throws {RequiredError}
|
|
3418
|
-
*/
|
|
3419
|
-
conversationsCreate: async (aPIConversationCreate, options = {}) => {
|
|
3420
|
-
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
3421
|
-
const localVarPath = `/conversations`;
|
|
3422
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3423
|
-
let baseOptions;
|
|
3424
|
-
if (configuration) {
|
|
3425
|
-
baseOptions = configuration.baseOptions;
|
|
3426
|
-
}
|
|
3427
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3428
|
-
const localVarHeaderParameter = {};
|
|
3429
|
-
const localVarQueryParameter = {};
|
|
3430
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3431
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3432
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3433
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3434
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
3435
|
-
return {
|
|
3436
|
-
url: toPathString(localVarUrlObj),
|
|
3437
|
-
options: localVarRequestOptions
|
|
3438
|
-
};
|
|
3439
|
-
},
|
|
3440
3407
|
/**
|
|
3441
3408
|
* Conversations Get
|
|
3442
3409
|
* @summary Conversations Get
|
|
@@ -3464,7 +3431,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3464
3431
|
};
|
|
3465
3432
|
},
|
|
3466
3433
|
/**
|
|
3467
|
-
* List all conversations,
|
|
3434
|
+
* List all conversations, must filter by contact_id
|
|
3468
3435
|
* @summary Conversations List
|
|
3469
3436
|
* @param {string | null} [searchString]
|
|
3470
3437
|
* @param {string | null} [contactId]
|
|
@@ -3515,36 +3482,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3515
3482
|
options: localVarRequestOptions
|
|
3516
3483
|
};
|
|
3517
3484
|
},
|
|
3518
|
-
/**
|
|
3519
|
-
* Conversations Update
|
|
3520
|
-
* @summary Conversations Update
|
|
3521
|
-
* @param {string} conversationId
|
|
3522
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
3523
|
-
* @param {*} [options] Override http request option.
|
|
3524
|
-
* @throws {RequiredError}
|
|
3525
|
-
*/
|
|
3526
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
3527
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
3528
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
3529
|
-
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
3530
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3531
|
-
let baseOptions;
|
|
3532
|
-
if (configuration) {
|
|
3533
|
-
baseOptions = configuration.baseOptions;
|
|
3534
|
-
}
|
|
3535
|
-
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3536
|
-
const localVarHeaderParameter = {};
|
|
3537
|
-
const localVarQueryParameter = {};
|
|
3538
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3539
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3540
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3541
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3542
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
3543
|
-
return {
|
|
3544
|
-
url: toPathString(localVarUrlObj),
|
|
3545
|
-
options: localVarRequestOptions
|
|
3546
|
-
};
|
|
3547
|
-
},
|
|
3548
3485
|
/**
|
|
3549
3486
|
* Emails Create
|
|
3550
3487
|
* @summary Emails Create
|
|
@@ -3846,9 +3783,8 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3846
3783
|
/**
|
|
3847
3784
|
* Messages List
|
|
3848
3785
|
* @summary Messages List
|
|
3786
|
+
* @param {string} [conversationId]
|
|
3849
3787
|
* @param {string | null} [searchString]
|
|
3850
|
-
* @param {string | null} [contactId]
|
|
3851
|
-
* @param {string | null} [conversationId]
|
|
3852
3788
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3853
3789
|
* @param {number} [limit]
|
|
3854
3790
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -3857,7 +3793,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3857
3793
|
* @param {*} [options] Override http request option.
|
|
3858
3794
|
* @throws {RequiredError}
|
|
3859
3795
|
*/
|
|
3860
|
-
messagesList: async (
|
|
3796
|
+
messagesList: async (conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3861
3797
|
const localVarPath = `/messages`;
|
|
3862
3798
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3863
3799
|
let baseOptions;
|
|
@@ -3867,15 +3803,12 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3867
3803
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3868
3804
|
const localVarHeaderParameter = {};
|
|
3869
3805
|
const localVarQueryParameter = {};
|
|
3870
|
-
if (searchString !== void 0) {
|
|
3871
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
3872
|
-
}
|
|
3873
|
-
if (contactId !== void 0) {
|
|
3874
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
3875
|
-
}
|
|
3876
3806
|
if (conversationId !== void 0) {
|
|
3877
3807
|
localVarQueryParameter["conversationId"] = conversationId;
|
|
3878
3808
|
}
|
|
3809
|
+
if (searchString !== void 0) {
|
|
3810
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
3811
|
+
}
|
|
3879
3812
|
if (cursor !== void 0) {
|
|
3880
3813
|
localVarQueryParameter["cursor"] = cursor;
|
|
3881
3814
|
}
|
|
@@ -4197,6 +4130,62 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
4197
4130
|
options: localVarRequestOptions
|
|
4198
4131
|
};
|
|
4199
4132
|
},
|
|
4133
|
+
/**
|
|
4134
|
+
* SuggestedReplies Create
|
|
4135
|
+
* @summary SuggestedReplies Create
|
|
4136
|
+
* @param {object} body
|
|
4137
|
+
* @param {*} [options] Override http request option.
|
|
4138
|
+
* @throws {RequiredError}
|
|
4139
|
+
*/
|
|
4140
|
+
suggestedRepliesCreate: async (body, options = {}) => {
|
|
4141
|
+
assertParamExists("suggestedRepliesCreate", "body", body);
|
|
4142
|
+
const localVarPath = `/suggestedReplies`;
|
|
4143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4144
|
+
let baseOptions;
|
|
4145
|
+
if (configuration) {
|
|
4146
|
+
baseOptions = configuration.baseOptions;
|
|
4147
|
+
}
|
|
4148
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
4149
|
+
const localVarHeaderParameter = {};
|
|
4150
|
+
const localVarQueryParameter = {};
|
|
4151
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4154
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4155
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
4156
|
+
return {
|
|
4157
|
+
url: toPathString(localVarUrlObj),
|
|
4158
|
+
options: localVarRequestOptions
|
|
4159
|
+
};
|
|
4160
|
+
},
|
|
4161
|
+
/**
|
|
4162
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
4163
|
+
* @summary SuggestedReplies List
|
|
4164
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
4165
|
+
* @param {*} [options] Override http request option.
|
|
4166
|
+
* @throws {RequiredError}
|
|
4167
|
+
*/
|
|
4168
|
+
suggestedRepliesList: async (conversationId, options = {}) => {
|
|
4169
|
+
const localVarPath = `/suggestedReplies`;
|
|
4170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4171
|
+
let baseOptions;
|
|
4172
|
+
if (configuration) {
|
|
4173
|
+
baseOptions = configuration.baseOptions;
|
|
4174
|
+
}
|
|
4175
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
4176
|
+
const localVarHeaderParameter = {};
|
|
4177
|
+
const localVarQueryParameter = {};
|
|
4178
|
+
if (conversationId !== void 0) {
|
|
4179
|
+
localVarQueryParameter["conversationId"] = conversationId;
|
|
4180
|
+
}
|
|
4181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4183
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4184
|
+
return {
|
|
4185
|
+
url: toPathString(localVarUrlObj),
|
|
4186
|
+
options: localVarRequestOptions
|
|
4187
|
+
};
|
|
4188
|
+
},
|
|
4200
4189
|
/**
|
|
4201
4190
|
*
|
|
4202
4191
|
* @summary Unifiedwebhook
|
|
@@ -4413,19 +4402,6 @@ var UnboundApiFp = function(configuration) {
|
|
|
4413
4402
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
4414
4403
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4415
4404
|
},
|
|
4416
|
-
/**
|
|
4417
|
-
* Conversations Create
|
|
4418
|
-
* @summary Conversations Create
|
|
4419
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
4420
|
-
* @param {*} [options] Override http request option.
|
|
4421
|
-
* @throws {RequiredError}
|
|
4422
|
-
*/
|
|
4423
|
-
async conversationsCreate(aPIConversationCreate, options) {
|
|
4424
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(aPIConversationCreate, options);
|
|
4425
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4426
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4427
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4428
|
-
},
|
|
4429
4405
|
/**
|
|
4430
4406
|
* Conversations Get
|
|
4431
4407
|
* @summary Conversations Get
|
|
@@ -4440,7 +4416,7 @@ var UnboundApiFp = function(configuration) {
|
|
|
4440
4416
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4441
4417
|
},
|
|
4442
4418
|
/**
|
|
4443
|
-
* List all conversations,
|
|
4419
|
+
* List all conversations, must filter by contact_id
|
|
4444
4420
|
* @summary Conversations List
|
|
4445
4421
|
* @param {string | null} [searchString]
|
|
4446
4422
|
* @param {string | null} [contactId]
|
|
@@ -4458,20 +4434,6 @@ var UnboundApiFp = function(configuration) {
|
|
|
4458
4434
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
4459
4435
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4460
4436
|
},
|
|
4461
|
-
/**
|
|
4462
|
-
* Conversations Update
|
|
4463
|
-
* @summary Conversations Update
|
|
4464
|
-
* @param {string} conversationId
|
|
4465
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
4466
|
-
* @param {*} [options] Override http request option.
|
|
4467
|
-
* @throws {RequiredError}
|
|
4468
|
-
*/
|
|
4469
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
4470
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
4471
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4472
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
4473
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4474
|
-
},
|
|
4475
4437
|
/**
|
|
4476
4438
|
* Emails Create
|
|
4477
4439
|
* @summary Emails Create
|
|
@@ -4613,9 +4575,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4613
4575
|
/**
|
|
4614
4576
|
* Messages List
|
|
4615
4577
|
* @summary Messages List
|
|
4578
|
+
* @param {string} [conversationId]
|
|
4616
4579
|
* @param {string | null} [searchString]
|
|
4617
|
-
* @param {string | null} [contactId]
|
|
4618
|
-
* @param {string | null} [conversationId]
|
|
4619
4580
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4620
4581
|
* @param {number} [limit]
|
|
4621
4582
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -4624,8 +4585,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
4624
4585
|
* @param {*} [options] Override http request option.
|
|
4625
4586
|
* @throws {RequiredError}
|
|
4626
4587
|
*/
|
|
4627
|
-
async messagesList(
|
|
4628
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(
|
|
4588
|
+
async messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4589
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
4629
4590
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4630
4591
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
4631
4592
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4768,6 +4729,32 @@ var UnboundApiFp = function(configuration) {
|
|
|
4768
4729
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
|
|
4769
4730
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4770
4731
|
},
|
|
4732
|
+
/**
|
|
4733
|
+
* SuggestedReplies Create
|
|
4734
|
+
* @summary SuggestedReplies Create
|
|
4735
|
+
* @param {object} body
|
|
4736
|
+
* @param {*} [options] Override http request option.
|
|
4737
|
+
* @throws {RequiredError}
|
|
4738
|
+
*/
|
|
4739
|
+
async suggestedRepliesCreate(body, options) {
|
|
4740
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesCreate(body, options);
|
|
4741
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4742
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.suggestedRepliesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4743
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4744
|
+
},
|
|
4745
|
+
/**
|
|
4746
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
4747
|
+
* @summary SuggestedReplies List
|
|
4748
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
4749
|
+
* @param {*} [options] Override http request option.
|
|
4750
|
+
* @throws {RequiredError}
|
|
4751
|
+
*/
|
|
4752
|
+
async suggestedRepliesList(conversationId, options) {
|
|
4753
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suggestedRepliesList(conversationId, options);
|
|
4754
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4755
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.suggestedRepliesList"]?.[localVarOperationServerIndex]?.url;
|
|
4756
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4757
|
+
},
|
|
4771
4758
|
/**
|
|
4772
4759
|
*
|
|
4773
4760
|
* @summary Unifiedwebhook
|
|
@@ -4929,16 +4916,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4929
4916
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
4930
4917
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
4931
4918
|
},
|
|
4932
|
-
/**
|
|
4933
|
-
* Conversations Create
|
|
4934
|
-
* @summary Conversations Create
|
|
4935
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
4936
|
-
* @param {*} [options] Override http request option.
|
|
4937
|
-
* @throws {RequiredError}
|
|
4938
|
-
*/
|
|
4939
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
4940
|
-
return localVarFp.conversationsCreate(aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
4941
|
-
},
|
|
4942
4919
|
/**
|
|
4943
4920
|
* Conversations Get
|
|
4944
4921
|
* @summary Conversations Get
|
|
@@ -4950,7 +4927,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4950
4927
|
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
4951
4928
|
},
|
|
4952
4929
|
/**
|
|
4953
|
-
* List all conversations,
|
|
4930
|
+
* List all conversations, must filter by contact_id
|
|
4954
4931
|
* @summary Conversations List
|
|
4955
4932
|
* @param {string | null} [searchString]
|
|
4956
4933
|
* @param {string | null} [contactId]
|
|
@@ -4965,17 +4942,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4965
4942
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4966
4943
|
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
4967
4944
|
},
|
|
4968
|
-
/**
|
|
4969
|
-
* Conversations Update
|
|
4970
|
-
* @summary Conversations Update
|
|
4971
|
-
* @param {string} conversationId
|
|
4972
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
4973
|
-
* @param {*} [options] Override http request option.
|
|
4974
|
-
* @throws {RequiredError}
|
|
4975
|
-
*/
|
|
4976
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
4977
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
4978
|
-
},
|
|
4979
4945
|
/**
|
|
4980
4946
|
* Emails Create
|
|
4981
4947
|
* @summary Emails Create
|
|
@@ -5087,9 +5053,8 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5087
5053
|
/**
|
|
5088
5054
|
* Messages List
|
|
5089
5055
|
* @summary Messages List
|
|
5056
|
+
* @param {string} [conversationId]
|
|
5090
5057
|
* @param {string | null} [searchString]
|
|
5091
|
-
* @param {string | null} [contactId]
|
|
5092
|
-
* @param {string | null} [conversationId]
|
|
5093
5058
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5094
5059
|
* @param {number} [limit]
|
|
5095
5060
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -5098,8 +5063,8 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5098
5063
|
* @param {*} [options] Override http request option.
|
|
5099
5064
|
* @throws {RequiredError}
|
|
5100
5065
|
*/
|
|
5101
|
-
messagesList(
|
|
5102
|
-
return localVarFp.messagesList(
|
|
5066
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5067
|
+
return localVarFp.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
5103
5068
|
},
|
|
5104
5069
|
/**
|
|
5105
5070
|
* Phones Create
|
|
@@ -5209,6 +5174,26 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5209
5174
|
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5210
5175
|
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
5211
5176
|
},
|
|
5177
|
+
/**
|
|
5178
|
+
* SuggestedReplies Create
|
|
5179
|
+
* @summary SuggestedReplies Create
|
|
5180
|
+
* @param {object} body
|
|
5181
|
+
* @param {*} [options] Override http request option.
|
|
5182
|
+
* @throws {RequiredError}
|
|
5183
|
+
*/
|
|
5184
|
+
suggestedRepliesCreate(body, options) {
|
|
5185
|
+
return localVarFp.suggestedRepliesCreate(body, options).then((request) => request(axios, basePath));
|
|
5186
|
+
},
|
|
5187
|
+
/**
|
|
5188
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
5189
|
+
* @summary SuggestedReplies List
|
|
5190
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
5191
|
+
* @param {*} [options] Override http request option.
|
|
5192
|
+
* @throws {RequiredError}
|
|
5193
|
+
*/
|
|
5194
|
+
suggestedRepliesList(conversationId, options) {
|
|
5195
|
+
return localVarFp.suggestedRepliesList(conversationId, options).then((request) => request(axios, basePath));
|
|
5196
|
+
},
|
|
5212
5197
|
/**
|
|
5213
5198
|
*
|
|
5214
5199
|
* @summary Unifiedwebhook
|
|
@@ -5378,17 +5363,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5378
5363
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5379
5364
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
5380
5365
|
}
|
|
5381
|
-
/**
|
|
5382
|
-
* Conversations Create
|
|
5383
|
-
* @summary Conversations Create
|
|
5384
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
5385
|
-
* @param {*} [options] Override http request option.
|
|
5386
|
-
* @throws {RequiredError}
|
|
5387
|
-
* @memberof UnboundApi
|
|
5388
|
-
*/
|
|
5389
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
5390
|
-
return UnboundApiFp(this.configuration).conversationsCreate(aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5391
|
-
}
|
|
5392
5366
|
/**
|
|
5393
5367
|
* Conversations Get
|
|
5394
5368
|
* @summary Conversations Get
|
|
@@ -5401,7 +5375,7 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5401
5375
|
return UnboundApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5402
5376
|
}
|
|
5403
5377
|
/**
|
|
5404
|
-
* List all conversations,
|
|
5378
|
+
* List all conversations, must filter by contact_id
|
|
5405
5379
|
* @summary Conversations List
|
|
5406
5380
|
* @param {string | null} [searchString]
|
|
5407
5381
|
* @param {string | null} [contactId]
|
|
@@ -5417,18 +5391,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5417
5391
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5418
5392
|
return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
5419
5393
|
}
|
|
5420
|
-
/**
|
|
5421
|
-
* Conversations Update
|
|
5422
|
-
* @summary Conversations Update
|
|
5423
|
-
* @param {string} conversationId
|
|
5424
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
5425
|
-
* @param {*} [options] Override http request option.
|
|
5426
|
-
* @throws {RequiredError}
|
|
5427
|
-
* @memberof UnboundApi
|
|
5428
|
-
*/
|
|
5429
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
5430
|
-
return UnboundApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
5431
|
-
}
|
|
5432
5394
|
/**
|
|
5433
5395
|
* Emails Create
|
|
5434
5396
|
* @summary Emails Create
|
|
@@ -5550,9 +5512,8 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5550
5512
|
/**
|
|
5551
5513
|
* Messages List
|
|
5552
5514
|
* @summary Messages List
|
|
5515
|
+
* @param {string} [conversationId]
|
|
5553
5516
|
* @param {string | null} [searchString]
|
|
5554
|
-
* @param {string | null} [contactId]
|
|
5555
|
-
* @param {string | null} [conversationId]
|
|
5556
5517
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5557
5518
|
* @param {number} [limit]
|
|
5558
5519
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -5562,8 +5523,8 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5562
5523
|
* @throws {RequiredError}
|
|
5563
5524
|
* @memberof UnboundApi
|
|
5564
5525
|
*/
|
|
5565
|
-
messagesList(
|
|
5566
|
-
return UnboundApiFp(this.configuration).messagesList(
|
|
5526
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5527
|
+
return UnboundApiFp(this.configuration).messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
5567
5528
|
}
|
|
5568
5529
|
/**
|
|
5569
5530
|
* Phones Create
|
|
@@ -5683,6 +5644,28 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5683
5644
|
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5684
5645
|
return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
5685
5646
|
}
|
|
5647
|
+
/**
|
|
5648
|
+
* SuggestedReplies Create
|
|
5649
|
+
* @summary SuggestedReplies Create
|
|
5650
|
+
* @param {object} body
|
|
5651
|
+
* @param {*} [options] Override http request option.
|
|
5652
|
+
* @throws {RequiredError}
|
|
5653
|
+
* @memberof UnboundApi
|
|
5654
|
+
*/
|
|
5655
|
+
suggestedRepliesCreate(body, options) {
|
|
5656
|
+
return UnboundApiFp(this.configuration).suggestedRepliesCreate(body, options).then((request) => request(this.axios, this.basePath));
|
|
5657
|
+
}
|
|
5658
|
+
/**
|
|
5659
|
+
* List all suggested replies, optionally filtered by conversation_id
|
|
5660
|
+
* @summary SuggestedReplies List
|
|
5661
|
+
* @param {string | null} [conversationId] Filter by conversation ID
|
|
5662
|
+
* @param {*} [options] Override http request option.
|
|
5663
|
+
* @throws {RequiredError}
|
|
5664
|
+
* @memberof UnboundApi
|
|
5665
|
+
*/
|
|
5666
|
+
suggestedRepliesList(conversationId, options) {
|
|
5667
|
+
return UnboundApiFp(this.configuration).suggestedRepliesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5668
|
+
}
|
|
5686
5669
|
/**
|
|
5687
5670
|
*
|
|
5688
5671
|
* @summary Unifiedwebhook
|
|
@@ -5801,6 +5784,7 @@ export {
|
|
|
5801
5784
|
ConversationsApiAxiosParamCreator,
|
|
5802
5785
|
ConversationsApiFactory,
|
|
5803
5786
|
ConversationsApiFp,
|
|
5787
|
+
EmailConversationDataApiConversationTypeEnum,
|
|
5804
5788
|
ExternalStaffApiStaffTypeEnum,
|
|
5805
5789
|
GuestApiParticipantTypeEnum,
|
|
5806
5790
|
HostawayApi,
|
|
@@ -5840,17 +5824,17 @@ export {
|
|
|
5840
5824
|
SortOrder,
|
|
5841
5825
|
SrcResourceModelsContactsModelContactsModelContactSortBy,
|
|
5842
5826
|
SrcResourceModelsConversationsModelConversationsModelConversationSortBy,
|
|
5843
|
-
|
|
5844
|
-
|
|
5827
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1MessageTypeEnum,
|
|
5828
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum,
|
|
5845
5829
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum,
|
|
5846
|
-
SrcResourceModelsHelperModelsCustomBaseModelCreateApi4MessageTypeEnum,
|
|
5847
|
-
SrcResourceModelsHelperModelsCustomBaseModelCreateApi5MessageTypeEnum,
|
|
5848
|
-
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum,
|
|
5849
|
-
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum,
|
|
5850
5830
|
SrcResourceModelsListingsModelListingBaseSortBy,
|
|
5851
5831
|
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
5852
5832
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
5853
5833
|
StaffApiParticipantTypeEnum,
|
|
5834
|
+
SuggestedRepliesApi,
|
|
5835
|
+
SuggestedRepliesApiAxiosParamCreator,
|
|
5836
|
+
SuggestedRepliesApiFactory,
|
|
5837
|
+
SuggestedRepliesApiFp,
|
|
5854
5838
|
TwilioConversationDataApiConversationTypeEnum,
|
|
5855
5839
|
TwilioInboundSenderTypeDataApiDirectionEnum,
|
|
5856
5840
|
TwilioOutboundSenderTypeDataApiDirectionEnum,
|