@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/api.ts
ADDED
|
@@ -0,0 +1,662 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
+
import type { RequestArgs } from './base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ApiError
|
|
30
|
+
*/
|
|
31
|
+
export interface ApiError {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApiError
|
|
36
|
+
*/
|
|
37
|
+
'code'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ApiError
|
|
42
|
+
*/
|
|
43
|
+
'message': string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface GetHealth200Response
|
|
49
|
+
*/
|
|
50
|
+
export interface GetHealth200Response {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof GetHealth200Response
|
|
55
|
+
*/
|
|
56
|
+
'status'?: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @export
|
|
61
|
+
* @interface Job
|
|
62
|
+
*/
|
|
63
|
+
export interface Job {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Job
|
|
68
|
+
*/
|
|
69
|
+
'id': string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Job
|
|
74
|
+
*/
|
|
75
|
+
'project': string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {JobInput}
|
|
79
|
+
* @memberof Job
|
|
80
|
+
*/
|
|
81
|
+
'input': JobInput;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {JobOutput}
|
|
85
|
+
* @memberof Job
|
|
86
|
+
*/
|
|
87
|
+
'output': JobOutput;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Job
|
|
92
|
+
*/
|
|
93
|
+
'pipeline': string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {object}
|
|
97
|
+
* @memberof Job
|
|
98
|
+
*/
|
|
99
|
+
'configuration': object;
|
|
100
|
+
/**
|
|
101
|
+
* ISO 8601 Timestamp
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof Job
|
|
104
|
+
*/
|
|
105
|
+
'createdAt': string;
|
|
106
|
+
/**
|
|
107
|
+
* ISO 8601 Timestamp
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof Job
|
|
110
|
+
*/
|
|
111
|
+
'startedAt'?: string;
|
|
112
|
+
/**
|
|
113
|
+
* ISO 8601 Timestamp
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof Job
|
|
116
|
+
*/
|
|
117
|
+
'completedAt'?: string;
|
|
118
|
+
/**
|
|
119
|
+
* ISO 8601 Timestamp
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof Job
|
|
122
|
+
*/
|
|
123
|
+
'failedAt'?: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @export
|
|
128
|
+
* @interface JobInput
|
|
129
|
+
*/
|
|
130
|
+
export interface JobInput {
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof JobInput
|
|
135
|
+
*/
|
|
136
|
+
'path': string;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof JobInput
|
|
141
|
+
*/
|
|
142
|
+
'driver': string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @export
|
|
147
|
+
* @interface JobOutput
|
|
148
|
+
*/
|
|
149
|
+
export interface JobOutput {
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof JobOutput
|
|
154
|
+
*/
|
|
155
|
+
'path': string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof JobOutput
|
|
160
|
+
*/
|
|
161
|
+
'driver': string;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @export
|
|
166
|
+
* @interface ListJobs200Response
|
|
167
|
+
*/
|
|
168
|
+
export interface ListJobs200Response {
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @type {Array<Job>}
|
|
172
|
+
* @memberof ListJobs200Response
|
|
173
|
+
*/
|
|
174
|
+
'jobs': Array<Job>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* HealthApi - axios parameter creator
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
182
|
+
return {
|
|
183
|
+
/**
|
|
184
|
+
* Get api health
|
|
185
|
+
* @summary Get health
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
getHealth: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
190
|
+
const localVarPath = `/healthz`;
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
199
|
+
const localVarHeaderParameter = {} as any;
|
|
200
|
+
const localVarQueryParameter = {} as any;
|
|
201
|
+
|
|
202
|
+
// authentication session-oauth required
|
|
203
|
+
// oauth required
|
|
204
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
205
|
+
|
|
206
|
+
// authentication api-key required
|
|
207
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
214
|
+
|
|
215
|
+
return {
|
|
216
|
+
url: toPathString(localVarUrlObj),
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* HealthApi - functional programming interface
|
|
225
|
+
* @export
|
|
226
|
+
*/
|
|
227
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
228
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
229
|
+
return {
|
|
230
|
+
/**
|
|
231
|
+
* Get api health
|
|
232
|
+
* @summary Get health
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
async getHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetHealth200Response>> {
|
|
237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getHealth(options);
|
|
238
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
239
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.getHealth']?.[localVarOperationServerIndex]?.url;
|
|
240
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
241
|
+
},
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* HealthApi - factory interface
|
|
247
|
+
* @export
|
|
248
|
+
*/
|
|
249
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
250
|
+
const localVarFp = HealthApiFp(configuration)
|
|
251
|
+
return {
|
|
252
|
+
/**
|
|
253
|
+
* Get api health
|
|
254
|
+
* @summary Get health
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
getHealth(options?: any): AxiosPromise<GetHealth200Response> {
|
|
259
|
+
return localVarFp.getHealth(options).then((request) => request(axios, basePath));
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* HealthApi - object-oriented interface
|
|
266
|
+
* @export
|
|
267
|
+
* @class HealthApi
|
|
268
|
+
* @extends {BaseAPI}
|
|
269
|
+
*/
|
|
270
|
+
export class HealthApi extends BaseAPI {
|
|
271
|
+
/**
|
|
272
|
+
* Get api health
|
|
273
|
+
* @summary Get health
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
* @memberof HealthApi
|
|
277
|
+
*/
|
|
278
|
+
public getHealth(options?: RawAxiosRequestConfig) {
|
|
279
|
+
return HealthApiFp(this.configuration).getHealth(options).then((request) => request(this.axios, this.basePath));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* ProcessorApi - axios parameter creator
|
|
287
|
+
* @export
|
|
288
|
+
*/
|
|
289
|
+
export const ProcessorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
290
|
+
return {
|
|
291
|
+
/**
|
|
292
|
+
* Create a new processor job
|
|
293
|
+
* @summary Create job
|
|
294
|
+
* @param {string} project Projects unique identifier
|
|
295
|
+
* @param {Job} job Create a new job
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
createJob: async (project: string, job: Job, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
300
|
+
// verify required parameter 'project' is not null or undefined
|
|
301
|
+
assertParamExists('createJob', 'project', project)
|
|
302
|
+
// verify required parameter 'job' is not null or undefined
|
|
303
|
+
assertParamExists('createJob', 'job', job)
|
|
304
|
+
const localVarPath = `/jobs`;
|
|
305
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
306
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
307
|
+
let baseOptions;
|
|
308
|
+
if (configuration) {
|
|
309
|
+
baseOptions = configuration.baseOptions;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
313
|
+
const localVarHeaderParameter = {} as any;
|
|
314
|
+
const localVarQueryParameter = {} as any;
|
|
315
|
+
|
|
316
|
+
// authentication session-oauth required
|
|
317
|
+
// oauth required
|
|
318
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
319
|
+
|
|
320
|
+
// authentication api-key required
|
|
321
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
322
|
+
|
|
323
|
+
if (project !== undefined) {
|
|
324
|
+
localVarQueryParameter['project'] = project;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
330
|
+
|
|
331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
333
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
334
|
+
localVarRequestOptions.data = serializeDataIfNeeded(job, localVarRequestOptions, configuration)
|
|
335
|
+
|
|
336
|
+
return {
|
|
337
|
+
url: toPathString(localVarUrlObj),
|
|
338
|
+
options: localVarRequestOptions,
|
|
339
|
+
};
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Delete a processor job
|
|
343
|
+
* @summary Delete 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
|
+
deleteJob: async (job: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
350
|
+
// verify required parameter 'job' is not null or undefined
|
|
351
|
+
assertParamExists('deleteJob', 'job', job)
|
|
352
|
+
// verify required parameter 'project' is not null or undefined
|
|
353
|
+
assertParamExists('deleteJob', 'project', project)
|
|
354
|
+
const localVarPath = `/jobs/{job}`
|
|
355
|
+
.replace(`{${"job"}}`, encodeURIComponent(String(job)));
|
|
356
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
357
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
358
|
+
let baseOptions;
|
|
359
|
+
if (configuration) {
|
|
360
|
+
baseOptions = configuration.baseOptions;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
364
|
+
const localVarHeaderParameter = {} as any;
|
|
365
|
+
const localVarQueryParameter = {} as any;
|
|
366
|
+
|
|
367
|
+
// authentication session-oauth required
|
|
368
|
+
// oauth required
|
|
369
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
370
|
+
|
|
371
|
+
// authentication api-key required
|
|
372
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
373
|
+
|
|
374
|
+
if (project !== undefined) {
|
|
375
|
+
localVarQueryParameter['project'] = project;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
382
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
383
|
+
|
|
384
|
+
return {
|
|
385
|
+
url: toPathString(localVarUrlObj),
|
|
386
|
+
options: localVarRequestOptions,
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
* Get a job
|
|
391
|
+
* @summary Get job
|
|
392
|
+
* @param {string} job Jobs unique identifier
|
|
393
|
+
* @param {string} project Projects unique identifier
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
getJob: async (job: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
398
|
+
// verify required parameter 'job' is not null or undefined
|
|
399
|
+
assertParamExists('getJob', 'job', job)
|
|
400
|
+
// verify required parameter 'project' is not null or undefined
|
|
401
|
+
assertParamExists('getJob', 'project', project)
|
|
402
|
+
const localVarPath = `/jobs/{job}`
|
|
403
|
+
.replace(`{${"job"}}`, encodeURIComponent(String(job)));
|
|
404
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
405
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
406
|
+
let baseOptions;
|
|
407
|
+
if (configuration) {
|
|
408
|
+
baseOptions = configuration.baseOptions;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
412
|
+
const localVarHeaderParameter = {} as any;
|
|
413
|
+
const localVarQueryParameter = {} as any;
|
|
414
|
+
|
|
415
|
+
// authentication session-oauth required
|
|
416
|
+
// oauth required
|
|
417
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
418
|
+
|
|
419
|
+
// authentication api-key required
|
|
420
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
421
|
+
|
|
422
|
+
if (project !== undefined) {
|
|
423
|
+
localVarQueryParameter['project'] = project;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
429
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
430
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
431
|
+
|
|
432
|
+
return {
|
|
433
|
+
url: toPathString(localVarUrlObj),
|
|
434
|
+
options: localVarRequestOptions,
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
/**
|
|
438
|
+
* List your processor jobs
|
|
439
|
+
* @summary List jobs
|
|
440
|
+
* @param {string} project Projects unique identifier
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
listJobs: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
445
|
+
// verify required parameter 'project' is not null or undefined
|
|
446
|
+
assertParamExists('listJobs', 'project', project)
|
|
447
|
+
const localVarPath = `/jobs`;
|
|
448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
449
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
450
|
+
let baseOptions;
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
456
|
+
const localVarHeaderParameter = {} as any;
|
|
457
|
+
const localVarQueryParameter = {} as any;
|
|
458
|
+
|
|
459
|
+
// authentication session-oauth required
|
|
460
|
+
// oauth required
|
|
461
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
462
|
+
|
|
463
|
+
// authentication api-key required
|
|
464
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
465
|
+
|
|
466
|
+
if (project !== undefined) {
|
|
467
|
+
localVarQueryParameter['project'] = project;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
474
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
475
|
+
|
|
476
|
+
return {
|
|
477
|
+
url: toPathString(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* ProcessorApi - functional programming interface
|
|
486
|
+
* @export
|
|
487
|
+
*/
|
|
488
|
+
export const ProcessorApiFp = function(configuration?: Configuration) {
|
|
489
|
+
const localVarAxiosParamCreator = ProcessorApiAxiosParamCreator(configuration)
|
|
490
|
+
return {
|
|
491
|
+
/**
|
|
492
|
+
* Create a new processor job
|
|
493
|
+
* @summary Create job
|
|
494
|
+
* @param {string} project Projects unique identifier
|
|
495
|
+
* @param {Job} job Create a new job
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
*/
|
|
499
|
+
async createJob(project: string, job: Job, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>> {
|
|
500
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createJob(project, job, options);
|
|
501
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
502
|
+
const localVarOperationServerBasePath = operationServerMap['ProcessorApi.createJob']?.[localVarOperationServerIndex]?.url;
|
|
503
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
504
|
+
},
|
|
505
|
+
/**
|
|
506
|
+
* Delete a processor job
|
|
507
|
+
* @summary Delete job
|
|
508
|
+
* @param {string} job Jobs unique identifier
|
|
509
|
+
* @param {string} project Projects unique identifier
|
|
510
|
+
* @param {*} [options] Override http request option.
|
|
511
|
+
* @throws {RequiredError}
|
|
512
|
+
*/
|
|
513
|
+
async deleteJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
514
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteJob(job, project, options);
|
|
515
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
516
|
+
const localVarOperationServerBasePath = operationServerMap['ProcessorApi.deleteJob']?.[localVarOperationServerIndex]?.url;
|
|
517
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
518
|
+
},
|
|
519
|
+
/**
|
|
520
|
+
* Get a job
|
|
521
|
+
* @summary Get job
|
|
522
|
+
* @param {string} job Jobs unique identifier
|
|
523
|
+
* @param {string} project Projects unique identifier
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
async getJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>> {
|
|
528
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getJob(job, project, options);
|
|
529
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
530
|
+
const localVarOperationServerBasePath = operationServerMap['ProcessorApi.getJob']?.[localVarOperationServerIndex]?.url;
|
|
531
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
532
|
+
},
|
|
533
|
+
/**
|
|
534
|
+
* List your processor jobs
|
|
535
|
+
* @summary List jobs
|
|
536
|
+
* @param {string} project Projects unique identifier
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
async listJobs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJobs200Response>> {
|
|
541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listJobs(project, options);
|
|
542
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
543
|
+
const localVarOperationServerBasePath = operationServerMap['ProcessorApi.listJobs']?.[localVarOperationServerIndex]?.url;
|
|
544
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
545
|
+
},
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* ProcessorApi - factory interface
|
|
551
|
+
* @export
|
|
552
|
+
*/
|
|
553
|
+
export const ProcessorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
554
|
+
const localVarFp = ProcessorApiFp(configuration)
|
|
555
|
+
return {
|
|
556
|
+
/**
|
|
557
|
+
* Create a new processor job
|
|
558
|
+
* @summary Create job
|
|
559
|
+
* @param {string} project Projects unique identifier
|
|
560
|
+
* @param {Job} job Create a new job
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
createJob(project: string, job: Job, options?: any): AxiosPromise<Job> {
|
|
565
|
+
return localVarFp.createJob(project, job, options).then((request) => request(axios, basePath));
|
|
566
|
+
},
|
|
567
|
+
/**
|
|
568
|
+
* Delete a processor job
|
|
569
|
+
* @summary Delete job
|
|
570
|
+
* @param {string} job Jobs unique identifier
|
|
571
|
+
* @param {string} project Projects unique identifier
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
*/
|
|
575
|
+
deleteJob(job: string, project: string, options?: any): AxiosPromise<void> {
|
|
576
|
+
return localVarFp.deleteJob(job, project, options).then((request) => request(axios, basePath));
|
|
577
|
+
},
|
|
578
|
+
/**
|
|
579
|
+
* Get a job
|
|
580
|
+
* @summary Get job
|
|
581
|
+
* @param {string} job Jobs unique identifier
|
|
582
|
+
* @param {string} project Projects unique identifier
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
*/
|
|
586
|
+
getJob(job: string, project: string, options?: any): AxiosPromise<Job> {
|
|
587
|
+
return localVarFp.getJob(job, project, options).then((request) => request(axios, basePath));
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
* List your processor jobs
|
|
591
|
+
* @summary List jobs
|
|
592
|
+
* @param {string} project Projects unique identifier
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
listJobs(project: string, options?: any): AxiosPromise<ListJobs200Response> {
|
|
597
|
+
return localVarFp.listJobs(project, options).then((request) => request(axios, basePath));
|
|
598
|
+
},
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* ProcessorApi - object-oriented interface
|
|
604
|
+
* @export
|
|
605
|
+
* @class ProcessorApi
|
|
606
|
+
* @extends {BaseAPI}
|
|
607
|
+
*/
|
|
608
|
+
export class ProcessorApi extends BaseAPI {
|
|
609
|
+
/**
|
|
610
|
+
* Create a new processor job
|
|
611
|
+
* @summary Create job
|
|
612
|
+
* @param {string} project Projects unique identifier
|
|
613
|
+
* @param {Job} job Create a new job
|
|
614
|
+
* @param {*} [options] Override http request option.
|
|
615
|
+
* @throws {RequiredError}
|
|
616
|
+
* @memberof ProcessorApi
|
|
617
|
+
*/
|
|
618
|
+
public createJob(project: string, job: Job, options?: RawAxiosRequestConfig) {
|
|
619
|
+
return ProcessorApiFp(this.configuration).createJob(project, job, options).then((request) => request(this.axios, this.basePath));
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Delete a processor job
|
|
624
|
+
* @summary Delete job
|
|
625
|
+
* @param {string} job Jobs unique identifier
|
|
626
|
+
* @param {string} project Projects unique identifier
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
* @memberof ProcessorApi
|
|
630
|
+
*/
|
|
631
|
+
public deleteJob(job: string, project: string, options?: RawAxiosRequestConfig) {
|
|
632
|
+
return ProcessorApiFp(this.configuration).deleteJob(job, project, options).then((request) => request(this.axios, this.basePath));
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Get a job
|
|
637
|
+
* @summary Get job
|
|
638
|
+
* @param {string} job Jobs unique identifier
|
|
639
|
+
* @param {string} project Projects unique identifier
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
* @memberof ProcessorApi
|
|
643
|
+
*/
|
|
644
|
+
public getJob(job: string, project: string, options?: RawAxiosRequestConfig) {
|
|
645
|
+
return ProcessorApiFp(this.configuration).getJob(job, project, options).then((request) => request(this.axios, this.basePath));
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* List your processor jobs
|
|
650
|
+
* @summary List jobs
|
|
651
|
+
* @param {string} project Projects unique identifier
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
* @memberof ProcessorApi
|
|
655
|
+
*/
|
|
656
|
+
public listJobs(project: string, options?: RawAxiosRequestConfig) {
|
|
657
|
+
return ProcessorApiFp(this.configuration).listJobs(project, options).then((request) => request(this.axios, this.basePath));
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|