@product-live/api-sdk 2.2.0-dev → 2.3.1
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/apis/DataFactoryFileApi.ts +38 -35
- package/apis/JobApi.ts +76 -62
- package/apis/JobExecutionApi.ts +78 -28
- package/apis/TaskApi.ts +92 -78
- package/apis/TaskExecutionApi.ts +32 -32
- package/apis/VariableApi.ts +160 -19
- package/dist/apis/DataFactoryFileApi.d.ts +20 -0
- package/dist/apis/DataFactoryFileApi.js +122 -0
- package/dist/apis/DataFactoryFileApi.js.map +1 -0
- package/dist/apis/JobApi.d.ts +32 -0
- package/dist/apis/JobApi.js +191 -0
- package/dist/apis/JobApi.js.map +1 -0
- package/dist/apis/JobExecutionApi.d.ts +20 -0
- package/dist/apis/JobExecutionApi.js +107 -0
- package/dist/apis/JobExecutionApi.js.map +1 -0
- package/dist/apis/TaskApi.d.ts +36 -0
- package/dist/apis/TaskApi.js +196 -0
- package/dist/apis/TaskApi.js.map +1 -0
- package/dist/apis/TaskExecutionApi.d.ts +15 -0
- package/dist/apis/TaskExecutionApi.js +79 -0
- package/dist/apis/TaskExecutionApi.js.map +1 -0
- package/dist/apis/VariableApi.d.ts +26 -0
- package/dist/apis/VariableApi.js +140 -0
- package/dist/apis/VariableApi.js.map +1 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +23 -0
- package/dist/apis/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/CreateJobDto.d.ts +22 -0
- package/dist/models/CreateJobDto.js +63 -0
- package/dist/models/CreateJobDto.js.map +1 -0
- package/dist/models/CreateJobExecutionDto.d.ts +13 -0
- package/dist/models/CreateJobExecutionDto.js +44 -0
- package/dist/models/CreateJobExecutionDto.js.map +1 -0
- package/dist/models/CreateTaskDto.d.ts +12 -0
- package/dist/models/CreateTaskDto.js +48 -0
- package/dist/models/CreateTaskDto.js.map +1 -0
- package/dist/models/CreateVariableDto.d.ts +10 -0
- package/dist/models/CreateVariableDto.js +44 -0
- package/dist/models/CreateVariableDto.js.map +1 -0
- package/dist/models/FileControllerGetFiles200Response.d.ts +14 -0
- package/dist/models/FileControllerGetFiles200Response.js +43 -0
- package/dist/models/FileControllerGetFiles200Response.js.map +1 -0
- package/dist/models/FileDto.d.ts +12 -0
- package/dist/models/FileDto.js +50 -0
- package/dist/models/FileDto.js.map +1 -0
- package/dist/models/JobControllerList200Response.d.ts +14 -0
- package/dist/models/JobControllerList200Response.js +43 -0
- package/dist/models/JobControllerList200Response.js.map +1 -0
- package/dist/models/JobDto.d.ts +26 -0
- package/dist/models/JobDto.js +75 -0
- package/dist/models/JobDto.js.map +1 -0
- package/dist/models/JobDtoPeriodicityInner.d.ts +8 -0
- package/dist/models/JobDtoPeriodicityInner.js +37 -0
- package/dist/models/JobDtoPeriodicityInner.js.map +1 -0
- package/dist/models/JobDtoTasksInner.d.ts +14 -0
- package/dist/models/JobDtoTasksInner.js +45 -0
- package/dist/models/JobDtoTasksInner.js.map +1 -0
- package/dist/models/JobDtoTitleLocal.d.ts +8 -0
- package/dist/models/JobDtoTitleLocal.js +37 -0
- package/dist/models/JobDtoTitleLocal.js.map +1 -0
- package/dist/models/JobExecutionControllerGetOne400Response.d.ts +7 -0
- package/dist/models/JobExecutionControllerGetOne400Response.js +35 -0
- package/dist/models/JobExecutionControllerGetOne400Response.js.map +1 -0
- package/dist/models/JobExecutionControllerList200Response.d.ts +14 -0
- package/dist/models/JobExecutionControllerList200Response.js +43 -0
- package/dist/models/JobExecutionControllerList200Response.js.map +1 -0
- package/dist/models/JobExecutionDto.d.ts +23 -0
- package/dist/models/JobExecutionDto.js +68 -0
- package/dist/models/JobExecutionDto.js.map +1 -0
- package/dist/models/JobExecutionDtoInfo.d.ts +7 -0
- package/dist/models/JobExecutionDtoInfo.js +35 -0
- package/dist/models/JobExecutionDtoInfo.js.map +1 -0
- package/dist/models/PatchTaskExecutionDto.d.ts +11 -0
- package/dist/models/PatchTaskExecutionDto.js +41 -0
- package/dist/models/PatchTaskExecutionDto.js.map +1 -0
- package/dist/models/TaskControllerList200Response.d.ts +14 -0
- package/dist/models/TaskControllerList200Response.js +43 -0
- package/dist/models/TaskControllerList200Response.js.map +1 -0
- package/dist/models/TaskDto.d.ts +16 -0
- package/dist/models/TaskDto.js +60 -0
- package/dist/models/TaskDto.js.map +1 -0
- package/dist/models/TaskDtoInputKeysInner.d.ts +8 -0
- package/dist/models/TaskDtoInputKeysInner.js +37 -0
- package/dist/models/TaskDtoInputKeysInner.js.map +1 -0
- package/dist/models/TaskExecutionDto.d.ts +18 -0
- package/dist/models/TaskExecutionDto.js +56 -0
- package/dist/models/TaskExecutionDto.js.map +1 -0
- package/dist/models/UpdateJobDto.d.ts +23 -0
- package/dist/models/UpdateJobDto.js +66 -0
- package/dist/models/UpdateJobDto.js.map +1 -0
- package/dist/models/UpdateTaskDto.d.ts +13 -0
- package/dist/models/UpdateTaskDto.js +51 -0
- package/dist/models/UpdateTaskDto.js.map +1 -0
- package/dist/models/UpdateVariableDto.d.ts +11 -0
- package/dist/models/UpdateVariableDto.js +47 -0
- package/dist/models/UpdateVariableDto.js.map +1 -0
- package/dist/models/VariableControllerList200Response.d.ts +14 -0
- package/dist/models/VariableControllerList200Response.js +43 -0
- package/dist/models/VariableControllerList200Response.js.map +1 -0
- package/dist/models/VariableDto.d.ts +18 -0
- package/dist/models/VariableDto.js +59 -0
- package/dist/models/VariableDto.js.map +1 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +42 -0
- package/dist/models/index.js.map +1 -0
- package/dist/runtime.d.ts +154 -0
- package/dist/runtime.js +306 -0
- package/dist/runtime.js.map +1 -0
- package/models/CreateJobDto.ts +169 -0
- package/models/CreateJobExecutionDto.ts +98 -0
- package/models/CreateTaskDto.ts +109 -0
- package/models/CreateVariableDto.ts +92 -0
- package/models/FileControllerGetFiles200Response.ts +98 -0
- package/models/FileDto.ts +111 -0
- package/models/JobControllerList200Response.ts +98 -0
- package/models/JobDto.ts +50 -86
- package/models/JobDtoPeriodicityInner.ts +1 -1
- package/models/JobDtoTasksInner.ts +9 -1
- package/models/JobDtoTitleLocal.ts +1 -1
- package/models/JobExecutionControllerGetOne400Response.ts +65 -0
- package/models/JobExecutionControllerList200Response.ts +98 -0
- package/models/JobExecutionDto.ts +35 -67
- package/models/JobExecutionDtoInfo.ts +65 -0
- package/models/PatchTaskExecutionDto.ts +83 -0
- package/models/TaskControllerList200Response.ts +98 -0
- package/models/TaskDto.ts +28 -28
- package/models/TaskDtoInputKeysInner.ts +1 -1
- package/models/TaskExecutionDto.ts +129 -0
- package/models/UpdateJobDto.ts +178 -0
- package/models/UpdateTaskDto.ts +118 -0
- package/models/UpdateVariableDto.ts +101 -0
- package/models/VariableControllerList200Response.ts +98 -0
- package/models/VariableDto.ts +33 -24
- package/models/index.ts +18 -11
- package/package.json +11 -5
- package/runtime.ts +19 -1
- package/.openapi-generator-ignore +0 -23
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product-Live API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 2.1.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,23 +15,26 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
FileControllerGetFiles200Response,
|
|
19
|
+
FileDto,
|
|
20
|
+
JobExecutionControllerGetOne400Response,
|
|
20
21
|
} from '../models';
|
|
21
22
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
FileControllerGetFiles200ResponseFromJSON,
|
|
24
|
+
FileControllerGetFiles200ResponseToJSON,
|
|
25
|
+
FileDtoFromJSON,
|
|
26
|
+
FileDtoToJSON,
|
|
27
|
+
JobExecutionControllerGetOne400ResponseFromJSON,
|
|
28
|
+
JobExecutionControllerGetOne400ResponseToJSON,
|
|
26
29
|
} from '../models';
|
|
27
30
|
|
|
28
|
-
export interface
|
|
31
|
+
export interface FileControllerGetFileByIdRequest {
|
|
29
32
|
id: string;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
export interface
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
export interface FileControllerGetFilesRequest {
|
|
36
|
+
size?: number;
|
|
37
|
+
page?: number;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export interface UploadFileRequest {
|
|
@@ -44,11 +47,11 @@ export interface UploadFileRequest {
|
|
|
44
47
|
export class DataFactoryFileApi extends runtime.BaseAPI {
|
|
45
48
|
|
|
46
49
|
/**
|
|
47
|
-
* (Experimental) -
|
|
50
|
+
* (Experimental) - Get a Data Factory File by id
|
|
48
51
|
*/
|
|
49
|
-
async
|
|
52
|
+
async fileControllerGetFileByIdRaw(requestParameters: FileControllerGetFileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileDto>> {
|
|
50
53
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
51
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
54
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling fileControllerGetFileById.');
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
const queryParameters: any = {};
|
|
@@ -56,11 +59,11 @@ export class DataFactoryFileApi extends runtime.BaseAPI {
|
|
|
56
59
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
60
|
|
|
58
61
|
if (this.configuration && this.configuration.apiKey) {
|
|
59
|
-
|
|
62
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
60
63
|
}
|
|
61
64
|
|
|
62
65
|
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
-
|
|
66
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
const response = await this.request({
|
|
@@ -70,39 +73,39 @@ export class DataFactoryFileApi extends runtime.BaseAPI {
|
|
|
70
73
|
query: queryParameters,
|
|
71
74
|
}, initOverrides);
|
|
72
75
|
|
|
73
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
76
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileDtoFromJSON(jsonValue));
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
/**
|
|
77
|
-
* (Experimental) -
|
|
80
|
+
* (Experimental) - Get a Data Factory File by id
|
|
78
81
|
*/
|
|
79
|
-
async
|
|
80
|
-
const response = await this.
|
|
82
|
+
async fileControllerGetFileById(requestParameters: FileControllerGetFileByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileDto> {
|
|
83
|
+
const response = await this.fileControllerGetFileByIdRaw(requestParameters, initOverrides);
|
|
81
84
|
return await response.value();
|
|
82
85
|
}
|
|
83
86
|
|
|
84
87
|
/**
|
|
85
88
|
* (Experimental) - List files
|
|
86
89
|
*/
|
|
87
|
-
async
|
|
90
|
+
async fileControllerGetFilesRaw(requestParameters: FileControllerGetFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileControllerGetFiles200Response>> {
|
|
88
91
|
const queryParameters: any = {};
|
|
89
92
|
|
|
90
|
-
if (requestParameters.page !== undefined) {
|
|
91
|
-
queryParameters['page'] = requestParameters.page;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
93
|
if (requestParameters.size !== undefined) {
|
|
95
94
|
queryParameters['size'] = requestParameters.size;
|
|
96
95
|
}
|
|
97
96
|
|
|
97
|
+
if (requestParameters.page !== undefined) {
|
|
98
|
+
queryParameters['page'] = requestParameters.page;
|
|
99
|
+
}
|
|
100
|
+
|
|
98
101
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
99
102
|
|
|
100
103
|
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
-
|
|
104
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
102
105
|
}
|
|
103
106
|
|
|
104
107
|
if (this.configuration && this.configuration.apiKey) {
|
|
105
|
-
|
|
108
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
const response = await this.request({
|
|
@@ -112,21 +115,21 @@ export class DataFactoryFileApi extends runtime.BaseAPI {
|
|
|
112
115
|
query: queryParameters,
|
|
113
116
|
}, initOverrides);
|
|
114
117
|
|
|
115
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileControllerGetFiles200ResponseFromJSON(jsonValue));
|
|
116
119
|
}
|
|
117
120
|
|
|
118
121
|
/**
|
|
119
122
|
* (Experimental) - List files
|
|
120
123
|
*/
|
|
121
|
-
async
|
|
122
|
-
const response = await this.
|
|
124
|
+
async fileControllerGetFiles(requestParameters: FileControllerGetFilesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileControllerGetFiles200Response> {
|
|
125
|
+
const response = await this.fileControllerGetFilesRaw(requestParameters, initOverrides);
|
|
123
126
|
return await response.value();
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
/**
|
|
127
130
|
* Post a file so it can be consume by a Data Factory job
|
|
128
131
|
*/
|
|
129
|
-
async uploadFileRaw(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
132
|
+
async uploadFileRaw(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileDto>> {
|
|
130
133
|
if (requestParameters.file === null || requestParameters.file === undefined) {
|
|
131
134
|
throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling uploadFile.');
|
|
132
135
|
}
|
|
@@ -136,11 +139,11 @@ export class DataFactoryFileApi extends runtime.BaseAPI {
|
|
|
136
139
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
137
140
|
|
|
138
141
|
if (this.configuration && this.configuration.apiKey) {
|
|
139
|
-
|
|
142
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
if (this.configuration && this.configuration.apiKey) {
|
|
143
|
-
|
|
146
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
const consumes: runtime.Consume[] = [
|
|
@@ -171,13 +174,13 @@ export class DataFactoryFileApi extends runtime.BaseAPI {
|
|
|
171
174
|
body: formParams,
|
|
172
175
|
}, initOverrides);
|
|
173
176
|
|
|
174
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
177
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FileDtoFromJSON(jsonValue));
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
/**
|
|
178
181
|
* Post a file so it can be consume by a Data Factory job
|
|
179
182
|
*/
|
|
180
|
-
async uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
183
|
+
async uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileDto> {
|
|
181
184
|
const response = await this.uploadFileRaw(requestParameters, initOverrides);
|
|
182
185
|
return await response.value();
|
|
183
186
|
}
|
package/apis/JobApi.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Product-Live API
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 2.1.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,34 +15,44 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
CreateJobDto,
|
|
19
|
+
JobControllerList200Response,
|
|
19
20
|
JobDto,
|
|
21
|
+
JobExecutionControllerGetOne400Response,
|
|
22
|
+
UpdateJobDto,
|
|
20
23
|
} from '../models';
|
|
21
24
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
CreateJobDtoFromJSON,
|
|
26
|
+
CreateJobDtoToJSON,
|
|
27
|
+
JobControllerList200ResponseFromJSON,
|
|
28
|
+
JobControllerList200ResponseToJSON,
|
|
24
29
|
JobDtoFromJSON,
|
|
25
30
|
JobDtoToJSON,
|
|
31
|
+
JobExecutionControllerGetOne400ResponseFromJSON,
|
|
32
|
+
JobExecutionControllerGetOne400ResponseToJSON,
|
|
33
|
+
UpdateJobDtoFromJSON,
|
|
34
|
+
UpdateJobDtoToJSON,
|
|
26
35
|
} from '../models';
|
|
27
36
|
|
|
28
|
-
export interface
|
|
29
|
-
|
|
37
|
+
export interface JobControllerCreateRequest {
|
|
38
|
+
createJobDto: CreateJobDto;
|
|
30
39
|
}
|
|
31
40
|
|
|
32
|
-
export interface
|
|
41
|
+
export interface JobControllerGetOneRequest {
|
|
33
42
|
id: string;
|
|
34
43
|
}
|
|
35
44
|
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
export interface JobControllerListRequest {
|
|
46
|
+
size?: number;
|
|
47
|
+
page?: number;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
|
-
export interface
|
|
42
|
-
|
|
50
|
+
export interface JobControllerUpdateRequest {
|
|
51
|
+
id: string;
|
|
52
|
+
updateJobDto: UpdateJobDto;
|
|
43
53
|
}
|
|
44
54
|
|
|
45
|
-
export interface
|
|
55
|
+
export interface JobControllerUpdateJobZipRequest {
|
|
46
56
|
file: Blob;
|
|
47
57
|
id: string;
|
|
48
58
|
}
|
|
@@ -53,11 +63,11 @@ export interface UpdateJobZipRequest {
|
|
|
53
63
|
export class JobApi extends runtime.BaseAPI {
|
|
54
64
|
|
|
55
65
|
/**
|
|
56
|
-
* (Experimental) - Create
|
|
66
|
+
* (Experimental) - Create a Job
|
|
57
67
|
*/
|
|
58
|
-
async
|
|
59
|
-
if (requestParameters.
|
|
60
|
-
throw new runtime.RequiredError('
|
|
68
|
+
async jobControllerCreateRaw(requestParameters: JobControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
|
|
69
|
+
if (requestParameters.createJobDto === null || requestParameters.createJobDto === undefined) {
|
|
70
|
+
throw new runtime.RequiredError('createJobDto','Required parameter requestParameters.createJobDto was null or undefined when calling jobControllerCreate.');
|
|
61
71
|
}
|
|
62
72
|
|
|
63
73
|
const queryParameters: any = {};
|
|
@@ -67,11 +77,11 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
67
77
|
headerParameters['Content-Type'] = 'application/json';
|
|
68
78
|
|
|
69
79
|
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
-
|
|
80
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
71
81
|
}
|
|
72
82
|
|
|
73
83
|
if (this.configuration && this.configuration.apiKey) {
|
|
74
|
-
|
|
84
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
75
85
|
}
|
|
76
86
|
|
|
77
87
|
const response = await this.request({
|
|
@@ -79,26 +89,26 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
79
89
|
method: 'POST',
|
|
80
90
|
headers: headerParameters,
|
|
81
91
|
query: queryParameters,
|
|
82
|
-
body:
|
|
92
|
+
body: CreateJobDtoToJSON(requestParameters.createJobDto),
|
|
83
93
|
}, initOverrides);
|
|
84
94
|
|
|
85
95
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
/**
|
|
89
|
-
* (Experimental) - Create
|
|
99
|
+
* (Experimental) - Create a Job
|
|
90
100
|
*/
|
|
91
|
-
async
|
|
92
|
-
const response = await this.
|
|
101
|
+
async jobControllerCreate(requestParameters: JobControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
|
|
102
|
+
const response = await this.jobControllerCreateRaw(requestParameters, initOverrides);
|
|
93
103
|
return await response.value();
|
|
94
104
|
}
|
|
95
105
|
|
|
96
106
|
/**
|
|
97
|
-
* (Experimental) -
|
|
107
|
+
* (Experimental) - Get a Job by id
|
|
98
108
|
*/
|
|
99
|
-
async
|
|
109
|
+
async jobControllerGetOneRaw(requestParameters: JobControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
|
|
100
110
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
101
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
111
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling jobControllerGetOne.');
|
|
102
112
|
}
|
|
103
113
|
|
|
104
114
|
const queryParameters: any = {};
|
|
@@ -106,11 +116,11 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
106
116
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
107
117
|
|
|
108
118
|
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
-
|
|
119
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
110
120
|
}
|
|
111
121
|
|
|
112
122
|
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
-
|
|
123
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
114
124
|
}
|
|
115
125
|
|
|
116
126
|
const response = await this.request({
|
|
@@ -124,35 +134,35 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
124
134
|
}
|
|
125
135
|
|
|
126
136
|
/**
|
|
127
|
-
* (Experimental) -
|
|
137
|
+
* (Experimental) - Get a Job by id
|
|
128
138
|
*/
|
|
129
|
-
async
|
|
130
|
-
const response = await this.
|
|
139
|
+
async jobControllerGetOne(requestParameters: JobControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
|
|
140
|
+
const response = await this.jobControllerGetOneRaw(requestParameters, initOverrides);
|
|
131
141
|
return await response.value();
|
|
132
142
|
}
|
|
133
143
|
|
|
134
144
|
/**
|
|
135
|
-
* (Experimental) -
|
|
145
|
+
* (Experimental) - Get a list of Job
|
|
136
146
|
*/
|
|
137
|
-
async
|
|
147
|
+
async jobControllerListRaw(requestParameters: JobControllerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobControllerList200Response>> {
|
|
138
148
|
const queryParameters: any = {};
|
|
139
149
|
|
|
140
|
-
if (requestParameters.page !== undefined) {
|
|
141
|
-
queryParameters['page'] = requestParameters.page;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
150
|
if (requestParameters.size !== undefined) {
|
|
145
151
|
queryParameters['size'] = requestParameters.size;
|
|
146
152
|
}
|
|
147
153
|
|
|
154
|
+
if (requestParameters.page !== undefined) {
|
|
155
|
+
queryParameters['page'] = requestParameters.page;
|
|
156
|
+
}
|
|
157
|
+
|
|
148
158
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
149
159
|
|
|
150
160
|
if (this.configuration && this.configuration.apiKey) {
|
|
151
|
-
|
|
161
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
152
162
|
}
|
|
153
163
|
|
|
154
164
|
if (this.configuration && this.configuration.apiKey) {
|
|
155
|
-
|
|
165
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
156
166
|
}
|
|
157
167
|
|
|
158
168
|
const response = await this.request({
|
|
@@ -162,23 +172,27 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
162
172
|
query: queryParameters,
|
|
163
173
|
}, initOverrides);
|
|
164
174
|
|
|
165
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
175
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobControllerList200ResponseFromJSON(jsonValue));
|
|
166
176
|
}
|
|
167
177
|
|
|
168
178
|
/**
|
|
169
|
-
* (Experimental) -
|
|
179
|
+
* (Experimental) - Get a list of Job
|
|
170
180
|
*/
|
|
171
|
-
async
|
|
172
|
-
const response = await this.
|
|
181
|
+
async jobControllerList(requestParameters: JobControllerListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobControllerList200Response> {
|
|
182
|
+
const response = await this.jobControllerListRaw(requestParameters, initOverrides);
|
|
173
183
|
return await response.value();
|
|
174
184
|
}
|
|
175
185
|
|
|
176
186
|
/**
|
|
177
|
-
* (Experimental) - Update Job
|
|
187
|
+
* (Experimental) - Update a Job
|
|
178
188
|
*/
|
|
179
|
-
async
|
|
180
|
-
if (requestParameters.
|
|
181
|
-
throw new runtime.RequiredError('
|
|
189
|
+
async jobControllerUpdateRaw(requestParameters: JobControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
|
|
190
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
191
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling jobControllerUpdate.');
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (requestParameters.updateJobDto === null || requestParameters.updateJobDto === undefined) {
|
|
195
|
+
throw new runtime.RequiredError('updateJobDto','Required parameter requestParameters.updateJobDto was null or undefined when calling jobControllerUpdate.');
|
|
182
196
|
}
|
|
183
197
|
|
|
184
198
|
const queryParameters: any = {};
|
|
@@ -188,42 +202,42 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
188
202
|
headerParameters['Content-Type'] = 'application/json';
|
|
189
203
|
|
|
190
204
|
if (this.configuration && this.configuration.apiKey) {
|
|
191
|
-
|
|
205
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
192
206
|
}
|
|
193
207
|
|
|
194
208
|
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
-
|
|
209
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
const response = await this.request({
|
|
199
|
-
path: `/v1/data_factory/jobs`,
|
|
213
|
+
path: `/v1/data_factory/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
200
214
|
method: 'PUT',
|
|
201
215
|
headers: headerParameters,
|
|
202
216
|
query: queryParameters,
|
|
203
|
-
body:
|
|
217
|
+
body: UpdateJobDtoToJSON(requestParameters.updateJobDto),
|
|
204
218
|
}, initOverrides);
|
|
205
219
|
|
|
206
220
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
|
|
207
221
|
}
|
|
208
222
|
|
|
209
223
|
/**
|
|
210
|
-
* (Experimental) - Update Job
|
|
224
|
+
* (Experimental) - Update a Job
|
|
211
225
|
*/
|
|
212
|
-
async
|
|
213
|
-
const response = await this.
|
|
226
|
+
async jobControllerUpdate(requestParameters: JobControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
|
|
227
|
+
const response = await this.jobControllerUpdateRaw(requestParameters, initOverrides);
|
|
214
228
|
return await response.value();
|
|
215
229
|
}
|
|
216
230
|
|
|
217
231
|
/**
|
|
218
232
|
* (Experimental) - Upload a zip to update a job
|
|
219
233
|
*/
|
|
220
|
-
async
|
|
234
|
+
async jobControllerUpdateJobZipRaw(requestParameters: JobControllerUpdateJobZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
|
|
221
235
|
if (requestParameters.file === null || requestParameters.file === undefined) {
|
|
222
|
-
throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling
|
|
236
|
+
throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling jobControllerUpdateJobZip.');
|
|
223
237
|
}
|
|
224
238
|
|
|
225
239
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
226
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
240
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling jobControllerUpdateJobZip.');
|
|
227
241
|
}
|
|
228
242
|
|
|
229
243
|
const queryParameters: any = {};
|
|
@@ -231,11 +245,11 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
231
245
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
232
246
|
|
|
233
247
|
if (this.configuration && this.configuration.apiKey) {
|
|
234
|
-
|
|
248
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
235
249
|
}
|
|
236
250
|
|
|
237
251
|
if (this.configuration && this.configuration.apiKey) {
|
|
238
|
-
|
|
252
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
239
253
|
}
|
|
240
254
|
|
|
241
255
|
const consumes: runtime.Consume[] = [
|
|
@@ -263,7 +277,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
263
277
|
}
|
|
264
278
|
|
|
265
279
|
const response = await this.request({
|
|
266
|
-
path: `/v1/data_factory/jobs/zip`,
|
|
280
|
+
path: `/v1/data_factory/jobs/{id}/zip`,
|
|
267
281
|
method: 'PUT',
|
|
268
282
|
headers: headerParameters,
|
|
269
283
|
query: queryParameters,
|
|
@@ -276,8 +290,8 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
276
290
|
/**
|
|
277
291
|
* (Experimental) - Upload a zip to update a job
|
|
278
292
|
*/
|
|
279
|
-
async
|
|
280
|
-
const response = await this.
|
|
293
|
+
async jobControllerUpdateJobZip(requestParameters: JobControllerUpdateJobZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
|
|
294
|
+
const response = await this.jobControllerUpdateJobZipRaw(requestParameters, initOverrides);
|
|
281
295
|
return await response.value();
|
|
282
296
|
}
|
|
283
297
|
|