@ember-home/unbound-ts-client 0.0.13 → 0.0.15

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
@@ -1300,6 +1300,84 @@ var HostawayApi = class extends BaseAPI {
1300
1300
  return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
1301
1301
  }
1302
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
+ };
1303
1381
  var PhonesApiAxiosParamCreator = function(configuration) {
1304
1382
  return {
1305
1383
  /**
@@ -1807,6 +1885,34 @@ var UnboundApiAxiosParamCreator = function(configuration) {
1807
1885
  options: localVarRequestOptions
1808
1886
  };
1809
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
+ },
1810
1916
  /**
1811
1917
  *
1812
1918
  * @summary Phones Create
@@ -2060,6 +2166,19 @@ var UnboundApiFp = function(configuration) {
2060
2166
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.emailsDelete"]?.[localVarOperationServerIndex]?.url;
2061
2167
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2062
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
+ },
2063
2182
  /**
2064
2183
  *
2065
2184
  * @summary Phones Create
@@ -2223,6 +2342,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
2223
2342
  emailsDelete(emailId, options) {
2224
2343
  return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
2225
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
+ },
2226
2355
  /**
2227
2356
  *
2228
2357
  * @summary Phones Create
@@ -2382,6 +2511,17 @@ var UnboundApi = class extends BaseAPI {
2382
2511
  emailsDelete(emailId, options) {
2383
2512
  return UnboundApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
2384
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
+ }
2385
2525
  /**
2386
2526
  *
2387
2527
  * @summary Phones Create
@@ -2537,6 +2677,10 @@ export {
2537
2677
  HostawayApiAxiosParamCreator,
2538
2678
  HostawayApiFactory,
2539
2679
  HostawayApiFp,
2680
+ ListingsApi,
2681
+ ListingsApiAxiosParamCreator,
2682
+ ListingsApiFactory,
2683
+ ListingsApiFp,
2540
2684
  PhonesApi,
2541
2685
  PhonesApiAxiosParamCreator,
2542
2686
  PhonesApiFactory,