@teemill/file-processor 0.1.0
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 +12 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/api.ts +662 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +110 -0
- package/dist/api.d.ts +390 -0
- package/dist/api.js +485 -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 +390 -0
- package/dist/esm/api.js +474 -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 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
package/dist/esm/api.js
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* File Processor API
|
|
5
|
+
* RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
/**
|
|
30
|
+
* HealthApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const HealthApiAxiosParamCreator = function (configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Get api health
|
|
37
|
+
* @summary Get health
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getHealth: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
42
|
+
const localVarPath = `/healthz`;
|
|
43
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
|
+
let baseOptions;
|
|
46
|
+
if (configuration) {
|
|
47
|
+
baseOptions = configuration.baseOptions;
|
|
48
|
+
}
|
|
49
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
50
|
+
const localVarHeaderParameter = {};
|
|
51
|
+
const localVarQueryParameter = {};
|
|
52
|
+
// authentication session-oauth required
|
|
53
|
+
// oauth required
|
|
54
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
55
|
+
// authentication api-key required
|
|
56
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
57
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
60
|
+
return {
|
|
61
|
+
url: toPathString(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
}),
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* HealthApi - functional programming interface
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const HealthApiFp = function (configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration);
|
|
73
|
+
return {
|
|
74
|
+
/**
|
|
75
|
+
* Get api health
|
|
76
|
+
* @summary Get health
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
getHealth(options) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
var _a, _b, _c;
|
|
83
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHealth(options);
|
|
84
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
85
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['HealthApi.getHealth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
86
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* HealthApi - factory interface
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export const HealthApiFactory = function (configuration, basePath, axios) {
|
|
96
|
+
const localVarFp = HealthApiFp(configuration);
|
|
97
|
+
return {
|
|
98
|
+
/**
|
|
99
|
+
* Get api health
|
|
100
|
+
* @summary Get health
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
getHealth(options) {
|
|
105
|
+
return localVarFp.getHealth(options).then((request) => request(axios, basePath));
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* HealthApi - object-oriented interface
|
|
111
|
+
* @export
|
|
112
|
+
* @class HealthApi
|
|
113
|
+
* @extends {BaseAPI}
|
|
114
|
+
*/
|
|
115
|
+
export class HealthApi extends BaseAPI {
|
|
116
|
+
/**
|
|
117
|
+
* Get api health
|
|
118
|
+
* @summary Get health
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof HealthApi
|
|
122
|
+
*/
|
|
123
|
+
getHealth(options) {
|
|
124
|
+
return HealthApiFp(this.configuration).getHealth(options).then((request) => request(this.axios, this.basePath));
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* ProcessorApi - axios parameter creator
|
|
129
|
+
* @export
|
|
130
|
+
*/
|
|
131
|
+
export const ProcessorApiAxiosParamCreator = function (configuration) {
|
|
132
|
+
return {
|
|
133
|
+
/**
|
|
134
|
+
* Create a new processor job
|
|
135
|
+
* @summary Create job
|
|
136
|
+
* @param {string} project Projects unique identifier
|
|
137
|
+
* @param {Job} job Create a new job
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
createJob: (project_1, job_1, ...args_1) => __awaiter(this, [project_1, job_1, ...args_1], void 0, function* (project, job, options = {}) {
|
|
142
|
+
// verify required parameter 'project' is not null or undefined
|
|
143
|
+
assertParamExists('createJob', 'project', project);
|
|
144
|
+
// verify required parameter 'job' is not null or undefined
|
|
145
|
+
assertParamExists('createJob', 'job', job);
|
|
146
|
+
const localVarPath = `/jobs`;
|
|
147
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
148
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
149
|
+
let baseOptions;
|
|
150
|
+
if (configuration) {
|
|
151
|
+
baseOptions = configuration.baseOptions;
|
|
152
|
+
}
|
|
153
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
154
|
+
const localVarHeaderParameter = {};
|
|
155
|
+
const localVarQueryParameter = {};
|
|
156
|
+
// authentication session-oauth required
|
|
157
|
+
// oauth required
|
|
158
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
159
|
+
// authentication api-key required
|
|
160
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
161
|
+
if (project !== undefined) {
|
|
162
|
+
localVarQueryParameter['project'] = project;
|
|
163
|
+
}
|
|
164
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
168
|
+
localVarRequestOptions.data = serializeDataIfNeeded(job, localVarRequestOptions, configuration);
|
|
169
|
+
return {
|
|
170
|
+
url: toPathString(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
}),
|
|
174
|
+
/**
|
|
175
|
+
* Delete a processor job
|
|
176
|
+
* @summary Delete job
|
|
177
|
+
* @param {string} job Jobs unique identifier
|
|
178
|
+
* @param {string} project Projects unique identifier
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
*/
|
|
182
|
+
deleteJob: (job_2, project_2, ...args_2) => __awaiter(this, [job_2, project_2, ...args_2], void 0, function* (job, project, options = {}) {
|
|
183
|
+
// verify required parameter 'job' is not null or undefined
|
|
184
|
+
assertParamExists('deleteJob', 'job', job);
|
|
185
|
+
// verify required parameter 'project' is not null or undefined
|
|
186
|
+
assertParamExists('deleteJob', 'project', project);
|
|
187
|
+
const localVarPath = `/jobs/{job}`
|
|
188
|
+
.replace(`{${"job"}}`, encodeURIComponent(String(job)));
|
|
189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
191
|
+
let baseOptions;
|
|
192
|
+
if (configuration) {
|
|
193
|
+
baseOptions = configuration.baseOptions;
|
|
194
|
+
}
|
|
195
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
196
|
+
const localVarHeaderParameter = {};
|
|
197
|
+
const localVarQueryParameter = {};
|
|
198
|
+
// authentication session-oauth required
|
|
199
|
+
// oauth required
|
|
200
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
201
|
+
// authentication api-key required
|
|
202
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
203
|
+
if (project !== undefined) {
|
|
204
|
+
localVarQueryParameter['project'] = project;
|
|
205
|
+
}
|
|
206
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
+
return {
|
|
210
|
+
url: toPathString(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
}),
|
|
214
|
+
/**
|
|
215
|
+
* Get a job
|
|
216
|
+
* @summary Get job
|
|
217
|
+
* @param {string} job Jobs unique identifier
|
|
218
|
+
* @param {string} project Projects unique identifier
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
getJob: (job_3, project_3, ...args_3) => __awaiter(this, [job_3, project_3, ...args_3], void 0, function* (job, project, options = {}) {
|
|
223
|
+
// verify required parameter 'job' is not null or undefined
|
|
224
|
+
assertParamExists('getJob', 'job', job);
|
|
225
|
+
// verify required parameter 'project' is not null or undefined
|
|
226
|
+
assertParamExists('getJob', 'project', project);
|
|
227
|
+
const localVarPath = `/jobs/{job}`
|
|
228
|
+
.replace(`{${"job"}}`, encodeURIComponent(String(job)));
|
|
229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
231
|
+
let baseOptions;
|
|
232
|
+
if (configuration) {
|
|
233
|
+
baseOptions = configuration.baseOptions;
|
|
234
|
+
}
|
|
235
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
236
|
+
const localVarHeaderParameter = {};
|
|
237
|
+
const localVarQueryParameter = {};
|
|
238
|
+
// authentication session-oauth required
|
|
239
|
+
// oauth required
|
|
240
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
241
|
+
// authentication api-key required
|
|
242
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
243
|
+
if (project !== undefined) {
|
|
244
|
+
localVarQueryParameter['project'] = project;
|
|
245
|
+
}
|
|
246
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
248
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
}),
|
|
254
|
+
/**
|
|
255
|
+
* List your processor jobs
|
|
256
|
+
* @summary List jobs
|
|
257
|
+
* @param {string} project Projects unique identifier
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
listJobs: (project_4, ...args_4) => __awaiter(this, [project_4, ...args_4], void 0, function* (project, options = {}) {
|
|
262
|
+
// verify required parameter 'project' is not null or undefined
|
|
263
|
+
assertParamExists('listJobs', 'project', project);
|
|
264
|
+
const localVarPath = `/jobs`;
|
|
265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
266
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
267
|
+
let baseOptions;
|
|
268
|
+
if (configuration) {
|
|
269
|
+
baseOptions = configuration.baseOptions;
|
|
270
|
+
}
|
|
271
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
272
|
+
const localVarHeaderParameter = {};
|
|
273
|
+
const localVarQueryParameter = {};
|
|
274
|
+
// authentication session-oauth required
|
|
275
|
+
// oauth required
|
|
276
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
277
|
+
// authentication api-key required
|
|
278
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
279
|
+
if (project !== undefined) {
|
|
280
|
+
localVarQueryParameter['project'] = project;
|
|
281
|
+
}
|
|
282
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
283
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
285
|
+
return {
|
|
286
|
+
url: toPathString(localVarUrlObj),
|
|
287
|
+
options: localVarRequestOptions,
|
|
288
|
+
};
|
|
289
|
+
}),
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* ProcessorApi - functional programming interface
|
|
294
|
+
* @export
|
|
295
|
+
*/
|
|
296
|
+
export const ProcessorApiFp = function (configuration) {
|
|
297
|
+
const localVarAxiosParamCreator = ProcessorApiAxiosParamCreator(configuration);
|
|
298
|
+
return {
|
|
299
|
+
/**
|
|
300
|
+
* Create a new processor job
|
|
301
|
+
* @summary Create job
|
|
302
|
+
* @param {string} project Projects unique identifier
|
|
303
|
+
* @param {Job} job Create a new job
|
|
304
|
+
* @param {*} [options] Override http request option.
|
|
305
|
+
* @throws {RequiredError}
|
|
306
|
+
*/
|
|
307
|
+
createJob(project, job, options) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
var _a, _b, _c;
|
|
310
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJob(project, job, options);
|
|
311
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
312
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProcessorApi.createJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
313
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
* Delete a processor job
|
|
318
|
+
* @summary Delete job
|
|
319
|
+
* @param {string} job Jobs unique identifier
|
|
320
|
+
* @param {string} project Projects unique identifier
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
deleteJob(job, project, options) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
var _a, _b, _c;
|
|
327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJob(job, project, options);
|
|
328
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
329
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProcessorApi.deleteJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
330
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
331
|
+
});
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* Get a job
|
|
335
|
+
* @summary Get job
|
|
336
|
+
* @param {string} job Jobs unique identifier
|
|
337
|
+
* @param {string} project Projects unique identifier
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
getJob(job, project, options) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
var _a, _b, _c;
|
|
344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJob(job, project, options);
|
|
345
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
346
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProcessorApi.getJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
348
|
+
});
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
* List your processor jobs
|
|
352
|
+
* @summary List jobs
|
|
353
|
+
* @param {string} project Projects unique identifier
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
listJobs(project, options) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
var _a, _b, _c;
|
|
360
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobs(project, options);
|
|
361
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
362
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProcessorApi.listJobs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
363
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* ProcessorApi - factory interface
|
|
370
|
+
* @export
|
|
371
|
+
*/
|
|
372
|
+
export const ProcessorApiFactory = function (configuration, basePath, axios) {
|
|
373
|
+
const localVarFp = ProcessorApiFp(configuration);
|
|
374
|
+
return {
|
|
375
|
+
/**
|
|
376
|
+
* Create a new processor job
|
|
377
|
+
* @summary Create job
|
|
378
|
+
* @param {string} project Projects unique identifier
|
|
379
|
+
* @param {Job} job Create a new job
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
createJob(project, job, options) {
|
|
384
|
+
return localVarFp.createJob(project, job, options).then((request) => request(axios, basePath));
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* Delete a processor job
|
|
388
|
+
* @summary Delete job
|
|
389
|
+
* @param {string} job Jobs unique identifier
|
|
390
|
+
* @param {string} project Projects unique identifier
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
deleteJob(job, project, options) {
|
|
395
|
+
return localVarFp.deleteJob(job, project, options).then((request) => request(axios, basePath));
|
|
396
|
+
},
|
|
397
|
+
/**
|
|
398
|
+
* Get a job
|
|
399
|
+
* @summary Get job
|
|
400
|
+
* @param {string} job Jobs unique identifier
|
|
401
|
+
* @param {string} project Projects unique identifier
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
getJob(job, project, options) {
|
|
406
|
+
return localVarFp.getJob(job, project, options).then((request) => request(axios, basePath));
|
|
407
|
+
},
|
|
408
|
+
/**
|
|
409
|
+
* List your processor jobs
|
|
410
|
+
* @summary List jobs
|
|
411
|
+
* @param {string} project Projects unique identifier
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
*/
|
|
415
|
+
listJobs(project, options) {
|
|
416
|
+
return localVarFp.listJobs(project, options).then((request) => request(axios, basePath));
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* ProcessorApi - object-oriented interface
|
|
422
|
+
* @export
|
|
423
|
+
* @class ProcessorApi
|
|
424
|
+
* @extends {BaseAPI}
|
|
425
|
+
*/
|
|
426
|
+
export class ProcessorApi extends BaseAPI {
|
|
427
|
+
/**
|
|
428
|
+
* Create a new processor job
|
|
429
|
+
* @summary Create job
|
|
430
|
+
* @param {string} project Projects unique identifier
|
|
431
|
+
* @param {Job} job Create a new job
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
* @memberof ProcessorApi
|
|
435
|
+
*/
|
|
436
|
+
createJob(project, job, options) {
|
|
437
|
+
return ProcessorApiFp(this.configuration).createJob(project, job, options).then((request) => request(this.axios, this.basePath));
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* Delete a processor job
|
|
441
|
+
* @summary Delete job
|
|
442
|
+
* @param {string} job Jobs unique identifier
|
|
443
|
+
* @param {string} project Projects unique identifier
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
* @memberof ProcessorApi
|
|
447
|
+
*/
|
|
448
|
+
deleteJob(job, project, options) {
|
|
449
|
+
return ProcessorApiFp(this.configuration).deleteJob(job, project, options).then((request) => request(this.axios, this.basePath));
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Get a job
|
|
453
|
+
* @summary Get job
|
|
454
|
+
* @param {string} job Jobs unique identifier
|
|
455
|
+
* @param {string} project Projects unique identifier
|
|
456
|
+
* @param {*} [options] Override http request option.
|
|
457
|
+
* @throws {RequiredError}
|
|
458
|
+
* @memberof ProcessorApi
|
|
459
|
+
*/
|
|
460
|
+
getJob(job, project, options) {
|
|
461
|
+
return ProcessorApiFp(this.configuration).getJob(job, project, options).then((request) => request(this.axios, this.basePath));
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* List your processor jobs
|
|
465
|
+
* @summary List jobs
|
|
466
|
+
* @param {string} project Projects unique identifier
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
* @memberof ProcessorApi
|
|
470
|
+
*/
|
|
471
|
+
listJobs(project, options) {
|
|
472
|
+
return ProcessorApiFp(this.configuration).listJobs(project, options).then((request) => request(this.axios, this.basePath));
|
|
473
|
+
}
|
|
474
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Processor API
|
|
3
|
+
* RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
package/dist/esm/base.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* File Processor API
|
|
5
|
+
* RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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
|
+
import globalAxios from 'axios';
|
|
15
|
+
export const BASE_PATH = "https://api.localhost:8080".replace(/\/+$/, "");
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const COLLECTION_FORMATS = {
|
|
21
|
+
csv: ",",
|
|
22
|
+
ssv: " ",
|
|
23
|
+
tsv: "\t",
|
|
24
|
+
pipes: "|",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @class BaseAPI
|
|
30
|
+
*/
|
|
31
|
+
export class BaseAPI {
|
|
32
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
+
var _a;
|
|
34
|
+
this.basePath = basePath;
|
|
35
|
+
this.axios = axios;
|
|
36
|
+
if (configuration) {
|
|
37
|
+
this.configuration = configuration;
|
|
38
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
* @class RequiredError
|
|
47
|
+
* @extends {Error}
|
|
48
|
+
*/
|
|
49
|
+
export class RequiredError extends Error {
|
|
50
|
+
constructor(field, msg) {
|
|
51
|
+
super(msg);
|
|
52
|
+
this.field = field;
|
|
53
|
+
this.name = "RequiredError";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const operationServerMap = {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Processor API
|
|
3
|
+
* RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
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 { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|