@ember-home/unbound-ts-client 0.0.12 → 0.0.14
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 +180 -37
- package/dist/index.d.ts +180 -37
- package/dist/index.js +201 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +166 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,10 +75,11 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/api.ts
|
|
78
|
-
var
|
|
79
|
-
Guest: "
|
|
80
|
-
Owner: "
|
|
81
|
-
Lead: "
|
|
78
|
+
var ContactTypeFilter = {
|
|
79
|
+
Guest: "guest",
|
|
80
|
+
Owner: "owner",
|
|
81
|
+
Lead: "lead",
|
|
82
|
+
Basic: "basic"
|
|
82
83
|
};
|
|
83
84
|
var DataSource = {
|
|
84
85
|
Hostaway: "HOSTAWAY",
|
|
@@ -466,7 +467,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
466
467
|
/**
|
|
467
468
|
*
|
|
468
469
|
* @summary Contacts List
|
|
469
|
-
* @param {Array<
|
|
470
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
470
471
|
* @param {string} [searchString]
|
|
471
472
|
* @param {*} [options] Override http request option.
|
|
472
473
|
* @throws {RequiredError}
|
|
@@ -725,7 +726,7 @@ var ContactsApiFp = function(configuration) {
|
|
|
725
726
|
/**
|
|
726
727
|
*
|
|
727
728
|
* @summary Contacts List
|
|
728
|
-
* @param {Array<
|
|
729
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
729
730
|
* @param {string} [searchString]
|
|
730
731
|
* @param {*} [options] Override http request option.
|
|
731
732
|
* @throws {RequiredError}
|
|
@@ -874,7 +875,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
874
875
|
/**
|
|
875
876
|
*
|
|
876
877
|
* @summary Contacts List
|
|
877
|
-
* @param {Array<
|
|
878
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
878
879
|
* @param {string} [searchString]
|
|
879
880
|
* @param {*} [options] Override http request option.
|
|
880
881
|
* @throws {RequiredError}
|
|
@@ -1009,7 +1010,7 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1009
1010
|
/**
|
|
1010
1011
|
*
|
|
1011
1012
|
* @summary Contacts List
|
|
1012
|
-
* @param {Array<
|
|
1013
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
1013
1014
|
* @param {string} [searchString]
|
|
1014
1015
|
* @param {*} [options] Override http request option.
|
|
1015
1016
|
* @throws {RequiredError}
|
|
@@ -1299,6 +1300,84 @@ var HostawayApi = class extends BaseAPI {
|
|
|
1299
1300
|
return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
1300
1301
|
}
|
|
1301
1302
|
};
|
|
1303
|
+
var ListingsApiAxiosParamCreator = function(configuration) {
|
|
1304
|
+
return {
|
|
1305
|
+
/**
|
|
1306
|
+
* List all listings
|
|
1307
|
+
* @summary Listings List
|
|
1308
|
+
* @param {string} [contactId]
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
listingsList: async (contactId, options = {}) => {
|
|
1313
|
+
const localVarPath = `/listings`;
|
|
1314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1315
|
+
let baseOptions;
|
|
1316
|
+
if (configuration) {
|
|
1317
|
+
baseOptions = configuration.baseOptions;
|
|
1318
|
+
}
|
|
1319
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1320
|
+
const localVarHeaderParameter = {};
|
|
1321
|
+
const localVarQueryParameter = {};
|
|
1322
|
+
if (contactId !== void 0) {
|
|
1323
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
1324
|
+
}
|
|
1325
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1326
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1327
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1328
|
+
return {
|
|
1329
|
+
url: toPathString(localVarUrlObj),
|
|
1330
|
+
options: localVarRequestOptions
|
|
1331
|
+
};
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
var ListingsApiFp = function(configuration) {
|
|
1336
|
+
const localVarAxiosParamCreator = ListingsApiAxiosParamCreator(configuration);
|
|
1337
|
+
return {
|
|
1338
|
+
/**
|
|
1339
|
+
* List all listings
|
|
1340
|
+
* @summary Listings List
|
|
1341
|
+
* @param {string} [contactId]
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
async listingsList(contactId, options) {
|
|
1346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
1347
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
|
|
1348
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["ListingsApi.listingsList"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
|
|
1349
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
var ListingsApiFactory = function(configuration, basePath, axios) {
|
|
1354
|
+
const localVarFp = ListingsApiFp(configuration);
|
|
1355
|
+
return {
|
|
1356
|
+
/**
|
|
1357
|
+
* List all listings
|
|
1358
|
+
* @summary Listings List
|
|
1359
|
+
* @param {string} [contactId]
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
*/
|
|
1363
|
+
listingsList(contactId, options) {
|
|
1364
|
+
return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
|
|
1365
|
+
}
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
var ListingsApi = class extends BaseAPI {
|
|
1369
|
+
/**
|
|
1370
|
+
* List all listings
|
|
1371
|
+
* @summary Listings List
|
|
1372
|
+
* @param {string} [contactId]
|
|
1373
|
+
* @param {*} [options] Override http request option.
|
|
1374
|
+
* @throws {RequiredError}
|
|
1375
|
+
* @memberof ListingsApi
|
|
1376
|
+
*/
|
|
1377
|
+
listingsList(contactId, options) {
|
|
1378
|
+
return ListingsApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
1302
1381
|
var PhonesApiAxiosParamCreator = function(configuration) {
|
|
1303
1382
|
return {
|
|
1304
1383
|
/**
|
|
@@ -1372,8 +1451,8 @@ var PhonesApiFp = function(configuration) {
|
|
|
1372
1451
|
*/
|
|
1373
1452
|
async phonesCreate(contactId, phoneCreate, options) {
|
|
1374
1453
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
1375
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1376
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1454
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
|
|
1455
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["PhonesApi.phonesCreate"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
|
|
1377
1456
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1378
1457
|
},
|
|
1379
1458
|
/**
|
|
@@ -1385,8 +1464,8 @@ var PhonesApiFp = function(configuration) {
|
|
|
1385
1464
|
*/
|
|
1386
1465
|
async phonesDelete(phoneId, options) {
|
|
1387
1466
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
1388
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1389
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1467
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
|
|
1468
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["PhonesApi.phonesDelete"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
|
|
1390
1469
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1391
1470
|
}
|
|
1392
1471
|
};
|
|
@@ -1445,7 +1524,7 @@ var PhonesApi = class extends BaseAPI {
|
|
|
1445
1524
|
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
1446
1525
|
return {
|
|
1447
1526
|
/**
|
|
1448
|
-
*
|
|
1527
|
+
*
|
|
1449
1528
|
* @summary Reservations List
|
|
1450
1529
|
* @param {string} [contactId]
|
|
1451
1530
|
* @param {*} [options] Override http request option.
|
|
@@ -1478,7 +1557,7 @@ var ReservationsApiFp = function(configuration) {
|
|
|
1478
1557
|
const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration);
|
|
1479
1558
|
return {
|
|
1480
1559
|
/**
|
|
1481
|
-
*
|
|
1560
|
+
*
|
|
1482
1561
|
* @summary Reservations List
|
|
1483
1562
|
* @param {string} [contactId]
|
|
1484
1563
|
* @param {*} [options] Override http request option.
|
|
@@ -1486,8 +1565,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
1486
1565
|
*/
|
|
1487
1566
|
async reservationsList(contactId, options) {
|
|
1488
1567
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
1489
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1490
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1568
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
|
|
1569
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["ReservationsApi.reservationsList"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
|
|
1491
1570
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1492
1571
|
}
|
|
1493
1572
|
};
|
|
@@ -1496,7 +1575,7 @@ var ReservationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1496
1575
|
const localVarFp = ReservationsApiFp(configuration);
|
|
1497
1576
|
return {
|
|
1498
1577
|
/**
|
|
1499
|
-
*
|
|
1578
|
+
*
|
|
1500
1579
|
* @summary Reservations List
|
|
1501
1580
|
* @param {string} [contactId]
|
|
1502
1581
|
* @param {*} [options] Override http request option.
|
|
@@ -1509,7 +1588,7 @@ var ReservationsApiFactory = function(configuration, basePath, axios) {
|
|
|
1509
1588
|
};
|
|
1510
1589
|
var ReservationsApi = class extends BaseAPI {
|
|
1511
1590
|
/**
|
|
1512
|
-
*
|
|
1591
|
+
*
|
|
1513
1592
|
* @summary Reservations List
|
|
1514
1593
|
* @param {string} [contactId]
|
|
1515
1594
|
* @param {*} [options] Override http request option.
|
|
@@ -1691,7 +1770,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1691
1770
|
/**
|
|
1692
1771
|
*
|
|
1693
1772
|
* @summary Contacts List
|
|
1694
|
-
* @param {Array<
|
|
1773
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
1695
1774
|
* @param {string} [searchString]
|
|
1696
1775
|
* @param {*} [options] Override http request option.
|
|
1697
1776
|
* @throws {RequiredError}
|
|
@@ -1806,6 +1885,34 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1806
1885
|
options: localVarRequestOptions
|
|
1807
1886
|
};
|
|
1808
1887
|
},
|
|
1888
|
+
/**
|
|
1889
|
+
* List all listings
|
|
1890
|
+
* @summary Listings List
|
|
1891
|
+
* @param {string} [contactId]
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
listingsList: async (contactId, options = {}) => {
|
|
1896
|
+
const localVarPath = `/listings`;
|
|
1897
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1898
|
+
let baseOptions;
|
|
1899
|
+
if (configuration) {
|
|
1900
|
+
baseOptions = configuration.baseOptions;
|
|
1901
|
+
}
|
|
1902
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1903
|
+
const localVarHeaderParameter = {};
|
|
1904
|
+
const localVarQueryParameter = {};
|
|
1905
|
+
if (contactId !== void 0) {
|
|
1906
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
1907
|
+
}
|
|
1908
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1909
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1910
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1911
|
+
return {
|
|
1912
|
+
url: toPathString(localVarUrlObj),
|
|
1913
|
+
options: localVarRequestOptions
|
|
1914
|
+
};
|
|
1915
|
+
},
|
|
1809
1916
|
/**
|
|
1810
1917
|
*
|
|
1811
1918
|
* @summary Phones Create
|
|
@@ -1863,7 +1970,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1863
1970
|
};
|
|
1864
1971
|
},
|
|
1865
1972
|
/**
|
|
1866
|
-
*
|
|
1973
|
+
*
|
|
1867
1974
|
* @summary Reservations List
|
|
1868
1975
|
* @param {string} [contactId]
|
|
1869
1976
|
* @param {*} [options] Override http request option.
|
|
@@ -1934,8 +2041,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
1934
2041
|
*/
|
|
1935
2042
|
async addressesCreate(contactId, addressCreate, options) {
|
|
1936
2043
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
1937
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1938
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2044
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
2045
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["UnboundApi.addressesCreate"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
1939
2046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1940
2047
|
},
|
|
1941
2048
|
/**
|
|
@@ -1947,8 +2054,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
1947
2054
|
*/
|
|
1948
2055
|
async addressesDelete(addressId, options) {
|
|
1949
2056
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
1950
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1951
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2057
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
2058
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["UnboundApi.addressesDelete"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
1952
2059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1953
2060
|
},
|
|
1954
2061
|
/**
|
|
@@ -1961,8 +2068,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
1961
2068
|
*/
|
|
1962
2069
|
async addressesUpdate(addressId, addressUpdate, options) {
|
|
1963
2070
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
1964
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1965
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2071
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
2072
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["UnboundApi.addressesUpdate"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
1966
2073
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1967
2074
|
},
|
|
1968
2075
|
/**
|
|
@@ -1974,8 +2081,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
1974
2081
|
*/
|
|
1975
2082
|
async contactsCreate(contactCreate, options) {
|
|
1976
2083
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
1977
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1978
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2084
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
2085
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["UnboundApi.contactsCreate"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
1979
2086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1980
2087
|
},
|
|
1981
2088
|
/**
|
|
@@ -1987,8 +2094,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
1987
2094
|
*/
|
|
1988
2095
|
async contactsDelete(contactId, options) {
|
|
1989
2096
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
1990
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1991
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2097
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
2098
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["UnboundApi.contactsDelete"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
1992
2099
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1993
2100
|
},
|
|
1994
2101
|
/**
|
|
@@ -2000,22 +2107,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
2000
2107
|
*/
|
|
2001
2108
|
async contactsGet(contactId, options) {
|
|
2002
2109
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
2003
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2004
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2110
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
2111
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["UnboundApi.contactsGet"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
2005
2112
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2006
2113
|
},
|
|
2007
2114
|
/**
|
|
2008
2115
|
*
|
|
2009
2116
|
* @summary Contacts List
|
|
2010
|
-
* @param {Array<
|
|
2117
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2011
2118
|
* @param {string} [searchString]
|
|
2012
2119
|
* @param {*} [options] Override http request option.
|
|
2013
2120
|
* @throws {RequiredError}
|
|
2014
2121
|
*/
|
|
2015
2122
|
async contactsList(contactTypes, searchString, options) {
|
|
2016
2123
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(contactTypes, searchString, options);
|
|
2017
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2018
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2124
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2125
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["UnboundApi.contactsList"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
2019
2126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2020
2127
|
},
|
|
2021
2128
|
/**
|
|
@@ -2028,8 +2135,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2028
2135
|
*/
|
|
2029
2136
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
2030
2137
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
2031
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2032
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2138
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2139
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["UnboundApi.contactsUpdate"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
2033
2140
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2034
2141
|
},
|
|
2035
2142
|
/**
|
|
@@ -2042,8 +2149,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2042
2149
|
*/
|
|
2043
2150
|
async emailsCreate(contactId, emailCreate, options) {
|
|
2044
2151
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
2045
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2046
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2152
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2153
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["UnboundApi.emailsCreate"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
2047
2154
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2048
2155
|
},
|
|
2049
2156
|
/**
|
|
@@ -2055,8 +2162,21 @@ var UnboundApiFp = function(configuration) {
|
|
|
2055
2162
|
*/
|
|
2056
2163
|
async emailsDelete(emailId, options) {
|
|
2057
2164
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
2058
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2059
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2165
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2166
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["UnboundApi.emailsDelete"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
2167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2168
|
+
},
|
|
2169
|
+
/**
|
|
2170
|
+
* List all listings
|
|
2171
|
+
* @summary Listings List
|
|
2172
|
+
* @param {string} [contactId]
|
|
2173
|
+
* @param {*} [options] Override http request option.
|
|
2174
|
+
* @throws {RequiredError}
|
|
2175
|
+
*/
|
|
2176
|
+
async listingsList(contactId, options) {
|
|
2177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
2178
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
2179
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["UnboundApi.listingsList"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
2060
2180
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2061
2181
|
},
|
|
2062
2182
|
/**
|
|
@@ -2069,8 +2189,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2069
2189
|
*/
|
|
2070
2190
|
async phonesCreate(contactId, phoneCreate, options) {
|
|
2071
2191
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
2072
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2073
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2192
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
2193
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["UnboundApi.phonesCreate"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
2074
2194
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2075
2195
|
},
|
|
2076
2196
|
/**
|
|
@@ -2082,12 +2202,12 @@ var UnboundApiFp = function(configuration) {
|
|
|
2082
2202
|
*/
|
|
2083
2203
|
async phonesDelete(phoneId, options) {
|
|
2084
2204
|
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
2085
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2086
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2205
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2206
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["UnboundApi.phonesDelete"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2087
2207
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2088
2208
|
},
|
|
2089
2209
|
/**
|
|
2090
|
-
*
|
|
2210
|
+
*
|
|
2091
2211
|
* @summary Reservations List
|
|
2092
2212
|
* @param {string} [contactId]
|
|
2093
2213
|
* @param {*} [options] Override http request option.
|
|
@@ -2095,8 +2215,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2095
2215
|
*/
|
|
2096
2216
|
async reservationsList(contactId, options) {
|
|
2097
2217
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
2098
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2099
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2218
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
|
|
2219
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["UnboundApi.reservationsList"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
|
|
2100
2220
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2101
2221
|
},
|
|
2102
2222
|
/**
|
|
@@ -2108,8 +2228,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2108
2228
|
*/
|
|
2109
2229
|
async webhook(hostawayWebhook, options) {
|
|
2110
2230
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
2111
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2112
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2231
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
|
|
2232
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["UnboundApi.webhook"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
|
|
2113
2233
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2114
2234
|
}
|
|
2115
2235
|
};
|
|
@@ -2182,7 +2302,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2182
2302
|
/**
|
|
2183
2303
|
*
|
|
2184
2304
|
* @summary Contacts List
|
|
2185
|
-
* @param {Array<
|
|
2305
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2186
2306
|
* @param {string} [searchString]
|
|
2187
2307
|
* @param {*} [options] Override http request option.
|
|
2188
2308
|
* @throws {RequiredError}
|
|
@@ -2222,6 +2342,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2222
2342
|
emailsDelete(emailId, options) {
|
|
2223
2343
|
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
2224
2344
|
},
|
|
2345
|
+
/**
|
|
2346
|
+
* List all listings
|
|
2347
|
+
* @summary Listings List
|
|
2348
|
+
* @param {string} [contactId]
|
|
2349
|
+
* @param {*} [options] Override http request option.
|
|
2350
|
+
* @throws {RequiredError}
|
|
2351
|
+
*/
|
|
2352
|
+
listingsList(contactId, options) {
|
|
2353
|
+
return localVarFp.listingsList(contactId, options).then((request) => request(axios, basePath));
|
|
2354
|
+
},
|
|
2225
2355
|
/**
|
|
2226
2356
|
*
|
|
2227
2357
|
* @summary Phones Create
|
|
@@ -2244,7 +2374,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2244
2374
|
return localVarFp.phonesDelete(phoneId, options).then((request) => request(axios, basePath));
|
|
2245
2375
|
},
|
|
2246
2376
|
/**
|
|
2247
|
-
*
|
|
2377
|
+
*
|
|
2248
2378
|
* @summary Reservations List
|
|
2249
2379
|
* @param {string} [contactId]
|
|
2250
2380
|
* @param {*} [options] Override http request option.
|
|
@@ -2337,7 +2467,7 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2337
2467
|
/**
|
|
2338
2468
|
*
|
|
2339
2469
|
* @summary Contacts List
|
|
2340
|
-
* @param {Array<
|
|
2470
|
+
* @param {Array<ContactTypeFilter>} [contactTypes]
|
|
2341
2471
|
* @param {string} [searchString]
|
|
2342
2472
|
* @param {*} [options] Override http request option.
|
|
2343
2473
|
* @throws {RequiredError}
|
|
@@ -2381,6 +2511,17 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2381
2511
|
emailsDelete(emailId, options) {
|
|
2382
2512
|
return UnboundApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
2383
2513
|
}
|
|
2514
|
+
/**
|
|
2515
|
+
* List all listings
|
|
2516
|
+
* @summary Listings List
|
|
2517
|
+
* @param {string} [contactId]
|
|
2518
|
+
* @param {*} [options] Override http request option.
|
|
2519
|
+
* @throws {RequiredError}
|
|
2520
|
+
* @memberof UnboundApi
|
|
2521
|
+
*/
|
|
2522
|
+
listingsList(contactId, options) {
|
|
2523
|
+
return UnboundApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
2524
|
+
}
|
|
2384
2525
|
/**
|
|
2385
2526
|
*
|
|
2386
2527
|
* @summary Phones Create
|
|
@@ -2405,7 +2546,7 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2405
2546
|
return UnboundApiFp(this.configuration).phonesDelete(phoneId, options).then((request) => request(this.axios, this.basePath));
|
|
2406
2547
|
}
|
|
2407
2548
|
/**
|
|
2408
|
-
*
|
|
2549
|
+
*
|
|
2409
2550
|
* @summary Reservations List
|
|
2410
2551
|
* @param {string} [contactId]
|
|
2411
2552
|
* @param {*} [options] Override http request option.
|
|
@@ -2496,7 +2637,7 @@ var Configuration = class {
|
|
|
2496
2637
|
this.baseOptions = {
|
|
2497
2638
|
...param.baseOptions,
|
|
2498
2639
|
headers: {
|
|
2499
|
-
..._optionalChain([param, 'access',
|
|
2640
|
+
..._optionalChain([param, 'access', _150 => _150.baseOptions, 'optionalAccess', _151 => _151.headers])
|
|
2500
2641
|
}
|
|
2501
2642
|
};
|
|
2502
2643
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -2548,5 +2689,9 @@ var Configuration = class {
|
|
|
2548
2689
|
|
|
2549
2690
|
|
|
2550
2691
|
|
|
2551
|
-
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
|
|
2696
|
+
exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactTypeFilter = ContactTypeFilter; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.DataSource = DataSource; 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.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.PhonesApi = PhonesApi; exports.PhonesApiAxiosParamCreator = PhonesApiAxiosParamCreator; exports.PhonesApiFactory = PhonesApiFactory; exports.PhonesApiFp = PhonesApiFp; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
|
|
2552
2697
|
//# sourceMappingURL=index.js.map
|