@teemill/integrations 0.11.1 → 0.12.5
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 +6 -18
- package/README.md +3 -3
- package/api.ts +1649 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +1100 -0
- package/dist/api.js +910 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api.d.ts +1100 -0
- package/dist/esm/api.js +903 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +13 -3
- package/dist/esm/index.js +13 -3
- package/dist/index.d.ts +13 -3
- package/dist/index.js +15 -5
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +14 -2
- package/tsconfig.json +4 -6
- package/dist/apis/IntegrationsApi.d.ts +0 -164
- package/dist/apis/IntegrationsApi.js +0 -490
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -19
- package/dist/esm/apis/IntegrationsApi.d.ts +0 -164
- package/dist/esm/apis/IntegrationsApi.js +0 -486
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -3
- package/dist/esm/models/ApiError.d.ts +0 -37
- package/dist/esm/models/ApiError.js +0 -42
- package/dist/esm/models/CategoriesResponse.d.ts +0 -32
- package/dist/esm/models/CategoriesResponse.js +0 -44
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +0 -73
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -37
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +0 -40
- package/dist/esm/models/Integration.d.ts +0 -45
- package/dist/esm/models/Integration.js +0 -41
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationCategoriesResponse.js +0 -41
- package/dist/esm/models/IntegrationCategory.d.ts +0 -52
- package/dist/esm/models/IntegrationCategory.js +0 -56
- package/dist/esm/models/IntegrationInfo.d.ts +0 -49
- package/dist/esm/models/IntegrationInfo.js +0 -52
- package/dist/esm/models/IntegrationListing.d.ts +0 -93
- package/dist/esm/models/IntegrationListing.js +0 -79
- package/dist/esm/models/IntegrationListingGradient.d.ts +0 -37
- package/dist/esm/models/IntegrationListingGradient.js +0 -40
- package/dist/esm/models/IntegrationListingsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationListingsResponse.js +0 -41
- package/dist/esm/models/IntegrationProduct.d.ts +0 -61
- package/dist/esm/models/IntegrationProduct.js +0 -57
- package/dist/esm/models/IntegrationProductsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationProductsResponse.js +0 -41
- package/dist/esm/models/IntegrationsResponse.d.ts +0 -32
- package/dist/esm/models/IntegrationsResponse.js +0 -41
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +0 -55
- package/dist/esm/models/index.d.ts +0 -13
- package/dist/esm/models/index.js +0 -15
- package/dist/esm/runtime.d.ts +0 -187
- package/dist/esm/runtime.js +0 -333
- package/dist/models/ApiError.d.ts +0 -37
- package/dist/models/ApiError.js +0 -49
- package/dist/models/CategoriesResponse.d.ts +0 -32
- package/dist/models/CategoriesResponse.js +0 -51
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/models/CreateAdminIntegrationListingRequest.js +0 -80
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +0 -37
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +0 -47
- package/dist/models/Integration.d.ts +0 -45
- package/dist/models/Integration.js +0 -48
- package/dist/models/IntegrationCategoriesResponse.d.ts +0 -32
- package/dist/models/IntegrationCategoriesResponse.js +0 -48
- package/dist/models/IntegrationCategory.d.ts +0 -52
- package/dist/models/IntegrationCategory.js +0 -63
- package/dist/models/IntegrationInfo.d.ts +0 -49
- package/dist/models/IntegrationInfo.js +0 -59
- package/dist/models/IntegrationListing.d.ts +0 -93
- package/dist/models/IntegrationListing.js +0 -86
- package/dist/models/IntegrationListingGradient.d.ts +0 -37
- package/dist/models/IntegrationListingGradient.js +0 -47
- package/dist/models/IntegrationListingsResponse.d.ts +0 -32
- package/dist/models/IntegrationListingsResponse.js +0 -48
- package/dist/models/IntegrationProduct.d.ts +0 -61
- package/dist/models/IntegrationProduct.js +0 -64
- package/dist/models/IntegrationProductsResponse.d.ts +0 -32
- package/dist/models/IntegrationProductsResponse.js +0 -48
- package/dist/models/IntegrationsResponse.d.ts +0 -32
- package/dist/models/IntegrationsResponse.js +0 -48
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +0 -80
- package/dist/models/UpdateAdminIntegrationListingRequest.js +0 -62
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -31
- package/dist/runtime.d.ts +0 -187
- package/dist/runtime.js +0 -349
- package/src/apis/IntegrationsApi.ts +0 -676
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/ApiError.ts +0 -69
- package/src/models/CategoriesResponse.ts +0 -73
- package/src/models/CreateAdminIntegrationListingRequest.ts +0 -140
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +0 -68
- package/src/models/Integration.ts +0 -75
- package/src/models/IntegrationCategoriesResponse.ts +0 -68
- package/src/models/IntegrationCategory.ts +0 -91
- package/src/models/IntegrationInfo.ts +0 -93
- package/src/models/IntegrationListing.ts +0 -162
- package/src/models/IntegrationListingGradient.ts +0 -68
- package/src/models/IntegrationListingsResponse.ts +0 -68
- package/src/models/IntegrationProduct.ts +0 -104
- package/src/models/IntegrationProductsResponse.ts +0 -68
- package/src/models/IntegrationsResponse.ts +0 -68
- package/src/models/UpdateAdminIntegrationListingRequest.ts +0 -131
- package/src/models/index.ts +0 -15
- package/src/runtime.ts +0 -441
package/dist/esm/runtime.js
DELETED
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Integrations API
|
|
5
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.11.1
|
|
8
|
-
* Contact: hello@teemill.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 = "https://localhost:8080".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
|
-
isResponseError(error) {
|
|
124
|
-
return error instanceof Error && error.name === 'ResponseError';
|
|
125
|
-
}
|
|
126
|
-
withMiddleware(...middlewares) {
|
|
127
|
-
const next = this.clone();
|
|
128
|
-
next.middleware = next.middleware.concat(...middlewares);
|
|
129
|
-
return next;
|
|
130
|
-
}
|
|
131
|
-
withPreMiddleware(...preMiddlewares) {
|
|
132
|
-
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
133
|
-
return this.withMiddleware(...middlewares);
|
|
134
|
-
}
|
|
135
|
-
withPostMiddleware(...postMiddlewares) {
|
|
136
|
-
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
137
|
-
return this.withMiddleware(...middlewares);
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Check if the given MIME is a JSON MIME.
|
|
141
|
-
* JSON MIME examples:
|
|
142
|
-
* application/json
|
|
143
|
-
* application/json; charset=UTF8
|
|
144
|
-
* APPLICATION/JSON
|
|
145
|
-
* application/vnd.company+json
|
|
146
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
147
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
148
|
-
*/
|
|
149
|
-
isJsonMime(mime) {
|
|
150
|
-
if (!mime) {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
return BaseAPI.jsonRegex.test(mime);
|
|
154
|
-
}
|
|
155
|
-
request(context, initOverrides) {
|
|
156
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
-
const { url, init } = yield this.createFetchParams(context, initOverrides);
|
|
158
|
-
const response = yield this.fetchApi(url, init);
|
|
159
|
-
if (response && (response.status >= 200 && response.status < 300)) {
|
|
160
|
-
return response;
|
|
161
|
-
}
|
|
162
|
-
throw new ResponseError(response, 'Response returned an error code');
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
createFetchParams(context, initOverrides) {
|
|
166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
let url = this.configuration.basePath + context.path;
|
|
168
|
-
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
169
|
-
// only add the querystring to the URL if there are query parameters.
|
|
170
|
-
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
171
|
-
// do not handle correctly sometimes.
|
|
172
|
-
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
173
|
-
}
|
|
174
|
-
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
175
|
-
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
176
|
-
const initOverrideFn = typeof initOverrides === "function"
|
|
177
|
-
? initOverrides
|
|
178
|
-
: () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });
|
|
179
|
-
const initParams = {
|
|
180
|
-
method: context.method,
|
|
181
|
-
headers,
|
|
182
|
-
body: context.body,
|
|
183
|
-
credentials: this.configuration.credentials,
|
|
184
|
-
};
|
|
185
|
-
const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({
|
|
186
|
-
init: initParams,
|
|
187
|
-
context,
|
|
188
|
-
})));
|
|
189
|
-
let body;
|
|
190
|
-
if (isFormData(overriddenInit.body)
|
|
191
|
-
|| (overriddenInit.body instanceof URLSearchParams)
|
|
192
|
-
|| isBlob(overriddenInit.body)) {
|
|
193
|
-
body = overriddenInit.body;
|
|
194
|
-
}
|
|
195
|
-
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
196
|
-
body = JSON.stringify(overriddenInit.body);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
body = overriddenInit.body;
|
|
200
|
-
}
|
|
201
|
-
const init = Object.assign(Object.assign({}, overriddenInit), { body });
|
|
202
|
-
return { url, init };
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
207
|
-
* and then shallow cloning data members.
|
|
208
|
-
*/
|
|
209
|
-
clone() {
|
|
210
|
-
const constructor = this.constructor;
|
|
211
|
-
const next = new constructor(this.configuration);
|
|
212
|
-
next.middleware = this.middleware.slice();
|
|
213
|
-
return next;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
217
|
-
;
|
|
218
|
-
function isBlob(value) {
|
|
219
|
-
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
220
|
-
}
|
|
221
|
-
function isFormData(value) {
|
|
222
|
-
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
223
|
-
}
|
|
224
|
-
export class ResponseError extends Error {
|
|
225
|
-
constructor(response, msg) {
|
|
226
|
-
super(msg);
|
|
227
|
-
this.response = response;
|
|
228
|
-
this.name = "ResponseError";
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
export class FetchError extends Error {
|
|
232
|
-
constructor(cause, msg) {
|
|
233
|
-
super(msg);
|
|
234
|
-
this.cause = cause;
|
|
235
|
-
this.name = "FetchError";
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
export class RequiredError extends Error {
|
|
239
|
-
constructor(field, msg) {
|
|
240
|
-
super(msg);
|
|
241
|
-
this.field = field;
|
|
242
|
-
this.name = "RequiredError";
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
export const COLLECTION_FORMATS = {
|
|
246
|
-
csv: ",",
|
|
247
|
-
ssv: " ",
|
|
248
|
-
tsv: "\t",
|
|
249
|
-
pipes: "|",
|
|
250
|
-
};
|
|
251
|
-
export function exists(json, key) {
|
|
252
|
-
const value = json[key];
|
|
253
|
-
return value !== null && value !== undefined;
|
|
254
|
-
}
|
|
255
|
-
export function querystring(params, prefix = '') {
|
|
256
|
-
return Object.keys(params)
|
|
257
|
-
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
258
|
-
.filter(part => part.length > 0)
|
|
259
|
-
.join('&');
|
|
260
|
-
}
|
|
261
|
-
function querystringSingleKey(key, value, keyPrefix = '') {
|
|
262
|
-
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
263
|
-
if (value instanceof Array) {
|
|
264
|
-
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
265
|
-
.join(`&${encodeURIComponent(fullKey)}[]=`);
|
|
266
|
-
return `${encodeURIComponent(fullKey)}[]=${multiValue}`;
|
|
267
|
-
}
|
|
268
|
-
if (value instanceof Set) {
|
|
269
|
-
const valueAsArray = Array.from(value);
|
|
270
|
-
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
271
|
-
}
|
|
272
|
-
if (value instanceof Date) {
|
|
273
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
274
|
-
}
|
|
275
|
-
if (value instanceof Object) {
|
|
276
|
-
return querystring(value, fullKey);
|
|
277
|
-
}
|
|
278
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
279
|
-
}
|
|
280
|
-
export function mapValues(data, fn) {
|
|
281
|
-
return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});
|
|
282
|
-
}
|
|
283
|
-
export function canConsumeForm(consumes) {
|
|
284
|
-
for (const consume of consumes) {
|
|
285
|
-
if ('multipart/form-data' === consume.contentType) {
|
|
286
|
-
return true;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
return false;
|
|
290
|
-
}
|
|
291
|
-
export class JSONApiResponse {
|
|
292
|
-
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
293
|
-
this.raw = raw;
|
|
294
|
-
this.transformer = transformer;
|
|
295
|
-
}
|
|
296
|
-
value() {
|
|
297
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
-
return this.transformer(yield this.raw.json());
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
export class VoidApiResponse {
|
|
303
|
-
constructor(raw) {
|
|
304
|
-
this.raw = raw;
|
|
305
|
-
}
|
|
306
|
-
value() {
|
|
307
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
-
return undefined;
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
export class BlobApiResponse {
|
|
313
|
-
constructor(raw) {
|
|
314
|
-
this.raw = raw;
|
|
315
|
-
}
|
|
316
|
-
value() {
|
|
317
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
-
return yield this.raw.blob();
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
;
|
|
322
|
-
}
|
|
323
|
-
export class TextApiResponse {
|
|
324
|
-
constructor(raw) {
|
|
325
|
-
this.raw = raw;
|
|
326
|
-
}
|
|
327
|
-
value() {
|
|
328
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
-
return yield this.raw.text();
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
;
|
|
333
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations API
|
|
3
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.11.1
|
|
6
|
-
* Contact: hello@teemill.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
|
-
* @interface ApiError
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiError {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ApiError
|
|
22
|
-
*/
|
|
23
|
-
code?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ApiError
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the ApiError interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfApiError(value: object): value is ApiError;
|
|
35
|
-
export declare function ApiErrorFromJSON(json: any): ApiError;
|
|
36
|
-
export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
|
|
37
|
-
export declare function ApiErrorToJSON(value?: ApiError | null): any;
|
package/dist/models/ApiError.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Integrations API
|
|
6
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.11.1
|
|
9
|
-
* Contact: hello@teemill.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.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the ApiError interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfApiError(value) {
|
|
21
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfApiError = instanceOfApiError;
|
|
26
|
-
function ApiErrorFromJSON(json) {
|
|
27
|
-
return ApiErrorFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.ApiErrorFromJSON = ApiErrorFromJSON;
|
|
30
|
-
function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
36
|
-
'message': json['message'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
|
|
40
|
-
function ApiErrorToJSON(value) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'code': value['code'],
|
|
46
|
-
'message': value['message'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.ApiErrorToJSON = ApiErrorToJSON;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations API
|
|
3
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.8.2
|
|
6
|
-
* Contact: hello@teemill.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 { IntegrationCategory } from './IntegrationCategory';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CategoriesResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CategoriesResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IntegrationCategory>}
|
|
22
|
-
* @memberof CategoriesResponse
|
|
23
|
-
*/
|
|
24
|
-
categories: Array<IntegrationCategory>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CategoriesResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCategoriesResponse(value: object): boolean;
|
|
30
|
-
export declare function CategoriesResponseFromJSON(json: any): CategoriesResponse;
|
|
31
|
-
export declare function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse;
|
|
32
|
-
export declare function CategoriesResponseToJSON(value?: CategoriesResponse | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Integrations API
|
|
6
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.8.2
|
|
9
|
-
* Contact: hello@teemill.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.CategoriesResponseToJSON = exports.CategoriesResponseFromJSONTyped = exports.CategoriesResponseFromJSON = exports.instanceOfCategoriesResponse = void 0;
|
|
17
|
-
const IntegrationCategory_1 = require("./IntegrationCategory");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CategoriesResponse interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfCategoriesResponse(value) {
|
|
22
|
-
let isInstance = true;
|
|
23
|
-
isInstance = isInstance && "categories" in value;
|
|
24
|
-
return isInstance;
|
|
25
|
-
}
|
|
26
|
-
exports.instanceOfCategoriesResponse = instanceOfCategoriesResponse;
|
|
27
|
-
function CategoriesResponseFromJSON(json) {
|
|
28
|
-
return CategoriesResponseFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
exports.CategoriesResponseFromJSON = CategoriesResponseFromJSON;
|
|
31
|
-
function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if ((json === undefined) || (json === null)) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'categories': (json['categories'].map(IntegrationCategory_1.IntegrationCategoryFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.CategoriesResponseFromJSONTyped = CategoriesResponseFromJSONTyped;
|
|
40
|
-
function CategoriesResponseToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'categories': (value.categories.map(IntegrationCategory_1.IntegrationCategoryToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.CategoriesResponseToJSON = CategoriesResponseToJSON;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integrations API
|
|
3
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 0.11.1
|
|
6
|
-
* Contact: hello@teemill.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 { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreateAdminIntegrationListingRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface CreateAdminIntegrationListingRequest {
|
|
19
|
-
/**
|
|
20
|
-
* The name of the integration listing
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
|
-
/**
|
|
26
|
-
* The description of the integration listing
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
29
|
-
*/
|
|
30
|
-
description: string;
|
|
31
|
-
/**
|
|
32
|
-
* The html content of the integration listing
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
35
|
-
*/
|
|
36
|
-
content: string;
|
|
37
|
-
/**
|
|
38
|
-
* The author of the integration listing
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
41
|
-
*/
|
|
42
|
-
author: string;
|
|
43
|
-
/**
|
|
44
|
-
* The code of the integration
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
47
|
-
*/
|
|
48
|
-
integration: string;
|
|
49
|
-
/**
|
|
50
|
-
* The slug of the integration listing that is used in the URL
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
53
|
-
*/
|
|
54
|
-
slug: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {CreateAdminIntegrationListingRequestGradient}
|
|
58
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
59
|
-
*/
|
|
60
|
-
gradient: CreateAdminIntegrationListingRequestGradient;
|
|
61
|
-
/**
|
|
62
|
-
* The icon of the integration listing
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
65
|
-
*/
|
|
66
|
-
icon: string;
|
|
67
|
-
/**
|
|
68
|
-
* The categories that this listing belongs to
|
|
69
|
-
* @type {Array<string>}
|
|
70
|
-
* @memberof CreateAdminIntegrationListingRequest
|
|
71
|
-
*/
|
|
72
|
-
categories: Array<string>;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Check if a given object implements the CreateAdminIntegrationListingRequest interface.
|
|
76
|
-
*/
|
|
77
|
-
export declare function instanceOfCreateAdminIntegrationListingRequest(value: object): value is CreateAdminIntegrationListingRequest;
|
|
78
|
-
export declare function CreateAdminIntegrationListingRequestFromJSON(json: any): CreateAdminIntegrationListingRequest;
|
|
79
|
-
export declare function CreateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequest;
|
|
80
|
-
export declare function CreateAdminIntegrationListingRequestToJSON(value?: CreateAdminIntegrationListingRequest | null): any;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Integrations API
|
|
6
|
-
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 0.11.1
|
|
9
|
-
* Contact: hello@teemill.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.CreateAdminIntegrationListingRequestToJSON = exports.CreateAdminIntegrationListingRequestFromJSONTyped = exports.CreateAdminIntegrationListingRequestFromJSON = exports.instanceOfCreateAdminIntegrationListingRequest = void 0;
|
|
17
|
-
const CreateAdminIntegrationListingRequestGradient_1 = require("./CreateAdminIntegrationListingRequestGradient");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CreateAdminIntegrationListingRequest interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfCreateAdminIntegrationListingRequest(value) {
|
|
22
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('content' in value) || value['content'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('author' in value) || value['author'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('integration' in value) || value['integration'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('gradient' in value) || value['gradient'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('icon' in value) || value['icon'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('categories' in value) || value['categories'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
exports.instanceOfCreateAdminIntegrationListingRequest = instanceOfCreateAdminIntegrationListingRequest;
|
|
43
|
-
function CreateAdminIntegrationListingRequestFromJSON(json) {
|
|
44
|
-
return CreateAdminIntegrationListingRequestFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
exports.CreateAdminIntegrationListingRequestFromJSON = CreateAdminIntegrationListingRequestFromJSON;
|
|
47
|
-
function CreateAdminIntegrationListingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'name': json['name'],
|
|
53
|
-
'description': json['description'],
|
|
54
|
-
'content': json['content'],
|
|
55
|
-
'author': json['author'],
|
|
56
|
-
'integration': json['integration'],
|
|
57
|
-
'slug': json['slug'],
|
|
58
|
-
'gradient': (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientFromJSON)(json['gradient']),
|
|
59
|
-
'icon': json['icon'],
|
|
60
|
-
'categories': json['categories'],
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
exports.CreateAdminIntegrationListingRequestFromJSONTyped = CreateAdminIntegrationListingRequestFromJSONTyped;
|
|
64
|
-
function CreateAdminIntegrationListingRequestToJSON(value) {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
'name': value['name'],
|
|
70
|
-
'description': value['description'],
|
|
71
|
-
'content': value['content'],
|
|
72
|
-
'author': value['author'],
|
|
73
|
-
'integration': value['integration'],
|
|
74
|
-
'slug': value['slug'],
|
|
75
|
-
'gradient': (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientToJSON)(value['gradient']),
|
|
76
|
-
'icon': value['icon'],
|
|
77
|
-
'categories': value['categories'],
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
exports.CreateAdminIntegrationListingRequestToJSON = CreateAdminIntegrationListingRequestToJSON;
|