@ember-home/unbound-ts-client 0.0.25 → 0.0.26
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 +1852 -420
- package/dist/index.d.ts +1852 -420
- package/dist/index.js +1373 -208
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1290 -125
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -87,14 +87,34 @@ var ConversationStatus = {
|
|
|
87
87
|
Open: "OPEN",
|
|
88
88
|
Closed: "CLOSED"
|
|
89
89
|
};
|
|
90
|
+
var ListingSortBy = {
|
|
91
|
+
Title: "title"
|
|
92
|
+
};
|
|
93
|
+
var MessageDirection = {
|
|
94
|
+
Inbound: "INBOUND",
|
|
95
|
+
Outbound: "OUTBOUND"
|
|
96
|
+
};
|
|
97
|
+
var MessageStatus = {
|
|
98
|
+
Pending: "PENDING",
|
|
99
|
+
Sent: "SENT",
|
|
100
|
+
Delivered: "DELIVERED",
|
|
101
|
+
Read: "READ",
|
|
102
|
+
Failed: "FAILED"
|
|
103
|
+
};
|
|
90
104
|
var PaginationDirection = {
|
|
91
105
|
Forward: "forward",
|
|
92
106
|
Backward: "backward"
|
|
93
107
|
};
|
|
108
|
+
var ProviderMessageApiConversationTypeEnum = {
|
|
109
|
+
Provider: "PROVIDER"
|
|
110
|
+
};
|
|
94
111
|
var SortOrder = {
|
|
95
112
|
Asc: "asc",
|
|
96
113
|
Desc: "desc"
|
|
97
114
|
};
|
|
115
|
+
var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
|
|
116
|
+
UpdatedAt: "updated_at"
|
|
117
|
+
};
|
|
98
118
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
|
|
99
119
|
Twilio: "TWILIO"
|
|
100
120
|
};
|
|
@@ -113,6 +133,21 @@ var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum =
|
|
|
113
133
|
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = {
|
|
114
134
|
Email: "EMAIL"
|
|
115
135
|
};
|
|
136
|
+
var SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy = {
|
|
137
|
+
CreatedAt: "created_at"
|
|
138
|
+
};
|
|
139
|
+
var SrcResourceModelsReservationsModelReservationBaseModelSortBy = {
|
|
140
|
+
ArrivalAtPropertyTz: "arrival_at_property_tz"
|
|
141
|
+
};
|
|
142
|
+
var TwilioInboundSenderTypeDataApiDirectionEnum = {
|
|
143
|
+
Inbound: "INBOUND"
|
|
144
|
+
};
|
|
145
|
+
var TwilioMessageApiConversationTypeEnum = {
|
|
146
|
+
Twilio: "TWILIO"
|
|
147
|
+
};
|
|
148
|
+
var TwilioOutboundSenderTypeDataApiDirectionEnum = {
|
|
149
|
+
Outbound: "OUTBOUND"
|
|
150
|
+
};
|
|
116
151
|
var AccountsApiAxiosParamCreator = function(configuration) {
|
|
117
152
|
return {
|
|
118
153
|
/**
|
|
@@ -792,6 +827,36 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
792
827
|
options: localVarRequestOptions
|
|
793
828
|
};
|
|
794
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @summary Emails Update
|
|
833
|
+
* @param {string} emailId
|
|
834
|
+
* @param {EmailUpdate} emailUpdate
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
emailsUpdate: async (emailId, emailUpdate, options = {}) => {
|
|
839
|
+
assertParamExists("emailsUpdate", "emailId", emailId);
|
|
840
|
+
assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
|
|
841
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
842
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
843
|
+
let baseOptions;
|
|
844
|
+
if (configuration) {
|
|
845
|
+
baseOptions = configuration.baseOptions;
|
|
846
|
+
}
|
|
847
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
848
|
+
const localVarHeaderParameter = {};
|
|
849
|
+
const localVarQueryParameter = {};
|
|
850
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
853
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
854
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
|
|
855
|
+
return {
|
|
856
|
+
url: toPathString(localVarUrlObj),
|
|
857
|
+
options: localVarRequestOptions
|
|
858
|
+
};
|
|
859
|
+
},
|
|
795
860
|
/**
|
|
796
861
|
*
|
|
797
862
|
* @summary Phone_numbers Create
|
|
@@ -847,6 +912,36 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
847
912
|
url: toPathString(localVarUrlObj),
|
|
848
913
|
options: localVarRequestOptions
|
|
849
914
|
};
|
|
915
|
+
},
|
|
916
|
+
/**
|
|
917
|
+
*
|
|
918
|
+
* @summary Phone_numbers Update
|
|
919
|
+
* @param {string} phoneNumberId
|
|
920
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
|
|
925
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
|
|
926
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
|
|
927
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
928
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
929
|
+
let baseOptions;
|
|
930
|
+
if (configuration) {
|
|
931
|
+
baseOptions = configuration.baseOptions;
|
|
932
|
+
}
|
|
933
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
934
|
+
const localVarHeaderParameter = {};
|
|
935
|
+
const localVarQueryParameter = {};
|
|
936
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
937
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
939
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
940
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
|
|
941
|
+
return {
|
|
942
|
+
url: toPathString(localVarUrlObj),
|
|
943
|
+
options: localVarRequestOptions
|
|
944
|
+
};
|
|
850
945
|
}
|
|
851
946
|
};
|
|
852
947
|
};
|
|
@@ -1037,6 +1132,20 @@ var ContactsApiFp = function(configuration) {
|
|
|
1037
1132
|
const localVarOperationServerBasePath = operationServerMap["ContactsApi.emailsDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1038
1133
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1039
1134
|
},
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
* @summary Emails Update
|
|
1138
|
+
* @param {string} emailId
|
|
1139
|
+
* @param {EmailUpdate} emailUpdate
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
async emailsUpdate(emailId, emailUpdate, options) {
|
|
1144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
|
|
1145
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1146
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.emailsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1147
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1148
|
+
},
|
|
1040
1149
|
/**
|
|
1041
1150
|
*
|
|
1042
1151
|
* @summary Phone_numbers Create
|
|
@@ -1063,6 +1172,20 @@ var ContactsApiFp = function(configuration) {
|
|
|
1063
1172
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1064
1173
|
const localVarOperationServerBasePath = operationServerMap["ContactsApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1065
1174
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1175
|
+
},
|
|
1176
|
+
/**
|
|
1177
|
+
*
|
|
1178
|
+
* @summary Phone_numbers Update
|
|
1179
|
+
* @param {string} phoneNumberId
|
|
1180
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
1181
|
+
* @param {*} [options] Override http request option.
|
|
1182
|
+
* @throws {RequiredError}
|
|
1183
|
+
*/
|
|
1184
|
+
async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
1185
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
|
|
1186
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1187
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.phoneNumbersUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1188
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1066
1189
|
}
|
|
1067
1190
|
};
|
|
1068
1191
|
};
|
|
@@ -1214,6 +1337,17 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
1214
1337
|
emailsDelete(emailId, options) {
|
|
1215
1338
|
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
1216
1339
|
},
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @summary Emails Update
|
|
1343
|
+
* @param {string} emailId
|
|
1344
|
+
* @param {EmailUpdate} emailUpdate
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
1349
|
+
return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
|
|
1350
|
+
},
|
|
1217
1351
|
/**
|
|
1218
1352
|
*
|
|
1219
1353
|
* @summary Phone_numbers Create
|
|
@@ -1234,6 +1368,17 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
1234
1368
|
*/
|
|
1235
1369
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
1236
1370
|
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
1371
|
+
},
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
* @summary Phone_numbers Update
|
|
1375
|
+
* @param {string} phoneNumberId
|
|
1376
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
*/
|
|
1380
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
1381
|
+
return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
|
|
1237
1382
|
}
|
|
1238
1383
|
};
|
|
1239
1384
|
};
|
|
@@ -1396,6 +1541,18 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1396
1541
|
emailsDelete(emailId, options) {
|
|
1397
1542
|
return ContactsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
1398
1543
|
}
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @summary Emails Update
|
|
1547
|
+
* @param {string} emailId
|
|
1548
|
+
* @param {EmailUpdate} emailUpdate
|
|
1549
|
+
* @param {*} [options] Override http request option.
|
|
1550
|
+
* @throws {RequiredError}
|
|
1551
|
+
* @memberof ContactsApi
|
|
1552
|
+
*/
|
|
1553
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
1554
|
+
return ContactsApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1555
|
+
}
|
|
1399
1556
|
/**
|
|
1400
1557
|
*
|
|
1401
1558
|
* @summary Phone_numbers Create
|
|
@@ -1419,6 +1576,18 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1419
1576
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
1420
1577
|
return ContactsApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
1421
1578
|
}
|
|
1579
|
+
/**
|
|
1580
|
+
*
|
|
1581
|
+
* @summary Phone_numbers Update
|
|
1582
|
+
* @param {string} phoneNumberId
|
|
1583
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
1584
|
+
* @param {*} [options] Override http request option.
|
|
1585
|
+
* @throws {RequiredError}
|
|
1586
|
+
* @memberof ContactsApi
|
|
1587
|
+
*/
|
|
1588
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
1589
|
+
return ContactsApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1590
|
+
}
|
|
1422
1591
|
};
|
|
1423
1592
|
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1424
1593
|
return {
|
|
@@ -1479,11 +1648,17 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1479
1648
|
/**
|
|
1480
1649
|
* List all conversations, optionally filtered by contact_id
|
|
1481
1650
|
* @summary Conversations List
|
|
1482
|
-
* @param {string} [
|
|
1651
|
+
* @param {string | null} [searchString]
|
|
1652
|
+
* @param {string | null} [contactId]
|
|
1653
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1654
|
+
* @param {number} [limit]
|
|
1655
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1656
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
1657
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1483
1658
|
* @param {*} [options] Override http request option.
|
|
1484
1659
|
* @throws {RequiredError}
|
|
1485
1660
|
*/
|
|
1486
|
-
conversationsList: async (contactId, options = {}) => {
|
|
1661
|
+
conversationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
1487
1662
|
const localVarPath = `/conversations`;
|
|
1488
1663
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1489
1664
|
let baseOptions;
|
|
@@ -1493,9 +1668,27 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1493
1668
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1494
1669
|
const localVarHeaderParameter = {};
|
|
1495
1670
|
const localVarQueryParameter = {};
|
|
1671
|
+
if (searchString !== void 0) {
|
|
1672
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
1673
|
+
}
|
|
1496
1674
|
if (contactId !== void 0) {
|
|
1497
1675
|
localVarQueryParameter["contactId"] = contactId;
|
|
1498
1676
|
}
|
|
1677
|
+
if (cursor !== void 0) {
|
|
1678
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
1679
|
+
}
|
|
1680
|
+
if (limit !== void 0) {
|
|
1681
|
+
localVarQueryParameter["limit"] = limit;
|
|
1682
|
+
}
|
|
1683
|
+
if (pageDir !== void 0) {
|
|
1684
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
1685
|
+
}
|
|
1686
|
+
if (sortBy !== void 0) {
|
|
1687
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
1688
|
+
}
|
|
1689
|
+
if (sortOrder !== void 0) {
|
|
1690
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1691
|
+
}
|
|
1499
1692
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1500
1693
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1501
1694
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -1533,6 +1726,118 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
|
1533
1726
|
url: toPathString(localVarUrlObj),
|
|
1534
1727
|
options: localVarRequestOptions
|
|
1535
1728
|
};
|
|
1729
|
+
},
|
|
1730
|
+
/**
|
|
1731
|
+
*
|
|
1732
|
+
* @summary Messages Create
|
|
1733
|
+
* @param {string} conversationId
|
|
1734
|
+
* @param {MessageCreate} messageCreate
|
|
1735
|
+
* @param {*} [options] Override http request option.
|
|
1736
|
+
* @throws {RequiredError}
|
|
1737
|
+
*/
|
|
1738
|
+
messagesCreate: async (conversationId, messageCreate, options = {}) => {
|
|
1739
|
+
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
1740
|
+
assertParamExists("messagesCreate", "messageCreate", messageCreate);
|
|
1741
|
+
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1742
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1743
|
+
let baseOptions;
|
|
1744
|
+
if (configuration) {
|
|
1745
|
+
baseOptions = configuration.baseOptions;
|
|
1746
|
+
}
|
|
1747
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1748
|
+
const localVarHeaderParameter = {};
|
|
1749
|
+
const localVarQueryParameter = {};
|
|
1750
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1751
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1752
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1753
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1754
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messageCreate, localVarRequestOptions, configuration);
|
|
1755
|
+
return {
|
|
1756
|
+
url: toPathString(localVarUrlObj),
|
|
1757
|
+
options: localVarRequestOptions
|
|
1758
|
+
};
|
|
1759
|
+
},
|
|
1760
|
+
/**
|
|
1761
|
+
*
|
|
1762
|
+
* @summary Messages Get
|
|
1763
|
+
* @param {string} messageId
|
|
1764
|
+
* @param {*} [options] Override http request option.
|
|
1765
|
+
* @throws {RequiredError}
|
|
1766
|
+
*/
|
|
1767
|
+
messagesGet: async (messageId, options = {}) => {
|
|
1768
|
+
assertParamExists("messagesGet", "messageId", messageId);
|
|
1769
|
+
const localVarPath = `/messages/{messageId}`.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
|
|
1770
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1771
|
+
let baseOptions;
|
|
1772
|
+
if (configuration) {
|
|
1773
|
+
baseOptions = configuration.baseOptions;
|
|
1774
|
+
}
|
|
1775
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1776
|
+
const localVarHeaderParameter = {};
|
|
1777
|
+
const localVarQueryParameter = {};
|
|
1778
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1779
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1780
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1781
|
+
return {
|
|
1782
|
+
url: toPathString(localVarUrlObj),
|
|
1783
|
+
options: localVarRequestOptions
|
|
1784
|
+
};
|
|
1785
|
+
},
|
|
1786
|
+
/**
|
|
1787
|
+
*
|
|
1788
|
+
* @summary Messages List
|
|
1789
|
+
* @param {string | null} [searchString]
|
|
1790
|
+
* @param {string | null} [contactId]
|
|
1791
|
+
* @param {string | null} [conversationId]
|
|
1792
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1793
|
+
* @param {number} [limit]
|
|
1794
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1795
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
1796
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1797
|
+
* @param {*} [options] Override http request option.
|
|
1798
|
+
* @throws {RequiredError}
|
|
1799
|
+
*/
|
|
1800
|
+
messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
1801
|
+
const localVarPath = `/messages`;
|
|
1802
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1803
|
+
let baseOptions;
|
|
1804
|
+
if (configuration) {
|
|
1805
|
+
baseOptions = configuration.baseOptions;
|
|
1806
|
+
}
|
|
1807
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1808
|
+
const localVarHeaderParameter = {};
|
|
1809
|
+
const localVarQueryParameter = {};
|
|
1810
|
+
if (searchString !== void 0) {
|
|
1811
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
1812
|
+
}
|
|
1813
|
+
if (contactId !== void 0) {
|
|
1814
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
1815
|
+
}
|
|
1816
|
+
if (conversationId !== void 0) {
|
|
1817
|
+
localVarQueryParameter["conversationId"] = conversationId;
|
|
1818
|
+
}
|
|
1819
|
+
if (cursor !== void 0) {
|
|
1820
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
1821
|
+
}
|
|
1822
|
+
if (limit !== void 0) {
|
|
1823
|
+
localVarQueryParameter["limit"] = limit;
|
|
1824
|
+
}
|
|
1825
|
+
if (pageDir !== void 0) {
|
|
1826
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
1827
|
+
}
|
|
1828
|
+
if (sortBy !== void 0) {
|
|
1829
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
1830
|
+
}
|
|
1831
|
+
if (sortOrder !== void 0) {
|
|
1832
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
1833
|
+
}
|
|
1834
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1835
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1836
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1837
|
+
return {
|
|
1838
|
+
url: toPathString(localVarUrlObj),
|
|
1839
|
+
options: localVarRequestOptions
|
|
1840
|
+
};
|
|
1536
1841
|
}
|
|
1537
1842
|
};
|
|
1538
1843
|
};
|
|
@@ -1568,12 +1873,18 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1568
1873
|
/**
|
|
1569
1874
|
* List all conversations, optionally filtered by contact_id
|
|
1570
1875
|
* @summary Conversations List
|
|
1571
|
-
* @param {string} [
|
|
1876
|
+
* @param {string | null} [searchString]
|
|
1877
|
+
* @param {string | null} [contactId]
|
|
1878
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1879
|
+
* @param {number} [limit]
|
|
1880
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1881
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
1882
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1572
1883
|
* @param {*} [options] Override http request option.
|
|
1573
1884
|
* @throws {RequiredError}
|
|
1574
1885
|
*/
|
|
1575
|
-
async conversationsList(contactId, options) {
|
|
1576
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
1886
|
+
async conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1887
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
1577
1888
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1578
1889
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
1579
1890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1591,21 +1902,68 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1591
1902
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1592
1903
|
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1593
1904
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1594
|
-
}
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
1598
|
-
const localVarFp = ConversationsApiFp(configuration);
|
|
1599
|
-
return {
|
|
1905
|
+
},
|
|
1600
1906
|
/**
|
|
1601
1907
|
*
|
|
1602
|
-
* @summary
|
|
1603
|
-
* @param {
|
|
1908
|
+
* @summary Messages Create
|
|
1909
|
+
* @param {string} conversationId
|
|
1910
|
+
* @param {MessageCreate} messageCreate
|
|
1604
1911
|
* @param {*} [options] Override http request option.
|
|
1605
1912
|
* @throws {RequiredError}
|
|
1606
1913
|
*/
|
|
1607
|
-
|
|
1608
|
-
|
|
1914
|
+
async messagesCreate(conversationId, messageCreate, options) {
|
|
1915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
|
|
1916
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1917
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1918
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1919
|
+
},
|
|
1920
|
+
/**
|
|
1921
|
+
*
|
|
1922
|
+
* @summary Messages Get
|
|
1923
|
+
* @param {string} messageId
|
|
1924
|
+
* @param {*} [options] Override http request option.
|
|
1925
|
+
* @throws {RequiredError}
|
|
1926
|
+
*/
|
|
1927
|
+
async messagesGet(messageId, options) {
|
|
1928
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
1929
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1930
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1931
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1932
|
+
},
|
|
1933
|
+
/**
|
|
1934
|
+
*
|
|
1935
|
+
* @summary Messages List
|
|
1936
|
+
* @param {string | null} [searchString]
|
|
1937
|
+
* @param {string | null} [contactId]
|
|
1938
|
+
* @param {string | null} [conversationId]
|
|
1939
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1940
|
+
* @param {number} [limit]
|
|
1941
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1942
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
1943
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1948
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
1949
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1950
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
1951
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1952
|
+
}
|
|
1953
|
+
};
|
|
1954
|
+
};
|
|
1955
|
+
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
1956
|
+
const localVarFp = ConversationsApiFp(configuration);
|
|
1957
|
+
return {
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @summary Conversations Create
|
|
1961
|
+
* @param {ConversationCreate} conversationCreate
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
*/
|
|
1965
|
+
conversationsCreate(conversationCreate, options) {
|
|
1966
|
+
return localVarFp.conversationsCreate(conversationCreate, options).then((request) => request(axios, basePath));
|
|
1609
1967
|
},
|
|
1610
1968
|
/**
|
|
1611
1969
|
*
|
|
@@ -1620,12 +1978,18 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1620
1978
|
/**
|
|
1621
1979
|
* List all conversations, optionally filtered by contact_id
|
|
1622
1980
|
* @summary Conversations List
|
|
1623
|
-
* @param {string} [
|
|
1981
|
+
* @param {string | null} [searchString]
|
|
1982
|
+
* @param {string | null} [contactId]
|
|
1983
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1984
|
+
* @param {number} [limit]
|
|
1985
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
1986
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
1987
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1624
1988
|
* @param {*} [options] Override http request option.
|
|
1625
1989
|
* @throws {RequiredError}
|
|
1626
1990
|
*/
|
|
1627
|
-
conversationsList(contactId, options) {
|
|
1628
|
-
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
1991
|
+
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
1992
|
+
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
1629
1993
|
},
|
|
1630
1994
|
/**
|
|
1631
1995
|
*
|
|
@@ -1637,6 +2001,44 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1637
2001
|
*/
|
|
1638
2002
|
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1639
2003
|
return localVarFp.conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(axios, basePath));
|
|
2004
|
+
},
|
|
2005
|
+
/**
|
|
2006
|
+
*
|
|
2007
|
+
* @summary Messages Create
|
|
2008
|
+
* @param {string} conversationId
|
|
2009
|
+
* @param {MessageCreate} messageCreate
|
|
2010
|
+
* @param {*} [options] Override http request option.
|
|
2011
|
+
* @throws {RequiredError}
|
|
2012
|
+
*/
|
|
2013
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
2014
|
+
return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
|
|
2015
|
+
},
|
|
2016
|
+
/**
|
|
2017
|
+
*
|
|
2018
|
+
* @summary Messages Get
|
|
2019
|
+
* @param {string} messageId
|
|
2020
|
+
* @param {*} [options] Override http request option.
|
|
2021
|
+
* @throws {RequiredError}
|
|
2022
|
+
*/
|
|
2023
|
+
messagesGet(messageId, options) {
|
|
2024
|
+
return localVarFp.messagesGet(messageId, options).then((request) => request(axios, basePath));
|
|
2025
|
+
},
|
|
2026
|
+
/**
|
|
2027
|
+
*
|
|
2028
|
+
* @summary Messages List
|
|
2029
|
+
* @param {string | null} [searchString]
|
|
2030
|
+
* @param {string | null} [contactId]
|
|
2031
|
+
* @param {string | null} [conversationId]
|
|
2032
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2033
|
+
* @param {number} [limit]
|
|
2034
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2035
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
2036
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2037
|
+
* @param {*} [options] Override http request option.
|
|
2038
|
+
* @throws {RequiredError}
|
|
2039
|
+
*/
|
|
2040
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2041
|
+
return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
1640
2042
|
}
|
|
1641
2043
|
};
|
|
1642
2044
|
};
|
|
@@ -1666,13 +2068,19 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
1666
2068
|
/**
|
|
1667
2069
|
* List all conversations, optionally filtered by contact_id
|
|
1668
2070
|
* @summary Conversations List
|
|
1669
|
-
* @param {string} [
|
|
2071
|
+
* @param {string | null} [searchString]
|
|
2072
|
+
* @param {string | null} [contactId]
|
|
2073
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2074
|
+
* @param {number} [limit]
|
|
2075
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2076
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
2077
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1670
2078
|
* @param {*} [options] Override http request option.
|
|
1671
2079
|
* @throws {RequiredError}
|
|
1672
2080
|
* @memberof ConversationsApi
|
|
1673
2081
|
*/
|
|
1674
|
-
conversationsList(contactId, options) {
|
|
1675
|
-
return ConversationsApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
2082
|
+
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2083
|
+
return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
1676
2084
|
}
|
|
1677
2085
|
/**
|
|
1678
2086
|
*
|
|
@@ -1686,6 +2094,47 @@ var ConversationsApi = class extends BaseAPI {
|
|
|
1686
2094
|
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1687
2095
|
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1688
2096
|
}
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @summary Messages Create
|
|
2100
|
+
* @param {string} conversationId
|
|
2101
|
+
* @param {MessageCreate} messageCreate
|
|
2102
|
+
* @param {*} [options] Override http request option.
|
|
2103
|
+
* @throws {RequiredError}
|
|
2104
|
+
* @memberof ConversationsApi
|
|
2105
|
+
*/
|
|
2106
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
2107
|
+
return ConversationsApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
*
|
|
2111
|
+
* @summary Messages Get
|
|
2112
|
+
* @param {string} messageId
|
|
2113
|
+
* @param {*} [options] Override http request option.
|
|
2114
|
+
* @throws {RequiredError}
|
|
2115
|
+
* @memberof ConversationsApi
|
|
2116
|
+
*/
|
|
2117
|
+
messagesGet(messageId, options) {
|
|
2118
|
+
return ConversationsApiFp(this.configuration).messagesGet(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
*
|
|
2122
|
+
* @summary Messages List
|
|
2123
|
+
* @param {string | null} [searchString]
|
|
2124
|
+
* @param {string | null} [contactId]
|
|
2125
|
+
* @param {string | null} [conversationId]
|
|
2126
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2127
|
+
* @param {number} [limit]
|
|
2128
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2129
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
2130
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2131
|
+
* @param {*} [options] Override http request option.
|
|
2132
|
+
* @throws {RequiredError}
|
|
2133
|
+
* @memberof ConversationsApi
|
|
2134
|
+
*/
|
|
2135
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2136
|
+
return ConversationsApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2137
|
+
}
|
|
1689
2138
|
};
|
|
1690
2139
|
var EmailsApiAxiosParamCreator = function(configuration) {
|
|
1691
2140
|
return {
|
|
@@ -1744,6 +2193,36 @@ var EmailsApiAxiosParamCreator = function(configuration) {
|
|
|
1744
2193
|
url: toPathString(localVarUrlObj),
|
|
1745
2194
|
options: localVarRequestOptions
|
|
1746
2195
|
};
|
|
2196
|
+
},
|
|
2197
|
+
/**
|
|
2198
|
+
*
|
|
2199
|
+
* @summary Emails Update
|
|
2200
|
+
* @param {string} emailId
|
|
2201
|
+
* @param {EmailUpdate} emailUpdate
|
|
2202
|
+
* @param {*} [options] Override http request option.
|
|
2203
|
+
* @throws {RequiredError}
|
|
2204
|
+
*/
|
|
2205
|
+
emailsUpdate: async (emailId, emailUpdate, options = {}) => {
|
|
2206
|
+
assertParamExists("emailsUpdate", "emailId", emailId);
|
|
2207
|
+
assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
|
|
2208
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
2209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2210
|
+
let baseOptions;
|
|
2211
|
+
if (configuration) {
|
|
2212
|
+
baseOptions = configuration.baseOptions;
|
|
2213
|
+
}
|
|
2214
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2215
|
+
const localVarHeaderParameter = {};
|
|
2216
|
+
const localVarQueryParameter = {};
|
|
2217
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2218
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2220
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2221
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
|
|
2222
|
+
return {
|
|
2223
|
+
url: toPathString(localVarUrlObj),
|
|
2224
|
+
options: localVarRequestOptions
|
|
2225
|
+
};
|
|
1747
2226
|
}
|
|
1748
2227
|
};
|
|
1749
2228
|
};
|
|
@@ -1776,6 +2255,20 @@ var EmailsApiFp = function(configuration) {
|
|
|
1776
2255
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1777
2256
|
const localVarOperationServerBasePath = operationServerMap["EmailsApi.emailsDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1778
2257
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2258
|
+
},
|
|
2259
|
+
/**
|
|
2260
|
+
*
|
|
2261
|
+
* @summary Emails Update
|
|
2262
|
+
* @param {string} emailId
|
|
2263
|
+
* @param {EmailUpdate} emailUpdate
|
|
2264
|
+
* @param {*} [options] Override http request option.
|
|
2265
|
+
* @throws {RequiredError}
|
|
2266
|
+
*/
|
|
2267
|
+
async emailsUpdate(emailId, emailUpdate, options) {
|
|
2268
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
|
|
2269
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2270
|
+
const localVarOperationServerBasePath = operationServerMap["EmailsApi.emailsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
2271
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1779
2272
|
}
|
|
1780
2273
|
};
|
|
1781
2274
|
};
|
|
@@ -1802,6 +2295,17 @@ var EmailsApiFactory = function(configuration, basePath, axios) {
|
|
|
1802
2295
|
*/
|
|
1803
2296
|
emailsDelete(emailId, options) {
|
|
1804
2297
|
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
2298
|
+
},
|
|
2299
|
+
/**
|
|
2300
|
+
*
|
|
2301
|
+
* @summary Emails Update
|
|
2302
|
+
* @param {string} emailId
|
|
2303
|
+
* @param {EmailUpdate} emailUpdate
|
|
2304
|
+
* @param {*} [options] Override http request option.
|
|
2305
|
+
* @throws {RequiredError}
|
|
2306
|
+
*/
|
|
2307
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
2308
|
+
return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
|
|
1805
2309
|
}
|
|
1806
2310
|
};
|
|
1807
2311
|
};
|
|
@@ -1829,6 +2333,18 @@ var EmailsApi = class extends BaseAPI {
|
|
|
1829
2333
|
emailsDelete(emailId, options) {
|
|
1830
2334
|
return EmailsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
1831
2335
|
}
|
|
2336
|
+
/**
|
|
2337
|
+
*
|
|
2338
|
+
* @summary Emails Update
|
|
2339
|
+
* @param {string} emailId
|
|
2340
|
+
* @param {EmailUpdate} emailUpdate
|
|
2341
|
+
* @param {*} [options] Override http request option.
|
|
2342
|
+
* @throws {RequiredError}
|
|
2343
|
+
* @memberof EmailsApi
|
|
2344
|
+
*/
|
|
2345
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
2346
|
+
return EmailsApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2347
|
+
}
|
|
1832
2348
|
};
|
|
1833
2349
|
var HostawayApiAxiosParamCreator = function(configuration) {
|
|
1834
2350
|
return {
|
|
@@ -1990,13 +2506,45 @@ var InquiriesApi = class extends BaseAPI {
|
|
|
1990
2506
|
var ListingsApiAxiosParamCreator = function(configuration) {
|
|
1991
2507
|
return {
|
|
1992
2508
|
/**
|
|
1993
|
-
*
|
|
2509
|
+
*
|
|
2510
|
+
* @summary Listings Get
|
|
2511
|
+
* @param {string} listingId
|
|
2512
|
+
* @param {*} [options] Override http request option.
|
|
2513
|
+
* @throws {RequiredError}
|
|
2514
|
+
*/
|
|
2515
|
+
listingsGet: async (listingId, options = {}) => {
|
|
2516
|
+
assertParamExists("listingsGet", "listingId", listingId);
|
|
2517
|
+
const localVarPath = `/listings/{listingId}`.replace(`{${"listingId"}}`, encodeURIComponent(String(listingId)));
|
|
2518
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2519
|
+
let baseOptions;
|
|
2520
|
+
if (configuration) {
|
|
2521
|
+
baseOptions = configuration.baseOptions;
|
|
2522
|
+
}
|
|
2523
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2524
|
+
const localVarHeaderParameter = {};
|
|
2525
|
+
const localVarQueryParameter = {};
|
|
2526
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2527
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2528
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2529
|
+
return {
|
|
2530
|
+
url: toPathString(localVarUrlObj),
|
|
2531
|
+
options: localVarRequestOptions
|
|
2532
|
+
};
|
|
2533
|
+
},
|
|
2534
|
+
/**
|
|
2535
|
+
*
|
|
1994
2536
|
* @summary Listings List
|
|
1995
|
-
* @param {string} [
|
|
2537
|
+
* @param {string | null} [searchString]
|
|
2538
|
+
* @param {string | null} [contactId]
|
|
2539
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2540
|
+
* @param {number} [limit]
|
|
2541
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2542
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
2543
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
1996
2544
|
* @param {*} [options] Override http request option.
|
|
1997
2545
|
* @throws {RequiredError}
|
|
1998
2546
|
*/
|
|
1999
|
-
listingsList: async (contactId, options = {}) => {
|
|
2547
|
+
listingsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
2000
2548
|
const localVarPath = `/listings`;
|
|
2001
2549
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2002
2550
|
let baseOptions;
|
|
@@ -2006,9 +2554,27 @@ var ListingsApiAxiosParamCreator = function(configuration) {
|
|
|
2006
2554
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2007
2555
|
const localVarHeaderParameter = {};
|
|
2008
2556
|
const localVarQueryParameter = {};
|
|
2557
|
+
if (searchString !== void 0) {
|
|
2558
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
2559
|
+
}
|
|
2009
2560
|
if (contactId !== void 0) {
|
|
2010
2561
|
localVarQueryParameter["contactId"] = contactId;
|
|
2011
2562
|
}
|
|
2563
|
+
if (cursor !== void 0) {
|
|
2564
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
2565
|
+
}
|
|
2566
|
+
if (limit !== void 0) {
|
|
2567
|
+
localVarQueryParameter["limit"] = limit;
|
|
2568
|
+
}
|
|
2569
|
+
if (pageDir !== void 0) {
|
|
2570
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
2571
|
+
}
|
|
2572
|
+
if (sortBy !== void 0) {
|
|
2573
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
2574
|
+
}
|
|
2575
|
+
if (sortOrder !== void 0) {
|
|
2576
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
2577
|
+
}
|
|
2012
2578
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2013
2579
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2014
2580
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2023,14 +2589,33 @@ var ListingsApiFp = function(configuration) {
|
|
|
2023
2589
|
const localVarAxiosParamCreator = ListingsApiAxiosParamCreator(configuration);
|
|
2024
2590
|
return {
|
|
2025
2591
|
/**
|
|
2026
|
-
*
|
|
2592
|
+
*
|
|
2593
|
+
* @summary Listings Get
|
|
2594
|
+
* @param {string} listingId
|
|
2595
|
+
* @param {*} [options] Override http request option.
|
|
2596
|
+
* @throws {RequiredError}
|
|
2597
|
+
*/
|
|
2598
|
+
async listingsGet(listingId, options) {
|
|
2599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
2600
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2601
|
+
const localVarOperationServerBasePath = operationServerMap["ListingsApi.listingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
2602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2603
|
+
},
|
|
2604
|
+
/**
|
|
2605
|
+
*
|
|
2027
2606
|
* @summary Listings List
|
|
2028
|
-
* @param {string} [
|
|
2607
|
+
* @param {string | null} [searchString]
|
|
2608
|
+
* @param {string | null} [contactId]
|
|
2609
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2610
|
+
* @param {number} [limit]
|
|
2611
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2612
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
2613
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2029
2614
|
* @param {*} [options] Override http request option.
|
|
2030
2615
|
* @throws {RequiredError}
|
|
2031
2616
|
*/
|
|
2032
|
-
async listingsList(contactId, options) {
|
|
2033
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
2617
|
+
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2618
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2034
2619
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2035
2620
|
const localVarOperationServerBasePath = operationServerMap["ListingsApi.listingsList"]?.[localVarOperationServerIndex]?.url;
|
|
2036
2621
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2041,28 +2626,61 @@ var ListingsApiFactory = function(configuration, basePath, axios) {
|
|
|
2041
2626
|
const localVarFp = ListingsApiFp(configuration);
|
|
2042
2627
|
return {
|
|
2043
2628
|
/**
|
|
2044
|
-
*
|
|
2629
|
+
*
|
|
2630
|
+
* @summary Listings Get
|
|
2631
|
+
* @param {string} listingId
|
|
2632
|
+
* @param {*} [options] Override http request option.
|
|
2633
|
+
* @throws {RequiredError}
|
|
2634
|
+
*/
|
|
2635
|
+
listingsGet(listingId, options) {
|
|
2636
|
+
return localVarFp.listingsGet(listingId, options).then((request) => request(axios, basePath));
|
|
2637
|
+
},
|
|
2638
|
+
/**
|
|
2639
|
+
*
|
|
2045
2640
|
* @summary Listings List
|
|
2046
|
-
* @param {string} [
|
|
2641
|
+
* @param {string | null} [searchString]
|
|
2642
|
+
* @param {string | null} [contactId]
|
|
2643
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2644
|
+
* @param {number} [limit]
|
|
2645
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2646
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
2647
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2047
2648
|
* @param {*} [options] Override http request option.
|
|
2048
2649
|
* @throws {RequiredError}
|
|
2049
2650
|
*/
|
|
2050
|
-
listingsList(contactId, options) {
|
|
2051
|
-
return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
|
|
2651
|
+
listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2652
|
+
return localVarFp.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2052
2653
|
}
|
|
2053
2654
|
};
|
|
2054
2655
|
};
|
|
2055
2656
|
var ListingsApi = class extends BaseAPI {
|
|
2056
2657
|
/**
|
|
2057
|
-
*
|
|
2658
|
+
*
|
|
2659
|
+
* @summary Listings Get
|
|
2660
|
+
* @param {string} listingId
|
|
2661
|
+
* @param {*} [options] Override http request option.
|
|
2662
|
+
* @throws {RequiredError}
|
|
2663
|
+
* @memberof ListingsApi
|
|
2664
|
+
*/
|
|
2665
|
+
listingsGet(listingId, options) {
|
|
2666
|
+
return ListingsApiFp(this.configuration).listingsGet(listingId, options).then((request) => request(this.axios, this.basePath));
|
|
2667
|
+
}
|
|
2668
|
+
/**
|
|
2669
|
+
*
|
|
2058
2670
|
* @summary Listings List
|
|
2059
|
-
* @param {string} [
|
|
2671
|
+
* @param {string | null} [searchString]
|
|
2672
|
+
* @param {string | null} [contactId]
|
|
2673
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2674
|
+
* @param {number} [limit]
|
|
2675
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2676
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
2677
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2060
2678
|
* @param {*} [options] Override http request option.
|
|
2061
2679
|
* @throws {RequiredError}
|
|
2062
2680
|
* @memberof ListingsApi
|
|
2063
2681
|
*/
|
|
2064
|
-
listingsList(contactId, options) {
|
|
2065
|
-
return ListingsApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
2682
|
+
listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2683
|
+
return ListingsApiFp(this.configuration).listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2066
2684
|
}
|
|
2067
2685
|
};
|
|
2068
2686
|
var ManagedPhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
@@ -2141,13 +2759,15 @@ var MessagesApiAxiosParamCreator = function(configuration) {
|
|
|
2141
2759
|
/**
|
|
2142
2760
|
*
|
|
2143
2761
|
* @summary Messages Create
|
|
2762
|
+
* @param {string} conversationId
|
|
2144
2763
|
* @param {MessageCreate} messageCreate
|
|
2145
2764
|
* @param {*} [options] Override http request option.
|
|
2146
2765
|
* @throws {RequiredError}
|
|
2147
2766
|
*/
|
|
2148
|
-
messagesCreate: async (messageCreate, options = {}) => {
|
|
2767
|
+
messagesCreate: async (conversationId, messageCreate, options = {}) => {
|
|
2768
|
+
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
2149
2769
|
assertParamExists("messagesCreate", "messageCreate", messageCreate);
|
|
2150
|
-
const localVarPath = `/messages
|
|
2770
|
+
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2151
2771
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2152
2772
|
let baseOptions;
|
|
2153
2773
|
if (configuration) {
|
|
@@ -2195,11 +2815,18 @@ var MessagesApiAxiosParamCreator = function(configuration) {
|
|
|
2195
2815
|
/**
|
|
2196
2816
|
*
|
|
2197
2817
|
* @summary Messages List
|
|
2198
|
-
* @param {string} [
|
|
2818
|
+
* @param {string | null} [searchString]
|
|
2819
|
+
* @param {string | null} [contactId]
|
|
2820
|
+
* @param {string | null} [conversationId]
|
|
2821
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2822
|
+
* @param {number} [limit]
|
|
2823
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2824
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
2825
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2199
2826
|
* @param {*} [options] Override http request option.
|
|
2200
2827
|
* @throws {RequiredError}
|
|
2201
2828
|
*/
|
|
2202
|
-
messagesList: async (conversationId, options = {}) => {
|
|
2829
|
+
messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
2203
2830
|
const localVarPath = `/messages`;
|
|
2204
2831
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2205
2832
|
let baseOptions;
|
|
@@ -2209,9 +2836,30 @@ var MessagesApiAxiosParamCreator = function(configuration) {
|
|
|
2209
2836
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2210
2837
|
const localVarHeaderParameter = {};
|
|
2211
2838
|
const localVarQueryParameter = {};
|
|
2839
|
+
if (searchString !== void 0) {
|
|
2840
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
2841
|
+
}
|
|
2842
|
+
if (contactId !== void 0) {
|
|
2843
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
2844
|
+
}
|
|
2212
2845
|
if (conversationId !== void 0) {
|
|
2213
2846
|
localVarQueryParameter["conversationId"] = conversationId;
|
|
2214
2847
|
}
|
|
2848
|
+
if (cursor !== void 0) {
|
|
2849
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
2850
|
+
}
|
|
2851
|
+
if (limit !== void 0) {
|
|
2852
|
+
localVarQueryParameter["limit"] = limit;
|
|
2853
|
+
}
|
|
2854
|
+
if (pageDir !== void 0) {
|
|
2855
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
2856
|
+
}
|
|
2857
|
+
if (sortBy !== void 0) {
|
|
2858
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
2859
|
+
}
|
|
2860
|
+
if (sortOrder !== void 0) {
|
|
2861
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
2862
|
+
}
|
|
2215
2863
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2216
2864
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2217
2865
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2228,12 +2876,13 @@ var MessagesApiFp = function(configuration) {
|
|
|
2228
2876
|
/**
|
|
2229
2877
|
*
|
|
2230
2878
|
* @summary Messages Create
|
|
2879
|
+
* @param {string} conversationId
|
|
2231
2880
|
* @param {MessageCreate} messageCreate
|
|
2232
2881
|
* @param {*} [options] Override http request option.
|
|
2233
2882
|
* @throws {RequiredError}
|
|
2234
2883
|
*/
|
|
2235
|
-
async messagesCreate(messageCreate, options) {
|
|
2236
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(messageCreate, options);
|
|
2884
|
+
async messagesCreate(conversationId, messageCreate, options) {
|
|
2885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
|
|
2237
2886
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2238
2887
|
const localVarOperationServerBasePath = operationServerMap["MessagesApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
2239
2888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2254,12 +2903,19 @@ var MessagesApiFp = function(configuration) {
|
|
|
2254
2903
|
/**
|
|
2255
2904
|
*
|
|
2256
2905
|
* @summary Messages List
|
|
2257
|
-
* @param {string} [
|
|
2906
|
+
* @param {string | null} [searchString]
|
|
2907
|
+
* @param {string | null} [contactId]
|
|
2908
|
+
* @param {string | null} [conversationId]
|
|
2909
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2910
|
+
* @param {number} [limit]
|
|
2911
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2912
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
2913
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2258
2914
|
* @param {*} [options] Override http request option.
|
|
2259
2915
|
* @throws {RequiredError}
|
|
2260
2916
|
*/
|
|
2261
|
-
async messagesList(conversationId, options) {
|
|
2262
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, options);
|
|
2917
|
+
async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2918
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2263
2919
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2264
2920
|
const localVarOperationServerBasePath = operationServerMap["MessagesApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
2265
2921
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2272,12 +2928,13 @@ var MessagesApiFactory = function(configuration, basePath, axios) {
|
|
|
2272
2928
|
/**
|
|
2273
2929
|
*
|
|
2274
2930
|
* @summary Messages Create
|
|
2931
|
+
* @param {string} conversationId
|
|
2275
2932
|
* @param {MessageCreate} messageCreate
|
|
2276
2933
|
* @param {*} [options] Override http request option.
|
|
2277
2934
|
* @throws {RequiredError}
|
|
2278
2935
|
*/
|
|
2279
|
-
messagesCreate(messageCreate, options) {
|
|
2280
|
-
return localVarFp.messagesCreate(messageCreate, options).then((request) => request(axios, basePath));
|
|
2936
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
2937
|
+
return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
|
|
2281
2938
|
},
|
|
2282
2939
|
/**
|
|
2283
2940
|
*
|
|
@@ -2292,12 +2949,19 @@ var MessagesApiFactory = function(configuration, basePath, axios) {
|
|
|
2292
2949
|
/**
|
|
2293
2950
|
*
|
|
2294
2951
|
* @summary Messages List
|
|
2295
|
-
* @param {string} [
|
|
2952
|
+
* @param {string | null} [searchString]
|
|
2953
|
+
* @param {string | null} [contactId]
|
|
2954
|
+
* @param {string | null} [conversationId]
|
|
2955
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2956
|
+
* @param {number} [limit]
|
|
2957
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
2958
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
2959
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2296
2960
|
* @param {*} [options] Override http request option.
|
|
2297
2961
|
* @throws {RequiredError}
|
|
2298
2962
|
*/
|
|
2299
|
-
messagesList(conversationId, options) {
|
|
2300
|
-
return localVarFp.messagesList(conversationId, options).then((request) => request(axios, basePath));
|
|
2963
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2964
|
+
return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2301
2965
|
}
|
|
2302
2966
|
};
|
|
2303
2967
|
};
|
|
@@ -2305,13 +2969,14 @@ var MessagesApi = class extends BaseAPI {
|
|
|
2305
2969
|
/**
|
|
2306
2970
|
*
|
|
2307
2971
|
* @summary Messages Create
|
|
2972
|
+
* @param {string} conversationId
|
|
2308
2973
|
* @param {MessageCreate} messageCreate
|
|
2309
2974
|
* @param {*} [options] Override http request option.
|
|
2310
2975
|
* @throws {RequiredError}
|
|
2311
2976
|
* @memberof MessagesApi
|
|
2312
2977
|
*/
|
|
2313
|
-
messagesCreate(messageCreate, options) {
|
|
2314
|
-
return MessagesApiFp(this.configuration).messagesCreate(messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2978
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
2979
|
+
return MessagesApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2315
2980
|
}
|
|
2316
2981
|
/**
|
|
2317
2982
|
*
|
|
@@ -2327,13 +2992,20 @@ var MessagesApi = class extends BaseAPI {
|
|
|
2327
2992
|
/**
|
|
2328
2993
|
*
|
|
2329
2994
|
* @summary Messages List
|
|
2330
|
-
* @param {string} [
|
|
2995
|
+
* @param {string | null} [searchString]
|
|
2996
|
+
* @param {string | null} [contactId]
|
|
2997
|
+
* @param {string | null} [conversationId]
|
|
2998
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2999
|
+
* @param {number} [limit]
|
|
3000
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3001
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
3002
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2331
3003
|
* @param {*} [options] Override http request option.
|
|
2332
3004
|
* @throws {RequiredError}
|
|
2333
3005
|
* @memberof MessagesApi
|
|
2334
3006
|
*/
|
|
2335
|
-
messagesList(conversationId, options) {
|
|
2336
|
-
return MessagesApiFp(this.configuration).messagesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
3007
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3008
|
+
return MessagesApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2337
3009
|
}
|
|
2338
3010
|
};
|
|
2339
3011
|
var PhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
@@ -2393,6 +3065,36 @@ var PhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
|
2393
3065
|
url: toPathString(localVarUrlObj),
|
|
2394
3066
|
options: localVarRequestOptions
|
|
2395
3067
|
};
|
|
3068
|
+
},
|
|
3069
|
+
/**
|
|
3070
|
+
*
|
|
3071
|
+
* @summary Phone_numbers Update
|
|
3072
|
+
* @param {string} phoneNumberId
|
|
3073
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
3074
|
+
* @param {*} [options] Override http request option.
|
|
3075
|
+
* @throws {RequiredError}
|
|
3076
|
+
*/
|
|
3077
|
+
phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
|
|
3078
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
|
|
3079
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
|
|
3080
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
3081
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3082
|
+
let baseOptions;
|
|
3083
|
+
if (configuration) {
|
|
3084
|
+
baseOptions = configuration.baseOptions;
|
|
3085
|
+
}
|
|
3086
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3087
|
+
const localVarHeaderParameter = {};
|
|
3088
|
+
const localVarQueryParameter = {};
|
|
3089
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3092
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3093
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
|
|
3094
|
+
return {
|
|
3095
|
+
url: toPathString(localVarUrlObj),
|
|
3096
|
+
options: localVarRequestOptions
|
|
3097
|
+
};
|
|
2396
3098
|
}
|
|
2397
3099
|
};
|
|
2398
3100
|
};
|
|
@@ -2425,6 +3127,20 @@ var PhoneNumbersApiFp = function(configuration) {
|
|
|
2425
3127
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2426
3128
|
const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2427
3129
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3130
|
+
},
|
|
3131
|
+
/**
|
|
3132
|
+
*
|
|
3133
|
+
* @summary Phone_numbers Update
|
|
3134
|
+
* @param {string} phoneNumberId
|
|
3135
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
3136
|
+
* @param {*} [options] Override http request option.
|
|
3137
|
+
* @throws {RequiredError}
|
|
3138
|
+
*/
|
|
3139
|
+
async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
3140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
|
|
3141
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3142
|
+
const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
3143
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2428
3144
|
}
|
|
2429
3145
|
};
|
|
2430
3146
|
};
|
|
@@ -2451,6 +3167,17 @@ var PhoneNumbersApiFactory = function(configuration, basePath, axios) {
|
|
|
2451
3167
|
*/
|
|
2452
3168
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
2453
3169
|
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
3170
|
+
},
|
|
3171
|
+
/**
|
|
3172
|
+
*
|
|
3173
|
+
* @summary Phone_numbers Update
|
|
3174
|
+
* @param {string} phoneNumberId
|
|
3175
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
3176
|
+
* @param {*} [options] Override http request option.
|
|
3177
|
+
* @throws {RequiredError}
|
|
3178
|
+
*/
|
|
3179
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
3180
|
+
return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
|
|
2454
3181
|
}
|
|
2455
3182
|
};
|
|
2456
3183
|
};
|
|
@@ -2478,17 +3205,35 @@ var PhoneNumbersApi = class extends BaseAPI {
|
|
|
2478
3205
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
2479
3206
|
return PhoneNumbersApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
2480
3207
|
}
|
|
3208
|
+
/**
|
|
3209
|
+
*
|
|
3210
|
+
* @summary Phone_numbers Update
|
|
3211
|
+
* @param {string} phoneNumberId
|
|
3212
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
3213
|
+
* @param {*} [options] Override http request option.
|
|
3214
|
+
* @throws {RequiredError}
|
|
3215
|
+
* @memberof PhoneNumbersApi
|
|
3216
|
+
*/
|
|
3217
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
3218
|
+
return PhoneNumbersApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3219
|
+
}
|
|
2481
3220
|
};
|
|
2482
3221
|
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
2483
3222
|
return {
|
|
2484
3223
|
/**
|
|
2485
3224
|
*
|
|
2486
3225
|
* @summary Reservations List
|
|
2487
|
-
* @param {string} [
|
|
3226
|
+
* @param {string | null} [searchString]
|
|
3227
|
+
* @param {string | null} [contactId]
|
|
3228
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3229
|
+
* @param {number} [limit]
|
|
3230
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3231
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3232
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2488
3233
|
* @param {*} [options] Override http request option.
|
|
2489
3234
|
* @throws {RequiredError}
|
|
2490
3235
|
*/
|
|
2491
|
-
reservationsList: async (contactId, options = {}) => {
|
|
3236
|
+
reservationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
2492
3237
|
const localVarPath = `/reservations`;
|
|
2493
3238
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2494
3239
|
let baseOptions;
|
|
@@ -2498,9 +3243,27 @@ var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
|
2498
3243
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2499
3244
|
const localVarHeaderParameter = {};
|
|
2500
3245
|
const localVarQueryParameter = {};
|
|
3246
|
+
if (searchString !== void 0) {
|
|
3247
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
3248
|
+
}
|
|
2501
3249
|
if (contactId !== void 0) {
|
|
2502
3250
|
localVarQueryParameter["contactId"] = contactId;
|
|
2503
3251
|
}
|
|
3252
|
+
if (cursor !== void 0) {
|
|
3253
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
3254
|
+
}
|
|
3255
|
+
if (limit !== void 0) {
|
|
3256
|
+
localVarQueryParameter["limit"] = limit;
|
|
3257
|
+
}
|
|
3258
|
+
if (pageDir !== void 0) {
|
|
3259
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
3260
|
+
}
|
|
3261
|
+
if (sortBy !== void 0) {
|
|
3262
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
3263
|
+
}
|
|
3264
|
+
if (sortOrder !== void 0) {
|
|
3265
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
3266
|
+
}
|
|
2504
3267
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2505
3268
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2506
3269
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2517,12 +3280,18 @@ var ReservationsApiFp = function(configuration) {
|
|
|
2517
3280
|
/**
|
|
2518
3281
|
*
|
|
2519
3282
|
* @summary Reservations List
|
|
2520
|
-
* @param {string} [
|
|
3283
|
+
* @param {string | null} [searchString]
|
|
3284
|
+
* @param {string | null} [contactId]
|
|
3285
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3286
|
+
* @param {number} [limit]
|
|
3287
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3288
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3289
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2521
3290
|
* @param {*} [options] Override http request option.
|
|
2522
3291
|
* @throws {RequiredError}
|
|
2523
3292
|
*/
|
|
2524
|
-
async reservationsList(contactId, options) {
|
|
2525
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
3293
|
+
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2526
3295
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2527
3296
|
const localVarOperationServerBasePath = operationServerMap["ReservationsApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
|
|
2528
3297
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2535,12 +3304,18 @@ var ReservationsApiFactory = function(configuration, basePath, axios) {
|
|
|
2535
3304
|
/**
|
|
2536
3305
|
*
|
|
2537
3306
|
* @summary Reservations List
|
|
2538
|
-
* @param {string} [
|
|
3307
|
+
* @param {string | null} [searchString]
|
|
3308
|
+
* @param {string | null} [contactId]
|
|
3309
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3310
|
+
* @param {number} [limit]
|
|
3311
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3312
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3313
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2539
3314
|
* @param {*} [options] Override http request option.
|
|
2540
3315
|
* @throws {RequiredError}
|
|
2541
3316
|
*/
|
|
2542
|
-
reservationsList(contactId, options) {
|
|
2543
|
-
return localVarFp.reservationsList(contactId, options).then((request) => request(axios, basePath));
|
|
3317
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3318
|
+
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
2544
3319
|
}
|
|
2545
3320
|
};
|
|
2546
3321
|
};
|
|
@@ -2548,13 +3323,19 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
2548
3323
|
/**
|
|
2549
3324
|
*
|
|
2550
3325
|
* @summary Reservations List
|
|
2551
|
-
* @param {string} [
|
|
3326
|
+
* @param {string | null} [searchString]
|
|
3327
|
+
* @param {string | null} [contactId]
|
|
3328
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3329
|
+
* @param {number} [limit]
|
|
3330
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3331
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3332
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2552
3333
|
* @param {*} [options] Override http request option.
|
|
2553
3334
|
* @throws {RequiredError}
|
|
2554
3335
|
* @memberof ReservationsApi
|
|
2555
3336
|
*/
|
|
2556
|
-
reservationsList(contactId, options) {
|
|
2557
|
-
return ReservationsApiFp(this.configuration).reservationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
3337
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3338
|
+
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
2558
3339
|
}
|
|
2559
3340
|
};
|
|
2560
3341
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
@@ -2980,11 +3761,17 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2980
3761
|
/**
|
|
2981
3762
|
* List all conversations, optionally filtered by contact_id
|
|
2982
3763
|
* @summary Conversations List
|
|
2983
|
-
* @param {string} [
|
|
3764
|
+
* @param {string | null} [searchString]
|
|
3765
|
+
* @param {string | null} [contactId]
|
|
3766
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3767
|
+
* @param {number} [limit]
|
|
3768
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3769
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
3770
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2984
3771
|
* @param {*} [options] Override http request option.
|
|
2985
3772
|
* @throws {RequiredError}
|
|
2986
3773
|
*/
|
|
2987
|
-
conversationsList: async (contactId, options = {}) => {
|
|
3774
|
+
conversationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
2988
3775
|
const localVarPath = `/conversations`;
|
|
2989
3776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2990
3777
|
let baseOptions;
|
|
@@ -2994,9 +3781,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2994
3781
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2995
3782
|
const localVarHeaderParameter = {};
|
|
2996
3783
|
const localVarQueryParameter = {};
|
|
3784
|
+
if (searchString !== void 0) {
|
|
3785
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
3786
|
+
}
|
|
2997
3787
|
if (contactId !== void 0) {
|
|
2998
3788
|
localVarQueryParameter["contactId"] = contactId;
|
|
2999
3789
|
}
|
|
3790
|
+
if (cursor !== void 0) {
|
|
3791
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
3792
|
+
}
|
|
3793
|
+
if (limit !== void 0) {
|
|
3794
|
+
localVarQueryParameter["limit"] = limit;
|
|
3795
|
+
}
|
|
3796
|
+
if (pageDir !== void 0) {
|
|
3797
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
3798
|
+
}
|
|
3799
|
+
if (sortBy !== void 0) {
|
|
3800
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
3801
|
+
}
|
|
3802
|
+
if (sortOrder !== void 0) {
|
|
3803
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
3804
|
+
}
|
|
3000
3805
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3001
3806
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3002
3807
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3091,6 +3896,36 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3091
3896
|
options: localVarRequestOptions
|
|
3092
3897
|
};
|
|
3093
3898
|
},
|
|
3899
|
+
/**
|
|
3900
|
+
*
|
|
3901
|
+
* @summary Emails Update
|
|
3902
|
+
* @param {string} emailId
|
|
3903
|
+
* @param {EmailUpdate} emailUpdate
|
|
3904
|
+
* @param {*} [options] Override http request option.
|
|
3905
|
+
* @throws {RequiredError}
|
|
3906
|
+
*/
|
|
3907
|
+
emailsUpdate: async (emailId, emailUpdate, options = {}) => {
|
|
3908
|
+
assertParamExists("emailsUpdate", "emailId", emailId);
|
|
3909
|
+
assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
|
|
3910
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
3911
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3912
|
+
let baseOptions;
|
|
3913
|
+
if (configuration) {
|
|
3914
|
+
baseOptions = configuration.baseOptions;
|
|
3915
|
+
}
|
|
3916
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3917
|
+
const localVarHeaderParameter = {};
|
|
3918
|
+
const localVarQueryParameter = {};
|
|
3919
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3920
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3922
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3923
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
|
|
3924
|
+
return {
|
|
3925
|
+
url: toPathString(localVarUrlObj),
|
|
3926
|
+
options: localVarRequestOptions
|
|
3927
|
+
};
|
|
3928
|
+
},
|
|
3094
3929
|
/**
|
|
3095
3930
|
* List all listings
|
|
3096
3931
|
* @summary Inquiries List
|
|
@@ -3108,9 +3943,35 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3108
3943
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3109
3944
|
const localVarHeaderParameter = {};
|
|
3110
3945
|
const localVarQueryParameter = {};
|
|
3111
|
-
if (contactId !== void 0) {
|
|
3112
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
3113
|
-
}
|
|
3946
|
+
if (contactId !== void 0) {
|
|
3947
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
3948
|
+
}
|
|
3949
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3951
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3952
|
+
return {
|
|
3953
|
+
url: toPathString(localVarUrlObj),
|
|
3954
|
+
options: localVarRequestOptions
|
|
3955
|
+
};
|
|
3956
|
+
},
|
|
3957
|
+
/**
|
|
3958
|
+
*
|
|
3959
|
+
* @summary Listings Get
|
|
3960
|
+
* @param {string} listingId
|
|
3961
|
+
* @param {*} [options] Override http request option.
|
|
3962
|
+
* @throws {RequiredError}
|
|
3963
|
+
*/
|
|
3964
|
+
listingsGet: async (listingId, options = {}) => {
|
|
3965
|
+
assertParamExists("listingsGet", "listingId", listingId);
|
|
3966
|
+
const localVarPath = `/listings/{listingId}`.replace(`{${"listingId"}}`, encodeURIComponent(String(listingId)));
|
|
3967
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3968
|
+
let baseOptions;
|
|
3969
|
+
if (configuration) {
|
|
3970
|
+
baseOptions = configuration.baseOptions;
|
|
3971
|
+
}
|
|
3972
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3973
|
+
const localVarHeaderParameter = {};
|
|
3974
|
+
const localVarQueryParameter = {};
|
|
3114
3975
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3115
3976
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3116
3977
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3120,13 +3981,19 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3120
3981
|
};
|
|
3121
3982
|
},
|
|
3122
3983
|
/**
|
|
3123
|
-
*
|
|
3984
|
+
*
|
|
3124
3985
|
* @summary Listings List
|
|
3125
|
-
* @param {string} [
|
|
3986
|
+
* @param {string | null} [searchString]
|
|
3987
|
+
* @param {string | null} [contactId]
|
|
3988
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3989
|
+
* @param {number} [limit]
|
|
3990
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3991
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
3992
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3126
3993
|
* @param {*} [options] Override http request option.
|
|
3127
3994
|
* @throws {RequiredError}
|
|
3128
3995
|
*/
|
|
3129
|
-
listingsList: async (contactId, options = {}) => {
|
|
3996
|
+
listingsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3130
3997
|
const localVarPath = `/listings`;
|
|
3131
3998
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3132
3999
|
let baseOptions;
|
|
@@ -3136,9 +4003,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3136
4003
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3137
4004
|
const localVarHeaderParameter = {};
|
|
3138
4005
|
const localVarQueryParameter = {};
|
|
4006
|
+
if (searchString !== void 0) {
|
|
4007
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4008
|
+
}
|
|
3139
4009
|
if (contactId !== void 0) {
|
|
3140
4010
|
localVarQueryParameter["contactId"] = contactId;
|
|
3141
4011
|
}
|
|
4012
|
+
if (cursor !== void 0) {
|
|
4013
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4014
|
+
}
|
|
4015
|
+
if (limit !== void 0) {
|
|
4016
|
+
localVarQueryParameter["limit"] = limit;
|
|
4017
|
+
}
|
|
4018
|
+
if (pageDir !== void 0) {
|
|
4019
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4020
|
+
}
|
|
4021
|
+
if (sortBy !== void 0) {
|
|
4022
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4023
|
+
}
|
|
4024
|
+
if (sortOrder !== void 0) {
|
|
4025
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4026
|
+
}
|
|
3142
4027
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3143
4028
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3144
4029
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3174,13 +4059,15 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3174
4059
|
/**
|
|
3175
4060
|
*
|
|
3176
4061
|
* @summary Messages Create
|
|
4062
|
+
* @param {string} conversationId
|
|
3177
4063
|
* @param {MessageCreate} messageCreate
|
|
3178
4064
|
* @param {*} [options] Override http request option.
|
|
3179
4065
|
* @throws {RequiredError}
|
|
3180
4066
|
*/
|
|
3181
|
-
messagesCreate: async (messageCreate, options = {}) => {
|
|
4067
|
+
messagesCreate: async (conversationId, messageCreate, options = {}) => {
|
|
4068
|
+
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
3182
4069
|
assertParamExists("messagesCreate", "messageCreate", messageCreate);
|
|
3183
|
-
const localVarPath = `/messages
|
|
4070
|
+
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
3184
4071
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3185
4072
|
let baseOptions;
|
|
3186
4073
|
if (configuration) {
|
|
@@ -3228,11 +4115,18 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3228
4115
|
/**
|
|
3229
4116
|
*
|
|
3230
4117
|
* @summary Messages List
|
|
3231
|
-
* @param {string} [
|
|
4118
|
+
* @param {string | null} [searchString]
|
|
4119
|
+
* @param {string | null} [contactId]
|
|
4120
|
+
* @param {string | null} [conversationId]
|
|
4121
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4122
|
+
* @param {number} [limit]
|
|
4123
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4124
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
4125
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3232
4126
|
* @param {*} [options] Override http request option.
|
|
3233
4127
|
* @throws {RequiredError}
|
|
3234
4128
|
*/
|
|
3235
|
-
messagesList: async (conversationId, options = {}) => {
|
|
4129
|
+
messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3236
4130
|
const localVarPath = `/messages`;
|
|
3237
4131
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3238
4132
|
let baseOptions;
|
|
@@ -3242,9 +4136,30 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3242
4136
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3243
4137
|
const localVarHeaderParameter = {};
|
|
3244
4138
|
const localVarQueryParameter = {};
|
|
4139
|
+
if (searchString !== void 0) {
|
|
4140
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4141
|
+
}
|
|
4142
|
+
if (contactId !== void 0) {
|
|
4143
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
4144
|
+
}
|
|
3245
4145
|
if (conversationId !== void 0) {
|
|
3246
4146
|
localVarQueryParameter["conversationId"] = conversationId;
|
|
3247
4147
|
}
|
|
4148
|
+
if (cursor !== void 0) {
|
|
4149
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4150
|
+
}
|
|
4151
|
+
if (limit !== void 0) {
|
|
4152
|
+
localVarQueryParameter["limit"] = limit;
|
|
4153
|
+
}
|
|
4154
|
+
if (pageDir !== void 0) {
|
|
4155
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4156
|
+
}
|
|
4157
|
+
if (sortBy !== void 0) {
|
|
4158
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4159
|
+
}
|
|
4160
|
+
if (sortOrder !== void 0) {
|
|
4161
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4162
|
+
}
|
|
3248
4163
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3249
4164
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3250
4165
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3309,14 +4224,50 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3309
4224
|
options: localVarRequestOptions
|
|
3310
4225
|
};
|
|
3311
4226
|
},
|
|
4227
|
+
/**
|
|
4228
|
+
*
|
|
4229
|
+
* @summary Phone_numbers Update
|
|
4230
|
+
* @param {string} phoneNumberId
|
|
4231
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
4232
|
+
* @param {*} [options] Override http request option.
|
|
4233
|
+
* @throws {RequiredError}
|
|
4234
|
+
*/
|
|
4235
|
+
phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
|
|
4236
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
|
|
4237
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
|
|
4238
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
4239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4240
|
+
let baseOptions;
|
|
4241
|
+
if (configuration) {
|
|
4242
|
+
baseOptions = configuration.baseOptions;
|
|
4243
|
+
}
|
|
4244
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
4245
|
+
const localVarHeaderParameter = {};
|
|
4246
|
+
const localVarQueryParameter = {};
|
|
4247
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4248
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4250
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4251
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
|
|
4252
|
+
return {
|
|
4253
|
+
url: toPathString(localVarUrlObj),
|
|
4254
|
+
options: localVarRequestOptions
|
|
4255
|
+
};
|
|
4256
|
+
},
|
|
3312
4257
|
/**
|
|
3313
4258
|
*
|
|
3314
4259
|
* @summary Reservations List
|
|
3315
|
-
* @param {string} [
|
|
4260
|
+
* @param {string | null} [searchString]
|
|
4261
|
+
* @param {string | null} [contactId]
|
|
4262
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4263
|
+
* @param {number} [limit]
|
|
4264
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4265
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
4266
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3316
4267
|
* @param {*} [options] Override http request option.
|
|
3317
4268
|
* @throws {RequiredError}
|
|
3318
4269
|
*/
|
|
3319
|
-
reservationsList: async (contactId, options = {}) => {
|
|
4270
|
+
reservationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3320
4271
|
const localVarPath = `/reservations`;
|
|
3321
4272
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3322
4273
|
let baseOptions;
|
|
@@ -3326,9 +4277,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3326
4277
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3327
4278
|
const localVarHeaderParameter = {};
|
|
3328
4279
|
const localVarQueryParameter = {};
|
|
4280
|
+
if (searchString !== void 0) {
|
|
4281
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4282
|
+
}
|
|
3329
4283
|
if (contactId !== void 0) {
|
|
3330
4284
|
localVarQueryParameter["contactId"] = contactId;
|
|
3331
4285
|
}
|
|
4286
|
+
if (cursor !== void 0) {
|
|
4287
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4288
|
+
}
|
|
4289
|
+
if (limit !== void 0) {
|
|
4290
|
+
localVarQueryParameter["limit"] = limit;
|
|
4291
|
+
}
|
|
4292
|
+
if (pageDir !== void 0) {
|
|
4293
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4294
|
+
}
|
|
4295
|
+
if (sortBy !== void 0) {
|
|
4296
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4297
|
+
}
|
|
4298
|
+
if (sortOrder !== void 0) {
|
|
4299
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4300
|
+
}
|
|
3332
4301
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3333
4302
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3334
4303
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3569,12 +4538,18 @@ var UnboundApiFp = function(configuration) {
|
|
|
3569
4538
|
/**
|
|
3570
4539
|
* List all conversations, optionally filtered by contact_id
|
|
3571
4540
|
* @summary Conversations List
|
|
3572
|
-
* @param {string} [
|
|
4541
|
+
* @param {string | null} [searchString]
|
|
4542
|
+
* @param {string | null} [contactId]
|
|
4543
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4544
|
+
* @param {number} [limit]
|
|
4545
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4546
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
4547
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3573
4548
|
* @param {*} [options] Override http request option.
|
|
3574
4549
|
* @throws {RequiredError}
|
|
3575
4550
|
*/
|
|
3576
|
-
async conversationsList(contactId, options) {
|
|
3577
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
4551
|
+
async conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4552
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3578
4553
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3579
4554
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
3580
4555
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3620,6 +4595,20 @@ var UnboundApiFp = function(configuration) {
|
|
|
3620
4595
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.emailsDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3621
4596
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3622
4597
|
},
|
|
4598
|
+
/**
|
|
4599
|
+
*
|
|
4600
|
+
* @summary Emails Update
|
|
4601
|
+
* @param {string} emailId
|
|
4602
|
+
* @param {EmailUpdate} emailUpdate
|
|
4603
|
+
* @param {*} [options] Override http request option.
|
|
4604
|
+
* @throws {RequiredError}
|
|
4605
|
+
*/
|
|
4606
|
+
async emailsUpdate(emailId, emailUpdate, options) {
|
|
4607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
|
|
4608
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4609
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.emailsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
4610
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4611
|
+
},
|
|
3623
4612
|
/**
|
|
3624
4613
|
* List all listings
|
|
3625
4614
|
* @summary Inquiries List
|
|
@@ -3634,14 +4623,33 @@ var UnboundApiFp = function(configuration) {
|
|
|
3634
4623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3635
4624
|
},
|
|
3636
4625
|
/**
|
|
3637
|
-
*
|
|
4626
|
+
*
|
|
4627
|
+
* @summary Listings Get
|
|
4628
|
+
* @param {string} listingId
|
|
4629
|
+
* @param {*} [options] Override http request option.
|
|
4630
|
+
* @throws {RequiredError}
|
|
4631
|
+
*/
|
|
4632
|
+
async listingsGet(listingId, options) {
|
|
4633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
4634
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4635
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.listingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
4636
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4637
|
+
},
|
|
4638
|
+
/**
|
|
4639
|
+
*
|
|
3638
4640
|
* @summary Listings List
|
|
3639
|
-
* @param {string} [
|
|
4641
|
+
* @param {string | null} [searchString]
|
|
4642
|
+
* @param {string | null} [contactId]
|
|
4643
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4644
|
+
* @param {number} [limit]
|
|
4645
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4646
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
4647
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3640
4648
|
* @param {*} [options] Override http request option.
|
|
3641
4649
|
* @throws {RequiredError}
|
|
3642
4650
|
*/
|
|
3643
|
-
async listingsList(contactId, options) {
|
|
3644
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
4651
|
+
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3645
4653
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3646
4654
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.listingsList"]?.[localVarOperationServerIndex]?.url;
|
|
3647
4655
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3661,12 +4669,13 @@ var UnboundApiFp = function(configuration) {
|
|
|
3661
4669
|
/**
|
|
3662
4670
|
*
|
|
3663
4671
|
* @summary Messages Create
|
|
4672
|
+
* @param {string} conversationId
|
|
3664
4673
|
* @param {MessageCreate} messageCreate
|
|
3665
4674
|
* @param {*} [options] Override http request option.
|
|
3666
4675
|
* @throws {RequiredError}
|
|
3667
4676
|
*/
|
|
3668
|
-
async messagesCreate(messageCreate, options) {
|
|
3669
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(messageCreate, options);
|
|
4677
|
+
async messagesCreate(conversationId, messageCreate, options) {
|
|
4678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
|
|
3670
4679
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3671
4680
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
|
|
3672
4681
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3687,12 +4696,19 @@ var UnboundApiFp = function(configuration) {
|
|
|
3687
4696
|
/**
|
|
3688
4697
|
*
|
|
3689
4698
|
* @summary Messages List
|
|
3690
|
-
* @param {string} [
|
|
4699
|
+
* @param {string | null} [searchString]
|
|
4700
|
+
* @param {string | null} [contactId]
|
|
4701
|
+
* @param {string | null} [conversationId]
|
|
4702
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4703
|
+
* @param {number} [limit]
|
|
4704
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4705
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
4706
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3691
4707
|
* @param {*} [options] Override http request option.
|
|
3692
4708
|
* @throws {RequiredError}
|
|
3693
4709
|
*/
|
|
3694
|
-
async messagesList(conversationId, options) {
|
|
3695
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, options);
|
|
4710
|
+
async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3696
4712
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3697
4713
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.messagesList"]?.[localVarOperationServerIndex]?.url;
|
|
3698
4714
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3724,15 +4740,35 @@ var UnboundApiFp = function(configuration) {
|
|
|
3724
4740
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3725
4741
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3726
4742
|
},
|
|
4743
|
+
/**
|
|
4744
|
+
*
|
|
4745
|
+
* @summary Phone_numbers Update
|
|
4746
|
+
* @param {string} phoneNumberId
|
|
4747
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
4748
|
+
* @param {*} [options] Override http request option.
|
|
4749
|
+
* @throws {RequiredError}
|
|
4750
|
+
*/
|
|
4751
|
+
async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
4752
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
|
|
4753
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4754
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.phoneNumbersUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
4755
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4756
|
+
},
|
|
3727
4757
|
/**
|
|
3728
4758
|
*
|
|
3729
4759
|
* @summary Reservations List
|
|
3730
|
-
* @param {string} [
|
|
4760
|
+
* @param {string | null} [searchString]
|
|
4761
|
+
* @param {string | null} [contactId]
|
|
4762
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4763
|
+
* @param {number} [limit]
|
|
4764
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4765
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
4766
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3731
4767
|
* @param {*} [options] Override http request option.
|
|
3732
4768
|
* @throws {RequiredError}
|
|
3733
4769
|
*/
|
|
3734
|
-
async reservationsList(contactId, options) {
|
|
3735
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
4770
|
+
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3736
4772
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3737
4773
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
|
|
3738
4774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3911,12 +4947,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3911
4947
|
/**
|
|
3912
4948
|
* List all conversations, optionally filtered by contact_id
|
|
3913
4949
|
* @summary Conversations List
|
|
3914
|
-
* @param {string} [
|
|
4950
|
+
* @param {string | null} [searchString]
|
|
4951
|
+
* @param {string | null} [contactId]
|
|
4952
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4953
|
+
* @param {number} [limit]
|
|
4954
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4955
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
4956
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3915
4957
|
* @param {*} [options] Override http request option.
|
|
3916
4958
|
* @throws {RequiredError}
|
|
3917
4959
|
*/
|
|
3918
|
-
conversationsList(contactId, options) {
|
|
3919
|
-
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
4960
|
+
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4961
|
+
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
3920
4962
|
},
|
|
3921
4963
|
/**
|
|
3922
4964
|
*
|
|
@@ -3950,6 +4992,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3950
4992
|
emailsDelete(emailId, options) {
|
|
3951
4993
|
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
3952
4994
|
},
|
|
4995
|
+
/**
|
|
4996
|
+
*
|
|
4997
|
+
* @summary Emails Update
|
|
4998
|
+
* @param {string} emailId
|
|
4999
|
+
* @param {EmailUpdate} emailUpdate
|
|
5000
|
+
* @param {*} [options] Override http request option.
|
|
5001
|
+
* @throws {RequiredError}
|
|
5002
|
+
*/
|
|
5003
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
5004
|
+
return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
|
|
5005
|
+
},
|
|
3953
5006
|
/**
|
|
3954
5007
|
* List all listings
|
|
3955
5008
|
* @summary Inquiries List
|
|
@@ -3961,14 +5014,30 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3961
5014
|
return localVarFp.inquiriesList(contactId, options).then((request) => request(axios, basePath));
|
|
3962
5015
|
},
|
|
3963
5016
|
/**
|
|
3964
|
-
*
|
|
5017
|
+
*
|
|
5018
|
+
* @summary Listings Get
|
|
5019
|
+
* @param {string} listingId
|
|
5020
|
+
* @param {*} [options] Override http request option.
|
|
5021
|
+
* @throws {RequiredError}
|
|
5022
|
+
*/
|
|
5023
|
+
listingsGet(listingId, options) {
|
|
5024
|
+
return localVarFp.listingsGet(listingId, options).then((request) => request(axios, basePath));
|
|
5025
|
+
},
|
|
5026
|
+
/**
|
|
5027
|
+
*
|
|
3965
5028
|
* @summary Listings List
|
|
3966
|
-
* @param {string} [
|
|
5029
|
+
* @param {string | null} [searchString]
|
|
5030
|
+
* @param {string | null} [contactId]
|
|
5031
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5032
|
+
* @param {number} [limit]
|
|
5033
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5034
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
5035
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3967
5036
|
* @param {*} [options] Override http request option.
|
|
3968
5037
|
* @throws {RequiredError}
|
|
3969
5038
|
*/
|
|
3970
|
-
listingsList(contactId, options) {
|
|
3971
|
-
return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
|
|
5039
|
+
listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5040
|
+
return localVarFp.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
3972
5041
|
},
|
|
3973
5042
|
/**
|
|
3974
5043
|
*
|
|
@@ -3982,12 +5051,13 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3982
5051
|
/**
|
|
3983
5052
|
*
|
|
3984
5053
|
* @summary Messages Create
|
|
5054
|
+
* @param {string} conversationId
|
|
3985
5055
|
* @param {MessageCreate} messageCreate
|
|
3986
5056
|
* @param {*} [options] Override http request option.
|
|
3987
5057
|
* @throws {RequiredError}
|
|
3988
5058
|
*/
|
|
3989
|
-
messagesCreate(messageCreate, options) {
|
|
3990
|
-
return localVarFp.messagesCreate(messageCreate, options).then((request) => request(axios, basePath));
|
|
5059
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
5060
|
+
return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
|
|
3991
5061
|
},
|
|
3992
5062
|
/**
|
|
3993
5063
|
*
|
|
@@ -4002,12 +5072,19 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4002
5072
|
/**
|
|
4003
5073
|
*
|
|
4004
5074
|
* @summary Messages List
|
|
4005
|
-
* @param {string} [
|
|
5075
|
+
* @param {string | null} [searchString]
|
|
5076
|
+
* @param {string | null} [contactId]
|
|
5077
|
+
* @param {string | null} [conversationId]
|
|
5078
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5079
|
+
* @param {number} [limit]
|
|
5080
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5081
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
5082
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4006
5083
|
* @param {*} [options] Override http request option.
|
|
4007
5084
|
* @throws {RequiredError}
|
|
4008
5085
|
*/
|
|
4009
|
-
messagesList(conversationId, options) {
|
|
4010
|
-
return localVarFp.messagesList(conversationId, options).then((request) => request(axios, basePath));
|
|
5086
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5087
|
+
return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
4011
5088
|
},
|
|
4012
5089
|
/**
|
|
4013
5090
|
*
|
|
@@ -4030,15 +5107,32 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4030
5107
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
4031
5108
|
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
4032
5109
|
},
|
|
5110
|
+
/**
|
|
5111
|
+
*
|
|
5112
|
+
* @summary Phone_numbers Update
|
|
5113
|
+
* @param {string} phoneNumberId
|
|
5114
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
5115
|
+
* @param {*} [options] Override http request option.
|
|
5116
|
+
* @throws {RequiredError}
|
|
5117
|
+
*/
|
|
5118
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
5119
|
+
return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
|
|
5120
|
+
},
|
|
4033
5121
|
/**
|
|
4034
5122
|
*
|
|
4035
5123
|
* @summary Reservations List
|
|
4036
|
-
* @param {string} [
|
|
5124
|
+
* @param {string | null} [searchString]
|
|
5125
|
+
* @param {string | null} [contactId]
|
|
5126
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5127
|
+
* @param {number} [limit]
|
|
5128
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5129
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
5130
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4037
5131
|
* @param {*} [options] Override http request option.
|
|
4038
5132
|
* @throws {RequiredError}
|
|
4039
5133
|
*/
|
|
4040
|
-
reservationsList(contactId, options) {
|
|
4041
|
-
return localVarFp.reservationsList(contactId, options).then((request) => request(axios, basePath));
|
|
5134
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5135
|
+
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
4042
5136
|
},
|
|
4043
5137
|
/**
|
|
4044
5138
|
*
|
|
@@ -4223,13 +5317,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4223
5317
|
/**
|
|
4224
5318
|
* List all conversations, optionally filtered by contact_id
|
|
4225
5319
|
* @summary Conversations List
|
|
4226
|
-
* @param {string} [
|
|
5320
|
+
* @param {string | null} [searchString]
|
|
5321
|
+
* @param {string | null} [contactId]
|
|
5322
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5323
|
+
* @param {number} [limit]
|
|
5324
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5325
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
5326
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4227
5327
|
* @param {*} [options] Override http request option.
|
|
4228
5328
|
* @throws {RequiredError}
|
|
4229
5329
|
* @memberof UnboundApi
|
|
4230
5330
|
*/
|
|
4231
|
-
conversationsList(contactId, options) {
|
|
4232
|
-
return UnboundApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
5331
|
+
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5332
|
+
return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4233
5333
|
}
|
|
4234
5334
|
/**
|
|
4235
5335
|
*
|
|
@@ -4266,6 +5366,18 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4266
5366
|
emailsDelete(emailId, options) {
|
|
4267
5367
|
return UnboundApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
4268
5368
|
}
|
|
5369
|
+
/**
|
|
5370
|
+
*
|
|
5371
|
+
* @summary Emails Update
|
|
5372
|
+
* @param {string} emailId
|
|
5373
|
+
* @param {EmailUpdate} emailUpdate
|
|
5374
|
+
* @param {*} [options] Override http request option.
|
|
5375
|
+
* @throws {RequiredError}
|
|
5376
|
+
* @memberof UnboundApi
|
|
5377
|
+
*/
|
|
5378
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
5379
|
+
return UnboundApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
5380
|
+
}
|
|
4269
5381
|
/**
|
|
4270
5382
|
* List all listings
|
|
4271
5383
|
* @summary Inquiries List
|
|
@@ -4278,15 +5390,32 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4278
5390
|
return UnboundApiFp(this.configuration).inquiriesList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
4279
5391
|
}
|
|
4280
5392
|
/**
|
|
4281
|
-
*
|
|
5393
|
+
*
|
|
5394
|
+
* @summary Listings Get
|
|
5395
|
+
* @param {string} listingId
|
|
5396
|
+
* @param {*} [options] Override http request option.
|
|
5397
|
+
* @throws {RequiredError}
|
|
5398
|
+
* @memberof UnboundApi
|
|
5399
|
+
*/
|
|
5400
|
+
listingsGet(listingId, options) {
|
|
5401
|
+
return UnboundApiFp(this.configuration).listingsGet(listingId, options).then((request) => request(this.axios, this.basePath));
|
|
5402
|
+
}
|
|
5403
|
+
/**
|
|
5404
|
+
*
|
|
4282
5405
|
* @summary Listings List
|
|
4283
|
-
* @param {string} [
|
|
5406
|
+
* @param {string | null} [searchString]
|
|
5407
|
+
* @param {string | null} [contactId]
|
|
5408
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5409
|
+
* @param {number} [limit]
|
|
5410
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5411
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
5412
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4284
5413
|
* @param {*} [options] Override http request option.
|
|
4285
5414
|
* @throws {RequiredError}
|
|
4286
5415
|
* @memberof UnboundApi
|
|
4287
5416
|
*/
|
|
4288
|
-
listingsList(contactId, options) {
|
|
4289
|
-
return UnboundApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
5417
|
+
listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5418
|
+
return UnboundApiFp(this.configuration).listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4290
5419
|
}
|
|
4291
5420
|
/**
|
|
4292
5421
|
*
|
|
@@ -4301,13 +5430,14 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4301
5430
|
/**
|
|
4302
5431
|
*
|
|
4303
5432
|
* @summary Messages Create
|
|
5433
|
+
* @param {string} conversationId
|
|
4304
5434
|
* @param {MessageCreate} messageCreate
|
|
4305
5435
|
* @param {*} [options] Override http request option.
|
|
4306
5436
|
* @throws {RequiredError}
|
|
4307
5437
|
* @memberof UnboundApi
|
|
4308
5438
|
*/
|
|
4309
|
-
messagesCreate(messageCreate, options) {
|
|
4310
|
-
return UnboundApiFp(this.configuration).messagesCreate(messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5439
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
5440
|
+
return UnboundApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
4311
5441
|
}
|
|
4312
5442
|
/**
|
|
4313
5443
|
*
|
|
@@ -4323,13 +5453,20 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4323
5453
|
/**
|
|
4324
5454
|
*
|
|
4325
5455
|
* @summary Messages List
|
|
4326
|
-
* @param {string} [
|
|
5456
|
+
* @param {string | null} [searchString]
|
|
5457
|
+
* @param {string | null} [contactId]
|
|
5458
|
+
* @param {string | null} [conversationId]
|
|
5459
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5460
|
+
* @param {number} [limit]
|
|
5461
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5462
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
5463
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4327
5464
|
* @param {*} [options] Override http request option.
|
|
4328
5465
|
* @throws {RequiredError}
|
|
4329
5466
|
* @memberof UnboundApi
|
|
4330
5467
|
*/
|
|
4331
|
-
messagesList(conversationId, options) {
|
|
4332
|
-
return UnboundApiFp(this.configuration).messagesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5468
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5469
|
+
return UnboundApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4333
5470
|
}
|
|
4334
5471
|
/**
|
|
4335
5472
|
*
|
|
@@ -4354,16 +5491,34 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4354
5491
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
4355
5492
|
return UnboundApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
4356
5493
|
}
|
|
5494
|
+
/**
|
|
5495
|
+
*
|
|
5496
|
+
* @summary Phone_numbers Update
|
|
5497
|
+
* @param {string} phoneNumberId
|
|
5498
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
5499
|
+
* @param {*} [options] Override http request option.
|
|
5500
|
+
* @throws {RequiredError}
|
|
5501
|
+
* @memberof UnboundApi
|
|
5502
|
+
*/
|
|
5503
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
5504
|
+
return UnboundApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
5505
|
+
}
|
|
4357
5506
|
/**
|
|
4358
5507
|
*
|
|
4359
5508
|
* @summary Reservations List
|
|
4360
|
-
* @param {string} [
|
|
5509
|
+
* @param {string | null} [searchString]
|
|
5510
|
+
* @param {string | null} [contactId]
|
|
5511
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5512
|
+
* @param {number} [limit]
|
|
5513
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5514
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
5515
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4361
5516
|
* @param {*} [options] Override http request option.
|
|
4362
5517
|
* @throws {RequiredError}
|
|
4363
5518
|
* @memberof UnboundApi
|
|
4364
5519
|
*/
|
|
4365
|
-
reservationsList(contactId, options) {
|
|
4366
|
-
return UnboundApiFp(this.configuration).reservationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
5520
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5521
|
+
return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4367
5522
|
}
|
|
4368
5523
|
/**
|
|
4369
5524
|
*
|
|
@@ -4499,6 +5654,7 @@ export {
|
|
|
4499
5654
|
InquiriesApiAxiosParamCreator,
|
|
4500
5655
|
InquiriesApiFactory,
|
|
4501
5656
|
InquiriesApiFp,
|
|
5657
|
+
ListingSortBy,
|
|
4502
5658
|
ListingsApi,
|
|
4503
5659
|
ListingsApiAxiosParamCreator,
|
|
4504
5660
|
ListingsApiFactory,
|
|
@@ -4507,6 +5663,8 @@ export {
|
|
|
4507
5663
|
ManagedPhoneNumbersApiAxiosParamCreator,
|
|
4508
5664
|
ManagedPhoneNumbersApiFactory,
|
|
4509
5665
|
ManagedPhoneNumbersApiFp,
|
|
5666
|
+
MessageDirection,
|
|
5667
|
+
MessageStatus,
|
|
4510
5668
|
MessagesApi,
|
|
4511
5669
|
MessagesApiAxiosParamCreator,
|
|
4512
5670
|
MessagesApiFactory,
|
|
@@ -4516,17 +5674,24 @@ export {
|
|
|
4516
5674
|
PhoneNumbersApiAxiosParamCreator,
|
|
4517
5675
|
PhoneNumbersApiFactory,
|
|
4518
5676
|
PhoneNumbersApiFp,
|
|
5677
|
+
ProviderMessageApiConversationTypeEnum,
|
|
4519
5678
|
ReservationsApi,
|
|
4520
5679
|
ReservationsApiAxiosParamCreator,
|
|
4521
5680
|
ReservationsApiFactory,
|
|
4522
5681
|
ReservationsApiFp,
|
|
4523
5682
|
SortOrder,
|
|
5683
|
+
SrcResourceModelsConversationsModelConversationsModelConversationSortBy,
|
|
4524
5684
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum,
|
|
4525
5685
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum,
|
|
4526
5686
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum,
|
|
4527
5687
|
SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum,
|
|
4528
5688
|
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum,
|
|
4529
5689
|
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum,
|
|
5690
|
+
SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy,
|
|
5691
|
+
SrcResourceModelsReservationsModelReservationBaseModelSortBy,
|
|
5692
|
+
TwilioInboundSenderTypeDataApiDirectionEnum,
|
|
5693
|
+
TwilioMessageApiConversationTypeEnum,
|
|
5694
|
+
TwilioOutboundSenderTypeDataApiDirectionEnum,
|
|
4530
5695
|
UnboundApi,
|
|
4531
5696
|
UnboundApiAxiosParamCreator,
|
|
4532
5697
|
UnboundApiFactory,
|