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

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
@@ -110,6 +110,23 @@ var PaginationDirection = {
110
110
  var ProviderMessageApiConversationTypeEnum = {
111
111
  Provider: "PROVIDER"
112
112
  };
113
+ var ReservationChannelTypes = {
114
+ Airbnb: "AIRBNB",
115
+ Vrbo: "VRBO",
116
+ BookingCom: "BOOKING_COM",
117
+ Expedia: "EXPEDIA",
118
+ HomeawayIcal: "HOMEAWAY_ICAL",
119
+ VrboIcal: "VRBO_ICAL",
120
+ HostawayDirect: "HOSTAWAY_DIRECT",
121
+ HostawayBookingEngine: "HOSTAWAY_BOOKING_ENGINE",
122
+ CustomIcal: "CUSTOM_ICAL",
123
+ TripadvisorIcal: "TRIPADVISOR_ICAL",
124
+ Wordpress: "WORDPRESS",
125
+ Marriott: "MARRIOTT",
126
+ Partner: "PARTNER",
127
+ Gds: "GDS",
128
+ Google: "GOOGLE"
129
+ };
113
130
  var SortOrder = {
114
131
  Asc: "asc",
115
132
  Desc: "desc"
@@ -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
  /**
@@ -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,248 +1965,40 @@ 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
1986
+ * @summary Unifiedwebhook
1987
+ * @param {HostawayWebhook} hostawayWebhook
2177
1988
  * @param {*} [options] Override http request option.
2178
1989
  * @throws {RequiredError}
2179
1990
  */
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
2391
- * @param {*} [options] Override http request option.
2392
- * @throws {RequiredError}
2393
- */
2394
- async webhook(hostawayWebhook, options) {
2395
- const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
2396
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2397
- const localVarOperationServerBasePath = operationServerMap["HostawayApi.webhook"]?.[localVarOperationServerIndex]?.url;
2398
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2399
- }
2400
- };
2401
- };
2402
- var HostawayApiFactory = function(configuration, basePath, axios) {
2403
- const localVarFp = HostawayApiFp(configuration);
2404
- return {
1991
+ async webhook(hostawayWebhook, options) {
1992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
1993
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1994
+ const localVarOperationServerBasePath = operationServerMap["HostawayApi.webhook"]?.[localVarOperationServerIndex]?.url;
1995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1996
+ }
1997
+ };
1998
+ };
1999
+ var HostawayApiFactory = function(configuration, basePath, axios) {
2000
+ const localVarFp = HostawayApiFp(configuration);
2001
+ return {
2405
2002
  /**
2406
2003
  *
2407
2004
  * @summary Unifiedwebhook
@@ -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
  /**
@@ -6252,10 +5385,6 @@ 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
5390
  ContactSortBy,
@@ -6268,10 +5397,6 @@ export {
6268
5397
  ConversationsApiAxiosParamCreator,
6269
5398
  ConversationsApiFactory,
6270
5399
  ConversationsApiFp,
6271
- EmailsApi,
6272
- EmailsApiAxiosParamCreator,
6273
- EmailsApiFactory,
6274
- EmailsApiFp,
6275
5400
  HostawayApi,
6276
5401
  HostawayApiAxiosParamCreator,
6277
5402
  HostawayApiFactory,
@@ -6291,20 +5416,13 @@ export {
6291
5416
  ManagedPhoneNumbersApiFp,
6292
5417
  MessageDirection,
6293
5418
  MessageStatus,
6294
- MessagesApi,
6295
- MessagesApiAxiosParamCreator,
6296
- MessagesApiFactory,
6297
- MessagesApiFp,
6298
5419
  PaginationDirection,
6299
- PhoneNumbersApi,
6300
- PhoneNumbersApiAxiosParamCreator,
6301
- PhoneNumbersApiFactory,
6302
- PhoneNumbersApiFp,
6303
5420
  ProviderMessageApiConversationTypeEnum,
6304
5421
  ProvidersApi,
6305
5422
  ProvidersApiAxiosParamCreator,
6306
5423
  ProvidersApiFactory,
6307
5424
  ProvidersApiFp,
5425
+ ReservationChannelTypes,
6308
5426
  ReservationsApi,
6309
5427
  ReservationsApiAxiosParamCreator,
6310
5428
  ReservationsApiFactory,