@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.d.ts ADDED
@@ -0,0 +1,390 @@
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 { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import type { RequestArgs } from './base';
15
+ import { BaseAPI } from './base';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ApiError
20
+ */
21
+ export interface ApiError {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiError
26
+ */
27
+ 'code'?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiError
32
+ */
33
+ 'message': string;
34
+ }
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface GetHealth200Response
39
+ */
40
+ export interface GetHealth200Response {
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof GetHealth200Response
45
+ */
46
+ 'status'?: string;
47
+ }
48
+ /**
49
+ *
50
+ * @export
51
+ * @interface Job
52
+ */
53
+ export interface Job {
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof Job
58
+ */
59
+ 'id': string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof Job
64
+ */
65
+ 'project': string;
66
+ /**
67
+ *
68
+ * @type {JobInput}
69
+ * @memberof Job
70
+ */
71
+ 'input': JobInput;
72
+ /**
73
+ *
74
+ * @type {JobOutput}
75
+ * @memberof Job
76
+ */
77
+ 'output': JobOutput;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof Job
82
+ */
83
+ 'pipeline': string;
84
+ /**
85
+ *
86
+ * @type {object}
87
+ * @memberof Job
88
+ */
89
+ 'configuration': object;
90
+ /**
91
+ * ISO 8601 Timestamp
92
+ * @type {string}
93
+ * @memberof Job
94
+ */
95
+ 'createdAt': string;
96
+ /**
97
+ * ISO 8601 Timestamp
98
+ * @type {string}
99
+ * @memberof Job
100
+ */
101
+ 'startedAt'?: string;
102
+ /**
103
+ * ISO 8601 Timestamp
104
+ * @type {string}
105
+ * @memberof Job
106
+ */
107
+ 'completedAt'?: string;
108
+ /**
109
+ * ISO 8601 Timestamp
110
+ * @type {string}
111
+ * @memberof Job
112
+ */
113
+ 'failedAt'?: string;
114
+ }
115
+ /**
116
+ *
117
+ * @export
118
+ * @interface JobInput
119
+ */
120
+ export interface JobInput {
121
+ /**
122
+ *
123
+ * @type {string}
124
+ * @memberof JobInput
125
+ */
126
+ 'path': string;
127
+ /**
128
+ *
129
+ * @type {string}
130
+ * @memberof JobInput
131
+ */
132
+ 'driver': string;
133
+ }
134
+ /**
135
+ *
136
+ * @export
137
+ * @interface JobOutput
138
+ */
139
+ export interface JobOutput {
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof JobOutput
144
+ */
145
+ 'path': string;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof JobOutput
150
+ */
151
+ 'driver': string;
152
+ }
153
+ /**
154
+ *
155
+ * @export
156
+ * @interface ListJobs200Response
157
+ */
158
+ export interface ListJobs200Response {
159
+ /**
160
+ *
161
+ * @type {Array<Job>}
162
+ * @memberof ListJobs200Response
163
+ */
164
+ 'jobs': Array<Job>;
165
+ }
166
+ /**
167
+ * HealthApi - axios parameter creator
168
+ * @export
169
+ */
170
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
171
+ /**
172
+ * Get api health
173
+ * @summary Get health
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ getHealth: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
178
+ };
179
+ /**
180
+ * HealthApi - functional programming interface
181
+ * @export
182
+ */
183
+ export declare const HealthApiFp: (configuration?: Configuration) => {
184
+ /**
185
+ * Get api health
186
+ * @summary Get health
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ getHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetHealth200Response>>;
191
+ };
192
+ /**
193
+ * HealthApi - factory interface
194
+ * @export
195
+ */
196
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
197
+ /**
198
+ * Get api health
199
+ * @summary Get health
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ getHealth(options?: any): AxiosPromise<GetHealth200Response>;
204
+ };
205
+ /**
206
+ * HealthApi - object-oriented interface
207
+ * @export
208
+ * @class HealthApi
209
+ * @extends {BaseAPI}
210
+ */
211
+ export declare class HealthApi extends BaseAPI {
212
+ /**
213
+ * Get api health
214
+ * @summary Get health
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof HealthApi
218
+ */
219
+ getHealth(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetHealth200Response, any>>;
220
+ }
221
+ /**
222
+ * ProcessorApi - axios parameter creator
223
+ * @export
224
+ */
225
+ export declare const ProcessorApiAxiosParamCreator: (configuration?: Configuration) => {
226
+ /**
227
+ * Create a new processor job
228
+ * @summary Create job
229
+ * @param {string} project Projects unique identifier
230
+ * @param {Job} job Create a new job
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ createJob: (project: string, job: Job, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
235
+ /**
236
+ * Delete a processor job
237
+ * @summary Delete job
238
+ * @param {string} job Jobs unique identifier
239
+ * @param {string} project Projects unique identifier
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ deleteJob: (job: string, project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
244
+ /**
245
+ * Get a job
246
+ * @summary Get job
247
+ * @param {string} job Jobs unique identifier
248
+ * @param {string} project Projects unique identifier
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ getJob: (job: string, project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
253
+ /**
254
+ * List your processor jobs
255
+ * @summary List jobs
256
+ * @param {string} project Projects unique identifier
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ listJobs: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
261
+ };
262
+ /**
263
+ * ProcessorApi - functional programming interface
264
+ * @export
265
+ */
266
+ export declare const ProcessorApiFp: (configuration?: Configuration) => {
267
+ /**
268
+ * Create a new processor job
269
+ * @summary Create job
270
+ * @param {string} project Projects unique identifier
271
+ * @param {Job} job Create a new job
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ createJob(project: string, job: Job, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>>;
276
+ /**
277
+ * Delete a processor job
278
+ * @summary Delete job
279
+ * @param {string} job Jobs unique identifier
280
+ * @param {string} project Projects unique identifier
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ deleteJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
285
+ /**
286
+ * Get a job
287
+ * @summary Get job
288
+ * @param {string} job Jobs unique identifier
289
+ * @param {string} project Projects unique identifier
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ getJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>>;
294
+ /**
295
+ * List your processor jobs
296
+ * @summary List jobs
297
+ * @param {string} project Projects unique identifier
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ listJobs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJobs200Response>>;
302
+ };
303
+ /**
304
+ * ProcessorApi - factory interface
305
+ * @export
306
+ */
307
+ export declare const ProcessorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
308
+ /**
309
+ * Create a new processor job
310
+ * @summary Create job
311
+ * @param {string} project Projects unique identifier
312
+ * @param {Job} job Create a new job
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ createJob(project: string, job: Job, options?: any): AxiosPromise<Job>;
317
+ /**
318
+ * Delete a processor job
319
+ * @summary Delete job
320
+ * @param {string} job Jobs unique identifier
321
+ * @param {string} project Projects unique identifier
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ deleteJob(job: string, project: string, options?: any): AxiosPromise<void>;
326
+ /**
327
+ * Get a job
328
+ * @summary Get job
329
+ * @param {string} job Jobs unique identifier
330
+ * @param {string} project Projects unique identifier
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ getJob(job: string, project: string, options?: any): AxiosPromise<Job>;
335
+ /**
336
+ * List your processor jobs
337
+ * @summary List jobs
338
+ * @param {string} project Projects unique identifier
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ listJobs(project: string, options?: any): AxiosPromise<ListJobs200Response>;
343
+ };
344
+ /**
345
+ * ProcessorApi - object-oriented interface
346
+ * @export
347
+ * @class ProcessorApi
348
+ * @extends {BaseAPI}
349
+ */
350
+ export declare class ProcessorApi extends BaseAPI {
351
+ /**
352
+ * Create a new processor job
353
+ * @summary Create job
354
+ * @param {string} project Projects unique identifier
355
+ * @param {Job} job Create a new job
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ * @memberof ProcessorApi
359
+ */
360
+ createJob(project: string, job: Job, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
361
+ /**
362
+ * Delete a processor job
363
+ * @summary Delete job
364
+ * @param {string} job Jobs unique identifier
365
+ * @param {string} project Projects unique identifier
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ * @memberof ProcessorApi
369
+ */
370
+ deleteJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
371
+ /**
372
+ * Get a job
373
+ * @summary Get job
374
+ * @param {string} job Jobs unique identifier
375
+ * @param {string} project Projects unique identifier
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ * @memberof ProcessorApi
379
+ */
380
+ getJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
381
+ /**
382
+ * List your processor jobs
383
+ * @summary List jobs
384
+ * @param {string} project Projects unique identifier
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ * @memberof ProcessorApi
388
+ */
389
+ listJobs(project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListJobs200Response, any>>;
390
+ }