@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.mjs CHANGED
@@ -75,10 +75,11 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
75
75
  };
76
76
 
77
77
  // src/api.ts
78
- var ContactType = {
79
- Guest: "GUEST",
80
- Owner: "OWNER",
81
- Lead: "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<ContactType>} [contactTypes]
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<ContactType>} [contactTypes]
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<ContactType>} [contactTypes]
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<ContactType>} [contactTypes]
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 = configuration?.serverIndex ?? 0;
1348
+ const localVarOperationServerBasePath = operationServerMap["ListingsApi.listingsList"]?.[localVarOperationServerIndex]?.url;
1349
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, 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
  /**
@@ -1445,7 +1524,7 @@ var PhonesApi = class extends BaseAPI {
1445
1524
  var ReservationsApiAxiosParamCreator = function(configuration) {
1446
1525
  return {
1447
1526
  /**
1448
- * List all contacts
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
- * List all contacts
1560
+ *
1482
1561
  * @summary Reservations List
1483
1562
  * @param {string} [contactId]
1484
1563
  * @param {*} [options] Override http request option.
@@ -1496,7 +1575,7 @@ var ReservationsApiFactory = function(configuration, basePath, axios) {
1496
1575
  const localVarFp = ReservationsApiFp(configuration);
1497
1576
  return {
1498
1577
  /**
1499
- * List all contacts
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
- * List all contacts
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<ContactType>} [contactTypes]
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
- * List all contacts
1973
+ *
1867
1974
  * @summary Reservations List
1868
1975
  * @param {string} [contactId]
1869
1976
  * @param {*} [options] Override http request option.
@@ -2007,7 +2114,7 @@ var UnboundApiFp = function(configuration) {
2007
2114
  /**
2008
2115
  *
2009
2116
  * @summary Contacts List
2010
- * @param {Array<ContactType>} [contactTypes]
2117
+ * @param {Array<ContactTypeFilter>} [contactTypes]
2011
2118
  * @param {string} [searchString]
2012
2119
  * @param {*} [options] Override http request option.
2013
2120
  * @throws {RequiredError}
@@ -2059,6 +2166,19 @@ var UnboundApiFp = function(configuration) {
2059
2166
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.emailsDelete"]?.[localVarOperationServerIndex]?.url;
2060
2167
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2061
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 = configuration?.serverIndex ?? 0;
2179
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.listingsList"]?.[localVarOperationServerIndex]?.url;
2180
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2181
+ },
2062
2182
  /**
2063
2183
  *
2064
2184
  * @summary Phones Create
@@ -2087,7 +2207,7 @@ var UnboundApiFp = function(configuration) {
2087
2207
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2088
2208
  },
2089
2209
  /**
2090
- * List all contacts
2210
+ *
2091
2211
  * @summary Reservations List
2092
2212
  * @param {string} [contactId]
2093
2213
  * @param {*} [options] Override http request option.
@@ -2182,7 +2302,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
2182
2302
  /**
2183
2303
  *
2184
2304
  * @summary Contacts List
2185
- * @param {Array<ContactType>} [contactTypes]
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
- * List all contacts
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<ContactType>} [contactTypes]
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
- * List all contacts
2549
+ *
2409
2550
  * @summary Reservations List
2410
2551
  * @param {string} [contactId]
2411
2552
  * @param {*} [options] Override http request option.
@@ -2522,7 +2663,7 @@ export {
2522
2663
  AddressesApiFactory,
2523
2664
  AddressesApiFp,
2524
2665
  Configuration,
2525
- ContactType,
2666
+ ContactTypeFilter,
2526
2667
  ContactsApi,
2527
2668
  ContactsApiAxiosParamCreator,
2528
2669
  ContactsApiFactory,
@@ -2536,6 +2677,10 @@ export {
2536
2677
  HostawayApiAxiosParamCreator,
2537
2678
  HostawayApiFactory,
2538
2679
  HostawayApiFp,
2680
+ ListingsApi,
2681
+ ListingsApiAxiosParamCreator,
2682
+ ListingsApiFactory,
2683
+ ListingsApiFp,
2539
2684
  PhonesApi,
2540
2685
  PhonesApiAxiosParamCreator,
2541
2686
  PhonesApiFactory,