@ember-home/unbound-ts-client 0.0.6 → 0.0.8
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 +1814 -410
- package/dist/index.d.ts +1814 -410
- package/dist/index.js +1756 -316
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1578 -138
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,41 +75,58 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/api.ts
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
var ContactType = {
|
|
79
|
+
Guest: "GUEST",
|
|
80
|
+
Owner: "OWNER",
|
|
81
|
+
Lead: "LEAD",
|
|
82
|
+
Basic: "BASIC"
|
|
81
83
|
};
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
+
var DataSource = {
|
|
85
|
+
Hostaway: "HOSTAWAY",
|
|
86
|
+
Guesty: "GUESTY",
|
|
84
87
|
Manual: "MANUAL"
|
|
85
88
|
};
|
|
86
89
|
var GuestDataContactTypeEnum = {
|
|
87
90
|
Guest: "GUEST"
|
|
88
91
|
};
|
|
89
|
-
var
|
|
90
|
-
|
|
92
|
+
var GuestDataCreateContactTypeEnum = {
|
|
93
|
+
Guest: "GUEST"
|
|
94
|
+
};
|
|
95
|
+
var GuestDataUpdateContactTypeEnum = {
|
|
96
|
+
Guest: "GUEST"
|
|
97
|
+
};
|
|
98
|
+
var LeadDataContactTypeEnum = {
|
|
99
|
+
Lead: "LEAD"
|
|
100
|
+
};
|
|
101
|
+
var LeadDataCreateContactTypeEnum = {
|
|
102
|
+
Lead: "LEAD"
|
|
103
|
+
};
|
|
104
|
+
var LeadDataUpdateContactTypeEnum = {
|
|
105
|
+
Lead: "LEAD"
|
|
91
106
|
};
|
|
92
107
|
var OwnerDataContactTypeEnum = {
|
|
93
108
|
Owner: "OWNER"
|
|
94
109
|
};
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
Manual: "MANUAL"
|
|
110
|
+
var OwnerDataCreateContactTypeEnum = {
|
|
111
|
+
Owner: "OWNER"
|
|
98
112
|
};
|
|
99
|
-
var
|
|
113
|
+
var OwnerDataUpdateContactTypeEnum = {
|
|
114
|
+
Owner: "OWNER"
|
|
115
|
+
};
|
|
116
|
+
var AddressesApiAxiosParamCreator = function(configuration) {
|
|
100
117
|
return {
|
|
101
118
|
/**
|
|
102
119
|
*
|
|
103
|
-
* @summary
|
|
104
|
-
* @param {string}
|
|
105
|
-
* @param {
|
|
120
|
+
* @summary Addresses Create
|
|
121
|
+
* @param {string} contactId
|
|
122
|
+
* @param {AddressCreate} addressCreate
|
|
106
123
|
* @param {*} [options] Override http request option.
|
|
107
124
|
* @throws {RequiredError}
|
|
108
125
|
*/
|
|
109
|
-
|
|
110
|
-
assertParamExists("
|
|
111
|
-
assertParamExists("
|
|
112
|
-
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)));
|
|
113
130
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
114
131
|
let baseOptions;
|
|
115
132
|
if (configuration) {
|
|
@@ -118,14 +135,11 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
118
135
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
119
136
|
const localVarHeaderParameter = {};
|
|
120
137
|
const localVarQueryParameter = {};
|
|
121
|
-
if (customerId !== void 0) {
|
|
122
|
-
localVarQueryParameter["customerId"] = customerId;
|
|
123
|
-
}
|
|
124
138
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
125
139
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
140
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
141
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
128
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
142
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
129
143
|
return {
|
|
130
144
|
url: toPathString(localVarUrlObj),
|
|
131
145
|
options: localVarRequestOptions
|
|
@@ -133,14 +147,14 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
133
147
|
},
|
|
134
148
|
/**
|
|
135
149
|
*
|
|
136
|
-
* @summary
|
|
137
|
-
* @param {string}
|
|
150
|
+
* @summary Addresses Delete
|
|
151
|
+
* @param {string} addressId
|
|
138
152
|
* @param {*} [options] Override http request option.
|
|
139
153
|
* @throws {RequiredError}
|
|
140
154
|
*/
|
|
141
|
-
|
|
142
|
-
assertParamExists("
|
|
143
|
-
const localVarPath = `/
|
|
155
|
+
addressesDelete: async (addressId, options = {}) => {
|
|
156
|
+
assertParamExists("addressesDelete", "addressId", addressId);
|
|
157
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
144
158
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
145
159
|
let baseOptions;
|
|
146
160
|
if (configuration) {
|
|
@@ -159,70 +173,16 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
159
173
|
},
|
|
160
174
|
/**
|
|
161
175
|
*
|
|
162
|
-
* @summary
|
|
163
|
-
* @param {string}
|
|
164
|
-
* @param {
|
|
165
|
-
* @throws {RequiredError}
|
|
166
|
-
*/
|
|
167
|
-
contactsGet: async (contactId, options = {}) => {
|
|
168
|
-
assertParamExists("contactsGet", "contactId", contactId);
|
|
169
|
-
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
170
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
171
|
-
let baseOptions;
|
|
172
|
-
if (configuration) {
|
|
173
|
-
baseOptions = configuration.baseOptions;
|
|
174
|
-
}
|
|
175
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
176
|
-
const localVarHeaderParameter = {};
|
|
177
|
-
const localVarQueryParameter = {};
|
|
178
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
179
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
181
|
-
return {
|
|
182
|
-
url: toPathString(localVarUrlObj),
|
|
183
|
-
options: localVarRequestOptions
|
|
184
|
-
};
|
|
185
|
-
},
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @summary Contacts List
|
|
189
|
-
* @param {string} [statusFilter]
|
|
190
|
-
* @param {*} [options] Override http request option.
|
|
191
|
-
* @throws {RequiredError}
|
|
192
|
-
*/
|
|
193
|
-
contactsList: async (statusFilter, options = {}) => {
|
|
194
|
-
const localVarPath = `/contacts`;
|
|
195
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
196
|
-
let baseOptions;
|
|
197
|
-
if (configuration) {
|
|
198
|
-
baseOptions = configuration.baseOptions;
|
|
199
|
-
}
|
|
200
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
201
|
-
const localVarHeaderParameter = {};
|
|
202
|
-
const localVarQueryParameter = {};
|
|
203
|
-
if (statusFilter !== void 0) {
|
|
204
|
-
localVarQueryParameter["statusFilter"] = statusFilter;
|
|
205
|
-
}
|
|
206
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
207
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
209
|
-
return {
|
|
210
|
-
url: toPathString(localVarUrlObj),
|
|
211
|
-
options: localVarRequestOptions
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @summary Contacts Update
|
|
217
|
-
* @param {string} contactId
|
|
218
|
-
* @param {ContactUpdate} contactUpdate
|
|
176
|
+
* @summary Addresses Update
|
|
177
|
+
* @param {string} addressId
|
|
178
|
+
* @param {AddressUpdate} addressUpdate
|
|
219
179
|
* @param {*} [options] Override http request option.
|
|
220
180
|
* @throws {RequiredError}
|
|
221
181
|
*/
|
|
222
|
-
|
|
223
|
-
assertParamExists("
|
|
224
|
-
assertParamExists("
|
|
225
|
-
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)));
|
|
226
186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
227
187
|
let baseOptions;
|
|
228
188
|
if (configuration) {
|
|
@@ -235,7 +195,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
235
195
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
236
196
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
197
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
238
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
198
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressUpdate, localVarRequestOptions, configuration);
|
|
239
199
|
return {
|
|
240
200
|
url: toPathString(localVarUrlObj),
|
|
241
201
|
options: localVarRequestOptions
|
|
@@ -243,206 +203,140 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
243
203
|
}
|
|
244
204
|
};
|
|
245
205
|
};
|
|
246
|
-
var
|
|
247
|
-
const localVarAxiosParamCreator =
|
|
206
|
+
var AddressesApiFp = function(configuration) {
|
|
207
|
+
const localVarAxiosParamCreator = AddressesApiAxiosParamCreator(configuration);
|
|
248
208
|
return {
|
|
249
209
|
/**
|
|
250
210
|
*
|
|
251
|
-
* @summary
|
|
252
|
-
* @param {string}
|
|
253
|
-
* @param {
|
|
211
|
+
* @summary Addresses Create
|
|
212
|
+
* @param {string} contactId
|
|
213
|
+
* @param {AddressCreate} addressCreate
|
|
254
214
|
* @param {*} [options] Override http request option.
|
|
255
215
|
* @throws {RequiredError}
|
|
256
216
|
*/
|
|
257
|
-
async
|
|
258
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
217
|
+
async addressesCreate(contactId, addressCreate, options) {
|
|
218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
259
219
|
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _2 => _2.serverIndex]), () => ( 0));
|
|
260
|
-
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]);
|
|
261
221
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
262
222
|
},
|
|
263
223
|
/**
|
|
264
224
|
*
|
|
265
|
-
* @summary
|
|
266
|
-
* @param {string}
|
|
225
|
+
* @summary Addresses Delete
|
|
226
|
+
* @param {string} addressId
|
|
267
227
|
* @param {*} [options] Override http request option.
|
|
268
228
|
* @throws {RequiredError}
|
|
269
229
|
*/
|
|
270
|
-
async
|
|
271
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
230
|
+
async addressesDelete(addressId, options) {
|
|
231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
272
232
|
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _6 => _6.serverIndex]), () => ( 0));
|
|
273
|
-
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]);
|
|
274
234
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
275
235
|
},
|
|
276
236
|
/**
|
|
277
237
|
*
|
|
278
|
-
* @summary
|
|
279
|
-
* @param {string}
|
|
238
|
+
* @summary Addresses Update
|
|
239
|
+
* @param {string} addressId
|
|
240
|
+
* @param {AddressUpdate} addressUpdate
|
|
280
241
|
* @param {*} [options] Override http request option.
|
|
281
242
|
* @throws {RequiredError}
|
|
282
243
|
*/
|
|
283
|
-
async
|
|
284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
244
|
+
async addressesUpdate(addressId, addressUpdate, options) {
|
|
245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
285
246
|
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _10 => _10.serverIndex]), () => ( 0));
|
|
286
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _11 => _11["
|
|
287
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
288
|
-
},
|
|
289
|
-
/**
|
|
290
|
-
*
|
|
291
|
-
* @summary Contacts List
|
|
292
|
-
* @param {string} [statusFilter]
|
|
293
|
-
* @param {*} [options] Override http request option.
|
|
294
|
-
* @throws {RequiredError}
|
|
295
|
-
*/
|
|
296
|
-
async contactsList(statusFilter, options) {
|
|
297
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(statusFilter, options);
|
|
298
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _14 => _14.serverIndex]), () => ( 0));
|
|
299
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _15 => _15["ContactsApi.contactsList"], 'optionalAccess', _16 => _16[localVarOperationServerIndex], 'optionalAccess', _17 => _17.url]);
|
|
300
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
301
|
-
},
|
|
302
|
-
/**
|
|
303
|
-
*
|
|
304
|
-
* @summary Contacts Update
|
|
305
|
-
* @param {string} contactId
|
|
306
|
-
* @param {ContactUpdate} contactUpdate
|
|
307
|
-
* @param {*} [options] Override http request option.
|
|
308
|
-
* @throws {RequiredError}
|
|
309
|
-
*/
|
|
310
|
-
async contactsUpdate(contactId, contactUpdate, options) {
|
|
311
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
312
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _18 => _18.serverIndex]), () => ( 0));
|
|
313
|
-
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]);
|
|
314
248
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
315
249
|
}
|
|
316
250
|
};
|
|
317
251
|
};
|
|
318
|
-
var
|
|
319
|
-
const localVarFp =
|
|
252
|
+
var AddressesApiFactory = function(configuration, basePath, axios) {
|
|
253
|
+
const localVarFp = AddressesApiFp(configuration);
|
|
320
254
|
return {
|
|
321
255
|
/**
|
|
322
256
|
*
|
|
323
|
-
* @summary
|
|
324
|
-
* @param {string} customerId
|
|
325
|
-
* @param {ContactCreate} contactCreate
|
|
326
|
-
* @param {*} [options] Override http request option.
|
|
327
|
-
* @throws {RequiredError}
|
|
328
|
-
*/
|
|
329
|
-
contactsCreate(customerId, contactCreate, options) {
|
|
330
|
-
return localVarFp.contactsCreate(customerId, contactCreate, options).then((request) => request(axios, basePath));
|
|
331
|
-
},
|
|
332
|
-
/**
|
|
333
|
-
*
|
|
334
|
-
* @summary Contacts Delete
|
|
335
|
-
* @param {string} contactId
|
|
336
|
-
* @param {*} [options] Override http request option.
|
|
337
|
-
* @throws {RequiredError}
|
|
338
|
-
*/
|
|
339
|
-
contactsDelete(contactId, options) {
|
|
340
|
-
return localVarFp.contactsDelete(contactId, options).then((request) => request(axios, basePath));
|
|
341
|
-
},
|
|
342
|
-
/**
|
|
343
|
-
*
|
|
344
|
-
* @summary Contacts Get
|
|
257
|
+
* @summary Addresses Create
|
|
345
258
|
* @param {string} contactId
|
|
259
|
+
* @param {AddressCreate} addressCreate
|
|
346
260
|
* @param {*} [options] Override http request option.
|
|
347
261
|
* @throws {RequiredError}
|
|
348
262
|
*/
|
|
349
|
-
|
|
350
|
-
return localVarFp.
|
|
263
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
264
|
+
return localVarFp.addressesCreate(contactId, addressCreate, options).then((request) => request(axios, basePath));
|
|
351
265
|
},
|
|
352
266
|
/**
|
|
353
267
|
*
|
|
354
|
-
* @summary
|
|
355
|
-
* @param {string}
|
|
268
|
+
* @summary Addresses Delete
|
|
269
|
+
* @param {string} addressId
|
|
356
270
|
* @param {*} [options] Override http request option.
|
|
357
271
|
* @throws {RequiredError}
|
|
358
272
|
*/
|
|
359
|
-
|
|
360
|
-
return localVarFp.
|
|
273
|
+
addressesDelete(addressId, options) {
|
|
274
|
+
return localVarFp.addressesDelete(addressId, options).then((request) => request(axios, basePath));
|
|
361
275
|
},
|
|
362
276
|
/**
|
|
363
277
|
*
|
|
364
|
-
* @summary
|
|
365
|
-
* @param {string}
|
|
366
|
-
* @param {
|
|
278
|
+
* @summary Addresses Update
|
|
279
|
+
* @param {string} addressId
|
|
280
|
+
* @param {AddressUpdate} addressUpdate
|
|
367
281
|
* @param {*} [options] Override http request option.
|
|
368
282
|
* @throws {RequiredError}
|
|
369
283
|
*/
|
|
370
|
-
|
|
371
|
-
return localVarFp.
|
|
284
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
285
|
+
return localVarFp.addressesUpdate(addressId, addressUpdate, options).then((request) => request(axios, basePath));
|
|
372
286
|
}
|
|
373
287
|
};
|
|
374
288
|
};
|
|
375
|
-
var
|
|
376
|
-
/**
|
|
377
|
-
*
|
|
378
|
-
* @summary Contacts Create
|
|
379
|
-
* @param {string} customerId
|
|
380
|
-
* @param {ContactCreate} contactCreate
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
* @memberof ContactsApi
|
|
384
|
-
*/
|
|
385
|
-
contactsCreate(customerId, contactCreate, options) {
|
|
386
|
-
return ContactsApiFp(this.configuration).contactsCreate(customerId, contactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @summary Contacts Delete
|
|
391
|
-
* @param {string} contactId
|
|
392
|
-
* @param {*} [options] Override http request option.
|
|
393
|
-
* @throws {RequiredError}
|
|
394
|
-
* @memberof ContactsApi
|
|
395
|
-
*/
|
|
396
|
-
contactsDelete(contactId, options) {
|
|
397
|
-
return ContactsApiFp(this.configuration).contactsDelete(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
398
|
-
}
|
|
289
|
+
var AddressesApi = class extends BaseAPI {
|
|
399
290
|
/**
|
|
400
291
|
*
|
|
401
|
-
* @summary
|
|
292
|
+
* @summary Addresses Create
|
|
402
293
|
* @param {string} contactId
|
|
294
|
+
* @param {AddressCreate} addressCreate
|
|
403
295
|
* @param {*} [options] Override http request option.
|
|
404
296
|
* @throws {RequiredError}
|
|
405
|
-
* @memberof
|
|
297
|
+
* @memberof AddressesApi
|
|
406
298
|
*/
|
|
407
|
-
|
|
408
|
-
return
|
|
299
|
+
addressesCreate(contactId, addressCreate, options) {
|
|
300
|
+
return AddressesApiFp(this.configuration).addressesCreate(contactId, addressCreate, options).then((request) => request(this.axios, this.basePath));
|
|
409
301
|
}
|
|
410
302
|
/**
|
|
411
303
|
*
|
|
412
|
-
* @summary
|
|
413
|
-
* @param {string}
|
|
304
|
+
* @summary Addresses Delete
|
|
305
|
+
* @param {string} addressId
|
|
414
306
|
* @param {*} [options] Override http request option.
|
|
415
307
|
* @throws {RequiredError}
|
|
416
|
-
* @memberof
|
|
308
|
+
* @memberof AddressesApi
|
|
417
309
|
*/
|
|
418
|
-
|
|
419
|
-
return
|
|
310
|
+
addressesDelete(addressId, options) {
|
|
311
|
+
return AddressesApiFp(this.configuration).addressesDelete(addressId, options).then((request) => request(this.axios, this.basePath));
|
|
420
312
|
}
|
|
421
313
|
/**
|
|
422
314
|
*
|
|
423
|
-
* @summary
|
|
424
|
-
* @param {string}
|
|
425
|
-
* @param {
|
|
315
|
+
* @summary Addresses Update
|
|
316
|
+
* @param {string} addressId
|
|
317
|
+
* @param {AddressUpdate} addressUpdate
|
|
426
318
|
* @param {*} [options] Override http request option.
|
|
427
319
|
* @throws {RequiredError}
|
|
428
|
-
* @memberof
|
|
320
|
+
* @memberof AddressesApi
|
|
429
321
|
*/
|
|
430
|
-
|
|
431
|
-
return
|
|
322
|
+
addressesUpdate(addressId, addressUpdate, options) {
|
|
323
|
+
return AddressesApiFp(this.configuration).addressesUpdate(addressId, addressUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
432
324
|
}
|
|
433
325
|
};
|
|
434
|
-
var
|
|
326
|
+
var ContactsApiAxiosParamCreator = function(configuration) {
|
|
435
327
|
return {
|
|
436
328
|
/**
|
|
437
329
|
*
|
|
438
|
-
* @summary
|
|
439
|
-
* @param {
|
|
330
|
+
* @summary Addresses Create
|
|
331
|
+
* @param {string} contactId
|
|
332
|
+
* @param {AddressCreate} addressCreate
|
|
440
333
|
* @param {*} [options] Override http request option.
|
|
441
334
|
* @throws {RequiredError}
|
|
442
335
|
*/
|
|
443
|
-
|
|
444
|
-
assertParamExists("
|
|
445
|
-
|
|
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)));
|
|
446
340
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
447
341
|
let baseOptions;
|
|
448
342
|
if (configuration) {
|
|
@@ -451,63 +345,1137 @@ var HostawayApiAxiosParamCreator = function(configuration) {
|
|
|
451
345
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
452
346
|
const localVarHeaderParameter = {};
|
|
453
347
|
const localVarQueryParameter = {};
|
|
454
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
455
348
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
456
349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
457
350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
458
351
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
459
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
352
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addressCreate, localVarRequestOptions, configuration);
|
|
460
353
|
return {
|
|
461
354
|
url: toPathString(localVarUrlObj),
|
|
462
355
|
options: localVarRequestOptions
|
|
463
356
|
};
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
var HostawayApiFp = function(configuration) {
|
|
468
|
-
const localVarAxiosParamCreator = HostawayApiAxiosParamCreator(configuration);
|
|
469
|
-
return {
|
|
357
|
+
},
|
|
470
358
|
/**
|
|
471
359
|
*
|
|
472
|
-
* @summary
|
|
473
|
-
* @param {
|
|
360
|
+
* @summary Addresses Delete
|
|
361
|
+
* @param {string} addressId
|
|
474
362
|
* @param {*} [options] Override http request option.
|
|
475
363
|
* @throws {RequiredError}
|
|
476
364
|
*/
|
|
477
|
-
async
|
|
478
|
-
|
|
479
|
-
const
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
365
|
+
addressesDelete: async (addressId, options = {}) => {
|
|
366
|
+
assertParamExists("addressesDelete", "addressId", addressId);
|
|
367
|
+
const localVarPath = `/addresses/{addressId}`.replace(`{${"addressId"}}`, encodeURIComponent(String(addressId)));
|
|
368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
369
|
+
let baseOptions;
|
|
370
|
+
if (configuration) {
|
|
371
|
+
baseOptions = configuration.baseOptions;
|
|
372
|
+
}
|
|
373
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
374
|
+
const localVarHeaderParameter = {};
|
|
375
|
+
const localVarQueryParameter = {};
|
|
376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
379
|
+
return {
|
|
380
|
+
url: toPathString(localVarUrlObj),
|
|
381
|
+
options: localVarRequestOptions
|
|
382
|
+
};
|
|
383
|
+
},
|
|
488
384
|
/**
|
|
489
385
|
*
|
|
490
|
-
* @summary
|
|
491
|
-
* @param {
|
|
386
|
+
* @summary Addresses Update
|
|
387
|
+
* @param {string} addressId
|
|
388
|
+
* @param {AddressUpdate} addressUpdate
|
|
492
389
|
* @param {*} [options] Override http request option.
|
|
493
390
|
* @throws {RequiredError}
|
|
494
391
|
*/
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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 {object} body
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
*/
|
|
1268
|
+
webhook: async (body, options = {}) => {
|
|
1269
|
+
assertParamExists("webhook", "body", body);
|
|
1270
|
+
const localVarPath = `/hostawayUnifiedWebHooks`;
|
|
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(body, 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 {object} body
|
|
1299
|
+
* @param {*} [options] Override http request option.
|
|
1300
|
+
* @throws {RequiredError}
|
|
1301
|
+
*/
|
|
1302
|
+
async webhook(body, options) {
|
|
1303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, 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 {object} body
|
|
1317
|
+
* @param {*} [options] Override http request option.
|
|
1318
|
+
* @throws {RequiredError}
|
|
1319
|
+
*/
|
|
1320
|
+
webhook(body, options) {
|
|
1321
|
+
return localVarFp.webhook(body, options).then((request) => request(axios, basePath));
|
|
1322
|
+
}
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
var HostawayApi = class extends BaseAPI {
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @summary Unifiedwebhook
|
|
1329
|
+
* @param {object} body
|
|
1330
|
+
* @param {*} [options] Override http request option.
|
|
1331
|
+
* @throws {RequiredError}
|
|
1332
|
+
* @memberof HostawayApi
|
|
1333
|
+
*/
|
|
1334
|
+
webhook(body, options) {
|
|
1335
|
+
return HostawayApiFp(this.configuration).webhook(body, 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));
|
|
511
1479
|
}
|
|
512
1480
|
};
|
|
513
1481
|
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
@@ -554,8 +1522,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
554
1522
|
*/
|
|
555
1523
|
async reservationsList(contactId, options) {
|
|
556
1524
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
557
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
558
|
-
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]);
|
|
559
1527
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
560
1528
|
}
|
|
561
1529
|
};
|
|
@@ -592,32 +1560,202 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
592
1560
|
return {
|
|
593
1561
|
/**
|
|
594
1562
|
*
|
|
595
|
-
* @summary
|
|
596
|
-
* @param {string}
|
|
597
|
-
* @param {
|
|
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
|
+
},
|
|
1647
|
+
/**
|
|
1648
|
+
*
|
|
1649
|
+
* @summary Contacts Create
|
|
1650
|
+
* @param {string} customerId
|
|
1651
|
+
* @param {ContactCreate} contactCreate
|
|
1652
|
+
* @param {*} [options] Override http request option.
|
|
1653
|
+
* @throws {RequiredError}
|
|
1654
|
+
*/
|
|
1655
|
+
contactsCreate: async (customerId, contactCreate, options = {}) => {
|
|
1656
|
+
assertParamExists("contactsCreate", "customerId", customerId);
|
|
1657
|
+
assertParamExists("contactsCreate", "contactCreate", contactCreate);
|
|
1658
|
+
const localVarPath = `/contacts`;
|
|
1659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1660
|
+
let baseOptions;
|
|
1661
|
+
if (configuration) {
|
|
1662
|
+
baseOptions = configuration.baseOptions;
|
|
1663
|
+
}
|
|
1664
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1665
|
+
const localVarHeaderParameter = {};
|
|
1666
|
+
const localVarQueryParameter = {};
|
|
1667
|
+
if (customerId !== void 0) {
|
|
1668
|
+
localVarQueryParameter["customerId"] = customerId;
|
|
1669
|
+
}
|
|
1670
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1671
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1672
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1673
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1674
|
+
localVarRequestOptions.data = serializeDataIfNeeded(contactCreate, localVarRequestOptions, configuration);
|
|
1675
|
+
return {
|
|
1676
|
+
url: toPathString(localVarUrlObj),
|
|
1677
|
+
options: localVarRequestOptions
|
|
1678
|
+
};
|
|
1679
|
+
},
|
|
1680
|
+
/**
|
|
1681
|
+
*
|
|
1682
|
+
* @summary Contacts Delete
|
|
1683
|
+
* @param {string} contactId
|
|
1684
|
+
* @param {*} [options] Override http request option.
|
|
1685
|
+
* @throws {RequiredError}
|
|
1686
|
+
*/
|
|
1687
|
+
contactsDelete: async (contactId, options = {}) => {
|
|
1688
|
+
assertParamExists("contactsDelete", "contactId", contactId);
|
|
1689
|
+
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1690
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1691
|
+
let baseOptions;
|
|
1692
|
+
if (configuration) {
|
|
1693
|
+
baseOptions = configuration.baseOptions;
|
|
1694
|
+
}
|
|
1695
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1696
|
+
const localVarHeaderParameter = {};
|
|
1697
|
+
const localVarQueryParameter = {};
|
|
1698
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1699
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1700
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1701
|
+
return {
|
|
1702
|
+
url: toPathString(localVarUrlObj),
|
|
1703
|
+
options: localVarRequestOptions
|
|
1704
|
+
};
|
|
1705
|
+
},
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* @summary Contacts Get
|
|
1709
|
+
* @param {string} contactId
|
|
1710
|
+
* @param {*} [options] Override http request option.
|
|
1711
|
+
* @throws {RequiredError}
|
|
1712
|
+
*/
|
|
1713
|
+
contactsGet: async (contactId, options = {}) => {
|
|
1714
|
+
assertParamExists("contactsGet", "contactId", contactId);
|
|
1715
|
+
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1716
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1717
|
+
let baseOptions;
|
|
1718
|
+
if (configuration) {
|
|
1719
|
+
baseOptions = configuration.baseOptions;
|
|
1720
|
+
}
|
|
1721
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1722
|
+
const localVarHeaderParameter = {};
|
|
1723
|
+
const localVarQueryParameter = {};
|
|
1724
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1725
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1726
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1727
|
+
return {
|
|
1728
|
+
url: toPathString(localVarUrlObj),
|
|
1729
|
+
options: localVarRequestOptions
|
|
1730
|
+
};
|
|
1731
|
+
},
|
|
1732
|
+
/**
|
|
1733
|
+
*
|
|
1734
|
+
* @summary Contacts List
|
|
1735
|
+
* @param {ContactType} [contactType]
|
|
1736
|
+
* @param {string} [searchString]
|
|
598
1737
|
* @param {*} [options] Override http request option.
|
|
599
1738
|
* @throws {RequiredError}
|
|
600
1739
|
*/
|
|
601
|
-
|
|
602
|
-
assertParamExists("contactsCreate", "customerId", customerId);
|
|
603
|
-
assertParamExists("contactsCreate", "contactCreate", contactCreate);
|
|
1740
|
+
contactsList: async (contactType, searchString, options = {}) => {
|
|
604
1741
|
const localVarPath = `/contacts`;
|
|
605
1742
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
606
1743
|
let baseOptions;
|
|
607
1744
|
if (configuration) {
|
|
608
1745
|
baseOptions = configuration.baseOptions;
|
|
609
1746
|
}
|
|
610
|
-
const localVarRequestOptions = { method: "
|
|
1747
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
611
1748
|
const localVarHeaderParameter = {};
|
|
612
1749
|
const localVarQueryParameter = {};
|
|
613
|
-
if (
|
|
614
|
-
localVarQueryParameter["
|
|
1750
|
+
if (contactType !== void 0) {
|
|
1751
|
+
localVarQueryParameter["contactType"] = contactType;
|
|
1752
|
+
}
|
|
1753
|
+
if (searchString !== void 0) {
|
|
1754
|
+
localVarQueryParameter["searchString"] = searchString;
|
|
615
1755
|
}
|
|
616
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
617
1756
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
618
1757
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
619
1758
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
620
|
-
localVarRequestOptions.data = serializeDataIfNeeded(contactCreate, localVarRequestOptions, configuration);
|
|
621
1759
|
return {
|
|
622
1760
|
url: toPathString(localVarUrlObj),
|
|
623
1761
|
options: localVarRequestOptions
|
|
@@ -625,25 +1763,29 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
625
1763
|
},
|
|
626
1764
|
/**
|
|
627
1765
|
*
|
|
628
|
-
* @summary Contacts
|
|
1766
|
+
* @summary Contacts Update
|
|
629
1767
|
* @param {string} contactId
|
|
1768
|
+
* @param {ContactUpdate} contactUpdate
|
|
630
1769
|
* @param {*} [options] Override http request option.
|
|
631
1770
|
* @throws {RequiredError}
|
|
632
1771
|
*/
|
|
633
|
-
|
|
634
|
-
assertParamExists("
|
|
1772
|
+
contactsUpdate: async (contactId, contactUpdate, options = {}) => {
|
|
1773
|
+
assertParamExists("contactsUpdate", "contactId", contactId);
|
|
1774
|
+
assertParamExists("contactsUpdate", "contactUpdate", contactUpdate);
|
|
635
1775
|
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
636
1776
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
637
1777
|
let baseOptions;
|
|
638
1778
|
if (configuration) {
|
|
639
1779
|
baseOptions = configuration.baseOptions;
|
|
640
1780
|
}
|
|
641
|
-
const localVarRequestOptions = { method: "
|
|
1781
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
642
1782
|
const localVarHeaderParameter = {};
|
|
643
1783
|
const localVarQueryParameter = {};
|
|
1784
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
644
1785
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
645
1786
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
646
1787
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1788
|
+
localVarRequestOptions.data = serializeDataIfNeeded(contactUpdate, localVarRequestOptions, configuration);
|
|
647
1789
|
return {
|
|
648
1790
|
url: toPathString(localVarUrlObj),
|
|
649
1791
|
options: localVarRequestOptions
|
|
@@ -651,25 +1793,29 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
651
1793
|
},
|
|
652
1794
|
/**
|
|
653
1795
|
*
|
|
654
|
-
* @summary
|
|
1796
|
+
* @summary Emails Create
|
|
655
1797
|
* @param {string} contactId
|
|
1798
|
+
* @param {EmailCreate} emailCreate
|
|
656
1799
|
* @param {*} [options] Override http request option.
|
|
657
1800
|
* @throws {RequiredError}
|
|
658
1801
|
*/
|
|
659
|
-
|
|
660
|
-
assertParamExists("
|
|
661
|
-
|
|
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)));
|
|
662
1806
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
663
1807
|
let baseOptions;
|
|
664
1808
|
if (configuration) {
|
|
665
1809
|
baseOptions = configuration.baseOptions;
|
|
666
1810
|
}
|
|
667
|
-
const localVarRequestOptions = { method: "
|
|
1811
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
668
1812
|
const localVarHeaderParameter = {};
|
|
669
1813
|
const localVarQueryParameter = {};
|
|
1814
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
670
1815
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
671
1816
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
672
1817
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1818
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
|
|
673
1819
|
return {
|
|
674
1820
|
url: toPathString(localVarUrlObj),
|
|
675
1821
|
options: localVarRequestOptions
|
|
@@ -677,24 +1823,22 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
677
1823
|
},
|
|
678
1824
|
/**
|
|
679
1825
|
*
|
|
680
|
-
* @summary
|
|
681
|
-
* @param {string}
|
|
1826
|
+
* @summary Emails Delete
|
|
1827
|
+
* @param {string} emailId
|
|
682
1828
|
* @param {*} [options] Override http request option.
|
|
683
1829
|
* @throws {RequiredError}
|
|
684
1830
|
*/
|
|
685
|
-
|
|
686
|
-
|
|
1831
|
+
emailsDelete: async (emailId, options = {}) => {
|
|
1832
|
+
assertParamExists("emailsDelete", "emailId", emailId);
|
|
1833
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
687
1834
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
688
1835
|
let baseOptions;
|
|
689
1836
|
if (configuration) {
|
|
690
1837
|
baseOptions = configuration.baseOptions;
|
|
691
1838
|
}
|
|
692
|
-
const localVarRequestOptions = { method: "
|
|
1839
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
693
1840
|
const localVarHeaderParameter = {};
|
|
694
1841
|
const localVarQueryParameter = {};
|
|
695
|
-
if (statusFilter !== void 0) {
|
|
696
|
-
localVarQueryParameter["statusFilter"] = statusFilter;
|
|
697
|
-
}
|
|
698
1842
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
699
1843
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
700
1844
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -705,29 +1849,55 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
705
1849
|
},
|
|
706
1850
|
/**
|
|
707
1851
|
*
|
|
708
|
-
* @summary
|
|
1852
|
+
* @summary Phones Create
|
|
709
1853
|
* @param {string} contactId
|
|
710
|
-
* @param {
|
|
1854
|
+
* @param {PhoneCreate} phoneCreate
|
|
711
1855
|
* @param {*} [options] Override http request option.
|
|
712
1856
|
* @throws {RequiredError}
|
|
713
1857
|
*/
|
|
714
|
-
|
|
715
|
-
assertParamExists("
|
|
716
|
-
assertParamExists("
|
|
717
|
-
const localVarPath = `/contacts/{contactId}`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
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)));
|
|
718
1862
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
719
1863
|
let baseOptions;
|
|
720
1864
|
if (configuration) {
|
|
721
1865
|
baseOptions = configuration.baseOptions;
|
|
722
1866
|
}
|
|
723
|
-
const localVarRequestOptions = { method: "
|
|
1867
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
724
1868
|
const localVarHeaderParameter = {};
|
|
725
1869
|
const localVarQueryParameter = {};
|
|
726
1870
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
727
1871
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
728
1872
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
729
1873
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
730
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
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 };
|
|
731
1901
|
return {
|
|
732
1902
|
url: toPathString(localVarUrlObj),
|
|
733
1903
|
options: localVarRequestOptions
|
|
@@ -795,6 +1965,47 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
795
1965
|
var UnboundApiFp = function(configuration) {
|
|
796
1966
|
const localVarAxiosParamCreator = UnboundApiAxiosParamCreator(configuration);
|
|
797
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
|
+
},
|
|
798
2009
|
/**
|
|
799
2010
|
*
|
|
800
2011
|
* @summary Contacts Create
|
|
@@ -805,8 +2016,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
805
2016
|
*/
|
|
806
2017
|
async contactsCreate(customerId, contactCreate, options) {
|
|
807
2018
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(customerId, contactCreate, options);
|
|
808
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
809
|
-
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]);
|
|
810
2021
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
811
2022
|
},
|
|
812
2023
|
/**
|
|
@@ -818,8 +2029,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
818
2029
|
*/
|
|
819
2030
|
async contactsDelete(contactId, options) {
|
|
820
2031
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
821
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
822
|
-
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]);
|
|
823
2034
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
824
2035
|
},
|
|
825
2036
|
/**
|
|
@@ -831,21 +2042,22 @@ var UnboundApiFp = function(configuration) {
|
|
|
831
2042
|
*/
|
|
832
2043
|
async contactsGet(contactId, options) {
|
|
833
2044
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
834
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
835
|
-
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]);
|
|
836
2047
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
837
2048
|
},
|
|
838
2049
|
/**
|
|
839
2050
|
*
|
|
840
2051
|
* @summary Contacts List
|
|
841
|
-
* @param {
|
|
2052
|
+
* @param {ContactType} [contactType]
|
|
2053
|
+
* @param {string} [searchString]
|
|
842
2054
|
* @param {*} [options] Override http request option.
|
|
843
2055
|
* @throws {RequiredError}
|
|
844
2056
|
*/
|
|
845
|
-
async contactsList(
|
|
846
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(
|
|
847
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
848
|
-
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]);
|
|
849
2061
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
850
2062
|
},
|
|
851
2063
|
/**
|
|
@@ -858,8 +2070,62 @@ var UnboundApiFp = function(configuration) {
|
|
|
858
2070
|
*/
|
|
859
2071
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
860
2072
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
861
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
862
|
-
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]);
|
|
863
2129
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
864
2130
|
},
|
|
865
2131
|
/**
|
|
@@ -871,8 +2137,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
871
2137
|
*/
|
|
872
2138
|
async reservationsList(contactId, options) {
|
|
873
2139
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
874
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
875
|
-
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]);
|
|
876
2142
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
877
2143
|
},
|
|
878
2144
|
/**
|
|
@@ -884,8 +2150,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
884
2150
|
*/
|
|
885
2151
|
async webhook(body, options) {
|
|
886
2152
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(body, options);
|
|
887
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
888
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
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]);
|
|
889
2155
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
890
2156
|
}
|
|
891
2157
|
};
|
|
@@ -893,6 +2159,38 @@ var UnboundApiFp = function(configuration) {
|
|
|
893
2159
|
var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
894
2160
|
const localVarFp = UnboundApiFp(configuration);
|
|
895
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
|
+
},
|
|
896
2194
|
/**
|
|
897
2195
|
*
|
|
898
2196
|
* @summary Contacts Create
|
|
@@ -927,12 +2225,13 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
927
2225
|
/**
|
|
928
2226
|
*
|
|
929
2227
|
* @summary Contacts List
|
|
930
|
-
* @param {
|
|
2228
|
+
* @param {ContactType} [contactType]
|
|
2229
|
+
* @param {string} [searchString]
|
|
931
2230
|
* @param {*} [options] Override http request option.
|
|
932
2231
|
* @throws {RequiredError}
|
|
933
2232
|
*/
|
|
934
|
-
contactsList(
|
|
935
|
-
return localVarFp.contactsList(
|
|
2233
|
+
contactsList(contactType, searchString, options) {
|
|
2234
|
+
return localVarFp.contactsList(contactType, searchString, options).then((request) => request(axios, basePath));
|
|
936
2235
|
},
|
|
937
2236
|
/**
|
|
938
2237
|
*
|
|
@@ -945,6 +2244,48 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
945
2244
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
946
2245
|
return localVarFp.contactsUpdate(contactId, contactUpdate, options).then((request) => request(axios, basePath));
|
|
947
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
|
+
},
|
|
948
2289
|
/**
|
|
949
2290
|
* List all contacts
|
|
950
2291
|
* @summary Reservations List
|
|
@@ -968,6 +2309,41 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
968
2309
|
};
|
|
969
2310
|
};
|
|
970
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
|
+
}
|
|
971
2347
|
/**
|
|
972
2348
|
*
|
|
973
2349
|
* @summary Contacts Create
|
|
@@ -1005,13 +2381,14 @@ var UnboundApi = class extends BaseAPI {
|
|
|
1005
2381
|
/**
|
|
1006
2382
|
*
|
|
1007
2383
|
* @summary Contacts List
|
|
1008
|
-
* @param {
|
|
2384
|
+
* @param {ContactType} [contactType]
|
|
2385
|
+
* @param {string} [searchString]
|
|
1009
2386
|
* @param {*} [options] Override http request option.
|
|
1010
2387
|
* @throws {RequiredError}
|
|
1011
2388
|
* @memberof UnboundApi
|
|
1012
2389
|
*/
|
|
1013
|
-
contactsList(
|
|
1014
|
-
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));
|
|
1015
2392
|
}
|
|
1016
2393
|
/**
|
|
1017
2394
|
*
|
|
@@ -1025,6 +2402,52 @@ var UnboundApi = class extends BaseAPI {
|
|
|
1025
2402
|
contactsUpdate(contactId, contactUpdate, options) {
|
|
1026
2403
|
return UnboundApiFp(this.configuration).contactsUpdate(contactId, contactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1027
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
|
+
}
|
|
1028
2451
|
/**
|
|
1029
2452
|
* List all contacts
|
|
1030
2453
|
* @summary Reservations List
|
|
@@ -1117,7 +2540,7 @@ var Configuration = class {
|
|
|
1117
2540
|
this.baseOptions = {
|
|
1118
2541
|
...param.baseOptions,
|
|
1119
2542
|
headers: {
|
|
1120
|
-
..._optionalChain([param, 'access',
|
|
2543
|
+
..._optionalChain([param, 'access', _142 => _142.baseOptions, 'optionalAccess', _143 => _143.headers])
|
|
1121
2544
|
}
|
|
1122
2545
|
};
|
|
1123
2546
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -1161,5 +2584,22 @@ var Configuration = class {
|
|
|
1161
2584
|
|
|
1162
2585
|
|
|
1163
2586
|
|
|
1164
|
-
|
|
2587
|
+
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
|
|
2592
|
+
|
|
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;
|
|
1165
2605
|
//# sourceMappingURL=index.js.map
|