@ember-home/unbound-ts-client 0.0.9 → 0.0.10
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 +67 -24
- package/dist/index.d.ts +67 -24
- package/dist/index.js +27 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -75,6 +75,15 @@ var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, config
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
// src/api.ts
|
|
78
|
+
var BasicDataContactTypeEnum = {
|
|
79
|
+
Basic: "BASIC"
|
|
80
|
+
};
|
|
81
|
+
var BasicDataCreateContactTypeEnum = {
|
|
82
|
+
Basic: "BASIC"
|
|
83
|
+
};
|
|
84
|
+
var BasicDataUpdateContactTypeEnum = {
|
|
85
|
+
Basic: "BASIC"
|
|
86
|
+
};
|
|
78
87
|
var ContactType = {
|
|
79
88
|
Guest: "GUEST",
|
|
80
89
|
Owner: "OWNER",
|
|
@@ -414,13 +423,11 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
414
423
|
/**
|
|
415
424
|
*
|
|
416
425
|
* @summary Contacts Create
|
|
417
|
-
* @param {string} customerId
|
|
418
426
|
* @param {ContactCreate} contactCreate
|
|
419
427
|
* @param {*} [options] Override http request option.
|
|
420
428
|
* @throws {RequiredError}
|
|
421
429
|
*/
|
|
422
|
-
contactsCreate: async (
|
|
423
|
-
assertParamExists("contactsCreate", "customerId", customerId);
|
|
430
|
+
contactsCreate: async (contactCreate, options = {}) => {
|
|
424
431
|
assertParamExists("contactsCreate", "contactCreate", contactCreate);
|
|
425
432
|
const localVarPath = `/contacts`;
|
|
426
433
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -431,9 +438,6 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
431
438
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
432
439
|
const localVarHeaderParameter = {};
|
|
433
440
|
const localVarQueryParameter = {};
|
|
434
|
-
if (customerId !== void 0) {
|
|
435
|
-
localVarQueryParameter["customerId"] = customerId;
|
|
436
|
-
}
|
|
437
441
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
438
442
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
439
443
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -719,13 +723,12 @@ var ContactsApiFp = function(configuration) {
|
|
|
719
723
|
/**
|
|
720
724
|
*
|
|
721
725
|
* @summary Contacts Create
|
|
722
|
-
* @param {string} customerId
|
|
723
726
|
* @param {ContactCreate} contactCreate
|
|
724
727
|
* @param {*} [options] Override http request option.
|
|
725
728
|
* @throws {RequiredError}
|
|
726
729
|
*/
|
|
727
|
-
async contactsCreate(
|
|
728
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(
|
|
730
|
+
async contactsCreate(contactCreate, options) {
|
|
731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
729
732
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
730
733
|
const localVarOperationServerBasePath = operationServerMap["ContactsApi.contactsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
731
734
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -878,13 +881,12 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
878
881
|
/**
|
|
879
882
|
*
|
|
880
883
|
* @summary Contacts Create
|
|
881
|
-
* @param {string} customerId
|
|
882
884
|
* @param {ContactCreate} contactCreate
|
|
883
885
|
* @param {*} [options] Override http request option.
|
|
884
886
|
* @throws {RequiredError}
|
|
885
887
|
*/
|
|
886
|
-
contactsCreate(
|
|
887
|
-
return localVarFp.contactsCreate(
|
|
888
|
+
contactsCreate(contactCreate, options) {
|
|
889
|
+
return localVarFp.contactsCreate(contactCreate, options).then((request) => request(axios, basePath));
|
|
888
890
|
},
|
|
889
891
|
/**
|
|
890
892
|
*
|
|
@@ -1011,14 +1013,13 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1011
1013
|
/**
|
|
1012
1014
|
*
|
|
1013
1015
|
* @summary Contacts Create
|
|
1014
|
-
* @param {string} customerId
|
|
1015
1016
|
* @param {ContactCreate} contactCreate
|
|
1016
1017
|
* @param {*} [options] Override http request option.
|
|
1017
1018
|
* @throws {RequiredError}
|
|
1018
1019
|
* @memberof ContactsApi
|
|
1019
1020
|
*/
|
|
1020
|
-
contactsCreate(
|
|
1021
|
-
return ContactsApiFp(this.configuration).contactsCreate(
|
|
1021
|
+
contactsCreate(contactCreate, options) {
|
|
1022
|
+
return ContactsApiFp(this.configuration).contactsCreate(contactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1022
1023
|
}
|
|
1023
1024
|
/**
|
|
1024
1025
|
*
|
|
@@ -1647,13 +1648,11 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1647
1648
|
/**
|
|
1648
1649
|
*
|
|
1649
1650
|
* @summary Contacts Create
|
|
1650
|
-
* @param {string} customerId
|
|
1651
1651
|
* @param {ContactCreate} contactCreate
|
|
1652
1652
|
* @param {*} [options] Override http request option.
|
|
1653
1653
|
* @throws {RequiredError}
|
|
1654
1654
|
*/
|
|
1655
|
-
contactsCreate: async (
|
|
1656
|
-
assertParamExists("contactsCreate", "customerId", customerId);
|
|
1655
|
+
contactsCreate: async (contactCreate, options = {}) => {
|
|
1657
1656
|
assertParamExists("contactsCreate", "contactCreate", contactCreate);
|
|
1658
1657
|
const localVarPath = `/contacts`;
|
|
1659
1658
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1664,9 +1663,6 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
1664
1663
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1665
1664
|
const localVarHeaderParameter = {};
|
|
1666
1665
|
const localVarQueryParameter = {};
|
|
1667
|
-
if (customerId !== void 0) {
|
|
1668
|
-
localVarQueryParameter["customerId"] = customerId;
|
|
1669
|
-
}
|
|
1670
1666
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1671
1667
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1672
1668
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2009,13 +2005,12 @@ var UnboundApiFp = function(configuration) {
|
|
|
2009
2005
|
/**
|
|
2010
2006
|
*
|
|
2011
2007
|
* @summary Contacts Create
|
|
2012
|
-
* @param {string} customerId
|
|
2013
2008
|
* @param {ContactCreate} contactCreate
|
|
2014
2009
|
* @param {*} [options] Override http request option.
|
|
2015
2010
|
* @throws {RequiredError}
|
|
2016
2011
|
*/
|
|
2017
|
-
async contactsCreate(
|
|
2018
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(
|
|
2012
|
+
async contactsCreate(contactCreate, options) {
|
|
2013
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
2019
2014
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2020
2015
|
const localVarOperationServerBasePath = operationServerMap["UnboundApi.contactsCreate"]?.[localVarOperationServerIndex]?.url;
|
|
2021
2016
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2194,13 +2189,12 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2194
2189
|
/**
|
|
2195
2190
|
*
|
|
2196
2191
|
* @summary Contacts Create
|
|
2197
|
-
* @param {string} customerId
|
|
2198
2192
|
* @param {ContactCreate} contactCreate
|
|
2199
2193
|
* @param {*} [options] Override http request option.
|
|
2200
2194
|
* @throws {RequiredError}
|
|
2201
2195
|
*/
|
|
2202
|
-
contactsCreate(
|
|
2203
|
-
return localVarFp.contactsCreate(
|
|
2196
|
+
contactsCreate(contactCreate, options) {
|
|
2197
|
+
return localVarFp.contactsCreate(contactCreate, options).then((request) => request(axios, basePath));
|
|
2204
2198
|
},
|
|
2205
2199
|
/**
|
|
2206
2200
|
*
|
|
@@ -2347,14 +2341,13 @@ var UnboundApi = class extends BaseAPI {
|
|
|
2347
2341
|
/**
|
|
2348
2342
|
*
|
|
2349
2343
|
* @summary Contacts Create
|
|
2350
|
-
* @param {string} customerId
|
|
2351
2344
|
* @param {ContactCreate} contactCreate
|
|
2352
2345
|
* @param {*} [options] Override http request option.
|
|
2353
2346
|
* @throws {RequiredError}
|
|
2354
2347
|
* @memberof UnboundApi
|
|
2355
2348
|
*/
|
|
2356
|
-
contactsCreate(
|
|
2357
|
-
return UnboundApiFp(this.configuration).contactsCreate(
|
|
2349
|
+
contactsCreate(contactCreate, options) {
|
|
2350
|
+
return UnboundApiFp(this.configuration).contactsCreate(contactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
2358
2351
|
}
|
|
2359
2352
|
/**
|
|
2360
2353
|
*
|
|
@@ -2565,6 +2558,9 @@ export {
|
|
|
2565
2558
|
AddressesApiAxiosParamCreator,
|
|
2566
2559
|
AddressesApiFactory,
|
|
2567
2560
|
AddressesApiFp,
|
|
2561
|
+
BasicDataContactTypeEnum,
|
|
2562
|
+
BasicDataCreateContactTypeEnum,
|
|
2563
|
+
BasicDataUpdateContactTypeEnum,
|
|
2568
2564
|
Configuration,
|
|
2569
2565
|
ContactType,
|
|
2570
2566
|
ContactsApi,
|