@ember-home/unbound-ts-client 0.0.84 → 0.0.85

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
@@ -231,6 +231,15 @@ var TwilioOutboundSenderTypeDataApiDirectionEnum = {
231
231
  var TwilioProviderMessageApiMessageTypeEnum = {
232
232
  Text: "TEXT"
233
233
  };
234
+ var UserDeviceOs = {
235
+ Android: "ANDROID",
236
+ Ios: "IOS"
237
+ };
238
+ var UserDeviceType = {
239
+ Mobile: "MOBILE",
240
+ Tablet: "TABLET",
241
+ Desktop: "DESKTOP"
242
+ };
234
243
  var AccountsApiAxiosParamCreator = function(configuration) {
235
244
  return {
236
245
  /**
@@ -2231,12 +2240,12 @@ var HostawayApiAxiosParamCreator = function(configuration) {
2231
2240
  /**
2232
2241
  *
2233
2242
  * @summary Unifiedwebhook
2234
- * @param {HostawayWebhook} hostawayWebhook
2243
+ * @param {object} body
2235
2244
  * @param {*} [options] Override http request option.
2236
2245
  * @throws {RequiredError}
2237
2246
  */
2238
- webhook: async (hostawayWebhook, options = {}) => {
2239
- assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
2247
+ webhook: async (body, options = {}) => {
2248
+ assertParamExists("webhook", "body", body);
2240
2249
  const localVarPath = `/hostaway-unified-webhooks`;
2241
2250
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2242
2251
  let baseOptions;
@@ -2251,7 +2260,7 @@ var HostawayApiAxiosParamCreator = function(configuration) {
2251
2260
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2252
2261
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2253
2262
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2254
- localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
2263
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
2255
2264
  return {
2256
2265
  url: toPathString(localVarUrlObj),
2257
2266
  options: localVarRequestOptions
@@ -2265,12 +2274,12 @@ var HostawayApiFp = function(configuration) {
2265
2274
  /**
2266
2275
  *
2267
2276
  * @summary Unifiedwebhook
2268
- * @param {HostawayWebhook} hostawayWebhook
2277
+ * @param {object} body
2269
2278
  * @param {*} [options] Override http request option.
2270
2279
  * @throws {RequiredError}
2271
2280
  */
2272
- async webhook(hostawayWebhook, options) {
2273
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
2281
+ async webhook(body, options) {
2282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
2274
2283
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2275
2284
  const localVarOperationServerBasePath = operationServerMap["HostawayApi.webhook"]?.[localVarOperationServerIndex]?.url;
2276
2285
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2283,12 +2292,12 @@ var HostawayApiFactory = function(configuration, basePath, axios) {
2283
2292
  /**
2284
2293
  *
2285
2294
  * @summary Unifiedwebhook
2286
- * @param {HostawayWebhook} hostawayWebhook
2295
+ * @param {object} body
2287
2296
  * @param {*} [options] Override http request option.
2288
2297
  * @throws {RequiredError}
2289
2298
  */
2290
- webhook(hostawayWebhook, options) {
2291
- return localVarFp.webhook(hostawayWebhook, options).then((request) => request(axios, basePath));
2299
+ webhook(body, options) {
2300
+ return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
2292
2301
  }
2293
2302
  };
2294
2303
  };
@@ -2296,13 +2305,13 @@ var HostawayApi = class extends BaseAPI {
2296
2305
  /**
2297
2306
  *
2298
2307
  * @summary Unifiedwebhook
2299
- * @param {HostawayWebhook} hostawayWebhook
2308
+ * @param {object} body
2300
2309
  * @param {*} [options] Override http request option.
2301
2310
  * @throws {RequiredError}
2302
2311
  * @memberof HostawayApi
2303
2312
  */
2304
- webhook(hostawayWebhook, options) {
2305
- return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
2313
+ webhook(body, options) {
2314
+ return HostawayApiFp(this.configuration).webhook(body, options).then((request) => request(this.axios, this.basePath));
2306
2315
  }
2307
2316
  };
2308
2317
  var InboxesApiAxiosParamCreator = function(configuration) {
@@ -4361,15 +4370,43 @@ var UnboundApiAxiosParamCreator = function(configuration) {
4361
4370
  options: localVarRequestOptions
4362
4371
  };
4363
4372
  },
4373
+ /**
4374
+ * UserDevices Create
4375
+ * @summary UserDevices Create
4376
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
4377
+ * @param {*} [options] Override http request option.
4378
+ * @throws {RequiredError}
4379
+ */
4380
+ userDevicesCreate: async (aPIUserDeviceCreate, options = {}) => {
4381
+ assertParamExists("userDevicesCreate", "aPIUserDeviceCreate", aPIUserDeviceCreate);
4382
+ const localVarPath = `/userDevices`;
4383
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4384
+ let baseOptions;
4385
+ if (configuration) {
4386
+ baseOptions = configuration.baseOptions;
4387
+ }
4388
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
4389
+ const localVarHeaderParameter = {};
4390
+ const localVarQueryParameter = {};
4391
+ localVarHeaderParameter["Content-Type"] = "application/json";
4392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4394
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4395
+ localVarRequestOptions.data = serializeDataIfNeeded(aPIUserDeviceCreate, localVarRequestOptions, configuration);
4396
+ return {
4397
+ url: toPathString(localVarUrlObj),
4398
+ options: localVarRequestOptions
4399
+ };
4400
+ },
4364
4401
  /**
4365
4402
  *
4366
4403
  * @summary Unifiedwebhook
4367
- * @param {HostawayWebhook} hostawayWebhook
4404
+ * @param {object} body
4368
4405
  * @param {*} [options] Override http request option.
4369
4406
  * @throws {RequiredError}
4370
4407
  */
4371
- webhook: async (hostawayWebhook, options = {}) => {
4372
- assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
4408
+ webhook: async (body, options = {}) => {
4409
+ assertParamExists("webhook", "body", body);
4373
4410
  const localVarPath = `/hostaway-unified-webhooks`;
4374
4411
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4375
4412
  let baseOptions;
@@ -4384,7 +4421,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
4384
4421
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4385
4422
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4386
4423
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4387
- localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
4424
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
4388
4425
  return {
4389
4426
  url: toPathString(localVarUrlObj),
4390
4427
  options: localVarRequestOptions
@@ -4947,15 +4984,28 @@ var UnboundApiFp = function(configuration) {
4947
4984
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.reservationsList"]?.[localVarOperationServerIndex]?.url;
4948
4985
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4949
4986
  },
4987
+ /**
4988
+ * UserDevices Create
4989
+ * @summary UserDevices Create
4990
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
4991
+ * @param {*} [options] Override http request option.
4992
+ * @throws {RequiredError}
4993
+ */
4994
+ async userDevicesCreate(aPIUserDeviceCreate, options) {
4995
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
4996
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4997
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.userDevicesCreate"]?.[localVarOperationServerIndex]?.url;
4998
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4999
+ },
4950
5000
  /**
4951
5001
  *
4952
5002
  * @summary Unifiedwebhook
4953
- * @param {HostawayWebhook} hostawayWebhook
5003
+ * @param {object} body
4954
5004
  * @param {*} [options] Override http request option.
4955
5005
  * @throws {RequiredError}
4956
5006
  */
4957
- async webhook(hostawayWebhook, options) {
4958
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
5007
+ async webhook(body, options) {
5008
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
4959
5009
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4960
5010
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.webhook"]?.[localVarOperationServerIndex]?.url;
4961
5011
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5400,15 +5450,25 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5400
5450
  reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5401
5451
  return localVarFp.reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
5402
5452
  },
5453
+ /**
5454
+ * UserDevices Create
5455
+ * @summary UserDevices Create
5456
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
5457
+ * @param {*} [options] Override http request option.
5458
+ * @throws {RequiredError}
5459
+ */
5460
+ userDevicesCreate(aPIUserDeviceCreate, options) {
5461
+ return localVarFp.userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(axios, basePath));
5462
+ },
5403
5463
  /**
5404
5464
  *
5405
5465
  * @summary Unifiedwebhook
5406
- * @param {HostawayWebhook} hostawayWebhook
5466
+ * @param {object} body
5407
5467
  * @param {*} [options] Override http request option.
5408
5468
  * @throws {RequiredError}
5409
5469
  */
5410
- webhook(hostawayWebhook, options) {
5411
- return localVarFp.webhook(hostawayWebhook, options).then((request) => request(axios, basePath));
5470
+ webhook(body, options) {
5471
+ return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
5412
5472
  }
5413
5473
  };
5414
5474
  };
@@ -5887,16 +5947,105 @@ var UnboundApi = class extends BaseAPI {
5887
5947
  reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options) {
5888
5948
  return UnboundApiFp(this.configuration).reservationsList(searchString, contactId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
5889
5949
  }
5950
+ /**
5951
+ * UserDevices Create
5952
+ * @summary UserDevices Create
5953
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
5954
+ * @param {*} [options] Override http request option.
5955
+ * @throws {RequiredError}
5956
+ * @memberof UnboundApi
5957
+ */
5958
+ userDevicesCreate(aPIUserDeviceCreate, options) {
5959
+ return UnboundApiFp(this.configuration).userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(this.axios, this.basePath));
5960
+ }
5890
5961
  /**
5891
5962
  *
5892
5963
  * @summary Unifiedwebhook
5893
- * @param {HostawayWebhook} hostawayWebhook
5964
+ * @param {object} body
5894
5965
  * @param {*} [options] Override http request option.
5895
5966
  * @throws {RequiredError}
5896
5967
  * @memberof UnboundApi
5897
5968
  */
5898
- webhook(hostawayWebhook, options) {
5899
- return UnboundApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
5969
+ webhook(body, options) {
5970
+ return UnboundApiFp(this.configuration).webhook(body, options).then((request) => request(this.axios, this.basePath));
5971
+ }
5972
+ };
5973
+ var UserDevicesApiAxiosParamCreator = function(configuration) {
5974
+ return {
5975
+ /**
5976
+ * UserDevices Create
5977
+ * @summary UserDevices Create
5978
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
5979
+ * @param {*} [options] Override http request option.
5980
+ * @throws {RequiredError}
5981
+ */
5982
+ userDevicesCreate: async (aPIUserDeviceCreate, options = {}) => {
5983
+ assertParamExists("userDevicesCreate", "aPIUserDeviceCreate", aPIUserDeviceCreate);
5984
+ const localVarPath = `/userDevices`;
5985
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5986
+ let baseOptions;
5987
+ if (configuration) {
5988
+ baseOptions = configuration.baseOptions;
5989
+ }
5990
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
5991
+ const localVarHeaderParameter = {};
5992
+ const localVarQueryParameter = {};
5993
+ localVarHeaderParameter["Content-Type"] = "application/json";
5994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5996
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5997
+ localVarRequestOptions.data = serializeDataIfNeeded(aPIUserDeviceCreate, localVarRequestOptions, configuration);
5998
+ return {
5999
+ url: toPathString(localVarUrlObj),
6000
+ options: localVarRequestOptions
6001
+ };
6002
+ }
6003
+ };
6004
+ };
6005
+ var UserDevicesApiFp = function(configuration) {
6006
+ const localVarAxiosParamCreator = UserDevicesApiAxiosParamCreator(configuration);
6007
+ return {
6008
+ /**
6009
+ * UserDevices Create
6010
+ * @summary UserDevices Create
6011
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
6012
+ * @param {*} [options] Override http request option.
6013
+ * @throws {RequiredError}
6014
+ */
6015
+ async userDevicesCreate(aPIUserDeviceCreate, options) {
6016
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userDevicesCreate(aPIUserDeviceCreate, options);
6017
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6018
+ const localVarOperationServerBasePath = operationServerMap["UserDevicesApi.userDevicesCreate"]?.[localVarOperationServerIndex]?.url;
6019
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6020
+ }
6021
+ };
6022
+ };
6023
+ var UserDevicesApiFactory = function(configuration, basePath, axios) {
6024
+ const localVarFp = UserDevicesApiFp(configuration);
6025
+ return {
6026
+ /**
6027
+ * UserDevices Create
6028
+ * @summary UserDevices Create
6029
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
6030
+ * @param {*} [options] Override http request option.
6031
+ * @throws {RequiredError}
6032
+ */
6033
+ userDevicesCreate(aPIUserDeviceCreate, options) {
6034
+ return localVarFp.userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(axios, basePath));
6035
+ }
6036
+ };
6037
+ };
6038
+ var UserDevicesApi = class extends BaseAPI {
6039
+ /**
6040
+ * UserDevices Create
6041
+ * @summary UserDevices Create
6042
+ * @param {APIUserDeviceCreate} aPIUserDeviceCreate
6043
+ * @param {*} [options] Override http request option.
6044
+ * @throws {RequiredError}
6045
+ * @memberof UserDevicesApi
6046
+ */
6047
+ userDevicesCreate(aPIUserDeviceCreate, options) {
6048
+ return UserDevicesApiFp(this.configuration).userDevicesCreate(aPIUserDeviceCreate, options).then((request) => request(this.axios, this.basePath));
5900
6049
  }
5901
6050
  };
5902
6051
 
@@ -6073,6 +6222,12 @@ export {
6073
6222
  UnboundApi,
6074
6223
  UnboundApiAxiosParamCreator,
6075
6224
  UnboundApiFactory,
6076
- UnboundApiFp
6225
+ UnboundApiFp,
6226
+ UserDeviceOs,
6227
+ UserDeviceType,
6228
+ UserDevicesApi,
6229
+ UserDevicesApiAxiosParamCreator,
6230
+ UserDevicesApiFactory,
6231
+ UserDevicesApiFp
6077
6232
  };
6078
6233
  //# sourceMappingURL=index.mjs.map