@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
package/apis/JobExecutionApi.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,38 +15,46 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
CreateJobExecutionDto,
|
|
19
|
+
JobExecutionControllerGetOne400Response,
|
|
20
|
+
JobExecutionControllerList200Response,
|
|
20
21
|
JobExecutionDto,
|
|
21
22
|
} from '../models';
|
|
22
23
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
CreateJobExecutionDtoFromJSON,
|
|
25
|
+
CreateJobExecutionDtoToJSON,
|
|
26
|
+
JobExecutionControllerGetOne400ResponseFromJSON,
|
|
27
|
+
JobExecutionControllerGetOne400ResponseToJSON,
|
|
28
|
+
JobExecutionControllerList200ResponseFromJSON,
|
|
29
|
+
JobExecutionControllerList200ResponseToJSON,
|
|
27
30
|
JobExecutionDtoFromJSON,
|
|
28
31
|
JobExecutionDtoToJSON,
|
|
29
32
|
} from '../models';
|
|
30
33
|
|
|
31
|
-
export interface
|
|
32
|
-
|
|
34
|
+
export interface JobExecutionControllerCreateRequest {
|
|
35
|
+
createJobExecutionDto: CreateJobExecutionDto;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
export interface
|
|
38
|
+
export interface JobExecutionControllerGetOneRequest {
|
|
36
39
|
id: string;
|
|
37
40
|
}
|
|
38
41
|
|
|
42
|
+
export interface JobExecutionControllerListRequest {
|
|
43
|
+
size?: number;
|
|
44
|
+
page?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
/**
|
|
40
48
|
*
|
|
41
49
|
*/
|
|
42
50
|
export class JobExecutionApi extends runtime.BaseAPI {
|
|
43
51
|
|
|
44
52
|
/**
|
|
45
|
-
* (Experimental) -
|
|
53
|
+
* (Experimental) - Create a Job execution
|
|
46
54
|
*/
|
|
47
|
-
async
|
|
48
|
-
if (requestParameters.
|
|
49
|
-
throw new runtime.RequiredError('
|
|
55
|
+
async jobExecutionControllerCreateRaw(requestParameters: JobExecutionControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobExecutionDto>> {
|
|
56
|
+
if (requestParameters.createJobExecutionDto === null || requestParameters.createJobExecutionDto === undefined) {
|
|
57
|
+
throw new runtime.RequiredError('createJobExecutionDto','Required parameter requestParameters.createJobExecutionDto was null or undefined when calling jobExecutionControllerCreate.');
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
const queryParameters: any = {};
|
|
@@ -56,11 +64,11 @@ export class JobExecutionApi extends runtime.BaseAPI {
|
|
|
56
64
|
headerParameters['Content-Type'] = 'application/json';
|
|
57
65
|
|
|
58
66
|
if (this.configuration && this.configuration.apiKey) {
|
|
59
|
-
|
|
67
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
60
68
|
}
|
|
61
69
|
|
|
62
70
|
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
-
|
|
71
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
64
72
|
}
|
|
65
73
|
|
|
66
74
|
const response = await this.request({
|
|
@@ -68,26 +76,26 @@ export class JobExecutionApi extends runtime.BaseAPI {
|
|
|
68
76
|
method: 'POST',
|
|
69
77
|
headers: headerParameters,
|
|
70
78
|
query: queryParameters,
|
|
71
|
-
body:
|
|
79
|
+
body: CreateJobExecutionDtoToJSON(requestParameters.createJobExecutionDto),
|
|
72
80
|
}, initOverrides);
|
|
73
81
|
|
|
74
82
|
return new runtime.JSONApiResponse(response, (jsonValue) => JobExecutionDtoFromJSON(jsonValue));
|
|
75
83
|
}
|
|
76
84
|
|
|
77
85
|
/**
|
|
78
|
-
* (Experimental) -
|
|
86
|
+
* (Experimental) - Create a Job execution
|
|
79
87
|
*/
|
|
80
|
-
async
|
|
81
|
-
const response = await this.
|
|
88
|
+
async jobExecutionControllerCreate(requestParameters: JobExecutionControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobExecutionDto> {
|
|
89
|
+
const response = await this.jobExecutionControllerCreateRaw(requestParameters, initOverrides);
|
|
82
90
|
return await response.value();
|
|
83
91
|
}
|
|
84
92
|
|
|
85
93
|
/**
|
|
86
|
-
* (Experimental) -
|
|
94
|
+
* (Experimental) - Get a Job execution by id
|
|
87
95
|
*/
|
|
88
|
-
async
|
|
96
|
+
async jobExecutionControllerGetOneRaw(requestParameters: JobExecutionControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobExecutionDto>> {
|
|
89
97
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
90
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
98
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling jobExecutionControllerGetOne.');
|
|
91
99
|
}
|
|
92
100
|
|
|
93
101
|
const queryParameters: any = {};
|
|
@@ -95,11 +103,11 @@ export class JobExecutionApi extends runtime.BaseAPI {
|
|
|
95
103
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
96
104
|
|
|
97
105
|
if (this.configuration && this.configuration.apiKey) {
|
|
98
|
-
|
|
106
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
if (this.configuration && this.configuration.apiKey) {
|
|
102
|
-
|
|
110
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
103
111
|
}
|
|
104
112
|
|
|
105
113
|
const response = await this.request({
|
|
@@ -113,10 +121,52 @@ export class JobExecutionApi extends runtime.BaseAPI {
|
|
|
113
121
|
}
|
|
114
122
|
|
|
115
123
|
/**
|
|
116
|
-
* (Experimental) -
|
|
124
|
+
* (Experimental) - Get a Job execution by id
|
|
125
|
+
*/
|
|
126
|
+
async jobExecutionControllerGetOne(requestParameters: JobExecutionControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobExecutionDto> {
|
|
127
|
+
const response = await this.jobExecutionControllerGetOneRaw(requestParameters, initOverrides);
|
|
128
|
+
return await response.value();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* (Experimental) - Get a list of Job execution
|
|
133
|
+
*/
|
|
134
|
+
async jobExecutionControllerListRaw(requestParameters: JobExecutionControllerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobExecutionControllerList200Response>> {
|
|
135
|
+
const queryParameters: any = {};
|
|
136
|
+
|
|
137
|
+
if (requestParameters.size !== undefined) {
|
|
138
|
+
queryParameters['size'] = requestParameters.size;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (requestParameters.page !== undefined) {
|
|
142
|
+
queryParameters['page'] = requestParameters.page;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
146
|
+
|
|
147
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
148
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
152
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
const response = await this.request({
|
|
156
|
+
path: `/v1/data_factory/job_executions`,
|
|
157
|
+
method: 'GET',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
query: queryParameters,
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
|
|
162
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobExecutionControllerList200ResponseFromJSON(jsonValue));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* (Experimental) - Get a list of Job execution
|
|
117
167
|
*/
|
|
118
|
-
async
|
|
119
|
-
const response = await this.
|
|
168
|
+
async jobExecutionControllerList(requestParameters: JobExecutionControllerListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobExecutionControllerList200Response> {
|
|
169
|
+
const response = await this.jobExecutionControllerListRaw(requestParameters, initOverrides);
|
|
120
170
|
return await response.value();
|
|
121
171
|
}
|
|
122
172
|
|
package/apis/TaskApi.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,42 +15,52 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
CreateTaskDto,
|
|
19
|
+
JobExecutionControllerGetOne400Response,
|
|
20
|
+
TaskControllerList200Response,
|
|
19
21
|
TaskDto,
|
|
20
|
-
|
|
22
|
+
TaskExecutionDto,
|
|
23
|
+
UpdateTaskDto,
|
|
21
24
|
} from '../models';
|
|
22
25
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
CreateTaskDtoFromJSON,
|
|
27
|
+
CreateTaskDtoToJSON,
|
|
28
|
+
JobExecutionControllerGetOne400ResponseFromJSON,
|
|
29
|
+
JobExecutionControllerGetOne400ResponseToJSON,
|
|
30
|
+
TaskControllerList200ResponseFromJSON,
|
|
31
|
+
TaskControllerList200ResponseToJSON,
|
|
25
32
|
TaskDtoFromJSON,
|
|
26
33
|
TaskDtoToJSON,
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
TaskExecutionDtoFromJSON,
|
|
35
|
+
TaskExecutionDtoToJSON,
|
|
36
|
+
UpdateTaskDtoFromJSON,
|
|
37
|
+
UpdateTaskDtoToJSON,
|
|
29
38
|
} from '../models';
|
|
30
39
|
|
|
31
|
-
export interface
|
|
32
|
-
|
|
40
|
+
export interface TaskControllerCreateRequest {
|
|
41
|
+
createTaskDto: CreateTaskDto;
|
|
33
42
|
}
|
|
34
43
|
|
|
35
|
-
export interface
|
|
36
|
-
|
|
44
|
+
export interface TaskControllerDeleteRequest {
|
|
45
|
+
taskId: string;
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
export interface
|
|
48
|
+
export interface TaskControllerGetOneRequest {
|
|
40
49
|
id: string;
|
|
41
50
|
}
|
|
42
51
|
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
export interface TaskControllerListRequest {
|
|
53
|
+
size?: number;
|
|
54
|
+
page?: number;
|
|
46
55
|
}
|
|
47
56
|
|
|
48
|
-
export interface
|
|
57
|
+
export interface TaskControllerPollRequest {
|
|
49
58
|
id: string;
|
|
50
59
|
}
|
|
51
60
|
|
|
52
|
-
export interface
|
|
53
|
-
|
|
61
|
+
export interface TaskControllerUpdateRequest {
|
|
62
|
+
id: string;
|
|
63
|
+
updateTaskDto: UpdateTaskDto;
|
|
54
64
|
}
|
|
55
65
|
|
|
56
66
|
/**
|
|
@@ -59,11 +69,11 @@ export interface UpdateTaskRequest {
|
|
|
59
69
|
export class TaskApi extends runtime.BaseAPI {
|
|
60
70
|
|
|
61
71
|
/**
|
|
62
|
-
* (Experimental) - Create
|
|
72
|
+
* (Experimental) - Create a Task
|
|
63
73
|
*/
|
|
64
|
-
async
|
|
65
|
-
if (requestParameters.
|
|
66
|
-
throw new runtime.RequiredError('
|
|
74
|
+
async taskControllerCreateRaw(requestParameters: TaskControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
75
|
+
if (requestParameters.createTaskDto === null || requestParameters.createTaskDto === undefined) {
|
|
76
|
+
throw new runtime.RequiredError('createTaskDto','Required parameter requestParameters.createTaskDto was null or undefined when calling taskControllerCreate.');
|
|
67
77
|
}
|
|
68
78
|
|
|
69
79
|
const queryParameters: any = {};
|
|
@@ -73,11 +83,11 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
73
83
|
headerParameters['Content-Type'] = 'application/json';
|
|
74
84
|
|
|
75
85
|
if (this.configuration && this.configuration.apiKey) {
|
|
76
|
-
|
|
86
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
77
87
|
}
|
|
78
88
|
|
|
79
89
|
if (this.configuration && this.configuration.apiKey) {
|
|
80
|
-
|
|
90
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
81
91
|
}
|
|
82
92
|
|
|
83
93
|
const response = await this.request({
|
|
@@ -85,26 +95,26 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
85
95
|
method: 'POST',
|
|
86
96
|
headers: headerParameters,
|
|
87
97
|
query: queryParameters,
|
|
88
|
-
body:
|
|
98
|
+
body: CreateTaskDtoToJSON(requestParameters.createTaskDto),
|
|
89
99
|
}, initOverrides);
|
|
90
100
|
|
|
91
101
|
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
/**
|
|
95
|
-
* (Experimental) - Create
|
|
105
|
+
* (Experimental) - Create a Task
|
|
96
106
|
*/
|
|
97
|
-
async
|
|
98
|
-
const response = await this.
|
|
107
|
+
async taskControllerCreate(requestParameters: TaskControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
108
|
+
const response = await this.taskControllerCreateRaw(requestParameters, initOverrides);
|
|
99
109
|
return await response.value();
|
|
100
110
|
}
|
|
101
111
|
|
|
102
112
|
/**
|
|
103
|
-
* (Experimental) - Delete
|
|
113
|
+
* (Experimental) - Delete a Task by id
|
|
104
114
|
*/
|
|
105
|
-
async
|
|
106
|
-
if (requestParameters.
|
|
107
|
-
throw new runtime.RequiredError('
|
|
115
|
+
async taskControllerDeleteRaw(requestParameters: TaskControllerDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
116
|
+
if (requestParameters.taskId === null || requestParameters.taskId === undefined) {
|
|
117
|
+
throw new runtime.RequiredError('taskId','Required parameter requestParameters.taskId was null or undefined when calling taskControllerDelete.');
|
|
108
118
|
}
|
|
109
119
|
|
|
110
120
|
const queryParameters: any = {};
|
|
@@ -112,15 +122,15 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
112
122
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
113
123
|
|
|
114
124
|
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
-
|
|
125
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
if (this.configuration && this.configuration.apiKey) {
|
|
119
|
-
|
|
129
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
const response = await this.request({
|
|
123
|
-
path: `/v1/data_factory/tasks/{
|
|
133
|
+
path: `/v1/data_factory/tasks/{task_id}`.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters.taskId))),
|
|
124
134
|
method: 'DELETE',
|
|
125
135
|
headers: headerParameters,
|
|
126
136
|
query: queryParameters,
|
|
@@ -130,19 +140,19 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
130
140
|
}
|
|
131
141
|
|
|
132
142
|
/**
|
|
133
|
-
* (Experimental) - Delete
|
|
143
|
+
* (Experimental) - Delete a Task by id
|
|
134
144
|
*/
|
|
135
|
-
async
|
|
136
|
-
const response = await this.
|
|
145
|
+
async taskControllerDelete(requestParameters: TaskControllerDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
146
|
+
const response = await this.taskControllerDeleteRaw(requestParameters, initOverrides);
|
|
137
147
|
return await response.value();
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
/**
|
|
141
|
-
* (Experimental) - Get
|
|
151
|
+
* (Experimental) - Get a Task by id
|
|
142
152
|
*/
|
|
143
|
-
async
|
|
153
|
+
async taskControllerGetOneRaw(requestParameters: TaskControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
144
154
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
145
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
155
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling taskControllerGetOne.');
|
|
146
156
|
}
|
|
147
157
|
|
|
148
158
|
const queryParameters: any = {};
|
|
@@ -150,11 +160,11 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
150
160
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
161
|
|
|
152
162
|
if (this.configuration && this.configuration.apiKey) {
|
|
153
|
-
|
|
163
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
if (this.configuration && this.configuration.apiKey) {
|
|
157
|
-
|
|
167
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
158
168
|
}
|
|
159
169
|
|
|
160
170
|
const response = await this.request({
|
|
@@ -168,35 +178,35 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
168
178
|
}
|
|
169
179
|
|
|
170
180
|
/**
|
|
171
|
-
* (Experimental) - Get
|
|
181
|
+
* (Experimental) - Get a Task by id
|
|
172
182
|
*/
|
|
173
|
-
async
|
|
174
|
-
const response = await this.
|
|
183
|
+
async taskControllerGetOne(requestParameters: TaskControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
184
|
+
const response = await this.taskControllerGetOneRaw(requestParameters, initOverrides);
|
|
175
185
|
return await response.value();
|
|
176
186
|
}
|
|
177
187
|
|
|
178
188
|
/**
|
|
179
|
-
* (Experimental) - Get
|
|
189
|
+
* (Experimental) - Get a list of Task
|
|
180
190
|
*/
|
|
181
|
-
async
|
|
191
|
+
async taskControllerListRaw(requestParameters: TaskControllerListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskControllerList200Response>> {
|
|
182
192
|
const queryParameters: any = {};
|
|
183
193
|
|
|
184
|
-
if (requestParameters.page !== undefined) {
|
|
185
|
-
queryParameters['page'] = requestParameters.page;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
194
|
if (requestParameters.size !== undefined) {
|
|
189
195
|
queryParameters['size'] = requestParameters.size;
|
|
190
196
|
}
|
|
191
197
|
|
|
198
|
+
if (requestParameters.page !== undefined) {
|
|
199
|
+
queryParameters['page'] = requestParameters.page;
|
|
200
|
+
}
|
|
201
|
+
|
|
192
202
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
193
203
|
|
|
194
204
|
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
-
|
|
205
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
196
206
|
}
|
|
197
207
|
|
|
198
208
|
if (this.configuration && this.configuration.apiKey) {
|
|
199
|
-
|
|
209
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
200
210
|
}
|
|
201
211
|
|
|
202
212
|
const response = await this.request({
|
|
@@ -206,23 +216,23 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
206
216
|
query: queryParameters,
|
|
207
217
|
}, initOverrides);
|
|
208
218
|
|
|
209
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
219
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskControllerList200ResponseFromJSON(jsonValue));
|
|
210
220
|
}
|
|
211
221
|
|
|
212
222
|
/**
|
|
213
|
-
* (Experimental) - Get
|
|
223
|
+
* (Experimental) - Get a list of Task
|
|
214
224
|
*/
|
|
215
|
-
async
|
|
216
|
-
const response = await this.
|
|
225
|
+
async taskControllerList(requestParameters: TaskControllerListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskControllerList200Response> {
|
|
226
|
+
const response = await this.taskControllerListRaw(requestParameters, initOverrides);
|
|
217
227
|
return await response.value();
|
|
218
228
|
}
|
|
219
229
|
|
|
220
230
|
/**
|
|
221
|
-
* (Experimental) - Poll
|
|
231
|
+
* (Experimental) - Poll a task if there is not task to poll, the API returns a `404 Not Found` error
|
|
222
232
|
*/
|
|
223
|
-
async
|
|
233
|
+
async taskControllerPollRaw(requestParameters: TaskControllerPollRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskExecutionDto>> {
|
|
224
234
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
225
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
|
235
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling taskControllerPoll.');
|
|
226
236
|
}
|
|
227
237
|
|
|
228
238
|
const queryParameters: any = {};
|
|
@@ -230,11 +240,11 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
230
240
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
231
241
|
|
|
232
242
|
if (this.configuration && this.configuration.apiKey) {
|
|
233
|
-
|
|
243
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
234
244
|
}
|
|
235
245
|
|
|
236
246
|
if (this.configuration && this.configuration.apiKey) {
|
|
237
|
-
|
|
247
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
238
248
|
}
|
|
239
249
|
|
|
240
250
|
const response = await this.request({
|
|
@@ -244,23 +254,27 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
244
254
|
query: queryParameters,
|
|
245
255
|
}, initOverrides);
|
|
246
256
|
|
|
247
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
257
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TaskExecutionDtoFromJSON(jsonValue));
|
|
248
258
|
}
|
|
249
259
|
|
|
250
260
|
/**
|
|
251
|
-
* (Experimental) - Poll
|
|
261
|
+
* (Experimental) - Poll a task if there is not task to poll, the API returns a `404 Not Found` error
|
|
252
262
|
*/
|
|
253
|
-
async
|
|
254
|
-
const response = await this.
|
|
263
|
+
async taskControllerPoll(requestParameters: TaskControllerPollRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskExecutionDto> {
|
|
264
|
+
const response = await this.taskControllerPollRaw(requestParameters, initOverrides);
|
|
255
265
|
return await response.value();
|
|
256
266
|
}
|
|
257
267
|
|
|
258
268
|
/**
|
|
259
|
-
* (Experimental) - Update
|
|
269
|
+
* (Experimental) - Update a Task
|
|
260
270
|
*/
|
|
261
|
-
async
|
|
262
|
-
if (requestParameters.
|
|
263
|
-
throw new runtime.RequiredError('
|
|
271
|
+
async taskControllerUpdateRaw(requestParameters: TaskControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TaskDto>> {
|
|
272
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
273
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling taskControllerUpdate.');
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (requestParameters.updateTaskDto === null || requestParameters.updateTaskDto === undefined) {
|
|
277
|
+
throw new runtime.RequiredError('updateTaskDto','Required parameter requestParameters.updateTaskDto was null or undefined when calling taskControllerUpdate.');
|
|
264
278
|
}
|
|
265
279
|
|
|
266
280
|
const queryParameters: any = {};
|
|
@@ -270,29 +284,29 @@ export class TaskApi extends runtime.BaseAPI {
|
|
|
270
284
|
headerParameters['Content-Type'] = 'application/json';
|
|
271
285
|
|
|
272
286
|
if (this.configuration && this.configuration.apiKey) {
|
|
273
|
-
|
|
287
|
+
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
274
288
|
}
|
|
275
289
|
|
|
276
290
|
if (this.configuration && this.configuration.apiKey) {
|
|
277
|
-
|
|
291
|
+
headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
|
|
278
292
|
}
|
|
279
293
|
|
|
280
294
|
const response = await this.request({
|
|
281
|
-
path: `/v1/data_factory/tasks`,
|
|
295
|
+
path: `/v1/data_factory/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
282
296
|
method: 'PUT',
|
|
283
297
|
headers: headerParameters,
|
|
284
298
|
query: queryParameters,
|
|
285
|
-
body:
|
|
299
|
+
body: UpdateTaskDtoToJSON(requestParameters.updateTaskDto),
|
|
286
300
|
}, initOverrides);
|
|
287
301
|
|
|
288
302
|
return new runtime.JSONApiResponse(response, (jsonValue) => TaskDtoFromJSON(jsonValue));
|
|
289
303
|
}
|
|
290
304
|
|
|
291
305
|
/**
|
|
292
|
-
* (Experimental) - Update
|
|
306
|
+
* (Experimental) - Update a Task
|
|
293
307
|
*/
|
|
294
|
-
async
|
|
295
|
-
const response = await this.
|
|
308
|
+
async taskControllerUpdate(requestParameters: TaskControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TaskDto> {
|
|
309
|
+
const response = await this.taskControllerUpdateRaw(requestParameters, initOverrides);
|
|
296
310
|
return await response.value();
|
|
297
311
|
}
|
|
298
312
|
|