@ember-home/unbound-ts-client 0.0.41 → 0.0.43
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 +477 -499
- package/dist/index.d.ts +477 -499
- package/dist/index.js +200 -444
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +101 -345
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -75,6 +75,9 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/api.ts
|
|
78
|
+
var BotApiParticipantTypeEnum = {
|
|
79
|
+
Bot: "BOT"
|
|
80
|
+
};
|
|
78
81
|
var ContactListingType = {
|
|
79
82
|
Owner: "OWNER"
|
|
80
83
|
};
|
|
@@ -82,6 +85,15 @@ var ConversationStatus = {
|
|
|
82
85
|
Open: "OPEN",
|
|
83
86
|
Closed: "CLOSED"
|
|
84
87
|
};
|
|
88
|
+
var ExternalStaffApiStaffTypeEnum = {
|
|
89
|
+
ExternalStaff: "EXTERNAL_STAFF"
|
|
90
|
+
};
|
|
91
|
+
var GuestApiParticipantTypeEnum = {
|
|
92
|
+
Guest: "GUEST"
|
|
93
|
+
};
|
|
94
|
+
var InternalStaffApiStaffTypeEnum = {
|
|
95
|
+
InternalStaff: "INTERNAL_STAFF"
|
|
96
|
+
};
|
|
85
97
|
var MessageDirection = {
|
|
86
98
|
Inbound: "INBOUND",
|
|
87
99
|
Outbound: "OUTBOUND"
|
|
@@ -99,8 +111,21 @@ var PaginationDirection = {
|
|
|
99
111
|
Forward: "forward",
|
|
100
112
|
Backward: "backward"
|
|
101
113
|
};
|
|
102
|
-
var
|
|
103
|
-
|
|
114
|
+
var ProviderCommunicationType = {
|
|
115
|
+
Sms: "SMS",
|
|
116
|
+
Email: "EMAIL",
|
|
117
|
+
Channel: "CHANNEL",
|
|
118
|
+
Whatsapp: "WHATSAPP",
|
|
119
|
+
Note: "NOTE"
|
|
120
|
+
};
|
|
121
|
+
var ProviderConversationDataApiConversationTypeEnum = {
|
|
122
|
+
RentalProvider: "RENTAL_PROVIDER"
|
|
123
|
+
};
|
|
124
|
+
var ProviderStaffApiStaffTypeEnum = {
|
|
125
|
+
ProviderStaff: "PROVIDER_STAFF"
|
|
126
|
+
};
|
|
127
|
+
var RentalProviderMessageApiMessageTypeEnum = {
|
|
128
|
+
RentalProvider: "RENTAL_PROVIDER"
|
|
104
129
|
};
|
|
105
130
|
var ReservationChannelTypes = {
|
|
106
131
|
Airbnb: "AIRBNB",
|
|
@@ -141,42 +166,39 @@ var SrcResourceModelsContactsModelContactsModelContactSortBy = {
|
|
|
141
166
|
var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
|
|
142
167
|
UpdatedAt: "updated_at"
|
|
143
168
|
};
|
|
144
|
-
var
|
|
145
|
-
|
|
146
|
-
};
|
|
147
|
-
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
|
|
148
|
-
Email: "EMAIL"
|
|
149
|
-
};
|
|
150
|
-
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum = {
|
|
151
|
-
Twilio: "TWILIO"
|
|
152
|
-
};
|
|
153
|
-
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = {
|
|
154
|
-
Email: "EMAIL"
|
|
169
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1MessageTypeEnum = {
|
|
170
|
+
RentalProvider: "RENTAL_PROVIDER"
|
|
155
171
|
};
|
|
156
|
-
var
|
|
172
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum = {
|
|
157
173
|
Twilio: "TWILIO"
|
|
158
174
|
};
|
|
159
|
-
var
|
|
175
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum = {
|
|
160
176
|
Email: "EMAIL"
|
|
161
177
|
};
|
|
162
178
|
var SrcResourceModelsListingsModelListingBaseSortBy = {
|
|
163
179
|
Title: "title"
|
|
164
180
|
};
|
|
165
|
-
var
|
|
166
|
-
|
|
181
|
+
var SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy = {
|
|
182
|
+
SentAt: "sent_at"
|
|
167
183
|
};
|
|
168
184
|
var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
169
185
|
ArrivalAtPropertyTz: "arrival_at_property_tz"
|
|
170
186
|
};
|
|
171
|
-
var
|
|
172
|
-
|
|
187
|
+
var StaffApiParticipantTypeEnum = {
|
|
188
|
+
Staff: "STAFF"
|
|
173
189
|
};
|
|
174
|
-
var
|
|
190
|
+
var TwilioConversationDataApiConversationTypeEnum = {
|
|
175
191
|
Twilio: "TWILIO"
|
|
176
192
|
};
|
|
193
|
+
var TwilioInboundSenderTypeDataApiDirectionEnum = {
|
|
194
|
+
Inbound: "INBOUND"
|
|
195
|
+
};
|
|
177
196
|
var TwilioOutboundSenderTypeDataApiDirectionEnum = {
|
|
178
197
|
Outbound: "OUTBOUND"
|
|
179
198
|
};
|
|
199
|
+
var TwilioProviderMessageApiMessageTypeEnum = {
|
|
200
|
+
Twilio: "TWILIO"
|
|
201
|
+
};
|
|
180
202
|
var AccountsApiAxiosParamCreator = function(configuration) {
|
|
181
203
|
return {
|
|
182
204
|
/**
|
|
@@ -1590,34 +1612,6 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1590
1612
|
};
|
|
1591
1613
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1592
1614
|
return {
|
|
1593
|
-
/**
|
|
1594
|
-
* Conversations Create
|
|
1595
|
-
* @summary Conversations Create
|
|
1596
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
1597
|
-
* @param {*} [options] Override http request option.
|
|
1598
|
-
* @throws {RequiredError}
|
|
1599
|
-
*/
|
|
1600
|
-
conversationsCreate: async (aPIConversationCreate, options = {}) => {
|
|
1601
|
-
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
1602
|
-
const localVarPath = `/conversations`;
|
|
1603
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1604
|
-
let baseOptions;
|
|
1605
|
-
if (configuration) {
|
|
1606
|
-
baseOptions = configuration.baseOptions;
|
|
1607
|
-
}
|
|
1608
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1609
|
-
const localVarHeaderParameter = {};
|
|
1610
|
-
const localVarQueryParameter = {};
|
|
1611
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1612
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1613
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1614
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1615
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
1616
|
-
return {
|
|
1617
|
-
url: toPathString(localVarUrlObj),
|
|
1618
|
-
options: localVarRequestOptions
|
|
1619
|
-
};
|
|
1620
|
-
},
|
|
1621
1615
|
/**
|
|
1622
1616
|
* Conversations Get
|
|
1623
1617
|
* @summary Conversations Get
|
|
@@ -1645,7 +1639,7 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1645
1639
|
};
|
|
1646
1640
|
},
|
|
1647
1641
|
/**
|
|
1648
|
-
* List all conversations,
|
|
1642
|
+
* List all conversations, must filter by contact_id
|
|
1649
1643
|
* @summary Conversations List
|
|
1650
1644
|
* @param {string | null} [searchString]
|
|
1651
1645
|
* @param {string | null} [contactId]
|
|
@@ -1696,36 +1690,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1696
1690
|
options: localVarRequestOptions
|
|
1697
1691
|
};
|
|
1698
1692
|
},
|
|
1699
|
-
/**
|
|
1700
|
-
* Conversations Update
|
|
1701
|
-
* @summary Conversations Update
|
|
1702
|
-
* @param {string} conversationId
|
|
1703
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1704
|
-
* @param {*} [options] Override http request option.
|
|
1705
|
-
* @throws {RequiredError}
|
|
1706
|
-
*/
|
|
1707
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
1708
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1709
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
1710
|
-
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1711
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1712
|
-
let baseOptions;
|
|
1713
|
-
if (configuration) {
|
|
1714
|
-
baseOptions = configuration.baseOptions;
|
|
1715
|
-
}
|
|
1716
|
-
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1717
|
-
const localVarHeaderParameter = {};
|
|
1718
|
-
const localVarQueryParameter = {};
|
|
1719
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1720
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1721
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1722
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1723
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
1724
|
-
return {
|
|
1725
|
-
url: toPathString(localVarUrlObj),
|
|
1726
|
-
options: localVarRequestOptions
|
|
1727
|
-
};
|
|
1728
|
-
},
|
|
1729
1693
|
/**
|
|
1730
1694
|
* Messages Create
|
|
1731
1695
|
* @summary Messages Create
|
|
@@ -1785,18 +1749,17 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1785
1749
|
/**
|
|
1786
1750
|
* Messages List
|
|
1787
1751
|
* @summary Messages List
|
|
1752
|
+
* @param {string} [conversationId]
|
|
1788
1753
|
* @param {string | null} [searchString]
|
|
1789
|
-
* @param {string | null} [contactId]
|
|
1790
|
-
* @param {string | null} [conversationId]
|
|
1791
1754
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1792
1755
|
* @param {number} [limit]
|
|
1793
1756
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1794
|
-
* @param {
|
|
1757
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
1795
1758
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1796
1759
|
* @param {*} [options] Override http request option.
|
|
1797
1760
|
* @throws {RequiredError}
|
|
1798
1761
|
*/
|
|
1799
|
-
messagesList: async (
|
|
1762
|
+
messagesList: async (conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
1800
1763
|
const localVarPath = `/messages`;
|
|
1801
1764
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1802
1765
|
let baseOptions;
|
|
@@ -1806,15 +1769,12 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1806
1769
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1807
1770
|
const localVarHeaderParameter = {};
|
|
1808
1771
|
const localVarQueryParameter = {};
|
|
1809
|
-
if (searchString !== void 0) {
|
|
1810
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
1811
|
-
}
|
|
1812
|
-
if (contactId !== void 0) {
|
|
1813
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
1814
|
-
}
|
|
1815
1772
|
if (conversationId !== void 0) {
|
|
1816
1773
|
localVarQueryParameter["conversationId"] = conversationId;
|
|
1817
1774
|
}
|
|
1775
|
+
if (searchString !== void 0) {
|
|
1776
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
1777
|
+
}
|
|
1818
1778
|
if (cursor !== void 0) {
|
|
1819
1779
|
localVarQueryParameter["cursor"] = cursor;
|
|
1820
1780
|
}
|
|
@@ -1843,19 +1803,6 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1843
1803
|
var ConversationsApiFp = function(configuration) {
|
|
1844
1804
|
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1845
1805
|
return {
|
|
1846
|
-
/**
|
|
1847
|
-
* Conversations Create
|
|
1848
|
-
* @summary Conversations Create
|
|
1849
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
1850
|
-
* @param {*} [options] Override http request option.
|
|
1851
|
-
* @throws {RequiredError}
|
|
1852
|
-
*/
|
|
1853
|
-
async conversationsCreate(aPIConversationCreate, options) {
|
|
1854
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(aPIConversationCreate, options);
|
|
1855
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1856
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1857
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1858
|
-
},
|
|
1859
1806
|
/**
|
|
1860
1807
|
* Conversations Get
|
|
1861
1808
|
* @summary Conversations Get
|
|
@@ -1870,7 +1817,7 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1870
1817
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1871
1818
|
},
|
|
1872
1819
|
/**
|
|
1873
|
-
* List all conversations,
|
|
1820
|
+
* List all conversations, must filter by contact_id
|
|
1874
1821
|
* @summary Conversations List
|
|
1875
1822
|
* @param {string | null} [searchString]
|
|
1876
1823
|
* @param {string | null} [contactId]
|
|
@@ -1888,20 +1835,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1888
1835
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
1889
1836
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1890
1837
|
},
|
|
1891
|
-
/**
|
|
1892
|
-
* Conversations Update
|
|
1893
|
-
* @summary Conversations Update
|
|
1894
|
-
* @param {string} conversationId
|
|
1895
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1896
|
-
* @param {*} [options] Override http request option.
|
|
1897
|
-
* @throws {RequiredError}
|
|
1898
|
-
*/
|
|
1899
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
1900
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
1901
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1902
|
-
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1903
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1904
|
-
},
|
|
1905
1838
|
/**
|
|
1906
1839
|
* Messages Create
|
|
1907
1840
|
* @summary Messages Create
|
|
@@ -1932,19 +1865,18 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1932
1865
|
/**
|
|
1933
1866
|
* Messages List
|
|
1934
1867
|
* @summary Messages List
|
|
1868
|
+
* @param {string} [conversationId]
|
|
1935
1869
|
* @param {string | null} [searchString]
|
|
1936
|
-
* @param {string | null} [contactId]
|
|
1937
|
-
* @param {string | null} [conversationId]
|
|
1938
1870
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1939
1871
|
* @param {number} [limit]
|
|
1940
1872
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1941
|
-
* @param {
|
|
1873
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
1942
1874
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1943
1875
|
* @param {*} [options] Override http request option.
|
|
1944
1876
|
* @throws {RequiredError}
|
|
1945
1877
|
*/
|
|
1946
|
-
async messagesList(
|
|
1947
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(
|
|
1878
|
+
async messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
1948
1880
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1949
1881
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
1950
1882
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1954,16 +1886,6 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1954
1886
|
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
1955
1887
|
const localVarFp = ConversationsApiFp(configuration);
|
|
1956
1888
|
return {
|
|
1957
|
-
/**
|
|
1958
|
-
* Conversations Create
|
|
1959
|
-
* @summary Conversations Create
|
|
1960
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
1961
|
-
* @param {*} [options] Override http request option.
|
|
1962
|
-
* @throws {RequiredError}
|
|
1963
|
-
*/
|
|
1964
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
1965
|
-
return localVarFp.conversationsCreate(aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
1966
|
-
},
|
|
1967
1889
|
/**
|
|
1968
1890
|
* Conversations Get
|
|
1969
1891
|
* @summary Conversations Get
|
|
@@ -1975,7 +1897,7 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1975
1897
|
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
1976
1898
|
},
|
|
1977
1899
|
/**
|
|
1978
|
-
* List all conversations,
|
|
1900
|
+
* List all conversations, must filter by contact_id
|
|
1979
1901
|
* @summary Conversations List
|
|
1980
1902
|
* @param {string | null} [searchString]
|
|
1981
1903
|
* @param {string | null} [contactId]
|
|
@@ -1990,17 +1912,6 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1990
1912
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1991
1913
|
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
1992
1914
|
},
|
|
1993
|
-
/**
|
|
1994
|
-
* Conversations Update
|
|
1995
|
-
* @summary Conversations Update
|
|
1996
|
-
* @param {string} conversationId
|
|
1997
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
1998
|
-
* @param {*} [options] Override http request option.
|
|
1999
|
-
* @throws {RequiredError}
|
|
2000
|
-
*/
|
|
2001
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2002
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
2003
|
-
},
|
|
2004
1915
|
/**
|
|
2005
1916
|
* Messages Create
|
|
2006
1917
|
* @summary Messages Create
|
|
@@ -2025,34 +1936,22 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2025
1936
|
/**
|
|
2026
1937
|
* Messages List
|
|
2027
1938
|
* @summary Messages List
|
|
1939
|
+
* @param {string} [conversationId]
|
|
2028
1940
|
* @param {string | null} [searchString]
|
|
2029
|
-
* @param {string | null} [contactId]
|
|
2030
|
-
* @param {string | null} [conversationId]
|
|
2031
1941
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2032
1942
|
* @param {number} [limit]
|
|
2033
1943
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2034
|
-
* @param {
|
|
1944
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
2035
1945
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2036
1946
|
* @param {*} [options] Override http request option.
|
|
2037
1947
|
* @throws {RequiredError}
|
|
2038
1948
|
*/
|
|
2039
|
-
messagesList(
|
|
2040
|
-
return localVarFp.messagesList(
|
|
1949
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1950
|
+
return localVarFp.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2041
1951
|
}
|
|
2042
1952
|
};
|
|
2043
1953
|
};
|
|
2044
1954
|
var ConversationsApi = class extends BaseAPI {
|
|
2045
|
-
/**
|
|
2046
|
-
* Conversations Create
|
|
2047
|
-
* @summary Conversations Create
|
|
2048
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
2049
|
-
* @param {*} [options] Override http request option.
|
|
2050
|
-
* @throws {RequiredError}
|
|
2051
|
-
* @memberof ConversationsApi
|
|
2052
|
-
*/
|
|
2053
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
2054
|
-
return ConversationsApiFp(this.configuration).conversationsCreate(aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2055
|
-
}
|
|
2056
1955
|
/**
|
|
2057
1956
|
* Conversations Get
|
|
2058
1957
|
* @summary Conversations Get
|
|
@@ -2065,7 +1964,7 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2065
1964
|
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
2066
1965
|
}
|
|
2067
1966
|
/**
|
|
2068
|
-
* List all conversations,
|
|
1967
|
+
* List all conversations, must filter by contact_id
|
|
2069
1968
|
* @summary Conversations List
|
|
2070
1969
|
* @param {string | null} [searchString]
|
|
2071
1970
|
* @param {string | null} [contactId]
|
|
@@ -2081,18 +1980,6 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2081
1980
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2082
1981
|
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2083
1982
|
}
|
|
2084
|
-
/**
|
|
2085
|
-
* Conversations Update
|
|
2086
|
-
* @summary Conversations Update
|
|
2087
|
-
* @param {string} conversationId
|
|
2088
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
2089
|
-
* @param {*} [options] Override http request option.
|
|
2090
|
-
* @throws {RequiredError}
|
|
2091
|
-
* @memberof ConversationsApi
|
|
2092
|
-
*/
|
|
2093
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
2094
|
-
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2095
|
-
}
|
|
2096
1983
|
/**
|
|
2097
1984
|
* Messages Create
|
|
2098
1985
|
* @summary Messages Create
|
|
@@ -2119,20 +2006,19 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
2119
2006
|
/**
|
|
2120
2007
|
* Messages List
|
|
2121
2008
|
* @summary Messages List
|
|
2009
|
+
* @param {string} [conversationId]
|
|
2122
2010
|
* @param {string | null} [searchString]
|
|
2123
|
-
* @param {string | null} [contactId]
|
|
2124
|
-
* @param {string | null} [conversationId]
|
|
2125
2011
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2126
2012
|
* @param {number} [limit]
|
|
2127
2013
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2128
|
-
* @param {
|
|
2014
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
2129
2015
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2130
2016
|
* @param {*} [options] Override http request option.
|
|
2131
2017
|
* @throws {RequiredError}
|
|
2132
2018
|
* @memberof ConversationsApi
|
|
2133
2019
|
*/
|
|
2134
|
-
messagesList(
|
|
2135
|
-
return ConversationsApiFp(this.configuration).messagesList(
|
|
2020
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2021
|
+
return ConversationsApiFp(this.configuration).messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2136
2022
|
}
|
|
2137
2023
|
};
|
|
2138
2024
|
var HostawayApiAxiosParamCreator = function(configuration) {
|
|
@@ -3375,34 +3261,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3375
3261
|
options: localVarRequestOptions
|
|
3376
3262
|
};
|
|
3377
3263
|
},
|
|
3378
|
-
/**
|
|
3379
|
-
* Conversations Create
|
|
3380
|
-
* @summary Conversations Create
|
|
3381
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
3382
|
-
* @param {*} [options] Override http request option.
|
|
3383
|
-
* @throws {RequiredError}
|
|
3384
|
-
*/
|
|
3385
|
-
conversationsCreate: async (aPIConversationCreate, options = {}) => {
|
|
3386
|
-
assertParamExists("conversationsCreate", "aPIConversationCreate", aPIConversationCreate);
|
|
3387
|
-
const localVarPath = `/conversations`;
|
|
3388
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3389
|
-
let baseOptions;
|
|
3390
|
-
if (configuration) {
|
|
3391
|
-
baseOptions = configuration.baseOptions;
|
|
3392
|
-
}
|
|
3393
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3394
|
-
const localVarHeaderParameter = {};
|
|
3395
|
-
const localVarQueryParameter = {};
|
|
3396
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3397
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3398
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3399
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3400
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationCreate, localVarRequestOptions, configuration);
|
|
3401
|
-
return {
|
|
3402
|
-
url: toPathString(localVarUrlObj),
|
|
3403
|
-
options: localVarRequestOptions
|
|
3404
|
-
};
|
|
3405
|
-
},
|
|
3406
3264
|
/**
|
|
3407
3265
|
* Conversations Get
|
|
3408
3266
|
* @summary Conversations Get
|
|
@@ -3430,7 +3288,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3430
3288
|
};
|
|
3431
3289
|
},
|
|
3432
3290
|
/**
|
|
3433
|
-
* List all conversations,
|
|
3291
|
+
* List all conversations, must filter by contact_id
|
|
3434
3292
|
* @summary Conversations List
|
|
3435
3293
|
* @param {string | null} [searchString]
|
|
3436
3294
|
* @param {string | null} [contactId]
|
|
@@ -3481,36 +3339,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3481
3339
|
options: localVarRequestOptions
|
|
3482
3340
|
};
|
|
3483
3341
|
},
|
|
3484
|
-
/**
|
|
3485
|
-
* Conversations Update
|
|
3486
|
-
* @summary Conversations Update
|
|
3487
|
-
* @param {string} conversationId
|
|
3488
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
3489
|
-
* @param {*} [options] Override http request option.
|
|
3490
|
-
* @throws {RequiredError}
|
|
3491
|
-
*/
|
|
3492
|
-
conversationsUpdate: async (conversationId, aPIConversationUpdate, options = {}) => {
|
|
3493
|
-
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
3494
|
-
assertParamExists("conversationsUpdate", "aPIConversationUpdate", aPIConversationUpdate);
|
|
3495
|
-
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
3496
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3497
|
-
let baseOptions;
|
|
3498
|
-
if (configuration) {
|
|
3499
|
-
baseOptions = configuration.baseOptions;
|
|
3500
|
-
}
|
|
3501
|
-
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3502
|
-
const localVarHeaderParameter = {};
|
|
3503
|
-
const localVarQueryParameter = {};
|
|
3504
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3505
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3506
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3507
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3508
|
-
localVarRequestOptions.data = serializeDataIfNeeded(aPIConversationUpdate, localVarRequestOptions, configuration);
|
|
3509
|
-
return {
|
|
3510
|
-
url: toPathString(localVarUrlObj),
|
|
3511
|
-
options: localVarRequestOptions
|
|
3512
|
-
};
|
|
3513
|
-
},
|
|
3514
3342
|
/**
|
|
3515
3343
|
* Emails Create
|
|
3516
3344
|
* @summary Emails Create
|
|
@@ -3812,18 +3640,17 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3812
3640
|
/**
|
|
3813
3641
|
* Messages List
|
|
3814
3642
|
* @summary Messages List
|
|
3643
|
+
* @param {string} [conversationId]
|
|
3815
3644
|
* @param {string | null} [searchString]
|
|
3816
|
-
* @param {string | null} [contactId]
|
|
3817
|
-
* @param {string | null} [conversationId]
|
|
3818
3645
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3819
3646
|
* @param {number} [limit]
|
|
3820
3647
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3821
|
-
* @param {
|
|
3648
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
3822
3649
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3823
3650
|
* @param {*} [options] Override http request option.
|
|
3824
3651
|
* @throws {RequiredError}
|
|
3825
3652
|
*/
|
|
3826
|
-
messagesList: async (
|
|
3653
|
+
messagesList: async (conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3827
3654
|
const localVarPath = `/messages`;
|
|
3828
3655
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3829
3656
|
let baseOptions;
|
|
@@ -3833,15 +3660,12 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3833
3660
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3834
3661
|
const localVarHeaderParameter = {};
|
|
3835
3662
|
const localVarQueryParameter = {};
|
|
3836
|
-
if (searchString !== void 0) {
|
|
3837
|
-
localVarQueryParameter["searchString"] = searchString;
|
|
3838
|
-
}
|
|
3839
|
-
if (contactId !== void 0) {
|
|
3840
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
3841
|
-
}
|
|
3842
3663
|
if (conversationId !== void 0) {
|
|
3843
3664
|
localVarQueryParameter["conversationId"] = conversationId;
|
|
3844
3665
|
}
|
|
3666
|
+
if (searchString !== void 0) {
|
|
3667
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
3668
|
+
}
|
|
3845
3669
|
if (cursor !== void 0) {
|
|
3846
3670
|
localVarQueryParameter["cursor"] = cursor;
|
|
3847
3671
|
}
|
|
@@ -4379,19 +4203,6 @@ var UnboundApiFp = function(configuration) {
|
|
|
4379
4203
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
4380
4204
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4381
4205
|
},
|
|
4382
|
-
/**
|
|
4383
|
-
* Conversations Create
|
|
4384
|
-
* @summary Conversations Create
|
|
4385
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
4386
|
-
* @param {*} [options] Override http request option.
|
|
4387
|
-
* @throws {RequiredError}
|
|
4388
|
-
*/
|
|
4389
|
-
async conversationsCreate(aPIConversationCreate, options) {
|
|
4390
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(aPIConversationCreate, options);
|
|
4391
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4392
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
4393
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4394
|
-
},
|
|
4395
4206
|
/**
|
|
4396
4207
|
* Conversations Get
|
|
4397
4208
|
* @summary Conversations Get
|
|
@@ -4406,7 +4217,7 @@ var UnboundApiFp = function(configuration) {
|
|
|
4406
4217
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4407
4218
|
},
|
|
4408
4219
|
/**
|
|
4409
|
-
* List all conversations,
|
|
4220
|
+
* List all conversations, must filter by contact_id
|
|
4410
4221
|
* @summary Conversations List
|
|
4411
4222
|
* @param {string | null} [searchString]
|
|
4412
4223
|
* @param {string | null} [contactId]
|
|
@@ -4424,20 +4235,6 @@ var UnboundApiFp = function(configuration) {
|
|
|
4424
4235
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
4425
4236
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4426
4237
|
},
|
|
4427
|
-
/**
|
|
4428
|
-
* Conversations Update
|
|
4429
|
-
* @summary Conversations Update
|
|
4430
|
-
* @param {string} conversationId
|
|
4431
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
4432
|
-
* @param {*} [options] Override http request option.
|
|
4433
|
-
* @throws {RequiredError}
|
|
4434
|
-
*/
|
|
4435
|
-
async conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
4436
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, aPIConversationUpdate, options);
|
|
4437
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4438
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
4439
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4440
|
-
},
|
|
4441
4238
|
/**
|
|
4442
4239
|
* Emails Create
|
|
4443
4240
|
* @summary Emails Create
|
|
@@ -4579,19 +4376,18 @@ var UnboundApiFp = function(configuration) {
|
|
|
4579
4376
|
/**
|
|
4580
4377
|
* Messages List
|
|
4581
4378
|
* @summary Messages List
|
|
4379
|
+
* @param {string} [conversationId]
|
|
4582
4380
|
* @param {string | null} [searchString]
|
|
4583
|
-
* @param {string | null} [contactId]
|
|
4584
|
-
* @param {string | null} [conversationId]
|
|
4585
4381
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4586
4382
|
* @param {number} [limit]
|
|
4587
4383
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4588
|
-
* @param {
|
|
4384
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
4589
4385
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4590
4386
|
* @param {*} [options] Override http request option.
|
|
4591
4387
|
* @throws {RequiredError}
|
|
4592
4388
|
*/
|
|
4593
|
-
async messagesList(
|
|
4594
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(
|
|
4389
|
+
async messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4390
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
4595
4391
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4596
4392
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
4597
4393
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4895,16 +4691,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4895
4691
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
4896
4692
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
4897
4693
|
},
|
|
4898
|
-
/**
|
|
4899
|
-
* Conversations Create
|
|
4900
|
-
* @summary Conversations Create
|
|
4901
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
4902
|
-
* @param {*} [options] Override http request option.
|
|
4903
|
-
* @throws {RequiredError}
|
|
4904
|
-
*/
|
|
4905
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
4906
|
-
return localVarFp.conversationsCreate(aPIConversationCreate, options).then((request) => request(axios, basePath));
|
|
4907
|
-
},
|
|
4908
4694
|
/**
|
|
4909
4695
|
* Conversations Get
|
|
4910
4696
|
* @summary Conversations Get
|
|
@@ -4916,7 +4702,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4916
4702
|
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
4917
4703
|
},
|
|
4918
4704
|
/**
|
|
4919
|
-
* List all conversations,
|
|
4705
|
+
* List all conversations, must filter by contact_id
|
|
4920
4706
|
* @summary Conversations List
|
|
4921
4707
|
* @param {string | null} [searchString]
|
|
4922
4708
|
* @param {string | null} [contactId]
|
|
@@ -4931,17 +4717,6 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4931
4717
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4932
4718
|
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
4933
4719
|
},
|
|
4934
|
-
/**
|
|
4935
|
-
* Conversations Update
|
|
4936
|
-
* @summary Conversations Update
|
|
4937
|
-
* @param {string} conversationId
|
|
4938
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
4939
|
-
* @param {*} [options] Override http request option.
|
|
4940
|
-
* @throws {RequiredError}
|
|
4941
|
-
*/
|
|
4942
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
4943
|
-
return localVarFp.conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(axios, basePath));
|
|
4944
|
-
},
|
|
4945
4720
|
/**
|
|
4946
4721
|
* Emails Create
|
|
4947
4722
|
* @summary Emails Create
|
|
@@ -5053,19 +4828,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
5053
4828
|
/**
|
|
5054
4829
|
* Messages List
|
|
5055
4830
|
* @summary Messages List
|
|
4831
|
+
* @param {string} [conversationId]
|
|
5056
4832
|
* @param {string | null} [searchString]
|
|
5057
|
-
* @param {string | null} [contactId]
|
|
5058
|
-
* @param {string | null} [conversationId]
|
|
5059
4833
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5060
4834
|
* @param {number} [limit]
|
|
5061
4835
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5062
|
-
* @param {
|
|
4836
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
5063
4837
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
5064
4838
|
* @param {*} [options] Override http request option.
|
|
5065
4839
|
* @throws {RequiredError}
|
|
5066
4840
|
*/
|
|
5067
|
-
messagesList(
|
|
5068
|
-
return localVarFp.messagesList(
|
|
4841
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4842
|
+
return localVarFp.messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
5069
4843
|
},
|
|
5070
4844
|
/**
|
|
5071
4845
|
* Phones Create
|
|
@@ -5344,17 +5118,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5344
5118
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
5345
5119
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
5346
5120
|
}
|
|
5347
|
-
/**
|
|
5348
|
-
* Conversations Create
|
|
5349
|
-
* @summary Conversations Create
|
|
5350
|
-
* @param {APIConversationCreate} aPIConversationCreate
|
|
5351
|
-
* @param {*} [options] Override http request option.
|
|
5352
|
-
* @throws {RequiredError}
|
|
5353
|
-
* @memberof UnboundApi
|
|
5354
|
-
*/
|
|
5355
|
-
conversationsCreate(aPIConversationCreate, options) {
|
|
5356
|
-
return UnboundApiFp(this.configuration).conversationsCreate(aPIConversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5357
|
-
}
|
|
5358
5121
|
/**
|
|
5359
5122
|
* Conversations Get
|
|
5360
5123
|
* @summary Conversations Get
|
|
@@ -5367,7 +5130,7 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5367
5130
|
return UnboundApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5368
5131
|
}
|
|
5369
5132
|
/**
|
|
5370
|
-
* List all conversations,
|
|
5133
|
+
* List all conversations, must filter by contact_id
|
|
5371
5134
|
* @summary Conversations List
|
|
5372
5135
|
* @param {string | null} [searchString]
|
|
5373
5136
|
* @param {string | null} [contactId]
|
|
@@ -5383,18 +5146,6 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5383
5146
|
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5384
5147
|
return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
5385
5148
|
}
|
|
5386
|
-
/**
|
|
5387
|
-
* Conversations Update
|
|
5388
|
-
* @summary Conversations Update
|
|
5389
|
-
* @param {string} conversationId
|
|
5390
|
-
* @param {APIConversationUpdate} aPIConversationUpdate
|
|
5391
|
-
* @param {*} [options] Override http request option.
|
|
5392
|
-
* @throws {RequiredError}
|
|
5393
|
-
* @memberof UnboundApi
|
|
5394
|
-
*/
|
|
5395
|
-
conversationsUpdate(conversationId, aPIConversationUpdate, options) {
|
|
5396
|
-
return UnboundApiFp(this.configuration).conversationsUpdate(conversationId, aPIConversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
5397
|
-
}
|
|
5398
5149
|
/**
|
|
5399
5150
|
* Emails Create
|
|
5400
5151
|
* @summary Emails Create
|
|
@@ -5516,20 +5267,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
5516
5267
|
/**
|
|
5517
5268
|
* Messages List
|
|
5518
5269
|
* @summary Messages List
|
|
5270
|
+
* @param {string} [conversationId]
|
|
5519
5271
|
* @param {string | null} [searchString]
|
|
5520
|
-
* @param {string | null} [contactId]
|
|
5521
|
-
* @param {string | null} [conversationId]
|
|
5522
5272
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5523
5273
|
* @param {number} [limit]
|
|
5524
5274
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5525
|
-
* @param {
|
|
5275
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy} [sortBy] Sort key
|
|
5526
5276
|
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
5527
5277
|
* @param {*} [options] Override http request option.
|
|
5528
5278
|
* @throws {RequiredError}
|
|
5529
5279
|
* @memberof UnboundApi
|
|
5530
5280
|
*/
|
|
5531
|
-
messagesList(
|
|
5532
|
-
return UnboundApiFp(this.configuration).messagesList(
|
|
5281
|
+
messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5282
|
+
return UnboundApiFp(this.configuration).messagesList(conversationId, searchString, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
5533
5283
|
}
|
|
5534
5284
|
/**
|
|
5535
5285
|
* Phones Create
|
|
@@ -5755,6 +5505,7 @@ export {
|
|
|
5755
5505
|
AccountsApiAxiosParamCreator,
|
|
5756
5506
|
AccountsApiFactory,
|
|
5757
5507
|
AccountsApiFp,
|
|
5508
|
+
BotApiParticipantTypeEnum,
|
|
5758
5509
|
Configuration,
|
|
5759
5510
|
ContactListingType,
|
|
5760
5511
|
ContactsApi,
|
|
@@ -5766,6 +5517,8 @@ export {
|
|
|
5766
5517
|
ConversationsApiAxiosParamCreator,
|
|
5767
5518
|
ConversationsApiFactory,
|
|
5768
5519
|
ConversationsApiFp,
|
|
5520
|
+
ExternalStaffApiStaffTypeEnum,
|
|
5521
|
+
GuestApiParticipantTypeEnum,
|
|
5769
5522
|
HostawayApi,
|
|
5770
5523
|
HostawayApiAxiosParamCreator,
|
|
5771
5524
|
HostawayApiFactory,
|
|
@@ -5774,6 +5527,7 @@ export {
|
|
|
5774
5527
|
InquiriesApiAxiosParamCreator,
|
|
5775
5528
|
InquiriesApiFactory,
|
|
5776
5529
|
InquiriesApiFp,
|
|
5530
|
+
InternalStaffApiStaffTypeEnum,
|
|
5777
5531
|
ListingsApi,
|
|
5778
5532
|
ListingsApiAxiosParamCreator,
|
|
5779
5533
|
ListingsApiFactory,
|
|
@@ -5785,11 +5539,14 @@ export {
|
|
|
5785
5539
|
MessageDirection,
|
|
5786
5540
|
MessageStatus,
|
|
5787
5541
|
PaginationDirection,
|
|
5788
|
-
|
|
5542
|
+
ProviderCommunicationType,
|
|
5543
|
+
ProviderConversationDataApiConversationTypeEnum,
|
|
5544
|
+
ProviderStaffApiStaffTypeEnum,
|
|
5789
5545
|
ProvidersApi,
|
|
5790
5546
|
ProvidersApiAxiosParamCreator,
|
|
5791
5547
|
ProvidersApiFactory,
|
|
5792
5548
|
ProvidersApiFp,
|
|
5549
|
+
RentalProviderMessageApiMessageTypeEnum,
|
|
5793
5550
|
ReservationChannelTypes,
|
|
5794
5551
|
ReservationStatus,
|
|
5795
5552
|
ReservationsApi,
|
|
@@ -5799,18 +5556,17 @@ export {
|
|
|
5799
5556
|
SortOrder,
|
|
5800
5557
|
SrcResourceModelsContactsModelContactsModelContactSortBy,
|
|
5801
5558
|
SrcResourceModelsConversationsModelConversationsModelConversationSortBy,
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum,
|
|
5806
|
-
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum,
|
|
5807
|
-
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum,
|
|
5559
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1MessageTypeEnum,
|
|
5560
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2MessageTypeEnum,
|
|
5561
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi3MessageTypeEnum,
|
|
5808
5562
|
SrcResourceModelsListingsModelListingBaseSortBy,
|
|
5809
|
-
|
|
5563
|
+
SrcResourceModelsMessagesModelMessagesModelBaseMessageSortBy,
|
|
5810
5564
|
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
5565
|
+
StaffApiParticipantTypeEnum,
|
|
5566
|
+
TwilioConversationDataApiConversationTypeEnum,
|
|
5811
5567
|
TwilioInboundSenderTypeDataApiDirectionEnum,
|
|
5812
|
-
TwilioMessageApiConversationTypeEnum,
|
|
5813
5568
|
TwilioOutboundSenderTypeDataApiDirectionEnum,
|
|
5569
|
+
TwilioProviderMessageApiMessageTypeEnum,
|
|
5814
5570
|
UnboundApi,
|
|
5815
5571
|
UnboundApiAxiosParamCreator,
|
|
5816
5572
|
UnboundApiFactory,
|