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