@ember-home/unbound-ts-client 0.0.22 → 0.0.23
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 +1094 -110
- package/dist/index.d.ts +1094 -110
- package/dist/index.js +1074 -271
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +945 -142
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -83,6 +83,10 @@ var ContactSortBy = {
|
|
|
83
83
|
FirstLastCompany: "first_last_company",
|
|
84
84
|
CompanyLastFirst: "company_last_first"
|
|
85
85
|
};
|
|
86
|
+
var ConversationStatus = {
|
|
87
|
+
Open: "OPEN",
|
|
88
|
+
Closed: "CLOSED"
|
|
89
|
+
};
|
|
86
90
|
var PaginationDirection = {
|
|
87
91
|
Forward: "forward",
|
|
88
92
|
Backward: "backward"
|
|
@@ -91,6 +95,89 @@ var SortOrder = {
|
|
|
91
95
|
Asc: "asc",
|
|
92
96
|
Desc: "desc"
|
|
93
97
|
};
|
|
98
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = {
|
|
99
|
+
Twilio: "TWILIO"
|
|
100
|
+
};
|
|
101
|
+
var SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = {
|
|
102
|
+
Email: "EMAIL"
|
|
103
|
+
};
|
|
104
|
+
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = {
|
|
105
|
+
Twilio: "TWILIO"
|
|
106
|
+
};
|
|
107
|
+
var SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = {
|
|
108
|
+
Email: "EMAIL"
|
|
109
|
+
};
|
|
110
|
+
var AccountsApiAxiosParamCreator = function(configuration) {
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary Accounts List
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
accountsList: async (options = {}) => {
|
|
119
|
+
const localVarPath = `/accounts`;
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
121
|
+
let baseOptions;
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
126
|
+
const localVarHeaderParameter = {};
|
|
127
|
+
const localVarQueryParameter = {};
|
|
128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
131
|
+
return {
|
|
132
|
+
url: toPathString(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
var AccountsApiFp = function(configuration) {
|
|
139
|
+
const localVarAxiosParamCreator = AccountsApiAxiosParamCreator(configuration);
|
|
140
|
+
return {
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @summary Accounts List
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
async accountsList(options) {
|
|
148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
149
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _2 => _2.serverIndex]), () => ( 0));
|
|
150
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _3 => _3["AccountsApi.accountsList"], 'optionalAccess', _4 => _4[localVarOperationServerIndex], 'optionalAccess', _5 => _5.url]);
|
|
151
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
var AccountsApiFactory = function(configuration, basePath, axios) {
|
|
156
|
+
const localVarFp = AccountsApiFp(configuration);
|
|
157
|
+
return {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @summary Accounts List
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
accountsList(options) {
|
|
165
|
+
return localVarFp.accountsList(options).then((request) => request(axios, basePath));
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
var AccountsApi = class extends BaseAPI {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Accounts List
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
* @memberof AccountsApi
|
|
176
|
+
*/
|
|
177
|
+
accountsList(options) {
|
|
178
|
+
return AccountsApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
|
|
179
|
+
}
|
|
180
|
+
};
|
|
94
181
|
var AddressesApiAxiosParamCreator = function(configuration) {
|
|
95
182
|
return {
|
|
96
183
|
/**
|
|
@@ -194,8 +281,8 @@ var AddressesApiFp = function(configuration) {
|
|
|
194
281
|
*/
|
|
195
282
|
async addressesCreate(contactId, addressCreate, options) {
|
|
196
283
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
197
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
198
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
284
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _6 => _6.serverIndex]), () => ( 0));
|
|
285
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _7 => _7["AddressesApi.addressesCreate"], 'optionalAccess', _8 => _8[localVarOperationServerIndex], 'optionalAccess', _9 => _9.url]);
|
|
199
286
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
200
287
|
},
|
|
201
288
|
/**
|
|
@@ -207,8 +294,8 @@ var AddressesApiFp = function(configuration) {
|
|
|
207
294
|
*/
|
|
208
295
|
async addressesDelete(addressId, options) {
|
|
209
296
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
210
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
211
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
297
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _10 => _10.serverIndex]), () => ( 0));
|
|
298
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _11 => _11["AddressesApi.addressesDelete"], 'optionalAccess', _12 => _12[localVarOperationServerIndex], 'optionalAccess', _13 => _13.url]);
|
|
212
299
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
213
300
|
},
|
|
214
301
|
/**
|
|
@@ -221,8 +308,8 @@ var AddressesApiFp = function(configuration) {
|
|
|
221
308
|
*/
|
|
222
309
|
async addressesUpdate(addressId, addressUpdate, options) {
|
|
223
310
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
224
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
225
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
311
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _14 => _14.serverIndex]), () => ( 0));
|
|
312
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _15 => _15["AddressesApi.addressesUpdate"], 'optionalAccess', _16 => _16[localVarOperationServerIndex], 'optionalAccess', _17 => _17.url]);
|
|
226
313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
227
314
|
}
|
|
228
315
|
};
|
|
@@ -701,16 +788,16 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
701
788
|
},
|
|
702
789
|
/**
|
|
703
790
|
*
|
|
704
|
-
* @summary
|
|
791
|
+
* @summary Phone_numbers Create
|
|
705
792
|
* @param {string} contactId
|
|
706
|
-
* @param {
|
|
793
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
707
794
|
* @param {*} [options] Override http request option.
|
|
708
795
|
* @throws {RequiredError}
|
|
709
796
|
*/
|
|
710
|
-
|
|
711
|
-
assertParamExists("
|
|
712
|
-
assertParamExists("
|
|
713
|
-
const localVarPath = `/contacts/{contactId}/
|
|
797
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
798
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
799
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
800
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
714
801
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
715
802
|
let baseOptions;
|
|
716
803
|
if (configuration) {
|
|
@@ -723,7 +810,7 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
723
810
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
724
811
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
812
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
726
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
813
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
727
814
|
return {
|
|
728
815
|
url: toPathString(localVarUrlObj),
|
|
729
816
|
options: localVarRequestOptions
|
|
@@ -731,14 +818,14 @@ var ContactsApiAxiosParamCreator = function(configuration) {
|
|
|
731
818
|
},
|
|
732
819
|
/**
|
|
733
820
|
*
|
|
734
|
-
* @summary
|
|
735
|
-
* @param {string}
|
|
821
|
+
* @summary Phone_numbers Delete
|
|
822
|
+
* @param {string} phoneNumberId
|
|
736
823
|
* @param {*} [options] Override http request option.
|
|
737
824
|
* @throws {RequiredError}
|
|
738
825
|
*/
|
|
739
|
-
|
|
740
|
-
assertParamExists("
|
|
741
|
-
const localVarPath = `/
|
|
826
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
827
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
828
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
742
829
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
743
830
|
let baseOptions;
|
|
744
831
|
if (configuration) {
|
|
@@ -770,8 +857,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
770
857
|
*/
|
|
771
858
|
async addressesCreate(contactId, addressCreate, options) {
|
|
772
859
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
773
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
774
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
860
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _18 => _18.serverIndex]), () => ( 0));
|
|
861
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _19 => _19["ContactsApi.addressesCreate"], 'optionalAccess', _20 => _20[localVarOperationServerIndex], 'optionalAccess', _21 => _21.url]);
|
|
775
862
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
776
863
|
},
|
|
777
864
|
/**
|
|
@@ -783,8 +870,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
783
870
|
*/
|
|
784
871
|
async addressesDelete(addressId, options) {
|
|
785
872
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
786
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
787
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
873
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _22 => _22.serverIndex]), () => ( 0));
|
|
874
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _23 => _23["ContactsApi.addressesDelete"], 'optionalAccess', _24 => _24[localVarOperationServerIndex], 'optionalAccess', _25 => _25.url]);
|
|
788
875
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
789
876
|
},
|
|
790
877
|
/**
|
|
@@ -797,8 +884,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
797
884
|
*/
|
|
798
885
|
async addressesUpdate(addressId, addressUpdate, options) {
|
|
799
886
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
800
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
801
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
887
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _26 => _26.serverIndex]), () => ( 0));
|
|
888
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _27 => _27["ContactsApi.addressesUpdate"], 'optionalAccess', _28 => _28[localVarOperationServerIndex], 'optionalAccess', _29 => _29.url]);
|
|
802
889
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
803
890
|
},
|
|
804
891
|
/**
|
|
@@ -812,8 +899,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
812
899
|
*/
|
|
813
900
|
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
814
901
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
815
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
816
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
902
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _30 => _30.serverIndex]), () => ( 0));
|
|
903
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _31 => _31["ContactsApi.contactsAddListing"], 'optionalAccess', _32 => _32[localVarOperationServerIndex], 'optionalAccess', _33 => _33.url]);
|
|
817
904
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
818
905
|
},
|
|
819
906
|
/**
|
|
@@ -825,8 +912,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
825
912
|
*/
|
|
826
913
|
async contactsCreate(contactCreate, options) {
|
|
827
914
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
828
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
829
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
915
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _34 => _34.serverIndex]), () => ( 0));
|
|
916
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _35 => _35["ContactsApi.contactsCreate"], 'optionalAccess', _36 => _36[localVarOperationServerIndex], 'optionalAccess', _37 => _37.url]);
|
|
830
917
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
831
918
|
},
|
|
832
919
|
/**
|
|
@@ -838,8 +925,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
838
925
|
*/
|
|
839
926
|
async contactsDelete(contactId, options) {
|
|
840
927
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
841
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
842
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
928
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _38 => _38.serverIndex]), () => ( 0));
|
|
929
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _39 => _39["ContactsApi.contactsDelete"], 'optionalAccess', _40 => _40[localVarOperationServerIndex], 'optionalAccess', _41 => _41.url]);
|
|
843
930
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
844
931
|
},
|
|
845
932
|
/**
|
|
@@ -851,8 +938,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
851
938
|
*/
|
|
852
939
|
async contactsGet(contactId, options) {
|
|
853
940
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
854
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
855
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
941
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _42 => _42.serverIndex]), () => ( 0));
|
|
942
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _43 => _43["ContactsApi.contactsGet"], 'optionalAccess', _44 => _44[localVarOperationServerIndex], 'optionalAccess', _45 => _45.url]);
|
|
856
943
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
857
944
|
},
|
|
858
945
|
/**
|
|
@@ -869,8 +956,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
869
956
|
*/
|
|
870
957
|
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
871
958
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
872
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
873
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
959
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _46 => _46.serverIndex]), () => ( 0));
|
|
960
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _47 => _47["ContactsApi.contactsList"], 'optionalAccess', _48 => _48[localVarOperationServerIndex], 'optionalAccess', _49 => _49.url]);
|
|
874
961
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
875
962
|
},
|
|
876
963
|
/**
|
|
@@ -884,8 +971,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
884
971
|
*/
|
|
885
972
|
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
886
973
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
887
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
888
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
974
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _50 => _50.serverIndex]), () => ( 0));
|
|
975
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _51 => _51["ContactsApi.contactsRemoveListing"], 'optionalAccess', _52 => _52[localVarOperationServerIndex], 'optionalAccess', _53 => _53.url]);
|
|
889
976
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
890
977
|
},
|
|
891
978
|
/**
|
|
@@ -898,8 +985,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
898
985
|
*/
|
|
899
986
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
900
987
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
901
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
902
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
988
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _54 => _54.serverIndex]), () => ( 0));
|
|
989
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _55 => _55["ContactsApi.contactsUpdate"], 'optionalAccess', _56 => _56[localVarOperationServerIndex], 'optionalAccess', _57 => _57.url]);
|
|
903
990
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
904
991
|
},
|
|
905
992
|
/**
|
|
@@ -913,8 +1000,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
913
1000
|
*/
|
|
914
1001
|
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
915
1002
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
916
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
917
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1003
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _58 => _58.serverIndex]), () => ( 0));
|
|
1004
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _59 => _59["ContactsApi.contactsUpdateListing"], 'optionalAccess', _60 => _60[localVarOperationServerIndex], 'optionalAccess', _61 => _61.url]);
|
|
918
1005
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
919
1006
|
},
|
|
920
1007
|
/**
|
|
@@ -927,8 +1014,8 @@ var ContactsApiFp = function(configuration) {
|
|
|
927
1014
|
*/
|
|
928
1015
|
async emailsCreate(contactId, emailCreate, options) {
|
|
929
1016
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
930
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
931
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1017
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _62 => _62.serverIndex]), () => ( 0));
|
|
1018
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _63 => _63["ContactsApi.emailsCreate"], 'optionalAccess', _64 => _64[localVarOperationServerIndex], 'optionalAccess', _65 => _65.url]);
|
|
932
1019
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
933
1020
|
},
|
|
934
1021
|
/**
|
|
@@ -940,35 +1027,35 @@ var ContactsApiFp = function(configuration) {
|
|
|
940
1027
|
*/
|
|
941
1028
|
async emailsDelete(emailId, options) {
|
|
942
1029
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
943
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
944
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1030
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _66 => _66.serverIndex]), () => ( 0));
|
|
1031
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _67 => _67["ContactsApi.emailsDelete"], 'optionalAccess', _68 => _68[localVarOperationServerIndex], 'optionalAccess', _69 => _69.url]);
|
|
945
1032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
946
1033
|
},
|
|
947
1034
|
/**
|
|
948
1035
|
*
|
|
949
|
-
* @summary
|
|
1036
|
+
* @summary Phone_numbers Create
|
|
950
1037
|
* @param {string} contactId
|
|
951
|
-
* @param {
|
|
1038
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
952
1039
|
* @param {*} [options] Override http request option.
|
|
953
1040
|
* @throws {RequiredError}
|
|
954
1041
|
*/
|
|
955
|
-
async
|
|
956
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
957
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
958
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1042
|
+
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1043
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
1044
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _70 => _70.serverIndex]), () => ( 0));
|
|
1045
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _71 => _71["ContactsApi.phoneNumbersCreate"], 'optionalAccess', _72 => _72[localVarOperationServerIndex], 'optionalAccess', _73 => _73.url]);
|
|
959
1046
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
960
1047
|
},
|
|
961
1048
|
/**
|
|
962
1049
|
*
|
|
963
|
-
* @summary
|
|
964
|
-
* @param {string}
|
|
1050
|
+
* @summary Phone_numbers Delete
|
|
1051
|
+
* @param {string} phoneNumberId
|
|
965
1052
|
* @param {*} [options] Override http request option.
|
|
966
1053
|
* @throws {RequiredError}
|
|
967
1054
|
*/
|
|
968
|
-
async
|
|
969
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
970
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
971
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1055
|
+
async phoneNumbersDelete(phoneNumberId, options) {
|
|
1056
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
1057
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _74 => _74.serverIndex]), () => ( 0));
|
|
1058
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _75 => _75["ContactsApi.phoneNumbersDelete"], 'optionalAccess', _76 => _76[localVarOperationServerIndex], 'optionalAccess', _77 => _77.url]);
|
|
972
1059
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
973
1060
|
}
|
|
974
1061
|
};
|
|
@@ -1123,24 +1210,24 @@ var ContactsApiFactory = function(configuration, basePath, axios) {
|
|
|
1123
1210
|
},
|
|
1124
1211
|
/**
|
|
1125
1212
|
*
|
|
1126
|
-
* @summary
|
|
1213
|
+
* @summary Phone_numbers Create
|
|
1127
1214
|
* @param {string} contactId
|
|
1128
|
-
* @param {
|
|
1215
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1129
1216
|
* @param {*} [options] Override http request option.
|
|
1130
1217
|
* @throws {RequiredError}
|
|
1131
1218
|
*/
|
|
1132
|
-
|
|
1133
|
-
return localVarFp.
|
|
1219
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1220
|
+
return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
|
|
1134
1221
|
},
|
|
1135
1222
|
/**
|
|
1136
1223
|
*
|
|
1137
|
-
* @summary
|
|
1138
|
-
* @param {string}
|
|
1224
|
+
* @summary Phone_numbers Delete
|
|
1225
|
+
* @param {string} phoneNumberId
|
|
1139
1226
|
* @param {*} [options] Override http request option.
|
|
1140
1227
|
* @throws {RequiredError}
|
|
1141
1228
|
*/
|
|
1142
|
-
|
|
1143
|
-
return localVarFp.
|
|
1229
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
1230
|
+
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
1144
1231
|
}
|
|
1145
1232
|
};
|
|
1146
1233
|
};
|
|
@@ -1305,42 +1392,40 @@ var ContactsApi = class extends BaseAPI {
|
|
|
1305
1392
|
}
|
|
1306
1393
|
/**
|
|
1307
1394
|
*
|
|
1308
|
-
* @summary
|
|
1395
|
+
* @summary Phone_numbers Create
|
|
1309
1396
|
* @param {string} contactId
|
|
1310
|
-
* @param {
|
|
1397
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1311
1398
|
* @param {*} [options] Override http request option.
|
|
1312
1399
|
* @throws {RequiredError}
|
|
1313
1400
|
* @memberof ContactsApi
|
|
1314
1401
|
*/
|
|
1315
|
-
|
|
1316
|
-
return ContactsApiFp(this.configuration).
|
|
1402
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
1403
|
+
return ContactsApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1317
1404
|
}
|
|
1318
1405
|
/**
|
|
1319
1406
|
*
|
|
1320
|
-
* @summary
|
|
1321
|
-
* @param {string}
|
|
1407
|
+
* @summary Phone_numbers Delete
|
|
1408
|
+
* @param {string} phoneNumberId
|
|
1322
1409
|
* @param {*} [options] Override http request option.
|
|
1323
1410
|
* @throws {RequiredError}
|
|
1324
1411
|
* @memberof ContactsApi
|
|
1325
1412
|
*/
|
|
1326
|
-
|
|
1327
|
-
return ContactsApiFp(this.configuration).
|
|
1413
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
1414
|
+
return ContactsApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
1328
1415
|
}
|
|
1329
1416
|
};
|
|
1330
|
-
var
|
|
1417
|
+
var ConversationsApiAxiosParamCreator = function(configuration) {
|
|
1331
1418
|
return {
|
|
1332
1419
|
/**
|
|
1333
1420
|
*
|
|
1334
|
-
* @summary
|
|
1335
|
-
* @param {
|
|
1336
|
-
* @param {EmailCreate} emailCreate
|
|
1421
|
+
* @summary Conversations Create
|
|
1422
|
+
* @param {ConversationCreate} conversationCreate
|
|
1337
1423
|
* @param {*} [options] Override http request option.
|
|
1338
1424
|
* @throws {RequiredError}
|
|
1339
1425
|
*/
|
|
1340
|
-
|
|
1341
|
-
assertParamExists("
|
|
1342
|
-
|
|
1343
|
-
const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1426
|
+
conversationsCreate: async (conversationCreate, options = {}) => {
|
|
1427
|
+
assertParamExists("conversationsCreate", "conversationCreate", conversationCreate);
|
|
1428
|
+
const localVarPath = `/conversations`;
|
|
1344
1429
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1345
1430
|
let baseOptions;
|
|
1346
1431
|
if (configuration) {
|
|
@@ -1353,7 +1438,7 @@ var EmailsApiAxiosParamCreator = function(configuration) {
|
|
|
1353
1438
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1354
1439
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1355
1440
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1356
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1441
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationCreate, localVarRequestOptions, configuration);
|
|
1357
1442
|
return {
|
|
1358
1443
|
url: toPathString(localVarUrlObj),
|
|
1359
1444
|
options: localVarRequestOptions
|
|
@@ -1361,25 +1446,83 @@ var EmailsApiAxiosParamCreator = function(configuration) {
|
|
|
1361
1446
|
},
|
|
1362
1447
|
/**
|
|
1363
1448
|
*
|
|
1364
|
-
* @summary
|
|
1365
|
-
* @param {string}
|
|
1449
|
+
* @summary Conversations Get
|
|
1450
|
+
* @param {string} conversationId
|
|
1366
1451
|
* @param {*} [options] Override http request option.
|
|
1367
1452
|
* @throws {RequiredError}
|
|
1368
1453
|
*/
|
|
1369
|
-
|
|
1370
|
-
assertParamExists("
|
|
1371
|
-
const localVarPath = `/
|
|
1454
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
1455
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
1456
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1372
1457
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1373
1458
|
let baseOptions;
|
|
1374
1459
|
if (configuration) {
|
|
1375
1460
|
baseOptions = configuration.baseOptions;
|
|
1376
1461
|
}
|
|
1377
|
-
const localVarRequestOptions = { method: "
|
|
1462
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1463
|
+
const localVarHeaderParameter = {};
|
|
1464
|
+
const localVarQueryParameter = {};
|
|
1465
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1467
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1468
|
+
return {
|
|
1469
|
+
url: toPathString(localVarUrlObj),
|
|
1470
|
+
options: localVarRequestOptions
|
|
1471
|
+
};
|
|
1472
|
+
},
|
|
1473
|
+
/**
|
|
1474
|
+
* List all conversations, optionally filtered by contact_id
|
|
1475
|
+
* @summary Conversations List
|
|
1476
|
+
* @param {string} [contactId]
|
|
1477
|
+
* @param {*} [options] Override http request option.
|
|
1478
|
+
* @throws {RequiredError}
|
|
1479
|
+
*/
|
|
1480
|
+
conversationsList: async (contactId, options = {}) => {
|
|
1481
|
+
const localVarPath = `/conversations`;
|
|
1482
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1483
|
+
let baseOptions;
|
|
1484
|
+
if (configuration) {
|
|
1485
|
+
baseOptions = configuration.baseOptions;
|
|
1486
|
+
}
|
|
1487
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1488
|
+
const localVarHeaderParameter = {};
|
|
1489
|
+
const localVarQueryParameter = {};
|
|
1490
|
+
if (contactId !== void 0) {
|
|
1491
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
1492
|
+
}
|
|
1493
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1494
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1495
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1496
|
+
return {
|
|
1497
|
+
url: toPathString(localVarUrlObj),
|
|
1498
|
+
options: localVarRequestOptions
|
|
1499
|
+
};
|
|
1500
|
+
},
|
|
1501
|
+
/**
|
|
1502
|
+
*
|
|
1503
|
+
* @summary Conversations Update
|
|
1504
|
+
* @param {string} conversationId
|
|
1505
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1506
|
+
* @param {*} [options] Override http request option.
|
|
1507
|
+
* @throws {RequiredError}
|
|
1508
|
+
*/
|
|
1509
|
+
conversationsUpdate: async (conversationId, conversationUpdate, options = {}) => {
|
|
1510
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
1511
|
+
assertParamExists("conversationsUpdate", "conversationUpdate", conversationUpdate);
|
|
1512
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
1513
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1514
|
+
let baseOptions;
|
|
1515
|
+
if (configuration) {
|
|
1516
|
+
baseOptions = configuration.baseOptions;
|
|
1517
|
+
}
|
|
1518
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
1378
1519
|
const localVarHeaderParameter = {};
|
|
1379
1520
|
const localVarQueryParameter = {};
|
|
1521
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1380
1522
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1381
1523
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1382
1524
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1525
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdate, localVarRequestOptions, configuration);
|
|
1383
1526
|
return {
|
|
1384
1527
|
url: toPathString(localVarUrlObj),
|
|
1385
1528
|
options: localVarRequestOptions
|
|
@@ -1387,101 +1530,171 @@ var EmailsApiAxiosParamCreator = function(configuration) {
|
|
|
1387
1530
|
}
|
|
1388
1531
|
};
|
|
1389
1532
|
};
|
|
1390
|
-
var
|
|
1391
|
-
const localVarAxiosParamCreator =
|
|
1533
|
+
var ConversationsApiFp = function(configuration) {
|
|
1534
|
+
const localVarAxiosParamCreator = ConversationsApiAxiosParamCreator(configuration);
|
|
1392
1535
|
return {
|
|
1393
1536
|
/**
|
|
1394
1537
|
*
|
|
1395
|
-
* @summary
|
|
1396
|
-
* @param {
|
|
1397
|
-
* @param {EmailCreate} emailCreate
|
|
1538
|
+
* @summary Conversations Create
|
|
1539
|
+
* @param {ConversationCreate} conversationCreate
|
|
1398
1540
|
* @param {*} [options] Override http request option.
|
|
1399
1541
|
* @throws {RequiredError}
|
|
1400
1542
|
*/
|
|
1401
|
-
async
|
|
1402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1403
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1404
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1543
|
+
async conversationsCreate(conversationCreate, options) {
|
|
1544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
|
|
1545
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _78 => _78.serverIndex]), () => ( 0));
|
|
1546
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _79 => _79["ConversationsApi.conversationsCreate"], 'optionalAccess', _80 => _80[localVarOperationServerIndex], 'optionalAccess', _81 => _81.url]);
|
|
1405
1547
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1406
1548
|
},
|
|
1407
1549
|
/**
|
|
1408
1550
|
*
|
|
1409
|
-
* @summary
|
|
1410
|
-
* @param {string}
|
|
1551
|
+
* @summary Conversations Get
|
|
1552
|
+
* @param {string} conversationId
|
|
1411
1553
|
* @param {*} [options] Override http request option.
|
|
1412
1554
|
* @throws {RequiredError}
|
|
1413
1555
|
*/
|
|
1414
|
-
async
|
|
1415
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1416
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1417
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1556
|
+
async conversationsGet(conversationId, options) {
|
|
1557
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
1558
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _82 => _82.serverIndex]), () => ( 0));
|
|
1559
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _83 => _83["ConversationsApi.conversationsGet"], 'optionalAccess', _84 => _84[localVarOperationServerIndex], 'optionalAccess', _85 => _85.url]);
|
|
1560
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1561
|
+
},
|
|
1562
|
+
/**
|
|
1563
|
+
* List all conversations, optionally filtered by contact_id
|
|
1564
|
+
* @summary Conversations List
|
|
1565
|
+
* @param {string} [contactId]
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
*/
|
|
1569
|
+
async conversationsList(contactId, options) {
|
|
1570
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
1571
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _86 => _86.serverIndex]), () => ( 0));
|
|
1572
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _87 => _87["ConversationsApi.conversationsList"], 'optionalAccess', _88 => _88[localVarOperationServerIndex], 'optionalAccess', _89 => _89.url]);
|
|
1573
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1574
|
+
},
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @summary Conversations Update
|
|
1578
|
+
* @param {string} conversationId
|
|
1579
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
async conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
|
|
1585
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _90 => _90.serverIndex]), () => ( 0));
|
|
1586
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _91 => _91["ConversationsApi.conversationsUpdate"], 'optionalAccess', _92 => _92[localVarOperationServerIndex], 'optionalAccess', _93 => _93.url]);
|
|
1418
1587
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1419
1588
|
}
|
|
1420
1589
|
};
|
|
1421
1590
|
};
|
|
1422
|
-
var
|
|
1423
|
-
const localVarFp =
|
|
1591
|
+
var ConversationsApiFactory = function(configuration, basePath, axios) {
|
|
1592
|
+
const localVarFp = ConversationsApiFp(configuration);
|
|
1424
1593
|
return {
|
|
1425
1594
|
/**
|
|
1426
1595
|
*
|
|
1427
|
-
* @summary
|
|
1428
|
-
* @param {
|
|
1429
|
-
* @param {EmailCreate} emailCreate
|
|
1596
|
+
* @summary Conversations Create
|
|
1597
|
+
* @param {ConversationCreate} conversationCreate
|
|
1430
1598
|
* @param {*} [options] Override http request option.
|
|
1431
1599
|
* @throws {RequiredError}
|
|
1432
1600
|
*/
|
|
1433
|
-
|
|
1434
|
-
return localVarFp.
|
|
1601
|
+
conversationsCreate(conversationCreate, options) {
|
|
1602
|
+
return localVarFp.conversationsCreate(conversationCreate, options).then((request) => request(axios, basePath));
|
|
1435
1603
|
},
|
|
1436
1604
|
/**
|
|
1437
1605
|
*
|
|
1438
|
-
* @summary
|
|
1439
|
-
* @param {string}
|
|
1606
|
+
* @summary Conversations Get
|
|
1607
|
+
* @param {string} conversationId
|
|
1440
1608
|
* @param {*} [options] Override http request option.
|
|
1441
1609
|
* @throws {RequiredError}
|
|
1442
1610
|
*/
|
|
1443
|
-
|
|
1444
|
-
return localVarFp.
|
|
1611
|
+
conversationsGet(conversationId, options) {
|
|
1612
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
1613
|
+
},
|
|
1614
|
+
/**
|
|
1615
|
+
* List all conversations, optionally filtered by contact_id
|
|
1616
|
+
* @summary Conversations List
|
|
1617
|
+
* @param {string} [contactId]
|
|
1618
|
+
* @param {*} [options] Override http request option.
|
|
1619
|
+
* @throws {RequiredError}
|
|
1620
|
+
*/
|
|
1621
|
+
conversationsList(contactId, options) {
|
|
1622
|
+
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
1623
|
+
},
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @summary Conversations Update
|
|
1627
|
+
* @param {string} conversationId
|
|
1628
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1633
|
+
return localVarFp.conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(axios, basePath));
|
|
1445
1634
|
}
|
|
1446
1635
|
};
|
|
1447
1636
|
};
|
|
1448
|
-
var
|
|
1637
|
+
var ConversationsApi = class extends BaseAPI {
|
|
1449
1638
|
/**
|
|
1450
1639
|
*
|
|
1451
|
-
* @summary
|
|
1452
|
-
* @param {
|
|
1453
|
-
* @param {EmailCreate} emailCreate
|
|
1640
|
+
* @summary Conversations Create
|
|
1641
|
+
* @param {ConversationCreate} conversationCreate
|
|
1454
1642
|
* @param {*} [options] Override http request option.
|
|
1455
1643
|
* @throws {RequiredError}
|
|
1456
|
-
* @memberof
|
|
1644
|
+
* @memberof ConversationsApi
|
|
1457
1645
|
*/
|
|
1458
|
-
|
|
1459
|
-
return
|
|
1646
|
+
conversationsCreate(conversationCreate, options) {
|
|
1647
|
+
return ConversationsApiFp(this.configuration).conversationsCreate(conversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1460
1648
|
}
|
|
1461
1649
|
/**
|
|
1462
1650
|
*
|
|
1463
|
-
* @summary
|
|
1464
|
-
* @param {string}
|
|
1651
|
+
* @summary Conversations Get
|
|
1652
|
+
* @param {string} conversationId
|
|
1465
1653
|
* @param {*} [options] Override http request option.
|
|
1466
1654
|
* @throws {RequiredError}
|
|
1467
|
-
* @memberof
|
|
1655
|
+
* @memberof ConversationsApi
|
|
1468
1656
|
*/
|
|
1469
|
-
|
|
1470
|
-
return
|
|
1657
|
+
conversationsGet(conversationId, options) {
|
|
1658
|
+
return ConversationsApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
1659
|
+
}
|
|
1660
|
+
/**
|
|
1661
|
+
* List all conversations, optionally filtered by contact_id
|
|
1662
|
+
* @summary Conversations List
|
|
1663
|
+
* @param {string} [contactId]
|
|
1664
|
+
* @param {*} [options] Override http request option.
|
|
1665
|
+
* @throws {RequiredError}
|
|
1666
|
+
* @memberof ConversationsApi
|
|
1667
|
+
*/
|
|
1668
|
+
conversationsList(contactId, options) {
|
|
1669
|
+
return ConversationsApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @summary Conversations Update
|
|
1674
|
+
* @param {string} conversationId
|
|
1675
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
1676
|
+
* @param {*} [options] Override http request option.
|
|
1677
|
+
* @throws {RequiredError}
|
|
1678
|
+
* @memberof ConversationsApi
|
|
1679
|
+
*/
|
|
1680
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
1681
|
+
return ConversationsApiFp(this.configuration).conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1471
1682
|
}
|
|
1472
1683
|
};
|
|
1473
|
-
var
|
|
1684
|
+
var EmailsApiAxiosParamCreator = function(configuration) {
|
|
1474
1685
|
return {
|
|
1475
1686
|
/**
|
|
1476
1687
|
*
|
|
1477
|
-
* @summary
|
|
1478
|
-
* @param {
|
|
1688
|
+
* @summary Emails Create
|
|
1689
|
+
* @param {string} contactId
|
|
1690
|
+
* @param {EmailCreate} emailCreate
|
|
1479
1691
|
* @param {*} [options] Override http request option.
|
|
1480
1692
|
* @throws {RequiredError}
|
|
1481
1693
|
*/
|
|
1482
|
-
|
|
1483
|
-
assertParamExists("
|
|
1484
|
-
|
|
1694
|
+
emailsCreate: async (contactId, emailCreate, options = {}) => {
|
|
1695
|
+
assertParamExists("emailsCreate", "contactId", contactId);
|
|
1696
|
+
assertParamExists("emailsCreate", "emailCreate", emailCreate);
|
|
1697
|
+
const localVarPath = `/contacts/{contactId}/emails`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1485
1698
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1486
1699
|
let baseOptions;
|
|
1487
1700
|
if (configuration) {
|
|
@@ -1490,22 +1703,163 @@ var HostawayApiAxiosParamCreator = function(configuration) {
|
|
|
1490
1703
|
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1491
1704
|
const localVarHeaderParameter = {};
|
|
1492
1705
|
const localVarQueryParameter = {};
|
|
1493
|
-
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1494
1706
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1495
1707
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1496
1708
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1497
1709
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1498
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1710
|
+
localVarRequestOptions.data = serializeDataIfNeeded(emailCreate, localVarRequestOptions, configuration);
|
|
1499
1711
|
return {
|
|
1500
1712
|
url: toPathString(localVarUrlObj),
|
|
1501
1713
|
options: localVarRequestOptions
|
|
1502
1714
|
};
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1715
|
+
},
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @summary Emails Delete
|
|
1719
|
+
* @param {string} emailId
|
|
1720
|
+
* @param {*} [options] Override http request option.
|
|
1721
|
+
* @throws {RequiredError}
|
|
1722
|
+
*/
|
|
1723
|
+
emailsDelete: async (emailId, options = {}) => {
|
|
1724
|
+
assertParamExists("emailsDelete", "emailId", emailId);
|
|
1725
|
+
const localVarPath = `/emails/{emailId}`.replace(`{${"emailId"}}`, encodeURIComponent(String(emailId)));
|
|
1726
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1727
|
+
let baseOptions;
|
|
1728
|
+
if (configuration) {
|
|
1729
|
+
baseOptions = configuration.baseOptions;
|
|
1730
|
+
}
|
|
1731
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1732
|
+
const localVarHeaderParameter = {};
|
|
1733
|
+
const localVarQueryParameter = {};
|
|
1734
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1735
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1736
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1737
|
+
return {
|
|
1738
|
+
url: toPathString(localVarUrlObj),
|
|
1739
|
+
options: localVarRequestOptions
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
};
|
|
1743
|
+
};
|
|
1744
|
+
var EmailsApiFp = function(configuration) {
|
|
1745
|
+
const localVarAxiosParamCreator = EmailsApiAxiosParamCreator(configuration);
|
|
1746
|
+
return {
|
|
1747
|
+
/**
|
|
1748
|
+
*
|
|
1749
|
+
* @summary Emails Create
|
|
1750
|
+
* @param {string} contactId
|
|
1751
|
+
* @param {EmailCreate} emailCreate
|
|
1752
|
+
* @param {*} [options] Override http request option.
|
|
1753
|
+
* @throws {RequiredError}
|
|
1754
|
+
*/
|
|
1755
|
+
async emailsCreate(contactId, emailCreate, options) {
|
|
1756
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
1757
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _94 => _94.serverIndex]), () => ( 0));
|
|
1758
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _95 => _95["EmailsApi.emailsCreate"], 'optionalAccess', _96 => _96[localVarOperationServerIndex], 'optionalAccess', _97 => _97.url]);
|
|
1759
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1760
|
+
},
|
|
1761
|
+
/**
|
|
1762
|
+
*
|
|
1763
|
+
* @summary Emails Delete
|
|
1764
|
+
* @param {string} emailId
|
|
1765
|
+
* @param {*} [options] Override http request option.
|
|
1766
|
+
* @throws {RequiredError}
|
|
1767
|
+
*/
|
|
1768
|
+
async emailsDelete(emailId, options) {
|
|
1769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
1770
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _98 => _98.serverIndex]), () => ( 0));
|
|
1771
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _99 => _99["EmailsApi.emailsDelete"], 'optionalAccess', _100 => _100[localVarOperationServerIndex], 'optionalAccess', _101 => _101.url]);
|
|
1772
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1773
|
+
}
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
var EmailsApiFactory = function(configuration, basePath, axios) {
|
|
1777
|
+
const localVarFp = EmailsApiFp(configuration);
|
|
1778
|
+
return {
|
|
1779
|
+
/**
|
|
1780
|
+
*
|
|
1781
|
+
* @summary Emails Create
|
|
1782
|
+
* @param {string} contactId
|
|
1783
|
+
* @param {EmailCreate} emailCreate
|
|
1784
|
+
* @param {*} [options] Override http request option.
|
|
1785
|
+
* @throws {RequiredError}
|
|
1786
|
+
*/
|
|
1787
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
1788
|
+
return localVarFp.emailsCreate(contactId, emailCreate, options).then((request) => request(axios, basePath));
|
|
1789
|
+
},
|
|
1790
|
+
/**
|
|
1791
|
+
*
|
|
1792
|
+
* @summary Emails Delete
|
|
1793
|
+
* @param {string} emailId
|
|
1794
|
+
* @param {*} [options] Override http request option.
|
|
1795
|
+
* @throws {RequiredError}
|
|
1796
|
+
*/
|
|
1797
|
+
emailsDelete(emailId, options) {
|
|
1798
|
+
return localVarFp.emailsDelete(emailId, options).then((request) => request(axios, basePath));
|
|
1799
|
+
}
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
1802
|
+
var EmailsApi = class extends BaseAPI {
|
|
1803
|
+
/**
|
|
1804
|
+
*
|
|
1805
|
+
* @summary Emails Create
|
|
1806
|
+
* @param {string} contactId
|
|
1807
|
+
* @param {EmailCreate} emailCreate
|
|
1808
|
+
* @param {*} [options] Override http request option.
|
|
1809
|
+
* @throws {RequiredError}
|
|
1810
|
+
* @memberof EmailsApi
|
|
1811
|
+
*/
|
|
1812
|
+
emailsCreate(contactId, emailCreate, options) {
|
|
1813
|
+
return EmailsApiFp(this.configuration).emailsCreate(contactId, emailCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
*
|
|
1817
|
+
* @summary Emails Delete
|
|
1818
|
+
* @param {string} emailId
|
|
1819
|
+
* @param {*} [options] Override http request option.
|
|
1820
|
+
* @throws {RequiredError}
|
|
1821
|
+
* @memberof EmailsApi
|
|
1822
|
+
*/
|
|
1823
|
+
emailsDelete(emailId, options) {
|
|
1824
|
+
return EmailsApiFp(this.configuration).emailsDelete(emailId, options).then((request) => request(this.axios, this.basePath));
|
|
1825
|
+
}
|
|
1826
|
+
};
|
|
1827
|
+
var HostawayApiAxiosParamCreator = function(configuration) {
|
|
1828
|
+
return {
|
|
1829
|
+
/**
|
|
1830
|
+
*
|
|
1831
|
+
* @summary Unifiedwebhook
|
|
1832
|
+
* @param {HostawayWebhook} hostawayWebhook
|
|
1833
|
+
* @param {*} [options] Override http request option.
|
|
1834
|
+
* @throws {RequiredError}
|
|
1835
|
+
*/
|
|
1836
|
+
webhook: async (hostawayWebhook, options = {}) => {
|
|
1837
|
+
assertParamExists("webhook", "hostawayWebhook", hostawayWebhook);
|
|
1838
|
+
const localVarPath = `/hostaway-unified-webhooks`;
|
|
1839
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1840
|
+
let baseOptions;
|
|
1841
|
+
if (configuration) {
|
|
1842
|
+
baseOptions = configuration.baseOptions;
|
|
1843
|
+
}
|
|
1844
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1845
|
+
const localVarHeaderParameter = {};
|
|
1846
|
+
const localVarQueryParameter = {};
|
|
1847
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1848
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1849
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1850
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1851
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1852
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostawayWebhook, localVarRequestOptions, configuration);
|
|
1853
|
+
return {
|
|
1854
|
+
url: toPathString(localVarUrlObj),
|
|
1855
|
+
options: localVarRequestOptions
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
var HostawayApiFp = function(configuration) {
|
|
1861
|
+
const localVarAxiosParamCreator = HostawayApiAxiosParamCreator(configuration);
|
|
1862
|
+
return {
|
|
1509
1863
|
/**
|
|
1510
1864
|
*
|
|
1511
1865
|
* @summary Unifiedwebhook
|
|
@@ -1515,8 +1869,8 @@ var HostawayApiFp = function(configuration) {
|
|
|
1515
1869
|
*/
|
|
1516
1870
|
async webhook(hostawayWebhook, options) {
|
|
1517
1871
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
1518
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1519
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1872
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _102 => _102.serverIndex]), () => ( 0));
|
|
1873
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _103 => _103["HostawayApi.webhook"], 'optionalAccess', _104 => _104[localVarOperationServerIndex], 'optionalAccess', _105 => _105.url]);
|
|
1520
1874
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1521
1875
|
}
|
|
1522
1876
|
};
|
|
@@ -1593,8 +1947,8 @@ var InquiriesApiFp = function(configuration) {
|
|
|
1593
1947
|
*/
|
|
1594
1948
|
async inquiriesList(contactId, options) {
|
|
1595
1949
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
1596
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1597
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
1950
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _106 => _106.serverIndex]), () => ( 0));
|
|
1951
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _107 => _107["InquiriesApi.inquiriesList"], 'optionalAccess', _108 => _108[localVarOperationServerIndex], 'optionalAccess', _109 => _109.url]);
|
|
1598
1952
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1599
1953
|
}
|
|
1600
1954
|
};
|
|
@@ -1671,8 +2025,8 @@ var ListingsApiFp = function(configuration) {
|
|
|
1671
2025
|
*/
|
|
1672
2026
|
async listingsList(contactId, options) {
|
|
1673
2027
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
1674
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1675
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2028
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _110 => _110.serverIndex]), () => ( 0));
|
|
2029
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _111 => _111["ListingsApi.listingsList"], 'optionalAccess', _112 => _112[localVarOperationServerIndex], 'optionalAccess', _113 => _113.url]);
|
|
1676
2030
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1677
2031
|
}
|
|
1678
2032
|
};
|
|
@@ -1705,20 +2059,91 @@ var ListingsApi = class extends BaseAPI {
|
|
|
1705
2059
|
return ListingsApiFp(this.configuration).listingsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
1706
2060
|
}
|
|
1707
2061
|
};
|
|
1708
|
-
var
|
|
2062
|
+
var ManagedPhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
2063
|
+
return {
|
|
2064
|
+
/**
|
|
2065
|
+
*
|
|
2066
|
+
* @summary Managed_phone_numbers List
|
|
2067
|
+
* @param {*} [options] Override http request option.
|
|
2068
|
+
* @throws {RequiredError}
|
|
2069
|
+
*/
|
|
2070
|
+
managedPhoneNumbersList: async (options = {}) => {
|
|
2071
|
+
const localVarPath = `/managed_phone_numbers`;
|
|
2072
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2073
|
+
let baseOptions;
|
|
2074
|
+
if (configuration) {
|
|
2075
|
+
baseOptions = configuration.baseOptions;
|
|
2076
|
+
}
|
|
2077
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2078
|
+
const localVarHeaderParameter = {};
|
|
2079
|
+
const localVarQueryParameter = {};
|
|
2080
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2081
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2082
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2083
|
+
return {
|
|
2084
|
+
url: toPathString(localVarUrlObj),
|
|
2085
|
+
options: localVarRequestOptions
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
};
|
|
2089
|
+
};
|
|
2090
|
+
var ManagedPhoneNumbersApiFp = function(configuration) {
|
|
2091
|
+
const localVarAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator(configuration);
|
|
1709
2092
|
return {
|
|
1710
2093
|
/**
|
|
1711
2094
|
*
|
|
1712
|
-
* @summary
|
|
2095
|
+
* @summary Managed_phone_numbers List
|
|
2096
|
+
* @param {*} [options] Override http request option.
|
|
2097
|
+
* @throws {RequiredError}
|
|
2098
|
+
*/
|
|
2099
|
+
async managedPhoneNumbersList(options) {
|
|
2100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
2101
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _114 => _114.serverIndex]), () => ( 0));
|
|
2102
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _115 => _115["ManagedPhoneNumbersApi.managedPhoneNumbersList"], 'optionalAccess', _116 => _116[localVarOperationServerIndex], 'optionalAccess', _117 => _117.url]);
|
|
2103
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
};
|
|
2107
|
+
var ManagedPhoneNumbersApiFactory = function(configuration, basePath, axios) {
|
|
2108
|
+
const localVarFp = ManagedPhoneNumbersApiFp(configuration);
|
|
2109
|
+
return {
|
|
2110
|
+
/**
|
|
2111
|
+
*
|
|
2112
|
+
* @summary Managed_phone_numbers List
|
|
2113
|
+
* @param {*} [options] Override http request option.
|
|
2114
|
+
* @throws {RequiredError}
|
|
2115
|
+
*/
|
|
2116
|
+
managedPhoneNumbersList(options) {
|
|
2117
|
+
return localVarFp.managedPhoneNumbersList(options).then((request) => request(axios, basePath));
|
|
2118
|
+
}
|
|
2119
|
+
};
|
|
2120
|
+
};
|
|
2121
|
+
var ManagedPhoneNumbersApi = class extends BaseAPI {
|
|
2122
|
+
/**
|
|
2123
|
+
*
|
|
2124
|
+
* @summary Managed_phone_numbers List
|
|
2125
|
+
* @param {*} [options] Override http request option.
|
|
2126
|
+
* @throws {RequiredError}
|
|
2127
|
+
* @memberof ManagedPhoneNumbersApi
|
|
2128
|
+
*/
|
|
2129
|
+
managedPhoneNumbersList(options) {
|
|
2130
|
+
return ManagedPhoneNumbersApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
|
|
2131
|
+
}
|
|
2132
|
+
};
|
|
2133
|
+
var PhoneNumbersApiAxiosParamCreator = function(configuration) {
|
|
2134
|
+
return {
|
|
2135
|
+
/**
|
|
2136
|
+
*
|
|
2137
|
+
* @summary Phone_numbers Create
|
|
1713
2138
|
* @param {string} contactId
|
|
1714
|
-
* @param {
|
|
2139
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1715
2140
|
* @param {*} [options] Override http request option.
|
|
1716
2141
|
* @throws {RequiredError}
|
|
1717
2142
|
*/
|
|
1718
|
-
|
|
1719
|
-
assertParamExists("
|
|
1720
|
-
assertParamExists("
|
|
1721
|
-
const localVarPath = `/contacts/{contactId}/
|
|
2143
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
2144
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
2145
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
2146
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
1722
2147
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1723
2148
|
let baseOptions;
|
|
1724
2149
|
if (configuration) {
|
|
@@ -1731,7 +2156,7 @@ var PhonesApiAxiosParamCreator = function(configuration) {
|
|
|
1731
2156
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1732
2157
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1733
2158
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1734
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2159
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
1735
2160
|
return {
|
|
1736
2161
|
url: toPathString(localVarUrlObj),
|
|
1737
2162
|
options: localVarRequestOptions
|
|
@@ -1739,14 +2164,14 @@ var PhonesApiAxiosParamCreator = function(configuration) {
|
|
|
1739
2164
|
},
|
|
1740
2165
|
/**
|
|
1741
2166
|
*
|
|
1742
|
-
* @summary
|
|
1743
|
-
* @param {string}
|
|
2167
|
+
* @summary Phone_numbers Delete
|
|
2168
|
+
* @param {string} phoneNumberId
|
|
1744
2169
|
* @param {*} [options] Override http request option.
|
|
1745
2170
|
* @throws {RequiredError}
|
|
1746
2171
|
*/
|
|
1747
|
-
|
|
1748
|
-
assertParamExists("
|
|
1749
|
-
const localVarPath = `/
|
|
2172
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
2173
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
2174
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
1750
2175
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1751
2176
|
let baseOptions;
|
|
1752
2177
|
if (configuration) {
|
|
@@ -1765,87 +2190,87 @@ var PhonesApiAxiosParamCreator = function(configuration) {
|
|
|
1765
2190
|
}
|
|
1766
2191
|
};
|
|
1767
2192
|
};
|
|
1768
|
-
var
|
|
1769
|
-
const localVarAxiosParamCreator =
|
|
2193
|
+
var PhoneNumbersApiFp = function(configuration) {
|
|
2194
|
+
const localVarAxiosParamCreator = PhoneNumbersApiAxiosParamCreator(configuration);
|
|
1770
2195
|
return {
|
|
1771
2196
|
/**
|
|
1772
2197
|
*
|
|
1773
|
-
* @summary
|
|
2198
|
+
* @summary Phone_numbers Create
|
|
1774
2199
|
* @param {string} contactId
|
|
1775
|
-
* @param {
|
|
2200
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1776
2201
|
* @param {*} [options] Override http request option.
|
|
1777
2202
|
* @throws {RequiredError}
|
|
1778
2203
|
*/
|
|
1779
|
-
async
|
|
1780
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1781
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1782
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2204
|
+
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
2206
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _118 => _118.serverIndex]), () => ( 0));
|
|
2207
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _119 => _119["PhoneNumbersApi.phoneNumbersCreate"], 'optionalAccess', _120 => _120[localVarOperationServerIndex], 'optionalAccess', _121 => _121.url]);
|
|
1783
2208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1784
2209
|
},
|
|
1785
2210
|
/**
|
|
1786
2211
|
*
|
|
1787
|
-
* @summary
|
|
1788
|
-
* @param {string}
|
|
2212
|
+
* @summary Phone_numbers Delete
|
|
2213
|
+
* @param {string} phoneNumberId
|
|
1789
2214
|
* @param {*} [options] Override http request option.
|
|
1790
2215
|
* @throws {RequiredError}
|
|
1791
2216
|
*/
|
|
1792
|
-
async
|
|
1793
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1794
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1795
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2217
|
+
async phoneNumbersDelete(phoneNumberId, options) {
|
|
2218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
2219
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _122 => _122.serverIndex]), () => ( 0));
|
|
2220
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _123 => _123["PhoneNumbersApi.phoneNumbersDelete"], 'optionalAccess', _124 => _124[localVarOperationServerIndex], 'optionalAccess', _125 => _125.url]);
|
|
1796
2221
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1797
2222
|
}
|
|
1798
2223
|
};
|
|
1799
2224
|
};
|
|
1800
|
-
var
|
|
1801
|
-
const localVarFp =
|
|
2225
|
+
var PhoneNumbersApiFactory = function(configuration, basePath, axios) {
|
|
2226
|
+
const localVarFp = PhoneNumbersApiFp(configuration);
|
|
1802
2227
|
return {
|
|
1803
2228
|
/**
|
|
1804
2229
|
*
|
|
1805
|
-
* @summary
|
|
2230
|
+
* @summary Phone_numbers Create
|
|
1806
2231
|
* @param {string} contactId
|
|
1807
|
-
* @param {
|
|
2232
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1808
2233
|
* @param {*} [options] Override http request option.
|
|
1809
2234
|
* @throws {RequiredError}
|
|
1810
2235
|
*/
|
|
1811
|
-
|
|
1812
|
-
return localVarFp.
|
|
2236
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2237
|
+
return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
|
|
1813
2238
|
},
|
|
1814
2239
|
/**
|
|
1815
2240
|
*
|
|
1816
|
-
* @summary
|
|
1817
|
-
* @param {string}
|
|
2241
|
+
* @summary Phone_numbers Delete
|
|
2242
|
+
* @param {string} phoneNumberId
|
|
1818
2243
|
* @param {*} [options] Override http request option.
|
|
1819
2244
|
* @throws {RequiredError}
|
|
1820
2245
|
*/
|
|
1821
|
-
|
|
1822
|
-
return localVarFp.
|
|
2246
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
2247
|
+
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
1823
2248
|
}
|
|
1824
2249
|
};
|
|
1825
2250
|
};
|
|
1826
|
-
var
|
|
2251
|
+
var PhoneNumbersApi = class extends BaseAPI {
|
|
1827
2252
|
/**
|
|
1828
2253
|
*
|
|
1829
|
-
* @summary
|
|
2254
|
+
* @summary Phone_numbers Create
|
|
1830
2255
|
* @param {string} contactId
|
|
1831
|
-
* @param {
|
|
2256
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
1832
2257
|
* @param {*} [options] Override http request option.
|
|
1833
2258
|
* @throws {RequiredError}
|
|
1834
|
-
* @memberof
|
|
2259
|
+
* @memberof PhoneNumbersApi
|
|
1835
2260
|
*/
|
|
1836
|
-
|
|
1837
|
-
return
|
|
2261
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
2262
|
+
return PhoneNumbersApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1838
2263
|
}
|
|
1839
2264
|
/**
|
|
1840
2265
|
*
|
|
1841
|
-
* @summary
|
|
1842
|
-
* @param {string}
|
|
2266
|
+
* @summary Phone_numbers Delete
|
|
2267
|
+
* @param {string} phoneNumberId
|
|
1843
2268
|
* @param {*} [options] Override http request option.
|
|
1844
2269
|
* @throws {RequiredError}
|
|
1845
|
-
* @memberof
|
|
2270
|
+
* @memberof PhoneNumbersApi
|
|
1846
2271
|
*/
|
|
1847
|
-
|
|
1848
|
-
return
|
|
2272
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
2273
|
+
return PhoneNumbersApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
1849
2274
|
}
|
|
1850
2275
|
};
|
|
1851
2276
|
var ReservationsApiAxiosParamCreator = function(configuration) {
|
|
@@ -1892,8 +2317,8 @@ var ReservationsApiFp = function(configuration) {
|
|
|
1892
2317
|
*/
|
|
1893
2318
|
async reservationsList(contactId, options) {
|
|
1894
2319
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
1895
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
1896
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
2320
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _126 => _126.serverIndex]), () => ( 0));
|
|
2321
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _127 => _127["ReservationsApi.reservationsList"], 'optionalAccess', _128 => _128[localVarOperationServerIndex], 'optionalAccess', _129 => _129.url]);
|
|
1897
2322
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1898
2323
|
}
|
|
1899
2324
|
};
|
|
@@ -1928,6 +2353,30 @@ var ReservationsApi = class extends BaseAPI {
|
|
|
1928
2353
|
};
|
|
1929
2354
|
var UnboundApiAxiosParamCreator = function(configuration) {
|
|
1930
2355
|
return {
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @summary Accounts List
|
|
2359
|
+
* @param {*} [options] Override http request option.
|
|
2360
|
+
* @throws {RequiredError}
|
|
2361
|
+
*/
|
|
2362
|
+
accountsList: async (options = {}) => {
|
|
2363
|
+
const localVarPath = `/accounts`;
|
|
2364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2365
|
+
let baseOptions;
|
|
2366
|
+
if (configuration) {
|
|
2367
|
+
baseOptions = configuration.baseOptions;
|
|
2368
|
+
}
|
|
2369
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2370
|
+
const localVarHeaderParameter = {};
|
|
2371
|
+
const localVarQueryParameter = {};
|
|
2372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2374
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2375
|
+
return {
|
|
2376
|
+
url: toPathString(localVarUrlObj),
|
|
2377
|
+
options: localVarRequestOptions
|
|
2378
|
+
};
|
|
2379
|
+
},
|
|
1931
2380
|
/**
|
|
1932
2381
|
*
|
|
1933
2382
|
* @summary Addresses Create
|
|
@@ -2268,6 +2717,118 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2268
2717
|
options: localVarRequestOptions
|
|
2269
2718
|
};
|
|
2270
2719
|
},
|
|
2720
|
+
/**
|
|
2721
|
+
*
|
|
2722
|
+
* @summary Conversations Create
|
|
2723
|
+
* @param {ConversationCreate} conversationCreate
|
|
2724
|
+
* @param {*} [options] Override http request option.
|
|
2725
|
+
* @throws {RequiredError}
|
|
2726
|
+
*/
|
|
2727
|
+
conversationsCreate: async (conversationCreate, options = {}) => {
|
|
2728
|
+
assertParamExists("conversationsCreate", "conversationCreate", conversationCreate);
|
|
2729
|
+
const localVarPath = `/conversations`;
|
|
2730
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2731
|
+
let baseOptions;
|
|
2732
|
+
if (configuration) {
|
|
2733
|
+
baseOptions = configuration.baseOptions;
|
|
2734
|
+
}
|
|
2735
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
2736
|
+
const localVarHeaderParameter = {};
|
|
2737
|
+
const localVarQueryParameter = {};
|
|
2738
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2739
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2741
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2742
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationCreate, localVarRequestOptions, configuration);
|
|
2743
|
+
return {
|
|
2744
|
+
url: toPathString(localVarUrlObj),
|
|
2745
|
+
options: localVarRequestOptions
|
|
2746
|
+
};
|
|
2747
|
+
},
|
|
2748
|
+
/**
|
|
2749
|
+
*
|
|
2750
|
+
* @summary Conversations Get
|
|
2751
|
+
* @param {string} conversationId
|
|
2752
|
+
* @param {*} [options] Override http request option.
|
|
2753
|
+
* @throws {RequiredError}
|
|
2754
|
+
*/
|
|
2755
|
+
conversationsGet: async (conversationId, options = {}) => {
|
|
2756
|
+
assertParamExists("conversationsGet", "conversationId", conversationId);
|
|
2757
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2758
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2759
|
+
let baseOptions;
|
|
2760
|
+
if (configuration) {
|
|
2761
|
+
baseOptions = configuration.baseOptions;
|
|
2762
|
+
}
|
|
2763
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2764
|
+
const localVarHeaderParameter = {};
|
|
2765
|
+
const localVarQueryParameter = {};
|
|
2766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2768
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2769
|
+
return {
|
|
2770
|
+
url: toPathString(localVarUrlObj),
|
|
2771
|
+
options: localVarRequestOptions
|
|
2772
|
+
};
|
|
2773
|
+
},
|
|
2774
|
+
/**
|
|
2775
|
+
* List all conversations, optionally filtered by contact_id
|
|
2776
|
+
* @summary Conversations List
|
|
2777
|
+
* @param {string} [contactId]
|
|
2778
|
+
* @param {*} [options] Override http request option.
|
|
2779
|
+
* @throws {RequiredError}
|
|
2780
|
+
*/
|
|
2781
|
+
conversationsList: async (contactId, options = {}) => {
|
|
2782
|
+
const localVarPath = `/conversations`;
|
|
2783
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2784
|
+
let baseOptions;
|
|
2785
|
+
if (configuration) {
|
|
2786
|
+
baseOptions = configuration.baseOptions;
|
|
2787
|
+
}
|
|
2788
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2789
|
+
const localVarHeaderParameter = {};
|
|
2790
|
+
const localVarQueryParameter = {};
|
|
2791
|
+
if (contactId !== void 0) {
|
|
2792
|
+
localVarQueryParameter["contactId"] = contactId;
|
|
2793
|
+
}
|
|
2794
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2795
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2796
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2797
|
+
return {
|
|
2798
|
+
url: toPathString(localVarUrlObj),
|
|
2799
|
+
options: localVarRequestOptions
|
|
2800
|
+
};
|
|
2801
|
+
},
|
|
2802
|
+
/**
|
|
2803
|
+
*
|
|
2804
|
+
* @summary Conversations Update
|
|
2805
|
+
* @param {string} conversationId
|
|
2806
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
2807
|
+
* @param {*} [options] Override http request option.
|
|
2808
|
+
* @throws {RequiredError}
|
|
2809
|
+
*/
|
|
2810
|
+
conversationsUpdate: async (conversationId, conversationUpdate, options = {}) => {
|
|
2811
|
+
assertParamExists("conversationsUpdate", "conversationId", conversationId);
|
|
2812
|
+
assertParamExists("conversationsUpdate", "conversationUpdate", conversationUpdate);
|
|
2813
|
+
const localVarPath = `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(conversationId)));
|
|
2814
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2815
|
+
let baseOptions;
|
|
2816
|
+
if (configuration) {
|
|
2817
|
+
baseOptions = configuration.baseOptions;
|
|
2818
|
+
}
|
|
2819
|
+
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options };
|
|
2820
|
+
const localVarHeaderParameter = {};
|
|
2821
|
+
const localVarQueryParameter = {};
|
|
2822
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2823
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2824
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2825
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2826
|
+
localVarRequestOptions.data = serializeDataIfNeeded(conversationUpdate, localVarRequestOptions, configuration);
|
|
2827
|
+
return {
|
|
2828
|
+
url: toPathString(localVarUrlObj),
|
|
2829
|
+
options: localVarRequestOptions
|
|
2830
|
+
};
|
|
2831
|
+
},
|
|
2271
2832
|
/**
|
|
2272
2833
|
*
|
|
2273
2834
|
* @summary Emails Create
|
|
@@ -2382,16 +2943,40 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2382
2943
|
},
|
|
2383
2944
|
/**
|
|
2384
2945
|
*
|
|
2385
|
-
* @summary
|
|
2946
|
+
* @summary Managed_phone_numbers List
|
|
2947
|
+
* @param {*} [options] Override http request option.
|
|
2948
|
+
* @throws {RequiredError}
|
|
2949
|
+
*/
|
|
2950
|
+
managedPhoneNumbersList: async (options = {}) => {
|
|
2951
|
+
const localVarPath = `/managed_phone_numbers`;
|
|
2952
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2953
|
+
let baseOptions;
|
|
2954
|
+
if (configuration) {
|
|
2955
|
+
baseOptions = configuration.baseOptions;
|
|
2956
|
+
}
|
|
2957
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
2958
|
+
const localVarHeaderParameter = {};
|
|
2959
|
+
const localVarQueryParameter = {};
|
|
2960
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2961
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2962
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2963
|
+
return {
|
|
2964
|
+
url: toPathString(localVarUrlObj),
|
|
2965
|
+
options: localVarRequestOptions
|
|
2966
|
+
};
|
|
2967
|
+
},
|
|
2968
|
+
/**
|
|
2969
|
+
*
|
|
2970
|
+
* @summary Phone_numbers Create
|
|
2386
2971
|
* @param {string} contactId
|
|
2387
|
-
* @param {
|
|
2972
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2388
2973
|
* @param {*} [options] Override http request option.
|
|
2389
2974
|
* @throws {RequiredError}
|
|
2390
2975
|
*/
|
|
2391
|
-
|
|
2392
|
-
assertParamExists("
|
|
2393
|
-
assertParamExists("
|
|
2394
|
-
const localVarPath = `/contacts/{contactId}/
|
|
2976
|
+
phoneNumbersCreate: async (contactId, phoneNumberCreate, options = {}) => {
|
|
2977
|
+
assertParamExists("phoneNumbersCreate", "contactId", contactId);
|
|
2978
|
+
assertParamExists("phoneNumbersCreate", "phoneNumberCreate", phoneNumberCreate);
|
|
2979
|
+
const localVarPath = `/contacts/{contactId}/phone_numbers`.replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
|
|
2395
2980
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2396
2981
|
let baseOptions;
|
|
2397
2982
|
if (configuration) {
|
|
@@ -2404,7 +2989,7 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2404
2989
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2405
2990
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2406
2991
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2407
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2992
|
+
localVarRequestOptions.data = serializeDataIfNeeded(phoneNumberCreate, localVarRequestOptions, configuration);
|
|
2408
2993
|
return {
|
|
2409
2994
|
url: toPathString(localVarUrlObj),
|
|
2410
2995
|
options: localVarRequestOptions
|
|
@@ -2412,14 +2997,14 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2412
2997
|
},
|
|
2413
2998
|
/**
|
|
2414
2999
|
*
|
|
2415
|
-
* @summary
|
|
2416
|
-
* @param {string}
|
|
3000
|
+
* @summary Phone_numbers Delete
|
|
3001
|
+
* @param {string} phoneNumberId
|
|
2417
3002
|
* @param {*} [options] Override http request option.
|
|
2418
3003
|
* @throws {RequiredError}
|
|
2419
3004
|
*/
|
|
2420
|
-
|
|
2421
|
-
assertParamExists("
|
|
2422
|
-
const localVarPath = `/
|
|
3005
|
+
phoneNumbersDelete: async (phoneNumberId, options = {}) => {
|
|
3006
|
+
assertParamExists("phoneNumbersDelete", "phoneNumberId", phoneNumberId);
|
|
3007
|
+
const localVarPath = `/phone_numbers/{phoneNumberId}`.replace(`{${"phoneNumberId"}}`, encodeURIComponent(String(phoneNumberId)));
|
|
2423
3008
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2424
3009
|
let baseOptions;
|
|
2425
3010
|
if (configuration) {
|
|
@@ -2498,6 +3083,18 @@ var UnboundApiAxiosParamCreator = function(configuration) {
|
|
|
2498
3083
|
var UnboundApiFp = function(configuration) {
|
|
2499
3084
|
const localVarAxiosParamCreator = UnboundApiAxiosParamCreator(configuration);
|
|
2500
3085
|
return {
|
|
3086
|
+
/**
|
|
3087
|
+
*
|
|
3088
|
+
* @summary Accounts List
|
|
3089
|
+
* @param {*} [options] Override http request option.
|
|
3090
|
+
* @throws {RequiredError}
|
|
3091
|
+
*/
|
|
3092
|
+
async accountsList(options) {
|
|
3093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.accountsList(options);
|
|
3094
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _130 => _130.serverIndex]), () => ( 0));
|
|
3095
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _131 => _131["UnboundApi.accountsList"], 'optionalAccess', _132 => _132[localVarOperationServerIndex], 'optionalAccess', _133 => _133.url]);
|
|
3096
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3097
|
+
},
|
|
2501
3098
|
/**
|
|
2502
3099
|
*
|
|
2503
3100
|
* @summary Addresses Create
|
|
@@ -2508,8 +3105,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2508
3105
|
*/
|
|
2509
3106
|
async addressesCreate(contactId, addressCreate, options) {
|
|
2510
3107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesCreate(contactId, addressCreate, options);
|
|
2511
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2512
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3108
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _134 => _134.serverIndex]), () => ( 0));
|
|
3109
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _135 => _135["UnboundApi.addressesCreate"], 'optionalAccess', _136 => _136[localVarOperationServerIndex], 'optionalAccess', _137 => _137.url]);
|
|
2513
3110
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2514
3111
|
},
|
|
2515
3112
|
/**
|
|
@@ -2521,8 +3118,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2521
3118
|
*/
|
|
2522
3119
|
async addressesDelete(addressId, options) {
|
|
2523
3120
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesDelete(addressId, options);
|
|
2524
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2525
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3121
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _138 => _138.serverIndex]), () => ( 0));
|
|
3122
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _139 => _139["UnboundApi.addressesDelete"], 'optionalAccess', _140 => _140[localVarOperationServerIndex], 'optionalAccess', _141 => _141.url]);
|
|
2526
3123
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2527
3124
|
},
|
|
2528
3125
|
/**
|
|
@@ -2535,8 +3132,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2535
3132
|
*/
|
|
2536
3133
|
async addressesUpdate(addressId, addressUpdate, options) {
|
|
2537
3134
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addressesUpdate(addressId, addressUpdate, options);
|
|
2538
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2539
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3135
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _142 => _142.serverIndex]), () => ( 0));
|
|
3136
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _143 => _143["UnboundApi.addressesUpdate"], 'optionalAccess', _144 => _144[localVarOperationServerIndex], 'optionalAccess', _145 => _145.url]);
|
|
2540
3137
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2541
3138
|
},
|
|
2542
3139
|
/**
|
|
@@ -2550,8 +3147,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2550
3147
|
*/
|
|
2551
3148
|
async contactsAddListing(contactId, listingId, createContactListing, options) {
|
|
2552
3149
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsAddListing(contactId, listingId, createContactListing, options);
|
|
2553
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2554
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3150
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _146 => _146.serverIndex]), () => ( 0));
|
|
3151
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _147 => _147["UnboundApi.contactsAddListing"], 'optionalAccess', _148 => _148[localVarOperationServerIndex], 'optionalAccess', _149 => _149.url]);
|
|
2555
3152
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2556
3153
|
},
|
|
2557
3154
|
/**
|
|
@@ -2563,8 +3160,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2563
3160
|
*/
|
|
2564
3161
|
async contactsCreate(contactCreate, options) {
|
|
2565
3162
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsCreate(contactCreate, options);
|
|
2566
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2567
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3163
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _150 => _150.serverIndex]), () => ( 0));
|
|
3164
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _151 => _151["UnboundApi.contactsCreate"], 'optionalAccess', _152 => _152[localVarOperationServerIndex], 'optionalAccess', _153 => _153.url]);
|
|
2568
3165
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2569
3166
|
},
|
|
2570
3167
|
/**
|
|
@@ -2576,8 +3173,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2576
3173
|
*/
|
|
2577
3174
|
async contactsDelete(contactId, options) {
|
|
2578
3175
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsDelete(contactId, options);
|
|
2579
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2580
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3176
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _154 => _154.serverIndex]), () => ( 0));
|
|
3177
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _155 => _155["UnboundApi.contactsDelete"], 'optionalAccess', _156 => _156[localVarOperationServerIndex], 'optionalAccess', _157 => _157.url]);
|
|
2581
3178
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2582
3179
|
},
|
|
2583
3180
|
/**
|
|
@@ -2589,8 +3186,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2589
3186
|
*/
|
|
2590
3187
|
async contactsGet(contactId, options) {
|
|
2591
3188
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsGet(contactId, options);
|
|
2592
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2593
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3189
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _158 => _158.serverIndex]), () => ( 0));
|
|
3190
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _159 => _159["UnboundApi.contactsGet"], 'optionalAccess', _160 => _160[localVarOperationServerIndex], 'optionalAccess', _161 => _161.url]);
|
|
2594
3191
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2595
3192
|
},
|
|
2596
3193
|
/**
|
|
@@ -2607,8 +3204,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2607
3204
|
*/
|
|
2608
3205
|
async contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options) {
|
|
2609
3206
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsList(searchString, cursor, limit, pageDir, sortBy, sortOrder, options);
|
|
2610
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2611
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3207
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _162 => _162.serverIndex]), () => ( 0));
|
|
3208
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _163 => _163["UnboundApi.contactsList"], 'optionalAccess', _164 => _164[localVarOperationServerIndex], 'optionalAccess', _165 => _165.url]);
|
|
2612
3209
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2613
3210
|
},
|
|
2614
3211
|
/**
|
|
@@ -2622,8 +3219,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2622
3219
|
*/
|
|
2623
3220
|
async contactsRemoveListing(contactId, listingId, deleteContactListing, options) {
|
|
2624
3221
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsRemoveListing(contactId, listingId, deleteContactListing, options);
|
|
2625
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2626
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3222
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _166 => _166.serverIndex]), () => ( 0));
|
|
3223
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _167 => _167["UnboundApi.contactsRemoveListing"], 'optionalAccess', _168 => _168[localVarOperationServerIndex], 'optionalAccess', _169 => _169.url]);
|
|
2627
3224
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2628
3225
|
},
|
|
2629
3226
|
/**
|
|
@@ -2636,8 +3233,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2636
3233
|
*/
|
|
2637
3234
|
async contactsUpdate(contactId, contactUpdate, options) {
|
|
2638
3235
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdate(contactId, contactUpdate, options);
|
|
2639
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2640
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3236
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _170 => _170.serverIndex]), () => ( 0));
|
|
3237
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _171 => _171["UnboundApi.contactsUpdate"], 'optionalAccess', _172 => _172[localVarOperationServerIndex], 'optionalAccess', _173 => _173.url]);
|
|
2641
3238
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2642
3239
|
},
|
|
2643
3240
|
/**
|
|
@@ -2651,8 +3248,61 @@ var UnboundApiFp = function(configuration) {
|
|
|
2651
3248
|
*/
|
|
2652
3249
|
async contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2653
3250
|
const localVarAxiosArgs = await localVarAxiosParamCreator.contactsUpdateListing(contactId, listingId, updateContactListing, options);
|
|
2654
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2655
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3251
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _174 => _174.serverIndex]), () => ( 0));
|
|
3252
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _175 => _175["UnboundApi.contactsUpdateListing"], 'optionalAccess', _176 => _176[localVarOperationServerIndex], 'optionalAccess', _177 => _177.url]);
|
|
3253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3254
|
+
},
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @summary Conversations Create
|
|
3258
|
+
* @param {ConversationCreate} conversationCreate
|
|
3259
|
+
* @param {*} [options] Override http request option.
|
|
3260
|
+
* @throws {RequiredError}
|
|
3261
|
+
*/
|
|
3262
|
+
async conversationsCreate(conversationCreate, options) {
|
|
3263
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsCreate(conversationCreate, options);
|
|
3264
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _178 => _178.serverIndex]), () => ( 0));
|
|
3265
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _179 => _179["UnboundApi.conversationsCreate"], 'optionalAccess', _180 => _180[localVarOperationServerIndex], 'optionalAccess', _181 => _181.url]);
|
|
3266
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3267
|
+
},
|
|
3268
|
+
/**
|
|
3269
|
+
*
|
|
3270
|
+
* @summary Conversations Get
|
|
3271
|
+
* @param {string} conversationId
|
|
3272
|
+
* @param {*} [options] Override http request option.
|
|
3273
|
+
* @throws {RequiredError}
|
|
3274
|
+
*/
|
|
3275
|
+
async conversationsGet(conversationId, options) {
|
|
3276
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsGet(conversationId, options);
|
|
3277
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _182 => _182.serverIndex]), () => ( 0));
|
|
3278
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _183 => _183["UnboundApi.conversationsGet"], 'optionalAccess', _184 => _184[localVarOperationServerIndex], 'optionalAccess', _185 => _185.url]);
|
|
3279
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3280
|
+
},
|
|
3281
|
+
/**
|
|
3282
|
+
* List all conversations, optionally filtered by contact_id
|
|
3283
|
+
* @summary Conversations List
|
|
3284
|
+
* @param {string} [contactId]
|
|
3285
|
+
* @param {*} [options] Override http request option.
|
|
3286
|
+
* @throws {RequiredError}
|
|
3287
|
+
*/
|
|
3288
|
+
async conversationsList(contactId, options) {
|
|
3289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsList(contactId, options);
|
|
3290
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _186 => _186.serverIndex]), () => ( 0));
|
|
3291
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _187 => _187["UnboundApi.conversationsList"], 'optionalAccess', _188 => _188[localVarOperationServerIndex], 'optionalAccess', _189 => _189.url]);
|
|
3292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3293
|
+
},
|
|
3294
|
+
/**
|
|
3295
|
+
*
|
|
3296
|
+
* @summary Conversations Update
|
|
3297
|
+
* @param {string} conversationId
|
|
3298
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
3299
|
+
* @param {*} [options] Override http request option.
|
|
3300
|
+
* @throws {RequiredError}
|
|
3301
|
+
*/
|
|
3302
|
+
async conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.conversationsUpdate(conversationId, conversationUpdate, options);
|
|
3304
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _190 => _190.serverIndex]), () => ( 0));
|
|
3305
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _191 => _191["UnboundApi.conversationsUpdate"], 'optionalAccess', _192 => _192[localVarOperationServerIndex], 'optionalAccess', _193 => _193.url]);
|
|
2656
3306
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2657
3307
|
},
|
|
2658
3308
|
/**
|
|
@@ -2665,8 +3315,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2665
3315
|
*/
|
|
2666
3316
|
async emailsCreate(contactId, emailCreate, options) {
|
|
2667
3317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsCreate(contactId, emailCreate, options);
|
|
2668
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2669
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3318
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _194 => _194.serverIndex]), () => ( 0));
|
|
3319
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _195 => _195["UnboundApi.emailsCreate"], 'optionalAccess', _196 => _196[localVarOperationServerIndex], 'optionalAccess', _197 => _197.url]);
|
|
2670
3320
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2671
3321
|
},
|
|
2672
3322
|
/**
|
|
@@ -2678,8 +3328,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2678
3328
|
*/
|
|
2679
3329
|
async emailsDelete(emailId, options) {
|
|
2680
3330
|
const localVarAxiosArgs = await localVarAxiosParamCreator.emailsDelete(emailId, options);
|
|
2681
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2682
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3331
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _198 => _198.serverIndex]), () => ( 0));
|
|
3332
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _199 => _199["UnboundApi.emailsDelete"], 'optionalAccess', _200 => _200[localVarOperationServerIndex], 'optionalAccess', _201 => _201.url]);
|
|
2683
3333
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2684
3334
|
},
|
|
2685
3335
|
/**
|
|
@@ -2691,8 +3341,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2691
3341
|
*/
|
|
2692
3342
|
async inquiriesList(contactId, options) {
|
|
2693
3343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inquiriesList(contactId, options);
|
|
2694
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2695
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3344
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _202 => _202.serverIndex]), () => ( 0));
|
|
3345
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _203 => _203["UnboundApi.inquiriesList"], 'optionalAccess', _204 => _204[localVarOperationServerIndex], 'optionalAccess', _205 => _205.url]);
|
|
2696
3346
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2697
3347
|
},
|
|
2698
3348
|
/**
|
|
@@ -2704,35 +3354,47 @@ var UnboundApiFp = function(configuration) {
|
|
|
2704
3354
|
*/
|
|
2705
3355
|
async listingsList(contactId, options) {
|
|
2706
3356
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listingsList(contactId, options);
|
|
2707
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2708
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3357
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _206 => _206.serverIndex]), () => ( 0));
|
|
3358
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _207 => _207["UnboundApi.listingsList"], 'optionalAccess', _208 => _208[localVarOperationServerIndex], 'optionalAccess', _209 => _209.url]);
|
|
3359
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3360
|
+
},
|
|
3361
|
+
/**
|
|
3362
|
+
*
|
|
3363
|
+
* @summary Managed_phone_numbers List
|
|
3364
|
+
* @param {*} [options] Override http request option.
|
|
3365
|
+
* @throws {RequiredError}
|
|
3366
|
+
*/
|
|
3367
|
+
async managedPhoneNumbersList(options) {
|
|
3368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.managedPhoneNumbersList(options);
|
|
3369
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _210 => _210.serverIndex]), () => ( 0));
|
|
3370
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _211 => _211["UnboundApi.managedPhoneNumbersList"], 'optionalAccess', _212 => _212[localVarOperationServerIndex], 'optionalAccess', _213 => _213.url]);
|
|
2709
3371
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2710
3372
|
},
|
|
2711
3373
|
/**
|
|
2712
3374
|
*
|
|
2713
|
-
* @summary
|
|
3375
|
+
* @summary Phone_numbers Create
|
|
2714
3376
|
* @param {string} contactId
|
|
2715
|
-
* @param {
|
|
3377
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2716
3378
|
* @param {*} [options] Override http request option.
|
|
2717
3379
|
* @throws {RequiredError}
|
|
2718
3380
|
*/
|
|
2719
|
-
async
|
|
2720
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2721
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2722
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3381
|
+
async phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersCreate(contactId, phoneNumberCreate, options);
|
|
3383
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _214 => _214.serverIndex]), () => ( 0));
|
|
3384
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _215 => _215["UnboundApi.phoneNumbersCreate"], 'optionalAccess', _216 => _216[localVarOperationServerIndex], 'optionalAccess', _217 => _217.url]);
|
|
2723
3385
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2724
3386
|
},
|
|
2725
3387
|
/**
|
|
2726
3388
|
*
|
|
2727
|
-
* @summary
|
|
2728
|
-
* @param {string}
|
|
3389
|
+
* @summary Phone_numbers Delete
|
|
3390
|
+
* @param {string} phoneNumberId
|
|
2729
3391
|
* @param {*} [options] Override http request option.
|
|
2730
3392
|
* @throws {RequiredError}
|
|
2731
3393
|
*/
|
|
2732
|
-
async
|
|
2733
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2734
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2735
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3394
|
+
async phoneNumbersDelete(phoneNumberId, options) {
|
|
3395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.phoneNumbersDelete(phoneNumberId, options);
|
|
3396
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _218 => _218.serverIndex]), () => ( 0));
|
|
3397
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _219 => _219["UnboundApi.phoneNumbersDelete"], 'optionalAccess', _220 => _220[localVarOperationServerIndex], 'optionalAccess', _221 => _221.url]);
|
|
2736
3398
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2737
3399
|
},
|
|
2738
3400
|
/**
|
|
@@ -2744,8 +3406,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2744
3406
|
*/
|
|
2745
3407
|
async reservationsList(contactId, options) {
|
|
2746
3408
|
const localVarAxiosArgs = await localVarAxiosParamCreator.reservationsList(contactId, options);
|
|
2747
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2748
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3409
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _222 => _222.serverIndex]), () => ( 0));
|
|
3410
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _223 => _223["UnboundApi.reservationsList"], 'optionalAccess', _224 => _224[localVarOperationServerIndex], 'optionalAccess', _225 => _225.url]);
|
|
2749
3411
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2750
3412
|
},
|
|
2751
3413
|
/**
|
|
@@ -2757,8 +3419,8 @@ var UnboundApiFp = function(configuration) {
|
|
|
2757
3419
|
*/
|
|
2758
3420
|
async webhook(hostawayWebhook, options) {
|
|
2759
3421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.webhook(hostawayWebhook, options);
|
|
2760
|
-
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess',
|
|
2761
|
-
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access',
|
|
3422
|
+
const localVarOperationServerIndex = _nullishCoalesce(_optionalChain([configuration, 'optionalAccess', _226 => _226.serverIndex]), () => ( 0));
|
|
3423
|
+
const localVarOperationServerBasePath = _optionalChain([operationServerMap, 'access', _227 => _227["UnboundApi.webhook"], 'optionalAccess', _228 => _228[localVarOperationServerIndex], 'optionalAccess', _229 => _229.url]);
|
|
2762
3424
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, _axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2763
3425
|
}
|
|
2764
3426
|
};
|
|
@@ -2766,6 +3428,15 @@ var UnboundApiFp = function(configuration) {
|
|
|
2766
3428
|
var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
2767
3429
|
const localVarFp = UnboundApiFp(configuration);
|
|
2768
3430
|
return {
|
|
3431
|
+
/**
|
|
3432
|
+
*
|
|
3433
|
+
* @summary Accounts List
|
|
3434
|
+
* @param {*} [options] Override http request option.
|
|
3435
|
+
* @throws {RequiredError}
|
|
3436
|
+
*/
|
|
3437
|
+
accountsList(options) {
|
|
3438
|
+
return localVarFp.accountsList(options).then((request) => request(axios, basePath));
|
|
3439
|
+
},
|
|
2769
3440
|
/**
|
|
2770
3441
|
*
|
|
2771
3442
|
* @summary Addresses Create
|
|
@@ -2890,6 +3561,47 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2890
3561
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
2891
3562
|
return localVarFp.contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(axios, basePath));
|
|
2892
3563
|
},
|
|
3564
|
+
/**
|
|
3565
|
+
*
|
|
3566
|
+
* @summary Conversations Create
|
|
3567
|
+
* @param {ConversationCreate} conversationCreate
|
|
3568
|
+
* @param {*} [options] Override http request option.
|
|
3569
|
+
* @throws {RequiredError}
|
|
3570
|
+
*/
|
|
3571
|
+
conversationsCreate(conversationCreate, options) {
|
|
3572
|
+
return localVarFp.conversationsCreate(conversationCreate, options).then((request) => request(axios, basePath));
|
|
3573
|
+
},
|
|
3574
|
+
/**
|
|
3575
|
+
*
|
|
3576
|
+
* @summary Conversations Get
|
|
3577
|
+
* @param {string} conversationId
|
|
3578
|
+
* @param {*} [options] Override http request option.
|
|
3579
|
+
* @throws {RequiredError}
|
|
3580
|
+
*/
|
|
3581
|
+
conversationsGet(conversationId, options) {
|
|
3582
|
+
return localVarFp.conversationsGet(conversationId, options).then((request) => request(axios, basePath));
|
|
3583
|
+
},
|
|
3584
|
+
/**
|
|
3585
|
+
* List all conversations, optionally filtered by contact_id
|
|
3586
|
+
* @summary Conversations List
|
|
3587
|
+
* @param {string} [contactId]
|
|
3588
|
+
* @param {*} [options] Override http request option.
|
|
3589
|
+
* @throws {RequiredError}
|
|
3590
|
+
*/
|
|
3591
|
+
conversationsList(contactId, options) {
|
|
3592
|
+
return localVarFp.conversationsList(contactId, options).then((request) => request(axios, basePath));
|
|
3593
|
+
},
|
|
3594
|
+
/**
|
|
3595
|
+
*
|
|
3596
|
+
* @summary Conversations Update
|
|
3597
|
+
* @param {string} conversationId
|
|
3598
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
3599
|
+
* @param {*} [options] Override http request option.
|
|
3600
|
+
* @throws {RequiredError}
|
|
3601
|
+
*/
|
|
3602
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3603
|
+
return localVarFp.conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(axios, basePath));
|
|
3604
|
+
},
|
|
2893
3605
|
/**
|
|
2894
3606
|
*
|
|
2895
3607
|
* @summary Emails Create
|
|
@@ -2933,24 +3645,33 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2933
3645
|
},
|
|
2934
3646
|
/**
|
|
2935
3647
|
*
|
|
2936
|
-
* @summary
|
|
3648
|
+
* @summary Managed_phone_numbers List
|
|
3649
|
+
* @param {*} [options] Override http request option.
|
|
3650
|
+
* @throws {RequiredError}
|
|
3651
|
+
*/
|
|
3652
|
+
managedPhoneNumbersList(options) {
|
|
3653
|
+
return localVarFp.managedPhoneNumbersList(options).then((request) => request(axios, basePath));
|
|
3654
|
+
},
|
|
3655
|
+
/**
|
|
3656
|
+
*
|
|
3657
|
+
* @summary Phone_numbers Create
|
|
2937
3658
|
* @param {string} contactId
|
|
2938
|
-
* @param {
|
|
3659
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
2939
3660
|
* @param {*} [options] Override http request option.
|
|
2940
3661
|
* @throws {RequiredError}
|
|
2941
3662
|
*/
|
|
2942
|
-
|
|
2943
|
-
return localVarFp.
|
|
3663
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3664
|
+
return localVarFp.phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(axios, basePath));
|
|
2944
3665
|
},
|
|
2945
3666
|
/**
|
|
2946
3667
|
*
|
|
2947
|
-
* @summary
|
|
2948
|
-
* @param {string}
|
|
3668
|
+
* @summary Phone_numbers Delete
|
|
3669
|
+
* @param {string} phoneNumberId
|
|
2949
3670
|
* @param {*} [options] Override http request option.
|
|
2950
3671
|
* @throws {RequiredError}
|
|
2951
3672
|
*/
|
|
2952
|
-
|
|
2953
|
-
return localVarFp.
|
|
3673
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
3674
|
+
return localVarFp.phoneNumbersDelete(phoneNumberId, options).then((request) => request(axios, basePath));
|
|
2954
3675
|
},
|
|
2955
3676
|
/**
|
|
2956
3677
|
*
|
|
@@ -2975,6 +3696,16 @@ var UnboundApiFactory = function(configuration, basePath, axios) {
|
|
|
2975
3696
|
};
|
|
2976
3697
|
};
|
|
2977
3698
|
var UnboundApi = class extends BaseAPI {
|
|
3699
|
+
/**
|
|
3700
|
+
*
|
|
3701
|
+
* @summary Accounts List
|
|
3702
|
+
* @param {*} [options] Override http request option.
|
|
3703
|
+
* @throws {RequiredError}
|
|
3704
|
+
* @memberof UnboundApi
|
|
3705
|
+
*/
|
|
3706
|
+
accountsList(options) {
|
|
3707
|
+
return UnboundApiFp(this.configuration).accountsList(options).then((request) => request(this.axios, this.basePath));
|
|
3708
|
+
}
|
|
2978
3709
|
/**
|
|
2979
3710
|
*
|
|
2980
3711
|
* @summary Addresses Create
|
|
@@ -3110,6 +3841,51 @@ var UnboundApi = class extends BaseAPI {
|
|
|
3110
3841
|
contactsUpdateListing(contactId, listingId, updateContactListing, options) {
|
|
3111
3842
|
return UnboundApiFp(this.configuration).contactsUpdateListing(contactId, listingId, updateContactListing, options).then((request) => request(this.axios, this.basePath));
|
|
3112
3843
|
}
|
|
3844
|
+
/**
|
|
3845
|
+
*
|
|
3846
|
+
* @summary Conversations Create
|
|
3847
|
+
* @param {ConversationCreate} conversationCreate
|
|
3848
|
+
* @param {*} [options] Override http request option.
|
|
3849
|
+
* @throws {RequiredError}
|
|
3850
|
+
* @memberof UnboundApi
|
|
3851
|
+
*/
|
|
3852
|
+
conversationsCreate(conversationCreate, options) {
|
|
3853
|
+
return UnboundApiFp(this.configuration).conversationsCreate(conversationCreate, options).then((request) => request(this.axios, this.basePath));
|
|
3854
|
+
}
|
|
3855
|
+
/**
|
|
3856
|
+
*
|
|
3857
|
+
* @summary Conversations Get
|
|
3858
|
+
* @param {string} conversationId
|
|
3859
|
+
* @param {*} [options] Override http request option.
|
|
3860
|
+
* @throws {RequiredError}
|
|
3861
|
+
* @memberof UnboundApi
|
|
3862
|
+
*/
|
|
3863
|
+
conversationsGet(conversationId, options) {
|
|
3864
|
+
return UnboundApiFp(this.configuration).conversationsGet(conversationId, options).then((request) => request(this.axios, this.basePath));
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* List all conversations, optionally filtered by contact_id
|
|
3868
|
+
* @summary Conversations List
|
|
3869
|
+
* @param {string} [contactId]
|
|
3870
|
+
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @throws {RequiredError}
|
|
3872
|
+
* @memberof UnboundApi
|
|
3873
|
+
*/
|
|
3874
|
+
conversationsList(contactId, options) {
|
|
3875
|
+
return UnboundApiFp(this.configuration).conversationsList(contactId, options).then((request) => request(this.axios, this.basePath));
|
|
3876
|
+
}
|
|
3877
|
+
/**
|
|
3878
|
+
*
|
|
3879
|
+
* @summary Conversations Update
|
|
3880
|
+
* @param {string} conversationId
|
|
3881
|
+
* @param {ConversationUpdate} conversationUpdate
|
|
3882
|
+
* @param {*} [options] Override http request option.
|
|
3883
|
+
* @throws {RequiredError}
|
|
3884
|
+
* @memberof UnboundApi
|
|
3885
|
+
*/
|
|
3886
|
+
conversationsUpdate(conversationId, conversationUpdate, options) {
|
|
3887
|
+
return UnboundApiFp(this.configuration).conversationsUpdate(conversationId, conversationUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
3888
|
+
}
|
|
3113
3889
|
/**
|
|
3114
3890
|
*
|
|
3115
3891
|
* @summary Emails Create
|
|
@@ -3157,26 +3933,36 @@ var UnboundApi = class extends BaseAPI {
|
|
|
3157
3933
|
}
|
|
3158
3934
|
/**
|
|
3159
3935
|
*
|
|
3160
|
-
* @summary
|
|
3936
|
+
* @summary Managed_phone_numbers List
|
|
3937
|
+
* @param {*} [options] Override http request option.
|
|
3938
|
+
* @throws {RequiredError}
|
|
3939
|
+
* @memberof UnboundApi
|
|
3940
|
+
*/
|
|
3941
|
+
managedPhoneNumbersList(options) {
|
|
3942
|
+
return UnboundApiFp(this.configuration).managedPhoneNumbersList(options).then((request) => request(this.axios, this.basePath));
|
|
3943
|
+
}
|
|
3944
|
+
/**
|
|
3945
|
+
*
|
|
3946
|
+
* @summary Phone_numbers Create
|
|
3161
3947
|
* @param {string} contactId
|
|
3162
|
-
* @param {
|
|
3948
|
+
* @param {PhoneNumberCreate} phoneNumberCreate
|
|
3163
3949
|
* @param {*} [options] Override http request option.
|
|
3164
3950
|
* @throws {RequiredError}
|
|
3165
3951
|
* @memberof UnboundApi
|
|
3166
3952
|
*/
|
|
3167
|
-
|
|
3168
|
-
return UnboundApiFp(this.configuration).
|
|
3953
|
+
phoneNumbersCreate(contactId, phoneNumberCreate, options) {
|
|
3954
|
+
return UnboundApiFp(this.configuration).phoneNumbersCreate(contactId, phoneNumberCreate, options).then((request) => request(this.axios, this.basePath));
|
|
3169
3955
|
}
|
|
3170
3956
|
/**
|
|
3171
3957
|
*
|
|
3172
|
-
* @summary
|
|
3173
|
-
* @param {string}
|
|
3958
|
+
* @summary Phone_numbers Delete
|
|
3959
|
+
* @param {string} phoneNumberId
|
|
3174
3960
|
* @param {*} [options] Override http request option.
|
|
3175
3961
|
* @throws {RequiredError}
|
|
3176
3962
|
* @memberof UnboundApi
|
|
3177
3963
|
*/
|
|
3178
|
-
|
|
3179
|
-
return UnboundApiFp(this.configuration).
|
|
3964
|
+
phoneNumbersDelete(phoneNumberId, options) {
|
|
3965
|
+
return UnboundApiFp(this.configuration).phoneNumbersDelete(phoneNumberId, options).then((request) => request(this.axios, this.basePath));
|
|
3180
3966
|
}
|
|
3181
3967
|
/**
|
|
3182
3968
|
*
|
|
@@ -3270,7 +4056,7 @@ var Configuration = class {
|
|
|
3270
4056
|
this.baseOptions = {
|
|
3271
4057
|
...param.baseOptions,
|
|
3272
4058
|
headers: {
|
|
3273
|
-
..._optionalChain([param, 'access',
|
|
4059
|
+
..._optionalChain([param, 'access', _230 => _230.baseOptions, 'optionalAccess', _231 => _231.headers])
|
|
3274
4060
|
}
|
|
3275
4061
|
};
|
|
3276
4062
|
this.formDataCtor = param.formDataCtor;
|
|
@@ -3332,5 +4118,22 @@ var Configuration = class {
|
|
|
3332
4118
|
|
|
3333
4119
|
|
|
3334
4120
|
|
|
3335
|
-
|
|
4121
|
+
|
|
4122
|
+
|
|
4123
|
+
|
|
4124
|
+
|
|
4125
|
+
|
|
4126
|
+
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
exports.AccountsApi = AccountsApi; exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator; exports.AccountsApiFactory = AccountsApiFactory; exports.AccountsApiFp = AccountsApiFp; exports.AddressesApi = AddressesApi; exports.AddressesApiAxiosParamCreator = AddressesApiAxiosParamCreator; exports.AddressesApiFactory = AddressesApiFactory; exports.AddressesApiFp = AddressesApiFp; exports.Configuration = Configuration; exports.ContactListingType = ContactListingType; exports.ContactSortBy = ContactSortBy; exports.ContactsApi = ContactsApi; exports.ContactsApiAxiosParamCreator = ContactsApiAxiosParamCreator; exports.ContactsApiFactory = ContactsApiFactory; exports.ContactsApiFp = ContactsApiFp; exports.ConversationStatus = ConversationStatus; exports.ConversationsApi = ConversationsApi; exports.ConversationsApiAxiosParamCreator = ConversationsApiAxiosParamCreator; exports.ConversationsApiFactory = ConversationsApiFactory; exports.ConversationsApiFp = ConversationsApiFp; exports.EmailsApi = EmailsApi; exports.EmailsApiAxiosParamCreator = EmailsApiAxiosParamCreator; exports.EmailsApiFactory = EmailsApiFactory; exports.EmailsApiFp = EmailsApiFp; exports.HostawayApi = HostawayApi; exports.HostawayApiAxiosParamCreator = HostawayApiAxiosParamCreator; exports.HostawayApiFactory = HostawayApiFactory; exports.HostawayApiFp = HostawayApiFp; exports.InquiriesApi = InquiriesApi; exports.InquiriesApiAxiosParamCreator = InquiriesApiAxiosParamCreator; exports.InquiriesApiFactory = InquiriesApiFactory; exports.InquiriesApiFp = InquiriesApiFp; exports.ListingsApi = ListingsApi; exports.ListingsApiAxiosParamCreator = ListingsApiAxiosParamCreator; exports.ListingsApiFactory = ListingsApiFactory; exports.ListingsApiFp = ListingsApiFp; exports.ManagedPhoneNumbersApi = ManagedPhoneNumbersApi; exports.ManagedPhoneNumbersApiAxiosParamCreator = ManagedPhoneNumbersApiAxiosParamCreator; exports.ManagedPhoneNumbersApiFactory = ManagedPhoneNumbersApiFactory; exports.ManagedPhoneNumbersApiFp = ManagedPhoneNumbersApiFp; exports.PaginationDirection = PaginationDirection; exports.PhoneNumbersApi = PhoneNumbersApi; exports.PhoneNumbersApiAxiosParamCreator = PhoneNumbersApiAxiosParamCreator; exports.PhoneNumbersApiFactory = PhoneNumbersApiFactory; exports.PhoneNumbersApiFp = PhoneNumbersApiFp; exports.ReservationsApi = ReservationsApi; exports.ReservationsApiAxiosParamCreator = ReservationsApiAxiosParamCreator; exports.ReservationsApiFactory = ReservationsApiFactory; exports.ReservationsApiFp = ReservationsApiFp; exports.SortOrder = SortOrder; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelCreateApi2ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi1ConversationTypeEnum; exports.SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum = SrcResourceModelsHelperModelsCustomBaseModelUpdateApi2ConversationTypeEnum; exports.UnboundApi = UnboundApi; exports.UnboundApiAxiosParamCreator = UnboundApiAxiosParamCreator; exports.UnboundApiFactory = UnboundApiFactory; exports.UnboundApiFp = UnboundApiFp;
|
|
3336
4139
|
//# sourceMappingURL=index.js.map
|