@ember-home/unbound-ts-client 0.0.59 → 0.0.61

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
@@ -88,6 +88,9 @@ var ConversationStatus = {
88
88
  var EmailConversationDataApiConversationTypeEnum = {
89
89
  Email: "EMAIL"
90
90
  };
91
+ var EmailInboxApiInboxTypeEnum = {
92
+ Email: "EMAIL"
93
+ };
91
94
  var EmailProviderMessageApiMessageTypeEnum = {
92
95
  Email: "EMAIL"
93
96
  };
@@ -117,6 +120,12 @@ var PaginationDirection = {
117
120
  Forward: "forward",
118
121
  Backward: "backward"
119
122
  };
123
+ var PhoneInboxApiInboxTypeEnum = {
124
+ Twilio: "TWILIO"
125
+ };
126
+ var ProviderAccountInboxApiInboxTypeEnum = {
127
+ RentalProvider: "RENTAL_PROVIDER"
128
+ };
120
129
  var ProviderCommunicationType = {
121
130
  Sms: "SMS",
122
131
  Email: "EMAIL",
@@ -133,6 +142,11 @@ var ProviderStaffApiStaffTypeEnum = {
133
142
  var RentalProviderMessageApiMessageTypeEnum = {
134
143
  RentalProvider: "RENTAL_PROVIDER"
135
144
  };
145
+ var RentalProviderTypes = {
146
+ Hostaway: "HOSTAWAY",
147
+ Guesty: "GUESTY",
148
+ Unbound: "UNBOUND"
149
+ };
136
150
  var ReservationChannelTypes = {
137
151
  Airbnb: "AIRBNB",
138
152
  Vrbo: "VRBO",
@@ -1651,10 +1665,11 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1651
1665
  * @param {number} [limit]
1652
1666
  * @param {PaginationDirection} [pageDir] Direction of paging
1653
1667
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1668
+ * @param {string | null} [inboxId]
1654
1669
  * @param {*} [options] Override http request option.
1655
1670
  * @throws {RequiredError}
1656
1671
  */
1657
- conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, options = {}) => {
1672
+ conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
1658
1673
  const localVarPath = `/conversations`;
1659
1674
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1660
1675
  let baseOptions;
@@ -1685,6 +1700,9 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1685
1700
  if (sortOrder !== void 0) {
1686
1701
  localVarQueryParameter["sortOrder"] = sortOrder;
1687
1702
  }
1703
+ if (inboxId !== void 0) {
1704
+ localVarQueryParameter["inboxId"] = inboxId;
1705
+ }
1688
1706
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1689
1707
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1690
1708
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1875,11 +1893,12 @@ var ConversationsApiFp = function(configuration) {
1875
1893
  * @param {number} [limit]
1876
1894
  * @param {PaginationDirection} [pageDir] Direction of paging
1877
1895
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1896
+ * @param {string | null} [inboxId]
1878
1897
  * @param {*} [options] Override http request option.
1879
1898
  * @throws {RequiredError}
1880
1899
  */
1881
- async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options) {
1882
- const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options);
1900
+ async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
1901
+ const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
1883
1902
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1884
1903
  const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
1885
1904
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1973,11 +1992,12 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
1973
1992
  * @param {number} [limit]
1974
1993
  * @param {PaginationDirection} [pageDir] Direction of paging
1975
1994
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1995
+ * @param {string | null} [inboxId]
1976
1996
  * @param {*} [options] Override http request option.
1977
1997
  * @throws {RequiredError}
1978
1998
  */
1979
- conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options) {
1980
- return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options).then((request) => request(axios, basePath));
1999
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
2000
+ return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
1981
2001
  },
1982
2002
  /**
1983
2003
  * Conversations Update
@@ -2055,12 +2075,13 @@ var ConversationsApi = class extends BaseAPI {
2055
2075
  * @param {number} [limit]
2056
2076
  * @param {PaginationDirection} [pageDir] Direction of paging
2057
2077
  * @param {SortOrder} [sortOrder] Sort order asc/desc
2078
+ * @param {string | null} [inboxId]
2058
2079
  * @param {*} [options] Override http request option.
2059
2080
  * @throws {RequiredError}
2060
2081
  * @memberof ConversationsApi
2061
2082
  */
2062
- conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options) {
2063
- return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options).then((request) => request(this.axios, this.basePath));
2083
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
2084
+ return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
2064
2085
  }
2065
2086
  /**
2066
2087
  * Conversations Update
@@ -2198,6 +2219,77 @@ var HostawayApi = class extends BaseAPI {
2198
2219
  return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
2199
2220
  }
2200
2221
  };
2222
+ var InboxesApiAxiosParamCreator = function(configuration) {
2223
+ return {
2224
+ /**
2225
+ * Inboxes List
2226
+ * @summary Inboxes List
2227
+ * @param {*} [options] Override http request option.
2228
+ * @throws {RequiredError}
2229
+ */
2230
+ inboxesList: async (options = {}) => {
2231
+ const localVarPath = `/inboxes`;
2232
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2233
+ let baseOptions;
2234
+ if (configuration) {
2235
+ baseOptions = configuration.baseOptions;
2236
+ }
2237
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2238
+ const localVarHeaderParameter = {};
2239
+ const localVarQueryParameter = {};
2240
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2241
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2242
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2243
+ return {
2244
+ url: toPathString(localVarUrlObj),
2245
+ options: localVarRequestOptions
2246
+ };
2247
+ }
2248
+ };
2249
+ };
2250
+ var InboxesApiFp = function(configuration) {
2251
+ const localVarAxiosParamCreator = InboxesApiAxiosParamCreator(configuration);
2252
+ return {
2253
+ /**
2254
+ * Inboxes List
2255
+ * @summary Inboxes List
2256
+ * @param {*} [options] Override http request option.
2257
+ * @throws {RequiredError}
2258
+ */
2259
+ async inboxesList(options) {
2260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
2261
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2262
+ const localVarOperationServerBasePath = operationServerMap["InboxesApi.inboxesList"]?.[localVarOperationServerIndex]?.url;
2263
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2264
+ }
2265
+ };
2266
+ };
2267
+ var InboxesApiFactory = function(configuration, basePath, axios) {
2268
+ const localVarFp = InboxesApiFp(configuration);
2269
+ return {
2270
+ /**
2271
+ * Inboxes List
2272
+ * @summary Inboxes List
2273
+ * @param {*} [options] Override http request option.
2274
+ * @throws {RequiredError}
2275
+ */
2276
+ inboxesList(options) {
2277
+ return localVarFp.inboxesList(options).then((request) => request(axios, basePath));
2278
+ }
2279
+ };
2280
+ };
2281
+ var InboxesApi = class extends BaseAPI {
2282
+ /**
2283
+ * Inboxes List
2284
+ * @summary Inboxes List
2285
+ * @param {*} [options] Override http request option.
2286
+ * @throws {RequiredError}
2287
+ * @memberof InboxesApi
2288
+ */
2289
+ inboxesList(options) {
2290
+ return InboxesApiFp(this.configuration).inboxesList(options).then((request) => request(this.axios, this.basePath));
2291
+ }
2292
+ };
2201
2293
  var InquiriesApiAxiosParamCreator = function(configuration) {
2202
2294
  return {
2203
2295
  /**
@@ -3535,10 +3627,11 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3535
3627
  * @param {number} [limit]
3536
3628
  * @param {PaginationDirection} [pageDir] Direction of paging
3537
3629
  * @param {SortOrder} [sortOrder] Sort order asc/desc
3630
+ * @param {string | null} [inboxId]
3538
3631
  * @param {*} [options] Override http request option.
3539
3632
  * @throws {RequiredError}
3540
3633
  */
3541
- conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, options = {}) => {
3634
+ conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
3542
3635
  const localVarPath = `/conversations`;
3543
3636
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3544
3637
  let baseOptions;
@@ -3569,6 +3662,9 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3569
3662
  if (sortOrder !== void 0) {
3570
3663
  localVarQueryParameter["sortOrder"] = sortOrder;
3571
3664
  }
3665
+ if (inboxId !== void 0) {
3666
+ localVarQueryParameter["inboxId"] = inboxId;
3667
+ }
3572
3668
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3573
3669
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3574
3670
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3719,6 +3815,30 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3719
3815
  options: localVarRequestOptions
3720
3816
  };
3721
3817
  },
3818
+ /**
3819
+ * Inboxes List
3820
+ * @summary Inboxes List
3821
+ * @param {*} [options] Override http request option.
3822
+ * @throws {RequiredError}
3823
+ */
3824
+ inboxesList: async (options = {}) => {
3825
+ const localVarPath = `/inboxes`;
3826
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3827
+ let baseOptions;
3828
+ if (configuration) {
3829
+ baseOptions = configuration.baseOptions;
3830
+ }
3831
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3832
+ const localVarHeaderParameter = {};
3833
+ const localVarQueryParameter = {};
3834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3836
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3837
+ return {
3838
+ url: toPathString(localVarUrlObj),
3839
+ options: localVarRequestOptions
3840
+ };
3841
+ },
3722
3842
  /**
3723
3843
  * List all listings
3724
3844
  * @summary Inquiries List
@@ -4566,11 +4686,12 @@ var UnboundApiFp = function(configuration) {
4566
4686
  * @param {number} [limit]
4567
4687
  * @param {PaginationDirection} [pageDir] Direction of paging
4568
4688
  * @param {SortOrder} [sortOrder] Sort order asc/desc
4689
+ * @param {string | null} [inboxId]
4569
4690
  * @param {*} [options] Override http request option.
4570
4691
  * @throws {RequiredError}
4571
4692
  */
4572
- async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options) {
4573
- const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options);
4693
+ async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
4694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
4574
4695
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4575
4696
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
4576
4697
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4643,6 +4764,18 @@ var UnboundApiFp = function(configuration) {
4643
4764
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.emailsUpdate"]?.[localVarOperationServerIndex]?.url;
4644
4765
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4645
4766
  },
4767
+ /**
4768
+ * Inboxes List
4769
+ * @summary Inboxes List
4770
+ * @param {*} [options] Override http request option.
4771
+ * @throws {RequiredError}
4772
+ */
4773
+ async inboxesList(options) {
4774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
4775
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4776
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.inboxesList"]?.[localVarOperationServerIndex]?.url;
4777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4778
+ },
4646
4779
  /**
4647
4780
  * List all listings
4648
4781
  * @summary Inquiries List
@@ -5095,11 +5228,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5095
5228
  * @param {number} [limit]
5096
5229
  * @param {PaginationDirection} [pageDir] Direction of paging
5097
5230
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5231
+ * @param {string | null} [inboxId]
5098
5232
  * @param {*} [options] Override http request option.
5099
5233
  * @throws {RequiredError}
5100
5234
  */
5101
- conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options) {
5102
- return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options).then((request) => request(axios, basePath));
5235
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
5236
+ return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
5103
5237
  },
5104
5238
  /**
5105
5239
  * Conversations Update
@@ -5154,6 +5288,15 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5154
5288
  emailsUpdate(emailId, aPIEmailUpdate, options) {
5155
5289
  return localVarFp.emailsUpdate(emailId, aPIEmailUpdate, options).then((request) => request(axios, basePath));
5156
5290
  },
5291
+ /**
5292
+ * Inboxes List
5293
+ * @summary Inboxes List
5294
+ * @param {*} [options] Override http request option.
5295
+ * @throws {RequiredError}
5296
+ */
5297
+ inboxesList(options) {
5298
+ return localVarFp.inboxesList(options).then((request) => request(axios, basePath));
5299
+ },
5157
5300
  /**
5158
5301
  * List all listings
5159
5302
  * @summary Inquiries List
@@ -5558,12 +5701,13 @@ var UnboundApi = class extends BaseAPI {
5558
5701
  * @param {number} [limit]
5559
5702
  * @param {PaginationDirection} [pageDir] Direction of paging
5560
5703
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5704
+ * @param {string | null} [inboxId]
5561
5705
  * @param {*} [options] Override http request option.
5562
5706
  * @throws {RequiredError}
5563
5707
  * @memberof UnboundApi
5564
5708
  */
5565
- conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options) {
5566
- return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, options).then((request) => request(this.axios, this.basePath));
5709
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
5710
+ return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
5567
5711
  }
5568
5712
  /**
5569
5713
  * Conversations Update
@@ -5623,6 +5767,16 @@ var UnboundApi = class extends BaseAPI {
5623
5767
  emailsUpdate(emailId, aPIEmailUpdate, options) {
5624
5768
  return UnboundApiFp(this.configuration).emailsUpdate(emailId, aPIEmailUpdate, options).then((request) => request(this.axios, this.basePath));
5625
5769
  }
5770
+ /**
5771
+ * Inboxes List
5772
+ * @summary Inboxes List
5773
+ * @param {*} [options] Override http request option.
5774
+ * @throws {RequiredError}
5775
+ * @memberof UnboundApi
5776
+ */
5777
+ inboxesList(options) {
5778
+ return UnboundApiFp(this.configuration).inboxesList(options).then((request) => request(this.axios, this.basePath));
5779
+ }
5626
5780
  /**
5627
5781
  * List all listings
5628
5782
  * @summary Inquiries List
@@ -5975,6 +6129,7 @@ export {
5975
6129
  ConversationsApiFactory,
5976
6130
  ConversationsApiFp,
5977
6131
  EmailConversationDataApiConversationTypeEnum,
6132
+ EmailInboxApiInboxTypeEnum,
5978
6133
  EmailProviderMessageApiMessageTypeEnum,
5979
6134
  ExternalStaffApiStaffTypeEnum,
5980
6135
  GuestApiParticipantTypeEnum,
@@ -5982,6 +6137,10 @@ export {
5982
6137
  HostawayApiAxiosParamCreator,
5983
6138
  HostawayApiFactory,
5984
6139
  HostawayApiFp,
6140
+ InboxesApi,
6141
+ InboxesApiAxiosParamCreator,
6142
+ InboxesApiFactory,
6143
+ InboxesApiFp,
5985
6144
  InquiriesApi,
5986
6145
  InquiriesApiAxiosParamCreator,
5987
6146
  InquiriesApiFactory,
@@ -5998,6 +6157,8 @@ export {
5998
6157
  MessageDirection,
5999
6158
  MessageStatus,
6000
6159
  PaginationDirection,
6160
+ PhoneInboxApiInboxTypeEnum,
6161
+ ProviderAccountInboxApiInboxTypeEnum,
6001
6162
  ProviderCommunicationType,
6002
6163
  ProviderConversationDataApiConversationTypeEnum,
6003
6164
  ProviderStaffApiStaffTypeEnum,
@@ -6006,6 +6167,7 @@ export {
6006
6167
  ProvidersApiFactory,
6007
6168
  ProvidersApiFp,
6008
6169
  RentalProviderMessageApiMessageTypeEnum,
6170
+ RentalProviderTypes,
6009
6171
  ReservationChannelTypes,
6010
6172
  ReservationStatus,
6011
6173
  ReservationsApi,