@teemill/file-processor 0.1.0 → 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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/file-processor@0.1.0
1
+ ## @teemill/file-processor@0.2.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/file-processor@0.1.0 --save
39
+ npm install @teemill/file-processor@0.2.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts 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.0
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).
@@ -42,6 +42,37 @@ export interface ApiError {
42
42
  */
43
43
  'message': string;
44
44
  }
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface CreateJobRequest
49
+ */
50
+ export interface CreateJobRequest {
51
+ /**
52
+ *
53
+ * @type {JobInput}
54
+ * @memberof CreateJobRequest
55
+ */
56
+ 'input': JobInput;
57
+ /**
58
+ *
59
+ * @type {JobOutput}
60
+ * @memberof CreateJobRequest
61
+ */
62
+ 'output': JobOutput;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof CreateJobRequest
67
+ */
68
+ 'pipeline': string;
69
+ /**
70
+ *
71
+ * @type {object}
72
+ * @memberof CreateJobRequest
73
+ */
74
+ 'configuration': object;
75
+ }
45
76
  /**
46
77
  *
47
78
  * @export
@@ -172,6 +203,12 @@ export interface ListJobs200Response {
172
203
  * @memberof ListJobs200Response
173
204
  */
174
205
  'jobs': Array<Job>;
206
+ /**
207
+ *
208
+ * @type {number}
209
+ * @memberof ListJobs200Response
210
+ */
211
+ 'nextPageToken': number;
175
212
  }
176
213
 
177
214
  /**
@@ -255,7 +292,7 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
255
292
  * @param {*} [options] Override http request option.
256
293
  * @throws {RequiredError}
257
294
  */
258
- getHealth(options?: any): AxiosPromise<GetHealth200Response> {
295
+ getHealth(options?: RawAxiosRequestConfig): AxiosPromise<GetHealth200Response> {
259
296
  return localVarFp.getHealth(options).then((request) => request(axios, basePath));
260
297
  },
261
298
  };
@@ -292,15 +329,15 @@ export const ProcessorApiAxiosParamCreator = function (configuration?: Configura
292
329
  * Create a new processor job
293
330
  * @summary Create job
294
331
  * @param {string} project Projects unique identifier
295
- * @param {Job} job Create a new job
332
+ * @param {CreateJobRequest} createJobRequest Create a new job
296
333
  * @param {*} [options] Override http request option.
297
334
  * @throws {RequiredError}
298
335
  */
299
- createJob: async (project: string, job: Job, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
336
+ createJob: async (project: string, createJobRequest: CreateJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
300
337
  // verify required parameter 'project' is not null or undefined
301
338
  assertParamExists('createJob', 'project', project)
302
- // verify required parameter 'job' is not null or undefined
303
- assertParamExists('createJob', 'job', job)
339
+ // verify required parameter 'createJobRequest' is not null or undefined
340
+ assertParamExists('createJob', 'createJobRequest', createJobRequest)
304
341
  const localVarPath = `/jobs`;
305
342
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
343
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -331,7 +368,7 @@ export const ProcessorApiAxiosParamCreator = function (configuration?: Configura
331
368
  setSearchParams(localVarUrlObj, localVarQueryParameter);
332
369
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
333
370
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
334
- localVarRequestOptions.data = serializeDataIfNeeded(job, localVarRequestOptions, configuration)
371
+ localVarRequestOptions.data = serializeDataIfNeeded(createJobRequest, localVarRequestOptions, configuration)
335
372
 
336
373
  return {
337
374
  url: toPathString(localVarUrlObj),
@@ -438,10 +475,12 @@ export const ProcessorApiAxiosParamCreator = function (configuration?: Configura
438
475
  * List your processor jobs
439
476
  * @summary List jobs
440
477
  * @param {string} project Projects unique identifier
478
+ * @param {number} [pageToken] Page reference token
479
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
441
480
  * @param {*} [options] Override http request option.
442
481
  * @throws {RequiredError}
443
482
  */
444
- listJobs: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
483
+ listJobs: async (project: string, pageToken?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
445
484
  // verify required parameter 'project' is not null or undefined
446
485
  assertParamExists('listJobs', 'project', project)
447
486
  const localVarPath = `/jobs`;
@@ -467,6 +506,14 @@ export const ProcessorApiAxiosParamCreator = function (configuration?: Configura
467
506
  localVarQueryParameter['project'] = project;
468
507
  }
469
508
 
509
+ if (pageToken !== undefined) {
510
+ localVarQueryParameter['pageToken'] = pageToken;
511
+ }
512
+
513
+ if (pageSize !== undefined) {
514
+ localVarQueryParameter['pageSize'] = pageSize;
515
+ }
516
+
470
517
 
471
518
 
472
519
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -492,12 +539,12 @@ export const ProcessorApiFp = function(configuration?: Configuration) {
492
539
  * Create a new processor job
493
540
  * @summary Create job
494
541
  * @param {string} project Projects unique identifier
495
- * @param {Job} job Create a new job
542
+ * @param {CreateJobRequest} createJobRequest Create a new job
496
543
  * @param {*} [options] Override http request option.
497
544
  * @throws {RequiredError}
498
545
  */
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);
546
+ async createJob(project: string, createJobRequest: CreateJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>> {
547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createJob(project, createJobRequest, options);
501
548
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
502
549
  const localVarOperationServerBasePath = operationServerMap['ProcessorApi.createJob']?.[localVarOperationServerIndex]?.url;
503
550
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -534,11 +581,13 @@ export const ProcessorApiFp = function(configuration?: Configuration) {
534
581
  * List your processor jobs
535
582
  * @summary List jobs
536
583
  * @param {string} project Projects unique identifier
584
+ * @param {number} [pageToken] Page reference token
585
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
537
586
  * @param {*} [options] Override http request option.
538
587
  * @throws {RequiredError}
539
588
  */
540
- async listJobs(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJobs200Response>> {
541
- const localVarAxiosArgs = await localVarAxiosParamCreator.listJobs(project, options);
589
+ async listJobs(project: string, pageToken?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListJobs200Response>> {
590
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listJobs(project, pageToken, pageSize, options);
542
591
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
543
592
  const localVarOperationServerBasePath = operationServerMap['ProcessorApi.listJobs']?.[localVarOperationServerIndex]?.url;
544
593
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -556,49 +605,137 @@ export const ProcessorApiFactory = function (configuration?: Configuration, base
556
605
  /**
557
606
  * Create a new processor job
558
607
  * @summary Create job
559
- * @param {string} project Projects unique identifier
560
- * @param {Job} job Create a new job
608
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
561
609
  * @param {*} [options] Override http request option.
562
610
  * @throws {RequiredError}
563
611
  */
564
- createJob(project: string, job: Job, options?: any): AxiosPromise<Job> {
565
- return localVarFp.createJob(project, job, options).then((request) => request(axios, basePath));
612
+ createJob(requestParameters: ProcessorApiCreateJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<Job> {
613
+ return localVarFp.createJob(requestParameters.project, requestParameters.createJobRequest, options).then((request) => request(axios, basePath));
566
614
  },
567
615
  /**
568
616
  * Delete a processor job
569
617
  * @summary Delete job
570
- * @param {string} job Jobs unique identifier
571
- * @param {string} project Projects unique identifier
618
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
572
619
  * @param {*} [options] Override http request option.
573
620
  * @throws {RequiredError}
574
621
  */
575
- deleteJob(job: string, project: string, options?: any): AxiosPromise<void> {
576
- return localVarFp.deleteJob(job, project, options).then((request) => request(axios, basePath));
622
+ deleteJob(requestParameters: ProcessorApiDeleteJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
623
+ return localVarFp.deleteJob(requestParameters.job, requestParameters.project, options).then((request) => request(axios, basePath));
577
624
  },
578
625
  /**
579
626
  * Get a job
580
627
  * @summary Get job
581
- * @param {string} job Jobs unique identifier
582
- * @param {string} project Projects unique identifier
628
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
583
629
  * @param {*} [options] Override http request option.
584
630
  * @throws {RequiredError}
585
631
  */
586
- getJob(job: string, project: string, options?: any): AxiosPromise<Job> {
587
- return localVarFp.getJob(job, project, options).then((request) => request(axios, basePath));
632
+ getJob(requestParameters: ProcessorApiGetJobRequest, options?: RawAxiosRequestConfig): AxiosPromise<Job> {
633
+ return localVarFp.getJob(requestParameters.job, requestParameters.project, options).then((request) => request(axios, basePath));
588
634
  },
589
635
  /**
590
636
  * List your processor jobs
591
637
  * @summary List jobs
592
- * @param {string} project Projects unique identifier
638
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
593
639
  * @param {*} [options] Override http request option.
594
640
  * @throws {RequiredError}
595
641
  */
596
- listJobs(project: string, options?: any): AxiosPromise<ListJobs200Response> {
597
- return localVarFp.listJobs(project, options).then((request) => request(axios, basePath));
642
+ listJobs(requestParameters: ProcessorApiListJobsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListJobs200Response> {
643
+ return localVarFp.listJobs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(axios, basePath));
598
644
  },
599
645
  };
600
646
  };
601
647
 
648
+ /**
649
+ * Request parameters for createJob operation in ProcessorApi.
650
+ * @export
651
+ * @interface ProcessorApiCreateJobRequest
652
+ */
653
+ export interface ProcessorApiCreateJobRequest {
654
+ /**
655
+ * Projects unique identifier
656
+ * @type {string}
657
+ * @memberof ProcessorApiCreateJob
658
+ */
659
+ readonly project: string
660
+
661
+ /**
662
+ * Create a new job
663
+ * @type {CreateJobRequest}
664
+ * @memberof ProcessorApiCreateJob
665
+ */
666
+ readonly createJobRequest: CreateJobRequest
667
+ }
668
+
669
+ /**
670
+ * Request parameters for deleteJob operation in ProcessorApi.
671
+ * @export
672
+ * @interface ProcessorApiDeleteJobRequest
673
+ */
674
+ export interface ProcessorApiDeleteJobRequest {
675
+ /**
676
+ * Jobs unique identifier
677
+ * @type {string}
678
+ * @memberof ProcessorApiDeleteJob
679
+ */
680
+ readonly job: string
681
+
682
+ /**
683
+ * Projects unique identifier
684
+ * @type {string}
685
+ * @memberof ProcessorApiDeleteJob
686
+ */
687
+ readonly project: string
688
+ }
689
+
690
+ /**
691
+ * Request parameters for getJob operation in ProcessorApi.
692
+ * @export
693
+ * @interface ProcessorApiGetJobRequest
694
+ */
695
+ export interface ProcessorApiGetJobRequest {
696
+ /**
697
+ * Jobs unique identifier
698
+ * @type {string}
699
+ * @memberof ProcessorApiGetJob
700
+ */
701
+ readonly job: string
702
+
703
+ /**
704
+ * Projects unique identifier
705
+ * @type {string}
706
+ * @memberof ProcessorApiGetJob
707
+ */
708
+ readonly project: string
709
+ }
710
+
711
+ /**
712
+ * Request parameters for listJobs operation in ProcessorApi.
713
+ * @export
714
+ * @interface ProcessorApiListJobsRequest
715
+ */
716
+ export interface ProcessorApiListJobsRequest {
717
+ /**
718
+ * Projects unique identifier
719
+ * @type {string}
720
+ * @memberof ProcessorApiListJobs
721
+ */
722
+ readonly project: string
723
+
724
+ /**
725
+ * Page reference token
726
+ * @type {number}
727
+ * @memberof ProcessorApiListJobs
728
+ */
729
+ readonly pageToken?: number
730
+
731
+ /**
732
+ * Max page size. This is the maximum page size that will be returned, but it might be smaller.
733
+ * @type {number}
734
+ * @memberof ProcessorApiListJobs
735
+ */
736
+ readonly pageSize?: number
737
+ }
738
+
602
739
  /**
603
740
  * ProcessorApi - object-oriented interface
604
741
  * @export
@@ -609,52 +746,49 @@ export class ProcessorApi extends BaseAPI {
609
746
  /**
610
747
  * Create a new processor job
611
748
  * @summary Create job
612
- * @param {string} project Projects unique identifier
613
- * @param {Job} job Create a new job
749
+ * @param {ProcessorApiCreateJobRequest} requestParameters Request parameters.
614
750
  * @param {*} [options] Override http request option.
615
751
  * @throws {RequiredError}
616
752
  * @memberof ProcessorApi
617
753
  */
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));
754
+ public createJob(requestParameters: ProcessorApiCreateJobRequest, options?: RawAxiosRequestConfig) {
755
+ return ProcessorApiFp(this.configuration).createJob(requestParameters.project, requestParameters.createJobRequest, options).then((request) => request(this.axios, this.basePath));
620
756
  }
621
757
 
622
758
  /**
623
759
  * Delete a processor job
624
760
  * @summary Delete job
625
- * @param {string} job Jobs unique identifier
626
- * @param {string} project Projects unique identifier
761
+ * @param {ProcessorApiDeleteJobRequest} requestParameters Request parameters.
627
762
  * @param {*} [options] Override http request option.
628
763
  * @throws {RequiredError}
629
764
  * @memberof ProcessorApi
630
765
  */
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));
766
+ public deleteJob(requestParameters: ProcessorApiDeleteJobRequest, options?: RawAxiosRequestConfig) {
767
+ return ProcessorApiFp(this.configuration).deleteJob(requestParameters.job, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
633
768
  }
634
769
 
635
770
  /**
636
771
  * Get a job
637
772
  * @summary Get job
638
- * @param {string} job Jobs unique identifier
639
- * @param {string} project Projects unique identifier
773
+ * @param {ProcessorApiGetJobRequest} requestParameters Request parameters.
640
774
  * @param {*} [options] Override http request option.
641
775
  * @throws {RequiredError}
642
776
  * @memberof ProcessorApi
643
777
  */
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));
778
+ public getJob(requestParameters: ProcessorApiGetJobRequest, options?: RawAxiosRequestConfig) {
779
+ return ProcessorApiFp(this.configuration).getJob(requestParameters.job, requestParameters.project, options).then((request) => request(this.axios, this.basePath));
646
780
  }
647
781
 
648
782
  /**
649
783
  * List your processor jobs
650
784
  * @summary List jobs
651
- * @param {string} project Projects unique identifier
785
+ * @param {ProcessorApiListJobsRequest} requestParameters Request parameters.
652
786
  * @param {*} [options] Override http request option.
653
787
  * @throws {RequiredError}
654
788
  * @memberof ProcessorApi
655
789
  */
656
- public listJobs(project: string, options?: RawAxiosRequestConfig) {
657
- return ProcessorApiFp(this.configuration).listJobs(project, options).then((request) => request(this.axios, this.basePath));
790
+ public listJobs(requestParameters: ProcessorApiListJobsRequest, options?: RawAxiosRequestConfig) {
791
+ return ProcessorApiFp(this.configuration).listJobs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
658
792
  }
659
793
  }
660
794
 
package/base.ts 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.0
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).
package/common.ts 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.0
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).
package/configuration.ts 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.0
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).