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