@product-live/api-sdk 1.87.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator-ignore +23 -0
- package/apis/DataFactoryFileApi.ts +185 -0
- package/apis/JobApi.ts +284 -0
- package/apis/JobExecutionApi.ts +123 -0
- package/apis/TaskApi.ts +299 -0
- package/apis/TaskExecutionApi.ts +128 -0
- package/apis/VariableApi.ts +85 -0
- package/apis/index.ts +8 -0
- package/index.ts +5 -0
- package/models/ExecuteJob400Response.ts +65 -0
- package/models/ExecuteJobDto.ts +97 -0
- package/models/ExecuteJobDtoInfo.ts +65 -0
- package/models/ExecuteJobDtoJob.ts +81 -0
- package/models/FileCreatedDto.ts +111 -0
- package/models/JobDto.ts +241 -0
- package/models/JobDtoPeriodicityInner.ts +73 -0
- package/models/JobDtoProject.ts +73 -0
- package/models/JobDtoTasksInner.ts +97 -0
- package/models/JobDtoTitleLocal.ts +73 -0
- package/models/JobExecutionDto.ts +202 -0
- package/models/JobExecutionDtoEventsInner.ts +89 -0
- package/models/TaskDto.ts +145 -0
- package/models/TaskDtoInputKeysInner.ts +73 -0
- package/models/TaskInstanceDto.ts +143 -0
- package/models/TaskInstanceUpdateDto.ts +107 -0
- package/models/VariableDto.ts +129 -0
- package/models/index.ts +19 -0
- package/package.json +10 -0
- package/runtime.ts +407 -0
package/apis/TaskApi.ts
ADDED
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ExecuteJob400Response,
|
|
19
|
+
TaskDto,
|
|
20
|
+
TaskInstanceDto,
|
|
21
|
+
} from '../models';
|
|
22
|
+
import {
|
|
23
|
+
ExecuteJob400ResponseFromJSON,
|
|
24
|
+
ExecuteJob400ResponseToJSON,
|
|
25
|
+
TaskDtoFromJSON,
|
|
26
|
+
TaskDtoToJSON,
|
|
27
|
+
TaskInstanceDtoFromJSON,
|
|
28
|
+
TaskInstanceDtoToJSON,
|
|
29
|
+
} from '../models';
|
|
30
|
+
|
|
31
|
+
export interface CreateTaskRequest {
|
|
32
|
+
taskDto: TaskDto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface DeleteTaskRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface GetTaskRequest {
|
|
40
|
+
id: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface GetTasksRequest {
|
|
44
|
+
page?: string;
|
|
45
|
+
size?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface PollTaskRequest {
|
|
49
|
+
id: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface UpdateTaskRequest {
|
|
53
|
+
taskDto: TaskDto;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export class TaskApi extends runtime.BaseAPI {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* (Experimental) - Create task definition
|
|
63
|
+
*/
|
|
64
|
+
async createTaskRaw(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
65
|
+
if (requestParameters.taskDto === null || requestParameters.taskDto === undefined) {
|
|
66
|
+
throw new runtime.RequiredError('taskDto','Required parameter requestParameters.taskDto was null or undefined when calling createTask.');
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const queryParameters: any = {};
|
|
70
|
+
|
|
71
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
|
+
|
|
73
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
+
|
|
75
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
76
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
80
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const response = await this.request({
|
|
84
|
+
path: `/v1/data_factory/tasks`,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: TaskDtoToJSON(requestParameters.taskDto),
|
|
89
|
+
}, initOverrides);
|
|
90
|
+
|
|
91
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* (Experimental) - Create task definition
|
|
96
|
+
*/
|
|
97
|
+
async createTask(requestParameters: CreateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
98
|
+
const response = await this.createTaskRaw(requestParameters, initOverrides);
|
|
99
|
+
return await response.value();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* (Experimental) - Delete task definition
|
|
104
|
+
*/
|
|
105
|
+
async deleteTaskRaw(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
106
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
107
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling deleteTask.');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const queryParameters: any = {};
|
|
111
|
+
|
|
112
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
113
|
+
|
|
114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
119
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const response = await this.request({
|
|
123
|
+
path: `/v1/data_factory/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
124
|
+
method: 'DELETE',
|
|
125
|
+
headers: headerParameters,
|
|
126
|
+
query: queryParameters,
|
|
127
|
+
}, initOverrides);
|
|
128
|
+
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* (Experimental) - Delete task definition
|
|
134
|
+
*/
|
|
135
|
+
async deleteTask(requestParameters: DeleteTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
136
|
+
const response = await this.deleteTaskRaw(requestParameters, initOverrides);
|
|
137
|
+
return await response.value();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* (Experimental) - Get task definition
|
|
142
|
+
*/
|
|
143
|
+
async getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
144
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
145
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getTask.');
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
153
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const response = await this.request({
|
|
161
|
+
path: `/v1/data_factory/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
162
|
+
method: 'GET',
|
|
163
|
+
headers: headerParameters,
|
|
164
|
+
query: queryParameters,
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
|
|
167
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* (Experimental) - Get task definition
|
|
172
|
+
*/
|
|
173
|
+
async getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
174
|
+
const response = await this.getTaskRaw(requestParameters, initOverrides);
|
|
175
|
+
return await response.value();
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* (Experimental) - Get task definition
|
|
180
|
+
*/
|
|
181
|
+
async getTasksRaw(requestParameters: GetTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
182
|
+
const queryParameters: any = {};
|
|
183
|
+
|
|
184
|
+
if (requestParameters.page !== undefined) {
|
|
185
|
+
queryParameters['page'] = requestParameters.page;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (requestParameters.size !== undefined) {
|
|
189
|
+
queryParameters['size'] = requestParameters.size;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
193
|
+
|
|
194
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
199
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
const response = await this.request({
|
|
203
|
+
path: `/v1/data_factory/tasks`,
|
|
204
|
+
method: 'GET',
|
|
205
|
+
headers: headerParameters,
|
|
206
|
+
query: queryParameters,
|
|
207
|
+
}, initOverrides);
|
|
208
|
+
|
|
209
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* (Experimental) - Get task definition
|
|
214
|
+
*/
|
|
215
|
+
async getTasks(requestParameters: GetTasksRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
216
|
+
const response = await this.getTasksRaw(requestParameters, initOverrides);
|
|
217
|
+
return await response.value();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* (Experimental) - Poll running task
|
|
222
|
+
*/
|
|
223
|
+
async pollTaskRaw(requestParameters: PollTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskInstanceDto>> {
|
|
224
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
225
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling pollTask.');
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const queryParameters: any = {};
|
|
229
|
+
|
|
230
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
231
|
+
|
|
232
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
237
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
const response = await this.request({
|
|
241
|
+
path: `/v1/data_factory/tasks/{id}/poll`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
242
|
+
method: 'GET',
|
|
243
|
+
headers: headerParameters,
|
|
244
|
+
query: queryParameters,
|
|
245
|
+
}, initOverrides);
|
|
246
|
+
|
|
247
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskInstanceDtoFromJSON(jsonValue));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* (Experimental) - Poll running task
|
|
252
|
+
*/
|
|
253
|
+
async pollTask(requestParameters: PollTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskInstanceDto> {
|
|
254
|
+
const response = await this.pollTaskRaw(requestParameters, initOverrides);
|
|
255
|
+
return await response.value();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* (Experimental) - Update task definition
|
|
260
|
+
*/
|
|
261
|
+
async updateTaskRaw(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
262
|
+
if (requestParameters.taskDto === null || requestParameters.taskDto === undefined) {
|
|
263
|
+
throw new runtime.RequiredError('taskDto','Required parameter requestParameters.taskDto was null or undefined when calling updateTask.');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const queryParameters: any = {};
|
|
267
|
+
|
|
268
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
269
|
+
|
|
270
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
271
|
+
|
|
272
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
273
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const response = await this.request({
|
|
281
|
+
path: `/v1/data_factory/tasks`,
|
|
282
|
+
method: 'PUT',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
body: TaskDtoToJSON(requestParameters.taskDto),
|
|
286
|
+
}, initOverrides);
|
|
287
|
+
|
|
288
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* (Experimental) - Update task definition
|
|
293
|
+
*/
|
|
294
|
+
async updateTask(requestParameters: UpdateTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
295
|
+
const response = await this.updateTaskRaw(requestParameters, initOverrides);
|
|
296
|
+
return await response.value();
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ExecuteJob400Response,
|
|
19
|
+
TaskInstanceDto,
|
|
20
|
+
TaskInstanceUpdateDto,
|
|
21
|
+
} from '../models';
|
|
22
|
+
import {
|
|
23
|
+
ExecuteJob400ResponseFromJSON,
|
|
24
|
+
ExecuteJob400ResponseToJSON,
|
|
25
|
+
TaskInstanceDtoFromJSON,
|
|
26
|
+
TaskInstanceDtoToJSON,
|
|
27
|
+
TaskInstanceUpdateDtoFromJSON,
|
|
28
|
+
TaskInstanceUpdateDtoToJSON,
|
|
29
|
+
} from '../models';
|
|
30
|
+
|
|
31
|
+
export interface GetInstanceTaskRequest {
|
|
32
|
+
id: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface UpdateInstanceTaskRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
taskInstanceUpdateDto: TaskInstanceUpdateDto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export class TaskExecutionApi extends runtime.BaseAPI {
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* (Experimental) - get running task instance
|
|
47
|
+
*/
|
|
48
|
+
async getInstanceTaskRaw(requestParameters: GetInstanceTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskInstanceDto>> {
|
|
49
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
50
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getInstanceTask.');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const queryParameters: any = {};
|
|
54
|
+
|
|
55
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
56
|
+
|
|
57
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
58
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
62
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const response = await this.request({
|
|
66
|
+
path: `/v1/data_factory/task_executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
67
|
+
method: 'GET',
|
|
68
|
+
headers: headerParameters,
|
|
69
|
+
query: queryParameters,
|
|
70
|
+
}, initOverrides);
|
|
71
|
+
|
|
72
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskInstanceDtoFromJSON(jsonValue));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* (Experimental) - get running task instance
|
|
77
|
+
*/
|
|
78
|
+
async getInstanceTask(requestParameters: GetInstanceTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskInstanceDto> {
|
|
79
|
+
const response = await this.getInstanceTaskRaw(requestParameters, initOverrides);
|
|
80
|
+
return await response.value();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* (Experimental) - Update running task instance
|
|
85
|
+
*/
|
|
86
|
+
async updateInstanceTaskRaw(requestParameters: UpdateInstanceTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskInstanceUpdateDto>> {
|
|
87
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
88
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateInstanceTask.');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (requestParameters.taskInstanceUpdateDto === null || requestParameters.taskInstanceUpdateDto === undefined) {
|
|
92
|
+
throw new runtime.RequiredError('taskInstanceUpdateDto','Required parameter requestParameters.taskInstanceUpdateDto was null or undefined when calling updateInstanceTask.');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const queryParameters: any = {};
|
|
96
|
+
|
|
97
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
98
|
+
|
|
99
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
100
|
+
|
|
101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
106
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const response = await this.request({
|
|
110
|
+
path: `/v1/data_factory/task_executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
111
|
+
method: 'PATCH',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
body: TaskInstanceUpdateDtoToJSON(requestParameters.taskInstanceUpdateDto),
|
|
115
|
+
}, initOverrides);
|
|
116
|
+
|
|
117
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskInstanceUpdateDtoFromJSON(jsonValue));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* (Experimental) - Update running task instance
|
|
122
|
+
*/
|
|
123
|
+
async updateInstanceTask(requestParameters: UpdateInstanceTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskInstanceUpdateDto> {
|
|
124
|
+
const response = await this.updateInstanceTaskRaw(requestParameters, initOverrides);
|
|
125
|
+
return await response.value();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ExecuteJob400Response,
|
|
19
|
+
VariableDto,
|
|
20
|
+
} from '../models';
|
|
21
|
+
import {
|
|
22
|
+
ExecuteJob400ResponseFromJSON,
|
|
23
|
+
ExecuteJob400ResponseToJSON,
|
|
24
|
+
VariableDtoFromJSON,
|
|
25
|
+
VariableDtoToJSON,
|
|
26
|
+
} from '../models';
|
|
27
|
+
|
|
28
|
+
export interface GetVariablesRequest {
|
|
29
|
+
jobId?: string;
|
|
30
|
+
page?: string;
|
|
31
|
+
size?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
export class VariableApi extends runtime.BaseAPI {
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* (Experimental) - Get all variable available in an account
|
|
41
|
+
*/
|
|
42
|
+
async getVariablesRaw(requestParameters: GetVariablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VariableDto>> {
|
|
43
|
+
const queryParameters: any = {};
|
|
44
|
+
|
|
45
|
+
if (requestParameters.jobId !== undefined) {
|
|
46
|
+
queryParameters['jobId'] = requestParameters.jobId;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (requestParameters.page !== undefined) {
|
|
50
|
+
queryParameters['page'] = requestParameters.page;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (requestParameters.size !== undefined) {
|
|
54
|
+
queryParameters['size'] = requestParameters.size;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
58
|
+
|
|
59
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
60
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const response = await this.request({
|
|
68
|
+
path: `/v1/data_factory/variables`,
|
|
69
|
+
method: 'GET',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VariableDtoFromJSON(jsonValue));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* (Experimental) - Get all variable available in an account
|
|
79
|
+
*/
|
|
80
|
+
async getVariables(requestParameters: GetVariablesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VariableDto> {
|
|
81
|
+
const response = await this.getVariablesRaw(requestParameters, initOverrides);
|
|
82
|
+
return await response.value();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
package/apis/index.ts
ADDED
package/index.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExecuteJob400Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ExecuteJob400Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExecuteJob400Response
|
|
26
|
+
*/
|
|
27
|
+
message?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ExecuteJob400Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfExecuteJob400Response(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ExecuteJob400ResponseFromJSON(json: any): ExecuteJob400Response {
|
|
40
|
+
return ExecuteJob400ResponseFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ExecuteJob400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecuteJob400Response {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ExecuteJob400ResponseToJSON(value?: ExecuteJob400Response | null): any {
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
return undefined;
|
|
56
|
+
}
|
|
57
|
+
if (value === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'message': value.message,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ExecuteJobDtoInfo } from './ExecuteJobDtoInfo';
|
|
17
|
+
import {
|
|
18
|
+
ExecuteJobDtoInfoFromJSON,
|
|
19
|
+
ExecuteJobDtoInfoFromJSONTyped,
|
|
20
|
+
ExecuteJobDtoInfoToJSON,
|
|
21
|
+
} from './ExecuteJobDtoInfo';
|
|
22
|
+
import type { ExecuteJobDtoJob } from './ExecuteJobDtoJob';
|
|
23
|
+
import {
|
|
24
|
+
ExecuteJobDtoJobFromJSON,
|
|
25
|
+
ExecuteJobDtoJobFromJSONTyped,
|
|
26
|
+
ExecuteJobDtoJobToJSON,
|
|
27
|
+
} from './ExecuteJobDtoJob';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface ExecuteJobDto
|
|
33
|
+
*/
|
|
34
|
+
export interface ExecuteJobDto {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ExecuteJobDtoJob}
|
|
38
|
+
* @memberof ExecuteJobDto
|
|
39
|
+
*/
|
|
40
|
+
job: ExecuteJobDtoJob;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {ExecuteJobDtoInfo}
|
|
44
|
+
* @memberof ExecuteJobDto
|
|
45
|
+
*/
|
|
46
|
+
info: ExecuteJobDtoInfo;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {{ [key: string]: any; }}
|
|
50
|
+
* @memberof ExecuteJobDto
|
|
51
|
+
*/
|
|
52
|
+
payload: { [key: string]: any; };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ExecuteJobDto interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfExecuteJobDto(value: object): boolean {
|
|
59
|
+
let isInstance = true;
|
|
60
|
+
isInstance = isInstance && "job" in value;
|
|
61
|
+
isInstance = isInstance && "info" in value;
|
|
62
|
+
isInstance = isInstance && "payload" in value;
|
|
63
|
+
|
|
64
|
+
return isInstance;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ExecuteJobDtoFromJSON(json: any): ExecuteJobDto {
|
|
68
|
+
return ExecuteJobDtoFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ExecuteJobDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecuteJobDto {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'job': ExecuteJobDtoJobFromJSON(json['job']),
|
|
78
|
+
'info': ExecuteJobDtoInfoFromJSON(json['info']),
|
|
79
|
+
'payload': json['payload'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ExecuteJobDtoToJSON(value?: ExecuteJobDto | null): any {
|
|
84
|
+
if (value === undefined) {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
if (value === null) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'job': ExecuteJobDtoJobToJSON(value.job),
|
|
93
|
+
'info': ExecuteJobDtoInfoToJSON(value.info),
|
|
94
|
+
'payload': value.payload,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|