@ember-home/unbound-ts-client 0.0.28 → 0.0.30

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
@@ -78,18 +78,10 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
78
78
  var ContactListingType = {
79
79
  Owner: "OWNER"
80
80
  };
81
- var ContactSortBy = {
82
- LastFirstCompany: "last_first_company",
83
- FirstLastCompany: "first_last_company",
84
- CompanyLastFirst: "company_last_first"
85
- };
86
81
  var ConversationStatus = {
87
82
  Open: "OPEN",
88
83
  Closed: "CLOSED"
89
84
  };
90
- var ListingSortBy = {
91
- Title: "title"
92
- };
93
85
  var MessageDirection = {
94
86
  Inbound: "INBOUND",
95
87
  Outbound: "OUTBOUND"
@@ -110,10 +102,32 @@ var PaginationDirection = {
110
102
  var ProviderMessageApiConversationTypeEnum = {
111
103
  Provider: "PROVIDER"
112
104
  };
105
+ var ReservationChannelTypes = {
106
+ Airbnb: "AIRBNB",
107
+ Vrbo: "VRBO",
108
+ BookingCom: "BOOKING_COM",
109
+ Expedia: "EXPEDIA",
110
+ HomeawayIcal: "HOMEAWAY_ICAL",
111
+ VrboIcal: "VRBO_ICAL",
112
+ HostawayDirect: "HOSTAWAY_DIRECT",
113
+ HostawayBookingEngine: "HOSTAWAY_BOOKING_ENGINE",
114
+ CustomIcal: "CUSTOM_ICAL",
115
+ TripadvisorIcal: "TRIPADVISOR_ICAL",
116
+ Wordpress: "WORDPRESS",
117
+ Marriott: "MARRIOTT",
118
+ Partner: "PARTNER",
119
+ Gds: "GDS",
120
+ Google: "GOOGLE"
121
+ };
113
122
  var SortOrder = {
114
123
  Asc: "asc",
115
124
  Desc: "desc"
116
125
  };
126
+ var SrcResourceModelsContactsModelContactsModelContactSortBy = {
127
+ LastFirstCompany: "last_first_company",
128
+ FirstLastCompany: "first_last_company",
129
+ CompanyLastFirst: "company_last_first"
130
+ };
117
131
  var SrcResourceModelsConversationsModelConversationsModelConversationSortBy = {
118
132
  UpdatedAt: "updated_at"
119
133
  };
@@ -135,6 +149,9 @@ var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum =
135
149
  var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = {
136
150
  Email: "EMAIL"
137
151
  };
152
+ var SrcResourceModelsListingsModelListingBaseSortBy = {
153
+ Title: "title"
154
+ };
138
155
  var SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy = {
139
156
  CreatedAt: "created_at"
140
157
  };
@@ -221,216 +238,6 @@ var AccountsApi = class extends BaseAPI {
221
238
  return AccountsApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
222
239
  }
223
240
  };
224
- var AddressesApiAxiosParamCreator = function(configuration) {
225
- return {
226
- /**
227
- *
228
- * @summary Addresses Create
229
- * @param {string} contactId
230
- * @param {AddressCreate} addressCreate
231
- * @param {*} [options] Override http request option.
232
- * @throws {RequiredError}
233
- */
234
- addressesCreate: async (contactId, addressCreate, options = {}) => {
235
- assertParamExists("addressesCreate", "contactId", contactId);
236
- assertParamExists("addressesCreate", "addressCreate", addressCreate);
237
- const localVarPath = `/contacts/{contactId}/addresses`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
238
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
239
- let baseOptions;
240
- if (configuration) {
241
- baseOptions = configuration.baseOptions;
242
- }
243
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
244
- const localVarHeaderParameter = {};
245
- const localVarQueryParameter = {};
246
- localVarHeaderParameter["Content-Type"] = "application/json";
247
- setSearchParams(localVarUrlObj, localVarQueryParameter);
248
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
250
- localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
251
- return {
252
- url: toPathString(localVarUrlObj),
253
- options: localVarRequestOptions
254
- };
255
- },
256
- /**
257
- *
258
- * @summary Addresses Delete
259
- * @param {string} addressId
260
- * @param {*} [options] Override http request option.
261
- * @throws {RequiredError}
262
- */
263
- addressesDelete: async (addressId, options = {}) => {
264
- assertParamExists("addressesDelete", "addressId", addressId);
265
- const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
266
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
267
- let baseOptions;
268
- if (configuration) {
269
- baseOptions = configuration.baseOptions;
270
- }
271
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
272
- const localVarHeaderParameter = {};
273
- const localVarQueryParameter = {};
274
- setSearchParams(localVarUrlObj, localVarQueryParameter);
275
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
276
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
277
- return {
278
- url: toPathString(localVarUrlObj),
279
- options: localVarRequestOptions
280
- };
281
- },
282
- /**
283
- *
284
- * @summary Addresses Update
285
- * @param {string} addressId
286
- * @param {AddressUpdate} addressUpdate
287
- * @param {*} [options] Override http request option.
288
- * @throws {RequiredError}
289
- */
290
- addressesUpdate: async (addressId, addressUpdate, options = {}) => {
291
- assertParamExists("addressesUpdate", "addressId", addressId);
292
- assertParamExists("addressesUpdate", "addressUpdate", addressUpdate);
293
- const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
294
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
295
- let baseOptions;
296
- if (configuration) {
297
- baseOptions = configuration.baseOptions;
298
- }
299
- const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
300
- const localVarHeaderParameter = {};
301
- const localVarQueryParameter = {};
302
- localVarHeaderParameter["Content-Type"] = "application/json";
303
- setSearchParams(localVarUrlObj, localVarQueryParameter);
304
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
306
- localVarRequestOptions.data = serializeDataIfNeeded(addressUpdate, localVarRequestOptions, configuration);
307
- return {
308
- url: toPathString(localVarUrlObj),
309
- options: localVarRequestOptions
310
- };
311
- }
312
- };
313
- };
314
- var AddressesApiFp = function(configuration) {
315
- const localVarAxiosParamCreator = AddressesApiAxiosParamCreator(configuration);
316
- return {
317
- /**
318
- *
319
- * @summary Addresses Create
320
- * @param {string} contactId
321
- * @param {AddressCreate} addressCreate
322
- * @param {*} [options] Override http request option.
323
- * @throws {RequiredError}
324
- */
325
- async addressesCreate(contactId, addressCreate, options) {
326
- const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
327
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
328
- const localVarOperationServerBasePath = operationServerMap["AddressesApi.addressesCreate"]?.[localVarOperationServerIndex]?.url;
329
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
330
- },
331
- /**
332
- *
333
- * @summary Addresses Delete
334
- * @param {string} addressId
335
- * @param {*} [options] Override http request option.
336
- * @throws {RequiredError}
337
- */
338
- async addressesDelete(addressId, options) {
339
- const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
340
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
341
- const localVarOperationServerBasePath = operationServerMap["AddressesApi.addressesDelete"]?.[localVarOperationServerIndex]?.url;
342
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
343
- },
344
- /**
345
- *
346
- * @summary Addresses Update
347
- * @param {string} addressId
348
- * @param {AddressUpdate} addressUpdate
349
- * @param {*} [options] Override http request option.
350
- * @throws {RequiredError}
351
- */
352
- async addressesUpdate(addressId, addressUpdate, options) {
353
- const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
354
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
355
- const localVarOperationServerBasePath = operationServerMap["AddressesApi.addressesUpdate"]?.[localVarOperationServerIndex]?.url;
356
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
357
- }
358
- };
359
- };
360
- var AddressesApiFactory = function(configuration, basePath, axios) {
361
- const localVarFp = AddressesApiFp(configuration);
362
- return {
363
- /**
364
- *
365
- * @summary Addresses Create
366
- * @param {string} contactId
367
- * @param {AddressCreate} addressCreate
368
- * @param {*} [options] Override http request option.
369
- * @throws {RequiredError}
370
- */
371
- addressesCreate(contactId, addressCreate, options) {
372
- return localVarFp.addressesCreate(contactId, addressCreate, options).then((request) => request(axios, basePath));
373
- },
374
- /**
375
- *
376
- * @summary Addresses Delete
377
- * @param {string} addressId
378
- * @param {*} [options] Override http request option.
379
- * @throws {RequiredError}
380
- */
381
- addressesDelete(addressId, options) {
382
- return localVarFp.addressesDelete(addressId, options).then((request) => request(axios, basePath));
383
- },
384
- /**
385
- *
386
- * @summary Addresses Update
387
- * @param {string} addressId
388
- * @param {AddressUpdate} addressUpdate
389
- * @param {*} [options] Override http request option.
390
- * @throws {RequiredError}
391
- */
392
- addressesUpdate(addressId, addressUpdate, options) {
393
- return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
394
- }
395
- };
396
- };
397
- var AddressesApi = class extends BaseAPI {
398
- /**
399
- *
400
- * @summary Addresses Create
401
- * @param {string} contactId
402
- * @param {AddressCreate} addressCreate
403
- * @param {*} [options] Override http request option.
404
- * @throws {RequiredError}
405
- * @memberof AddressesApi
406
- */
407
- addressesCreate(contactId, addressCreate, options) {
408
- return AddressesApiFp(this.configuration).addressesCreate(contactId, addressCreate, options).then((request) => request(this.axios, this.basePath));
409
- }
410
- /**
411
- *
412
- * @summary Addresses Delete
413
- * @param {string} addressId
414
- * @param {*} [options] Override http request option.
415
- * @throws {RequiredError}
416
- * @memberof AddressesApi
417
- */
418
- addressesDelete(addressId, options) {
419
- return AddressesApiFp(this.configuration).addressesDelete(addressId, options).then((request) => request(this.axios, this.basePath));
420
- }
421
- /**
422
- *
423
- * @summary Addresses Update
424
- * @param {string} addressId
425
- * @param {AddressUpdate} addressUpdate
426
- * @param {*} [options] Override http request option.
427
- * @throws {RequiredError}
428
- * @memberof AddressesApi
429
- */
430
- addressesUpdate(addressId, addressUpdate, options) {
431
- return AddressesApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
432
- }
433
- };
434
241
  var ContactsApiAxiosParamCreator = function(configuration) {
435
242
  return {
436
243
  /**
@@ -638,7 +445,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
638
445
  * @param {string | null} [cursor] Cursor for keyset paging
639
446
  * @param {number} [limit]
640
447
  * @param {PaginationDirection} [pageDir] Direction of paging
641
- * @param {ContactSortBy} [sortBy] Sort key
448
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
642
449
  * @param {SortOrder} [sortOrder] Sort order asc/desc
643
450
  * @param {*} [options] Override http request option.
644
451
  * @throws {RequiredError}
@@ -1052,7 +859,7 @@ var ContactsApiFp = function(configuration) {
1052
859
  * @param {string | null} [cursor] Cursor for keyset paging
1053
860
  * @param {number} [limit]
1054
861
  * @param {PaginationDirection} [pageDir] Direction of paging
1055
- * @param {ContactSortBy} [sortBy] Sort key
862
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
1056
863
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1057
864
  * @param {*} [options] Override http request option.
1058
865
  * @throws {RequiredError}
@@ -1275,7 +1082,7 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
1275
1082
  * @param {string | null} [cursor] Cursor for keyset paging
1276
1083
  * @param {number} [limit]
1277
1084
  * @param {PaginationDirection} [pageDir] Direction of paging
1278
- * @param {ContactSortBy} [sortBy] Sort key
1085
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
1279
1086
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1280
1087
  * @param {*} [options] Override http request option.
1281
1088
  * @throws {RequiredError}
@@ -1473,7 +1280,7 @@ var ContactsApi = class extends BaseAPI {
1473
1280
  * @param {string | null} [cursor] Cursor for keyset paging
1474
1281
  * @param {number} [limit]
1475
1282
  * @param {PaginationDirection} [pageDir] Direction of paging
1476
- * @param {ContactSortBy} [sortBy] Sort key
1283
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
1477
1284
  * @param {SortOrder} [sortOrder] Sort order asc/desc
1478
1285
  * @param {*} [options] Override http request option.
1479
1286
  * @throws {RequiredError}
@@ -2138,20 +1945,18 @@ var ConversationsApi = class extends BaseAPI {
2138
1945
  return ConversationsApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
2139
1946
  }
2140
1947
  };
2141
- var EmailsApiAxiosParamCreator = function(configuration) {
1948
+ var HostawayApiAxiosParamCreator = function(configuration) {
2142
1949
  return {
2143
1950
  /**
2144
1951
  *
2145
- * @summary Emails Create
2146
- * @param {string} contactId
2147
- * @param {EmailCreate} emailCreate
1952
+ * @summary Unifiedwebhook
1953
+ * @param {HostawayWebhook} hostawayWebhook
2148
1954
  * @param {*} [options] Override http request option.
2149
1955
  * @throws {RequiredError}
2150
1956
  */
2151
- emailsCreate: async (contactId, emailCreate, options = {}) => {
2152
- assertParamExists("emailsCreate", "contactId", contactId);
2153
- assertParamExists("emailsCreate", "emailCreate", emailCreate);
2154
- const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
1957
+ webhook: async (hostawayWebhook, options = {}) => {
1958
+ assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
1959
+ const localVarPath = `/hostaway-unified-webhooks`;
2155
1960
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2156
1961
  let baseOptions;
2157
1962
  if (configuration) {
@@ -2160,234 +1965,26 @@ var EmailsApiAxiosParamCreator = function(configuration) {
2160
1965
  const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2161
1966
  const localVarHeaderParameter = {};
2162
1967
  const localVarQueryParameter = {};
1968
+ setBasicAuthToObject(localVarRequestOptions, configuration);
2163
1969
  localVarHeaderParameter["Content-Type"] = "application/json";
2164
1970
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2165
1971
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2166
1972
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2167
- localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
1973
+ localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
2168
1974
  return {
2169
1975
  url: toPathString(localVarUrlObj),
2170
1976
  options: localVarRequestOptions
2171
1977
  };
2172
- },
1978
+ }
1979
+ };
1980
+ };
1981
+ var HostawayApiFp = function(configuration) {
1982
+ const localVarAxiosParamCreator = HostawayApiAxiosParamCreator(configuration);
1983
+ return {
2173
1984
  /**
2174
1985
  *
2175
- * @summary Emails Delete
2176
- * @param {string} emailId
2177
- * @param {*} [options] Override http request option.
2178
- * @throws {RequiredError}
2179
- */
2180
- emailsDelete: async (emailId, options = {}) => {
2181
- assertParamExists("emailsDelete", "emailId", emailId);
2182
- const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
2183
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2184
- let baseOptions;
2185
- if (configuration) {
2186
- baseOptions = configuration.baseOptions;
2187
- }
2188
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
2189
- const localVarHeaderParameter = {};
2190
- const localVarQueryParameter = {};
2191
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2192
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2193
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2194
- return {
2195
- url: toPathString(localVarUrlObj),
2196
- options: localVarRequestOptions
2197
- };
2198
- },
2199
- /**
2200
- *
2201
- * @summary Emails Update
2202
- * @param {string} emailId
2203
- * @param {EmailUpdate} emailUpdate
2204
- * @param {*} [options] Override http request option.
2205
- * @throws {RequiredError}
2206
- */
2207
- emailsUpdate: async (emailId, emailUpdate, options = {}) => {
2208
- assertParamExists("emailsUpdate", "emailId", emailId);
2209
- assertParamExists("emailsUpdate", "emailUpdate", emailUpdate);
2210
- const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
2211
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2212
- let baseOptions;
2213
- if (configuration) {
2214
- baseOptions = configuration.baseOptions;
2215
- }
2216
- const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
2217
- const localVarHeaderParameter = {};
2218
- const localVarQueryParameter = {};
2219
- localVarHeaderParameter["Content-Type"] = "application/json";
2220
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2221
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2222
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2223
- localVarRequestOptions.data = serializeDataIfNeeded(emailUpdate, localVarRequestOptions, configuration);
2224
- return {
2225
- url: toPathString(localVarUrlObj),
2226
- options: localVarRequestOptions
2227
- };
2228
- }
2229
- };
2230
- };
2231
- var EmailsApiFp = function(configuration) {
2232
- const localVarAxiosParamCreator = EmailsApiAxiosParamCreator(configuration);
2233
- return {
2234
- /**
2235
- *
2236
- * @summary Emails Create
2237
- * @param {string} contactId
2238
- * @param {EmailCreate} emailCreate
2239
- * @param {*} [options] Override http request option.
2240
- * @throws {RequiredError}
2241
- */
2242
- async emailsCreate(contactId, emailCreate, options) {
2243
- const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
2244
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2245
- const localVarOperationServerBasePath = operationServerMap["EmailsApi.emailsCreate"]?.[localVarOperationServerIndex]?.url;
2246
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2247
- },
2248
- /**
2249
- *
2250
- * @summary Emails Delete
2251
- * @param {string} emailId
2252
- * @param {*} [options] Override http request option.
2253
- * @throws {RequiredError}
2254
- */
2255
- async emailsDelete(emailId, options) {
2256
- const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
2257
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2258
- const localVarOperationServerBasePath = operationServerMap["EmailsApi.emailsDelete"]?.[localVarOperationServerIndex]?.url;
2259
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2260
- },
2261
- /**
2262
- *
2263
- * @summary Emails Update
2264
- * @param {string} emailId
2265
- * @param {EmailUpdate} emailUpdate
2266
- * @param {*} [options] Override http request option.
2267
- * @throws {RequiredError}
2268
- */
2269
- async emailsUpdate(emailId, emailUpdate, options) {
2270
- const localVarAxiosArgs = await localVarAxiosParamCreator.emailsUpdate(emailId, emailUpdate, options);
2271
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2272
- const localVarOperationServerBasePath = operationServerMap["EmailsApi.emailsUpdate"]?.[localVarOperationServerIndex]?.url;
2273
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2274
- }
2275
- };
2276
- };
2277
- var EmailsApiFactory = function(configuration, basePath, axios) {
2278
- const localVarFp = EmailsApiFp(configuration);
2279
- return {
2280
- /**
2281
- *
2282
- * @summary Emails Create
2283
- * @param {string} contactId
2284
- * @param {EmailCreate} emailCreate
2285
- * @param {*} [options] Override http request option.
2286
- * @throws {RequiredError}
2287
- */
2288
- emailsCreate(contactId, emailCreate, options) {
2289
- return localVarFp.emailsCreate(contactId, emailCreate, options).then((request) => request(axios, basePath));
2290
- },
2291
- /**
2292
- *
2293
- * @summary Emails Delete
2294
- * @param {string} emailId
2295
- * @param {*} [options] Override http request option.
2296
- * @throws {RequiredError}
2297
- */
2298
- emailsDelete(emailId, options) {
2299
- return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
2300
- },
2301
- /**
2302
- *
2303
- * @summary Emails Update
2304
- * @param {string} emailId
2305
- * @param {EmailUpdate} emailUpdate
2306
- * @param {*} [options] Override http request option.
2307
- * @throws {RequiredError}
2308
- */
2309
- emailsUpdate(emailId, emailUpdate, options) {
2310
- return localVarFp.emailsUpdate(emailId, emailUpdate, options).then((request) => request(axios, basePath));
2311
- }
2312
- };
2313
- };
2314
- var EmailsApi = class extends BaseAPI {
2315
- /**
2316
- *
2317
- * @summary Emails Create
2318
- * @param {string} contactId
2319
- * @param {EmailCreate} emailCreate
2320
- * @param {*} [options] Override http request option.
2321
- * @throws {RequiredError}
2322
- * @memberof EmailsApi
2323
- */
2324
- emailsCreate(contactId, emailCreate, options) {
2325
- return EmailsApiFp(this.configuration).emailsCreate(contactId, emailCreate, options).then((request) => request(this.axios, this.basePath));
2326
- }
2327
- /**
2328
- *
2329
- * @summary Emails Delete
2330
- * @param {string} emailId
2331
- * @param {*} [options] Override http request option.
2332
- * @throws {RequiredError}
2333
- * @memberof EmailsApi
2334
- */
2335
- emailsDelete(emailId, options) {
2336
- return EmailsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
2337
- }
2338
- /**
2339
- *
2340
- * @summary Emails Update
2341
- * @param {string} emailId
2342
- * @param {EmailUpdate} emailUpdate
2343
- * @param {*} [options] Override http request option.
2344
- * @throws {RequiredError}
2345
- * @memberof EmailsApi
2346
- */
2347
- emailsUpdate(emailId, emailUpdate, options) {
2348
- return EmailsApiFp(this.configuration).emailsUpdate(emailId, emailUpdate, options).then((request) => request(this.axios, this.basePath));
2349
- }
2350
- };
2351
- var HostawayApiAxiosParamCreator = function(configuration) {
2352
- return {
2353
- /**
2354
- *
2355
- * @summary Unifiedwebhook
2356
- * @param {HostawayWebhook} hostawayWebhook
2357
- * @param {*} [options] Override http request option.
2358
- * @throws {RequiredError}
2359
- */
2360
- webhook: async (hostawayWebhook, options = {}) => {
2361
- assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
2362
- const localVarPath = `/hostaway-unified-webhooks`;
2363
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2364
- let baseOptions;
2365
- if (configuration) {
2366
- baseOptions = configuration.baseOptions;
2367
- }
2368
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2369
- const localVarHeaderParameter = {};
2370
- const localVarQueryParameter = {};
2371
- setBasicAuthToObject(localVarRequestOptions, configuration);
2372
- localVarHeaderParameter["Content-Type"] = "application/json";
2373
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2374
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2375
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2376
- localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
2377
- return {
2378
- url: toPathString(localVarUrlObj),
2379
- options: localVarRequestOptions
2380
- };
2381
- }
2382
- };
2383
- };
2384
- var HostawayApiFp = function(configuration) {
2385
- const localVarAxiosParamCreator = HostawayApiAxiosParamCreator(configuration);
2386
- return {
2387
- /**
2388
- *
2389
- * @summary Unifiedwebhook
2390
- * @param {HostawayWebhook} hostawayWebhook
1986
+ * @summary Unifiedwebhook
1987
+ * @param {HostawayWebhook} hostawayWebhook
2391
1988
  * @param {*} [options] Override http request option.
2392
1989
  * @throws {RequiredError}
2393
1990
  */
@@ -2541,7 +2138,7 @@ var ListingsApiAxiosParamCreator = function(configuration) {
2541
2138
  * @param {string | null} [cursor] Cursor for keyset paging
2542
2139
  * @param {number} [limit]
2543
2140
  * @param {PaginationDirection} [pageDir] Direction of paging
2544
- * @param {ListingSortBy} [sortBy] Sort key
2141
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
2545
2142
  * @param {SortOrder} [sortOrder] Sort order asc/desc
2546
2143
  * @param {*} [options] Override http request option.
2547
2144
  * @throws {RequiredError}
@@ -2611,7 +2208,7 @@ var ListingsApiFp = function(configuration) {
2611
2208
  * @param {string | null} [cursor] Cursor for keyset paging
2612
2209
  * @param {number} [limit]
2613
2210
  * @param {PaginationDirection} [pageDir] Direction of paging
2614
- * @param {ListingSortBy} [sortBy] Sort key
2211
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
2615
2212
  * @param {SortOrder} [sortOrder] Sort order asc/desc
2616
2213
  * @param {*} [options] Override http request option.
2617
2214
  * @throws {RequiredError}
@@ -2645,7 +2242,7 @@ var ListingsApiFactory = function(configuration, basePath, axios) {
2645
2242
  * @param {string | null} [cursor] Cursor for keyset paging
2646
2243
  * @param {number} [limit]
2647
2244
  * @param {PaginationDirection} [pageDir] Direction of paging
2648
- * @param {ListingSortBy} [sortBy] Sort key
2245
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
2649
2246
  * @param {SortOrder} [sortOrder] Sort order asc/desc
2650
2247
  * @param {*} [options] Override http request option.
2651
2248
  * @throws {RequiredError}
@@ -2675,7 +2272,7 @@ var ListingsApi = class extends BaseAPI {
2675
2272
  * @param {string | null} [cursor] Cursor for keyset paging
2676
2273
  * @param {number} [limit]
2677
2274
  * @param {PaginationDirection} [pageDir] Direction of paging
2678
- * @param {ListingSortBy} [sortBy] Sort key
2275
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
2679
2276
  * @param {SortOrder} [sortOrder] Sort order asc/desc
2680
2277
  * @param {*} [options] Override http request option.
2681
2278
  * @throws {RequiredError}
@@ -2756,470 +2353,6 @@ var ManagedPhoneNumbersApi = class extends BaseAPI {
2756
2353
  return ManagedPhoneNumbersApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
2757
2354
  }
2758
2355
  };
2759
- var MessagesApiAxiosParamCreator = function(configuration) {
2760
- return {
2761
- /**
2762
- *
2763
- * @summary Messages Create
2764
- * @param {string} conversationId
2765
- * @param {MessageCreate} messageCreate
2766
- * @param {*} [options] Override http request option.
2767
- * @throws {RequiredError}
2768
- */
2769
- messagesCreate: async (conversationId, messageCreate, options = {}) => {
2770
- assertParamExists("messagesCreate", "conversationId", conversationId);
2771
- assertParamExists("messagesCreate", "messageCreate", messageCreate);
2772
- const localVarPath = `/conversations/{conversationId}/messages`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
2773
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2774
- let baseOptions;
2775
- if (configuration) {
2776
- baseOptions = configuration.baseOptions;
2777
- }
2778
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
2779
- const localVarHeaderParameter = {};
2780
- const localVarQueryParameter = {};
2781
- localVarHeaderParameter["Content-Type"] = "application/json";
2782
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2783
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2784
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2785
- localVarRequestOptions.data = serializeDataIfNeeded(messageCreate, localVarRequestOptions, configuration);
2786
- return {
2787
- url: toPathString(localVarUrlObj),
2788
- options: localVarRequestOptions
2789
- };
2790
- },
2791
- /**
2792
- *
2793
- * @summary Messages Get
2794
- * @param {string} messageId
2795
- * @param {*} [options] Override http request option.
2796
- * @throws {RequiredError}
2797
- */
2798
- messagesGet: async (messageId, options = {}) => {
2799
- assertParamExists("messagesGet", "messageId", messageId);
2800
- const localVarPath = `/messages/{messageId}`.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
2801
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2802
- let baseOptions;
2803
- if (configuration) {
2804
- baseOptions = configuration.baseOptions;
2805
- }
2806
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2807
- const localVarHeaderParameter = {};
2808
- const localVarQueryParameter = {};
2809
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2810
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2811
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2812
- return {
2813
- url: toPathString(localVarUrlObj),
2814
- options: localVarRequestOptions
2815
- };
2816
- },
2817
- /**
2818
- *
2819
- * @summary Messages List
2820
- * @param {string | null} [searchString]
2821
- * @param {string | null} [contactId]
2822
- * @param {string | null} [conversationId]
2823
- * @param {string | null} [cursor] Cursor for keyset paging
2824
- * @param {number} [limit]
2825
- * @param {PaginationDirection} [pageDir] Direction of paging
2826
- * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2827
- * @param {SortOrder} [sortOrder] Sort order asc/desc
2828
- * @param {*} [options] Override http request option.
2829
- * @throws {RequiredError}
2830
- */
2831
- messagesList: async (searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options = {}) => {
2832
- const localVarPath = `/messages`;
2833
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2834
- let baseOptions;
2835
- if (configuration) {
2836
- baseOptions = configuration.baseOptions;
2837
- }
2838
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2839
- const localVarHeaderParameter = {};
2840
- const localVarQueryParameter = {};
2841
- if (searchString !== void 0) {
2842
- localVarQueryParameter["searchString"] = searchString;
2843
- }
2844
- if (contactId !== void 0) {
2845
- localVarQueryParameter["contactId"] = contactId;
2846
- }
2847
- if (conversationId !== void 0) {
2848
- localVarQueryParameter["conversationId"] = conversationId;
2849
- }
2850
- if (cursor !== void 0) {
2851
- localVarQueryParameter["cursor"] = cursor;
2852
- }
2853
- if (limit !== void 0) {
2854
- localVarQueryParameter["limit"] = limit;
2855
- }
2856
- if (pageDir !== void 0) {
2857
- localVarQueryParameter["pageDir"] = pageDir;
2858
- }
2859
- if (sortBy !== void 0) {
2860
- localVarQueryParameter["sortBy"] = sortBy;
2861
- }
2862
- if (sortOrder !== void 0) {
2863
- localVarQueryParameter["sortOrder"] = sortOrder;
2864
- }
2865
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2866
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2867
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2868
- return {
2869
- url: toPathString(localVarUrlObj),
2870
- options: localVarRequestOptions
2871
- };
2872
- }
2873
- };
2874
- };
2875
- var MessagesApiFp = function(configuration) {
2876
- const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration);
2877
- return {
2878
- /**
2879
- *
2880
- * @summary Messages Create
2881
- * @param {string} conversationId
2882
- * @param {MessageCreate} messageCreate
2883
- * @param {*} [options] Override http request option.
2884
- * @throws {RequiredError}
2885
- */
2886
- async messagesCreate(conversationId, messageCreate, options) {
2887
- const localVarAxiosArgs = await localVarAxiosParamCreator.messagesCreate(conversationId, messageCreate, options);
2888
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2889
- const localVarOperationServerBasePath = operationServerMap["MessagesApi.messagesCreate"]?.[localVarOperationServerIndex]?.url;
2890
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2891
- },
2892
- /**
2893
- *
2894
- * @summary Messages Get
2895
- * @param {string} messageId
2896
- * @param {*} [options] Override http request option.
2897
- * @throws {RequiredError}
2898
- */
2899
- async messagesGet(messageId, options) {
2900
- const localVarAxiosArgs = await localVarAxiosParamCreator.messagesGet(messageId, options);
2901
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2902
- const localVarOperationServerBasePath = operationServerMap["MessagesApi.messagesGet"]?.[localVarOperationServerIndex]?.url;
2903
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2904
- },
2905
- /**
2906
- *
2907
- * @summary Messages List
2908
- * @param {string | null} [searchString]
2909
- * @param {string | null} [contactId]
2910
- * @param {string | null} [conversationId]
2911
- * @param {string | null} [cursor] Cursor for keyset paging
2912
- * @param {number} [limit]
2913
- * @param {PaginationDirection} [pageDir] Direction of paging
2914
- * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2915
- * @param {SortOrder} [sortOrder] Sort order asc/desc
2916
- * @param {*} [options] Override http request option.
2917
- * @throws {RequiredError}
2918
- */
2919
- async messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2920
- const localVarAxiosArgs = await localVarAxiosParamCreator.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options);
2921
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2922
- const localVarOperationServerBasePath = operationServerMap["MessagesApi.messagesList"]?.[localVarOperationServerIndex]?.url;
2923
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2924
- }
2925
- };
2926
- };
2927
- var MessagesApiFactory = function(configuration, basePath, axios) {
2928
- const localVarFp = MessagesApiFp(configuration);
2929
- return {
2930
- /**
2931
- *
2932
- * @summary Messages Create
2933
- * @param {string} conversationId
2934
- * @param {MessageCreate} messageCreate
2935
- * @param {*} [options] Override http request option.
2936
- * @throws {RequiredError}
2937
- */
2938
- messagesCreate(conversationId, messageCreate, options) {
2939
- return localVarFp.messagesCreate(conversationId, messageCreate, options).then((request) => request(axios, basePath));
2940
- },
2941
- /**
2942
- *
2943
- * @summary Messages Get
2944
- * @param {string} messageId
2945
- * @param {*} [options] Override http request option.
2946
- * @throws {RequiredError}
2947
- */
2948
- messagesGet(messageId, options) {
2949
- return localVarFp.messagesGet(messageId, options).then((request) => request(axios, basePath));
2950
- },
2951
- /**
2952
- *
2953
- * @summary Messages List
2954
- * @param {string | null} [searchString]
2955
- * @param {string | null} [contactId]
2956
- * @param {string | null} [conversationId]
2957
- * @param {string | null} [cursor] Cursor for keyset paging
2958
- * @param {number} [limit]
2959
- * @param {PaginationDirection} [pageDir] Direction of paging
2960
- * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
2961
- * @param {SortOrder} [sortOrder] Sort order asc/desc
2962
- * @param {*} [options] Override http request option.
2963
- * @throws {RequiredError}
2964
- */
2965
- messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
2966
- return localVarFp.messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(axios, basePath));
2967
- }
2968
- };
2969
- };
2970
- var MessagesApi = class extends BaseAPI {
2971
- /**
2972
- *
2973
- * @summary Messages Create
2974
- * @param {string} conversationId
2975
- * @param {MessageCreate} messageCreate
2976
- * @param {*} [options] Override http request option.
2977
- * @throws {RequiredError}
2978
- * @memberof MessagesApi
2979
- */
2980
- messagesCreate(conversationId, messageCreate, options) {
2981
- return MessagesApiFp(this.configuration).messagesCreate(conversationId, messageCreate, options).then((request) => request(this.axios, this.basePath));
2982
- }
2983
- /**
2984
- *
2985
- * @summary Messages Get
2986
- * @param {string} messageId
2987
- * @param {*} [options] Override http request option.
2988
- * @throws {RequiredError}
2989
- * @memberof MessagesApi
2990
- */
2991
- messagesGet(messageId, options) {
2992
- return MessagesApiFp(this.configuration).messagesGet(messageId, options).then((request) => request(this.axios, this.basePath));
2993
- }
2994
- /**
2995
- *
2996
- * @summary Messages List
2997
- * @param {string | null} [searchString]
2998
- * @param {string | null} [contactId]
2999
- * @param {string | null} [conversationId]
3000
- * @param {string | null} [cursor] Cursor for keyset paging
3001
- * @param {number} [limit]
3002
- * @param {PaginationDirection} [pageDir] Direction of paging
3003
- * @param {SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy} [sortBy] Sort key
3004
- * @param {SortOrder} [sortOrder] Sort order asc/desc
3005
- * @param {*} [options] Override http request option.
3006
- * @throws {RequiredError}
3007
- * @memberof MessagesApi
3008
- */
3009
- messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options) {
3010
- return MessagesApiFp(this.configuration).messagesList(searchString, contactId, conversationId, cursor, limit, pageDir, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
3011
- }
3012
- };
3013
- var PhoneNumbersApiAxiosParamCreator = function(configuration) {
3014
- return {
3015
- /**
3016
- *
3017
- * @summary Phone_numbers Create
3018
- * @param {string} contactId
3019
- * @param {PhoneNumberCreate} phoneNumberCreate
3020
- * @param {*} [options] Override http request option.
3021
- * @throws {RequiredError}
3022
- */
3023
- phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
3024
- assertParamExists("phoneNumbersCreate", "contactId", contactId);
3025
- assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
3026
- const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
3027
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3028
- let baseOptions;
3029
- if (configuration) {
3030
- baseOptions = configuration.baseOptions;
3031
- }
3032
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3033
- const localVarHeaderParameter = {};
3034
- const localVarQueryParameter = {};
3035
- localVarHeaderParameter["Content-Type"] = "application/json";
3036
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3037
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3038
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3039
- localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
3040
- return {
3041
- url: toPathString(localVarUrlObj),
3042
- options: localVarRequestOptions
3043
- };
3044
- },
3045
- /**
3046
- *
3047
- * @summary Phone_numbers Delete
3048
- * @param {string} phoneNumberId
3049
- * @param {*} [options] Override http request option.
3050
- * @throws {RequiredError}
3051
- */
3052
- phoneNumbersDelete: async (phoneNumberId, options = {}) => {
3053
- assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
3054
- const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
3055
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3056
- let baseOptions;
3057
- if (configuration) {
3058
- baseOptions = configuration.baseOptions;
3059
- }
3060
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
3061
- const localVarHeaderParameter = {};
3062
- const localVarQueryParameter = {};
3063
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3064
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3065
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3066
- return {
3067
- url: toPathString(localVarUrlObj),
3068
- options: localVarRequestOptions
3069
- };
3070
- },
3071
- /**
3072
- *
3073
- * @summary Phone_numbers Update
3074
- * @param {string} phoneNumberId
3075
- * @param {PhoneNumberUpdate} phoneNumberUpdate
3076
- * @param {*} [options] Override http request option.
3077
- * @throws {RequiredError}
3078
- */
3079
- phoneNumbersUpdate: async (phoneNumberId, phoneNumberUpdate, options = {}) => {
3080
- assertParamExists("phoneNumbersUpdate", "phoneNumberId", phoneNumberId);
3081
- assertParamExists("phoneNumbersUpdate", "phoneNumberUpdate", phoneNumberUpdate);
3082
- const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
3083
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3084
- let baseOptions;
3085
- if (configuration) {
3086
- baseOptions = configuration.baseOptions;
3087
- }
3088
- const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
3089
- const localVarHeaderParameter = {};
3090
- const localVarQueryParameter = {};
3091
- localVarHeaderParameter["Content-Type"] = "application/json";
3092
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3093
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3094
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3095
- localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberUpdate, localVarRequestOptions, configuration);
3096
- return {
3097
- url: toPathString(localVarUrlObj),
3098
- options: localVarRequestOptions
3099
- };
3100
- }
3101
- };
3102
- };
3103
- var PhoneNumbersApiFp = function(configuration) {
3104
- const localVarAxiosParamCreator = PhoneNumbersApiAxiosParamCreator(configuration);
3105
- return {
3106
- /**
3107
- *
3108
- * @summary Phone_numbers Create
3109
- * @param {string} contactId
3110
- * @param {PhoneNumberCreate} phoneNumberCreate
3111
- * @param {*} [options] Override http request option.
3112
- * @throws {RequiredError}
3113
- */
3114
- async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
3115
- const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
3116
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3117
- const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersCreate"]?.[localVarOperationServerIndex]?.url;
3118
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3119
- },
3120
- /**
3121
- *
3122
- * @summary Phone_numbers Delete
3123
- * @param {string} phoneNumberId
3124
- * @param {*} [options] Override http request option.
3125
- * @throws {RequiredError}
3126
- */
3127
- async phoneNumbersDelete(phoneNumberId, options) {
3128
- const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
3129
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3130
- const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersDelete"]?.[localVarOperationServerIndex]?.url;
3131
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3132
- },
3133
- /**
3134
- *
3135
- * @summary Phone_numbers Update
3136
- * @param {string} phoneNumberId
3137
- * @param {PhoneNumberUpdate} phoneNumberUpdate
3138
- * @param {*} [options] Override http request option.
3139
- * @throws {RequiredError}
3140
- */
3141
- async phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
3142
- const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options);
3143
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3144
- const localVarOperationServerBasePath = operationServerMap["PhoneNumbersApi.phoneNumbersUpdate"]?.[localVarOperationServerIndex]?.url;
3145
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3146
- }
3147
- };
3148
- };
3149
- var PhoneNumbersApiFactory = function(configuration, basePath, axios) {
3150
- const localVarFp = PhoneNumbersApiFp(configuration);
3151
- return {
3152
- /**
3153
- *
3154
- * @summary Phone_numbers Create
3155
- * @param {string} contactId
3156
- * @param {PhoneNumberCreate} phoneNumberCreate
3157
- * @param {*} [options] Override http request option.
3158
- * @throws {RequiredError}
3159
- */
3160
- phoneNumbersCreate(contactId, phoneNumberCreate, options) {
3161
- return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
3162
- },
3163
- /**
3164
- *
3165
- * @summary Phone_numbers Delete
3166
- * @param {string} phoneNumberId
3167
- * @param {*} [options] Override http request option.
3168
- * @throws {RequiredError}
3169
- */
3170
- phoneNumbersDelete(phoneNumberId, options) {
3171
- return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
3172
- },
3173
- /**
3174
- *
3175
- * @summary Phone_numbers Update
3176
- * @param {string} phoneNumberId
3177
- * @param {PhoneNumberUpdate} phoneNumberUpdate
3178
- * @param {*} [options] Override http request option.
3179
- * @throws {RequiredError}
3180
- */
3181
- phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
3182
- return localVarFp.phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(axios, basePath));
3183
- }
3184
- };
3185
- };
3186
- var PhoneNumbersApi = class extends BaseAPI {
3187
- /**
3188
- *
3189
- * @summary Phone_numbers Create
3190
- * @param {string} contactId
3191
- * @param {PhoneNumberCreate} phoneNumberCreate
3192
- * @param {*} [options] Override http request option.
3193
- * @throws {RequiredError}
3194
- * @memberof PhoneNumbersApi
3195
- */
3196
- phoneNumbersCreate(contactId, phoneNumberCreate, options) {
3197
- return PhoneNumbersApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
3198
- }
3199
- /**
3200
- *
3201
- * @summary Phone_numbers Delete
3202
- * @param {string} phoneNumberId
3203
- * @param {*} [options] Override http request option.
3204
- * @throws {RequiredError}
3205
- * @memberof PhoneNumbersApi
3206
- */
3207
- phoneNumbersDelete(phoneNumberId, options) {
3208
- return PhoneNumbersApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
3209
- }
3210
- /**
3211
- *
3212
- * @summary Phone_numbers Update
3213
- * @param {string} phoneNumberId
3214
- * @param {PhoneNumberUpdate} phoneNumberUpdate
3215
- * @param {*} [options] Override http request option.
3216
- * @throws {RequiredError}
3217
- * @memberof PhoneNumbersApi
3218
- */
3219
- phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options) {
3220
- return PhoneNumbersApiFp(this.configuration).phoneNumbersUpdate(phoneNumberId, phoneNumberUpdate, options).then((request) => request(this.axios, this.basePath));
3221
- }
3222
- };
3223
2356
  var ProvidersApiAxiosParamCreator = function(configuration) {
3224
2357
  return {
3225
2358
  /**
@@ -3891,7 +3024,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
3891
3024
  * @param {string | null} [cursor] Cursor for keyset paging
3892
3025
  * @param {number} [limit]
3893
3026
  * @param {PaginationDirection} [pageDir] Direction of paging
3894
- * @param {ContactSortBy} [sortBy] Sort key
3027
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
3895
3028
  * @param {SortOrder} [sortOrder] Sort order asc/desc
3896
3029
  * @param {*} [options] Override http request option.
3897
3030
  * @throws {RequiredError}
@@ -4310,7 +3443,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
4310
3443
  * @param {string | null} [cursor] Cursor for keyset paging
4311
3444
  * @param {number} [limit]
4312
3445
  * @param {PaginationDirection} [pageDir] Direction of paging
4313
- * @param {ListingSortBy} [sortBy] Sort key
3446
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
4314
3447
  * @param {SortOrder} [sortOrder] Sort order asc/desc
4315
3448
  * @param {*} [options] Override http request option.
4316
3449
  * @throws {RequiredError}
@@ -4910,7 +4043,7 @@ var UnboundApiFp = function(configuration) {
4910
4043
  * @param {string | null} [cursor] Cursor for keyset paging
4911
4044
  * @param {number} [limit]
4912
4045
  * @param {PaginationDirection} [pageDir] Direction of paging
4913
- * @param {ContactSortBy} [sortBy] Sort key
4046
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
4914
4047
  * @param {SortOrder} [sortOrder] Sort order asc/desc
4915
4048
  * @param {*} [options] Override http request option.
4916
4049
  * @throws {RequiredError}
@@ -5099,7 +4232,7 @@ var UnboundApiFp = function(configuration) {
5099
4232
  * @param {string | null} [cursor] Cursor for keyset paging
5100
4233
  * @param {number} [limit]
5101
4234
  * @param {PaginationDirection} [pageDir] Direction of paging
5102
- * @param {ListingSortBy} [sortBy] Sort key
4235
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
5103
4236
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5104
4237
  * @param {*} [options] Override http request option.
5105
4238
  * @throws {RequiredError}
@@ -5402,7 +4535,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5402
4535
  * @param {string | null} [cursor] Cursor for keyset paging
5403
4536
  * @param {number} [limit]
5404
4537
  * @param {PaginationDirection} [pageDir] Direction of paging
5405
- * @param {ContactSortBy} [sortBy] Sort key
4538
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
5406
4539
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5407
4540
  * @param {*} [options] Override http request option.
5408
4541
  * @throws {RequiredError}
@@ -5552,7 +4685,7 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
5552
4685
  * @param {string | null} [cursor] Cursor for keyset paging
5553
4686
  * @param {number} [limit]
5554
4687
  * @param {PaginationDirection} [pageDir] Direction of paging
5555
- * @param {ListingSortBy} [sortBy] Sort key
4688
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
5556
4689
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5557
4690
  * @param {*} [options] Override http request option.
5558
4691
  * @throws {RequiredError}
@@ -5816,7 +4949,7 @@ var UnboundApi = class extends BaseAPI {
5816
4949
  * @param {string | null} [cursor] Cursor for keyset paging
5817
4950
  * @param {number} [limit]
5818
4951
  * @param {PaginationDirection} [pageDir] Direction of paging
5819
- * @param {ContactSortBy} [sortBy] Sort key
4952
+ * @param {SrcResourceModelsContactsModelContactsModelContactSortBy} [sortBy] Sort key
5820
4953
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5821
4954
  * @param {*} [options] Override http request option.
5822
4955
  * @throws {RequiredError}
@@ -5979,7 +5112,7 @@ var UnboundApi = class extends BaseAPI {
5979
5112
  * @param {string | null} [cursor] Cursor for keyset paging
5980
5113
  * @param {number} [limit]
5981
5114
  * @param {PaginationDirection} [pageDir] Direction of paging
5982
- * @param {ListingSortBy} [sortBy] Sort key
5115
+ * @param {SrcResourceModelsListingsModelListingBaseSortBy} [sortBy] Sort key
5983
5116
  * @param {SortOrder} [sortOrder] Sort order asc/desc
5984
5117
  * @param {*} [options] Override http request option.
5985
5118
  * @throws {RequiredError}
@@ -6252,13 +5385,8 @@ export {
6252
5385
  AccountsApiAxiosParamCreator,
6253
5386
  AccountsApiFactory,
6254
5387
  AccountsApiFp,
6255
- AddressesApi,
6256
- AddressesApiAxiosParamCreator,
6257
- AddressesApiFactory,
6258
- AddressesApiFp,
6259
5388
  Configuration,
6260
5389
  ContactListingType,
6261
- ContactSortBy,
6262
5390
  ContactsApi,
6263
5391
  ContactsApiAxiosParamCreator,
6264
5392
  ContactsApiFactory,
@@ -6268,10 +5396,6 @@ export {
6268
5396
  ConversationsApiAxiosParamCreator,
6269
5397
  ConversationsApiFactory,
6270
5398
  ConversationsApiFp,
6271
- EmailsApi,
6272
- EmailsApiAxiosParamCreator,
6273
- EmailsApiFactory,
6274
- EmailsApiFp,
6275
5399
  HostawayApi,
6276
5400
  HostawayApiAxiosParamCreator,
6277
5401
  HostawayApiFactory,
@@ -6280,7 +5404,6 @@ export {
6280
5404
  InquiriesApiAxiosParamCreator,
6281
5405
  InquiriesApiFactory,
6282
5406
  InquiriesApiFp,
6283
- ListingSortBy,
6284
5407
  ListingsApi,
6285
5408
  ListingsApiAxiosParamCreator,
6286
5409
  ListingsApiFactory,
@@ -6291,25 +5414,19 @@ export {
6291
5414
  ManagedPhoneNumbersApiFp,
6292
5415
  MessageDirection,
6293
5416
  MessageStatus,
6294
- MessagesApi,
6295
- MessagesApiAxiosParamCreator,
6296
- MessagesApiFactory,
6297
- MessagesApiFp,
6298
5417
  PaginationDirection,
6299
- PhoneNumbersApi,
6300
- PhoneNumbersApiAxiosParamCreator,
6301
- PhoneNumbersApiFactory,
6302
- PhoneNumbersApiFp,
6303
5418
  ProviderMessageApiConversationTypeEnum,
6304
5419
  ProvidersApi,
6305
5420
  ProvidersApiAxiosParamCreator,
6306
5421
  ProvidersApiFactory,
6307
5422
  ProvidersApiFp,
5423
+ ReservationChannelTypes,
6308
5424
  ReservationsApi,
6309
5425
  ReservationsApiAxiosParamCreator,
6310
5426
  ReservationsApiFactory,
6311
5427
  ReservationsApiFp,
6312
5428
  SortOrder,
5429
+ SrcResourceModelsContactsModelContactsModelContactSortBy,
6313
5430
  SrcResourceModelsConversationsModelConversationsModelConversationSortBy,
6314
5431
  SrcResourceModelsHelperModelsCustomBaseModelCreateApi4ConversationTypeEnum,
6315
5432
  SrcResourceModelsHelperModelsCustomBaseModelCreateApi5ConversationTypeEnum,
@@ -6317,6 +5434,7 @@ export {
6317
5434
  SrcResourceModelsHelperModelsCustomBaseModelCreateApi7ConversationTypeEnum,
6318
5435
  SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum,
6319
5436
  SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum,
5437
+ SrcResourceModelsListingsModelListingBaseSortBy,
6320
5438
  SrcResourceModelsMessagesModelMessagesModelMessageBaseSortBy,
6321
5439
  SrcResourceModelsReservationsModelReservationBaseModelSortBy,
6322
5440
  TwilioInboundSenderTypeDataApiDirectionEnum,