@ember-home/unbound-ts-client 0.0.22 → 0.0.24
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 +1110 -126
- package/dist/index.d.ts +1110 -126
- package/dist/index.js +1082 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +953 -150
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -83,6 +83,10 @@ var ContactSortBy = {
|
|
|
83
83
|
FirstLastCompany: "first_last_company",
|
|
84
84
|
CompanyLastFirst: "company_last_first"
|
|
85
85
|
};
|
|
86
|
+
var ConversationStatus = {
|
|
87
|
+
Open: "OPEN",
|
|
88
|
+
Closed: "CLOSED"
|
|
89
|
+
};
|
|
86
90
|
var PaginationDirection = {
|
|
87
91
|
Forward: "forward",
|
|
88
92
|
Backward: "backward"
|
|
@@ -91,6 +95,89 @@ var SortOrder = {
|
|
|
91
95
|
Asc: "asc",
|
|
92
96
|
Desc: "desc"
|
|
93
97
|
};
|
|
98
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
|
|
99
|
+
Twilio: "TWILIO"
|
|
100
|
+
};
|
|
101
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
|
|
102
|
+
Email: "EMAIL"
|
|
103
|
+
};
|
|
104
|
+
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = {
|
|
105
|
+
Twilio: "TWILIO"
|
|
106
|
+
};
|
|
107
|
+
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = {
|
|
108
|
+
Email: "EMAIL"
|
|
109
|
+
};
|
|
110
|
+
var AccountsApiAxiosParamCreator = function(configuration) {
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary Accounts List
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
accountsList: async (options = {}) => {
|
|
119
|
+
const localVarPath = `/accounts`;
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
131
|
+
return {
|
|
132
|
+
url: toPathString(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
var AccountsApiFp = function(configuration) {
|
|
139
|
+
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
|
|
140
|
+
return {
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @summary Accounts List
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
async accountsList(options) {
|
|
148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
149
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
150
|
+
const localVarOperationServerBasePath = operationServerMap["AccountsApi.accountsList"]?.[localVarOperationServerIndex]?.url;
|
|
151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
var AccountsApiFactory = function(configuration, basePath, axios) {
|
|
156
|
+
const localVarFp = AccountsApiFp(configuration);
|
|
157
|
+
return {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @summary Accounts List
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
accountsList(options) {
|
|
165
|
+
return localVarFp.accountsList(options).then((request) => request(axios, basePath));
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
var AccountsApi = class extends BaseAPI {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Accounts List
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
* @memberof AccountsApi
|
|
176
|
+
*/
|
|
177
|
+
accountsList(options) {
|
|
178
|
+
return AccountsApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
}
|
|
180
|
+
};
|
|
94
181
|
var AddressesApiAxiosParamCreator = function(configuration) {
|
|
95
182
|
return {
|
|
96
183
|
/**
|
|
@@ -504,7 +591,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
504
591
|
/**
|
|
505
592
|
*
|
|
506
593
|
* @summary Contacts List
|
|
507
|
-
* @param {string} [searchString]
|
|
594
|
+
* @param {string | null} [searchString]
|
|
508
595
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
509
596
|
* @param {number} [limit]
|
|
510
597
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -701,16 +788,16 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
701
788
|
},
|
|
702
789
|
/**
|
|
703
790
|
*
|
|
704
|
-
* @summary
|
|
791
|
+
* @summary Phone_numbers Create
|
|
705
792
|
* @param {string} contactId
|
|
706
|
-
* @param {
|
|
793
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
707
794
|
* @param {*} [options] Override http request option.
|
|
708
795
|
* @throws {RequiredError}
|
|
709
796
|
*/
|
|
710
|
-
|
|
711
|
-
assertParamExists("
|
|
712
|
-
assertParamExists("
|
|
713
|
-
const localVarPath = `/contacts/{contactId}/
|
|
797
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
798
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
799
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
800
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
714
801
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
715
802
|
let baseOptions;
|
|
716
803
|
if (configuration) {
|
|
@@ -723,7 +810,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
723
810
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
724
811
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
812
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
726
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
813
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
727
814
|
return {
|
|
728
815
|
url: toPathString(localVarUrlObj),
|
|
729
816
|
options: localVarRequestOptions
|
|
@@ -731,14 +818,14 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
731
818
|
},
|
|
732
819
|
/**
|
|
733
820
|
*
|
|
734
|
-
* @summary
|
|
735
|
-
* @param {string}
|
|
821
|
+
* @summary Phone_numbers Delete
|
|
822
|
+
* @param {string} phoneNumberId
|
|
736
823
|
* @param {*} [options] Override http request option.
|
|
737
824
|
* @throws {RequiredError}
|
|
738
825
|
*/
|
|
739
|
-
|
|
740
|
-
assertParamExists("
|
|
741
|
-
const localVarPath = `/
|
|
826
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
827
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
828
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
742
829
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
743
830
|
let baseOptions;
|
|
744
831
|
if (configuration) {
|
|
@@ -858,7 +945,7 @@ var ContactsApiFp = function(configuration) {
|
|
|
858
945
|
/**
|
|
859
946
|
*
|
|
860
947
|
* @summary Contacts List
|
|
861
|
-
* @param {string} [searchString]
|
|
948
|
+
* @param {string | null} [searchString]
|
|
862
949
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
863
950
|
* @param {number} [limit]
|
|
864
951
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -946,29 +1033,29 @@ var ContactsApiFp = function(configuration) {
|
|
|
946
1033
|
},
|
|
947
1034
|
/**
|
|
948
1035
|
*
|
|
949
|
-
* @summary
|
|
1036
|
+
* @summary Phone_numbers Create
|
|
950
1037
|
* @param {string} contactId
|
|
951
|
-
* @param {
|
|
1038
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
952
1039
|
* @param {*} [options] Override http request option.
|
|
953
1040
|
* @throws {RequiredError}
|
|
954
1041
|
*/
|
|
955
|
-
async
|
|
956
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1042
|
+
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1043
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
957
1044
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
958
|
-
const localVarOperationServerBasePath = operationServerMap["ContactsApi.
|
|
1045
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.phoneNumbersCreate"]?.[localVarOperationServerIndex]?.url;
|
|
959
1046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
960
1047
|
},
|
|
961
1048
|
/**
|
|
962
1049
|
*
|
|
963
|
-
* @summary
|
|
964
|
-
* @param {string}
|
|
1050
|
+
* @summary Phone_numbers Delete
|
|
1051
|
+
* @param {string} phoneNumberId
|
|
965
1052
|
* @param {*} [options] Override http request option.
|
|
966
1053
|
* @throws {RequiredError}
|
|
967
1054
|
*/
|
|
968
|
-
async
|
|
969
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1055
|
+
async phoneNumbersDelete(phoneNumberId, options) {
|
|
1056
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
970
1057
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
971
|
-
const localVarOperationServerBasePath = operationServerMap["ContactsApi.
|
|
1058
|
+
const localVarOperationServerBasePath = operationServerMap["ContactsApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
|
|
972
1059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
973
1060
|
}
|
|
974
1061
|
};
|
|
@@ -1053,7 +1140,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
1053
1140
|
/**
|
|
1054
1141
|
*
|
|
1055
1142
|
* @summary Contacts List
|
|
1056
|
-
* @param {string} [searchString]
|
|
1143
|
+
* @param {string | null} [searchString]
|
|
1057
1144
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1058
1145
|
* @param {number} [limit]
|
|
1059
1146
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -1123,24 +1210,24 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
1123
1210
|
},
|
|
1124
1211
|
/**
|
|
1125
1212
|
*
|
|
1126
|
-
* @summary
|
|
1213
|
+
* @summary Phone_numbers Create
|
|
1127
1214
|
* @param {string} contactId
|
|
1128
|
-
* @param {
|
|
1215
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1129
1216
|
* @param {*} [options] Override http request option.
|
|
1130
1217
|
* @throws {RequiredError}
|
|
1131
1218
|
*/
|
|
1132
|
-
|
|
1133
|
-
return localVarFp.
|
|
1219
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1220
|
+
return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
|
|
1134
1221
|
},
|
|
1135
1222
|
/**
|
|
1136
1223
|
*
|
|
1137
|
-
* @summary
|
|
1138
|
-
* @param {string}
|
|
1224
|
+
* @summary Phone_numbers Delete
|
|
1225
|
+
* @param {string} phoneNumberId
|
|
1139
1226
|
* @param {*} [options] Override http request option.
|
|
1140
1227
|
* @throws {RequiredError}
|
|
1141
1228
|
*/
|
|
1142
|
-
|
|
1143
|
-
return localVarFp.
|
|
1229
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
1230
|
+
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
1144
1231
|
}
|
|
1145
1232
|
};
|
|
1146
1233
|
};
|
|
@@ -1229,7 +1316,7 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1229
1316
|
/**
|
|
1230
1317
|
*
|
|
1231
1318
|
* @summary Contacts List
|
|
1232
|
-
* @param {string} [searchString]
|
|
1319
|
+
* @param {string | null} [searchString]
|
|
1233
1320
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
1234
1321
|
* @param {number} [limit]
|
|
1235
1322
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -1305,26 +1392,293 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1305
1392
|
}
|
|
1306
1393
|
/**
|
|
1307
1394
|
*
|
|
1308
|
-
* @summary
|
|
1395
|
+
* @summary Phone_numbers Create
|
|
1309
1396
|
* @param {string} contactId
|
|
1310
|
-
* @param {
|
|
1397
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1311
1398
|
* @param {*} [options] Override http request option.
|
|
1312
1399
|
* @throws {RequiredError}
|
|
1313
1400
|
* @memberof ContactsApi
|
|
1314
1401
|
*/
|
|
1315
|
-
|
|
1316
|
-
return ContactsApiFp(this.configuration).
|
|
1402
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1403
|
+
return ContactsApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1317
1404
|
}
|
|
1318
1405
|
/**
|
|
1319
1406
|
*
|
|
1320
|
-
* @summary
|
|
1321
|
-
* @param {string}
|
|
1407
|
+
* @summary Phone_numbers Delete
|
|
1408
|
+
* @param {string} phoneNumberId
|
|
1322
1409
|
* @param {*} [options] Override http request option.
|
|
1323
1410
|
* @throws {RequiredError}
|
|
1324
1411
|
* @memberof ContactsApi
|
|
1325
1412
|
*/
|
|
1326
|
-
|
|
1327
|
-
return ContactsApiFp(this.configuration).
|
|
1413
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
1414
|
+
return ContactsApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1417
|
+
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1418
|
+
return {
|
|
1419
|
+
/**
|
|
1420
|
+
*
|
|
1421
|
+
* @summary Conversations Create
|
|
1422
|
+
* @param {ConversationCreate} conversationCreate
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
conversationsCreate: async (conversationCreate, options = {}) => {
|
|
1427
|
+
assertParamExists("conversationsCreate", "conversationCreate", conversationCreate);
|
|
1428
|
+
const localVarPath = `/conversations`;
|
|
1429
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1430
|
+
let baseOptions;
|
|
1431
|
+
if (configuration) {
|
|
1432
|
+
baseOptions = configuration.baseOptions;
|
|
1433
|
+
}
|
|
1434
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1435
|
+
const localVarHeaderParameter = {};
|
|
1436
|
+
const localVarQueryParameter = {};
|
|
1437
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1438
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1440
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1441
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationCreate, localVarRequestOptions, configuration);
|
|
1442
|
+
return {
|
|
1443
|
+
url: toPathString(localVarUrlObj),
|
|
1444
|
+
options: localVarRequestOptions
|
|
1445
|
+
};
|
|
1446
|
+
},
|
|
1447
|
+
/**
|
|
1448
|
+
*
|
|
1449
|
+
* @summary Conversations Get
|
|
1450
|
+
* @param {string} conversationId
|
|
1451
|
+
* @param {*} [options] Override http request option.
|
|
1452
|
+
* @throws {RequiredError}
|
|
1453
|
+
*/
|
|
1454
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
1455
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
1456
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1458
|
+
let baseOptions;
|
|
1459
|
+
if (configuration) {
|
|
1460
|
+
baseOptions = configuration.baseOptions;
|
|
1461
|
+
}
|
|
1462
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1463
|
+
const localVarHeaderParameter = {};
|
|
1464
|
+
const localVarQueryParameter = {};
|
|
1465
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1467
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1468
|
+
return {
|
|
1469
|
+
url: toPathString(localVarUrlObj),
|
|
1470
|
+
options: localVarRequestOptions
|
|
1471
|
+
};
|
|
1472
|
+
},
|
|
1473
|
+
/**
|
|
1474
|
+
* List all conversations, optionally filtered by contact_id
|
|
1475
|
+
* @summary Conversations List
|
|
1476
|
+
* @param {string} [contactId]
|
|
1477
|
+
* @param {*} [options] Override http request option.
|
|
1478
|
+
* @throws {RequiredError}
|
|
1479
|
+
*/
|
|
1480
|
+
conversationsList: async (contactId, options = {}) => {
|
|
1481
|
+
const localVarPath = `/conversations`;
|
|
1482
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1483
|
+
let baseOptions;
|
|
1484
|
+
if (configuration) {
|
|
1485
|
+
baseOptions = configuration.baseOptions;
|
|
1486
|
+
}
|
|
1487
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1488
|
+
const localVarHeaderParameter = {};
|
|
1489
|
+
const localVarQueryParameter = {};
|
|
1490
|
+
if (contactId !== void 0) {
|
|
1491
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
1492
|
+
}
|
|
1493
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1495
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1496
|
+
return {
|
|
1497
|
+
url: toPathString(localVarUrlObj),
|
|
1498
|
+
options: localVarRequestOptions
|
|
1499
|
+
};
|
|
1500
|
+
},
|
|
1501
|
+
/**
|
|
1502
|
+
*
|
|
1503
|
+
* @summary Conversations Update
|
|
1504
|
+
* @param {string} conversationId
|
|
1505
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1506
|
+
* @param {*} [options] Override http request option.
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
*/
|
|
1509
|
+
conversationsUpdate: async (conversationId, conversationUpdate, options = {}) => {
|
|
1510
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1511
|
+
assertParamExists("conversationsUpdate", "conversationUpdate", conversationUpdate);
|
|
1512
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1513
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1514
|
+
let baseOptions;
|
|
1515
|
+
if (configuration) {
|
|
1516
|
+
baseOptions = configuration.baseOptions;
|
|
1517
|
+
}
|
|
1518
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1519
|
+
const localVarHeaderParameter = {};
|
|
1520
|
+
const localVarQueryParameter = {};
|
|
1521
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1522
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1524
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1525
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdate, localVarRequestOptions, configuration);
|
|
1526
|
+
return {
|
|
1527
|
+
url: toPathString(localVarUrlObj),
|
|
1528
|
+
options: localVarRequestOptions
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1533
|
+
var ConversationsApiFp = function(configuration) {
|
|
1534
|
+
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1535
|
+
return {
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @summary Conversations Create
|
|
1539
|
+
* @param {ConversationCreate} conversationCreate
|
|
1540
|
+
* @param {*} [options] Override http request option.
|
|
1541
|
+
* @throws {RequiredError}
|
|
1542
|
+
*/
|
|
1543
|
+
async conversationsCreate(conversationCreate, options) {
|
|
1544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
|
|
1545
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1546
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1547
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1548
|
+
},
|
|
1549
|
+
/**
|
|
1550
|
+
*
|
|
1551
|
+
* @summary Conversations Get
|
|
1552
|
+
* @param {string} conversationId
|
|
1553
|
+
* @param {*} [options] Override http request option.
|
|
1554
|
+
* @throws {RequiredError}
|
|
1555
|
+
*/
|
|
1556
|
+
async conversationsGet(conversationId, options) {
|
|
1557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
1558
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1559
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1560
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1561
|
+
},
|
|
1562
|
+
/**
|
|
1563
|
+
* List all conversations, optionally filtered by contact_id
|
|
1564
|
+
* @summary Conversations List
|
|
1565
|
+
* @param {string} [contactId]
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
*/
|
|
1569
|
+
async conversationsList(contactId, options) {
|
|
1570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
1571
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1572
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
1573
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1574
|
+
},
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @summary Conversations Update
|
|
1578
|
+
* @param {string} conversationId
|
|
1579
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
async conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
|
|
1585
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1586
|
+
const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
1587
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
1592
|
+
const localVarFp = ConversationsApiFp(configuration);
|
|
1593
|
+
return {
|
|
1594
|
+
/**
|
|
1595
|
+
*
|
|
1596
|
+
* @summary Conversations Create
|
|
1597
|
+
* @param {ConversationCreate} conversationCreate
|
|
1598
|
+
* @param {*} [options] Override http request option.
|
|
1599
|
+
* @throws {RequiredError}
|
|
1600
|
+
*/
|
|
1601
|
+
conversationsCreate(conversationCreate, options) {
|
|
1602
|
+
return localVarFp.conversationsCreate(conversationCreate, options).then((request) => request(axios, basePath));
|
|
1603
|
+
},
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @summary Conversations Get
|
|
1607
|
+
* @param {string} conversationId
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
*/
|
|
1611
|
+
conversationsGet(conversationId, options) {
|
|
1612
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
1613
|
+
},
|
|
1614
|
+
/**
|
|
1615
|
+
* List all conversations, optionally filtered by contact_id
|
|
1616
|
+
* @summary Conversations List
|
|
1617
|
+
* @param {string} [contactId]
|
|
1618
|
+
* @param {*} [options] Override http request option.
|
|
1619
|
+
* @throws {RequiredError}
|
|
1620
|
+
*/
|
|
1621
|
+
conversationsList(contactId, options) {
|
|
1622
|
+
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
1623
|
+
},
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @summary Conversations Update
|
|
1627
|
+
* @param {string} conversationId
|
|
1628
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1633
|
+
return localVarFp.conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(axios, basePath));
|
|
1634
|
+
}
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
var ConversationsApi = class extends BaseAPI {
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @summary Conversations Create
|
|
1641
|
+
* @param {ConversationCreate} conversationCreate
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
* @memberof ConversationsApi
|
|
1645
|
+
*/
|
|
1646
|
+
conversationsCreate(conversationCreate, options) {
|
|
1647
|
+
return ConversationsApiFp(this.configuration).conversationsCreate(conversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
*
|
|
1651
|
+
* @summary Conversations Get
|
|
1652
|
+
* @param {string} conversationId
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
* @memberof ConversationsApi
|
|
1656
|
+
*/
|
|
1657
|
+
conversationsGet(conversationId, options) {
|
|
1658
|
+
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* List all conversations, optionally filtered by contact_id
|
|
1662
|
+
* @summary Conversations List
|
|
1663
|
+
* @param {string} [contactId]
|
|
1664
|
+
* @param {*} [options] Override http request option.
|
|
1665
|
+
* @throws {RequiredError}
|
|
1666
|
+
* @memberof ConversationsApi
|
|
1667
|
+
*/
|
|
1668
|
+
conversationsList(contactId, options) {
|
|
1669
|
+
return ConversationsApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @summary Conversations Update
|
|
1674
|
+
* @param {string} conversationId
|
|
1675
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
* @memberof ConversationsApi
|
|
1679
|
+
*/
|
|
1680
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1681
|
+
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1328
1682
|
}
|
|
1329
1683
|
};
|
|
1330
1684
|
var EmailsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1705,147 +2059,218 @@ var ListingsApi = class extends BaseAPI {
|
|
|
1705
2059
|
return ListingsApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1706
2060
|
}
|
|
1707
2061
|
};
|
|
1708
|
-
var
|
|
2062
|
+
var ManagedPhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
1709
2063
|
return {
|
|
1710
2064
|
/**
|
|
1711
2065
|
*
|
|
1712
|
-
* @summary
|
|
1713
|
-
* @param {string} contactId
|
|
1714
|
-
* @param {PhoneCreate} phoneCreate
|
|
2066
|
+
* @summary Managed_phone_numbers List
|
|
1715
2067
|
* @param {*} [options] Override http request option.
|
|
1716
2068
|
* @throws {RequiredError}
|
|
1717
2069
|
*/
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
assertParamExists("phonesCreate", "phoneCreate", phoneCreate);
|
|
1721
|
-
const localVarPath = `/contacts/{contactId}/phones`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
2070
|
+
managedPhoneNumbersList: async (options = {}) => {
|
|
2071
|
+
const localVarPath = `/managed_phone_numbers`;
|
|
1722
2072
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1723
2073
|
let baseOptions;
|
|
1724
2074
|
if (configuration) {
|
|
1725
2075
|
baseOptions = configuration.baseOptions;
|
|
1726
2076
|
}
|
|
1727
|
-
const localVarRequestOptions = { method: "
|
|
2077
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1728
2078
|
const localVarHeaderParameter = {};
|
|
1729
2079
|
const localVarQueryParameter = {};
|
|
1730
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1731
2080
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1732
2081
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1733
2082
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1734
|
-
localVarRequestOptions.data = serializeDataIfNeeded(phoneCreate, localVarRequestOptions, configuration);
|
|
1735
2083
|
return {
|
|
1736
2084
|
url: toPathString(localVarUrlObj),
|
|
1737
2085
|
options: localVarRequestOptions
|
|
1738
2086
|
};
|
|
1739
|
-
}
|
|
2087
|
+
}
|
|
2088
|
+
};
|
|
2089
|
+
};
|
|
2090
|
+
var ManagedPhoneNumbersApiFp = function(configuration) {
|
|
2091
|
+
const localVarAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator(configuration);
|
|
2092
|
+
return {
|
|
1740
2093
|
/**
|
|
1741
2094
|
*
|
|
1742
|
-
* @summary
|
|
1743
|
-
* @param {string} phoneId
|
|
2095
|
+
* @summary Managed_phone_numbers List
|
|
1744
2096
|
* @param {*} [options] Override http request option.
|
|
1745
2097
|
* @throws {RequiredError}
|
|
1746
2098
|
*/
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
const
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
2099
|
+
async managedPhoneNumbersList(options) {
|
|
2100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
2101
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2102
|
+
const localVarOperationServerBasePath = operationServerMap["ManagedPhoneNumbersApi.managedPhoneNumbersList"]?.[localVarOperationServerIndex]?.url;
|
|
2103
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
var ManagedPhoneNumbersApiFactory = function(configuration, basePath, axios) {
|
|
2108
|
+
const localVarFp = ManagedPhoneNumbersApiFp(configuration);
|
|
2109
|
+
return {
|
|
2110
|
+
/**
|
|
2111
|
+
*
|
|
2112
|
+
* @summary Managed_phone_numbers List
|
|
2113
|
+
* @param {*} [options] Override http request option.
|
|
2114
|
+
* @throws {RequiredError}
|
|
2115
|
+
*/
|
|
2116
|
+
managedPhoneNumbersList(options) {
|
|
2117
|
+
return localVarFp.managedPhoneNumbersList(options).then((request) => request(axios, basePath));
|
|
2118
|
+
}
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
var ManagedPhoneNumbersApi = class extends BaseAPI {
|
|
2122
|
+
/**
|
|
2123
|
+
*
|
|
2124
|
+
* @summary Managed_phone_numbers List
|
|
2125
|
+
* @param {*} [options] Override http request option.
|
|
2126
|
+
* @throws {RequiredError}
|
|
2127
|
+
* @memberof ManagedPhoneNumbersApi
|
|
2128
|
+
*/
|
|
2129
|
+
managedPhoneNumbersList(options) {
|
|
2130
|
+
return ManagedPhoneNumbersApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
|
|
2131
|
+
}
|
|
2132
|
+
};
|
|
2133
|
+
var PhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
2134
|
+
return {
|
|
2135
|
+
/**
|
|
2136
|
+
*
|
|
2137
|
+
* @summary Phone_numbers Create
|
|
2138
|
+
* @param {string} contactId
|
|
2139
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2140
|
+
* @param {*} [options] Override http request option.
|
|
2141
|
+
* @throws {RequiredError}
|
|
2142
|
+
*/
|
|
2143
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
2144
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
2145
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
2146
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
2147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2148
|
+
let baseOptions;
|
|
2149
|
+
if (configuration) {
|
|
2150
|
+
baseOptions = configuration.baseOptions;
|
|
2151
|
+
}
|
|
2152
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2153
|
+
const localVarHeaderParameter = {};
|
|
2154
|
+
const localVarQueryParameter = {};
|
|
2155
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2156
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2157
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2158
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2159
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
2160
|
+
return {
|
|
2161
|
+
url: toPathString(localVarUrlObj),
|
|
2162
|
+
options: localVarRequestOptions
|
|
2163
|
+
};
|
|
2164
|
+
},
|
|
2165
|
+
/**
|
|
2166
|
+
*
|
|
2167
|
+
* @summary Phone_numbers Delete
|
|
2168
|
+
* @param {string} phoneNumberId
|
|
2169
|
+
* @param {*} [options] Override http request option.
|
|
2170
|
+
* @throws {RequiredError}
|
|
2171
|
+
*/
|
|
2172
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
2173
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
2174
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
2175
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2176
|
+
let baseOptions;
|
|
2177
|
+
if (configuration) {
|
|
2178
|
+
baseOptions = configuration.baseOptions;
|
|
2179
|
+
}
|
|
2180
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
2181
|
+
const localVarHeaderParameter = {};
|
|
2182
|
+
const localVarQueryParameter = {};
|
|
2183
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2185
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2186
|
+
return {
|
|
1762
2187
|
url: toPathString(localVarUrlObj),
|
|
1763
2188
|
options: localVarRequestOptions
|
|
1764
2189
|
};
|
|
1765
2190
|
}
|
|
1766
2191
|
};
|
|
1767
2192
|
};
|
|
1768
|
-
var
|
|
1769
|
-
const localVarAxiosParamCreator =
|
|
2193
|
+
var PhoneNumbersApiFp = function(configuration) {
|
|
2194
|
+
const localVarAxiosParamCreator = PhoneNumbersApiAxiosParamCreator(configuration);
|
|
1770
2195
|
return {
|
|
1771
2196
|
/**
|
|
1772
2197
|
*
|
|
1773
|
-
* @summary
|
|
2198
|
+
* @summary Phone_numbers Create
|
|
1774
2199
|
* @param {string} contactId
|
|
1775
|
-
* @param {
|
|
2200
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1776
2201
|
* @param {*} [options] Override http request option.
|
|
1777
2202
|
* @throws {RequiredError}
|
|
1778
2203
|
*/
|
|
1779
|
-
async
|
|
1780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2204
|
+
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
1781
2206
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1782
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
2207
|
+
const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersCreate"]?.[localVarOperationServerIndex]?.url;
|
|
1783
2208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1784
2209
|
},
|
|
1785
2210
|
/**
|
|
1786
2211
|
*
|
|
1787
|
-
* @summary
|
|
1788
|
-
* @param {string}
|
|
2212
|
+
* @summary Phone_numbers Delete
|
|
2213
|
+
* @param {string} phoneNumberId
|
|
1789
2214
|
* @param {*} [options] Override http request option.
|
|
1790
2215
|
* @throws {RequiredError}
|
|
1791
2216
|
*/
|
|
1792
|
-
async
|
|
1793
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2217
|
+
async phoneNumbersDelete(phoneNumberId, options) {
|
|
2218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
1794
2219
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1795
|
-
const localVarOperationServerBasePath = operationServerMap["
|
|
2220
|
+
const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1796
2221
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1797
2222
|
}
|
|
1798
2223
|
};
|
|
1799
2224
|
};
|
|
1800
|
-
var
|
|
1801
|
-
const localVarFp =
|
|
2225
|
+
var PhoneNumbersApiFactory = function(configuration, basePath, axios) {
|
|
2226
|
+
const localVarFp = PhoneNumbersApiFp(configuration);
|
|
1802
2227
|
return {
|
|
1803
2228
|
/**
|
|
1804
2229
|
*
|
|
1805
|
-
* @summary
|
|
2230
|
+
* @summary Phone_numbers Create
|
|
1806
2231
|
* @param {string} contactId
|
|
1807
|
-
* @param {
|
|
2232
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1808
2233
|
* @param {*} [options] Override http request option.
|
|
1809
2234
|
* @throws {RequiredError}
|
|
1810
2235
|
*/
|
|
1811
|
-
|
|
1812
|
-
return localVarFp.
|
|
2236
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2237
|
+
return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
|
|
1813
2238
|
},
|
|
1814
2239
|
/**
|
|
1815
2240
|
*
|
|
1816
|
-
* @summary
|
|
1817
|
-
* @param {string}
|
|
2241
|
+
* @summary Phone_numbers Delete
|
|
2242
|
+
* @param {string} phoneNumberId
|
|
1818
2243
|
* @param {*} [options] Override http request option.
|
|
1819
2244
|
* @throws {RequiredError}
|
|
1820
2245
|
*/
|
|
1821
|
-
|
|
1822
|
-
return localVarFp.
|
|
2246
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
2247
|
+
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
1823
2248
|
}
|
|
1824
2249
|
};
|
|
1825
2250
|
};
|
|
1826
|
-
var
|
|
2251
|
+
var PhoneNumbersApi = class extends BaseAPI {
|
|
1827
2252
|
/**
|
|
1828
2253
|
*
|
|
1829
|
-
* @summary
|
|
2254
|
+
* @summary Phone_numbers Create
|
|
1830
2255
|
* @param {string} contactId
|
|
1831
|
-
* @param {
|
|
2256
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1832
2257
|
* @param {*} [options] Override http request option.
|
|
1833
2258
|
* @throws {RequiredError}
|
|
1834
|
-
* @memberof
|
|
2259
|
+
* @memberof PhoneNumbersApi
|
|
1835
2260
|
*/
|
|
1836
|
-
|
|
1837
|
-
return
|
|
2261
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2262
|
+
return PhoneNumbersApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1838
2263
|
}
|
|
1839
2264
|
/**
|
|
1840
2265
|
*
|
|
1841
|
-
* @summary
|
|
1842
|
-
* @param {string}
|
|
2266
|
+
* @summary Phone_numbers Delete
|
|
2267
|
+
* @param {string} phoneNumberId
|
|
1843
2268
|
* @param {*} [options] Override http request option.
|
|
1844
2269
|
* @throws {RequiredError}
|
|
1845
|
-
* @memberof
|
|
2270
|
+
* @memberof PhoneNumbersApi
|
|
1846
2271
|
*/
|
|
1847
|
-
|
|
1848
|
-
return
|
|
2272
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
2273
|
+
return PhoneNumbersApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
1849
2274
|
}
|
|
1850
2275
|
};
|
|
1851
2276
|
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1928,6 +2353,30 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
1928
2353
|
};
|
|
1929
2354
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
1930
2355
|
return {
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @summary Accounts List
|
|
2359
|
+
* @param {*} [options] Override http request option.
|
|
2360
|
+
* @throws {RequiredError}
|
|
2361
|
+
*/
|
|
2362
|
+
accountsList: async (options = {}) => {
|
|
2363
|
+
const localVarPath = `/accounts`;
|
|
2364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2365
|
+
let baseOptions;
|
|
2366
|
+
if (configuration) {
|
|
2367
|
+
baseOptions = configuration.baseOptions;
|
|
2368
|
+
}
|
|
2369
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2370
|
+
const localVarHeaderParameter = {};
|
|
2371
|
+
const localVarQueryParameter = {};
|
|
2372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2374
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2375
|
+
return {
|
|
2376
|
+
url: toPathString(localVarUrlObj),
|
|
2377
|
+
options: localVarRequestOptions
|
|
2378
|
+
};
|
|
2379
|
+
},
|
|
1931
2380
|
/**
|
|
1932
2381
|
*
|
|
1933
2382
|
* @summary Addresses Create
|
|
@@ -2129,7 +2578,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2129
2578
|
/**
|
|
2130
2579
|
*
|
|
2131
2580
|
* @summary Contacts List
|
|
2132
|
-
* @param {string} [searchString]
|
|
2581
|
+
* @param {string | null} [searchString]
|
|
2133
2582
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2134
2583
|
* @param {number} [limit]
|
|
2135
2584
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -2268,6 +2717,118 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2268
2717
|
options: localVarRequestOptions
|
|
2269
2718
|
};
|
|
2270
2719
|
},
|
|
2720
|
+
/**
|
|
2721
|
+
*
|
|
2722
|
+
* @summary Conversations Create
|
|
2723
|
+
* @param {ConversationCreate} conversationCreate
|
|
2724
|
+
* @param {*} [options] Override http request option.
|
|
2725
|
+
* @throws {RequiredError}
|
|
2726
|
+
*/
|
|
2727
|
+
conversationsCreate: async (conversationCreate, options = {}) => {
|
|
2728
|
+
assertParamExists("conversationsCreate", "conversationCreate", conversationCreate);
|
|
2729
|
+
const localVarPath = `/conversations`;
|
|
2730
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2731
|
+
let baseOptions;
|
|
2732
|
+
if (configuration) {
|
|
2733
|
+
baseOptions = configuration.baseOptions;
|
|
2734
|
+
}
|
|
2735
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2736
|
+
const localVarHeaderParameter = {};
|
|
2737
|
+
const localVarQueryParameter = {};
|
|
2738
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2739
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2741
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2742
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationCreate, localVarRequestOptions, configuration);
|
|
2743
|
+
return {
|
|
2744
|
+
url: toPathString(localVarUrlObj),
|
|
2745
|
+
options: localVarRequestOptions
|
|
2746
|
+
};
|
|
2747
|
+
},
|
|
2748
|
+
/**
|
|
2749
|
+
*
|
|
2750
|
+
* @summary Conversations Get
|
|
2751
|
+
* @param {string} conversationId
|
|
2752
|
+
* @param {*} [options] Override http request option.
|
|
2753
|
+
* @throws {RequiredError}
|
|
2754
|
+
*/
|
|
2755
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
2756
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
2757
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2758
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2759
|
+
let baseOptions;
|
|
2760
|
+
if (configuration) {
|
|
2761
|
+
baseOptions = configuration.baseOptions;
|
|
2762
|
+
}
|
|
2763
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2764
|
+
const localVarHeaderParameter = {};
|
|
2765
|
+
const localVarQueryParameter = {};
|
|
2766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2768
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2769
|
+
return {
|
|
2770
|
+
url: toPathString(localVarUrlObj),
|
|
2771
|
+
options: localVarRequestOptions
|
|
2772
|
+
};
|
|
2773
|
+
},
|
|
2774
|
+
/**
|
|
2775
|
+
* List all conversations, optionally filtered by contact_id
|
|
2776
|
+
* @summary Conversations List
|
|
2777
|
+
* @param {string} [contactId]
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
*/
|
|
2781
|
+
conversationsList: async (contactId, options = {}) => {
|
|
2782
|
+
const localVarPath = `/conversations`;
|
|
2783
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2784
|
+
let baseOptions;
|
|
2785
|
+
if (configuration) {
|
|
2786
|
+
baseOptions = configuration.baseOptions;
|
|
2787
|
+
}
|
|
2788
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2789
|
+
const localVarHeaderParameter = {};
|
|
2790
|
+
const localVarQueryParameter = {};
|
|
2791
|
+
if (contactId !== void 0) {
|
|
2792
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
2793
|
+
}
|
|
2794
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2795
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2796
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2797
|
+
return {
|
|
2798
|
+
url: toPathString(localVarUrlObj),
|
|
2799
|
+
options: localVarRequestOptions
|
|
2800
|
+
};
|
|
2801
|
+
},
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @summary Conversations Update
|
|
2805
|
+
* @param {string} conversationId
|
|
2806
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
2807
|
+
* @param {*} [options] Override http request option.
|
|
2808
|
+
* @throws {RequiredError}
|
|
2809
|
+
*/
|
|
2810
|
+
conversationsUpdate: async (conversationId, conversationUpdate, options = {}) => {
|
|
2811
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
2812
|
+
assertParamExists("conversationsUpdate", "conversationUpdate", conversationUpdate);
|
|
2813
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2814
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2815
|
+
let baseOptions;
|
|
2816
|
+
if (configuration) {
|
|
2817
|
+
baseOptions = configuration.baseOptions;
|
|
2818
|
+
}
|
|
2819
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2820
|
+
const localVarHeaderParameter = {};
|
|
2821
|
+
const localVarQueryParameter = {};
|
|
2822
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2823
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2824
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2825
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2826
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdate, localVarRequestOptions, configuration);
|
|
2827
|
+
return {
|
|
2828
|
+
url: toPathString(localVarUrlObj),
|
|
2829
|
+
options: localVarRequestOptions
|
|
2830
|
+
};
|
|
2831
|
+
},
|
|
2271
2832
|
/**
|
|
2272
2833
|
*
|
|
2273
2834
|
* @summary Emails Create
|
|
@@ -2382,16 +2943,40 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2382
2943
|
},
|
|
2383
2944
|
/**
|
|
2384
2945
|
*
|
|
2385
|
-
* @summary
|
|
2946
|
+
* @summary Managed_phone_numbers List
|
|
2947
|
+
* @param {*} [options] Override http request option.
|
|
2948
|
+
* @throws {RequiredError}
|
|
2949
|
+
*/
|
|
2950
|
+
managedPhoneNumbersList: async (options = {}) => {
|
|
2951
|
+
const localVarPath = `/managed_phone_numbers`;
|
|
2952
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2953
|
+
let baseOptions;
|
|
2954
|
+
if (configuration) {
|
|
2955
|
+
baseOptions = configuration.baseOptions;
|
|
2956
|
+
}
|
|
2957
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2958
|
+
const localVarHeaderParameter = {};
|
|
2959
|
+
const localVarQueryParameter = {};
|
|
2960
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2961
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2962
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2963
|
+
return {
|
|
2964
|
+
url: toPathString(localVarUrlObj),
|
|
2965
|
+
options: localVarRequestOptions
|
|
2966
|
+
};
|
|
2967
|
+
},
|
|
2968
|
+
/**
|
|
2969
|
+
*
|
|
2970
|
+
* @summary Phone_numbers Create
|
|
2386
2971
|
* @param {string} contactId
|
|
2387
|
-
* @param {
|
|
2972
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2388
2973
|
* @param {*} [options] Override http request option.
|
|
2389
2974
|
* @throws {RequiredError}
|
|
2390
2975
|
*/
|
|
2391
|
-
|
|
2392
|
-
assertParamExists("
|
|
2393
|
-
assertParamExists("
|
|
2394
|
-
const localVarPath = `/contacts/{contactId}/
|
|
2976
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
2977
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
2978
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
2979
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
2395
2980
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2396
2981
|
let baseOptions;
|
|
2397
2982
|
if (configuration) {
|
|
@@ -2404,7 +2989,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2404
2989
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2405
2990
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2406
2991
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2407
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2992
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
2408
2993
|
return {
|
|
2409
2994
|
url: toPathString(localVarUrlObj),
|
|
2410
2995
|
options: localVarRequestOptions
|
|
@@ -2412,14 +2997,14 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2412
2997
|
},
|
|
2413
2998
|
/**
|
|
2414
2999
|
*
|
|
2415
|
-
* @summary
|
|
2416
|
-
* @param {string}
|
|
3000
|
+
* @summary Phone_numbers Delete
|
|
3001
|
+
* @param {string} phoneNumberId
|
|
2417
3002
|
* @param {*} [options] Override http request option.
|
|
2418
3003
|
* @throws {RequiredError}
|
|
2419
3004
|
*/
|
|
2420
|
-
|
|
2421
|
-
assertParamExists("
|
|
2422
|
-
const localVarPath = `/
|
|
3005
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
3006
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
3007
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
2423
3008
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2424
3009
|
let baseOptions;
|
|
2425
3010
|
if (configuration) {
|
|
@@ -2498,6 +3083,18 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2498
3083
|
var UnboundApiFp = function(configuration) {
|
|
2499
3084
|
const localVarAxiosParamCreator = UnboundApiAxiosParamCreator(configuration);
|
|
2500
3085
|
return {
|
|
3086
|
+
/**
|
|
3087
|
+
*
|
|
3088
|
+
* @summary Accounts List
|
|
3089
|
+
* @param {*} [options] Override http request option.
|
|
3090
|
+
* @throws {RequiredError}
|
|
3091
|
+
*/
|
|
3092
|
+
async accountsList(options) {
|
|
3093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
3094
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3095
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.accountsList"]?.[localVarOperationServerIndex]?.url;
|
|
3096
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3097
|
+
},
|
|
2501
3098
|
/**
|
|
2502
3099
|
*
|
|
2503
3100
|
* @summary Addresses Create
|
|
@@ -2596,7 +3193,7 @@ var UnboundApiFp = function(configuration) {
|
|
|
2596
3193
|
/**
|
|
2597
3194
|
*
|
|
2598
3195
|
* @summary Contacts List
|
|
2599
|
-
* @param {string} [searchString]
|
|
3196
|
+
* @param {string | null} [searchString]
|
|
2600
3197
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2601
3198
|
* @param {number} [limit]
|
|
2602
3199
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -2655,6 +3252,59 @@ var UnboundApiFp = function(configuration) {
|
|
|
2655
3252
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsUpdateListing"]?.[localVarOperationServerIndex]?.url;
|
|
2656
3253
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2657
3254
|
},
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @summary Conversations Create
|
|
3258
|
+
* @param {ConversationCreate} conversationCreate
|
|
3259
|
+
* @param {*} [options] Override http request option.
|
|
3260
|
+
* @throws {RequiredError}
|
|
3261
|
+
*/
|
|
3262
|
+
async conversationsCreate(conversationCreate, options) {
|
|
3263
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
|
|
3264
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3265
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
3266
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3267
|
+
},
|
|
3268
|
+
/**
|
|
3269
|
+
*
|
|
3270
|
+
* @summary Conversations Get
|
|
3271
|
+
* @param {string} conversationId
|
|
3272
|
+
* @param {*} [options] Override http request option.
|
|
3273
|
+
* @throws {RequiredError}
|
|
3274
|
+
*/
|
|
3275
|
+
async conversationsGet(conversationId, options) {
|
|
3276
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
3277
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3278
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3279
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3280
|
+
},
|
|
3281
|
+
/**
|
|
3282
|
+
* List all conversations, optionally filtered by contact_id
|
|
3283
|
+
* @summary Conversations List
|
|
3284
|
+
* @param {string} [contactId]
|
|
3285
|
+
* @param {*} [options] Override http request option.
|
|
3286
|
+
* @throws {RequiredError}
|
|
3287
|
+
*/
|
|
3288
|
+
async conversationsList(contactId, options) {
|
|
3289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
3290
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3291
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
|
|
3292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3293
|
+
},
|
|
3294
|
+
/**
|
|
3295
|
+
*
|
|
3296
|
+
* @summary Conversations Update
|
|
3297
|
+
* @param {string} conversationId
|
|
3298
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
3299
|
+
* @param {*} [options] Override http request option.
|
|
3300
|
+
* @throws {RequiredError}
|
|
3301
|
+
*/
|
|
3302
|
+
async conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
|
|
3304
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3305
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsUpdate"]?.[localVarOperationServerIndex]?.url;
|
|
3306
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3307
|
+
},
|
|
2658
3308
|
/**
|
|
2659
3309
|
*
|
|
2660
3310
|
* @summary Emails Create
|
|
@@ -2710,29 +3360,41 @@ var UnboundApiFp = function(configuration) {
|
|
|
2710
3360
|
},
|
|
2711
3361
|
/**
|
|
2712
3362
|
*
|
|
2713
|
-
* @summary
|
|
3363
|
+
* @summary Managed_phone_numbers List
|
|
3364
|
+
* @param {*} [options] Override http request option.
|
|
3365
|
+
* @throws {RequiredError}
|
|
3366
|
+
*/
|
|
3367
|
+
async managedPhoneNumbersList(options) {
|
|
3368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
3369
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3370
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.managedPhoneNumbersList"]?.[localVarOperationServerIndex]?.url;
|
|
3371
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3372
|
+
},
|
|
3373
|
+
/**
|
|
3374
|
+
*
|
|
3375
|
+
* @summary Phone_numbers Create
|
|
2714
3376
|
* @param {string} contactId
|
|
2715
|
-
* @param {
|
|
3377
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2716
3378
|
* @param {*} [options] Override http request option.
|
|
2717
3379
|
* @throws {RequiredError}
|
|
2718
3380
|
*/
|
|
2719
|
-
async
|
|
2720
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3381
|
+
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
2721
3383
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2722
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.
|
|
3384
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.phoneNumbersCreate"]?.[localVarOperationServerIndex]?.url;
|
|
2723
3385
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2724
3386
|
},
|
|
2725
3387
|
/**
|
|
2726
3388
|
*
|
|
2727
|
-
* @summary
|
|
2728
|
-
* @param {string}
|
|
3389
|
+
* @summary Phone_numbers Delete
|
|
3390
|
+
* @param {string} phoneNumberId
|
|
2729
3391
|
* @param {*} [options] Override http request option.
|
|
2730
3392
|
* @throws {RequiredError}
|
|
2731
3393
|
*/
|
|
2732
|
-
async
|
|
2733
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3394
|
+
async phoneNumbersDelete(phoneNumberId, options) {
|
|
3395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
2734
3396
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2735
|
-
const localVarOperationServerBasePath = operationServerMap["UnboundApi.
|
|
3397
|
+
const localVarOperationServerBasePath = operationServerMap["UnboundApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
|
|
2736
3398
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2737
3399
|
},
|
|
2738
3400
|
/**
|
|
@@ -2766,6 +3428,15 @@ var UnboundApiFp = function(configuration) {
|
|
|
2766
3428
|
var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
2767
3429
|
const localVarFp = UnboundApiFp(configuration);
|
|
2768
3430
|
return {
|
|
3431
|
+
/**
|
|
3432
|
+
*
|
|
3433
|
+
* @summary Accounts List
|
|
3434
|
+
* @param {*} [options] Override http request option.
|
|
3435
|
+
* @throws {RequiredError}
|
|
3436
|
+
*/
|
|
3437
|
+
accountsList(options) {
|
|
3438
|
+
return localVarFp.accountsList(options).then((request) => request(axios, basePath));
|
|
3439
|
+
},
|
|
2769
3440
|
/**
|
|
2770
3441
|
*
|
|
2771
3442
|
* @summary Addresses Create
|
|
@@ -2843,7 +3514,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2843
3514
|
/**
|
|
2844
3515
|
*
|
|
2845
3516
|
* @summary Contacts List
|
|
2846
|
-
* @param {string} [searchString]
|
|
3517
|
+
* @param {string | null} [searchString]
|
|
2847
3518
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
2848
3519
|
* @param {number} [limit]
|
|
2849
3520
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -2890,6 +3561,47 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2890
3561
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2891
3562
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
2892
3563
|
},
|
|
3564
|
+
/**
|
|
3565
|
+
*
|
|
3566
|
+
* @summary Conversations Create
|
|
3567
|
+
* @param {ConversationCreate} conversationCreate
|
|
3568
|
+
* @param {*} [options] Override http request option.
|
|
3569
|
+
* @throws {RequiredError}
|
|
3570
|
+
*/
|
|
3571
|
+
conversationsCreate(conversationCreate, options) {
|
|
3572
|
+
return localVarFp.conversationsCreate(conversationCreate, options).then((request) => request(axios, basePath));
|
|
3573
|
+
},
|
|
3574
|
+
/**
|
|
3575
|
+
*
|
|
3576
|
+
* @summary Conversations Get
|
|
3577
|
+
* @param {string} conversationId
|
|
3578
|
+
* @param {*} [options] Override http request option.
|
|
3579
|
+
* @throws {RequiredError}
|
|
3580
|
+
*/
|
|
3581
|
+
conversationsGet(conversationId, options) {
|
|
3582
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
3583
|
+
},
|
|
3584
|
+
/**
|
|
3585
|
+
* List all conversations, optionally filtered by contact_id
|
|
3586
|
+
* @summary Conversations List
|
|
3587
|
+
* @param {string} [contactId]
|
|
3588
|
+
* @param {*} [options] Override http request option.
|
|
3589
|
+
* @throws {RequiredError}
|
|
3590
|
+
*/
|
|
3591
|
+
conversationsList(contactId, options) {
|
|
3592
|
+
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
3593
|
+
},
|
|
3594
|
+
/**
|
|
3595
|
+
*
|
|
3596
|
+
* @summary Conversations Update
|
|
3597
|
+
* @param {string} conversationId
|
|
3598
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
3599
|
+
* @param {*} [options] Override http request option.
|
|
3600
|
+
* @throws {RequiredError}
|
|
3601
|
+
*/
|
|
3602
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3603
|
+
return localVarFp.conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(axios, basePath));
|
|
3604
|
+
},
|
|
2893
3605
|
/**
|
|
2894
3606
|
*
|
|
2895
3607
|
* @summary Emails Create
|
|
@@ -2933,24 +3645,33 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2933
3645
|
},
|
|
2934
3646
|
/**
|
|
2935
3647
|
*
|
|
2936
|
-
* @summary
|
|
3648
|
+
* @summary Managed_phone_numbers List
|
|
3649
|
+
* @param {*} [options] Override http request option.
|
|
3650
|
+
* @throws {RequiredError}
|
|
3651
|
+
*/
|
|
3652
|
+
managedPhoneNumbersList(options) {
|
|
3653
|
+
return localVarFp.managedPhoneNumbersList(options).then((request) => request(axios, basePath));
|
|
3654
|
+
},
|
|
3655
|
+
/**
|
|
3656
|
+
*
|
|
3657
|
+
* @summary Phone_numbers Create
|
|
2937
3658
|
* @param {string} contactId
|
|
2938
|
-
* @param {
|
|
3659
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2939
3660
|
* @param {*} [options] Override http request option.
|
|
2940
3661
|
* @throws {RequiredError}
|
|
2941
3662
|
*/
|
|
2942
|
-
|
|
2943
|
-
return localVarFp.
|
|
3663
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3664
|
+
return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
|
|
2944
3665
|
},
|
|
2945
3666
|
/**
|
|
2946
3667
|
*
|
|
2947
|
-
* @summary
|
|
2948
|
-
* @param {string}
|
|
3668
|
+
* @summary Phone_numbers Delete
|
|
3669
|
+
* @param {string} phoneNumberId
|
|
2949
3670
|
* @param {*} [options] Override http request option.
|
|
2950
3671
|
* @throws {RequiredError}
|
|
2951
3672
|
*/
|
|
2952
|
-
|
|
2953
|
-
return localVarFp.
|
|
3673
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
3674
|
+
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
2954
3675
|
},
|
|
2955
3676
|
/**
|
|
2956
3677
|
*
|
|
@@ -2975,6 +3696,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2975
3696
|
};
|
|
2976
3697
|
};
|
|
2977
3698
|
var UnboundApi = class extends BaseAPI {
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @summary Accounts List
|
|
3702
|
+
* @param {*} [options] Override http request option.
|
|
3703
|
+
* @throws {RequiredError}
|
|
3704
|
+
* @memberof UnboundApi
|
|
3705
|
+
*/
|
|
3706
|
+
accountsList(options) {
|
|
3707
|
+
return UnboundApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
|
|
3708
|
+
}
|
|
2978
3709
|
/**
|
|
2979
3710
|
*
|
|
2980
3711
|
* @summary Addresses Create
|
|
@@ -3059,7 +3790,7 @@ var UnboundApi = class extends BaseAPI {
|
|
|
3059
3790
|
/**
|
|
3060
3791
|
*
|
|
3061
3792
|
* @summary Contacts List
|
|
3062
|
-
* @param {string} [searchString]
|
|
3793
|
+
* @param {string | null} [searchString]
|
|
3063
3794
|
* @param {string | null} [cursor] Cursor for keyset paging
|
|
3064
3795
|
* @param {number} [limit]
|
|
3065
3796
|
* @param {PaginationDirection} [pageDir] Direction of paging
|
|
@@ -3110,6 +3841,51 @@ var UnboundApi = class extends BaseAPI {
|
|
|
3110
3841
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
3111
3842
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
3112
3843
|
}
|
|
3844
|
+
/**
|
|
3845
|
+
*
|
|
3846
|
+
* @summary Conversations Create
|
|
3847
|
+
* @param {ConversationCreate} conversationCreate
|
|
3848
|
+
* @param {*} [options] Override http request option.
|
|
3849
|
+
* @throws {RequiredError}
|
|
3850
|
+
* @memberof UnboundApi
|
|
3851
|
+
*/
|
|
3852
|
+
conversationsCreate(conversationCreate, options) {
|
|
3853
|
+
return UnboundApiFp(this.configuration).conversationsCreate(conversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
3854
|
+
}
|
|
3855
|
+
/**
|
|
3856
|
+
*
|
|
3857
|
+
* @summary Conversations Get
|
|
3858
|
+
* @param {string} conversationId
|
|
3859
|
+
* @param {*} [options] Override http request option.
|
|
3860
|
+
* @throws {RequiredError}
|
|
3861
|
+
* @memberof UnboundApi
|
|
3862
|
+
*/
|
|
3863
|
+
conversationsGet(conversationId, options) {
|
|
3864
|
+
return UnboundApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* List all conversations, optionally filtered by contact_id
|
|
3868
|
+
* @summary Conversations List
|
|
3869
|
+
* @param {string} [contactId]
|
|
3870
|
+
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @throws {RequiredError}
|
|
3872
|
+
* @memberof UnboundApi
|
|
3873
|
+
*/
|
|
3874
|
+
conversationsList(contactId, options) {
|
|
3875
|
+
return UnboundApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
3876
|
+
}
|
|
3877
|
+
/**
|
|
3878
|
+
*
|
|
3879
|
+
* @summary Conversations Update
|
|
3880
|
+
* @param {string} conversationId
|
|
3881
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
* @memberof UnboundApi
|
|
3885
|
+
*/
|
|
3886
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3887
|
+
return UnboundApiFp(this.configuration).conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3888
|
+
}
|
|
3113
3889
|
/**
|
|
3114
3890
|
*
|
|
3115
3891
|
* @summary Emails Create
|
|
@@ -3157,26 +3933,36 @@ var UnboundApi = class extends BaseAPI {
|
|
|
3157
3933
|
}
|
|
3158
3934
|
/**
|
|
3159
3935
|
*
|
|
3160
|
-
* @summary
|
|
3936
|
+
* @summary Managed_phone_numbers List
|
|
3937
|
+
* @param {*} [options] Override http request option.
|
|
3938
|
+
* @throws {RequiredError}
|
|
3939
|
+
* @memberof UnboundApi
|
|
3940
|
+
*/
|
|
3941
|
+
managedPhoneNumbersList(options) {
|
|
3942
|
+
return UnboundApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
|
|
3943
|
+
}
|
|
3944
|
+
/**
|
|
3945
|
+
*
|
|
3946
|
+
* @summary Phone_numbers Create
|
|
3161
3947
|
* @param {string} contactId
|
|
3162
|
-
* @param {
|
|
3948
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
3163
3949
|
* @param {*} [options] Override http request option.
|
|
3164
3950
|
* @throws {RequiredError}
|
|
3165
3951
|
* @memberof UnboundApi
|
|
3166
3952
|
*/
|
|
3167
|
-
|
|
3168
|
-
return UnboundApiFp(this.configuration).
|
|
3953
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3954
|
+
return UnboundApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
|
|
3169
3955
|
}
|
|
3170
3956
|
/**
|
|
3171
3957
|
*
|
|
3172
|
-
* @summary
|
|
3173
|
-
* @param {string}
|
|
3958
|
+
* @summary Phone_numbers Delete
|
|
3959
|
+
* @param {string} phoneNumberId
|
|
3174
3960
|
* @param {*} [options] Override http request option.
|
|
3175
3961
|
* @throws {RequiredError}
|
|
3176
3962
|
* @memberof UnboundApi
|
|
3177
3963
|
*/
|
|
3178
|
-
|
|
3179
|
-
return UnboundApiFp(this.configuration).
|
|
3964
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
3965
|
+
return UnboundApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
3180
3966
|
}
|
|
3181
3967
|
/**
|
|
3182
3968
|
*
|
|
@@ -3291,6 +4077,10 @@ var Configuration = class {
|
|
|
3291
4077
|
}
|
|
3292
4078
|
};
|
|
3293
4079
|
export {
|
|
4080
|
+
AccountsApi,
|
|
4081
|
+
AccountsApiAxiosParamCreator,
|
|
4082
|
+
AccountsApiFactory,
|
|
4083
|
+
AccountsApiFp,
|
|
3294
4084
|
AddressesApi,
|
|
3295
4085
|
AddressesApiAxiosParamCreator,
|
|
3296
4086
|
AddressesApiFactory,
|
|
@@ -3302,6 +4092,11 @@ export {
|
|
|
3302
4092
|
ContactsApiAxiosParamCreator,
|
|
3303
4093
|
ContactsApiFactory,
|
|
3304
4094
|
ContactsApiFp,
|
|
4095
|
+
ConversationStatus,
|
|
4096
|
+
ConversationsApi,
|
|
4097
|
+
ConversationsApiAxiosParamCreator,
|
|
4098
|
+
ConversationsApiFactory,
|
|
4099
|
+
ConversationsApiFp,
|
|
3305
4100
|
EmailsApi,
|
|
3306
4101
|
EmailsApiAxiosParamCreator,
|
|
3307
4102
|
EmailsApiFactory,
|
|
@@ -3318,16 +4113,24 @@ export {
|
|
|
3318
4113
|
ListingsApiAxiosParamCreator,
|
|
3319
4114
|
ListingsApiFactory,
|
|
3320
4115
|
ListingsApiFp,
|
|
4116
|
+
ManagedPhoneNumbersApi,
|
|
4117
|
+
ManagedPhoneNumbersApiAxiosParamCreator,
|
|
4118
|
+
ManagedPhoneNumbersApiFactory,
|
|
4119
|
+
ManagedPhoneNumbersApiFp,
|
|
3321
4120
|
PaginationDirection,
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
4121
|
+
PhoneNumbersApi,
|
|
4122
|
+
PhoneNumbersApiAxiosParamCreator,
|
|
4123
|
+
PhoneNumbersApiFactory,
|
|
4124
|
+
PhoneNumbersApiFp,
|
|
3326
4125
|
ReservationsApi,
|
|
3327
4126
|
ReservationsApiAxiosParamCreator,
|
|
3328
4127
|
ReservationsApiFactory,
|
|
3329
4128
|
ReservationsApiFp,
|
|
3330
4129
|
SortOrder,
|
|
4130
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum,
|
|
4131
|
+
SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum,
|
|
4132
|
+
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum,
|
|
4133
|
+
SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum,
|
|
3331
4134
|
UnboundApi,
|
|
3332
4135
|
UnboundApiAxiosParamCreator,
|
|
3333
4136
|
UnboundApiFactory,
|