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

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",
@@ -1651,10 +1660,11 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1651
1660
  * @param {number} [limit]
1652
1661
  * @param {PaginationDirection} [pageDir] Direction of paging
1653
1662
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1663
+ * @param {string | null} [inboxId]
1654
1664
  * @param {*} [options] Override http request option.
1655
1665
  * @throws {RequiredError}
1656
1666
  */
1657
- conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, options = {}) => {
1667
+ conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
1658
1668
  const localVarPath = `/conversations`;
1659
1669
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1660
1670
  let baseOptions;
@@ -1685,6 +1695,9 @@ var ConversationsApiAxiosParamCreator = function(configuration) {
1685
1695
  if (sortOrder !== void 0) {
1686
1696
  localVarQueryParameter["sortOrder"] = sortOrder;
1687
1697
  }
1698
+ if (inboxId !== void 0) {
1699
+ localVarQueryParameter["inboxId"] = inboxId;
1700
+ }
1688
1701
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1689
1702
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1690
1703
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1875,11 +1888,12 @@ var ConversationsApiFp = function(configuration) {
1875
1888
  * @param {number} [limit]
1876
1889
  * @param {PaginationDirection} [pageDir] Direction of paging
1877
1890
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1891
+ * @param {string | null} [inboxId]
1878
1892
  * @param {*} [options] Override http request option.
1879
1893
  * @throws {RequiredError}
1880
1894
  */
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);
1895
+ async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
1896
+ const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
1883
1897
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1884
1898
  const localVarOperationServerBasePath = operationServerMap["ConversationsApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
1885
1899
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1973,11 +1987,12 @@ var ConversationsApiFactory = function(configuration, basePath, axios) {
1973
1987
  * @param {number} [limit]
1974
1988
  * @param {PaginationDirection} [pageDir] Direction of paging
1975
1989
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1990
+ * @param {string | null} [inboxId]
1976
1991
  * @param {*} [options] Override http request option.
1977
1992
  * @throws {RequiredError}
1978
1993
  */
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));
1994
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
1995
+ return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
1981
1996
  },
1982
1997
  /**
1983
1998
  * Conversations Update
@@ -2055,12 +2070,13 @@ var ConversationsApi = class extends BaseAPI {
2055
2070
  * @param {number} [limit]
2056
2071
  * @param {PaginationDirection} [pageDir] Direction of paging
2057
2072
  * @param {SortOrder} [sortOrder] Sort order asc/desc
2073
+ * @param {string | null} [inboxId]
2058
2074
  * @param {*} [options] Override http request option.
2059
2075
  * @throws {RequiredError}
2060
2076
  * @memberof ConversationsApi
2061
2077
  */
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));
2078
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
2079
+ return ConversationsApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
2064
2080
  }
2065
2081
  /**
2066
2082
  * Conversations Update
@@ -2198,6 +2214,77 @@ var HostawayApi = class extends BaseAPI {
2198
2214
  return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
2199
2215
  }
2200
2216
  };
2217
+ var InboxesApiAxiosParamCreator = function(configuration) {
2218
+ return {
2219
+ /**
2220
+ * Inboxes List
2221
+ * @summary Inboxes List
2222
+ * @param {*} [options] Override http request option.
2223
+ * @throws {RequiredError}
2224
+ */
2225
+ inboxesList: async (options = {}) => {
2226
+ const localVarPath = `/inboxes`;
2227
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2228
+ let baseOptions;
2229
+ if (configuration) {
2230
+ baseOptions = configuration.baseOptions;
2231
+ }
2232
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2233
+ const localVarHeaderParameter = {};
2234
+ const localVarQueryParameter = {};
2235
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2237
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2238
+ return {
2239
+ url: toPathString(localVarUrlObj),
2240
+ options: localVarRequestOptions
2241
+ };
2242
+ }
2243
+ };
2244
+ };
2245
+ var InboxesApiFp = function(configuration) {
2246
+ const localVarAxiosParamCreator = InboxesApiAxiosParamCreator(configuration);
2247
+ return {
2248
+ /**
2249
+ * Inboxes List
2250
+ * @summary Inboxes List
2251
+ * @param {*} [options] Override http request option.
2252
+ * @throws {RequiredError}
2253
+ */
2254
+ async inboxesList(options) {
2255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
2256
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2257
+ const localVarOperationServerBasePath = operationServerMap["InboxesApi.inboxesList"]?.[localVarOperationServerIndex]?.url;
2258
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2259
+ }
2260
+ };
2261
+ };
2262
+ var InboxesApiFactory = function(configuration, basePath, axios) {
2263
+ const localVarFp = InboxesApiFp(configuration);
2264
+ return {
2265
+ /**
2266
+ * Inboxes List
2267
+ * @summary Inboxes List
2268
+ * @param {*} [options] Override http request option.
2269
+ * @throws {RequiredError}
2270
+ */
2271
+ inboxesList(options) {
2272
+ return localVarFp.inboxesList(options).then((request) => request(axios, basePath));
2273
+ }
2274
+ };
2275
+ };
2276
+ var InboxesApi = class extends BaseAPI {
2277
+ /**
2278
+ * Inboxes List
2279
+ * @summary Inboxes List
2280
+ * @param {*} [options] Override http request option.
2281
+ * @throws {RequiredError}
2282
+ * @memberof InboxesApi
2283
+ */
2284
+ inboxesList(options) {
2285
+ return InboxesApiFp(this.configuration).inboxesList(options).then((request) => request(this.axios, this.basePath));
2286
+ }
2287
+ };
2201
2288
  var InquiriesApiAxiosParamCreator = function(configuration) {
2202
2289
  return {
2203
2290
  /**
@@ -3535,10 +3622,11 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3535
3622
  * @param {number} [limit]
3536
3623
  * @param {PaginationDirection} [pageDir] Direction of paging
3537
3624
  * @param {SortOrder} [sortOrder] Sort order asc/desc
3625
+ * @param {string | null} [inboxId]
3538
3626
  * @param {*} [options] Override http request option.
3539
3627
  * @throws {RequiredError}
3540
3628
  */
3541
- conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, options = {}) => {
3629
+ conversationsList: async (searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options = {}) => {
3542
3630
  const localVarPath = `/conversations`;
3543
3631
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3544
3632
  let baseOptions;
@@ -3569,6 +3657,9 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3569
3657
  if (sortOrder !== void 0) {
3570
3658
  localVarQueryParameter["sortOrder"] = sortOrder;
3571
3659
  }
3660
+ if (inboxId !== void 0) {
3661
+ localVarQueryParameter["inboxId"] = inboxId;
3662
+ }
3572
3663
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3573
3664
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3574
3665
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3719,6 +3810,30 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3719
3810
  options: localVarRequestOptions
3720
3811
  };
3721
3812
  },
3813
+ /**
3814
+ * Inboxes List
3815
+ * @summary Inboxes List
3816
+ * @param {*} [options] Override http request option.
3817
+ * @throws {RequiredError}
3818
+ */
3819
+ inboxesList: async (options = {}) => {
3820
+ const localVarPath = `/inboxes`;
3821
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3822
+ let baseOptions;
3823
+ if (configuration) {
3824
+ baseOptions = configuration.baseOptions;
3825
+ }
3826
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3827
+ const localVarHeaderParameter = {};
3828
+ const localVarQueryParameter = {};
3829
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3830
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3831
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3832
+ return {
3833
+ url: toPathString(localVarUrlObj),
3834
+ options: localVarRequestOptions
3835
+ };
3836
+ },
3722
3837
  /**
3723
3838
  * List all listings
3724
3839
  * @summary Inquiries List
@@ -4566,11 +4681,12 @@ var UnboundApiFp = function(configuration) {
4566
4681
  * @param {number} [limit]
4567
4682
  * @param {PaginationDirection} [pageDir] Direction of paging
4568
4683
  * @param {SortOrder} [sortOrder] Sort order asc/desc
4684
+ * @param {string | null} [inboxId]
4569
4685
  * @param {*} [options] Override http request option.
4570
4686
  * @throws {RequiredError}
4571
4687
  */
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);
4688
+ async conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
4689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options);
4574
4690
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4575
4691
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.conversationsList"]?.[localVarOperationServerIndex]?.url;
4576
4692
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -4643,6 +4759,18 @@ var UnboundApiFp = function(configuration) {
4643
4759
  const localVarOperationServerBasePath = operationServerMap["UnboundApi.emailsUpdate"]?.[localVarOperationServerIndex]?.url;
4644
4760
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4645
4761
  },
4762
+ /**
4763
+ * Inboxes List
4764
+ * @summary Inboxes List
4765
+ * @param {*} [options] Override http request option.
4766
+ * @throws {RequiredError}
4767
+ */
4768
+ async inboxesList(options) {
4769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inboxesList(options);
4770
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4771
+ const localVarOperationServerBasePath = operationServerMap["UnboundApi.inboxesList"]?.[localVarOperationServerIndex]?.url;
4772
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4773
+ },
4646
4774
  /**
4647
4775
  * List all listings
4648
4776
  * @summary Inquiries List
@@ -5095,11 +5223,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5095
5223
  * @param {number} [limit]
5096
5224
  * @param {PaginationDirection} [pageDir] Direction of paging
5097
5225
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5226
+ * @param {string | null} [inboxId]
5098
5227
  * @param {*} [options] Override http request option.
5099
5228
  * @throws {RequiredError}
5100
5229
  */
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));
5230
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
5231
+ return localVarFp.conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(axios, basePath));
5103
5232
  },
5104
5233
  /**
5105
5234
  * Conversations Update
@@ -5154,6 +5283,15 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5154
5283
  emailsUpdate(emailId, aPIEmailUpdate, options) {
5155
5284
  return localVarFp.emailsUpdate(emailId, aPIEmailUpdate, options).then((request) => request(axios, basePath));
5156
5285
  },
5286
+ /**
5287
+ * Inboxes List
5288
+ * @summary Inboxes List
5289
+ * @param {*} [options] Override http request option.
5290
+ * @throws {RequiredError}
5291
+ */
5292
+ inboxesList(options) {
5293
+ return localVarFp.inboxesList(options).then((request) => request(axios, basePath));
5294
+ },
5157
5295
  /**
5158
5296
  * List all listings
5159
5297
  * @summary Inquiries List
@@ -5558,12 +5696,13 @@ var UnboundApi = class extends BaseAPI {
5558
5696
  * @param {number} [limit]
5559
5697
  * @param {PaginationDirection} [pageDir] Direction of paging
5560
5698
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5699
+ * @param {string | null} [inboxId]
5561
5700
  * @param {*} [options] Override http request option.
5562
5701
  * @throws {RequiredError}
5563
5702
  * @memberof UnboundApi
5564
5703
  */
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));
5704
+ conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options) {
5705
+ return UnboundApiFp(this.configuration).conversationsList(searchString, contactId, status, cursor, limit, pageDir, sortOrder, inboxId, options).then((request) => request(this.axios, this.basePath));
5567
5706
  }
5568
5707
  /**
5569
5708
  * Conversations Update
@@ -5623,6 +5762,16 @@ var UnboundApi = class extends BaseAPI {
5623
5762
  emailsUpdate(emailId, aPIEmailUpdate, options) {
5624
5763
  return UnboundApiFp(this.configuration).emailsUpdate(emailId, aPIEmailUpdate, options).then((request) => request(this.axios, this.basePath));
5625
5764
  }
5765
+ /**
5766
+ * Inboxes List
5767
+ * @summary Inboxes List
5768
+ * @param {*} [options] Override http request option.
5769
+ * @throws {RequiredError}
5770
+ * @memberof UnboundApi
5771
+ */
5772
+ inboxesList(options) {
5773
+ return UnboundApiFp(this.configuration).inboxesList(options).then((request) => request(this.axios, this.basePath));
5774
+ }
5626
5775
  /**
5627
5776
  * List all listings
5628
5777
  * @summary Inquiries List
@@ -5975,6 +6124,7 @@ export {
5975
6124
  ConversationsApiFactory,
5976
6125
  ConversationsApiFp,
5977
6126
  EmailConversationDataApiConversationTypeEnum,
6127
+ EmailInboxApiInboxTypeEnum,
5978
6128
  EmailProviderMessageApiMessageTypeEnum,
5979
6129
  ExternalStaffApiStaffTypeEnum,
5980
6130
  GuestApiParticipantTypeEnum,
@@ -5982,6 +6132,10 @@ export {
5982
6132
  HostawayApiAxiosParamCreator,
5983
6133
  HostawayApiFactory,
5984
6134
  HostawayApiFp,
6135
+ InboxesApi,
6136
+ InboxesApiAxiosParamCreator,
6137
+ InboxesApiFactory,
6138
+ InboxesApiFp,
5985
6139
  InquiriesApi,
5986
6140
  InquiriesApiAxiosParamCreator,
5987
6141
  InquiriesApiFactory,
@@ -5998,6 +6152,8 @@ export {
5998
6152
  MessageDirection,
5999
6153
  MessageStatus,
6000
6154
  PaginationDirection,
6155
+ PhoneInboxApiInboxTypeEnum,
6156
+ ProviderAccountInboxApiInboxTypeEnum,
6001
6157
  ProviderCommunicationType,
6002
6158
  ProviderConversationDataApiConversationTypeEnum,
6003
6159
  ProviderStaffApiStaffTypeEnum,