@equisoft/ucx-proxy-sdk-typescript 0.0.3-snapshot.20250910185730
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/.openapi-generator/FILES +33 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/.tool-versions +3 -0
- package/README.md +46 -0
- package/dist/apis/ContactApi.d.ts +31 -0
- package/dist/apis/ContactApi.js +67 -0
- package/dist/apis/OrganizationSourceAuthenticationApi.d.ts +81 -0
- package/dist/apis/OrganizationSourceAuthenticationApi.js +236 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/esm/apis/ContactApi.d.ts +31 -0
- package/dist/esm/apis/ContactApi.js +63 -0
- package/dist/esm/apis/OrganizationSourceAuthenticationApi.d.ts +81 -0
- package/dist/esm/apis/OrganizationSourceAuthenticationApi.js +232 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AddressLabel.d.ts +29 -0
- package/dist/esm/models/AddressLabel.js +47 -0
- package/dist/esm/models/AddressSchema.d.ts +75 -0
- package/dist/esm/models/AddressSchema.js +60 -0
- package/dist/esm/models/ContactLanguage.d.ts +26 -0
- package/dist/esm/models/ContactLanguage.js +44 -0
- package/dist/esm/models/ContactSchema.d.ts +116 -0
- package/dist/esm/models/ContactSchema.js +83 -0
- package/dist/esm/models/CreatePayloadSourceAuthenticationSchema.d.ts +54 -0
- package/dist/esm/models/CreatePayloadSourceAuthenticationSchema.js +55 -0
- package/dist/esm/models/EmailLabel.d.ts +28 -0
- package/dist/esm/models/EmailLabel.js +46 -0
- package/dist/esm/models/EmailSchema.d.ts +45 -0
- package/dist/esm/models/EmailSchema.js +52 -0
- package/dist/esm/models/ErrorCodes.d.ts +27 -0
- package/dist/esm/models/ErrorCodes.js +45 -0
- package/dist/esm/models/ErrorResponse.d.ts +46 -0
- package/dist/esm/models/ErrorResponse.js +45 -0
- package/dist/esm/models/ErrorSchema.d.ts +39 -0
- package/dist/esm/models/ErrorSchema.js +46 -0
- package/dist/esm/models/Gender.d.ts +28 -0
- package/dist/esm/models/Gender.js +46 -0
- package/dist/esm/models/ListOrganizationSourceAuthenticationResultSchema.d.ts +33 -0
- package/dist/esm/models/ListOrganizationSourceAuthenticationResultSchema.js +44 -0
- package/dist/esm/models/MaritalStatus.d.ts +32 -0
- package/dist/esm/models/MaritalStatus.js +50 -0
- package/dist/esm/models/OrganizationSourceAuthenticationResultSchema.d.ts +47 -0
- package/dist/esm/models/OrganizationSourceAuthenticationResultSchema.js +50 -0
- package/dist/esm/models/OrganizationSourceAuthenticationSchema.d.ts +78 -0
- package/dist/esm/models/OrganizationSourceAuthenticationSchema.js +71 -0
- package/dist/esm/models/PhoneLabel.d.ts +30 -0
- package/dist/esm/models/PhoneLabel.js +48 -0
- package/dist/esm/models/PhoneSchema.d.ts +45 -0
- package/dist/esm/models/PhoneSchema.js +50 -0
- package/dist/esm/models/SourceResultSchema.d.ts +59 -0
- package/dist/esm/models/SourceResultSchema.js +56 -0
- package/dist/esm/models/Status.d.ts +26 -0
- package/dist/esm/models/Status.js +44 -0
- package/dist/esm/models/ToggleSourceAuthenticationSchema.d.ts +38 -0
- package/dist/esm/models/ToggleSourceAuthenticationSchema.js +47 -0
- package/dist/esm/models/UpdatePayloadSourceAuthenticationSchema.d.ts +48 -0
- package/dist/esm/models/UpdatePayloadSourceAuthenticationSchema.js +51 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +23 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressLabel.d.ts +29 -0
- package/dist/models/AddressLabel.js +55 -0
- package/dist/models/AddressSchema.d.ts +75 -0
- package/dist/models/AddressSchema.js +67 -0
- package/dist/models/ContactLanguage.d.ts +26 -0
- package/dist/models/ContactLanguage.js +52 -0
- package/dist/models/ContactSchema.d.ts +116 -0
- package/dist/models/ContactSchema.js +90 -0
- package/dist/models/CreatePayloadSourceAuthenticationSchema.d.ts +54 -0
- package/dist/models/CreatePayloadSourceAuthenticationSchema.js +62 -0
- package/dist/models/EmailLabel.d.ts +28 -0
- package/dist/models/EmailLabel.js +54 -0
- package/dist/models/EmailSchema.d.ts +45 -0
- package/dist/models/EmailSchema.js +59 -0
- package/dist/models/ErrorCodes.d.ts +27 -0
- package/dist/models/ErrorCodes.js +53 -0
- package/dist/models/ErrorResponse.d.ts +46 -0
- package/dist/models/ErrorResponse.js +52 -0
- package/dist/models/ErrorSchema.d.ts +39 -0
- package/dist/models/ErrorSchema.js +53 -0
- package/dist/models/Gender.d.ts +28 -0
- package/dist/models/Gender.js +54 -0
- package/dist/models/ListOrganizationSourceAuthenticationResultSchema.d.ts +33 -0
- package/dist/models/ListOrganizationSourceAuthenticationResultSchema.js +51 -0
- package/dist/models/MaritalStatus.d.ts +32 -0
- package/dist/models/MaritalStatus.js +58 -0
- package/dist/models/OrganizationSourceAuthenticationResultSchema.d.ts +47 -0
- package/dist/models/OrganizationSourceAuthenticationResultSchema.js +57 -0
- package/dist/models/OrganizationSourceAuthenticationSchema.d.ts +78 -0
- package/dist/models/OrganizationSourceAuthenticationSchema.js +78 -0
- package/dist/models/PhoneLabel.d.ts +30 -0
- package/dist/models/PhoneLabel.js +56 -0
- package/dist/models/PhoneSchema.d.ts +45 -0
- package/dist/models/PhoneSchema.js +57 -0
- package/dist/models/SourceResultSchema.d.ts +59 -0
- package/dist/models/SourceResultSchema.js +63 -0
- package/dist/models/Status.d.ts +26 -0
- package/dist/models/Status.js +52 -0
- package/dist/models/ToggleSourceAuthenticationSchema.d.ts +38 -0
- package/dist/models/ToggleSourceAuthenticationSchema.js +54 -0
- package/dist/models/UpdatePayloadSourceAuthenticationSchema.d.ts +48 -0
- package/dist/models/UpdatePayloadSourceAuthenticationSchema.js +58 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +39 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +21 -0
- package/src/apis/ContactApi.ts +77 -0
- package/src/apis/OrganizationSourceAuthenticationApi.ts +332 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/AddressLabel.ts +57 -0
- package/src/models/AddressSchema.ts +133 -0
- package/src/models/ContactLanguage.ts +54 -0
- package/src/models/ContactSchema.ts +219 -0
- package/src/models/CreatePayloadSourceAuthenticationSchema.ts +93 -0
- package/src/models/EmailLabel.ts +56 -0
- package/src/models/EmailSchema.ts +94 -0
- package/src/models/ErrorCodes.ts +55 -0
- package/src/models/ErrorResponse.ts +81 -0
- package/src/models/ErrorSchema.ts +84 -0
- package/src/models/Gender.ts +56 -0
- package/src/models/ListOrganizationSourceAuthenticationResultSchema.ts +74 -0
- package/src/models/MaritalStatus.ts +60 -0
- package/src/models/OrganizationSourceAuthenticationResultSchema.ts +106 -0
- package/src/models/OrganizationSourceAuthenticationSchema.ts +129 -0
- package/src/models/PhoneLabel.ts +58 -0
- package/src/models/PhoneSchema.ts +93 -0
- package/src/models/SourceResultSchema.ts +123 -0
- package/src/models/Status.ts +54 -0
- package/src/models/ToggleSourceAuthenticationSchema.ts +75 -0
- package/src/models/UpdatePayloadSourceAuthenticationSchema.ts +84 -0
- package/src/models/index.ts +23 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UCX Proxy
|
|
5
|
+
* A single use API for the UCX Proxy.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
8
|
+
* Contact: customersuccess@equisoft.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const BASE_PATH = "http://../..".replace(/\/+$/, "");
|
|
24
|
+
export class Configuration {
|
|
25
|
+
constructor(configuration = {}) {
|
|
26
|
+
this.configuration = configuration;
|
|
27
|
+
}
|
|
28
|
+
set config(configuration) {
|
|
29
|
+
this.configuration = configuration;
|
|
30
|
+
}
|
|
31
|
+
get basePath() {
|
|
32
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
33
|
+
}
|
|
34
|
+
get fetchApi() {
|
|
35
|
+
return this.configuration.fetchApi;
|
|
36
|
+
}
|
|
37
|
+
get middleware() {
|
|
38
|
+
return this.configuration.middleware || [];
|
|
39
|
+
}
|
|
40
|
+
get queryParamsStringify() {
|
|
41
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
42
|
+
}
|
|
43
|
+
get username() {
|
|
44
|
+
return this.configuration.username;
|
|
45
|
+
}
|
|
46
|
+
get password() {
|
|
47
|
+
return this.configuration.password;
|
|
48
|
+
}
|
|
49
|
+
get apiKey() {
|
|
50
|
+
const apiKey = this.configuration.apiKey;
|
|
51
|
+
if (apiKey) {
|
|
52
|
+
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
get accessToken() {
|
|
57
|
+
const accessToken = this.configuration.accessToken;
|
|
58
|
+
if (accessToken) {
|
|
59
|
+
return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });
|
|
60
|
+
}
|
|
61
|
+
return undefined;
|
|
62
|
+
}
|
|
63
|
+
get headers() {
|
|
64
|
+
return this.configuration.headers;
|
|
65
|
+
}
|
|
66
|
+
get credentials() {
|
|
67
|
+
return this.configuration.credentials;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export const DefaultConfig = new Configuration();
|
|
71
|
+
/**
|
|
72
|
+
* This is the base class for all generated API classes.
|
|
73
|
+
*/
|
|
74
|
+
export class BaseAPI {
|
|
75
|
+
constructor(configuration = DefaultConfig) {
|
|
76
|
+
this.configuration = configuration;
|
|
77
|
+
this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
let fetchParams = { url, init };
|
|
79
|
+
for (const middleware of this.middleware) {
|
|
80
|
+
if (middleware.pre) {
|
|
81
|
+
fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
let response = undefined;
|
|
85
|
+
try {
|
|
86
|
+
response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
for (const middleware of this.middleware) {
|
|
90
|
+
if (middleware.onError) {
|
|
91
|
+
response = (yield middleware.onError({
|
|
92
|
+
fetch: this.fetchApi,
|
|
93
|
+
url: fetchParams.url,
|
|
94
|
+
init: fetchParams.init,
|
|
95
|
+
error: e,
|
|
96
|
+
response: response ? response.clone() : undefined,
|
|
97
|
+
})) || response;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (response === undefined) {
|
|
101
|
+
if (e instanceof Error) {
|
|
102
|
+
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
throw e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
for (const middleware of this.middleware) {
|
|
110
|
+
if (middleware.post) {
|
|
111
|
+
response = (yield middleware.post({
|
|
112
|
+
fetch: this.fetchApi,
|
|
113
|
+
url: fetchParams.url,
|
|
114
|
+
init: fetchParams.init,
|
|
115
|
+
response: response.clone(),
|
|
116
|
+
})) || response;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return response;
|
|
120
|
+
});
|
|
121
|
+
this.middleware = configuration.middleware;
|
|
122
|
+
}
|
|
123
|
+
withMiddleware(...middlewares) {
|
|
124
|
+
const next = this.clone();
|
|
125
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
126
|
+
return next;
|
|
127
|
+
}
|
|
128
|
+
withPreMiddleware(...preMiddlewares) {
|
|
129
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
130
|
+
return this.withMiddleware(...middlewares);
|
|
131
|
+
}
|
|
132
|
+
withPostMiddleware(...postMiddlewares) {
|
|
133
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
134
|
+
return this.withMiddleware(...middlewares);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Check if the given MIME is a JSON MIME.
|
|
138
|
+
* JSON MIME examples:
|
|
139
|
+
* application/json
|
|
140
|
+
* application/json; charset=UTF8
|
|
141
|
+
* APPLICATION/JSON
|
|
142
|
+
* application/vnd.company+json
|
|
143
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
144
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
145
|
+
*/
|
|
146
|
+
isJsonMime(mime) {
|
|
147
|
+
if (!mime) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
151
|
+
}
|
|
152
|
+
request(context, initOverrides) {
|
|
153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
+
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
155
|
+
const response = yield this.fetchApi(url, init);
|
|
156
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
157
|
+
return response;
|
|
158
|
+
}
|
|
159
|
+
throw new ResponseError(response, 'Response returned an error code');
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
createFetchParams(context, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
let url = this.configuration.basePath + context.path;
|
|
165
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
166
|
+
// only add the querystring to the URL if there are query parameters.
|
|
167
|
+
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
168
|
+
// do not handle correctly sometimes.
|
|
169
|
+
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
170
|
+
}
|
|
171
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
172
|
+
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
173
|
+
const initOverrideFn = typeof initOverrides === "function"
|
|
174
|
+
? initOverrides
|
|
175
|
+
: () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
|
|
176
|
+
const initParams = {
|
|
177
|
+
method: context.method,
|
|
178
|
+
headers,
|
|
179
|
+
body: context.body,
|
|
180
|
+
credentials: this.configuration.credentials,
|
|
181
|
+
};
|
|
182
|
+
const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
|
|
183
|
+
init: initParams,
|
|
184
|
+
context,
|
|
185
|
+
})));
|
|
186
|
+
let body;
|
|
187
|
+
if (isFormData(overriddenInit.body)
|
|
188
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
189
|
+
|| isBlob(overriddenInit.body)) {
|
|
190
|
+
body = overriddenInit.body;
|
|
191
|
+
}
|
|
192
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
193
|
+
body = JSON.stringify(overriddenInit.body);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
body = overriddenInit.body;
|
|
197
|
+
}
|
|
198
|
+
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
199
|
+
return { url, init };
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
204
|
+
* and then shallow cloning data members.
|
|
205
|
+
*/
|
|
206
|
+
clone() {
|
|
207
|
+
const constructor = this.constructor;
|
|
208
|
+
const next = new constructor(this.configuration);
|
|
209
|
+
next.middleware = this.middleware.slice();
|
|
210
|
+
return next;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
214
|
+
;
|
|
215
|
+
function isBlob(value) {
|
|
216
|
+
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
217
|
+
}
|
|
218
|
+
function isFormData(value) {
|
|
219
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
220
|
+
}
|
|
221
|
+
export class ResponseError extends Error {
|
|
222
|
+
constructor(response, msg) {
|
|
223
|
+
super(msg);
|
|
224
|
+
this.response = response;
|
|
225
|
+
this.name = "ResponseError";
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export class FetchError extends Error {
|
|
229
|
+
constructor(cause, msg) {
|
|
230
|
+
super(msg);
|
|
231
|
+
this.cause = cause;
|
|
232
|
+
this.name = "FetchError";
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export class RequiredError extends Error {
|
|
236
|
+
constructor(field, msg) {
|
|
237
|
+
super(msg);
|
|
238
|
+
this.field = field;
|
|
239
|
+
this.name = "RequiredError";
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
export const COLLECTION_FORMATS = {
|
|
243
|
+
csv: ",",
|
|
244
|
+
ssv: " ",
|
|
245
|
+
tsv: "\t",
|
|
246
|
+
pipes: "|",
|
|
247
|
+
};
|
|
248
|
+
export function querystring(params, prefix = '') {
|
|
249
|
+
return Object.keys(params)
|
|
250
|
+
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
251
|
+
.filter(part => part.length > 0)
|
|
252
|
+
.join('&');
|
|
253
|
+
}
|
|
254
|
+
function querystringSingleKey(key, value, keyPrefix = '') {
|
|
255
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
256
|
+
if (value instanceof Array) {
|
|
257
|
+
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
258
|
+
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
259
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
260
|
+
}
|
|
261
|
+
if (value instanceof Set) {
|
|
262
|
+
const valueAsArray = Array.from(value);
|
|
263
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
264
|
+
}
|
|
265
|
+
if (value instanceof Date) {
|
|
266
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
267
|
+
}
|
|
268
|
+
if (value instanceof Object) {
|
|
269
|
+
return querystring(value, fullKey);
|
|
270
|
+
}
|
|
271
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
272
|
+
}
|
|
273
|
+
export function exists(json, key) {
|
|
274
|
+
const value = json[key];
|
|
275
|
+
return value !== null && value !== undefined;
|
|
276
|
+
}
|
|
277
|
+
export function mapValues(data, fn) {
|
|
278
|
+
const result = {};
|
|
279
|
+
for (const key of Object.keys(data)) {
|
|
280
|
+
result[key] = fn(data[key]);
|
|
281
|
+
}
|
|
282
|
+
return result;
|
|
283
|
+
}
|
|
284
|
+
export function canConsumeForm(consumes) {
|
|
285
|
+
for (const consume of consumes) {
|
|
286
|
+
if ('multipart/form-data' === consume.contentType) {
|
|
287
|
+
return true;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
export class JSONApiResponse {
|
|
293
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
294
|
+
this.raw = raw;
|
|
295
|
+
this.transformer = transformer;
|
|
296
|
+
}
|
|
297
|
+
value() {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
return this.transformer(yield this.raw.json());
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
export class VoidApiResponse {
|
|
304
|
+
constructor(raw) {
|
|
305
|
+
this.raw = raw;
|
|
306
|
+
}
|
|
307
|
+
value() {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
return undefined;
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
export class BlobApiResponse {
|
|
314
|
+
constructor(raw) {
|
|
315
|
+
this.raw = raw;
|
|
316
|
+
}
|
|
317
|
+
value() {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
return yield this.raw.blob();
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
;
|
|
323
|
+
}
|
|
324
|
+
export class TextApiResponse {
|
|
325
|
+
constructor(raw) {
|
|
326
|
+
this.raw = raw;
|
|
327
|
+
}
|
|
328
|
+
value() {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
return yield this.raw.text();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
;
|
|
334
|
+
}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UCX Proxy
|
|
3
|
+
* A single use API for the UCX Proxy.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
6
|
+
* Contact: customersuccess@equisoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AddressLabel: {
|
|
17
|
+
readonly HOME: "HOME";
|
|
18
|
+
readonly SECONDARY: "SECONDARY";
|
|
19
|
+
readonly WORK: "WORK";
|
|
20
|
+
readonly OTHER: "OTHER";
|
|
21
|
+
readonly UNKNOWN: "UNKNOWN";
|
|
22
|
+
readonly unknown_default_open_api: "11184809";
|
|
23
|
+
};
|
|
24
|
+
export type AddressLabel = typeof AddressLabel[keyof typeof AddressLabel];
|
|
25
|
+
export declare function instanceOfAddressLabel(value: any): boolean;
|
|
26
|
+
export declare function AddressLabelFromJSON(json: any): AddressLabel;
|
|
27
|
+
export declare function AddressLabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressLabel;
|
|
28
|
+
export declare function AddressLabelToJSON(value?: AddressLabel | null): any;
|
|
29
|
+
export declare function AddressLabelToJSONTyped(value: any, ignoreDiscriminator: boolean): AddressLabel;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UCX Proxy
|
|
6
|
+
* A single use API for the UCX Proxy.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
9
|
+
* Contact: customersuccess@equisoft.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AddressLabel = void 0;
|
|
17
|
+
exports.instanceOfAddressLabel = instanceOfAddressLabel;
|
|
18
|
+
exports.AddressLabelFromJSON = AddressLabelFromJSON;
|
|
19
|
+
exports.AddressLabelFromJSONTyped = AddressLabelFromJSONTyped;
|
|
20
|
+
exports.AddressLabelToJSON = AddressLabelToJSON;
|
|
21
|
+
exports.AddressLabelToJSONTyped = AddressLabelToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AddressLabel = {
|
|
27
|
+
HOME: 'HOME',
|
|
28
|
+
SECONDARY: 'SECONDARY',
|
|
29
|
+
WORK: 'WORK',
|
|
30
|
+
OTHER: 'OTHER',
|
|
31
|
+
UNKNOWN: 'UNKNOWN',
|
|
32
|
+
unknown_default_open_api: '11184809'
|
|
33
|
+
};
|
|
34
|
+
function instanceOfAddressLabel(value) {
|
|
35
|
+
for (const key in exports.AddressLabel) {
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(exports.AddressLabel, key)) {
|
|
37
|
+
if (exports.AddressLabel[key] === value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
function AddressLabelFromJSON(json) {
|
|
45
|
+
return AddressLabelFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AddressLabelFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
function AddressLabelToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function AddressLabelToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UCX Proxy
|
|
3
|
+
* A single use API for the UCX Proxy.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
6
|
+
* Contact: customersuccess@equisoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AddressLabel } from './AddressLabel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AddressSchema
|
|
17
|
+
*/
|
|
18
|
+
export interface AddressSchema {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {AddressLabel}
|
|
22
|
+
* @memberof AddressSchema
|
|
23
|
+
*/
|
|
24
|
+
label: AddressLabel;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AddressSchema
|
|
29
|
+
*/
|
|
30
|
+
line1?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AddressSchema
|
|
35
|
+
*/
|
|
36
|
+
line2?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AddressSchema
|
|
41
|
+
*/
|
|
42
|
+
city?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AddressSchema
|
|
47
|
+
*/
|
|
48
|
+
postalCode?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AddressSchema
|
|
53
|
+
*/
|
|
54
|
+
state?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AddressSchema
|
|
59
|
+
*/
|
|
60
|
+
country?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof AddressSchema
|
|
65
|
+
*/
|
|
66
|
+
main: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the AddressSchema interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfAddressSchema(value: object): value is AddressSchema;
|
|
72
|
+
export declare function AddressSchemaFromJSON(json: any): AddressSchema;
|
|
73
|
+
export declare function AddressSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressSchema;
|
|
74
|
+
export declare function AddressSchemaToJSON(json: any): AddressSchema;
|
|
75
|
+
export declare function AddressSchemaToJSONTyped(value?: AddressSchema | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UCX Proxy
|
|
6
|
+
* A single use API for the UCX Proxy.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
9
|
+
* Contact: customersuccess@equisoft.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAddressSchema = instanceOfAddressSchema;
|
|
17
|
+
exports.AddressSchemaFromJSON = AddressSchemaFromJSON;
|
|
18
|
+
exports.AddressSchemaFromJSONTyped = AddressSchemaFromJSONTyped;
|
|
19
|
+
exports.AddressSchemaToJSON = AddressSchemaToJSON;
|
|
20
|
+
exports.AddressSchemaToJSONTyped = AddressSchemaToJSONTyped;
|
|
21
|
+
const AddressLabel_1 = require("./AddressLabel");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AddressSchema interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAddressSchema(value) {
|
|
26
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('main' in value) || value['main'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AddressSchemaFromJSON(json) {
|
|
33
|
+
return AddressSchemaFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AddressSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'label': (0, AddressLabel_1.AddressLabelFromJSON)(json['label']),
|
|
41
|
+
'line1': json['line1'] == null ? undefined : json['line1'],
|
|
42
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
43
|
+
'city': json['city'] == null ? undefined : json['city'],
|
|
44
|
+
'postalCode': json['postal_code'] == null ? undefined : json['postal_code'],
|
|
45
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
46
|
+
'country': json['country'] == null ? undefined : json['country'],
|
|
47
|
+
'main': json['main'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function AddressSchemaToJSON(json) {
|
|
51
|
+
return AddressSchemaToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function AddressSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'label': (0, AddressLabel_1.AddressLabelToJSON)(value['label']),
|
|
59
|
+
'line1': value['line1'],
|
|
60
|
+
'line2': value['line2'],
|
|
61
|
+
'city': value['city'],
|
|
62
|
+
'postal_code': value['postalCode'],
|
|
63
|
+
'state': value['state'],
|
|
64
|
+
'country': value['country'],
|
|
65
|
+
'main': value['main'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UCX Proxy
|
|
3
|
+
* A single use API for the UCX Proxy.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
6
|
+
* Contact: customersuccess@equisoft.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContactLanguage: {
|
|
17
|
+
readonly ENGLISH: "ENGLISH";
|
|
18
|
+
readonly FRENCH: "FRENCH";
|
|
19
|
+
readonly unknown_default_open_api: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type ContactLanguage = typeof ContactLanguage[keyof typeof ContactLanguage];
|
|
22
|
+
export declare function instanceOfContactLanguage(value: any): boolean;
|
|
23
|
+
export declare function ContactLanguageFromJSON(json: any): ContactLanguage;
|
|
24
|
+
export declare function ContactLanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactLanguage;
|
|
25
|
+
export declare function ContactLanguageToJSON(value?: ContactLanguage | null): any;
|
|
26
|
+
export declare function ContactLanguageToJSONTyped(value: any, ignoreDiscriminator: boolean): ContactLanguage;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UCX Proxy
|
|
6
|
+
* A single use API for the UCX Proxy.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.3-SNAPSHOT
|
|
9
|
+
* Contact: customersuccess@equisoft.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ContactLanguage = void 0;
|
|
17
|
+
exports.instanceOfContactLanguage = instanceOfContactLanguage;
|
|
18
|
+
exports.ContactLanguageFromJSON = ContactLanguageFromJSON;
|
|
19
|
+
exports.ContactLanguageFromJSONTyped = ContactLanguageFromJSONTyped;
|
|
20
|
+
exports.ContactLanguageToJSON = ContactLanguageToJSON;
|
|
21
|
+
exports.ContactLanguageToJSONTyped = ContactLanguageToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ContactLanguage = {
|
|
27
|
+
ENGLISH: 'ENGLISH',
|
|
28
|
+
FRENCH: 'FRENCH',
|
|
29
|
+
unknown_default_open_api: '11184809'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfContactLanguage(value) {
|
|
32
|
+
for (const key in exports.ContactLanguage) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ContactLanguage, key)) {
|
|
34
|
+
if (exports.ContactLanguage[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ContactLanguageFromJSON(json) {
|
|
42
|
+
return ContactLanguageFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ContactLanguageFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ContactLanguageToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ContactLanguageToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|