@ember-home/unbound-ts-client 0.0.7 → 0.0.9
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.d.mts +1320 -207
- package/dist/index.d.ts +1320 -207
- package/dist/index.js +1742 -329
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1723 -310
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,12 +75,13 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/api.ts
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
var ContactType = {
|
|
79
|
+
Guest: "GUEST",
|
|
80
|
+
Owner: "OWNER",
|
|
81
|
+
Lead: "LEAD",
|
|
82
|
+
Basic: "BASIC"
|
|
82
83
|
};
|
|
83
|
-
var
|
|
84
|
+
var DataSource = {
|
|
84
85
|
Hostaway: "HOSTAWAY",
|
|
85
86
|
Guesty: "GUESTY",
|
|
86
87
|
Manual: "MANUAL"
|
|
@@ -112,25 +113,20 @@ var OwnerDataCreateContactTypeEnum = {
|
|
|
112
113
|
var OwnerDataUpdateContactTypeEnum = {
|
|
113
114
|
Owner: "OWNER"
|
|
114
115
|
};
|
|
115
|
-
var
|
|
116
|
-
Hostaway: "HOSTAWAY",
|
|
117
|
-
Guesty: "GUESTY",
|
|
118
|
-
Manual: "MANUAL"
|
|
119
|
-
};
|
|
120
|
-
var ContactsApiAxiosParamCreator = function(configuration) {
|
|
116
|
+
var AddressesApiAxiosParamCreator = function(configuration) {
|
|
121
117
|
return {
|
|
122
118
|
/**
|
|
123
119
|
*
|
|
124
|
-
* @summary
|
|
125
|
-
* @param {string}
|
|
126
|
-
* @param {
|
|
120
|
+
* @summary Addresses Create
|
|
121
|
+
* @param {string} contactId
|
|
122
|
+
* @param {AddressCreate} addressCreate
|
|
127
123
|
* @param {*} [options] Override http request option.
|
|
128
124
|
* @throws {RequiredError}
|
|
129
125
|
*/
|
|
130
|
-
|
|
131
|
-
assertParamExists("
|
|
132
|
-
assertParamExists("
|
|
133
|
-
const localVarPath = `/contacts
|
|
126
|
+
addressesCreate: async (contactId, addressCreate, options = {}) => {
|
|
127
|
+
assertParamExists("addressesCreate", "contactId", contactId);
|
|
128
|
+
assertParamExists("addressesCreate", "addressCreate", addressCreate);
|
|
129
|
+
const localVarPath = `/contacts/{contactId}/addresses`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
134
130
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
135
131
|
let baseOptions;
|
|
136
132
|
if (configuration) {
|
|
@@ -139,14 +135,11 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
139
135
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
140
136
|
const localVarHeaderParameter = {};
|
|
141
137
|
const localVarQueryParameter = {};
|
|
142
|
-
if (customerId !== void 0) {
|
|
143
|
-
localVarQueryParameter["customerId"] = customerId;
|
|
144
|
-
}
|
|
145
138
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
146
139
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
147
140
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
141
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
149
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
142
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
150
143
|
return {
|
|
151
144
|
url: toPathString(localVarUrlObj),
|
|
152
145
|
options: localVarRequestOptions
|
|
@@ -154,14 +147,14 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
154
147
|
},
|
|
155
148
|
/**
|
|
156
149
|
*
|
|
157
|
-
* @summary
|
|
158
|
-
* @param {string}
|
|
150
|
+
* @summary Addresses Delete
|
|
151
|
+
* @param {string} addressId
|
|
159
152
|
* @param {*} [options] Override http request option.
|
|
160
153
|
* @throws {RequiredError}
|
|
161
154
|
*/
|
|
162
|
-
|
|
163
|
-
assertParamExists("
|
|
164
|
-
const localVarPath = `/
|
|
155
|
+
addressesDelete: async (addressId, options = {}) => {
|
|
156
|
+
assertParamExists("addressesDelete", "addressId", addressId);
|
|
157
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
165
158
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
166
159
|
let baseOptions;
|
|
167
160
|
if (configuration) {
|
|
@@ -180,70 +173,16 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
180
173
|
},
|
|
181
174
|
/**
|
|
182
175
|
*
|
|
183
|
-
* @summary
|
|
184
|
-
* @param {string}
|
|
185
|
-
* @param {
|
|
186
|
-
* @throws {RequiredError}
|
|
187
|
-
*/
|
|
188
|
-
contactsGet: async (contactId, options = {}) => {
|
|
189
|
-
assertParamExists("contactsGet", "contactId", contactId);
|
|
190
|
-
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
191
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
192
|
-
let baseOptions;
|
|
193
|
-
if (configuration) {
|
|
194
|
-
baseOptions = configuration.baseOptions;
|
|
195
|
-
}
|
|
196
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
197
|
-
const localVarHeaderParameter = {};
|
|
198
|
-
const localVarQueryParameter = {};
|
|
199
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
202
|
-
return {
|
|
203
|
-
url: toPathString(localVarUrlObj),
|
|
204
|
-
options: localVarRequestOptions
|
|
205
|
-
};
|
|
206
|
-
},
|
|
207
|
-
/**
|
|
208
|
-
*
|
|
209
|
-
* @summary Contacts List
|
|
210
|
-
* @param {string} [statusFilter]
|
|
211
|
-
* @param {*} [options] Override http request option.
|
|
212
|
-
* @throws {RequiredError}
|
|
213
|
-
*/
|
|
214
|
-
contactsList: async (statusFilter, options = {}) => {
|
|
215
|
-
const localVarPath = `/contacts`;
|
|
216
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
217
|
-
let baseOptions;
|
|
218
|
-
if (configuration) {
|
|
219
|
-
baseOptions = configuration.baseOptions;
|
|
220
|
-
}
|
|
221
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
222
|
-
const localVarHeaderParameter = {};
|
|
223
|
-
const localVarQueryParameter = {};
|
|
224
|
-
if (statusFilter !== void 0) {
|
|
225
|
-
localVarQueryParameter["statusFilter"] = statusFilter;
|
|
226
|
-
}
|
|
227
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
230
|
-
return {
|
|
231
|
-
url: toPathString(localVarUrlObj),
|
|
232
|
-
options: localVarRequestOptions
|
|
233
|
-
};
|
|
234
|
-
},
|
|
235
|
-
/**
|
|
236
|
-
*
|
|
237
|
-
* @summary Contacts Update
|
|
238
|
-
* @param {string} contactId
|
|
239
|
-
* @param {ContactUpdate} contactUpdate
|
|
176
|
+
* @summary Addresses Update
|
|
177
|
+
* @param {string} addressId
|
|
178
|
+
* @param {AddressUpdate} addressUpdate
|
|
240
179
|
* @param {*} [options] Override http request option.
|
|
241
180
|
* @throws {RequiredError}
|
|
242
181
|
*/
|
|
243
|
-
|
|
244
|
-
assertParamExists("
|
|
245
|
-
assertParamExists("
|
|
246
|
-
const localVarPath = `/
|
|
182
|
+
addressesUpdate: async (addressId, addressUpdate, options = {}) => {
|
|
183
|
+
assertParamExists("addressesUpdate", "addressId", addressId);
|
|
184
|
+
assertParamExists("addressesUpdate", "addressUpdate", addressUpdate);
|
|
185
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
247
186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
248
187
|
let baseOptions;
|
|
249
188
|
if (configuration) {
|
|
@@ -256,7 +195,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
256
195
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
196
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
197
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
259
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
198
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressUpdate, localVarRequestOptions, configuration);
|
|
260
199
|
return {
|
|
261
200
|
url: toPathString(localVarUrlObj),
|
|
262
201
|
options: localVarRequestOptions
|
|
@@ -264,206 +203,140 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
264
203
|
}
|
|
265
204
|
};
|
|
266
205
|
};
|
|
267
|
-
var
|
|
268
|
-
const localVarAxiosParamCreator =
|
|
206
|
+
var AddressesApiFp = function(configuration) {
|
|
207
|
+
const localVarAxiosParamCreator = AddressesApiAxiosParamCreator(configuration);
|
|
269
208
|
return {
|
|
270
209
|
/**
|
|
271
210
|
*
|
|
272
|
-
* @summary
|
|
273
|
-
* @param {string}
|
|
274
|
-
* @param {
|
|
211
|
+
* @summary Addresses Create
|
|
212
|
+
* @param {string} contactId
|
|
213
|
+
* @param {AddressCreate} addressCreate
|
|
275
214
|
* @param {*} [options] Override http request option.
|
|
276
215
|
* @throws {RequiredError}
|
|
277
216
|
*/
|
|
278
|
-
async
|
|
279
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
217
|
+
async addressesCreate(contactId, addressCreate, options) {
|
|
218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
280
219
|
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _2 => _2.serverIndex]), () => ( 0));
|
|
281
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _3 => _3["
|
|
220
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _3 => _3["AddressesApi.addressesCreate"], 'optionalAccess', _4 => _4[localVarOperationServerIndex], 'optionalAccess', _5 => _5.url]);
|
|
282
221
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
283
222
|
},
|
|
284
223
|
/**
|
|
285
224
|
*
|
|
286
|
-
* @summary
|
|
287
|
-
* @param {string}
|
|
225
|
+
* @summary Addresses Delete
|
|
226
|
+
* @param {string} addressId
|
|
288
227
|
* @param {*} [options] Override http request option.
|
|
289
228
|
* @throws {RequiredError}
|
|
290
229
|
*/
|
|
291
|
-
async
|
|
292
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
230
|
+
async addressesDelete(addressId, options) {
|
|
231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
293
232
|
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _6 => _6.serverIndex]), () => ( 0));
|
|
294
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _7 => _7["
|
|
233
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _7 => _7["AddressesApi.addressesDelete"], 'optionalAccess', _8 => _8[localVarOperationServerIndex], 'optionalAccess', _9 => _9.url]);
|
|
295
234
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
296
235
|
},
|
|
297
236
|
/**
|
|
298
237
|
*
|
|
299
|
-
* @summary
|
|
300
|
-
* @param {string}
|
|
238
|
+
* @summary Addresses Update
|
|
239
|
+
* @param {string} addressId
|
|
240
|
+
* @param {AddressUpdate} addressUpdate
|
|
301
241
|
* @param {*} [options] Override http request option.
|
|
302
242
|
* @throws {RequiredError}
|
|
303
243
|
*/
|
|
304
|
-
async
|
|
305
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
244
|
+
async addressesUpdate(addressId, addressUpdate, options) {
|
|
245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
306
246
|
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _10 => _10.serverIndex]), () => ( 0));
|
|
307
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _11 => _11["
|
|
308
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
*
|
|
312
|
-
* @summary Contacts List
|
|
313
|
-
* @param {string} [statusFilter]
|
|
314
|
-
* @param {*} [options] Override http request option.
|
|
315
|
-
* @throws {RequiredError}
|
|
316
|
-
*/
|
|
317
|
-
async contactsList(statusFilter, options) {
|
|
318
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(statusFilter, options);
|
|
319
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _14 => _14.serverIndex]), () => ( 0));
|
|
320
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _15 => _15["ContactsApi.contactsList"], 'optionalAccess', _16 => _16[localVarOperationServerIndex], 'optionalAccess', _17 => _17.url]);
|
|
321
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
322
|
-
},
|
|
323
|
-
/**
|
|
324
|
-
*
|
|
325
|
-
* @summary Contacts Update
|
|
326
|
-
* @param {string} contactId
|
|
327
|
-
* @param {ContactUpdate} contactUpdate
|
|
328
|
-
* @param {*} [options] Override http request option.
|
|
329
|
-
* @throws {RequiredError}
|
|
330
|
-
*/
|
|
331
|
-
async contactsUpdate(contactId, contactUpdate, options) {
|
|
332
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
333
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _18 => _18.serverIndex]), () => ( 0));
|
|
334
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _19 => _19["ContactsApi.contactsUpdate"], 'optionalAccess', _20 => _20[localVarOperationServerIndex], 'optionalAccess', _21 => _21.url]);
|
|
247
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _11 => _11["AddressesApi.addressesUpdate"], 'optionalAccess', _12 => _12[localVarOperationServerIndex], 'optionalAccess', _13 => _13.url]);
|
|
335
248
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
336
249
|
}
|
|
337
250
|
};
|
|
338
251
|
};
|
|
339
|
-
var
|
|
340
|
-
const localVarFp =
|
|
252
|
+
var AddressesApiFactory = function(configuration, basePath, axios) {
|
|
253
|
+
const localVarFp = AddressesApiFp(configuration);
|
|
341
254
|
return {
|
|
342
255
|
/**
|
|
343
256
|
*
|
|
344
|
-
* @summary
|
|
345
|
-
* @param {string} customerId
|
|
346
|
-
* @param {ContactCreate} contactCreate
|
|
347
|
-
* @param {*} [options] Override http request option.
|
|
348
|
-
* @throws {RequiredError}
|
|
349
|
-
*/
|
|
350
|
-
contactsCreate(customerId, contactCreate, options) {
|
|
351
|
-
return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
*
|
|
355
|
-
* @summary Contacts Delete
|
|
356
|
-
* @param {string} contactId
|
|
357
|
-
* @param {*} [options] Override http request option.
|
|
358
|
-
* @throws {RequiredError}
|
|
359
|
-
*/
|
|
360
|
-
contactsDelete(contactId, options) {
|
|
361
|
-
return localVarFp.contactsDelete(contactId, options).then((request) => request(axios, basePath));
|
|
362
|
-
},
|
|
363
|
-
/**
|
|
364
|
-
*
|
|
365
|
-
* @summary Contacts Get
|
|
257
|
+
* @summary Addresses Create
|
|
366
258
|
* @param {string} contactId
|
|
259
|
+
* @param {AddressCreate} addressCreate
|
|
367
260
|
* @param {*} [options] Override http request option.
|
|
368
261
|
* @throws {RequiredError}
|
|
369
262
|
*/
|
|
370
|
-
|
|
371
|
-
return localVarFp.
|
|
263
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
264
|
+
return localVarFp.addressesCreate(contactId, addressCreate, options).then((request) => request(axios, basePath));
|
|
372
265
|
},
|
|
373
266
|
/**
|
|
374
267
|
*
|
|
375
|
-
* @summary
|
|
376
|
-
* @param {string}
|
|
268
|
+
* @summary Addresses Delete
|
|
269
|
+
* @param {string} addressId
|
|
377
270
|
* @param {*} [options] Override http request option.
|
|
378
271
|
* @throws {RequiredError}
|
|
379
272
|
*/
|
|
380
|
-
|
|
381
|
-
return localVarFp.
|
|
273
|
+
addressesDelete(addressId, options) {
|
|
274
|
+
return localVarFp.addressesDelete(addressId, options).then((request) => request(axios, basePath));
|
|
382
275
|
},
|
|
383
276
|
/**
|
|
384
277
|
*
|
|
385
|
-
* @summary
|
|
386
|
-
* @param {string}
|
|
387
|
-
* @param {
|
|
278
|
+
* @summary Addresses Update
|
|
279
|
+
* @param {string} addressId
|
|
280
|
+
* @param {AddressUpdate} addressUpdate
|
|
388
281
|
* @param {*} [options] Override http request option.
|
|
389
282
|
* @throws {RequiredError}
|
|
390
283
|
*/
|
|
391
|
-
|
|
392
|
-
return localVarFp.
|
|
284
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
285
|
+
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
393
286
|
}
|
|
394
287
|
};
|
|
395
288
|
};
|
|
396
|
-
var
|
|
397
|
-
/**
|
|
398
|
-
*
|
|
399
|
-
* @summary Contacts Create
|
|
400
|
-
* @param {string} customerId
|
|
401
|
-
* @param {ContactCreate} contactCreate
|
|
402
|
-
* @param {*} [options] Override http request option.
|
|
403
|
-
* @throws {RequiredError}
|
|
404
|
-
* @memberof ContactsApi
|
|
405
|
-
*/
|
|
406
|
-
contactsCreate(customerId, contactCreate, options) {
|
|
407
|
-
return ContactsApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
*
|
|
411
|
-
* @summary Contacts Delete
|
|
412
|
-
* @param {string} contactId
|
|
413
|
-
* @param {*} [options] Override http request option.
|
|
414
|
-
* @throws {RequiredError}
|
|
415
|
-
* @memberof ContactsApi
|
|
416
|
-
*/
|
|
417
|
-
contactsDelete(contactId, options) {
|
|
418
|
-
return ContactsApiFp(this.configuration).contactsDelete(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
419
|
-
}
|
|
289
|
+
var AddressesApi = class extends BaseAPI {
|
|
420
290
|
/**
|
|
421
291
|
*
|
|
422
|
-
* @summary
|
|
292
|
+
* @summary Addresses Create
|
|
423
293
|
* @param {string} contactId
|
|
294
|
+
* @param {AddressCreate} addressCreate
|
|
424
295
|
* @param {*} [options] Override http request option.
|
|
425
296
|
* @throws {RequiredError}
|
|
426
|
-
* @memberof
|
|
297
|
+
* @memberof AddressesApi
|
|
427
298
|
*/
|
|
428
|
-
|
|
429
|
-
return
|
|
299
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
300
|
+
return AddressesApiFp(this.configuration).addressesCreate(contactId, addressCreate, options).then((request) => request(this.axios, this.basePath));
|
|
430
301
|
}
|
|
431
302
|
/**
|
|
432
303
|
*
|
|
433
|
-
* @summary
|
|
434
|
-
* @param {string}
|
|
304
|
+
* @summary Addresses Delete
|
|
305
|
+
* @param {string} addressId
|
|
435
306
|
* @param {*} [options] Override http request option.
|
|
436
307
|
* @throws {RequiredError}
|
|
437
|
-
* @memberof
|
|
308
|
+
* @memberof AddressesApi
|
|
438
309
|
*/
|
|
439
|
-
|
|
440
|
-
return
|
|
310
|
+
addressesDelete(addressId, options) {
|
|
311
|
+
return AddressesApiFp(this.configuration).addressesDelete(addressId, options).then((request) => request(this.axios, this.basePath));
|
|
441
312
|
}
|
|
442
313
|
/**
|
|
443
314
|
*
|
|
444
|
-
* @summary
|
|
445
|
-
* @param {string}
|
|
446
|
-
* @param {
|
|
315
|
+
* @summary Addresses Update
|
|
316
|
+
* @param {string} addressId
|
|
317
|
+
* @param {AddressUpdate} addressUpdate
|
|
447
318
|
* @param {*} [options] Override http request option.
|
|
448
319
|
* @throws {RequiredError}
|
|
449
|
-
* @memberof
|
|
320
|
+
* @memberof AddressesApi
|
|
450
321
|
*/
|
|
451
|
-
|
|
452
|
-
return
|
|
322
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
323
|
+
return AddressesApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
453
324
|
}
|
|
454
325
|
};
|
|
455
|
-
var
|
|
326
|
+
var ContactsApiAxiosParamCreator = function(configuration) {
|
|
456
327
|
return {
|
|
457
328
|
/**
|
|
458
329
|
*
|
|
459
|
-
* @summary
|
|
460
|
-
* @param {
|
|
330
|
+
* @summary Addresses Create
|
|
331
|
+
* @param {string} contactId
|
|
332
|
+
* @param {AddressCreate} addressCreate
|
|
461
333
|
* @param {*} [options] Override http request option.
|
|
462
334
|
* @throws {RequiredError}
|
|
463
335
|
*/
|
|
464
|
-
|
|
465
|
-
assertParamExists("
|
|
466
|
-
|
|
336
|
+
addressesCreate: async (contactId, addressCreate, options = {}) => {
|
|
337
|
+
assertParamExists("addressesCreate", "contactId", contactId);
|
|
338
|
+
assertParamExists("addressesCreate", "addressCreate", addressCreate);
|
|
339
|
+
const localVarPath = `/contacts/{contactId}/addresses`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
467
340
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
341
|
let baseOptions;
|
|
469
342
|
if (configuration) {
|
|
@@ -472,87 +345,34 @@ var HostawayApiAxiosParamCreator = function(configuration) {
|
|
|
472
345
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
473
346
|
const localVarHeaderParameter = {};
|
|
474
347
|
const localVarQueryParameter = {};
|
|
475
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
476
348
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
477
349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
478
350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
351
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
480
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
352
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
481
353
|
return {
|
|
482
354
|
url: toPathString(localVarUrlObj),
|
|
483
355
|
options: localVarRequestOptions
|
|
484
356
|
};
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
var HostawayApiFp = function(configuration) {
|
|
489
|
-
const localVarAxiosParamCreator = HostawayApiAxiosParamCreator(configuration);
|
|
490
|
-
return {
|
|
491
|
-
/**
|
|
492
|
-
*
|
|
493
|
-
* @summary Unifiedwebhook
|
|
494
|
-
* @param {object} body
|
|
495
|
-
* @param {*} [options] Override http request option.
|
|
496
|
-
* @throws {RequiredError}
|
|
497
|
-
*/
|
|
498
|
-
async webhook(body, options) {
|
|
499
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
|
|
500
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _22 => _22.serverIndex]), () => ( 0));
|
|
501
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _23 => _23["HostawayApi.webhook"], 'optionalAccess', _24 => _24[localVarOperationServerIndex], 'optionalAccess', _25 => _25.url]);
|
|
502
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
};
|
|
506
|
-
var HostawayApiFactory = function(configuration, basePath, axios) {
|
|
507
|
-
const localVarFp = HostawayApiFp(configuration);
|
|
508
|
-
return {
|
|
357
|
+
},
|
|
509
358
|
/**
|
|
510
359
|
*
|
|
511
|
-
* @summary
|
|
512
|
-
* @param {
|
|
513
|
-
* @param {*} [options] Override http request option.
|
|
514
|
-
* @throws {RequiredError}
|
|
515
|
-
*/
|
|
516
|
-
webhook(body, options) {
|
|
517
|
-
return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
};
|
|
521
|
-
var HostawayApi = class extends BaseAPI {
|
|
522
|
-
/**
|
|
523
|
-
*
|
|
524
|
-
* @summary Unifiedwebhook
|
|
525
|
-
* @param {object} body
|
|
526
|
-
* @param {*} [options] Override http request option.
|
|
527
|
-
* @throws {RequiredError}
|
|
528
|
-
* @memberof HostawayApi
|
|
529
|
-
*/
|
|
530
|
-
webhook(body, options) {
|
|
531
|
-
return HostawayApiFp(this.configuration).webhook(body, options).then((request) => request(this.axios, this.basePath));
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
535
|
-
return {
|
|
536
|
-
/**
|
|
537
|
-
* List all contacts
|
|
538
|
-
* @summary Reservations List
|
|
539
|
-
* @param {string} [contactId]
|
|
360
|
+
* @summary Addresses Delete
|
|
361
|
+
* @param {string} addressId
|
|
540
362
|
* @param {*} [options] Override http request option.
|
|
541
363
|
* @throws {RequiredError}
|
|
542
364
|
*/
|
|
543
|
-
|
|
544
|
-
|
|
365
|
+
addressesDelete: async (addressId, options = {}) => {
|
|
366
|
+
assertParamExists("addressesDelete", "addressId", addressId);
|
|
367
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
545
368
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
369
|
let baseOptions;
|
|
547
370
|
if (configuration) {
|
|
548
371
|
baseOptions = configuration.baseOptions;
|
|
549
372
|
}
|
|
550
|
-
const localVarRequestOptions = { method: "
|
|
373
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
551
374
|
const localVarHeaderParameter = {};
|
|
552
375
|
const localVarQueryParameter = {};
|
|
553
|
-
if (contactId !== void 0) {
|
|
554
|
-
localVarQueryParameter["contactId"] = contactId;
|
|
555
|
-
}
|
|
556
376
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
557
377
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
558
378
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -560,23 +380,1150 @@ var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
|
560
380
|
url: toPathString(localVarUrlObj),
|
|
561
381
|
options: localVarRequestOptions
|
|
562
382
|
};
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
var ReservationsApiFp = function(configuration) {
|
|
567
|
-
const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration);
|
|
568
|
-
return {
|
|
383
|
+
},
|
|
569
384
|
/**
|
|
570
|
-
*
|
|
571
|
-
* @summary
|
|
572
|
-
* @param {string}
|
|
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: async (addressId, addressUpdate, options = {}) => {
|
|
393
|
+
assertParamExists("addressesUpdate", "addressId", addressId);
|
|
394
|
+
assertParamExists("addressesUpdate", "addressUpdate", addressUpdate);
|
|
395
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
397
|
+
let baseOptions;
|
|
398
|
+
if (configuration) {
|
|
399
|
+
baseOptions = configuration.baseOptions;
|
|
400
|
+
}
|
|
401
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
402
|
+
const localVarHeaderParameter = {};
|
|
403
|
+
const localVarQueryParameter = {};
|
|
404
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
408
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressUpdate, localVarRequestOptions, configuration);
|
|
409
|
+
return {
|
|
410
|
+
url: toPathString(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions
|
|
412
|
+
};
|
|
413
|
+
},
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @summary Contacts Create
|
|
417
|
+
* @param {string} customerId
|
|
418
|
+
* @param {ContactCreate} contactCreate
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
contactsCreate: async (customerId, contactCreate, options = {}) => {
|
|
423
|
+
assertParamExists("contactsCreate", "customerId", customerId);
|
|
424
|
+
assertParamExists("contactsCreate", "contactCreate", contactCreate);
|
|
425
|
+
const localVarPath = `/contacts`;
|
|
426
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
427
|
+
let baseOptions;
|
|
428
|
+
if (configuration) {
|
|
429
|
+
baseOptions = configuration.baseOptions;
|
|
430
|
+
}
|
|
431
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
432
|
+
const localVarHeaderParameter = {};
|
|
433
|
+
const localVarQueryParameter = {};
|
|
434
|
+
if (customerId !== void 0) {
|
|
435
|
+
localVarQueryParameter["customerId"] = customerId;
|
|
436
|
+
}
|
|
437
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
438
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
440
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
441
|
+
localVarRequestOptions.data = serializeDataIfNeeded(contactCreate, localVarRequestOptions, configuration);
|
|
442
|
+
return {
|
|
443
|
+
url: toPathString(localVarUrlObj),
|
|
444
|
+
options: localVarRequestOptions
|
|
445
|
+
};
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @summary Contacts Delete
|
|
450
|
+
* @param {string} contactId
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
contactsDelete: async (contactId, options = {}) => {
|
|
455
|
+
assertParamExists("contactsDelete", "contactId", contactId);
|
|
456
|
+
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
463
|
+
const localVarHeaderParameter = {};
|
|
464
|
+
const localVarQueryParameter = {};
|
|
465
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
467
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
468
|
+
return {
|
|
469
|
+
url: toPathString(localVarUrlObj),
|
|
470
|
+
options: localVarRequestOptions
|
|
471
|
+
};
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* @summary Contacts Get
|
|
476
|
+
* @param {string} contactId
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
contactsGet: async (contactId, options = {}) => {
|
|
481
|
+
assertParamExists("contactsGet", "contactId", contactId);
|
|
482
|
+
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
483
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
484
|
+
let baseOptions;
|
|
485
|
+
if (configuration) {
|
|
486
|
+
baseOptions = configuration.baseOptions;
|
|
487
|
+
}
|
|
488
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
489
|
+
const localVarHeaderParameter = {};
|
|
490
|
+
const localVarQueryParameter = {};
|
|
491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
493
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
494
|
+
return {
|
|
495
|
+
url: toPathString(localVarUrlObj),
|
|
496
|
+
options: localVarRequestOptions
|
|
497
|
+
};
|
|
498
|
+
},
|
|
499
|
+
/**
|
|
500
|
+
*
|
|
501
|
+
* @summary Contacts List
|
|
502
|
+
* @param {ContactType} [contactType]
|
|
503
|
+
* @param {string} [searchString]
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
contactsList: async (contactType, searchString, options = {}) => {
|
|
508
|
+
const localVarPath = `/contacts`;
|
|
509
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
510
|
+
let baseOptions;
|
|
511
|
+
if (configuration) {
|
|
512
|
+
baseOptions = configuration.baseOptions;
|
|
513
|
+
}
|
|
514
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
515
|
+
const localVarHeaderParameter = {};
|
|
516
|
+
const localVarQueryParameter = {};
|
|
517
|
+
if (contactType !== void 0) {
|
|
518
|
+
localVarQueryParameter["contactType"] = contactType;
|
|
519
|
+
}
|
|
520
|
+
if (searchString !== void 0) {
|
|
521
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
522
|
+
}
|
|
523
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
524
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
525
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
526
|
+
return {
|
|
527
|
+
url: toPathString(localVarUrlObj),
|
|
528
|
+
options: localVarRequestOptions
|
|
529
|
+
};
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @summary Contacts Update
|
|
534
|
+
* @param {string} contactId
|
|
535
|
+
* @param {ContactUpdate} contactUpdate
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
contactsUpdate: async (contactId, contactUpdate, options = {}) => {
|
|
540
|
+
assertParamExists("contactsUpdate", "contactId", contactId);
|
|
541
|
+
assertParamExists("contactsUpdate", "contactUpdate", contactUpdate);
|
|
542
|
+
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
|
+
let baseOptions;
|
|
545
|
+
if (configuration) {
|
|
546
|
+
baseOptions = configuration.baseOptions;
|
|
547
|
+
}
|
|
548
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
549
|
+
const localVarHeaderParameter = {};
|
|
550
|
+
const localVarQueryParameter = {};
|
|
551
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
552
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
553
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
554
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
555
|
+
localVarRequestOptions.data = serializeDataIfNeeded(contactUpdate, localVarRequestOptions, configuration);
|
|
556
|
+
return {
|
|
557
|
+
url: toPathString(localVarUrlObj),
|
|
558
|
+
options: localVarRequestOptions
|
|
559
|
+
};
|
|
560
|
+
},
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @summary Emails Create
|
|
564
|
+
* @param {string} contactId
|
|
565
|
+
* @param {EmailCreate} emailCreate
|
|
566
|
+
* @param {*} [options] Override http request option.
|
|
567
|
+
* @throws {RequiredError}
|
|
568
|
+
*/
|
|
569
|
+
emailsCreate: async (contactId, emailCreate, options = {}) => {
|
|
570
|
+
assertParamExists("emailsCreate", "contactId", contactId);
|
|
571
|
+
assertParamExists("emailsCreate", "emailCreate", emailCreate);
|
|
572
|
+
const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
574
|
+
let baseOptions;
|
|
575
|
+
if (configuration) {
|
|
576
|
+
baseOptions = configuration.baseOptions;
|
|
577
|
+
}
|
|
578
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
579
|
+
const localVarHeaderParameter = {};
|
|
580
|
+
const localVarQueryParameter = {};
|
|
581
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
584
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
585
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
|
|
586
|
+
return {
|
|
587
|
+
url: toPathString(localVarUrlObj),
|
|
588
|
+
options: localVarRequestOptions
|
|
589
|
+
};
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @summary Emails Delete
|
|
594
|
+
* @param {string} emailId
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
emailsDelete: async (emailId, options = {}) => {
|
|
599
|
+
assertParamExists("emailsDelete", "emailId", emailId);
|
|
600
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
601
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
602
|
+
let baseOptions;
|
|
603
|
+
if (configuration) {
|
|
604
|
+
baseOptions = configuration.baseOptions;
|
|
605
|
+
}
|
|
606
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
607
|
+
const localVarHeaderParameter = {};
|
|
608
|
+
const localVarQueryParameter = {};
|
|
609
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
610
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
611
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
612
|
+
return {
|
|
613
|
+
url: toPathString(localVarUrlObj),
|
|
614
|
+
options: localVarRequestOptions
|
|
615
|
+
};
|
|
616
|
+
},
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @summary Phones Create
|
|
620
|
+
* @param {string} contactId
|
|
621
|
+
* @param {PhoneCreate} phoneCreate
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
phonesCreate: async (contactId, phoneCreate, options = {}) => {
|
|
626
|
+
assertParamExists("phonesCreate", "contactId", contactId);
|
|
627
|
+
assertParamExists("phonesCreate", "phoneCreate", phoneCreate);
|
|
628
|
+
const localVarPath = `/contacts/{contactId}/phones`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
629
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
630
|
+
let baseOptions;
|
|
631
|
+
if (configuration) {
|
|
632
|
+
baseOptions = configuration.baseOptions;
|
|
633
|
+
}
|
|
634
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
635
|
+
const localVarHeaderParameter = {};
|
|
636
|
+
const localVarQueryParameter = {};
|
|
637
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
638
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
640
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
641
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneCreate, localVarRequestOptions, configuration);
|
|
642
|
+
return {
|
|
643
|
+
url: toPathString(localVarUrlObj),
|
|
644
|
+
options: localVarRequestOptions
|
|
645
|
+
};
|
|
646
|
+
},
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @summary Phones Delete
|
|
650
|
+
* @param {string} phoneId
|
|
651
|
+
* @param {*} [options] Override http request option.
|
|
652
|
+
* @throws {RequiredError}
|
|
653
|
+
*/
|
|
654
|
+
phonesDelete: async (phoneId, options = {}) => {
|
|
655
|
+
assertParamExists("phonesDelete", "phoneId", phoneId);
|
|
656
|
+
const localVarPath = `/phones/{phoneId}`.replace(`{${"phoneId"}}`, encodeURIComponent(String(phoneId)));
|
|
657
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
658
|
+
let baseOptions;
|
|
659
|
+
if (configuration) {
|
|
660
|
+
baseOptions = configuration.baseOptions;
|
|
661
|
+
}
|
|
662
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
663
|
+
const localVarHeaderParameter = {};
|
|
664
|
+
const localVarQueryParameter = {};
|
|
665
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
668
|
+
return {
|
|
669
|
+
url: toPathString(localVarUrlObj),
|
|
670
|
+
options: localVarRequestOptions
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
var ContactsApiFp = function(configuration) {
|
|
676
|
+
const localVarAxiosParamCreator = ContactsApiAxiosParamCreator(configuration);
|
|
677
|
+
return {
|
|
678
|
+
/**
|
|
679
|
+
*
|
|
680
|
+
* @summary Addresses Create
|
|
681
|
+
* @param {string} contactId
|
|
682
|
+
* @param {AddressCreate} addressCreate
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
async addressesCreate(contactId, addressCreate, options) {
|
|
687
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
688
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _14 => _14.serverIndex]), () => ( 0));
|
|
689
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _15 => _15["ContactsApi.addressesCreate"], 'optionalAccess', _16 => _16[localVarOperationServerIndex], 'optionalAccess', _17 => _17.url]);
|
|
690
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
691
|
+
},
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @summary Addresses Delete
|
|
695
|
+
* @param {string} addressId
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
async addressesDelete(addressId, options) {
|
|
700
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
701
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _18 => _18.serverIndex]), () => ( 0));
|
|
702
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _19 => _19["ContactsApi.addressesDelete"], 'optionalAccess', _20 => _20[localVarOperationServerIndex], 'optionalAccess', _21 => _21.url]);
|
|
703
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
704
|
+
},
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @summary Addresses Update
|
|
708
|
+
* @param {string} addressId
|
|
709
|
+
* @param {AddressUpdate} addressUpdate
|
|
710
|
+
* @param {*} [options] Override http request option.
|
|
711
|
+
* @throws {RequiredError}
|
|
712
|
+
*/
|
|
713
|
+
async addressesUpdate(addressId, addressUpdate, options) {
|
|
714
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
715
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _22 => _22.serverIndex]), () => ( 0));
|
|
716
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _23 => _23["ContactsApi.addressesUpdate"], 'optionalAccess', _24 => _24[localVarOperationServerIndex], 'optionalAccess', _25 => _25.url]);
|
|
717
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
718
|
+
},
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @summary Contacts Create
|
|
722
|
+
* @param {string} customerId
|
|
723
|
+
* @param {ContactCreate} contactCreate
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
async contactsCreate(customerId, contactCreate, options) {
|
|
728
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(customerId, contactCreate, options);
|
|
729
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _26 => _26.serverIndex]), () => ( 0));
|
|
730
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _27 => _27["ContactsApi.contactsCreate"], 'optionalAccess', _28 => _28[localVarOperationServerIndex], 'optionalAccess', _29 => _29.url]);
|
|
731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
732
|
+
},
|
|
733
|
+
/**
|
|
734
|
+
*
|
|
735
|
+
* @summary Contacts Delete
|
|
736
|
+
* @param {string} contactId
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
async contactsDelete(contactId, options) {
|
|
741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
742
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _30 => _30.serverIndex]), () => ( 0));
|
|
743
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _31 => _31["ContactsApi.contactsDelete"], 'optionalAccess', _32 => _32[localVarOperationServerIndex], 'optionalAccess', _33 => _33.url]);
|
|
744
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
745
|
+
},
|
|
746
|
+
/**
|
|
747
|
+
*
|
|
748
|
+
* @summary Contacts Get
|
|
749
|
+
* @param {string} contactId
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
async contactsGet(contactId, options) {
|
|
754
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
755
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _34 => _34.serverIndex]), () => ( 0));
|
|
756
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _35 => _35["ContactsApi.contactsGet"], 'optionalAccess', _36 => _36[localVarOperationServerIndex], 'optionalAccess', _37 => _37.url]);
|
|
757
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
758
|
+
},
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @summary Contacts List
|
|
762
|
+
* @param {ContactType} [contactType]
|
|
763
|
+
* @param {string} [searchString]
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
*/
|
|
767
|
+
async contactsList(contactType, searchString, options) {
|
|
768
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(contactType, searchString, options);
|
|
769
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _38 => _38.serverIndex]), () => ( 0));
|
|
770
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _39 => _39["ContactsApi.contactsList"], 'optionalAccess', _40 => _40[localVarOperationServerIndex], 'optionalAccess', _41 => _41.url]);
|
|
771
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @summary Contacts Update
|
|
776
|
+
* @param {string} contactId
|
|
777
|
+
* @param {ContactUpdate} contactUpdate
|
|
778
|
+
* @param {*} [options] Override http request option.
|
|
779
|
+
* @throws {RequiredError}
|
|
780
|
+
*/
|
|
781
|
+
async contactsUpdate(contactId, contactUpdate, options) {
|
|
782
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
783
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _42 => _42.serverIndex]), () => ( 0));
|
|
784
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _43 => _43["ContactsApi.contactsUpdate"], 'optionalAccess', _44 => _44[localVarOperationServerIndex], 'optionalAccess', _45 => _45.url]);
|
|
785
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
786
|
+
},
|
|
787
|
+
/**
|
|
788
|
+
*
|
|
789
|
+
* @summary Emails Create
|
|
790
|
+
* @param {string} contactId
|
|
791
|
+
* @param {EmailCreate} emailCreate
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
async emailsCreate(contactId, emailCreate, options) {
|
|
796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
797
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _46 => _46.serverIndex]), () => ( 0));
|
|
798
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _47 => _47["ContactsApi.emailsCreate"], 'optionalAccess', _48 => _48[localVarOperationServerIndex], 'optionalAccess', _49 => _49.url]);
|
|
799
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
800
|
+
},
|
|
801
|
+
/**
|
|
802
|
+
*
|
|
803
|
+
* @summary Emails Delete
|
|
804
|
+
* @param {string} emailId
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
async emailsDelete(emailId, options) {
|
|
809
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
810
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _50 => _50.serverIndex]), () => ( 0));
|
|
811
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _51 => _51["ContactsApi.emailsDelete"], 'optionalAccess', _52 => _52[localVarOperationServerIndex], 'optionalAccess', _53 => _53.url]);
|
|
812
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
813
|
+
},
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @summary Phones Create
|
|
817
|
+
* @param {string} contactId
|
|
818
|
+
* @param {PhoneCreate} phoneCreate
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
async phonesCreate(contactId, phoneCreate, options) {
|
|
823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
824
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _54 => _54.serverIndex]), () => ( 0));
|
|
825
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _55 => _55["ContactsApi.phonesCreate"], 'optionalAccess', _56 => _56[localVarOperationServerIndex], 'optionalAccess', _57 => _57.url]);
|
|
826
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
827
|
+
},
|
|
828
|
+
/**
|
|
829
|
+
*
|
|
830
|
+
* @summary Phones Delete
|
|
831
|
+
* @param {string} phoneId
|
|
832
|
+
* @param {*} [options] Override http request option.
|
|
833
|
+
* @throws {RequiredError}
|
|
834
|
+
*/
|
|
835
|
+
async phonesDelete(phoneId, options) {
|
|
836
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
837
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _58 => _58.serverIndex]), () => ( 0));
|
|
838
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _59 => _59["ContactsApi.phonesDelete"], 'optionalAccess', _60 => _60[localVarOperationServerIndex], 'optionalAccess', _61 => _61.url]);
|
|
839
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
844
|
+
const localVarFp = ContactsApiFp(configuration);
|
|
845
|
+
return {
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @summary Addresses Create
|
|
849
|
+
* @param {string} contactId
|
|
850
|
+
* @param {AddressCreate} addressCreate
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
855
|
+
return localVarFp.addressesCreate(contactId, addressCreate, options).then((request) => request(axios, basePath));
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
*
|
|
859
|
+
* @summary Addresses Delete
|
|
860
|
+
* @param {string} addressId
|
|
861
|
+
* @param {*} [options] Override http request option.
|
|
862
|
+
* @throws {RequiredError}
|
|
863
|
+
*/
|
|
864
|
+
addressesDelete(addressId, options) {
|
|
865
|
+
return localVarFp.addressesDelete(addressId, options).then((request) => request(axios, basePath));
|
|
866
|
+
},
|
|
867
|
+
/**
|
|
868
|
+
*
|
|
869
|
+
* @summary Addresses Update
|
|
870
|
+
* @param {string} addressId
|
|
871
|
+
* @param {AddressUpdate} addressUpdate
|
|
872
|
+
* @param {*} [options] Override http request option.
|
|
873
|
+
* @throws {RequiredError}
|
|
874
|
+
*/
|
|
875
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
876
|
+
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
*
|
|
880
|
+
* @summary Contacts Create
|
|
881
|
+
* @param {string} customerId
|
|
882
|
+
* @param {ContactCreate} contactCreate
|
|
883
|
+
* @param {*} [options] Override http request option.
|
|
884
|
+
* @throws {RequiredError}
|
|
885
|
+
*/
|
|
886
|
+
contactsCreate(customerId, contactCreate, options) {
|
|
887
|
+
return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
|
|
888
|
+
},
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @summary Contacts Delete
|
|
892
|
+
* @param {string} contactId
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
contactsDelete(contactId, options) {
|
|
897
|
+
return localVarFp.contactsDelete(contactId, options).then((request) => request(axios, basePath));
|
|
898
|
+
},
|
|
899
|
+
/**
|
|
900
|
+
*
|
|
901
|
+
* @summary Contacts Get
|
|
902
|
+
* @param {string} contactId
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
*/
|
|
906
|
+
contactsGet(contactId, options) {
|
|
907
|
+
return localVarFp.contactsGet(contactId, options).then((request) => request(axios, basePath));
|
|
908
|
+
},
|
|
909
|
+
/**
|
|
910
|
+
*
|
|
911
|
+
* @summary Contacts List
|
|
912
|
+
* @param {ContactType} [contactType]
|
|
913
|
+
* @param {string} [searchString]
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
contactsList(contactType, searchString, options) {
|
|
918
|
+
return localVarFp.contactsList(contactType, searchString, options).then((request) => request(axios, basePath));
|
|
919
|
+
},
|
|
920
|
+
/**
|
|
921
|
+
*
|
|
922
|
+
* @summary Contacts Update
|
|
923
|
+
* @param {string} contactId
|
|
924
|
+
* @param {ContactUpdate} contactUpdate
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @throws {RequiredError}
|
|
927
|
+
*/
|
|
928
|
+
contactsUpdate(contactId, contactUpdate, options) {
|
|
929
|
+
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
930
|
+
},
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @summary Emails Create
|
|
934
|
+
* @param {string} contactId
|
|
935
|
+
* @param {EmailCreate} emailCreate
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
940
|
+
return localVarFp.emailsCreate(contactId, emailCreate, options).then((request) => request(axios, basePath));
|
|
941
|
+
},
|
|
942
|
+
/**
|
|
943
|
+
*
|
|
944
|
+
* @summary Emails Delete
|
|
945
|
+
* @param {string} emailId
|
|
946
|
+
* @param {*} [options] Override http request option.
|
|
947
|
+
* @throws {RequiredError}
|
|
948
|
+
*/
|
|
949
|
+
emailsDelete(emailId, options) {
|
|
950
|
+
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
951
|
+
},
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @summary Phones Create
|
|
955
|
+
* @param {string} contactId
|
|
956
|
+
* @param {PhoneCreate} phoneCreate
|
|
957
|
+
* @param {*} [options] Override http request option.
|
|
958
|
+
* @throws {RequiredError}
|
|
959
|
+
*/
|
|
960
|
+
phonesCreate(contactId, phoneCreate, options) {
|
|
961
|
+
return localVarFp.phonesCreate(contactId, phoneCreate, options).then((request) => request(axios, basePath));
|
|
962
|
+
},
|
|
963
|
+
/**
|
|
964
|
+
*
|
|
965
|
+
* @summary Phones Delete
|
|
966
|
+
* @param {string} phoneId
|
|
967
|
+
* @param {*} [options] Override http request option.
|
|
968
|
+
* @throws {RequiredError}
|
|
969
|
+
*/
|
|
970
|
+
phonesDelete(phoneId, options) {
|
|
971
|
+
return localVarFp.phonesDelete(phoneId, options).then((request) => request(axios, basePath));
|
|
972
|
+
}
|
|
973
|
+
};
|
|
974
|
+
};
|
|
975
|
+
var ContactsApi = class extends BaseAPI {
|
|
976
|
+
/**
|
|
977
|
+
*
|
|
978
|
+
* @summary Addresses Create
|
|
979
|
+
* @param {string} contactId
|
|
980
|
+
* @param {AddressCreate} addressCreate
|
|
981
|
+
* @param {*} [options] Override http request option.
|
|
982
|
+
* @throws {RequiredError}
|
|
983
|
+
* @memberof ContactsApi
|
|
984
|
+
*/
|
|
985
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
986
|
+
return ContactsApiFp(this.configuration).addressesCreate(contactId, addressCreate, options).then((request) => request(this.axios, this.basePath));
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
*
|
|
990
|
+
* @summary Addresses Delete
|
|
991
|
+
* @param {string} addressId
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
* @memberof ContactsApi
|
|
995
|
+
*/
|
|
996
|
+
addressesDelete(addressId, options) {
|
|
997
|
+
return ContactsApiFp(this.configuration).addressesDelete(addressId, options).then((request) => request(this.axios, this.basePath));
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @summary Addresses Update
|
|
1002
|
+
* @param {string} addressId
|
|
1003
|
+
* @param {AddressUpdate} addressUpdate
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
* @memberof ContactsApi
|
|
1007
|
+
*/
|
|
1008
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
1009
|
+
return ContactsApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @summary Contacts Create
|
|
1014
|
+
* @param {string} customerId
|
|
1015
|
+
* @param {ContactCreate} contactCreate
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
* @memberof ContactsApi
|
|
1019
|
+
*/
|
|
1020
|
+
contactsCreate(customerId, contactCreate, options) {
|
|
1021
|
+
return ContactsApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @summary Contacts Delete
|
|
1026
|
+
* @param {string} contactId
|
|
1027
|
+
* @param {*} [options] Override http request option.
|
|
1028
|
+
* @throws {RequiredError}
|
|
1029
|
+
* @memberof ContactsApi
|
|
1030
|
+
*/
|
|
1031
|
+
contactsDelete(contactId, options) {
|
|
1032
|
+
return ContactsApiFp(this.configuration).contactsDelete(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
*
|
|
1036
|
+
* @summary Contacts Get
|
|
1037
|
+
* @param {string} contactId
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
* @memberof ContactsApi
|
|
1041
|
+
*/
|
|
1042
|
+
contactsGet(contactId, options) {
|
|
1043
|
+
return ContactsApiFp(this.configuration).contactsGet(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @summary Contacts List
|
|
1048
|
+
* @param {ContactType} [contactType]
|
|
1049
|
+
* @param {string} [searchString]
|
|
1050
|
+
* @param {*} [options] Override http request option.
|
|
1051
|
+
* @throws {RequiredError}
|
|
1052
|
+
* @memberof ContactsApi
|
|
1053
|
+
*/
|
|
1054
|
+
contactsList(contactType, searchString, options) {
|
|
1055
|
+
return ContactsApiFp(this.configuration).contactsList(contactType, searchString, options).then((request) => request(this.axios, this.basePath));
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @summary Contacts Update
|
|
1060
|
+
* @param {string} contactId
|
|
1061
|
+
* @param {ContactUpdate} contactUpdate
|
|
1062
|
+
* @param {*} [options] Override http request option.
|
|
1063
|
+
* @throws {RequiredError}
|
|
1064
|
+
* @memberof ContactsApi
|
|
1065
|
+
*/
|
|
1066
|
+
contactsUpdate(contactId, contactUpdate, options) {
|
|
1067
|
+
return ContactsApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @summary Emails Create
|
|
1072
|
+
* @param {string} contactId
|
|
1073
|
+
* @param {EmailCreate} emailCreate
|
|
1074
|
+
* @param {*} [options] Override http request option.
|
|
1075
|
+
* @throws {RequiredError}
|
|
1076
|
+
* @memberof ContactsApi
|
|
1077
|
+
*/
|
|
1078
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
1079
|
+
return ContactsApiFp(this.configuration).emailsCreate(contactId, emailCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
*
|
|
1083
|
+
* @summary Emails Delete
|
|
1084
|
+
* @param {string} emailId
|
|
1085
|
+
* @param {*} [options] Override http request option.
|
|
1086
|
+
* @throws {RequiredError}
|
|
1087
|
+
* @memberof ContactsApi
|
|
1088
|
+
*/
|
|
1089
|
+
emailsDelete(emailId, options) {
|
|
1090
|
+
return ContactsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @summary Phones Create
|
|
1095
|
+
* @param {string} contactId
|
|
1096
|
+
* @param {PhoneCreate} phoneCreate
|
|
1097
|
+
* @param {*} [options] Override http request option.
|
|
1098
|
+
* @throws {RequiredError}
|
|
1099
|
+
* @memberof ContactsApi
|
|
1100
|
+
*/
|
|
1101
|
+
phonesCreate(contactId, phoneCreate, options) {
|
|
1102
|
+
return ContactsApiFp(this.configuration).phonesCreate(contactId, phoneCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
*
|
|
1106
|
+
* @summary Phones Delete
|
|
1107
|
+
* @param {string} phoneId
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
* @memberof ContactsApi
|
|
1111
|
+
*/
|
|
1112
|
+
phonesDelete(phoneId, options) {
|
|
1113
|
+
return ContactsApiFp(this.configuration).phonesDelete(phoneId, options).then((request) => request(this.axios, this.basePath));
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
var EmailsApiAxiosParamCreator = function(configuration) {
|
|
1117
|
+
return {
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @summary Emails Create
|
|
1121
|
+
* @param {string} contactId
|
|
1122
|
+
* @param {EmailCreate} emailCreate
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
*/
|
|
1126
|
+
emailsCreate: async (contactId, emailCreate, options = {}) => {
|
|
1127
|
+
assertParamExists("emailsCreate", "contactId", contactId);
|
|
1128
|
+
assertParamExists("emailsCreate", "emailCreate", emailCreate);
|
|
1129
|
+
const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1131
|
+
let baseOptions;
|
|
1132
|
+
if (configuration) {
|
|
1133
|
+
baseOptions = configuration.baseOptions;
|
|
1134
|
+
}
|
|
1135
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1136
|
+
const localVarHeaderParameter = {};
|
|
1137
|
+
const localVarQueryParameter = {};
|
|
1138
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1141
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1142
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
|
|
1143
|
+
return {
|
|
1144
|
+
url: toPathString(localVarUrlObj),
|
|
1145
|
+
options: localVarRequestOptions
|
|
1146
|
+
};
|
|
1147
|
+
},
|
|
1148
|
+
/**
|
|
1149
|
+
*
|
|
1150
|
+
* @summary Emails Delete
|
|
1151
|
+
* @param {string} emailId
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
*/
|
|
1155
|
+
emailsDelete: async (emailId, options = {}) => {
|
|
1156
|
+
assertParamExists("emailsDelete", "emailId", emailId);
|
|
1157
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
1158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1159
|
+
let baseOptions;
|
|
1160
|
+
if (configuration) {
|
|
1161
|
+
baseOptions = configuration.baseOptions;
|
|
1162
|
+
}
|
|
1163
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1164
|
+
const localVarHeaderParameter = {};
|
|
1165
|
+
const localVarQueryParameter = {};
|
|
1166
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1168
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1169
|
+
return {
|
|
1170
|
+
url: toPathString(localVarUrlObj),
|
|
1171
|
+
options: localVarRequestOptions
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
var EmailsApiFp = function(configuration) {
|
|
1177
|
+
const localVarAxiosParamCreator = EmailsApiAxiosParamCreator(configuration);
|
|
1178
|
+
return {
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @summary Emails Create
|
|
1182
|
+
* @param {string} contactId
|
|
1183
|
+
* @param {EmailCreate} emailCreate
|
|
1184
|
+
* @param {*} [options] Override http request option.
|
|
1185
|
+
* @throws {RequiredError}
|
|
1186
|
+
*/
|
|
1187
|
+
async emailsCreate(contactId, emailCreate, options) {
|
|
1188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
1189
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _62 => _62.serverIndex]), () => ( 0));
|
|
1190
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _63 => _63["EmailsApi.emailsCreate"], 'optionalAccess', _64 => _64[localVarOperationServerIndex], 'optionalAccess', _65 => _65.url]);
|
|
1191
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1192
|
+
},
|
|
1193
|
+
/**
|
|
1194
|
+
*
|
|
1195
|
+
* @summary Emails Delete
|
|
1196
|
+
* @param {string} emailId
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
async emailsDelete(emailId, options) {
|
|
1201
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
1202
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _66 => _66.serverIndex]), () => ( 0));
|
|
1203
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _67 => _67["EmailsApi.emailsDelete"], 'optionalAccess', _68 => _68[localVarOperationServerIndex], 'optionalAccess', _69 => _69.url]);
|
|
1204
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
var EmailsApiFactory = function(configuration, basePath, axios) {
|
|
1209
|
+
const localVarFp = EmailsApiFp(configuration);
|
|
1210
|
+
return {
|
|
1211
|
+
/**
|
|
1212
|
+
*
|
|
1213
|
+
* @summary Emails Create
|
|
1214
|
+
* @param {string} contactId
|
|
1215
|
+
* @param {EmailCreate} emailCreate
|
|
1216
|
+
* @param {*} [options] Override http request option.
|
|
1217
|
+
* @throws {RequiredError}
|
|
1218
|
+
*/
|
|
1219
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
1220
|
+
return localVarFp.emailsCreate(contactId, emailCreate, options).then((request) => request(axios, basePath));
|
|
1221
|
+
},
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @summary Emails Delete
|
|
1225
|
+
* @param {string} emailId
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
emailsDelete(emailId, options) {
|
|
1230
|
+
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
var EmailsApi = class extends BaseAPI {
|
|
1235
|
+
/**
|
|
1236
|
+
*
|
|
1237
|
+
* @summary Emails Create
|
|
1238
|
+
* @param {string} contactId
|
|
1239
|
+
* @param {EmailCreate} emailCreate
|
|
1240
|
+
* @param {*} [options] Override http request option.
|
|
1241
|
+
* @throws {RequiredError}
|
|
1242
|
+
* @memberof EmailsApi
|
|
1243
|
+
*/
|
|
1244
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
1245
|
+
return EmailsApiFp(this.configuration).emailsCreate(contactId, emailCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
*
|
|
1249
|
+
* @summary Emails Delete
|
|
1250
|
+
* @param {string} emailId
|
|
1251
|
+
* @param {*} [options] Override http request option.
|
|
1252
|
+
* @throws {RequiredError}
|
|
1253
|
+
* @memberof EmailsApi
|
|
1254
|
+
*/
|
|
1255
|
+
emailsDelete(emailId, options) {
|
|
1256
|
+
return EmailsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
var HostawayApiAxiosParamCreator = function(configuration) {
|
|
1260
|
+
return {
|
|
1261
|
+
/**
|
|
1262
|
+
*
|
|
1263
|
+
* @summary Unifiedwebhook
|
|
1264
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
*/
|
|
1268
|
+
webhook: async (hostawayWebhook, options = {}) => {
|
|
1269
|
+
assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
|
|
1270
|
+
const localVarPath = `/hostaway-unified-webhooks`;
|
|
1271
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1272
|
+
let baseOptions;
|
|
1273
|
+
if (configuration) {
|
|
1274
|
+
baseOptions = configuration.baseOptions;
|
|
1275
|
+
}
|
|
1276
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1277
|
+
const localVarHeaderParameter = {};
|
|
1278
|
+
const localVarQueryParameter = {};
|
|
1279
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1280
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1281
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1282
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1283
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1284
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
|
|
1285
|
+
return {
|
|
1286
|
+
url: toPathString(localVarUrlObj),
|
|
1287
|
+
options: localVarRequestOptions
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
var HostawayApiFp = function(configuration) {
|
|
1293
|
+
const localVarAxiosParamCreator = HostawayApiAxiosParamCreator(configuration);
|
|
1294
|
+
return {
|
|
1295
|
+
/**
|
|
1296
|
+
*
|
|
1297
|
+
* @summary Unifiedwebhook
|
|
1298
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
*/
|
|
1302
|
+
async webhook(hostawayWebhook, options) {
|
|
1303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
1304
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
|
|
1305
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["HostawayApi.webhook"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
|
|
1306
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
var HostawayApiFactory = function(configuration, basePath, axios) {
|
|
1311
|
+
const localVarFp = HostawayApiFp(configuration);
|
|
1312
|
+
return {
|
|
1313
|
+
/**
|
|
1314
|
+
*
|
|
1315
|
+
* @summary Unifiedwebhook
|
|
1316
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
1317
|
+
* @param {*} [options] Override http request option.
|
|
1318
|
+
* @throws {RequiredError}
|
|
1319
|
+
*/
|
|
1320
|
+
webhook(hostawayWebhook, options) {
|
|
1321
|
+
return localVarFp.webhook(hostawayWebhook, options).then((request) => request(axios, basePath));
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
var HostawayApi = class extends BaseAPI {
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @summary Unifiedwebhook
|
|
1329
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
1330
|
+
* @param {*} [options] Override http request option.
|
|
1331
|
+
* @throws {RequiredError}
|
|
1332
|
+
* @memberof HostawayApi
|
|
1333
|
+
*/
|
|
1334
|
+
webhook(hostawayWebhook, options) {
|
|
1335
|
+
return HostawayApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
var PhonesApiAxiosParamCreator = function(configuration) {
|
|
1339
|
+
return {
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @summary Phones Create
|
|
1343
|
+
* @param {string} contactId
|
|
1344
|
+
* @param {PhoneCreate} phoneCreate
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
phonesCreate: async (contactId, phoneCreate, options = {}) => {
|
|
1349
|
+
assertParamExists("phonesCreate", "contactId", contactId);
|
|
1350
|
+
assertParamExists("phonesCreate", "phoneCreate", phoneCreate);
|
|
1351
|
+
const localVarPath = `/contacts/{contactId}/phones`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1352
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1353
|
+
let baseOptions;
|
|
1354
|
+
if (configuration) {
|
|
1355
|
+
baseOptions = configuration.baseOptions;
|
|
1356
|
+
}
|
|
1357
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1358
|
+
const localVarHeaderParameter = {};
|
|
1359
|
+
const localVarQueryParameter = {};
|
|
1360
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1363
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1364
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneCreate, localVarRequestOptions, configuration);
|
|
1365
|
+
return {
|
|
1366
|
+
url: toPathString(localVarUrlObj),
|
|
1367
|
+
options: localVarRequestOptions
|
|
1368
|
+
};
|
|
1369
|
+
},
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @summary Phones Delete
|
|
1373
|
+
* @param {string} phoneId
|
|
1374
|
+
* @param {*} [options] Override http request option.
|
|
1375
|
+
* @throws {RequiredError}
|
|
1376
|
+
*/
|
|
1377
|
+
phonesDelete: async (phoneId, options = {}) => {
|
|
1378
|
+
assertParamExists("phonesDelete", "phoneId", phoneId);
|
|
1379
|
+
const localVarPath = `/phones/{phoneId}`.replace(`{${"phoneId"}}`, encodeURIComponent(String(phoneId)));
|
|
1380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1381
|
+
let baseOptions;
|
|
1382
|
+
if (configuration) {
|
|
1383
|
+
baseOptions = configuration.baseOptions;
|
|
1384
|
+
}
|
|
1385
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1386
|
+
const localVarHeaderParameter = {};
|
|
1387
|
+
const localVarQueryParameter = {};
|
|
1388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1391
|
+
return {
|
|
1392
|
+
url: toPathString(localVarUrlObj),
|
|
1393
|
+
options: localVarRequestOptions
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
var PhonesApiFp = function(configuration) {
|
|
1399
|
+
const localVarAxiosParamCreator = PhonesApiAxiosParamCreator(configuration);
|
|
1400
|
+
return {
|
|
1401
|
+
/**
|
|
1402
|
+
*
|
|
1403
|
+
* @summary Phones Create
|
|
1404
|
+
* @param {string} contactId
|
|
1405
|
+
* @param {PhoneCreate} phoneCreate
|
|
1406
|
+
* @param {*} [options] Override http request option.
|
|
1407
|
+
* @throws {RequiredError}
|
|
1408
|
+
*/
|
|
1409
|
+
async phonesCreate(contactId, phoneCreate, options) {
|
|
1410
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
1411
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
|
|
1412
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["PhonesApi.phonesCreate"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
|
|
1413
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1414
|
+
},
|
|
1415
|
+
/**
|
|
1416
|
+
*
|
|
1417
|
+
* @summary Phones Delete
|
|
1418
|
+
* @param {string} phoneId
|
|
1419
|
+
* @param {*} [options] Override http request option.
|
|
1420
|
+
* @throws {RequiredError}
|
|
1421
|
+
*/
|
|
1422
|
+
async phonesDelete(phoneId, options) {
|
|
1423
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
1424
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
|
|
1425
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["PhonesApi.phonesDelete"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
|
|
1426
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1427
|
+
}
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
var PhonesApiFactory = function(configuration, basePath, axios) {
|
|
1431
|
+
const localVarFp = PhonesApiFp(configuration);
|
|
1432
|
+
return {
|
|
1433
|
+
/**
|
|
1434
|
+
*
|
|
1435
|
+
* @summary Phones Create
|
|
1436
|
+
* @param {string} contactId
|
|
1437
|
+
* @param {PhoneCreate} phoneCreate
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
*/
|
|
1441
|
+
phonesCreate(contactId, phoneCreate, options) {
|
|
1442
|
+
return localVarFp.phonesCreate(contactId, phoneCreate, options).then((request) => request(axios, basePath));
|
|
1443
|
+
},
|
|
1444
|
+
/**
|
|
1445
|
+
*
|
|
1446
|
+
* @summary Phones Delete
|
|
1447
|
+
* @param {string} phoneId
|
|
1448
|
+
* @param {*} [options] Override http request option.
|
|
1449
|
+
* @throws {RequiredError}
|
|
1450
|
+
*/
|
|
1451
|
+
phonesDelete(phoneId, options) {
|
|
1452
|
+
return localVarFp.phonesDelete(phoneId, options).then((request) => request(axios, basePath));
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
var PhonesApi = class extends BaseAPI {
|
|
1457
|
+
/**
|
|
1458
|
+
*
|
|
1459
|
+
* @summary Phones Create
|
|
1460
|
+
* @param {string} contactId
|
|
1461
|
+
* @param {PhoneCreate} phoneCreate
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
* @memberof PhonesApi
|
|
1465
|
+
*/
|
|
1466
|
+
phonesCreate(contactId, phoneCreate, options) {
|
|
1467
|
+
return PhonesApiFp(this.configuration).phonesCreate(contactId, phoneCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1468
|
+
}
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @summary Phones Delete
|
|
1472
|
+
* @param {string} phoneId
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
* @memberof PhonesApi
|
|
1476
|
+
*/
|
|
1477
|
+
phonesDelete(phoneId, options) {
|
|
1478
|
+
return PhonesApiFp(this.configuration).phonesDelete(phoneId, options).then((request) => request(this.axios, this.basePath));
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
1482
|
+
return {
|
|
1483
|
+
/**
|
|
1484
|
+
* List all contacts
|
|
1485
|
+
* @summary Reservations List
|
|
1486
|
+
* @param {string} [contactId]
|
|
1487
|
+
* @param {*} [options] Override http request option.
|
|
1488
|
+
* @throws {RequiredError}
|
|
1489
|
+
*/
|
|
1490
|
+
reservationsList: async (contactId, options = {}) => {
|
|
1491
|
+
const localVarPath = `/reservations`;
|
|
1492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1493
|
+
let baseOptions;
|
|
1494
|
+
if (configuration) {
|
|
1495
|
+
baseOptions = configuration.baseOptions;
|
|
1496
|
+
}
|
|
1497
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1498
|
+
const localVarHeaderParameter = {};
|
|
1499
|
+
const localVarQueryParameter = {};
|
|
1500
|
+
if (contactId !== void 0) {
|
|
1501
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
1502
|
+
}
|
|
1503
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1504
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1505
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1506
|
+
return {
|
|
1507
|
+
url: toPathString(localVarUrlObj),
|
|
1508
|
+
options: localVarRequestOptions
|
|
1509
|
+
};
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
var ReservationsApiFp = function(configuration) {
|
|
1514
|
+
const localVarAxiosParamCreator = ReservationsApiAxiosParamCreator(configuration);
|
|
1515
|
+
return {
|
|
1516
|
+
/**
|
|
1517
|
+
* List all contacts
|
|
1518
|
+
* @summary Reservations List
|
|
1519
|
+
* @param {string} [contactId]
|
|
573
1520
|
* @param {*} [options] Override http request option.
|
|
574
1521
|
* @throws {RequiredError}
|
|
575
1522
|
*/
|
|
576
1523
|
async reservationsList(contactId, options) {
|
|
577
1524
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
578
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
579
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1525
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
|
|
1526
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["ReservationsApi.reservationsList"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
|
|
580
1527
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
581
1528
|
}
|
|
582
1529
|
};
|
|
@@ -611,6 +1558,92 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
611
1558
|
};
|
|
612
1559
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
613
1560
|
return {
|
|
1561
|
+
/**
|
|
1562
|
+
*
|
|
1563
|
+
* @summary Addresses Create
|
|
1564
|
+
* @param {string} contactId
|
|
1565
|
+
* @param {AddressCreate} addressCreate
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
*/
|
|
1569
|
+
addressesCreate: async (contactId, addressCreate, options = {}) => {
|
|
1570
|
+
assertParamExists("addressesCreate", "contactId", contactId);
|
|
1571
|
+
assertParamExists("addressesCreate", "addressCreate", addressCreate);
|
|
1572
|
+
const localVarPath = `/contacts/{contactId}/addresses`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1574
|
+
let baseOptions;
|
|
1575
|
+
if (configuration) {
|
|
1576
|
+
baseOptions = configuration.baseOptions;
|
|
1577
|
+
}
|
|
1578
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1579
|
+
const localVarHeaderParameter = {};
|
|
1580
|
+
const localVarQueryParameter = {};
|
|
1581
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1584
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1585
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
1586
|
+
return {
|
|
1587
|
+
url: toPathString(localVarUrlObj),
|
|
1588
|
+
options: localVarRequestOptions
|
|
1589
|
+
};
|
|
1590
|
+
},
|
|
1591
|
+
/**
|
|
1592
|
+
*
|
|
1593
|
+
* @summary Addresses Delete
|
|
1594
|
+
* @param {string} addressId
|
|
1595
|
+
* @param {*} [options] Override http request option.
|
|
1596
|
+
* @throws {RequiredError}
|
|
1597
|
+
*/
|
|
1598
|
+
addressesDelete: async (addressId, options = {}) => {
|
|
1599
|
+
assertParamExists("addressesDelete", "addressId", addressId);
|
|
1600
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
1601
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1602
|
+
let baseOptions;
|
|
1603
|
+
if (configuration) {
|
|
1604
|
+
baseOptions = configuration.baseOptions;
|
|
1605
|
+
}
|
|
1606
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1607
|
+
const localVarHeaderParameter = {};
|
|
1608
|
+
const localVarQueryParameter = {};
|
|
1609
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1610
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1611
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1612
|
+
return {
|
|
1613
|
+
url: toPathString(localVarUrlObj),
|
|
1614
|
+
options: localVarRequestOptions
|
|
1615
|
+
};
|
|
1616
|
+
},
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @summary Addresses Update
|
|
1620
|
+
* @param {string} addressId
|
|
1621
|
+
* @param {AddressUpdate} addressUpdate
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @throws {RequiredError}
|
|
1624
|
+
*/
|
|
1625
|
+
addressesUpdate: async (addressId, addressUpdate, options = {}) => {
|
|
1626
|
+
assertParamExists("addressesUpdate", "addressId", addressId);
|
|
1627
|
+
assertParamExists("addressesUpdate", "addressUpdate", addressUpdate);
|
|
1628
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
1629
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1630
|
+
let baseOptions;
|
|
1631
|
+
if (configuration) {
|
|
1632
|
+
baseOptions = configuration.baseOptions;
|
|
1633
|
+
}
|
|
1634
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1635
|
+
const localVarHeaderParameter = {};
|
|
1636
|
+
const localVarQueryParameter = {};
|
|
1637
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1638
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1640
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1641
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressUpdate, localVarRequestOptions, configuration);
|
|
1642
|
+
return {
|
|
1643
|
+
url: toPathString(localVarUrlObj),
|
|
1644
|
+
options: localVarRequestOptions
|
|
1645
|
+
};
|
|
1646
|
+
},
|
|
614
1647
|
/**
|
|
615
1648
|
*
|
|
616
1649
|
* @summary Contacts Create
|
|
@@ -699,11 +1732,12 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
699
1732
|
/**
|
|
700
1733
|
*
|
|
701
1734
|
* @summary Contacts List
|
|
702
|
-
* @param {
|
|
1735
|
+
* @param {ContactType} [contactType]
|
|
1736
|
+
* @param {string} [searchString]
|
|
703
1737
|
* @param {*} [options] Override http request option.
|
|
704
1738
|
* @throws {RequiredError}
|
|
705
1739
|
*/
|
|
706
|
-
contactsList: async (
|
|
1740
|
+
contactsList: async (contactType, searchString, options = {}) => {
|
|
707
1741
|
const localVarPath = `/contacts`;
|
|
708
1742
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
709
1743
|
let baseOptions;
|
|
@@ -713,8 +1747,11 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
713
1747
|
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
714
1748
|
const localVarHeaderParameter = {};
|
|
715
1749
|
const localVarQueryParameter = {};
|
|
716
|
-
if (
|
|
717
|
-
localVarQueryParameter["
|
|
1750
|
+
if (contactType !== void 0) {
|
|
1751
|
+
localVarQueryParameter["contactType"] = contactType;
|
|
1752
|
+
}
|
|
1753
|
+
if (searchString !== void 0) {
|
|
1754
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
718
1755
|
}
|
|
719
1756
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
720
1757
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -754,6 +1791,118 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
754
1791
|
options: localVarRequestOptions
|
|
755
1792
|
};
|
|
756
1793
|
},
|
|
1794
|
+
/**
|
|
1795
|
+
*
|
|
1796
|
+
* @summary Emails Create
|
|
1797
|
+
* @param {string} contactId
|
|
1798
|
+
* @param {EmailCreate} emailCreate
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
emailsCreate: async (contactId, emailCreate, options = {}) => {
|
|
1803
|
+
assertParamExists("emailsCreate", "contactId", contactId);
|
|
1804
|
+
assertParamExists("emailsCreate", "emailCreate", emailCreate);
|
|
1805
|
+
const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1807
|
+
let baseOptions;
|
|
1808
|
+
if (configuration) {
|
|
1809
|
+
baseOptions = configuration.baseOptions;
|
|
1810
|
+
}
|
|
1811
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1812
|
+
const localVarHeaderParameter = {};
|
|
1813
|
+
const localVarQueryParameter = {};
|
|
1814
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1815
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1817
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1818
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
|
|
1819
|
+
return {
|
|
1820
|
+
url: toPathString(localVarUrlObj),
|
|
1821
|
+
options: localVarRequestOptions
|
|
1822
|
+
};
|
|
1823
|
+
},
|
|
1824
|
+
/**
|
|
1825
|
+
*
|
|
1826
|
+
* @summary Emails Delete
|
|
1827
|
+
* @param {string} emailId
|
|
1828
|
+
* @param {*} [options] Override http request option.
|
|
1829
|
+
* @throws {RequiredError}
|
|
1830
|
+
*/
|
|
1831
|
+
emailsDelete: async (emailId, options = {}) => {
|
|
1832
|
+
assertParamExists("emailsDelete", "emailId", emailId);
|
|
1833
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
1834
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1835
|
+
let baseOptions;
|
|
1836
|
+
if (configuration) {
|
|
1837
|
+
baseOptions = configuration.baseOptions;
|
|
1838
|
+
}
|
|
1839
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1840
|
+
const localVarHeaderParameter = {};
|
|
1841
|
+
const localVarQueryParameter = {};
|
|
1842
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1843
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1844
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1845
|
+
return {
|
|
1846
|
+
url: toPathString(localVarUrlObj),
|
|
1847
|
+
options: localVarRequestOptions
|
|
1848
|
+
};
|
|
1849
|
+
},
|
|
1850
|
+
/**
|
|
1851
|
+
*
|
|
1852
|
+
* @summary Phones Create
|
|
1853
|
+
* @param {string} contactId
|
|
1854
|
+
* @param {PhoneCreate} phoneCreate
|
|
1855
|
+
* @param {*} [options] Override http request option.
|
|
1856
|
+
* @throws {RequiredError}
|
|
1857
|
+
*/
|
|
1858
|
+
phonesCreate: async (contactId, phoneCreate, options = {}) => {
|
|
1859
|
+
assertParamExists("phonesCreate", "contactId", contactId);
|
|
1860
|
+
assertParamExists("phonesCreate", "phoneCreate", phoneCreate);
|
|
1861
|
+
const localVarPath = `/contacts/{contactId}/phones`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1862
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1863
|
+
let baseOptions;
|
|
1864
|
+
if (configuration) {
|
|
1865
|
+
baseOptions = configuration.baseOptions;
|
|
1866
|
+
}
|
|
1867
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1868
|
+
const localVarHeaderParameter = {};
|
|
1869
|
+
const localVarQueryParameter = {};
|
|
1870
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1871
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1873
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1874
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneCreate, localVarRequestOptions, configuration);
|
|
1875
|
+
return {
|
|
1876
|
+
url: toPathString(localVarUrlObj),
|
|
1877
|
+
options: localVarRequestOptions
|
|
1878
|
+
};
|
|
1879
|
+
},
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @summary Phones Delete
|
|
1883
|
+
* @param {string} phoneId
|
|
1884
|
+
* @param {*} [options] Override http request option.
|
|
1885
|
+
* @throws {RequiredError}
|
|
1886
|
+
*/
|
|
1887
|
+
phonesDelete: async (phoneId, options = {}) => {
|
|
1888
|
+
assertParamExists("phonesDelete", "phoneId", phoneId);
|
|
1889
|
+
const localVarPath = `/phones/{phoneId}`.replace(`{${"phoneId"}}`, encodeURIComponent(String(phoneId)));
|
|
1890
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1891
|
+
let baseOptions;
|
|
1892
|
+
if (configuration) {
|
|
1893
|
+
baseOptions = configuration.baseOptions;
|
|
1894
|
+
}
|
|
1895
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1896
|
+
const localVarHeaderParameter = {};
|
|
1897
|
+
const localVarQueryParameter = {};
|
|
1898
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1899
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1900
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1901
|
+
return {
|
|
1902
|
+
url: toPathString(localVarUrlObj),
|
|
1903
|
+
options: localVarRequestOptions
|
|
1904
|
+
};
|
|
1905
|
+
},
|
|
757
1906
|
/**
|
|
758
1907
|
* List all contacts
|
|
759
1908
|
* @summary Reservations List
|
|
@@ -785,13 +1934,13 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
785
1934
|
/**
|
|
786
1935
|
*
|
|
787
1936
|
* @summary Unifiedwebhook
|
|
788
|
-
* @param {
|
|
1937
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
789
1938
|
* @param {*} [options] Override http request option.
|
|
790
1939
|
* @throws {RequiredError}
|
|
791
1940
|
*/
|
|
792
|
-
webhook: async (
|
|
793
|
-
assertParamExists("webhook", "
|
|
794
|
-
const localVarPath = `/
|
|
1941
|
+
webhook: async (hostawayWebhook, options = {}) => {
|
|
1942
|
+
assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
|
|
1943
|
+
const localVarPath = `/hostaway-unified-webhooks`;
|
|
795
1944
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
796
1945
|
let baseOptions;
|
|
797
1946
|
if (configuration) {
|
|
@@ -805,7 +1954,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
805
1954
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
806
1955
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
807
1956
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
808
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1957
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
|
|
809
1958
|
return {
|
|
810
1959
|
url: toPathString(localVarUrlObj),
|
|
811
1960
|
options: localVarRequestOptions
|
|
@@ -816,6 +1965,47 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
816
1965
|
var UnboundApiFp = function(configuration) {
|
|
817
1966
|
const localVarAxiosParamCreator = UnboundApiAxiosParamCreator(configuration);
|
|
818
1967
|
return {
|
|
1968
|
+
/**
|
|
1969
|
+
*
|
|
1970
|
+
* @summary Addresses Create
|
|
1971
|
+
* @param {string} contactId
|
|
1972
|
+
* @param {AddressCreate} addressCreate
|
|
1973
|
+
* @param {*} [options] Override http request option.
|
|
1974
|
+
* @throws {RequiredError}
|
|
1975
|
+
*/
|
|
1976
|
+
async addressesCreate(contactId, addressCreate, options) {
|
|
1977
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
1978
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
|
|
1979
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["UnboundApi.addressesCreate"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
|
|
1980
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1981
|
+
},
|
|
1982
|
+
/**
|
|
1983
|
+
*
|
|
1984
|
+
* @summary Addresses Delete
|
|
1985
|
+
* @param {string} addressId
|
|
1986
|
+
* @param {*} [options] Override http request option.
|
|
1987
|
+
* @throws {RequiredError}
|
|
1988
|
+
*/
|
|
1989
|
+
async addressesDelete(addressId, options) {
|
|
1990
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
1991
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1992
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["UnboundApi.addressesDelete"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
1993
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1994
|
+
},
|
|
1995
|
+
/**
|
|
1996
|
+
*
|
|
1997
|
+
* @summary Addresses Update
|
|
1998
|
+
* @param {string} addressId
|
|
1999
|
+
* @param {AddressUpdate} addressUpdate
|
|
2000
|
+
* @param {*} [options] Override http request option.
|
|
2001
|
+
* @throws {RequiredError}
|
|
2002
|
+
*/
|
|
2003
|
+
async addressesUpdate(addressId, addressUpdate, options) {
|
|
2004
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
2005
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
2006
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["UnboundApi.addressesUpdate"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
2007
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2008
|
+
},
|
|
819
2009
|
/**
|
|
820
2010
|
*
|
|
821
2011
|
* @summary Contacts Create
|
|
@@ -826,8 +2016,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
826
2016
|
*/
|
|
827
2017
|
async contactsCreate(customerId, contactCreate, options) {
|
|
828
2018
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(customerId, contactCreate, options);
|
|
829
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
830
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2019
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
2020
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["UnboundApi.contactsCreate"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
831
2021
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
832
2022
|
},
|
|
833
2023
|
/**
|
|
@@ -839,8 +2029,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
839
2029
|
*/
|
|
840
2030
|
async contactsDelete(contactId, options) {
|
|
841
2031
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
842
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
843
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2032
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
2033
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["UnboundApi.contactsDelete"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
844
2034
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
845
2035
|
},
|
|
846
2036
|
/**
|
|
@@ -852,21 +2042,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
852
2042
|
*/
|
|
853
2043
|
async contactsGet(contactId, options) {
|
|
854
2044
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
855
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
856
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2045
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
2046
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["UnboundApi.contactsGet"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
857
2047
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
858
2048
|
},
|
|
859
2049
|
/**
|
|
860
2050
|
*
|
|
861
2051
|
* @summary Contacts List
|
|
862
|
-
* @param {
|
|
2052
|
+
* @param {ContactType} [contactType]
|
|
2053
|
+
* @param {string} [searchString]
|
|
863
2054
|
* @param {*} [options] Override http request option.
|
|
864
2055
|
* @throws {RequiredError}
|
|
865
2056
|
*/
|
|
866
|
-
async contactsList(
|
|
867
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(
|
|
868
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
869
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2057
|
+
async contactsList(contactType, searchString, options) {
|
|
2058
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(contactType, searchString, options);
|
|
2059
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
2060
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["UnboundApi.contactsList"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
870
2061
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
871
2062
|
},
|
|
872
2063
|
/**
|
|
@@ -879,8 +2070,62 @@ var UnboundApiFp = function(configuration) {
|
|
|
879
2070
|
*/
|
|
880
2071
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
881
2072
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
882
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
883
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2073
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2074
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["UnboundApi.contactsUpdate"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
2075
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2076
|
+
},
|
|
2077
|
+
/**
|
|
2078
|
+
*
|
|
2079
|
+
* @summary Emails Create
|
|
2080
|
+
* @param {string} contactId
|
|
2081
|
+
* @param {EmailCreate} emailCreate
|
|
2082
|
+
* @param {*} [options] Override http request option.
|
|
2083
|
+
* @throws {RequiredError}
|
|
2084
|
+
*/
|
|
2085
|
+
async emailsCreate(contactId, emailCreate, options) {
|
|
2086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
2087
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2088
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["UnboundApi.emailsCreate"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
2089
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2090
|
+
},
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @summary Emails Delete
|
|
2094
|
+
* @param {string} emailId
|
|
2095
|
+
* @param {*} [options] Override http request option.
|
|
2096
|
+
* @throws {RequiredError}
|
|
2097
|
+
*/
|
|
2098
|
+
async emailsDelete(emailId, options) {
|
|
2099
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
2100
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2101
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["UnboundApi.emailsDelete"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
2102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2103
|
+
},
|
|
2104
|
+
/**
|
|
2105
|
+
*
|
|
2106
|
+
* @summary Phones Create
|
|
2107
|
+
* @param {string} contactId
|
|
2108
|
+
* @param {PhoneCreate} phoneCreate
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
*/
|
|
2112
|
+
async phonesCreate(contactId, phoneCreate, options) {
|
|
2113
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesCreate(contactId, phoneCreate, options);
|
|
2114
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2115
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["UnboundApi.phonesCreate"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
2116
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2117
|
+
},
|
|
2118
|
+
/**
|
|
2119
|
+
*
|
|
2120
|
+
* @summary Phones Delete
|
|
2121
|
+
* @param {string} phoneId
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
*/
|
|
2125
|
+
async phonesDelete(phoneId, options) {
|
|
2126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phonesDelete(phoneId, options);
|
|
2127
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
2128
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["UnboundApi.phonesDelete"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
884
2129
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
885
2130
|
},
|
|
886
2131
|
/**
|
|
@@ -892,21 +2137,21 @@ var UnboundApiFp = function(configuration) {
|
|
|
892
2137
|
*/
|
|
893
2138
|
async reservationsList(contactId, options) {
|
|
894
2139
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
895
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
896
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2140
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
2141
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["UnboundApi.reservationsList"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
897
2142
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
898
2143
|
},
|
|
899
2144
|
/**
|
|
900
2145
|
*
|
|
901
2146
|
* @summary Unifiedwebhook
|
|
902
|
-
* @param {
|
|
2147
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
903
2148
|
* @param {*} [options] Override http request option.
|
|
904
2149
|
* @throws {RequiredError}
|
|
905
2150
|
*/
|
|
906
|
-
async webhook(
|
|
907
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(
|
|
908
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
909
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2151
|
+
async webhook(hostawayWebhook, options) {
|
|
2152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
2153
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
2154
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["UnboundApi.webhook"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
910
2155
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
911
2156
|
}
|
|
912
2157
|
};
|
|
@@ -914,6 +2159,38 @@ var UnboundApiFp = function(configuration) {
|
|
|
914
2159
|
var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
915
2160
|
const localVarFp = UnboundApiFp(configuration);
|
|
916
2161
|
return {
|
|
2162
|
+
/**
|
|
2163
|
+
*
|
|
2164
|
+
* @summary Addresses Create
|
|
2165
|
+
* @param {string} contactId
|
|
2166
|
+
* @param {AddressCreate} addressCreate
|
|
2167
|
+
* @param {*} [options] Override http request option.
|
|
2168
|
+
* @throws {RequiredError}
|
|
2169
|
+
*/
|
|
2170
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
2171
|
+
return localVarFp.addressesCreate(contactId, addressCreate, options).then((request) => request(axios, basePath));
|
|
2172
|
+
},
|
|
2173
|
+
/**
|
|
2174
|
+
*
|
|
2175
|
+
* @summary Addresses Delete
|
|
2176
|
+
* @param {string} addressId
|
|
2177
|
+
* @param {*} [options] Override http request option.
|
|
2178
|
+
* @throws {RequiredError}
|
|
2179
|
+
*/
|
|
2180
|
+
addressesDelete(addressId, options) {
|
|
2181
|
+
return localVarFp.addressesDelete(addressId, options).then((request) => request(axios, basePath));
|
|
2182
|
+
},
|
|
2183
|
+
/**
|
|
2184
|
+
*
|
|
2185
|
+
* @summary Addresses Update
|
|
2186
|
+
* @param {string} addressId
|
|
2187
|
+
* @param {AddressUpdate} addressUpdate
|
|
2188
|
+
* @param {*} [options] Override http request option.
|
|
2189
|
+
* @throws {RequiredError}
|
|
2190
|
+
*/
|
|
2191
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
2192
|
+
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
2193
|
+
},
|
|
917
2194
|
/**
|
|
918
2195
|
*
|
|
919
2196
|
* @summary Contacts Create
|
|
@@ -948,12 +2225,13 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
948
2225
|
/**
|
|
949
2226
|
*
|
|
950
2227
|
* @summary Contacts List
|
|
951
|
-
* @param {
|
|
2228
|
+
* @param {ContactType} [contactType]
|
|
2229
|
+
* @param {string} [searchString]
|
|
952
2230
|
* @param {*} [options] Override http request option.
|
|
953
2231
|
* @throws {RequiredError}
|
|
954
2232
|
*/
|
|
955
|
-
contactsList(
|
|
956
|
-
return localVarFp.contactsList(
|
|
2233
|
+
contactsList(contactType, searchString, options) {
|
|
2234
|
+
return localVarFp.contactsList(contactType, searchString, options).then((request) => request(axios, basePath));
|
|
957
2235
|
},
|
|
958
2236
|
/**
|
|
959
2237
|
*
|
|
@@ -966,6 +2244,48 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
966
2244
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
967
2245
|
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
968
2246
|
},
|
|
2247
|
+
/**
|
|
2248
|
+
*
|
|
2249
|
+
* @summary Emails Create
|
|
2250
|
+
* @param {string} contactId
|
|
2251
|
+
* @param {EmailCreate} emailCreate
|
|
2252
|
+
* @param {*} [options] Override http request option.
|
|
2253
|
+
* @throws {RequiredError}
|
|
2254
|
+
*/
|
|
2255
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
2256
|
+
return localVarFp.emailsCreate(contactId, emailCreate, options).then((request) => request(axios, basePath));
|
|
2257
|
+
},
|
|
2258
|
+
/**
|
|
2259
|
+
*
|
|
2260
|
+
* @summary Emails Delete
|
|
2261
|
+
* @param {string} emailId
|
|
2262
|
+
* @param {*} [options] Override http request option.
|
|
2263
|
+
* @throws {RequiredError}
|
|
2264
|
+
*/
|
|
2265
|
+
emailsDelete(emailId, options) {
|
|
2266
|
+
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
2267
|
+
},
|
|
2268
|
+
/**
|
|
2269
|
+
*
|
|
2270
|
+
* @summary Phones Create
|
|
2271
|
+
* @param {string} contactId
|
|
2272
|
+
* @param {PhoneCreate} phoneCreate
|
|
2273
|
+
* @param {*} [options] Override http request option.
|
|
2274
|
+
* @throws {RequiredError}
|
|
2275
|
+
*/
|
|
2276
|
+
phonesCreate(contactId, phoneCreate, options) {
|
|
2277
|
+
return localVarFp.phonesCreate(contactId, phoneCreate, options).then((request) => request(axios, basePath));
|
|
2278
|
+
},
|
|
2279
|
+
/**
|
|
2280
|
+
*
|
|
2281
|
+
* @summary Phones Delete
|
|
2282
|
+
* @param {string} phoneId
|
|
2283
|
+
* @param {*} [options] Override http request option.
|
|
2284
|
+
* @throws {RequiredError}
|
|
2285
|
+
*/
|
|
2286
|
+
phonesDelete(phoneId, options) {
|
|
2287
|
+
return localVarFp.phonesDelete(phoneId, options).then((request) => request(axios, basePath));
|
|
2288
|
+
},
|
|
969
2289
|
/**
|
|
970
2290
|
* List all contacts
|
|
971
2291
|
* @summary Reservations List
|
|
@@ -979,16 +2299,51 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
979
2299
|
/**
|
|
980
2300
|
*
|
|
981
2301
|
* @summary Unifiedwebhook
|
|
982
|
-
* @param {
|
|
2302
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
983
2303
|
* @param {*} [options] Override http request option.
|
|
984
2304
|
* @throws {RequiredError}
|
|
985
2305
|
*/
|
|
986
|
-
webhook(
|
|
987
|
-
return localVarFp.webhook(
|
|
2306
|
+
webhook(hostawayWebhook, options) {
|
|
2307
|
+
return localVarFp.webhook(hostawayWebhook, options).then((request) => request(axios, basePath));
|
|
988
2308
|
}
|
|
989
2309
|
};
|
|
990
2310
|
};
|
|
991
2311
|
var UnboundApi = class extends BaseAPI {
|
|
2312
|
+
/**
|
|
2313
|
+
*
|
|
2314
|
+
* @summary Addresses Create
|
|
2315
|
+
* @param {string} contactId
|
|
2316
|
+
* @param {AddressCreate} addressCreate
|
|
2317
|
+
* @param {*} [options] Override http request option.
|
|
2318
|
+
* @throws {RequiredError}
|
|
2319
|
+
* @memberof UnboundApi
|
|
2320
|
+
*/
|
|
2321
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
2322
|
+
return UnboundApiFp(this.configuration).addressesCreate(contactId, addressCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2323
|
+
}
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @summary Addresses Delete
|
|
2327
|
+
* @param {string} addressId
|
|
2328
|
+
* @param {*} [options] Override http request option.
|
|
2329
|
+
* @throws {RequiredError}
|
|
2330
|
+
* @memberof UnboundApi
|
|
2331
|
+
*/
|
|
2332
|
+
addressesDelete(addressId, options) {
|
|
2333
|
+
return UnboundApiFp(this.configuration).addressesDelete(addressId, options).then((request) => request(this.axios, this.basePath));
|
|
2334
|
+
}
|
|
2335
|
+
/**
|
|
2336
|
+
*
|
|
2337
|
+
* @summary Addresses Update
|
|
2338
|
+
* @param {string} addressId
|
|
2339
|
+
* @param {AddressUpdate} addressUpdate
|
|
2340
|
+
* @param {*} [options] Override http request option.
|
|
2341
|
+
* @throws {RequiredError}
|
|
2342
|
+
* @memberof UnboundApi
|
|
2343
|
+
*/
|
|
2344
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
2345
|
+
return UnboundApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
2346
|
+
}
|
|
992
2347
|
/**
|
|
993
2348
|
*
|
|
994
2349
|
* @summary Contacts Create
|
|
@@ -1026,13 +2381,14 @@ var UnboundApi = class extends BaseAPI {
|
|
|
1026
2381
|
/**
|
|
1027
2382
|
*
|
|
1028
2383
|
* @summary Contacts List
|
|
1029
|
-
* @param {
|
|
2384
|
+
* @param {ContactType} [contactType]
|
|
2385
|
+
* @param {string} [searchString]
|
|
1030
2386
|
* @param {*} [options] Override http request option.
|
|
1031
2387
|
* @throws {RequiredError}
|
|
1032
2388
|
* @memberof UnboundApi
|
|
1033
2389
|
*/
|
|
1034
|
-
contactsList(
|
|
1035
|
-
return UnboundApiFp(this.configuration).contactsList(
|
|
2390
|
+
contactsList(contactType, searchString, options) {
|
|
2391
|
+
return UnboundApiFp(this.configuration).contactsList(contactType, searchString, options).then((request) => request(this.axios, this.basePath));
|
|
1036
2392
|
}
|
|
1037
2393
|
/**
|
|
1038
2394
|
*
|
|
@@ -1046,6 +2402,52 @@ var UnboundApi = class extends BaseAPI {
|
|
|
1046
2402
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
1047
2403
|
return UnboundApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1048
2404
|
}
|
|
2405
|
+
/**
|
|
2406
|
+
*
|
|
2407
|
+
* @summary Emails Create
|
|
2408
|
+
* @param {string} contactId
|
|
2409
|
+
* @param {EmailCreate} emailCreate
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
* @memberof UnboundApi
|
|
2413
|
+
*/
|
|
2414
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
2415
|
+
return UnboundApiFp(this.configuration).emailsCreate(contactId, emailCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
*
|
|
2419
|
+
* @summary Emails Delete
|
|
2420
|
+
* @param {string} emailId
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
* @memberof UnboundApi
|
|
2424
|
+
*/
|
|
2425
|
+
emailsDelete(emailId, options) {
|
|
2426
|
+
return UnboundApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
*
|
|
2430
|
+
* @summary Phones Create
|
|
2431
|
+
* @param {string} contactId
|
|
2432
|
+
* @param {PhoneCreate} phoneCreate
|
|
2433
|
+
* @param {*} [options] Override http request option.
|
|
2434
|
+
* @throws {RequiredError}
|
|
2435
|
+
* @memberof UnboundApi
|
|
2436
|
+
*/
|
|
2437
|
+
phonesCreate(contactId, phoneCreate, options) {
|
|
2438
|
+
return UnboundApiFp(this.configuration).phonesCreate(contactId, phoneCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2439
|
+
}
|
|
2440
|
+
/**
|
|
2441
|
+
*
|
|
2442
|
+
* @summary Phones Delete
|
|
2443
|
+
* @param {string} phoneId
|
|
2444
|
+
* @param {*} [options] Override http request option.
|
|
2445
|
+
* @throws {RequiredError}
|
|
2446
|
+
* @memberof UnboundApi
|
|
2447
|
+
*/
|
|
2448
|
+
phonesDelete(phoneId, options) {
|
|
2449
|
+
return UnboundApiFp(this.configuration).phonesDelete(phoneId, options).then((request) => request(this.axios, this.basePath));
|
|
2450
|
+
}
|
|
1049
2451
|
/**
|
|
1050
2452
|
* List all contacts
|
|
1051
2453
|
* @summary Reservations List
|
|
@@ -1060,13 +2462,13 @@ var UnboundApi = class extends BaseAPI {
|
|
|
1060
2462
|
/**
|
|
1061
2463
|
*
|
|
1062
2464
|
* @summary Unifiedwebhook
|
|
1063
|
-
* @param {
|
|
2465
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
1064
2466
|
* @param {*} [options] Override http request option.
|
|
1065
2467
|
* @throws {RequiredError}
|
|
1066
2468
|
* @memberof UnboundApi
|
|
1067
2469
|
*/
|
|
1068
|
-
webhook(
|
|
1069
|
-
return UnboundApiFp(this.configuration).webhook(
|
|
2470
|
+
webhook(hostawayWebhook, options) {
|
|
2471
|
+
return UnboundApiFp(this.configuration).webhook(hostawayWebhook, options).then((request) => request(this.axios, this.basePath));
|
|
1070
2472
|
}
|
|
1071
2473
|
};
|
|
1072
2474
|
|
|
@@ -1138,7 +2540,7 @@ var Configuration = class {
|
|
|
1138
2540
|
this.baseOptions = {
|
|
1139
2541
|
...param.baseOptions,
|
|
1140
2542
|
headers: {
|
|
1141
|
-
..._optionalChain([param, 'access',
|
|
2543
|
+
..._optionalChain([param, 'access', _142 => _142.baseOptions, 'optionalAccess', _143 => _143.headers])
|
|
1142
2544
|
}
|
|
1143
2545
|
};
|
|
1144
2546
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -1188,5 +2590,16 @@ var Configuration = class {
|
|
|
1188
2590
|
|
|
1189
2591
|
|
|
1190
2592
|
|
|
1191
|
-
|
|
2593
|
+
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
|
|
2597
|
+
|
|
2598
|
+
|
|
2599
|
+
|
|
2600
|
+
|
|
2601
|
+
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactType = ContactType; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.DataSource = DataSource; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.GuestDataContactTypeEnum = GuestDataContactTypeEnum; exports.GuestDataCreateContactTypeEnum = GuestDataCreateContactTypeEnum; exports.GuestDataUpdateContactTypeEnum = GuestDataUpdateContactTypeEnum; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.LeadDataContactTypeEnum = LeadDataContactTypeEnum; exports.LeadDataCreateContactTypeEnum = LeadDataCreateContactTypeEnum; exports.LeadDataUpdateContactTypeEnum = LeadDataUpdateContactTypeEnum; exports.OwnerDataContactTypeEnum = OwnerDataContactTypeEnum; exports.OwnerDataCreateContactTypeEnum = OwnerDataCreateContactTypeEnum; exports.OwnerDataUpdateContactTypeEnum = OwnerDataUpdateContactTypeEnum; exports.PhonesApi = PhonesApi; exports.PhonesApiAxiosParamCreator = PhonesApiAxiosParamCreator; exports.PhonesApiFactory = PhonesApiFactory; exports.PhonesApiFp = PhonesApiFp; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
|
|
1192
2605
|
//# sourceMappingURL=index.js.map
|