@teemill/file-processor 0.1.1 → 0.2.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  * File Processor API
6
6
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -262,10 +262,12 @@ const ProcessorApiAxiosParamCreator = function (configuration) {
262
262
  * List your processor jobs
263
263
  * @summary List jobs
264
264
  * @param {string} project Projects unique identifier
265
+ * @param {number} [pageToken] Page reference token
266
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
265
267
  * @param {*} [options] Override http request option.
266
268
  * @throws {RequiredError}
267
269
  */
268
- listJobs: (project_4, ...args_4) => __awaiter(this, [project_4, ...args_4], void 0, function* (project, options = {}) {
270
+ listJobs: (project_4, pageToken_1, pageSize_1, ...args_4) => __awaiter(this, [project_4, pageToken_1, pageSize_1, ...args_4], void 0, function* (project, pageToken, pageSize, options = {}) {
269
271
  // verify required parameter 'project' is not null or undefined
270
272
  (0, common_1.assertParamExists)('listJobs', 'project', project);
271
273
  const localVarPath = `/jobs`;
@@ -286,6 +288,12 @@ const ProcessorApiAxiosParamCreator = function (configuration) {
286
288
  if (project !== undefined) {
287
289
  localVarQueryParameter['project'] = project;
288
290
  }
291
+ if (pageToken !== undefined) {
292
+ localVarQueryParameter['pageToken'] = pageToken;
293
+ }
294
+ if (pageSize !== undefined) {
295
+ localVarQueryParameter['pageSize'] = pageSize;
296
+ }
289
297
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
290
298
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
291
299
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -359,13 +367,15 @@ const ProcessorApiFp = function (configuration) {
359
367
  * List your processor jobs
360
368
  * @summary List jobs
361
369
  * @param {string} project Projects unique identifier
370
+ * @param {number} [pageToken] Page reference token
371
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
362
372
  * @param {*} [options] Override http request option.
363
373
  * @throws {RequiredError}
364
374
  */
365
- listJobs(project, options) {
375
+ listJobs(project, pageToken, pageSize, options) {
366
376
  return __awaiter(this, void 0, void 0, function* () {
367
377
  var _a, _b, _c;
368
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobs(project, options);
378
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobs(project, pageToken, pageSize, options);
369
379
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
370
380
  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
381
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -384,45 +394,42 @@ const ProcessorApiFactory = function (configuration, basePath, axios) {
384
394
  /**
385
395
  * Create a new processor job
386
396
  * @summary Create job
387
- * @param {string} project Projects unique identifier
388
- * @param {CreateJobRequest} createJobRequest Create a new job
397
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
389
398
  * @param {*} [options] Override http request option.
390
399
  * @throws {RequiredError}
391
400
  */
392
- createJob(project, createJobRequest, options) {
393
- return localVarFp.createJob(project, createJobRequest, options).then((request) => request(axios, basePath));
401
+ createJob(requestParameters, options) {
402
+ return localVarFp.createJob(requestParameters.project, requestParameters.createJobRequest, options).then((request) => request(axios, basePath));
394
403
  },
395
404
  /**
396
405
  * Delete a processor job
397
406
  * @summary Delete job
398
- * @param {string} job Jobs unique identifier
399
- * @param {string} project Projects unique identifier
407
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
400
408
  * @param {*} [options] Override http request option.
401
409
  * @throws {RequiredError}
402
410
  */
403
- deleteJob(job, project, options) {
404
- return localVarFp.deleteJob(job, project, options).then((request) => request(axios, basePath));
411
+ deleteJob(requestParameters, options) {
412
+ return localVarFp.deleteJob(requestParameters.job, requestParameters.project, options).then((request) => request(axios, basePath));
405
413
  },
406
414
  /**
407
415
  * Get a job
408
416
  * @summary Get job
409
- * @param {string} job Jobs unique identifier
410
- * @param {string} project Projects unique identifier
417
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
411
418
  * @param {*} [options] Override http request option.
412
419
  * @throws {RequiredError}
413
420
  */
414
- getJob(job, project, options) {
415
- return localVarFp.getJob(job, project, options).then((request) => request(axios, basePath));
421
+ getJob(requestParameters, options) {
422
+ return localVarFp.getJob(requestParameters.job, requestParameters.project, options).then((request) => request(axios, basePath));
416
423
  },
417
424
  /**
418
425
  * List your processor jobs
419
426
  * @summary List jobs
420
- * @param {string} project Projects unique identifier
427
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
421
428
  * @param {*} [options] Override http request option.
422
429
  * @throws {RequiredError}
423
430
  */
424
- listJobs(project, options) {
425
- return localVarFp.listJobs(project, options).then((request) => request(axios, basePath));
431
+ listJobs(requestParameters, options) {
432
+ return localVarFp.listJobs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
426
433
  },
427
434
  };
428
435
  };
@@ -437,49 +444,46 @@ class ProcessorApi extends base_1.BaseAPI {
437
444
  /**
438
445
  * Create a new processor job
439
446
  * @summary Create job
440
- * @param {string} project Projects unique identifier
441
- * @param {CreateJobRequest} createJobRequest Create a new job
447
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
442
448
  * @param {*} [options] Override http request option.
443
449
  * @throws {RequiredError}
444
450
  * @memberof ProcessorApi
445
451
  */
446
- createJob(project, createJobRequest, options) {
447
- return (0, exports.ProcessorApiFp)(this.configuration).createJob(project, createJobRequest, options).then((request) => request(this.axios, this.basePath));
452
+ createJob(requestParameters, options) {
453
+ return (0, exports.ProcessorApiFp)(this.configuration).createJob(requestParameters.project, requestParameters.createJobRequest, options).then((request) => request(this.axios, this.basePath));
448
454
  }
449
455
  /**
450
456
  * Delete a processor job
451
457
  * @summary Delete job
452
- * @param {string} job Jobs unique identifier
453
- * @param {string} project Projects unique identifier
458
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
454
459
  * @param {*} [options] Override http request option.
455
460
  * @throws {RequiredError}
456
461
  * @memberof ProcessorApi
457
462
  */
458
- deleteJob(job, project, options) {
459
- return (0, exports.ProcessorApiFp)(this.configuration).deleteJob(job, project, options).then((request) => request(this.axios, this.basePath));
463
+ deleteJob(requestParameters, options) {
464
+ return (0, exports.ProcessorApiFp)(this.configuration).deleteJob(requestParameters.job, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
460
465
  }
461
466
  /**
462
467
  * Get a job
463
468
  * @summary Get job
464
- * @param {string} job Jobs unique identifier
465
- * @param {string} project Projects unique identifier
469
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
466
470
  * @param {*} [options] Override http request option.
467
471
  * @throws {RequiredError}
468
472
  * @memberof ProcessorApi
469
473
  */
470
- getJob(job, project, options) {
471
- return (0, exports.ProcessorApiFp)(this.configuration).getJob(job, project, options).then((request) => request(this.axios, this.basePath));
474
+ getJob(requestParameters, options) {
475
+ return (0, exports.ProcessorApiFp)(this.configuration).getJob(requestParameters.job, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
472
476
  }
473
477
  /**
474
478
  * List your processor jobs
475
479
  * @summary List jobs
476
- * @param {string} project Projects unique identifier
480
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
477
481
  * @param {*} [options] Override http request option.
478
482
  * @throws {RequiredError}
479
483
  * @memberof ProcessorApi
480
484
  */
481
- listJobs(project, options) {
482
- return (0, exports.ProcessorApiFp)(this.configuration).listJobs(project, options).then((request) => request(this.axios, this.basePath));
485
+ listJobs(requestParameters, options) {
486
+ return (0, exports.ProcessorApiFp)(this.configuration).listJobs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
483
487
  }
484
488
  }
485
489
  exports.ProcessorApi = ProcessorApi;
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * File Processor API
3
3
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * File Processor API
6
6
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * File Processor API
3
3
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * File Processor API
6
6
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * File Processor API
3
3
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * File Processor API
6
6
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 0.1.1
8
+ * The version of the OpenAPI document: 0.2.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * File Processor API
3
3
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -193,6 +193,12 @@ export interface ListJobs200Response {
193
193
  * @memberof ListJobs200Response
194
194
  */
195
195
  'jobs': Array<Job>;
196
+ /**
197
+ *
198
+ * @type {number}
199
+ * @memberof ListJobs200Response
200
+ */
201
+ 'nextPageToken': number;
196
202
  }
197
203
  /**
198
204
  * HealthApi - axios parameter creator
@@ -231,7 +237,7 @@ export declare const HealthApiFactory: (configuration?: Configuration, basePath?
231
237
  * @param {*} [options] Override http request option.
232
238
  * @throws {RequiredError}
233
239
  */
234
- getHealth(options?: any): AxiosPromise<GetHealth200Response>;
240
+ getHealth(options?: RawAxiosRequestConfig): AxiosPromise<GetHealth200Response>;
235
241
  };
236
242
  /**
237
243
  * HealthApi - object-oriented interface
@@ -285,10 +291,12 @@ export declare const ProcessorApiAxiosParamCreator: (configuration?: Configurati
285
291
  * List your processor jobs
286
292
  * @summary List jobs
287
293
  * @param {string} project Projects unique identifier
294
+ * @param {number} [pageToken] Page reference token
295
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
288
296
  * @param {*} [options] Override http request option.
289
297
  * @throws {RequiredError}
290
298
  */
291
- listJobs: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
299
+ listJobs: (project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
292
300
  };
293
301
  /**
294
302
  * ProcessorApi - functional programming interface
@@ -326,10 +334,12 @@ export declare const ProcessorApiFp: (configuration?: Configuration) => {
326
334
  * List your processor jobs
327
335
  * @summary List jobs
328
336
  * @param {string} project Projects unique identifier
337
+ * @param {number} [pageToken] Page reference token
338
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
329
339
  * @param {*} [options] Override http request option.
330
340
  * @throws {RequiredError}
331
341
  */
332
- listJobs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJobs200Response>>;
342
+ listJobs(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJobs200Response>>;
333
343
  };
334
344
  /**
335
345
  * ProcessorApi - factory interface
@@ -339,39 +349,118 @@ export declare const ProcessorApiFactory: (configuration?: Configuration, basePa
339
349
  /**
340
350
  * Create a new processor job
341
351
  * @summary Create job
342
- * @param {string} project Projects unique identifier
343
- * @param {CreateJobRequest} createJobRequest Create a new job
352
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
344
353
  * @param {*} [options] Override http request option.
345
354
  * @throws {RequiredError}
346
355
  */
347
- createJob(project: string, createJobRequest: CreateJobRequest, options?: any): AxiosPromise<Job>;
356
+ createJob(requestParameters: ProcessorApiCreateJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<Job>;
348
357
  /**
349
358
  * Delete a processor job
350
359
  * @summary Delete job
351
- * @param {string} job Jobs unique identifier
352
- * @param {string} project Projects unique identifier
360
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
353
361
  * @param {*} [options] Override http request option.
354
362
  * @throws {RequiredError}
355
363
  */
356
- deleteJob(job: string, project: string, options?: any): AxiosPromise<void>;
364
+ deleteJob(requestParameters: ProcessorApiDeleteJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
357
365
  /**
358
366
  * Get a job
359
367
  * @summary Get job
360
- * @param {string} job Jobs unique identifier
361
- * @param {string} project Projects unique identifier
368
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
362
369
  * @param {*} [options] Override http request option.
363
370
  * @throws {RequiredError}
364
371
  */
365
- getJob(job: string, project: string, options?: any): AxiosPromise<Job>;
372
+ getJob(requestParameters: ProcessorApiGetJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<Job>;
366
373
  /**
367
374
  * List your processor jobs
368
375
  * @summary List jobs
369
- * @param {string} project Projects unique identifier
376
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
370
377
  * @param {*} [options] Override http request option.
371
378
  * @throws {RequiredError}
372
379
  */
373
- listJobs(project: string, options?: any): AxiosPromise<ListJobs200Response>;
380
+ listJobs(requestParameters: ProcessorApiListJobsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListJobs200Response>;
374
381
  };
382
+ /**
383
+ * Request parameters for createJob operation in ProcessorApi.
384
+ * @export
385
+ * @interface ProcessorApiCreateJobRequest
386
+ */
387
+ export interface ProcessorApiCreateJobRequest {
388
+ /**
389
+ * Projects unique identifier
390
+ * @type {string}
391
+ * @memberof ProcessorApiCreateJob
392
+ */
393
+ readonly project: string;
394
+ /**
395
+ * Create a new job
396
+ * @type {CreateJobRequest}
397
+ * @memberof ProcessorApiCreateJob
398
+ */
399
+ readonly createJobRequest: CreateJobRequest;
400
+ }
401
+ /**
402
+ * Request parameters for deleteJob operation in ProcessorApi.
403
+ * @export
404
+ * @interface ProcessorApiDeleteJobRequest
405
+ */
406
+ export interface ProcessorApiDeleteJobRequest {
407
+ /**
408
+ * Jobs unique identifier
409
+ * @type {string}
410
+ * @memberof ProcessorApiDeleteJob
411
+ */
412
+ readonly job: string;
413
+ /**
414
+ * Projects unique identifier
415
+ * @type {string}
416
+ * @memberof ProcessorApiDeleteJob
417
+ */
418
+ readonly project: string;
419
+ }
420
+ /**
421
+ * Request parameters for getJob operation in ProcessorApi.
422
+ * @export
423
+ * @interface ProcessorApiGetJobRequest
424
+ */
425
+ export interface ProcessorApiGetJobRequest {
426
+ /**
427
+ * Jobs unique identifier
428
+ * @type {string}
429
+ * @memberof ProcessorApiGetJob
430
+ */
431
+ readonly job: string;
432
+ /**
433
+ * Projects unique identifier
434
+ * @type {string}
435
+ * @memberof ProcessorApiGetJob
436
+ */
437
+ readonly project: string;
438
+ }
439
+ /**
440
+ * Request parameters for listJobs operation in ProcessorApi.
441
+ * @export
442
+ * @interface ProcessorApiListJobsRequest
443
+ */
444
+ export interface ProcessorApiListJobsRequest {
445
+ /**
446
+ * Projects unique identifier
447
+ * @type {string}
448
+ * @memberof ProcessorApiListJobs
449
+ */
450
+ readonly project: string;
451
+ /**
452
+ * Page reference token
453
+ * @type {number}
454
+ * @memberof ProcessorApiListJobs
455
+ */
456
+ readonly pageToken?: number;
457
+ /**
458
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
459
+ * @type {number}
460
+ * @memberof ProcessorApiListJobs
461
+ */
462
+ readonly pageSize?: number;
463
+ }
375
464
  /**
376
465
  * ProcessorApi - object-oriented interface
377
466
  * @export
@@ -382,40 +471,37 @@ export declare class ProcessorApi extends BaseAPI {
382
471
  /**
383
472
  * Create a new processor job
384
473
  * @summary Create job
385
- * @param {string} project Projects unique identifier
386
- * @param {CreateJobRequest} createJobRequest Create a new job
474
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
387
475
  * @param {*} [options] Override http request option.
388
476
  * @throws {RequiredError}
389
477
  * @memberof ProcessorApi
390
478
  */
391
- createJob(project: string, createJobRequest: CreateJobRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
479
+ createJob(requestParameters: ProcessorApiCreateJobRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
392
480
  /**
393
481
  * Delete a processor job
394
482
  * @summary Delete job
395
- * @param {string} job Jobs unique identifier
396
- * @param {string} project Projects unique identifier
483
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
397
484
  * @param {*} [options] Override http request option.
398
485
  * @throws {RequiredError}
399
486
  * @memberof ProcessorApi
400
487
  */
401
- deleteJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
488
+ deleteJob(requestParameters: ProcessorApiDeleteJobRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
402
489
  /**
403
490
  * Get a job
404
491
  * @summary Get job
405
- * @param {string} job Jobs unique identifier
406
- * @param {string} project Projects unique identifier
492
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
407
493
  * @param {*} [options] Override http request option.
408
494
  * @throws {RequiredError}
409
495
  * @memberof ProcessorApi
410
496
  */
411
- getJob(job: string, project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
497
+ getJob(requestParameters: ProcessorApiGetJobRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
412
498
  /**
413
499
  * List your processor jobs
414
500
  * @summary List jobs
415
- * @param {string} project Projects unique identifier
501
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
416
502
  * @param {*} [options] Override http request option.
417
503
  * @throws {RequiredError}
418
504
  * @memberof ProcessorApi
419
505
  */
420
- listJobs(project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListJobs200Response, any>>;
506
+ listJobs(requestParameters: ProcessorApiListJobsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListJobs200Response, any>>;
421
507
  }
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * File Processor API
5
5
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 0.1.1
7
+ * The version of the OpenAPI document: 0.2.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -255,10 +255,12 @@ export const ProcessorApiAxiosParamCreator = function (configuration) {
255
255
  * List your processor jobs
256
256
  * @summary List jobs
257
257
  * @param {string} project Projects unique identifier
258
+ * @param {number} [pageToken] Page reference token
259
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
258
260
  * @param {*} [options] Override http request option.
259
261
  * @throws {RequiredError}
260
262
  */
261
- listJobs: (project_4, ...args_4) => __awaiter(this, [project_4, ...args_4], void 0, function* (project, options = {}) {
263
+ listJobs: (project_4, pageToken_1, pageSize_1, ...args_4) => __awaiter(this, [project_4, pageToken_1, pageSize_1, ...args_4], void 0, function* (project, pageToken, pageSize, options = {}) {
262
264
  // verify required parameter 'project' is not null or undefined
263
265
  assertParamExists('listJobs', 'project', project);
264
266
  const localVarPath = `/jobs`;
@@ -279,6 +281,12 @@ export const ProcessorApiAxiosParamCreator = function (configuration) {
279
281
  if (project !== undefined) {
280
282
  localVarQueryParameter['project'] = project;
281
283
  }
284
+ if (pageToken !== undefined) {
285
+ localVarQueryParameter['pageToken'] = pageToken;
286
+ }
287
+ if (pageSize !== undefined) {
288
+ localVarQueryParameter['pageSize'] = pageSize;
289
+ }
282
290
  setSearchParams(localVarUrlObj, localVarQueryParameter);
283
291
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
284
292
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -351,13 +359,15 @@ export const ProcessorApiFp = function (configuration) {
351
359
  * List your processor jobs
352
360
  * @summary List jobs
353
361
  * @param {string} project Projects unique identifier
362
+ * @param {number} [pageToken] Page reference token
363
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
354
364
  * @param {*} [options] Override http request option.
355
365
  * @throws {RequiredError}
356
366
  */
357
- listJobs(project, options) {
367
+ listJobs(project, pageToken, pageSize, options) {
358
368
  return __awaiter(this, void 0, void 0, function* () {
359
369
  var _a, _b, _c;
360
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobs(project, options);
370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobs(project, pageToken, pageSize, options);
361
371
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
362
372
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProcessorApi.listJobs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
363
373
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -375,45 +385,42 @@ export const ProcessorApiFactory = function (configuration, basePath, axios) {
375
385
  /**
376
386
  * Create a new processor job
377
387
  * @summary Create job
378
- * @param {string} project Projects unique identifier
379
- * @param {CreateJobRequest} createJobRequest Create a new job
388
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
380
389
  * @param {*} [options] Override http request option.
381
390
  * @throws {RequiredError}
382
391
  */
383
- createJob(project, createJobRequest, options) {
384
- return localVarFp.createJob(project, createJobRequest, options).then((request) => request(axios, basePath));
392
+ createJob(requestParameters, options) {
393
+ return localVarFp.createJob(requestParameters.project, requestParameters.createJobRequest, options).then((request) => request(axios, basePath));
385
394
  },
386
395
  /**
387
396
  * Delete a processor job
388
397
  * @summary Delete job
389
- * @param {string} job Jobs unique identifier
390
- * @param {string} project Projects unique identifier
398
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
391
399
  * @param {*} [options] Override http request option.
392
400
  * @throws {RequiredError}
393
401
  */
394
- deleteJob(job, project, options) {
395
- return localVarFp.deleteJob(job, project, options).then((request) => request(axios, basePath));
402
+ deleteJob(requestParameters, options) {
403
+ return localVarFp.deleteJob(requestParameters.job, requestParameters.project, options).then((request) => request(axios, basePath));
396
404
  },
397
405
  /**
398
406
  * Get a job
399
407
  * @summary Get job
400
- * @param {string} job Jobs unique identifier
401
- * @param {string} project Projects unique identifier
408
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
402
409
  * @param {*} [options] Override http request option.
403
410
  * @throws {RequiredError}
404
411
  */
405
- getJob(job, project, options) {
406
- return localVarFp.getJob(job, project, options).then((request) => request(axios, basePath));
412
+ getJob(requestParameters, options) {
413
+ return localVarFp.getJob(requestParameters.job, requestParameters.project, options).then((request) => request(axios, basePath));
407
414
  },
408
415
  /**
409
416
  * List your processor jobs
410
417
  * @summary List jobs
411
- * @param {string} project Projects unique identifier
418
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
412
419
  * @param {*} [options] Override http request option.
413
420
  * @throws {RequiredError}
414
421
  */
415
- listJobs(project, options) {
416
- return localVarFp.listJobs(project, options).then((request) => request(axios, basePath));
422
+ listJobs(requestParameters, options) {
423
+ return localVarFp.listJobs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
417
424
  },
418
425
  };
419
426
  };
@@ -427,48 +434,45 @@ export class ProcessorApi extends BaseAPI {
427
434
  /**
428
435
  * Create a new processor job
429
436
  * @summary Create job
430
- * @param {string} project Projects unique identifier
431
- * @param {CreateJobRequest} createJobRequest Create a new job
437
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
432
438
  * @param {*} [options] Override http request option.
433
439
  * @throws {RequiredError}
434
440
  * @memberof ProcessorApi
435
441
  */
436
- createJob(project, createJobRequest, options) {
437
- return ProcessorApiFp(this.configuration).createJob(project, createJobRequest, options).then((request) => request(this.axios, this.basePath));
442
+ createJob(requestParameters, options) {
443
+ return ProcessorApiFp(this.configuration).createJob(requestParameters.project, requestParameters.createJobRequest, options).then((request) => request(this.axios, this.basePath));
438
444
  }
439
445
  /**
440
446
  * Delete a processor job
441
447
  * @summary Delete job
442
- * @param {string} job Jobs unique identifier
443
- * @param {string} project Projects unique identifier
448
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
444
449
  * @param {*} [options] Override http request option.
445
450
  * @throws {RequiredError}
446
451
  * @memberof ProcessorApi
447
452
  */
448
- deleteJob(job, project, options) {
449
- return ProcessorApiFp(this.configuration).deleteJob(job, project, options).then((request) => request(this.axios, this.basePath));
453
+ deleteJob(requestParameters, options) {
454
+ return ProcessorApiFp(this.configuration).deleteJob(requestParameters.job, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
450
455
  }
451
456
  /**
452
457
  * Get a job
453
458
  * @summary Get job
454
- * @param {string} job Jobs unique identifier
455
- * @param {string} project Projects unique identifier
459
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
456
460
  * @param {*} [options] Override http request option.
457
461
  * @throws {RequiredError}
458
462
  * @memberof ProcessorApi
459
463
  */
460
- getJob(job, project, options) {
461
- return ProcessorApiFp(this.configuration).getJob(job, project, options).then((request) => request(this.axios, this.basePath));
464
+ getJob(requestParameters, options) {
465
+ return ProcessorApiFp(this.configuration).getJob(requestParameters.job, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
462
466
  }
463
467
  /**
464
468
  * List your processor jobs
465
469
  * @summary List jobs
466
- * @param {string} project Projects unique identifier
470
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
467
471
  * @param {*} [options] Override http request option.
468
472
  * @throws {RequiredError}
469
473
  * @memberof ProcessorApi
470
474
  */
471
- listJobs(project, options) {
472
- return ProcessorApiFp(this.configuration).listJobs(project, options).then((request) => request(this.axios, this.basePath));
475
+ listJobs(requestParameters, options) {
476
+ return ProcessorApiFp(this.configuration).listJobs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
473
477
  }
474
478
  }
@@ -2,7 +2,7 @@
2
2
  * File Processor API
3
3
  * RIP file processor For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 0.1.1
5
+ * The version of the OpenAPI document: 0.2.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).