@ember-home/unbound-ts-client 0.0.25 → 0.0.27
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 +2378 -502
- package/dist/index.d.ts +2378 -502
- package/dist/index.js +2090 -417
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1802 -129
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87,24 +87,44 @@ 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
|
};
|
|
98
|
-
var
|
|
99
|
-
|
|
115
|
+
var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
|
|
116
|
+
UpdatedAt: "updated_at"
|
|
100
117
|
};
|
|
101
118
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
|
|
102
|
-
|
|
119
|
+
Twilio: "TWILIO"
|
|
103
120
|
};
|
|
104
121
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum = {
|
|
105
|
-
|
|
122
|
+
Email: "EMAIL"
|
|
106
123
|
};
|
|
107
124
|
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = {
|
|
125
|
+
Twilio: "TWILIO"
|
|
126
|
+
};
|
|
127
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi5ConversationTypeEnum = {
|
|
108
128
|
Email: "EMAIL"
|
|
109
129
|
};
|
|
110
130
|
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = {
|
|
@@ -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 = _optionalChain([operationServerMap, 'access', _67 => _67["ContactsApi.emailsDelete"], 'optionalAccess', _68 => _68[localVarOperationServerIndex], 'optionalAccess', _69 => _69.url]);
|
|
1038
1133
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
|
|
1146
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["ContactsApi.emailsUpdate"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
|
|
1147
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1148
|
+
},
|
|
1040
1149
|
/**
|
|
1041
1150
|
*
|
|
1042
1151
|
* @summary Phone_numbers Create
|
|
@@ -1047,8 +1156,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
1047
1156
|
*/
|
|
1048
1157
|
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1049
1158
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
1050
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1051
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1159
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
|
|
1160
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["ContactsApi.phoneNumbersCreate"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
|
|
1052
1161
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1053
1162
|
},
|
|
1054
1163
|
/**
|
|
@@ -1060,8 +1169,22 @@ var ContactsApiFp = function(configuration) {
|
|
|
1060
1169
|
*/
|
|
1061
1170
|
async phoneNumbersDelete(phoneNumberId, options) {
|
|
1062
1171
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
1063
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1064
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1172
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
|
|
1173
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["ContactsApi.phoneNumbersDelete"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
|
|
1174
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
|
|
1187
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["ContactsApi.phoneNumbersUpdate"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
|
|
1065
1188
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1066
1189
|
}
|
|
1067
1190
|
};
|
|
@@ -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
|
};
|
|
@@ -1548,8 +1853,8 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1548
1853
|
*/
|
|
1549
1854
|
async conversationsCreate(conversationCreate, options) {
|
|
1550
1855
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
|
|
1551
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1552
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1856
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
|
|
1857
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["ConversationsApi.conversationsCreate"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
|
|
1553
1858
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1554
1859
|
},
|
|
1555
1860
|
/**
|
|
@@ -1561,21 +1866,27 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1561
1866
|
*/
|
|
1562
1867
|
async conversationsGet(conversationId, options) {
|
|
1563
1868
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
1564
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1565
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1869
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1870
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.conversationsGet"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
1566
1871
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1567
1872
|
},
|
|
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);
|
|
1577
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1578
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
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);
|
|
1888
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
1889
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["ConversationsApi.conversationsList"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
1579
1890
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1580
1891
|
},
|
|
1581
1892
|
/**
|
|
@@ -1588,8 +1899,55 @@ var ConversationsApiFp = function(configuration) {
|
|
|
1588
1899
|
*/
|
|
1589
1900
|
async conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1590
1901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
|
|
1591
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1592
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1902
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
1903
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["ConversationsApi.conversationsUpdate"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
1904
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1905
|
+
},
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @summary Messages Create
|
|
1909
|
+
* @param {string} conversationId
|
|
1910
|
+
* @param {MessageCreate} messageCreate
|
|
1911
|
+
* @param {*} [options] Override http request option.
|
|
1912
|
+
* @throws {RequiredError}
|
|
1913
|
+
*/
|
|
1914
|
+
async messagesCreate(conversationId, messageCreate, options) {
|
|
1915
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
|
|
1916
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
1917
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["ConversationsApi.messagesCreate"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
1918
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
1930
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["ConversationsApi.messagesGet"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
1931
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
1950
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["ConversationsApi.messagesList"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
1593
1951
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1594
1952
|
}
|
|
1595
1953
|
};
|
|
@@ -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
|
};
|
|
@@ -1760,8 +2239,8 @@ var EmailsApiFp = function(configuration) {
|
|
|
1760
2239
|
*/
|
|
1761
2240
|
async emailsCreate(contactId, emailCreate, options) {
|
|
1762
2241
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
1763
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1764
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2242
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2243
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["EmailsApi.emailsCreate"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
1765
2244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1766
2245
|
},
|
|
1767
2246
|
/**
|
|
@@ -1773,8 +2252,22 @@ var EmailsApiFp = function(configuration) {
|
|
|
1773
2252
|
*/
|
|
1774
2253
|
async emailsDelete(emailId, options) {
|
|
1775
2254
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
1776
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1777
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2255
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2256
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["EmailsApi.emailsDelete"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
2257
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2270
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["EmailsApi.emailsUpdate"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
1778
2271
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1779
2272
|
}
|
|
1780
2273
|
};
|
|
@@ -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 {
|
|
@@ -1875,8 +2391,8 @@ var HostawayApiFp = function(configuration) {
|
|
|
1875
2391
|
*/
|
|
1876
2392
|
async webhook(hostawayWebhook, options) {
|
|
1877
2393
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
1878
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1879
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2394
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2395
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["HostawayApi.webhook"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
1880
2396
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1881
2397
|
}
|
|
1882
2398
|
};
|
|
@@ -1953,8 +2469,8 @@ var InquiriesApiFp = function(configuration) {
|
|
|
1953
2469
|
*/
|
|
1954
2470
|
async inquiriesList(contactId, options) {
|
|
1955
2471
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
1956
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1957
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2472
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
2473
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["InquiriesApi.inquiriesList"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
1958
2474
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1959
2475
|
}
|
|
1960
2476
|
};
|
|
@@ -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,16 +2589,35 @@ 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
2601
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["ListingsApi.listingsGet"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
2602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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);
|
|
2034
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2035
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
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);
|
|
2619
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2620
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["ListingsApi.listingsList"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2036
2621
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2037
2622
|
}
|
|
2038
2623
|
};
|
|
@@ -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) {
|
|
@@ -2104,8 +2722,8 @@ var ManagedPhoneNumbersApiFp = function(configuration) {
|
|
|
2104
2722
|
*/
|
|
2105
2723
|
async managedPhoneNumbersList(options) {
|
|
2106
2724
|
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
2107
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2108
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2725
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
|
|
2726
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["ManagedPhoneNumbersApi.managedPhoneNumbersList"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
|
|
2109
2727
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2110
2728
|
}
|
|
2111
2729
|
};
|
|
@@ -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,14 +2876,15 @@ 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);
|
|
2237
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2238
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2884
|
+
async messagesCreate(conversationId, messageCreate, options) {
|
|
2885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
|
|
2886
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
|
|
2887
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["MessagesApi.messagesCreate"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
|
|
2239
2888
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2240
2889
|
},
|
|
2241
2890
|
/**
|
|
@@ -2247,21 +2896,28 @@ var MessagesApiFp = function(configuration) {
|
|
|
2247
2896
|
*/
|
|
2248
2897
|
async messagesGet(messageId, options) {
|
|
2249
2898
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
2250
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2251
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2899
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
|
|
2900
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["MessagesApi.messagesGet"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
|
|
2252
2901
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2253
2902
|
},
|
|
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);
|
|
2263
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2264
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
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);
|
|
2919
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
|
|
2920
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["MessagesApi.messagesList"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
|
|
2265
2921
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2266
2922
|
}
|
|
2267
2923
|
};
|
|
@@ -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
|
};
|
|
@@ -2409,8 +3111,8 @@ var PhoneNumbersApiFp = function(configuration) {
|
|
|
2409
3111
|
*/
|
|
2410
3112
|
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2411
3113
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
2412
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2413
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3114
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
|
|
3115
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["PhoneNumbersApi.phoneNumbersCreate"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
|
|
2414
3116
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2415
3117
|
},
|
|
2416
3118
|
/**
|
|
@@ -2422,8 +3124,22 @@ var PhoneNumbersApiFp = function(configuration) {
|
|
|
2422
3124
|
*/
|
|
2423
3125
|
async phoneNumbersDelete(phoneNumberId, options) {
|
|
2424
3126
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
2425
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2426
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3127
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
|
|
3128
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["PhoneNumbersApi.phoneNumbersDelete"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
|
|
3129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, 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 = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
|
|
3142
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["PhoneNumbersApi.phoneNumbersUpdate"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
|
|
2427
3143
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2428
3144
|
}
|
|
2429
3145
|
};
|
|
@@ -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,106 +3205,44 @@ 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
|
}
|
|
2481
|
-
};
|
|
2482
|
-
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
2483
|
-
return {
|
|
2484
|
-
/**
|
|
2485
|
-
*
|
|
2486
|
-
* @summary Reservations List
|
|
2487
|
-
* @param {string} [contactId]
|
|
2488
|
-
* @param {*} [options] Override http request option.
|
|
2489
|
-
* @throws {RequiredError}
|
|
2490
|
-
*/
|
|
2491
|
-
reservationsList: async (contactId, options = {}) => {
|
|
2492
|
-
const localVarPath = `/reservations`;
|
|
2493
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2494
|
-
let baseOptions;
|
|
2495
|
-
if (configuration) {
|
|
2496
|
-
baseOptions = configuration.baseOptions;
|
|
2497
|
-
}
|
|
2498
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2499
|
-
const localVarHeaderParameter = {};
|
|
2500
|
-
const localVarQueryParameter = {};
|
|
2501
|
-
if (contactId !== void 0) {
|
|
2502
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
2503
|
-
}
|
|
2504
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2505
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2506
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2507
|
-
return {
|
|
2508
|
-
url: toPathString(localVarUrlObj),
|
|
2509
|
-
options: localVarRequestOptions
|
|
2510
|
-
};
|
|
2511
|
-
}
|
|
2512
|
-
};
|
|
2513
|
-
};
|
|
2514
|
-
var ReservationsApiFp = function(configuration) {
|
|
2515
|
-
const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration);
|
|
2516
|
-
return {
|
|
2517
|
-
/**
|
|
2518
|
-
*
|
|
2519
|
-
* @summary Reservations List
|
|
2520
|
-
* @param {string} [contactId]
|
|
2521
|
-
* @param {*} [options] Override http request option.
|
|
2522
|
-
* @throws {RequiredError}
|
|
2523
|
-
*/
|
|
2524
|
-
async reservationsList(contactId, options) {
|
|
2525
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
2526
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2527
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["ReservationsApi.reservationsList"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2528
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2529
|
-
}
|
|
2530
|
-
};
|
|
2531
|
-
};
|
|
2532
|
-
var ReservationsApiFactory = function(configuration, basePath, axios) {
|
|
2533
|
-
const localVarFp = ReservationsApiFp(configuration);
|
|
2534
|
-
return {
|
|
2535
|
-
/**
|
|
2536
|
-
*
|
|
2537
|
-
* @summary Reservations List
|
|
2538
|
-
* @param {string} [contactId]
|
|
2539
|
-
* @param {*} [options] Override http request option.
|
|
2540
|
-
* @throws {RequiredError}
|
|
2541
|
-
*/
|
|
2542
|
-
reservationsList(contactId, options) {
|
|
2543
|
-
return localVarFp.reservationsList(contactId, options).then((request) => request(axios, basePath));
|
|
2544
|
-
}
|
|
2545
|
-
};
|
|
2546
|
-
};
|
|
2547
|
-
var ReservationsApi = class extends BaseAPI {
|
|
2548
3208
|
/**
|
|
2549
3209
|
*
|
|
2550
|
-
* @summary
|
|
2551
|
-
* @param {string}
|
|
3210
|
+
* @summary Phone_numbers Update
|
|
3211
|
+
* @param {string} phoneNumberId
|
|
3212
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
2552
3213
|
* @param {*} [options] Override http request option.
|
|
2553
3214
|
* @throws {RequiredError}
|
|
2554
|
-
* @memberof
|
|
3215
|
+
* @memberof PhoneNumbersApi
|
|
2555
3216
|
*/
|
|
2556
|
-
|
|
2557
|
-
return
|
|
3217
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
3218
|
+
return PhoneNumbersApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2558
3219
|
}
|
|
2559
3220
|
};
|
|
2560
|
-
var
|
|
3221
|
+
var ProvidersApiAxiosParamCreator = function(configuration) {
|
|
2561
3222
|
return {
|
|
2562
3223
|
/**
|
|
2563
3224
|
*
|
|
2564
|
-
* @summary
|
|
3225
|
+
* @summary Providers Create
|
|
3226
|
+
* @param {ProviderCreate} providerCreate
|
|
2565
3227
|
* @param {*} [options] Override http request option.
|
|
2566
3228
|
* @throws {RequiredError}
|
|
2567
3229
|
*/
|
|
2568
|
-
|
|
2569
|
-
|
|
3230
|
+
providersCreate: async (providerCreate, options = {}) => {
|
|
3231
|
+
assertParamExists("providersCreate", "providerCreate", providerCreate);
|
|
3232
|
+
const localVarPath = `/providers`;
|
|
2570
3233
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2571
3234
|
let baseOptions;
|
|
2572
3235
|
if (configuration) {
|
|
2573
3236
|
baseOptions = configuration.baseOptions;
|
|
2574
3237
|
}
|
|
2575
|
-
const localVarRequestOptions = { method: "
|
|
3238
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2576
3239
|
const localVarHeaderParameter = {};
|
|
2577
3240
|
const localVarQueryParameter = {};
|
|
3241
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2578
3242
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2579
3243
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2580
3244
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3245
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerCreate, localVarRequestOptions, configuration);
|
|
2581
3246
|
return {
|
|
2582
3247
|
url: toPathString(localVarUrlObj),
|
|
2583
3248
|
options: localVarRequestOptions
|
|
@@ -2585,29 +3250,25 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2585
3250
|
},
|
|
2586
3251
|
/**
|
|
2587
3252
|
*
|
|
2588
|
-
* @summary
|
|
2589
|
-
* @param {string}
|
|
2590
|
-
* @param {AddressCreate} addressCreate
|
|
3253
|
+
* @summary Providers Get
|
|
3254
|
+
* @param {string} providerId
|
|
2591
3255
|
* @param {*} [options] Override http request option.
|
|
2592
3256
|
* @throws {RequiredError}
|
|
2593
3257
|
*/
|
|
2594
|
-
|
|
2595
|
-
assertParamExists("
|
|
2596
|
-
|
|
2597
|
-
const localVarPath = `/contacts/{contactId}/addresses`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
3258
|
+
providersGet: async (providerId, options = {}) => {
|
|
3259
|
+
assertParamExists("providersGet", "providerId", providerId);
|
|
3260
|
+
const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
|
|
2598
3261
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2599
3262
|
let baseOptions;
|
|
2600
3263
|
if (configuration) {
|
|
2601
3264
|
baseOptions = configuration.baseOptions;
|
|
2602
3265
|
}
|
|
2603
|
-
const localVarRequestOptions = { method: "
|
|
3266
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2604
3267
|
const localVarHeaderParameter = {};
|
|
2605
3268
|
const localVarQueryParameter = {};
|
|
2606
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2607
3269
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2608
3270
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2609
3271
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2610
|
-
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
2611
3272
|
return {
|
|
2612
3273
|
url: toPathString(localVarUrlObj),
|
|
2613
3274
|
options: localVarRequestOptions
|
|
@@ -2615,20 +3276,18 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2615
3276
|
},
|
|
2616
3277
|
/**
|
|
2617
3278
|
*
|
|
2618
|
-
* @summary
|
|
2619
|
-
* @param {string} addressId
|
|
3279
|
+
* @summary Providers List
|
|
2620
3280
|
* @param {*} [options] Override http request option.
|
|
2621
3281
|
* @throws {RequiredError}
|
|
2622
3282
|
*/
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
3283
|
+
providersList: async (options = {}) => {
|
|
3284
|
+
const localVarPath = `/providers`;
|
|
2626
3285
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2627
3286
|
let baseOptions;
|
|
2628
3287
|
if (configuration) {
|
|
2629
3288
|
baseOptions = configuration.baseOptions;
|
|
2630
3289
|
}
|
|
2631
|
-
const localVarRequestOptions = { method: "
|
|
3290
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2632
3291
|
const localVarHeaderParameter = {};
|
|
2633
3292
|
const localVarQueryParameter = {};
|
|
2634
3293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2641,16 +3300,16 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2641
3300
|
},
|
|
2642
3301
|
/**
|
|
2643
3302
|
*
|
|
2644
|
-
* @summary
|
|
2645
|
-
* @param {string}
|
|
2646
|
-
* @param {
|
|
3303
|
+
* @summary Providers Update
|
|
3304
|
+
* @param {string} providerId
|
|
3305
|
+
* @param {ProviderUpdate} providerUpdate
|
|
2647
3306
|
* @param {*} [options] Override http request option.
|
|
2648
3307
|
* @throws {RequiredError}
|
|
2649
3308
|
*/
|
|
2650
|
-
|
|
2651
|
-
assertParamExists("
|
|
2652
|
-
assertParamExists("
|
|
2653
|
-
const localVarPath = `/
|
|
3309
|
+
providersUpdate: async (providerId, providerUpdate, options = {}) => {
|
|
3310
|
+
assertParamExists("providersUpdate", "providerId", providerId);
|
|
3311
|
+
assertParamExists("providersUpdate", "providerUpdate", providerUpdate);
|
|
3312
|
+
const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
|
|
2654
3313
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2655
3314
|
let baseOptions;
|
|
2656
3315
|
if (configuration) {
|
|
@@ -2663,52 +3322,434 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2663
3322
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2664
3323
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2665
3324
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2666
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3325
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerUpdate, localVarRequestOptions, configuration);
|
|
2667
3326
|
return {
|
|
2668
3327
|
url: toPathString(localVarUrlObj),
|
|
2669
3328
|
options: localVarRequestOptions
|
|
2670
3329
|
};
|
|
3330
|
+
}
|
|
3331
|
+
};
|
|
3332
|
+
};
|
|
3333
|
+
var ProvidersApiFp = function(configuration) {
|
|
3334
|
+
const localVarAxiosParamCreator = ProvidersApiAxiosParamCreator(configuration);
|
|
3335
|
+
return {
|
|
3336
|
+
/**
|
|
3337
|
+
*
|
|
3338
|
+
* @summary Providers Create
|
|
3339
|
+
* @param {ProviderCreate} providerCreate
|
|
3340
|
+
* @param {*} [options] Override http request option.
|
|
3341
|
+
* @throws {RequiredError}
|
|
3342
|
+
*/
|
|
3343
|
+
async providersCreate(providerCreate, options) {
|
|
3344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(providerCreate, options);
|
|
3345
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
|
|
3346
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["ProvidersApi.providersCreate"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
|
|
3347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2671
3348
|
},
|
|
2672
3349
|
/**
|
|
2673
|
-
*
|
|
2674
|
-
* @summary
|
|
2675
|
-
* @param {string}
|
|
2676
|
-
* @param {string} listingId
|
|
2677
|
-
* @param {CreateContactListing} createContactListing
|
|
3350
|
+
*
|
|
3351
|
+
* @summary Providers Get
|
|
3352
|
+
* @param {string} providerId
|
|
2678
3353
|
* @param {*} [options] Override http request option.
|
|
2679
3354
|
* @throws {RequiredError}
|
|
2680
3355
|
*/
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2687
|
-
let baseOptions;
|
|
2688
|
-
if (configuration) {
|
|
2689
|
-
baseOptions = configuration.baseOptions;
|
|
2690
|
-
}
|
|
2691
|
-
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
2692
|
-
const localVarHeaderParameter = {};
|
|
2693
|
-
const localVarQueryParameter = {};
|
|
2694
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2695
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2696
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2697
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2698
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createContactListing, localVarRequestOptions, configuration);
|
|
2699
|
-
return {
|
|
2700
|
-
url: toPathString(localVarUrlObj),
|
|
2701
|
-
options: localVarRequestOptions
|
|
2702
|
-
};
|
|
3356
|
+
async providersGet(providerId, options) {
|
|
3357
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
|
|
3358
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
|
|
3359
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["ProvidersApi.providersGet"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
|
|
3360
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2703
3361
|
},
|
|
2704
3362
|
/**
|
|
2705
3363
|
*
|
|
2706
|
-
* @summary
|
|
2707
|
-
* @param {ContactCreate} contactCreate
|
|
3364
|
+
* @summary Providers List
|
|
2708
3365
|
* @param {*} [options] Override http request option.
|
|
2709
3366
|
* @throws {RequiredError}
|
|
2710
3367
|
*/
|
|
2711
|
-
|
|
3368
|
+
async providersList(options) {
|
|
3369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
|
|
3370
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
|
|
3371
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["ProvidersApi.providersList"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
|
|
3372
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3373
|
+
},
|
|
3374
|
+
/**
|
|
3375
|
+
*
|
|
3376
|
+
* @summary Providers Update
|
|
3377
|
+
* @param {string} providerId
|
|
3378
|
+
* @param {ProviderUpdate} providerUpdate
|
|
3379
|
+
* @param {*} [options] Override http request option.
|
|
3380
|
+
* @throws {RequiredError}
|
|
3381
|
+
*/
|
|
3382
|
+
async providersUpdate(providerId, providerUpdate, options) {
|
|
3383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, providerUpdate, options);
|
|
3384
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _182 => _182.serverIndex]), () => ( 0));
|
|
3385
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _183 => _183["ProvidersApi.providersUpdate"], 'optionalAccess', _184 => _184[localVarOperationServerIndex], 'optionalAccess', _185 => _185.url]);
|
|
3386
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3387
|
+
}
|
|
3388
|
+
};
|
|
3389
|
+
};
|
|
3390
|
+
var ProvidersApiFactory = function(configuration, basePath, axios) {
|
|
3391
|
+
const localVarFp = ProvidersApiFp(configuration);
|
|
3392
|
+
return {
|
|
3393
|
+
/**
|
|
3394
|
+
*
|
|
3395
|
+
* @summary Providers Create
|
|
3396
|
+
* @param {ProviderCreate} providerCreate
|
|
3397
|
+
* @param {*} [options] Override http request option.
|
|
3398
|
+
* @throws {RequiredError}
|
|
3399
|
+
*/
|
|
3400
|
+
providersCreate(providerCreate, options) {
|
|
3401
|
+
return localVarFp.providersCreate(providerCreate, options).then((request) => request(axios, basePath));
|
|
3402
|
+
},
|
|
3403
|
+
/**
|
|
3404
|
+
*
|
|
3405
|
+
* @summary Providers Get
|
|
3406
|
+
* @param {string} providerId
|
|
3407
|
+
* @param {*} [options] Override http request option.
|
|
3408
|
+
* @throws {RequiredError}
|
|
3409
|
+
*/
|
|
3410
|
+
providersGet(providerId, options) {
|
|
3411
|
+
return localVarFp.providersGet(providerId, options).then((request) => request(axios, basePath));
|
|
3412
|
+
},
|
|
3413
|
+
/**
|
|
3414
|
+
*
|
|
3415
|
+
* @summary Providers List
|
|
3416
|
+
* @param {*} [options] Override http request option.
|
|
3417
|
+
* @throws {RequiredError}
|
|
3418
|
+
*/
|
|
3419
|
+
providersList(options) {
|
|
3420
|
+
return localVarFp.providersList(options).then((request) => request(axios, basePath));
|
|
3421
|
+
},
|
|
3422
|
+
/**
|
|
3423
|
+
*
|
|
3424
|
+
* @summary Providers Update
|
|
3425
|
+
* @param {string} providerId
|
|
3426
|
+
* @param {ProviderUpdate} providerUpdate
|
|
3427
|
+
* @param {*} [options] Override http request option.
|
|
3428
|
+
* @throws {RequiredError}
|
|
3429
|
+
*/
|
|
3430
|
+
providersUpdate(providerId, providerUpdate, options) {
|
|
3431
|
+
return localVarFp.providersUpdate(providerId, providerUpdate, options).then((request) => request(axios, basePath));
|
|
3432
|
+
}
|
|
3433
|
+
};
|
|
3434
|
+
};
|
|
3435
|
+
var ProvidersApi = class extends BaseAPI {
|
|
3436
|
+
/**
|
|
3437
|
+
*
|
|
3438
|
+
* @summary Providers Create
|
|
3439
|
+
* @param {ProviderCreate} providerCreate
|
|
3440
|
+
* @param {*} [options] Override http request option.
|
|
3441
|
+
* @throws {RequiredError}
|
|
3442
|
+
* @memberof ProvidersApi
|
|
3443
|
+
*/
|
|
3444
|
+
providersCreate(providerCreate, options) {
|
|
3445
|
+
return ProvidersApiFp(this.configuration).providersCreate(providerCreate, options).then((request) => request(this.axios, this.basePath));
|
|
3446
|
+
}
|
|
3447
|
+
/**
|
|
3448
|
+
*
|
|
3449
|
+
* @summary Providers Get
|
|
3450
|
+
* @param {string} providerId
|
|
3451
|
+
* @param {*} [options] Override http request option.
|
|
3452
|
+
* @throws {RequiredError}
|
|
3453
|
+
* @memberof ProvidersApi
|
|
3454
|
+
*/
|
|
3455
|
+
providersGet(providerId, options) {
|
|
3456
|
+
return ProvidersApiFp(this.configuration).providersGet(providerId, options).then((request) => request(this.axios, this.basePath));
|
|
3457
|
+
}
|
|
3458
|
+
/**
|
|
3459
|
+
*
|
|
3460
|
+
* @summary Providers List
|
|
3461
|
+
* @param {*} [options] Override http request option.
|
|
3462
|
+
* @throws {RequiredError}
|
|
3463
|
+
* @memberof ProvidersApi
|
|
3464
|
+
*/
|
|
3465
|
+
providersList(options) {
|
|
3466
|
+
return ProvidersApiFp(this.configuration).providersList(options).then((request) => request(this.axios, this.basePath));
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
*
|
|
3470
|
+
* @summary Providers Update
|
|
3471
|
+
* @param {string} providerId
|
|
3472
|
+
* @param {ProviderUpdate} providerUpdate
|
|
3473
|
+
* @param {*} [options] Override http request option.
|
|
3474
|
+
* @throws {RequiredError}
|
|
3475
|
+
* @memberof ProvidersApi
|
|
3476
|
+
*/
|
|
3477
|
+
providersUpdate(providerId, providerUpdate, options) {
|
|
3478
|
+
return ProvidersApiFp(this.configuration).providersUpdate(providerId, providerUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3479
|
+
}
|
|
3480
|
+
};
|
|
3481
|
+
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
3482
|
+
return {
|
|
3483
|
+
/**
|
|
3484
|
+
*
|
|
3485
|
+
* @summary Reservations List
|
|
3486
|
+
* @param {string | null} [searchString]
|
|
3487
|
+
* @param {string | null} [contactId]
|
|
3488
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3489
|
+
* @param {number} [limit]
|
|
3490
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3491
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3492
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3493
|
+
* @param {*} [options] Override http request option.
|
|
3494
|
+
* @throws {RequiredError}
|
|
3495
|
+
*/
|
|
3496
|
+
reservationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3497
|
+
const localVarPath = `/reservations`;
|
|
3498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3499
|
+
let baseOptions;
|
|
3500
|
+
if (configuration) {
|
|
3501
|
+
baseOptions = configuration.baseOptions;
|
|
3502
|
+
}
|
|
3503
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3504
|
+
const localVarHeaderParameter = {};
|
|
3505
|
+
const localVarQueryParameter = {};
|
|
3506
|
+
if (searchString !== void 0) {
|
|
3507
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
3508
|
+
}
|
|
3509
|
+
if (contactId !== void 0) {
|
|
3510
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
3511
|
+
}
|
|
3512
|
+
if (cursor !== void 0) {
|
|
3513
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
3514
|
+
}
|
|
3515
|
+
if (limit !== void 0) {
|
|
3516
|
+
localVarQueryParameter["limit"] = limit;
|
|
3517
|
+
}
|
|
3518
|
+
if (pageDir !== void 0) {
|
|
3519
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
3520
|
+
}
|
|
3521
|
+
if (sortBy !== void 0) {
|
|
3522
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
3523
|
+
}
|
|
3524
|
+
if (sortOrder !== void 0) {
|
|
3525
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
3526
|
+
}
|
|
3527
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3529
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3530
|
+
return {
|
|
3531
|
+
url: toPathString(localVarUrlObj),
|
|
3532
|
+
options: localVarRequestOptions
|
|
3533
|
+
};
|
|
3534
|
+
}
|
|
3535
|
+
};
|
|
3536
|
+
};
|
|
3537
|
+
var ReservationsApiFp = function(configuration) {
|
|
3538
|
+
const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration);
|
|
3539
|
+
return {
|
|
3540
|
+
/**
|
|
3541
|
+
*
|
|
3542
|
+
* @summary Reservations List
|
|
3543
|
+
* @param {string | null} [searchString]
|
|
3544
|
+
* @param {string | null} [contactId]
|
|
3545
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3546
|
+
* @param {number} [limit]
|
|
3547
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3548
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3549
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3550
|
+
* @param {*} [options] Override http request option.
|
|
3551
|
+
* @throws {RequiredError}
|
|
3552
|
+
*/
|
|
3553
|
+
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3554
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3555
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _186 => _186.serverIndex]), () => ( 0));
|
|
3556
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _187 => _187["ReservationsApi.reservationsList"], 'optionalAccess', _188 => _188[localVarOperationServerIndex], 'optionalAccess', _189 => _189.url]);
|
|
3557
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3558
|
+
}
|
|
3559
|
+
};
|
|
3560
|
+
};
|
|
3561
|
+
var ReservationsApiFactory = function(configuration, basePath, axios) {
|
|
3562
|
+
const localVarFp = ReservationsApiFp(configuration);
|
|
3563
|
+
return {
|
|
3564
|
+
/**
|
|
3565
|
+
*
|
|
3566
|
+
* @summary Reservations List
|
|
3567
|
+
* @param {string | null} [searchString]
|
|
3568
|
+
* @param {string | null} [contactId]
|
|
3569
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3570
|
+
* @param {number} [limit]
|
|
3571
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3572
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3573
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3574
|
+
* @param {*} [options] Override http request option.
|
|
3575
|
+
* @throws {RequiredError}
|
|
3576
|
+
*/
|
|
3577
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3578
|
+
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
3579
|
+
}
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
var ReservationsApi = class extends BaseAPI {
|
|
3583
|
+
/**
|
|
3584
|
+
*
|
|
3585
|
+
* @summary Reservations List
|
|
3586
|
+
* @param {string | null} [searchString]
|
|
3587
|
+
* @param {string | null} [contactId]
|
|
3588
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3589
|
+
* @param {number} [limit]
|
|
3590
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
3591
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
3592
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3593
|
+
* @param {*} [options] Override http request option.
|
|
3594
|
+
* @throws {RequiredError}
|
|
3595
|
+
* @memberof ReservationsApi
|
|
3596
|
+
*/
|
|
3597
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3598
|
+
return ReservationsApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
3599
|
+
}
|
|
3600
|
+
};
|
|
3601
|
+
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
3602
|
+
return {
|
|
3603
|
+
/**
|
|
3604
|
+
*
|
|
3605
|
+
* @summary Accounts List
|
|
3606
|
+
* @param {*} [options] Override http request option.
|
|
3607
|
+
* @throws {RequiredError}
|
|
3608
|
+
*/
|
|
3609
|
+
accountsList: async (options = {}) => {
|
|
3610
|
+
const localVarPath = `/accounts`;
|
|
3611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3612
|
+
let baseOptions;
|
|
3613
|
+
if (configuration) {
|
|
3614
|
+
baseOptions = configuration.baseOptions;
|
|
3615
|
+
}
|
|
3616
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3617
|
+
const localVarHeaderParameter = {};
|
|
3618
|
+
const localVarQueryParameter = {};
|
|
3619
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3620
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3621
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3622
|
+
return {
|
|
3623
|
+
url: toPathString(localVarUrlObj),
|
|
3624
|
+
options: localVarRequestOptions
|
|
3625
|
+
};
|
|
3626
|
+
},
|
|
3627
|
+
/**
|
|
3628
|
+
*
|
|
3629
|
+
* @summary Addresses Create
|
|
3630
|
+
* @param {string} contactId
|
|
3631
|
+
* @param {AddressCreate} addressCreate
|
|
3632
|
+
* @param {*} [options] Override http request option.
|
|
3633
|
+
* @throws {RequiredError}
|
|
3634
|
+
*/
|
|
3635
|
+
addressesCreate: async (contactId, addressCreate, options = {}) => {
|
|
3636
|
+
assertParamExists("addressesCreate", "contactId", contactId);
|
|
3637
|
+
assertParamExists("addressesCreate", "addressCreate", addressCreate);
|
|
3638
|
+
const localVarPath = `/contacts/{contactId}/addresses`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
3639
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3640
|
+
let baseOptions;
|
|
3641
|
+
if (configuration) {
|
|
3642
|
+
baseOptions = configuration.baseOptions;
|
|
3643
|
+
}
|
|
3644
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3645
|
+
const localVarHeaderParameter = {};
|
|
3646
|
+
const localVarQueryParameter = {};
|
|
3647
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3648
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3649
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3650
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3651
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
3652
|
+
return {
|
|
3653
|
+
url: toPathString(localVarUrlObj),
|
|
3654
|
+
options: localVarRequestOptions
|
|
3655
|
+
};
|
|
3656
|
+
},
|
|
3657
|
+
/**
|
|
3658
|
+
*
|
|
3659
|
+
* @summary Addresses Delete
|
|
3660
|
+
* @param {string} addressId
|
|
3661
|
+
* @param {*} [options] Override http request option.
|
|
3662
|
+
* @throws {RequiredError}
|
|
3663
|
+
*/
|
|
3664
|
+
addressesDelete: async (addressId, options = {}) => {
|
|
3665
|
+
assertParamExists("addressesDelete", "addressId", addressId);
|
|
3666
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
3667
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3668
|
+
let baseOptions;
|
|
3669
|
+
if (configuration) {
|
|
3670
|
+
baseOptions = configuration.baseOptions;
|
|
3671
|
+
}
|
|
3672
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
3673
|
+
const localVarHeaderParameter = {};
|
|
3674
|
+
const localVarQueryParameter = {};
|
|
3675
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3677
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3678
|
+
return {
|
|
3679
|
+
url: toPathString(localVarUrlObj),
|
|
3680
|
+
options: localVarRequestOptions
|
|
3681
|
+
};
|
|
3682
|
+
},
|
|
3683
|
+
/**
|
|
3684
|
+
*
|
|
3685
|
+
* @summary Addresses Update
|
|
3686
|
+
* @param {string} addressId
|
|
3687
|
+
* @param {AddressUpdate} addressUpdate
|
|
3688
|
+
* @param {*} [options] Override http request option.
|
|
3689
|
+
* @throws {RequiredError}
|
|
3690
|
+
*/
|
|
3691
|
+
addressesUpdate: async (addressId, addressUpdate, options = {}) => {
|
|
3692
|
+
assertParamExists("addressesUpdate", "addressId", addressId);
|
|
3693
|
+
assertParamExists("addressesUpdate", "addressUpdate", addressUpdate);
|
|
3694
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
3695
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3696
|
+
let baseOptions;
|
|
3697
|
+
if (configuration) {
|
|
3698
|
+
baseOptions = configuration.baseOptions;
|
|
3699
|
+
}
|
|
3700
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3701
|
+
const localVarHeaderParameter = {};
|
|
3702
|
+
const localVarQueryParameter = {};
|
|
3703
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3704
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3705
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3706
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3707
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressUpdate, localVarRequestOptions, configuration);
|
|
3708
|
+
return {
|
|
3709
|
+
url: toPathString(localVarUrlObj),
|
|
3710
|
+
options: localVarRequestOptions
|
|
3711
|
+
};
|
|
3712
|
+
},
|
|
3713
|
+
/**
|
|
3714
|
+
* Associates a contact with a listing with the OWNER type.
|
|
3715
|
+
* @summary Create Contact Listing
|
|
3716
|
+
* @param {string} contactId
|
|
3717
|
+
* @param {string} listingId
|
|
3718
|
+
* @param {CreateContactListing} createContactListing
|
|
3719
|
+
* @param {*} [options] Override http request option.
|
|
3720
|
+
* @throws {RequiredError}
|
|
3721
|
+
*/
|
|
3722
|
+
contactsAddListing: async (contactId, listingId, createContactListing, options = {}) => {
|
|
3723
|
+
assertParamExists("contactsAddListing", "contactId", contactId);
|
|
3724
|
+
assertParamExists("contactsAddListing", "listingId", listingId);
|
|
3725
|
+
assertParamExists("contactsAddListing", "createContactListing", createContactListing);
|
|
3726
|
+
const localVarPath = `/contacts/{contact_id}/listings/{listing_id}`.replace(`{${"contact_id"}}`, encodeURIComponent(String(contactId))).replace(`{${"listing_id"}}`, encodeURIComponent(String(listingId)));
|
|
3727
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3728
|
+
let baseOptions;
|
|
3729
|
+
if (configuration) {
|
|
3730
|
+
baseOptions = configuration.baseOptions;
|
|
3731
|
+
}
|
|
3732
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
3733
|
+
const localVarHeaderParameter = {};
|
|
3734
|
+
const localVarQueryParameter = {};
|
|
3735
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3738
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3739
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createContactListing, localVarRequestOptions, configuration);
|
|
3740
|
+
return {
|
|
3741
|
+
url: toPathString(localVarUrlObj),
|
|
3742
|
+
options: localVarRequestOptions
|
|
3743
|
+
};
|
|
3744
|
+
},
|
|
3745
|
+
/**
|
|
3746
|
+
*
|
|
3747
|
+
* @summary Contacts Create
|
|
3748
|
+
* @param {ContactCreate} contactCreate
|
|
3749
|
+
* @param {*} [options] Override http request option.
|
|
3750
|
+
* @throws {RequiredError}
|
|
3751
|
+
*/
|
|
3752
|
+
contactsCreate: async (contactCreate, options = {}) => {
|
|
2712
3753
|
assertParamExists("contactsCreate", "contactCreate", contactCreate);
|
|
2713
3754
|
const localVarPath = `/contacts`;
|
|
2714
3755
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2917,35 +3958,257 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2917
3958
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2918
3959
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2919
3960
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2920
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateContactListing, localVarRequestOptions, configuration);
|
|
3961
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateContactListing, localVarRequestOptions, configuration);
|
|
3962
|
+
return {
|
|
3963
|
+
url: toPathString(localVarUrlObj),
|
|
3964
|
+
options: localVarRequestOptions
|
|
3965
|
+
};
|
|
3966
|
+
},
|
|
3967
|
+
/**
|
|
3968
|
+
*
|
|
3969
|
+
* @summary Conversations Create
|
|
3970
|
+
* @param {ConversationCreate} conversationCreate
|
|
3971
|
+
* @param {*} [options] Override http request option.
|
|
3972
|
+
* @throws {RequiredError}
|
|
3973
|
+
*/
|
|
3974
|
+
conversationsCreate: async (conversationCreate, options = {}) => {
|
|
3975
|
+
assertParamExists("conversationsCreate", "conversationCreate", conversationCreate);
|
|
3976
|
+
const localVarPath = `/conversations`;
|
|
3977
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3978
|
+
let baseOptions;
|
|
3979
|
+
if (configuration) {
|
|
3980
|
+
baseOptions = configuration.baseOptions;
|
|
3981
|
+
}
|
|
3982
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3983
|
+
const localVarHeaderParameter = {};
|
|
3984
|
+
const localVarQueryParameter = {};
|
|
3985
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3986
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3987
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3988
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3989
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationCreate, localVarRequestOptions, configuration);
|
|
3990
|
+
return {
|
|
3991
|
+
url: toPathString(localVarUrlObj),
|
|
3992
|
+
options: localVarRequestOptions
|
|
3993
|
+
};
|
|
3994
|
+
},
|
|
3995
|
+
/**
|
|
3996
|
+
*
|
|
3997
|
+
* @summary Conversations Get
|
|
3998
|
+
* @param {string} conversationId
|
|
3999
|
+
* @param {*} [options] Override http request option.
|
|
4000
|
+
* @throws {RequiredError}
|
|
4001
|
+
*/
|
|
4002
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
4003
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
4004
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
4005
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4006
|
+
let baseOptions;
|
|
4007
|
+
if (configuration) {
|
|
4008
|
+
baseOptions = configuration.baseOptions;
|
|
4009
|
+
}
|
|
4010
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
4011
|
+
const localVarHeaderParameter = {};
|
|
4012
|
+
const localVarQueryParameter = {};
|
|
4013
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4014
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4015
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4016
|
+
return {
|
|
4017
|
+
url: toPathString(localVarUrlObj),
|
|
4018
|
+
options: localVarRequestOptions
|
|
4019
|
+
};
|
|
4020
|
+
},
|
|
4021
|
+
/**
|
|
4022
|
+
* List all conversations, optionally filtered by contact_id
|
|
4023
|
+
* @summary Conversations List
|
|
4024
|
+
* @param {string | null} [searchString]
|
|
4025
|
+
* @param {string | null} [contactId]
|
|
4026
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4027
|
+
* @param {number} [limit]
|
|
4028
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4029
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
4030
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4031
|
+
* @param {*} [options] Override http request option.
|
|
4032
|
+
* @throws {RequiredError}
|
|
4033
|
+
*/
|
|
4034
|
+
conversationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
4035
|
+
const localVarPath = `/conversations`;
|
|
4036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4037
|
+
let baseOptions;
|
|
4038
|
+
if (configuration) {
|
|
4039
|
+
baseOptions = configuration.baseOptions;
|
|
4040
|
+
}
|
|
4041
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
4042
|
+
const localVarHeaderParameter = {};
|
|
4043
|
+
const localVarQueryParameter = {};
|
|
4044
|
+
if (searchString !== void 0) {
|
|
4045
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4046
|
+
}
|
|
4047
|
+
if (contactId !== void 0) {
|
|
4048
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
4049
|
+
}
|
|
4050
|
+
if (cursor !== void 0) {
|
|
4051
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4052
|
+
}
|
|
4053
|
+
if (limit !== void 0) {
|
|
4054
|
+
localVarQueryParameter["limit"] = limit;
|
|
4055
|
+
}
|
|
4056
|
+
if (pageDir !== void 0) {
|
|
4057
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4058
|
+
}
|
|
4059
|
+
if (sortBy !== void 0) {
|
|
4060
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4061
|
+
}
|
|
4062
|
+
if (sortOrder !== void 0) {
|
|
4063
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4064
|
+
}
|
|
4065
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4067
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4068
|
+
return {
|
|
4069
|
+
url: toPathString(localVarUrlObj),
|
|
4070
|
+
options: localVarRequestOptions
|
|
4071
|
+
};
|
|
4072
|
+
},
|
|
4073
|
+
/**
|
|
4074
|
+
*
|
|
4075
|
+
* @summary Conversations Update
|
|
4076
|
+
* @param {string} conversationId
|
|
4077
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
4078
|
+
* @param {*} [options] Override http request option.
|
|
4079
|
+
* @throws {RequiredError}
|
|
4080
|
+
*/
|
|
4081
|
+
conversationsUpdate: async (conversationId, conversationUpdate, options = {}) => {
|
|
4082
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
4083
|
+
assertParamExists("conversationsUpdate", "conversationUpdate", conversationUpdate);
|
|
4084
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
4085
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4086
|
+
let baseOptions;
|
|
4087
|
+
if (configuration) {
|
|
4088
|
+
baseOptions = configuration.baseOptions;
|
|
4089
|
+
}
|
|
4090
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
4091
|
+
const localVarHeaderParameter = {};
|
|
4092
|
+
const localVarQueryParameter = {};
|
|
4093
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4094
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4095
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4096
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4097
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdate, localVarRequestOptions, configuration);
|
|
4098
|
+
return {
|
|
4099
|
+
url: toPathString(localVarUrlObj),
|
|
4100
|
+
options: localVarRequestOptions
|
|
4101
|
+
};
|
|
4102
|
+
},
|
|
4103
|
+
/**
|
|
4104
|
+
*
|
|
4105
|
+
* @summary Emails Create
|
|
4106
|
+
* @param {string} contactId
|
|
4107
|
+
* @param {EmailCreate} emailCreate
|
|
4108
|
+
* @param {*} [options] Override http request option.
|
|
4109
|
+
* @throws {RequiredError}
|
|
4110
|
+
*/
|
|
4111
|
+
emailsCreate: async (contactId, emailCreate, options = {}) => {
|
|
4112
|
+
assertParamExists("emailsCreate", "contactId", contactId);
|
|
4113
|
+
assertParamExists("emailsCreate", "emailCreate", emailCreate);
|
|
4114
|
+
const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
4115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4116
|
+
let baseOptions;
|
|
4117
|
+
if (configuration) {
|
|
4118
|
+
baseOptions = configuration.baseOptions;
|
|
4119
|
+
}
|
|
4120
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
4121
|
+
const localVarHeaderParameter = {};
|
|
4122
|
+
const localVarQueryParameter = {};
|
|
4123
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4126
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4127
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
|
|
4128
|
+
return {
|
|
4129
|
+
url: toPathString(localVarUrlObj),
|
|
4130
|
+
options: localVarRequestOptions
|
|
4131
|
+
};
|
|
4132
|
+
},
|
|
4133
|
+
/**
|
|
4134
|
+
*
|
|
4135
|
+
* @summary Emails Delete
|
|
4136
|
+
* @param {string} emailId
|
|
4137
|
+
* @param {*} [options] Override http request option.
|
|
4138
|
+
* @throws {RequiredError}
|
|
4139
|
+
*/
|
|
4140
|
+
emailsDelete: async (emailId, options = {}) => {
|
|
4141
|
+
assertParamExists("emailsDelete", "emailId", emailId);
|
|
4142
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
4143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4144
|
+
let baseOptions;
|
|
4145
|
+
if (configuration) {
|
|
4146
|
+
baseOptions = configuration.baseOptions;
|
|
4147
|
+
}
|
|
4148
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
4149
|
+
const localVarHeaderParameter = {};
|
|
4150
|
+
const localVarQueryParameter = {};
|
|
4151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4154
|
+
return {
|
|
4155
|
+
url: toPathString(localVarUrlObj),
|
|
4156
|
+
options: localVarRequestOptions
|
|
4157
|
+
};
|
|
4158
|
+
},
|
|
4159
|
+
/**
|
|
4160
|
+
*
|
|
4161
|
+
* @summary Emails Update
|
|
4162
|
+
* @param {string} emailId
|
|
4163
|
+
* @param {EmailUpdate} emailUpdate
|
|
4164
|
+
* @param {*} [options] Override http request option.
|
|
4165
|
+
* @throws {RequiredError}
|
|
4166
|
+
*/
|
|
4167
|
+
emailsUpdate: async (emailId, emailUpdate, options = {}) => {
|
|
4168
|
+
assertParamExists("emailsUpdate", "emailId", emailId);
|
|
4169
|
+
assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
|
|
4170
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
4171
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4172
|
+
let baseOptions;
|
|
4173
|
+
if (configuration) {
|
|
4174
|
+
baseOptions = configuration.baseOptions;
|
|
4175
|
+
}
|
|
4176
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
4177
|
+
const localVarHeaderParameter = {};
|
|
4178
|
+
const localVarQueryParameter = {};
|
|
4179
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4180
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4181
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4182
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4183
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
|
|
2921
4184
|
return {
|
|
2922
4185
|
url: toPathString(localVarUrlObj),
|
|
2923
4186
|
options: localVarRequestOptions
|
|
2924
4187
|
};
|
|
2925
4188
|
},
|
|
2926
4189
|
/**
|
|
2927
|
-
*
|
|
2928
|
-
* @summary
|
|
2929
|
-
* @param {
|
|
4190
|
+
* List all listings
|
|
4191
|
+
* @summary Inquiries List
|
|
4192
|
+
* @param {string} [contactId]
|
|
2930
4193
|
* @param {*} [options] Override http request option.
|
|
2931
4194
|
* @throws {RequiredError}
|
|
2932
4195
|
*/
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
const localVarPath = `/conversations`;
|
|
4196
|
+
inquiriesList: async (contactId, options = {}) => {
|
|
4197
|
+
const localVarPath = `/inquiries`;
|
|
2936
4198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2937
4199
|
let baseOptions;
|
|
2938
4200
|
if (configuration) {
|
|
2939
4201
|
baseOptions = configuration.baseOptions;
|
|
2940
4202
|
}
|
|
2941
|
-
const localVarRequestOptions = { method: "
|
|
4203
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2942
4204
|
const localVarHeaderParameter = {};
|
|
2943
4205
|
const localVarQueryParameter = {};
|
|
2944
|
-
|
|
4206
|
+
if (contactId !== void 0) {
|
|
4207
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
4208
|
+
}
|
|
2945
4209
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2946
4210
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2947
4211
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2948
|
-
localVarRequestOptions.data = serializeDataIfNeeded(conversationCreate, localVarRequestOptions, configuration);
|
|
2949
4212
|
return {
|
|
2950
4213
|
url: toPathString(localVarUrlObj),
|
|
2951
4214
|
options: localVarRequestOptions
|
|
@@ -2953,14 +4216,14 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2953
4216
|
},
|
|
2954
4217
|
/**
|
|
2955
4218
|
*
|
|
2956
|
-
* @summary
|
|
2957
|
-
* @param {string}
|
|
4219
|
+
* @summary Listings Get
|
|
4220
|
+
* @param {string} listingId
|
|
2958
4221
|
* @param {*} [options] Override http request option.
|
|
2959
4222
|
* @throws {RequiredError}
|
|
2960
4223
|
*/
|
|
2961
|
-
|
|
2962
|
-
assertParamExists("
|
|
2963
|
-
const localVarPath = `/
|
|
4224
|
+
listingsGet: async (listingId, options = {}) => {
|
|
4225
|
+
assertParamExists("listingsGet", "listingId", listingId);
|
|
4226
|
+
const localVarPath = `/listings/{listingId}`.replace(`{${"listingId"}}`, encodeURIComponent(String(listingId)));
|
|
2964
4227
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2965
4228
|
let baseOptions;
|
|
2966
4229
|
if (configuration) {
|
|
@@ -2978,14 +4241,20 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2978
4241
|
};
|
|
2979
4242
|
},
|
|
2980
4243
|
/**
|
|
2981
|
-
*
|
|
2982
|
-
* @summary
|
|
2983
|
-
* @param {string} [
|
|
4244
|
+
*
|
|
4245
|
+
* @summary Listings List
|
|
4246
|
+
* @param {string | null} [searchString]
|
|
4247
|
+
* @param {string | null} [contactId]
|
|
4248
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4249
|
+
* @param {number} [limit]
|
|
4250
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4251
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
4252
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
2984
4253
|
* @param {*} [options] Override http request option.
|
|
2985
4254
|
* @throws {RequiredError}
|
|
2986
4255
|
*/
|
|
2987
|
-
|
|
2988
|
-
const localVarPath = `/
|
|
4256
|
+
listingsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
4257
|
+
const localVarPath = `/listings`;
|
|
2989
4258
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2990
4259
|
let baseOptions;
|
|
2991
4260
|
if (configuration) {
|
|
@@ -2994,9 +4263,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2994
4263
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2995
4264
|
const localVarHeaderParameter = {};
|
|
2996
4265
|
const localVarQueryParameter = {};
|
|
4266
|
+
if (searchString !== void 0) {
|
|
4267
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4268
|
+
}
|
|
2997
4269
|
if (contactId !== void 0) {
|
|
2998
4270
|
localVarQueryParameter["contactId"] = contactId;
|
|
2999
4271
|
}
|
|
4272
|
+
if (cursor !== void 0) {
|
|
4273
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4274
|
+
}
|
|
4275
|
+
if (limit !== void 0) {
|
|
4276
|
+
localVarQueryParameter["limit"] = limit;
|
|
4277
|
+
}
|
|
4278
|
+
if (pageDir !== void 0) {
|
|
4279
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4280
|
+
}
|
|
4281
|
+
if (sortBy !== void 0) {
|
|
4282
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4283
|
+
}
|
|
4284
|
+
if (sortOrder !== void 0) {
|
|
4285
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4286
|
+
}
|
|
3000
4287
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3001
4288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3002
4289
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3007,29 +4294,23 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3007
4294
|
},
|
|
3008
4295
|
/**
|
|
3009
4296
|
*
|
|
3010
|
-
* @summary
|
|
3011
|
-
* @param {string} conversationId
|
|
3012
|
-
* @param {ConversationUpdate} conversationUpdate
|
|
4297
|
+
* @summary Managed_phone_numbers List
|
|
3013
4298
|
* @param {*} [options] Override http request option.
|
|
3014
4299
|
* @throws {RequiredError}
|
|
3015
4300
|
*/
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
assertParamExists("conversationsUpdate", "conversationUpdate", conversationUpdate);
|
|
3019
|
-
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
4301
|
+
managedPhoneNumbersList: async (options = {}) => {
|
|
4302
|
+
const localVarPath = `/managed_phone_numbers`;
|
|
3020
4303
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3021
4304
|
let baseOptions;
|
|
3022
4305
|
if (configuration) {
|
|
3023
4306
|
baseOptions = configuration.baseOptions;
|
|
3024
4307
|
}
|
|
3025
|
-
const localVarRequestOptions = { method: "
|
|
4308
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3026
4309
|
const localVarHeaderParameter = {};
|
|
3027
4310
|
const localVarQueryParameter = {};
|
|
3028
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3029
4311
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3030
4312
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3031
4313
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3032
|
-
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdate, localVarRequestOptions, configuration);
|
|
3033
4314
|
return {
|
|
3034
4315
|
url: toPathString(localVarUrlObj),
|
|
3035
4316
|
options: localVarRequestOptions
|
|
@@ -3037,16 +4318,16 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3037
4318
|
},
|
|
3038
4319
|
/**
|
|
3039
4320
|
*
|
|
3040
|
-
* @summary
|
|
3041
|
-
* @param {string}
|
|
3042
|
-
* @param {
|
|
4321
|
+
* @summary Messages Create
|
|
4322
|
+
* @param {string} conversationId
|
|
4323
|
+
* @param {MessageCreate} messageCreate
|
|
3043
4324
|
* @param {*} [options] Override http request option.
|
|
3044
4325
|
* @throws {RequiredError}
|
|
3045
4326
|
*/
|
|
3046
|
-
|
|
3047
|
-
assertParamExists("
|
|
3048
|
-
assertParamExists("
|
|
3049
|
-
const localVarPath = `/
|
|
4327
|
+
messagesCreate: async (conversationId, messageCreate, options = {}) => {
|
|
4328
|
+
assertParamExists("messagesCreate", "conversationId", conversationId);
|
|
4329
|
+
assertParamExists("messagesCreate", "messageCreate", messageCreate);
|
|
4330
|
+
const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
3050
4331
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3051
4332
|
let baseOptions;
|
|
3052
4333
|
if (configuration) {
|
|
@@ -3059,7 +4340,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3059
4340
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3060
4341
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3061
4342
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3062
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4343
|
+
localVarRequestOptions.data = serializeDataIfNeeded(messageCreate, localVarRequestOptions, configuration);
|
|
3063
4344
|
return {
|
|
3064
4345
|
url: toPathString(localVarUrlObj),
|
|
3065
4346
|
options: localVarRequestOptions
|
|
@@ -3067,20 +4348,20 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3067
4348
|
},
|
|
3068
4349
|
/**
|
|
3069
4350
|
*
|
|
3070
|
-
* @summary
|
|
3071
|
-
* @param {string}
|
|
4351
|
+
* @summary Messages Get
|
|
4352
|
+
* @param {string} messageId
|
|
3072
4353
|
* @param {*} [options] Override http request option.
|
|
3073
4354
|
* @throws {RequiredError}
|
|
3074
4355
|
*/
|
|
3075
|
-
|
|
3076
|
-
assertParamExists("
|
|
3077
|
-
const localVarPath = `/
|
|
4356
|
+
messagesGet: async (messageId, options = {}) => {
|
|
4357
|
+
assertParamExists("messagesGet", "messageId", messageId);
|
|
4358
|
+
const localVarPath = `/messages/{messageId}`.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
|
|
3078
4359
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3079
4360
|
let baseOptions;
|
|
3080
4361
|
if (configuration) {
|
|
3081
4362
|
baseOptions = configuration.baseOptions;
|
|
3082
4363
|
}
|
|
3083
|
-
const localVarRequestOptions = { method: "
|
|
4364
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3084
4365
|
const localVarHeaderParameter = {};
|
|
3085
4366
|
const localVarQueryParameter = {};
|
|
3086
4367
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3092,14 +4373,21 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3092
4373
|
};
|
|
3093
4374
|
},
|
|
3094
4375
|
/**
|
|
3095
|
-
*
|
|
3096
|
-
* @summary
|
|
3097
|
-
* @param {string} [
|
|
4376
|
+
*
|
|
4377
|
+
* @summary Messages List
|
|
4378
|
+
* @param {string | null} [searchString]
|
|
4379
|
+
* @param {string | null} [contactId]
|
|
4380
|
+
* @param {string | null} [conversationId]
|
|
4381
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4382
|
+
* @param {number} [limit]
|
|
4383
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4384
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
4385
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3098
4386
|
* @param {*} [options] Override http request option.
|
|
3099
4387
|
* @throws {RequiredError}
|
|
3100
4388
|
*/
|
|
3101
|
-
|
|
3102
|
-
const localVarPath = `/
|
|
4389
|
+
messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
4390
|
+
const localVarPath = `/messages`;
|
|
3103
4391
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3104
4392
|
let baseOptions;
|
|
3105
4393
|
if (configuration) {
|
|
@@ -3108,9 +4396,30 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3108
4396
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3109
4397
|
const localVarHeaderParameter = {};
|
|
3110
4398
|
const localVarQueryParameter = {};
|
|
4399
|
+
if (searchString !== void 0) {
|
|
4400
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4401
|
+
}
|
|
3111
4402
|
if (contactId !== void 0) {
|
|
3112
4403
|
localVarQueryParameter["contactId"] = contactId;
|
|
3113
4404
|
}
|
|
4405
|
+
if (conversationId !== void 0) {
|
|
4406
|
+
localVarQueryParameter["conversationId"] = conversationId;
|
|
4407
|
+
}
|
|
4408
|
+
if (cursor !== void 0) {
|
|
4409
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4410
|
+
}
|
|
4411
|
+
if (limit !== void 0) {
|
|
4412
|
+
localVarQueryParameter["limit"] = limit;
|
|
4413
|
+
}
|
|
4414
|
+
if (pageDir !== void 0) {
|
|
4415
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4416
|
+
}
|
|
4417
|
+
if (sortBy !== void 0) {
|
|
4418
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4419
|
+
}
|
|
4420
|
+
if (sortOrder !== void 0) {
|
|
4421
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4422
|
+
}
|
|
3114
4423
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3115
4424
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3116
4425
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3120,28 +4429,30 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3120
4429
|
};
|
|
3121
4430
|
},
|
|
3122
4431
|
/**
|
|
3123
|
-
*
|
|
3124
|
-
* @summary
|
|
3125
|
-
* @param {string}
|
|
4432
|
+
*
|
|
4433
|
+
* @summary Phone_numbers Create
|
|
4434
|
+
* @param {string} contactId
|
|
4435
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
3126
4436
|
* @param {*} [options] Override http request option.
|
|
3127
4437
|
* @throws {RequiredError}
|
|
3128
4438
|
*/
|
|
3129
|
-
|
|
3130
|
-
|
|
4439
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
4440
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
4441
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
4442
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
3131
4443
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3132
4444
|
let baseOptions;
|
|
3133
4445
|
if (configuration) {
|
|
3134
4446
|
baseOptions = configuration.baseOptions;
|
|
3135
4447
|
}
|
|
3136
|
-
const localVarRequestOptions = { method: "
|
|
4448
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3137
4449
|
const localVarHeaderParameter = {};
|
|
3138
4450
|
const localVarQueryParameter = {};
|
|
3139
|
-
|
|
3140
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
3141
|
-
}
|
|
4451
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3142
4452
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3143
4453
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3144
4454
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4455
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
3145
4456
|
return {
|
|
3146
4457
|
url: toPathString(localVarUrlObj),
|
|
3147
4458
|
options: localVarRequestOptions
|
|
@@ -3149,18 +4460,20 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3149
4460
|
},
|
|
3150
4461
|
/**
|
|
3151
4462
|
*
|
|
3152
|
-
* @summary
|
|
4463
|
+
* @summary Phone_numbers Delete
|
|
4464
|
+
* @param {string} phoneNumberId
|
|
3153
4465
|
* @param {*} [options] Override http request option.
|
|
3154
4466
|
* @throws {RequiredError}
|
|
3155
4467
|
*/
|
|
3156
|
-
|
|
3157
|
-
|
|
4468
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
4469
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
4470
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
3158
4471
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3159
4472
|
let baseOptions;
|
|
3160
4473
|
if (configuration) {
|
|
3161
4474
|
baseOptions = configuration.baseOptions;
|
|
3162
4475
|
}
|
|
3163
|
-
const localVarRequestOptions = { method: "
|
|
4476
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
3164
4477
|
const localVarHeaderParameter = {};
|
|
3165
4478
|
const localVarQueryParameter = {};
|
|
3166
4479
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3173,27 +4486,29 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3173
4486
|
},
|
|
3174
4487
|
/**
|
|
3175
4488
|
*
|
|
3176
|
-
* @summary
|
|
3177
|
-
* @param {
|
|
4489
|
+
* @summary Phone_numbers Update
|
|
4490
|
+
* @param {string} phoneNumberId
|
|
4491
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
3178
4492
|
* @param {*} [options] Override http request option.
|
|
3179
4493
|
* @throws {RequiredError}
|
|
3180
4494
|
*/
|
|
3181
|
-
|
|
3182
|
-
assertParamExists("
|
|
3183
|
-
|
|
4495
|
+
phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
|
|
4496
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
|
|
4497
|
+
assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
|
|
4498
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
3184
4499
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3185
4500
|
let baseOptions;
|
|
3186
4501
|
if (configuration) {
|
|
3187
4502
|
baseOptions = configuration.baseOptions;
|
|
3188
4503
|
}
|
|
3189
|
-
const localVarRequestOptions = { method: "
|
|
4504
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3190
4505
|
const localVarHeaderParameter = {};
|
|
3191
4506
|
const localVarQueryParameter = {};
|
|
3192
4507
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3193
4508
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3194
4509
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3195
4510
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3196
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
4511
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
|
|
3197
4512
|
return {
|
|
3198
4513
|
url: toPathString(localVarUrlObj),
|
|
3199
4514
|
options: localVarRequestOptions
|
|
@@ -3201,25 +4516,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3201
4516
|
},
|
|
3202
4517
|
/**
|
|
3203
4518
|
*
|
|
3204
|
-
* @summary
|
|
3205
|
-
* @param {
|
|
4519
|
+
* @summary Providers Create
|
|
4520
|
+
* @param {ProviderCreate} providerCreate
|
|
3206
4521
|
* @param {*} [options] Override http request option.
|
|
3207
4522
|
* @throws {RequiredError}
|
|
3208
4523
|
*/
|
|
3209
|
-
|
|
3210
|
-
assertParamExists("
|
|
3211
|
-
const localVarPath = `/
|
|
4524
|
+
providersCreate: async (providerCreate, options = {}) => {
|
|
4525
|
+
assertParamExists("providersCreate", "providerCreate", providerCreate);
|
|
4526
|
+
const localVarPath = `/providers`;
|
|
3212
4527
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3213
4528
|
let baseOptions;
|
|
3214
4529
|
if (configuration) {
|
|
3215
4530
|
baseOptions = configuration.baseOptions;
|
|
3216
4531
|
}
|
|
3217
|
-
const localVarRequestOptions = { method: "
|
|
4532
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
3218
4533
|
const localVarHeaderParameter = {};
|
|
3219
4534
|
const localVarQueryParameter = {};
|
|
4535
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3220
4536
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3221
4537
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3222
4538
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4539
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerCreate, localVarRequestOptions, configuration);
|
|
3223
4540
|
return {
|
|
3224
4541
|
url: toPathString(localVarUrlObj),
|
|
3225
4542
|
options: localVarRequestOptions
|
|
@@ -3227,13 +4544,14 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3227
4544
|
},
|
|
3228
4545
|
/**
|
|
3229
4546
|
*
|
|
3230
|
-
* @summary
|
|
3231
|
-
* @param {string}
|
|
4547
|
+
* @summary Providers Get
|
|
4548
|
+
* @param {string} providerId
|
|
3232
4549
|
* @param {*} [options] Override http request option.
|
|
3233
4550
|
* @throws {RequiredError}
|
|
3234
4551
|
*/
|
|
3235
|
-
|
|
3236
|
-
|
|
4552
|
+
providersGet: async (providerId, options = {}) => {
|
|
4553
|
+
assertParamExists("providersGet", "providerId", providerId);
|
|
4554
|
+
const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
|
|
3237
4555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3238
4556
|
let baseOptions;
|
|
3239
4557
|
if (configuration) {
|
|
@@ -3242,9 +4560,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3242
4560
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3243
4561
|
const localVarHeaderParameter = {};
|
|
3244
4562
|
const localVarQueryParameter = {};
|
|
3245
|
-
if (conversationId !== void 0) {
|
|
3246
|
-
localVarQueryParameter["conversationId"] = conversationId;
|
|
3247
|
-
}
|
|
3248
4563
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3249
4564
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3250
4565
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3255,29 +4570,23 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3255
4570
|
},
|
|
3256
4571
|
/**
|
|
3257
4572
|
*
|
|
3258
|
-
* @summary
|
|
3259
|
-
* @param {string} contactId
|
|
3260
|
-
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
4573
|
+
* @summary Providers List
|
|
3261
4574
|
* @param {*} [options] Override http request option.
|
|
3262
4575
|
* @throws {RequiredError}
|
|
3263
4576
|
*/
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
3267
|
-
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
4577
|
+
providersList: async (options = {}) => {
|
|
4578
|
+
const localVarPath = `/providers`;
|
|
3268
4579
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3269
4580
|
let baseOptions;
|
|
3270
4581
|
if (configuration) {
|
|
3271
4582
|
baseOptions = configuration.baseOptions;
|
|
3272
4583
|
}
|
|
3273
|
-
const localVarRequestOptions = { method: "
|
|
4584
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3274
4585
|
const localVarHeaderParameter = {};
|
|
3275
4586
|
const localVarQueryParameter = {};
|
|
3276
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3277
4587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3278
4588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3279
4589
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3280
|
-
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
3281
4590
|
return {
|
|
3282
4591
|
url: toPathString(localVarUrlObj),
|
|
3283
4592
|
options: localVarRequestOptions
|
|
@@ -3285,25 +4594,29 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3285
4594
|
},
|
|
3286
4595
|
/**
|
|
3287
4596
|
*
|
|
3288
|
-
* @summary
|
|
3289
|
-
* @param {string}
|
|
4597
|
+
* @summary Providers Update
|
|
4598
|
+
* @param {string} providerId
|
|
4599
|
+
* @param {ProviderUpdate} providerUpdate
|
|
3290
4600
|
* @param {*} [options] Override http request option.
|
|
3291
4601
|
* @throws {RequiredError}
|
|
3292
4602
|
*/
|
|
3293
|
-
|
|
3294
|
-
assertParamExists("
|
|
3295
|
-
|
|
4603
|
+
providersUpdate: async (providerId, providerUpdate, options = {}) => {
|
|
4604
|
+
assertParamExists("providersUpdate", "providerId", providerId);
|
|
4605
|
+
assertParamExists("providersUpdate", "providerUpdate", providerUpdate);
|
|
4606
|
+
const localVarPath = `/providers/{providerId}`.replace(`{${"providerId"}}`, encodeURIComponent(String(providerId)));
|
|
3296
4607
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3297
4608
|
let baseOptions;
|
|
3298
4609
|
if (configuration) {
|
|
3299
4610
|
baseOptions = configuration.baseOptions;
|
|
3300
4611
|
}
|
|
3301
|
-
const localVarRequestOptions = { method: "
|
|
4612
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
3302
4613
|
const localVarHeaderParameter = {};
|
|
3303
4614
|
const localVarQueryParameter = {};
|
|
4615
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3304
4616
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3305
4617
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3306
4618
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4619
|
+
localVarRequestOptions.data = serializeDataIfNeeded(providerUpdate, localVarRequestOptions, configuration);
|
|
3307
4620
|
return {
|
|
3308
4621
|
url: toPathString(localVarUrlObj),
|
|
3309
4622
|
options: localVarRequestOptions
|
|
@@ -3312,11 +4625,17 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3312
4625
|
/**
|
|
3313
4626
|
*
|
|
3314
4627
|
* @summary Reservations List
|
|
3315
|
-
* @param {string} [
|
|
4628
|
+
* @param {string | null} [searchString]
|
|
4629
|
+
* @param {string | null} [contactId]
|
|
4630
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4631
|
+
* @param {number} [limit]
|
|
4632
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4633
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
4634
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3316
4635
|
* @param {*} [options] Override http request option.
|
|
3317
4636
|
* @throws {RequiredError}
|
|
3318
4637
|
*/
|
|
3319
|
-
reservationsList: async (contactId, options = {}) => {
|
|
4638
|
+
reservationsList: async (searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
|
|
3320
4639
|
const localVarPath = `/reservations`;
|
|
3321
4640
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3322
4641
|
let baseOptions;
|
|
@@ -3326,9 +4645,27 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
3326
4645
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
3327
4646
|
const localVarHeaderParameter = {};
|
|
3328
4647
|
const localVarQueryParameter = {};
|
|
4648
|
+
if (searchString !== void 0) {
|
|
4649
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
4650
|
+
}
|
|
3329
4651
|
if (contactId !== void 0) {
|
|
3330
4652
|
localVarQueryParameter["contactId"] = contactId;
|
|
3331
4653
|
}
|
|
4654
|
+
if (cursor !== void 0) {
|
|
4655
|
+
localVarQueryParameter["cursor"] = cursor;
|
|
4656
|
+
}
|
|
4657
|
+
if (limit !== void 0) {
|
|
4658
|
+
localVarQueryParameter["limit"] = limit;
|
|
4659
|
+
}
|
|
4660
|
+
if (pageDir !== void 0) {
|
|
4661
|
+
localVarQueryParameter["pageDir"] = pageDir;
|
|
4662
|
+
}
|
|
4663
|
+
if (sortBy !== void 0) {
|
|
4664
|
+
localVarQueryParameter["sortBy"] = sortBy;
|
|
4665
|
+
}
|
|
4666
|
+
if (sortOrder !== void 0) {
|
|
4667
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
4668
|
+
}
|
|
3332
4669
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3333
4670
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3334
4671
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3379,8 +4716,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3379
4716
|
*/
|
|
3380
4717
|
async accountsList(options) {
|
|
3381
4718
|
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
3382
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3383
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4719
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _190 => _190.serverIndex]), () => ( 0));
|
|
4720
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _191 => _191["UnboundApi.accountsList"], 'optionalAccess', _192 => _192[localVarOperationServerIndex], 'optionalAccess', _193 => _193.url]);
|
|
3384
4721
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3385
4722
|
},
|
|
3386
4723
|
/**
|
|
@@ -3393,8 +4730,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3393
4730
|
*/
|
|
3394
4731
|
async addressesCreate(contactId, addressCreate, options) {
|
|
3395
4732
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
3396
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3397
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4733
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _194 => _194.serverIndex]), () => ( 0));
|
|
4734
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _195 => _195["UnboundApi.addressesCreate"], 'optionalAccess', _196 => _196[localVarOperationServerIndex], 'optionalAccess', _197 => _197.url]);
|
|
3398
4735
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3399
4736
|
},
|
|
3400
4737
|
/**
|
|
@@ -3406,8 +4743,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3406
4743
|
*/
|
|
3407
4744
|
async addressesDelete(addressId, options) {
|
|
3408
4745
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
3409
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3410
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4746
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _198 => _198.serverIndex]), () => ( 0));
|
|
4747
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _199 => _199["UnboundApi.addressesDelete"], 'optionalAccess', _200 => _200[localVarOperationServerIndex], 'optionalAccess', _201 => _201.url]);
|
|
3411
4748
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3412
4749
|
},
|
|
3413
4750
|
/**
|
|
@@ -3420,8 +4757,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3420
4757
|
*/
|
|
3421
4758
|
async addressesUpdate(addressId, addressUpdate, options) {
|
|
3422
4759
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
3423
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3424
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4760
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _202 => _202.serverIndex]), () => ( 0));
|
|
4761
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _203 => _203["UnboundApi.addressesUpdate"], 'optionalAccess', _204 => _204[localVarOperationServerIndex], 'optionalAccess', _205 => _205.url]);
|
|
3425
4762
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3426
4763
|
},
|
|
3427
4764
|
/**
|
|
@@ -3435,8 +4772,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3435
4772
|
*/
|
|
3436
4773
|
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
3437
4774
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
3438
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3439
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4775
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _206 => _206.serverIndex]), () => ( 0));
|
|
4776
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _207 => _207["UnboundApi.contactsAddListing"], 'optionalAccess', _208 => _208[localVarOperationServerIndex], 'optionalAccess', _209 => _209.url]);
|
|
3440
4777
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3441
4778
|
},
|
|
3442
4779
|
/**
|
|
@@ -3448,8 +4785,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3448
4785
|
*/
|
|
3449
4786
|
async contactsCreate(contactCreate, options) {
|
|
3450
4787
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
3451
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3452
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4788
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _210 => _210.serverIndex]), () => ( 0));
|
|
4789
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _211 => _211["UnboundApi.contactsCreate"], 'optionalAccess', _212 => _212[localVarOperationServerIndex], 'optionalAccess', _213 => _213.url]);
|
|
3453
4790
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3454
4791
|
},
|
|
3455
4792
|
/**
|
|
@@ -3461,8 +4798,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3461
4798
|
*/
|
|
3462
4799
|
async contactsDelete(contactId, options) {
|
|
3463
4800
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
3464
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3465
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4801
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _214 => _214.serverIndex]), () => ( 0));
|
|
4802
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _215 => _215["UnboundApi.contactsDelete"], 'optionalAccess', _216 => _216[localVarOperationServerIndex], 'optionalAccess', _217 => _217.url]);
|
|
3466
4803
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3467
4804
|
},
|
|
3468
4805
|
/**
|
|
@@ -3474,8 +4811,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3474
4811
|
*/
|
|
3475
4812
|
async contactsGet(contactId, options) {
|
|
3476
4813
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
3477
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3478
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4814
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _218 => _218.serverIndex]), () => ( 0));
|
|
4815
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _219 => _219["UnboundApi.contactsGet"], 'optionalAccess', _220 => _220[localVarOperationServerIndex], 'optionalAccess', _221 => _221.url]);
|
|
3479
4816
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3480
4817
|
},
|
|
3481
4818
|
/**
|
|
@@ -3492,8 +4829,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3492
4829
|
*/
|
|
3493
4830
|
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
3494
4831
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
3495
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3496
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4832
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _222 => _222.serverIndex]), () => ( 0));
|
|
4833
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _223 => _223["UnboundApi.contactsList"], 'optionalAccess', _224 => _224[localVarOperationServerIndex], 'optionalAccess', _225 => _225.url]);
|
|
3497
4834
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3498
4835
|
},
|
|
3499
4836
|
/**
|
|
@@ -3507,8 +4844,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3507
4844
|
*/
|
|
3508
4845
|
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
3509
4846
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
3510
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3511
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4847
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _226 => _226.serverIndex]), () => ( 0));
|
|
4848
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _227 => _227["UnboundApi.contactsRemoveListing"], 'optionalAccess', _228 => _228[localVarOperationServerIndex], 'optionalAccess', _229 => _229.url]);
|
|
3512
4849
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3513
4850
|
},
|
|
3514
4851
|
/**
|
|
@@ -3521,8 +4858,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3521
4858
|
*/
|
|
3522
4859
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
3523
4860
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
3524
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3525
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4861
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _230 => _230.serverIndex]), () => ( 0));
|
|
4862
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _231 => _231["UnboundApi.contactsUpdate"], 'optionalAccess', _232 => _232[localVarOperationServerIndex], 'optionalAccess', _233 => _233.url]);
|
|
3526
4863
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3527
4864
|
},
|
|
3528
4865
|
/**
|
|
@@ -3536,8 +4873,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3536
4873
|
*/
|
|
3537
4874
|
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
3538
4875
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
3539
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3540
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4876
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _234 => _234.serverIndex]), () => ( 0));
|
|
4877
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _235 => _235["UnboundApi.contactsUpdateListing"], 'optionalAccess', _236 => _236[localVarOperationServerIndex], 'optionalAccess', _237 => _237.url]);
|
|
3541
4878
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3542
4879
|
},
|
|
3543
4880
|
/**
|
|
@@ -3549,8 +4886,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3549
4886
|
*/
|
|
3550
4887
|
async conversationsCreate(conversationCreate, options) {
|
|
3551
4888
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
|
|
3552
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3553
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4889
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _238 => _238.serverIndex]), () => ( 0));
|
|
4890
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _239 => _239["UnboundApi.conversationsCreate"], 'optionalAccess', _240 => _240[localVarOperationServerIndex], 'optionalAccess', _241 => _241.url]);
|
|
3554
4891
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3555
4892
|
},
|
|
3556
4893
|
/**
|
|
@@ -3562,21 +4899,27 @@ var UnboundApiFp = function(configuration) {
|
|
|
3562
4899
|
*/
|
|
3563
4900
|
async conversationsGet(conversationId, options) {
|
|
3564
4901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
3565
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3566
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4902
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _242 => _242.serverIndex]), () => ( 0));
|
|
4903
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _243 => _243["UnboundApi.conversationsGet"], 'optionalAccess', _244 => _244[localVarOperationServerIndex], 'optionalAccess', _245 => _245.url]);
|
|
3567
4904
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3568
4905
|
},
|
|
3569
4906
|
/**
|
|
3570
4907
|
* List all conversations, optionally filtered by contact_id
|
|
3571
4908
|
* @summary Conversations List
|
|
3572
|
-
* @param {string} [
|
|
4909
|
+
* @param {string | null} [searchString]
|
|
4910
|
+
* @param {string | null} [contactId]
|
|
4911
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
4912
|
+
* @param {number} [limit]
|
|
4913
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
4914
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
4915
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3573
4916
|
* @param {*} [options] Override http request option.
|
|
3574
4917
|
* @throws {RequiredError}
|
|
3575
4918
|
*/
|
|
3576
|
-
async conversationsList(contactId, options) {
|
|
3577
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
3578
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3579
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4919
|
+
async conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
4920
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
4921
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _246 => _246.serverIndex]), () => ( 0));
|
|
4922
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _247 => _247["UnboundApi.conversationsList"], 'optionalAccess', _248 => _248[localVarOperationServerIndex], 'optionalAccess', _249 => _249.url]);
|
|
3580
4923
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3581
4924
|
},
|
|
3582
4925
|
/**
|
|
@@ -3589,8 +4932,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3589
4932
|
*/
|
|
3590
4933
|
async conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3591
4934
|
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
|
|
3592
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3593
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4935
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _250 => _250.serverIndex]), () => ( 0));
|
|
4936
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _251 => _251["UnboundApi.conversationsUpdate"], 'optionalAccess', _252 => _252[localVarOperationServerIndex], 'optionalAccess', _253 => _253.url]);
|
|
3594
4937
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3595
4938
|
},
|
|
3596
4939
|
/**
|
|
@@ -3603,8 +4946,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3603
4946
|
*/
|
|
3604
4947
|
async emailsCreate(contactId, emailCreate, options) {
|
|
3605
4948
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
3606
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3607
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4949
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _254 => _254.serverIndex]), () => ( 0));
|
|
4950
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _255 => _255["UnboundApi.emailsCreate"], 'optionalAccess', _256 => _256[localVarOperationServerIndex], 'optionalAccess', _257 => _257.url]);
|
|
3608
4951
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3609
4952
|
},
|
|
3610
4953
|
/**
|
|
@@ -3616,8 +4959,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
3616
4959
|
*/
|
|
3617
4960
|
async emailsDelete(emailId, options) {
|
|
3618
4961
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
3619
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3620
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4962
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _258 => _258.serverIndex]), () => ( 0));
|
|
4963
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _259 => _259["UnboundApi.emailsDelete"], 'optionalAccess', _260 => _260[localVarOperationServerIndex], 'optionalAccess', _261 => _261.url]);
|
|
4964
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4965
|
+
},
|
|
4966
|
+
/**
|
|
4967
|
+
*
|
|
4968
|
+
* @summary Emails Update
|
|
4969
|
+
* @param {string} emailId
|
|
4970
|
+
* @param {EmailUpdate} emailUpdate
|
|
4971
|
+
* @param {*} [options] Override http request option.
|
|
4972
|
+
* @throws {RequiredError}
|
|
4973
|
+
*/
|
|
4974
|
+
async emailsUpdate(emailId, emailUpdate, options) {
|
|
4975
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
|
|
4976
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _262 => _262.serverIndex]), () => ( 0));
|
|
4977
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _263 => _263["UnboundApi.emailsUpdate"], 'optionalAccess', _264 => _264[localVarOperationServerIndex], 'optionalAccess', _265 => _265.url]);
|
|
3621
4978
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3622
4979
|
},
|
|
3623
4980
|
/**
|
|
@@ -3629,21 +4986,40 @@ var UnboundApiFp = function(configuration) {
|
|
|
3629
4986
|
*/
|
|
3630
4987
|
async inquiriesList(contactId, options) {
|
|
3631
4988
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
3632
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3633
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
4989
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _266 => _266.serverIndex]), () => ( 0));
|
|
4990
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _267 => _267["UnboundApi.inquiriesList"], 'optionalAccess', _268 => _268[localVarOperationServerIndex], 'optionalAccess', _269 => _269.url]);
|
|
3634
4991
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3635
4992
|
},
|
|
3636
4993
|
/**
|
|
3637
|
-
*
|
|
4994
|
+
*
|
|
4995
|
+
* @summary Listings Get
|
|
4996
|
+
* @param {string} listingId
|
|
4997
|
+
* @param {*} [options] Override http request option.
|
|
4998
|
+
* @throws {RequiredError}
|
|
4999
|
+
*/
|
|
5000
|
+
async listingsGet(listingId, options) {
|
|
5001
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsGet(listingId, options);
|
|
5002
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _270 => _270.serverIndex]), () => ( 0));
|
|
5003
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _271 => _271["UnboundApi.listingsGet"], 'optionalAccess', _272 => _272[localVarOperationServerIndex], 'optionalAccess', _273 => _273.url]);
|
|
5004
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5005
|
+
},
|
|
5006
|
+
/**
|
|
5007
|
+
*
|
|
3638
5008
|
* @summary Listings List
|
|
3639
|
-
* @param {string} [
|
|
5009
|
+
* @param {string | null} [searchString]
|
|
5010
|
+
* @param {string | null} [contactId]
|
|
5011
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5012
|
+
* @param {number} [limit]
|
|
5013
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5014
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
5015
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3640
5016
|
* @param {*} [options] Override http request option.
|
|
3641
5017
|
* @throws {RequiredError}
|
|
3642
5018
|
*/
|
|
3643
|
-
async listingsList(contactId, options) {
|
|
3644
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
3645
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3646
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5019
|
+
async listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5020
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
5021
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _274 => _274.serverIndex]), () => ( 0));
|
|
5022
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _275 => _275["UnboundApi.listingsList"], 'optionalAccess', _276 => _276[localVarOperationServerIndex], 'optionalAccess', _277 => _277.url]);
|
|
3647
5023
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3648
5024
|
},
|
|
3649
5025
|
/**
|
|
@@ -3654,21 +5030,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
3654
5030
|
*/
|
|
3655
5031
|
async managedPhoneNumbersList(options) {
|
|
3656
5032
|
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
3657
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3658
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5033
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _278 => _278.serverIndex]), () => ( 0));
|
|
5034
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _279 => _279["UnboundApi.managedPhoneNumbersList"], 'optionalAccess', _280 => _280[localVarOperationServerIndex], 'optionalAccess', _281 => _281.url]);
|
|
3659
5035
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3660
5036
|
},
|
|
3661
5037
|
/**
|
|
3662
5038
|
*
|
|
3663
5039
|
* @summary Messages Create
|
|
5040
|
+
* @param {string} conversationId
|
|
3664
5041
|
* @param {MessageCreate} messageCreate
|
|
3665
5042
|
* @param {*} [options] Override http request option.
|
|
3666
5043
|
* @throws {RequiredError}
|
|
3667
5044
|
*/
|
|
3668
|
-
async messagesCreate(messageCreate, options) {
|
|
3669
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(messageCreate, options);
|
|
3670
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3671
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5045
|
+
async messagesCreate(conversationId, messageCreate, options) {
|
|
5046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
|
|
5047
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _282 => _282.serverIndex]), () => ( 0));
|
|
5048
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _283 => _283["UnboundApi.messagesCreate"], 'optionalAccess', _284 => _284[localVarOperationServerIndex], 'optionalAccess', _285 => _285.url]);
|
|
3672
5049
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3673
5050
|
},
|
|
3674
5051
|
/**
|
|
@@ -3680,21 +5057,28 @@ var UnboundApiFp = function(configuration) {
|
|
|
3680
5057
|
*/
|
|
3681
5058
|
async messagesGet(messageId, options) {
|
|
3682
5059
|
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
|
|
3683
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3684
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5060
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _286 => _286.serverIndex]), () => ( 0));
|
|
5061
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _287 => _287["UnboundApi.messagesGet"], 'optionalAccess', _288 => _288[localVarOperationServerIndex], 'optionalAccess', _289 => _289.url]);
|
|
3685
5062
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3686
5063
|
},
|
|
3687
5064
|
/**
|
|
3688
5065
|
*
|
|
3689
5066
|
* @summary Messages List
|
|
3690
|
-
* @param {string} [
|
|
5067
|
+
* @param {string | null} [searchString]
|
|
5068
|
+
* @param {string | null} [contactId]
|
|
5069
|
+
* @param {string | null} [conversationId]
|
|
5070
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5071
|
+
* @param {number} [limit]
|
|
5072
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5073
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
5074
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3691
5075
|
* @param {*} [options] Override http request option.
|
|
3692
5076
|
* @throws {RequiredError}
|
|
3693
5077
|
*/
|
|
3694
|
-
async messagesList(conversationId, options) {
|
|
3695
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(conversationId, options);
|
|
3696
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3697
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5078
|
+
async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
5080
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _290 => _290.serverIndex]), () => ( 0));
|
|
5081
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _291 => _291["UnboundApi.messagesList"], 'optionalAccess', _292 => _292[localVarOperationServerIndex], 'optionalAccess', _293 => _293.url]);
|
|
3698
5082
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3699
5083
|
},
|
|
3700
5084
|
/**
|
|
@@ -3707,8 +5091,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3707
5091
|
*/
|
|
3708
5092
|
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3709
5093
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
3710
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3711
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5094
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _294 => _294.serverIndex]), () => ( 0));
|
|
5095
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _295 => _295["UnboundApi.phoneNumbersCreate"], 'optionalAccess', _296 => _296[localVarOperationServerIndex], 'optionalAccess', _297 => _297.url]);
|
|
3712
5096
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3713
5097
|
},
|
|
3714
5098
|
/**
|
|
@@ -3720,21 +5104,93 @@ var UnboundApiFp = function(configuration) {
|
|
|
3720
5104
|
*/
|
|
3721
5105
|
async phoneNumbersDelete(phoneNumberId, options) {
|
|
3722
5106
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
3723
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3724
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5107
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _298 => _298.serverIndex]), () => ( 0));
|
|
5108
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _299 => _299["UnboundApi.phoneNumbersDelete"], 'optionalAccess', _300 => _300[localVarOperationServerIndex], 'optionalAccess', _301 => _301.url]);
|
|
5109
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5110
|
+
},
|
|
5111
|
+
/**
|
|
5112
|
+
*
|
|
5113
|
+
* @summary Phone_numbers Update
|
|
5114
|
+
* @param {string} phoneNumberId
|
|
5115
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
5116
|
+
* @param {*} [options] Override http request option.
|
|
5117
|
+
* @throws {RequiredError}
|
|
5118
|
+
*/
|
|
5119
|
+
async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
5120
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
|
|
5121
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _302 => _302.serverIndex]), () => ( 0));
|
|
5122
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _303 => _303["UnboundApi.phoneNumbersUpdate"], 'optionalAccess', _304 => _304[localVarOperationServerIndex], 'optionalAccess', _305 => _305.url]);
|
|
5123
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5124
|
+
},
|
|
5125
|
+
/**
|
|
5126
|
+
*
|
|
5127
|
+
* @summary Providers Create
|
|
5128
|
+
* @param {ProviderCreate} providerCreate
|
|
5129
|
+
* @param {*} [options] Override http request option.
|
|
5130
|
+
* @throws {RequiredError}
|
|
5131
|
+
*/
|
|
5132
|
+
async providersCreate(providerCreate, options) {
|
|
5133
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersCreate(providerCreate, options);
|
|
5134
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _306 => _306.serverIndex]), () => ( 0));
|
|
5135
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _307 => _307["UnboundApi.providersCreate"], 'optionalAccess', _308 => _308[localVarOperationServerIndex], 'optionalAccess', _309 => _309.url]);
|
|
5136
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5137
|
+
},
|
|
5138
|
+
/**
|
|
5139
|
+
*
|
|
5140
|
+
* @summary Providers Get
|
|
5141
|
+
* @param {string} providerId
|
|
5142
|
+
* @param {*} [options] Override http request option.
|
|
5143
|
+
* @throws {RequiredError}
|
|
5144
|
+
*/
|
|
5145
|
+
async providersGet(providerId, options) {
|
|
5146
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersGet(providerId, options);
|
|
5147
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _310 => _310.serverIndex]), () => ( 0));
|
|
5148
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _311 => _311["UnboundApi.providersGet"], 'optionalAccess', _312 => _312[localVarOperationServerIndex], 'optionalAccess', _313 => _313.url]);
|
|
5149
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5150
|
+
},
|
|
5151
|
+
/**
|
|
5152
|
+
*
|
|
5153
|
+
* @summary Providers List
|
|
5154
|
+
* @param {*} [options] Override http request option.
|
|
5155
|
+
* @throws {RequiredError}
|
|
5156
|
+
*/
|
|
5157
|
+
async providersList(options) {
|
|
5158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersList(options);
|
|
5159
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _314 => _314.serverIndex]), () => ( 0));
|
|
5160
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _315 => _315["UnboundApi.providersList"], 'optionalAccess', _316 => _316[localVarOperationServerIndex], 'optionalAccess', _317 => _317.url]);
|
|
5161
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5162
|
+
},
|
|
5163
|
+
/**
|
|
5164
|
+
*
|
|
5165
|
+
* @summary Providers Update
|
|
5166
|
+
* @param {string} providerId
|
|
5167
|
+
* @param {ProviderUpdate} providerUpdate
|
|
5168
|
+
* @param {*} [options] Override http request option.
|
|
5169
|
+
* @throws {RequiredError}
|
|
5170
|
+
*/
|
|
5171
|
+
async providersUpdate(providerId, providerUpdate, options) {
|
|
5172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.providersUpdate(providerId, providerUpdate, options);
|
|
5173
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _318 => _318.serverIndex]), () => ( 0));
|
|
5174
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _319 => _319["UnboundApi.providersUpdate"], 'optionalAccess', _320 => _320[localVarOperationServerIndex], 'optionalAccess', _321 => _321.url]);
|
|
3725
5175
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3726
5176
|
},
|
|
3727
5177
|
/**
|
|
3728
5178
|
*
|
|
3729
5179
|
* @summary Reservations List
|
|
3730
|
-
* @param {string} [
|
|
5180
|
+
* @param {string | null} [searchString]
|
|
5181
|
+
* @param {string | null} [contactId]
|
|
5182
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5183
|
+
* @param {number} [limit]
|
|
5184
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5185
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
5186
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3731
5187
|
* @param {*} [options] Override http request option.
|
|
3732
5188
|
* @throws {RequiredError}
|
|
3733
5189
|
*/
|
|
3734
|
-
async reservationsList(contactId, options) {
|
|
3735
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
3736
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3737
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5190
|
+
async reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5191
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
5192
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _322 => _322.serverIndex]), () => ( 0));
|
|
5193
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _323 => _323["UnboundApi.reservationsList"], 'optionalAccess', _324 => _324[localVarOperationServerIndex], 'optionalAccess', _325 => _325.url]);
|
|
3738
5194
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3739
5195
|
},
|
|
3740
5196
|
/**
|
|
@@ -3746,8 +5202,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
3746
5202
|
*/
|
|
3747
5203
|
async webhook(hostawayWebhook, options) {
|
|
3748
5204
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
3749
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
3750
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
5205
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _326 => _326.serverIndex]), () => ( 0));
|
|
5206
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _327 => _327["UnboundApi.webhook"], 'optionalAccess', _328 => _328[localVarOperationServerIndex], 'optionalAccess', _329 => _329.url]);
|
|
3751
5207
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3752
5208
|
}
|
|
3753
5209
|
};
|
|
@@ -3911,12 +5367,18 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3911
5367
|
/**
|
|
3912
5368
|
* List all conversations, optionally filtered by contact_id
|
|
3913
5369
|
* @summary Conversations List
|
|
3914
|
-
* @param {string} [
|
|
5370
|
+
* @param {string | null} [searchString]
|
|
5371
|
+
* @param {string | null} [contactId]
|
|
5372
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5373
|
+
* @param {number} [limit]
|
|
5374
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5375
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
5376
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3915
5377
|
* @param {*} [options] Override http request option.
|
|
3916
5378
|
* @throws {RequiredError}
|
|
3917
5379
|
*/
|
|
3918
|
-
conversationsList(contactId, options) {
|
|
3919
|
-
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
5380
|
+
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5381
|
+
return localVarFp.conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
3920
5382
|
},
|
|
3921
5383
|
/**
|
|
3922
5384
|
*
|
|
@@ -3950,6 +5412,17 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3950
5412
|
emailsDelete(emailId, options) {
|
|
3951
5413
|
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
3952
5414
|
},
|
|
5415
|
+
/**
|
|
5416
|
+
*
|
|
5417
|
+
* @summary Emails Update
|
|
5418
|
+
* @param {string} emailId
|
|
5419
|
+
* @param {EmailUpdate} emailUpdate
|
|
5420
|
+
* @param {*} [options] Override http request option.
|
|
5421
|
+
* @throws {RequiredError}
|
|
5422
|
+
*/
|
|
5423
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
5424
|
+
return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
|
|
5425
|
+
},
|
|
3953
5426
|
/**
|
|
3954
5427
|
* List all listings
|
|
3955
5428
|
* @summary Inquiries List
|
|
@@ -3961,14 +5434,30 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3961
5434
|
return localVarFp.inquiriesList(contactId, options).then((request) => request(axios, basePath));
|
|
3962
5435
|
},
|
|
3963
5436
|
/**
|
|
3964
|
-
*
|
|
5437
|
+
*
|
|
5438
|
+
* @summary Listings Get
|
|
5439
|
+
* @param {string} listingId
|
|
5440
|
+
* @param {*} [options] Override http request option.
|
|
5441
|
+
* @throws {RequiredError}
|
|
5442
|
+
*/
|
|
5443
|
+
listingsGet(listingId, options) {
|
|
5444
|
+
return localVarFp.listingsGet(listingId, options).then((request) => request(axios, basePath));
|
|
5445
|
+
},
|
|
5446
|
+
/**
|
|
5447
|
+
*
|
|
3965
5448
|
* @summary Listings List
|
|
3966
|
-
* @param {string} [
|
|
5449
|
+
* @param {string | null} [searchString]
|
|
5450
|
+
* @param {string | null} [contactId]
|
|
5451
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5452
|
+
* @param {number} [limit]
|
|
5453
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5454
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
5455
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
3967
5456
|
* @param {*} [options] Override http request option.
|
|
3968
5457
|
* @throws {RequiredError}
|
|
3969
5458
|
*/
|
|
3970
|
-
listingsList(contactId, options) {
|
|
3971
|
-
return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
|
|
5459
|
+
listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5460
|
+
return localVarFp.listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
3972
5461
|
},
|
|
3973
5462
|
/**
|
|
3974
5463
|
*
|
|
@@ -3982,12 +5471,13 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
3982
5471
|
/**
|
|
3983
5472
|
*
|
|
3984
5473
|
* @summary Messages Create
|
|
5474
|
+
* @param {string} conversationId
|
|
3985
5475
|
* @param {MessageCreate} messageCreate
|
|
3986
5476
|
* @param {*} [options] Override http request option.
|
|
3987
5477
|
* @throws {RequiredError}
|
|
3988
5478
|
*/
|
|
3989
|
-
messagesCreate(messageCreate, options) {
|
|
3990
|
-
return localVarFp.messagesCreate(messageCreate, options).then((request) => request(axios, basePath));
|
|
5479
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
5480
|
+
return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
|
|
3991
5481
|
},
|
|
3992
5482
|
/**
|
|
3993
5483
|
*
|
|
@@ -4002,12 +5492,19 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4002
5492
|
/**
|
|
4003
5493
|
*
|
|
4004
5494
|
* @summary Messages List
|
|
4005
|
-
* @param {string} [
|
|
5495
|
+
* @param {string | null} [searchString]
|
|
5496
|
+
* @param {string | null} [contactId]
|
|
5497
|
+
* @param {string | null} [conversationId]
|
|
5498
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5499
|
+
* @param {number} [limit]
|
|
5500
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5501
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
5502
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4006
5503
|
* @param {*} [options] Override http request option.
|
|
4007
5504
|
* @throws {RequiredError}
|
|
4008
5505
|
*/
|
|
4009
|
-
messagesList(conversationId, options) {
|
|
4010
|
-
return localVarFp.messagesList(conversationId, options).then((request) => request(axios, basePath));
|
|
5506
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5507
|
+
return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
4011
5508
|
},
|
|
4012
5509
|
/**
|
|
4013
5510
|
*
|
|
@@ -4030,15 +5527,72 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
4030
5527
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
4031
5528
|
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
4032
5529
|
},
|
|
5530
|
+
/**
|
|
5531
|
+
*
|
|
5532
|
+
* @summary Phone_numbers Update
|
|
5533
|
+
* @param {string} phoneNumberId
|
|
5534
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
5535
|
+
* @param {*} [options] Override http request option.
|
|
5536
|
+
* @throws {RequiredError}
|
|
5537
|
+
*/
|
|
5538
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
5539
|
+
return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
|
|
5540
|
+
},
|
|
5541
|
+
/**
|
|
5542
|
+
*
|
|
5543
|
+
* @summary Providers Create
|
|
5544
|
+
* @param {ProviderCreate} providerCreate
|
|
5545
|
+
* @param {*} [options] Override http request option.
|
|
5546
|
+
* @throws {RequiredError}
|
|
5547
|
+
*/
|
|
5548
|
+
providersCreate(providerCreate, options) {
|
|
5549
|
+
return localVarFp.providersCreate(providerCreate, options).then((request) => request(axios, basePath));
|
|
5550
|
+
},
|
|
5551
|
+
/**
|
|
5552
|
+
*
|
|
5553
|
+
* @summary Providers Get
|
|
5554
|
+
* @param {string} providerId
|
|
5555
|
+
* @param {*} [options] Override http request option.
|
|
5556
|
+
* @throws {RequiredError}
|
|
5557
|
+
*/
|
|
5558
|
+
providersGet(providerId, options) {
|
|
5559
|
+
return localVarFp.providersGet(providerId, options).then((request) => request(axios, basePath));
|
|
5560
|
+
},
|
|
5561
|
+
/**
|
|
5562
|
+
*
|
|
5563
|
+
* @summary Providers List
|
|
5564
|
+
* @param {*} [options] Override http request option.
|
|
5565
|
+
* @throws {RequiredError}
|
|
5566
|
+
*/
|
|
5567
|
+
providersList(options) {
|
|
5568
|
+
return localVarFp.providersList(options).then((request) => request(axios, basePath));
|
|
5569
|
+
},
|
|
5570
|
+
/**
|
|
5571
|
+
*
|
|
5572
|
+
* @summary Providers Update
|
|
5573
|
+
* @param {string} providerId
|
|
5574
|
+
* @param {ProviderUpdate} providerUpdate
|
|
5575
|
+
* @param {*} [options] Override http request option.
|
|
5576
|
+
* @throws {RequiredError}
|
|
5577
|
+
*/
|
|
5578
|
+
providersUpdate(providerId, providerUpdate, options) {
|
|
5579
|
+
return localVarFp.providersUpdate(providerId, providerUpdate, options).then((request) => request(axios, basePath));
|
|
5580
|
+
},
|
|
4033
5581
|
/**
|
|
4034
5582
|
*
|
|
4035
5583
|
* @summary Reservations List
|
|
4036
|
-
* @param {string} [
|
|
5584
|
+
* @param {string | null} [searchString]
|
|
5585
|
+
* @param {string | null} [contactId]
|
|
5586
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5587
|
+
* @param {number} [limit]
|
|
5588
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5589
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
5590
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4037
5591
|
* @param {*} [options] Override http request option.
|
|
4038
5592
|
* @throws {RequiredError}
|
|
4039
5593
|
*/
|
|
4040
|
-
reservationsList(contactId, options) {
|
|
4041
|
-
return localVarFp.reservationsList(contactId, options).then((request) => request(axios, basePath));
|
|
5594
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5595
|
+
return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
|
|
4042
5596
|
},
|
|
4043
5597
|
/**
|
|
4044
5598
|
*
|
|
@@ -4223,13 +5777,19 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4223
5777
|
/**
|
|
4224
5778
|
* List all conversations, optionally filtered by contact_id
|
|
4225
5779
|
* @summary Conversations List
|
|
4226
|
-
* @param {string} [
|
|
5780
|
+
* @param {string | null} [searchString]
|
|
5781
|
+
* @param {string | null} [contactId]
|
|
5782
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5783
|
+
* @param {number} [limit]
|
|
5784
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5785
|
+
* @param {SrcResourceModelsConversationsModelConversationsModelConversationSortBy} [sortBy] Sort key
|
|
5786
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4227
5787
|
* @param {*} [options] Override http request option.
|
|
4228
5788
|
* @throws {RequiredError}
|
|
4229
5789
|
* @memberof UnboundApi
|
|
4230
5790
|
*/
|
|
4231
|
-
conversationsList(contactId, options) {
|
|
4232
|
-
return UnboundApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
5791
|
+
conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5792
|
+
return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4233
5793
|
}
|
|
4234
5794
|
/**
|
|
4235
5795
|
*
|
|
@@ -4266,6 +5826,18 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4266
5826
|
emailsDelete(emailId, options) {
|
|
4267
5827
|
return UnboundApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
4268
5828
|
}
|
|
5829
|
+
/**
|
|
5830
|
+
*
|
|
5831
|
+
* @summary Emails Update
|
|
5832
|
+
* @param {string} emailId
|
|
5833
|
+
* @param {EmailUpdate} emailUpdate
|
|
5834
|
+
* @param {*} [options] Override http request option.
|
|
5835
|
+
* @throws {RequiredError}
|
|
5836
|
+
* @memberof UnboundApi
|
|
5837
|
+
*/
|
|
5838
|
+
emailsUpdate(emailId, emailUpdate, options) {
|
|
5839
|
+
return UnboundApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
5840
|
+
}
|
|
4269
5841
|
/**
|
|
4270
5842
|
* List all listings
|
|
4271
5843
|
* @summary Inquiries List
|
|
@@ -4278,15 +5850,32 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4278
5850
|
return UnboundApiFp(this.configuration).inquiriesList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
4279
5851
|
}
|
|
4280
5852
|
/**
|
|
4281
|
-
*
|
|
5853
|
+
*
|
|
5854
|
+
* @summary Listings Get
|
|
5855
|
+
* @param {string} listingId
|
|
5856
|
+
* @param {*} [options] Override http request option.
|
|
5857
|
+
* @throws {RequiredError}
|
|
5858
|
+
* @memberof UnboundApi
|
|
5859
|
+
*/
|
|
5860
|
+
listingsGet(listingId, options) {
|
|
5861
|
+
return UnboundApiFp(this.configuration).listingsGet(listingId, options).then((request) => request(this.axios, this.basePath));
|
|
5862
|
+
}
|
|
5863
|
+
/**
|
|
5864
|
+
*
|
|
4282
5865
|
* @summary Listings List
|
|
4283
|
-
* @param {string} [
|
|
5866
|
+
* @param {string | null} [searchString]
|
|
5867
|
+
* @param {string | null} [contactId]
|
|
5868
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5869
|
+
* @param {number} [limit]
|
|
5870
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5871
|
+
* @param {ListingSortBy} [sortBy] Sort key
|
|
5872
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4284
5873
|
* @param {*} [options] Override http request option.
|
|
4285
5874
|
* @throws {RequiredError}
|
|
4286
5875
|
* @memberof UnboundApi
|
|
4287
5876
|
*/
|
|
4288
|
-
listingsList(contactId, options) {
|
|
4289
|
-
return UnboundApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
5877
|
+
listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5878
|
+
return UnboundApiFp(this.configuration).listingsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4290
5879
|
}
|
|
4291
5880
|
/**
|
|
4292
5881
|
*
|
|
@@ -4301,13 +5890,14 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4301
5890
|
/**
|
|
4302
5891
|
*
|
|
4303
5892
|
* @summary Messages Create
|
|
5893
|
+
* @param {string} conversationId
|
|
4304
5894
|
* @param {MessageCreate} messageCreate
|
|
4305
5895
|
* @param {*} [options] Override http request option.
|
|
4306
5896
|
* @throws {RequiredError}
|
|
4307
5897
|
* @memberof UnboundApi
|
|
4308
5898
|
*/
|
|
4309
|
-
messagesCreate(messageCreate, options) {
|
|
4310
|
-
return UnboundApiFp(this.configuration).messagesCreate(messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5899
|
+
messagesCreate(conversationId, messageCreate, options) {
|
|
5900
|
+
return UnboundApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
|
|
4311
5901
|
}
|
|
4312
5902
|
/**
|
|
4313
5903
|
*
|
|
@@ -4323,13 +5913,20 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4323
5913
|
/**
|
|
4324
5914
|
*
|
|
4325
5915
|
* @summary Messages List
|
|
4326
|
-
* @param {string} [
|
|
5916
|
+
* @param {string | null} [searchString]
|
|
5917
|
+
* @param {string | null} [contactId]
|
|
5918
|
+
* @param {string | null} [conversationId]
|
|
5919
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
5920
|
+
* @param {number} [limit]
|
|
5921
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
5922
|
+
* @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
|
|
5923
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4327
5924
|
* @param {*} [options] Override http request option.
|
|
4328
5925
|
* @throws {RequiredError}
|
|
4329
5926
|
* @memberof UnboundApi
|
|
4330
5927
|
*/
|
|
4331
|
-
messagesList(conversationId, options) {
|
|
4332
|
-
return UnboundApiFp(this.configuration).messagesList(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
5928
|
+
messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
5929
|
+
return UnboundApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4333
5930
|
}
|
|
4334
5931
|
/**
|
|
4335
5932
|
*
|
|
@@ -4354,16 +5951,78 @@ var UnboundApi = class extends BaseAPI {
|
|
|
4354
5951
|
phoneNumbersDelete(phoneNumberId, options) {
|
|
4355
5952
|
return UnboundApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
4356
5953
|
}
|
|
5954
|
+
/**
|
|
5955
|
+
*
|
|
5956
|
+
* @summary Phone_numbers Update
|
|
5957
|
+
* @param {string} phoneNumberId
|
|
5958
|
+
* @param {PhoneNumberUpdate} phoneNumberUpdate
|
|
5959
|
+
* @param {*} [options] Override http request option.
|
|
5960
|
+
* @throws {RequiredError}
|
|
5961
|
+
* @memberof UnboundApi
|
|
5962
|
+
*/
|
|
5963
|
+
phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
|
|
5964
|
+
return UnboundApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
5965
|
+
}
|
|
5966
|
+
/**
|
|
5967
|
+
*
|
|
5968
|
+
* @summary Providers Create
|
|
5969
|
+
* @param {ProviderCreate} providerCreate
|
|
5970
|
+
* @param {*} [options] Override http request option.
|
|
5971
|
+
* @throws {RequiredError}
|
|
5972
|
+
* @memberof UnboundApi
|
|
5973
|
+
*/
|
|
5974
|
+
providersCreate(providerCreate, options) {
|
|
5975
|
+
return UnboundApiFp(this.configuration).providersCreate(providerCreate, options).then((request) => request(this.axios, this.basePath));
|
|
5976
|
+
}
|
|
5977
|
+
/**
|
|
5978
|
+
*
|
|
5979
|
+
* @summary Providers Get
|
|
5980
|
+
* @param {string} providerId
|
|
5981
|
+
* @param {*} [options] Override http request option.
|
|
5982
|
+
* @throws {RequiredError}
|
|
5983
|
+
* @memberof UnboundApi
|
|
5984
|
+
*/
|
|
5985
|
+
providersGet(providerId, options) {
|
|
5986
|
+
return UnboundApiFp(this.configuration).providersGet(providerId, options).then((request) => request(this.axios, this.basePath));
|
|
5987
|
+
}
|
|
5988
|
+
/**
|
|
5989
|
+
*
|
|
5990
|
+
* @summary Providers List
|
|
5991
|
+
* @param {*} [options] Override http request option.
|
|
5992
|
+
* @throws {RequiredError}
|
|
5993
|
+
* @memberof UnboundApi
|
|
5994
|
+
*/
|
|
5995
|
+
providersList(options) {
|
|
5996
|
+
return UnboundApiFp(this.configuration).providersList(options).then((request) => request(this.axios, this.basePath));
|
|
5997
|
+
}
|
|
5998
|
+
/**
|
|
5999
|
+
*
|
|
6000
|
+
* @summary Providers Update
|
|
6001
|
+
* @param {string} providerId
|
|
6002
|
+
* @param {ProviderUpdate} providerUpdate
|
|
6003
|
+
* @param {*} [options] Override http request option.
|
|
6004
|
+
* @throws {RequiredError}
|
|
6005
|
+
* @memberof UnboundApi
|
|
6006
|
+
*/
|
|
6007
|
+
providersUpdate(providerId, providerUpdate, options) {
|
|
6008
|
+
return UnboundApiFp(this.configuration).providersUpdate(providerId, providerUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
6009
|
+
}
|
|
4357
6010
|
/**
|
|
4358
6011
|
*
|
|
4359
6012
|
* @summary Reservations List
|
|
4360
|
-
* @param {string} [
|
|
6013
|
+
* @param {string | null} [searchString]
|
|
6014
|
+
* @param {string | null} [contactId]
|
|
6015
|
+
* @param {string | null} [cursor] Cursor for keyset paging
|
|
6016
|
+
* @param {number} [limit]
|
|
6017
|
+
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
6018
|
+
* @param {SrcResourceModelsReservationsModelReservationBaseModelSortBy} [sortBy] Sort key
|
|
6019
|
+
* @param {SortOrder} [sortOrder] Sort order asc/desc
|
|
4361
6020
|
* @param {*} [options] Override http request option.
|
|
4362
6021
|
* @throws {RequiredError}
|
|
4363
6022
|
* @memberof UnboundApi
|
|
4364
6023
|
*/
|
|
4365
|
-
reservationsList(contactId, options) {
|
|
4366
|
-
return UnboundApiFp(this.configuration).reservationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
6024
|
+
reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
6025
|
+
return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
|
|
4367
6026
|
}
|
|
4368
6027
|
/**
|
|
4369
6028
|
*
|
|
@@ -4446,7 +6105,7 @@ var Configuration = class {
|
|
|
4446
6105
|
this.baseOptions = {
|
|
4447
6106
|
...param.baseOptions,
|
|
4448
6107
|
headers: {
|
|
4449
|
-
..._optionalChain([param, 'access',
|
|
6108
|
+
..._optionalChain([param, 'access', _330 => _330.baseOptions, 'optionalAccess', _331 => _331.headers])
|
|
4450
6109
|
}
|
|
4451
6110
|
};
|
|
4452
6111
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -4531,5 +6190,19 @@ var Configuration = class {
|
|
|
4531
6190
|
|
|
4532
6191
|
|
|
4533
6192
|
|
|
4534
|
-
|
|
6193
|
+
|
|
6194
|
+
|
|
6195
|
+
|
|
6196
|
+
|
|
6197
|
+
|
|
6198
|
+
|
|
6199
|
+
|
|
6200
|
+
|
|
6201
|
+
|
|
6202
|
+
|
|
6203
|
+
|
|
6204
|
+
|
|
6205
|
+
|
|
6206
|
+
|
|
6207
|
+
exports.AccountsApi = AccountsApi; exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator; exports.AccountsApiFactory = AccountsApiFactory; exports.AccountsApiFp = AccountsApiFp; exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactListingType = ContactListingType; exports.ContactSortBy = ContactSortBy; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.ConversationStatus = ConversationStatus; exports.ConversationsApi = ConversationsApi; exports.ConversationsApiAxiosParamCreator = ConversationsApiAxiosParamCreator; exports.ConversationsApiFactory = ConversationsApiFactory; exports.ConversationsApiFp = ConversationsApiFp; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.InquiriesApi = InquiriesApi; exports.InquiriesApiAxiosParamCreator = InquiriesApiAxiosParamCreator; exports.InquiriesApiFactory = InquiriesApiFactory; exports.InquiriesApiFp = InquiriesApiFp; exports.ListingSortBy = ListingSortBy; exports.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.ManagedPhoneNumbersApi = ManagedPhoneNumbersApi; exports.ManagedPhoneNumbersApiAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator; exports.ManagedPhoneNumbersApiFactory = ManagedPhoneNumbersApiFactory; exports.ManagedPhoneNumbersApiFp = ManagedPhoneNumbersApiFp; exports.MessageDirection = MessageDirection; exports.MessageStatus = MessageStatus; exports.MessagesApi = MessagesApi; exports.MessagesApiAxiosParamCreator = MessagesApiAxiosParamCreator; exports.MessagesApiFactory = MessagesApiFactory; exports.MessagesApiFp = MessagesApiFp; exports.PaginationDirection = PaginationDirection; exports.PhoneNumbersApi = PhoneNumbersApi; exports.PhoneNumbersApiAxiosParamCreator = PhoneNumbersApiAxiosParamCreator; exports.PhoneNumbersApiFactory = PhoneNumbersApiFactory; exports.PhoneNumbersApiFp = PhoneNumbersApiFp; exports.ProviderMessageApiConversationTypeEnum = ProviderMessageApiConversationTypeEnum; exports.ProvidersApi = ProvidersApi; exports.ProvidersApiAxiosParamCreator = ProvidersApiAxiosParamCreator; exports.ProvidersApiFactory = ProvidersApiFactory; exports.ProvidersApiFp = ProvidersApiFp; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.SortOrder = SortOrder; exports.SrcResourceModelsConversationsModelConversationsModelConversationSortBy = SrcResourceModelsConversationsModelConversationsModelConversationSortBy; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi3ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi5ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi5ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum; exports.SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy = SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy; exports.SrcResourceModelsReservationsModelReservationBaseModelSortBy = SrcResourceModelsReservationsModelReservationBaseModelSortBy; exports.TwilioInboundSenderTypeDataApiDirectionEnum = TwilioInboundSenderTypeDataApiDirectionEnum; exports.TwilioMessageApiConversationTypeEnum = TwilioMessageApiConversationTypeEnum; exports.TwilioOutboundSenderTypeDataApiDirectionEnum = TwilioOutboundSenderTypeDataApiDirectionEnum; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
|
|
4535
6208
|
//# sourceMappingURL=index.js.map
|