@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.
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
@@ -0,0 +1,185 @@
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
+ FileCreatedDto,
20
+ } from '../models';
21
+ import {
22
+ ExecuteJob400ResponseFromJSON,
23
+ ExecuteJob400ResponseToJSON,
24
+ FileCreatedDtoFromJSON,
25
+ FileCreatedDtoToJSON,
26
+ } from '../models';
27
+
28
+ export interface GetFileRequest {
29
+ id: string;
30
+ }
31
+
32
+ export interface GetFilesRequest {
33
+ page?: string;
34
+ size?: string;
35
+ }
36
+
37
+ export interface UploadFileRequest {
38
+ file: Blob;
39
+ }
40
+
41
+ /**
42
+ *
43
+ */
44
+ export class DataFactoryFileApi extends runtime.BaseAPI {
45
+
46
+ /**
47
+ * (Experimental) - Obtain a file by its ID
48
+ */
49
+ async getFileRaw(requestParameters: GetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreatedDto>> {
50
+ if (requestParameters.id === null || requestParameters.id === undefined) {
51
+ throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getFile.');
52
+ }
53
+
54
+ const queryParameters: any = {};
55
+
56
+ const headerParameters: runtime.HTTPHeaders = {};
57
+
58
+ if (this.configuration && this.configuration.apiKey) {
59
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
60
+ }
61
+
62
+ if (this.configuration && this.configuration.apiKey) {
63
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
64
+ }
65
+
66
+ const response = await this.request({
67
+ path: `/v1/data_factory/files/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+
73
+ return new runtime.JSONApiResponse(response, (jsonValue) => FileCreatedDtoFromJSON(jsonValue));
74
+ }
75
+
76
+ /**
77
+ * (Experimental) - Obtain a file by its ID
78
+ */
79
+ async getFile(requestParameters: GetFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreatedDto> {
80
+ const response = await this.getFileRaw(requestParameters, initOverrides);
81
+ return await response.value();
82
+ }
83
+
84
+ /**
85
+ * (Experimental) - List files
86
+ */
87
+ async getFilesRaw(requestParameters: GetFilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreatedDto>> {
88
+ const queryParameters: any = {};
89
+
90
+ if (requestParameters.page !== undefined) {
91
+ queryParameters['page'] = requestParameters.page;
92
+ }
93
+
94
+ if (requestParameters.size !== undefined) {
95
+ queryParameters['size'] = requestParameters.size;
96
+ }
97
+
98
+ const headerParameters: runtime.HTTPHeaders = {};
99
+
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
102
+ }
103
+
104
+ if (this.configuration && this.configuration.apiKey) {
105
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
106
+ }
107
+
108
+ const response = await this.request({
109
+ path: `/v1/data_factory/files`,
110
+ method: 'GET',
111
+ headers: headerParameters,
112
+ query: queryParameters,
113
+ }, initOverrides);
114
+
115
+ return new runtime.JSONApiResponse(response, (jsonValue) => FileCreatedDtoFromJSON(jsonValue));
116
+ }
117
+
118
+ /**
119
+ * (Experimental) - List files
120
+ */
121
+ async getFiles(requestParameters: GetFilesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreatedDto> {
122
+ const response = await this.getFilesRaw(requestParameters, initOverrides);
123
+ return await response.value();
124
+ }
125
+
126
+ /**
127
+ * Post a file so it can be consume by a Data Factory job
128
+ */
129
+ async uploadFileRaw(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FileCreatedDto>> {
130
+ if (requestParameters.file === null || requestParameters.file === undefined) {
131
+ throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling uploadFile.');
132
+ }
133
+
134
+ const queryParameters: any = {};
135
+
136
+ const headerParameters: runtime.HTTPHeaders = {};
137
+
138
+ if (this.configuration && this.configuration.apiKey) {
139
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
140
+ }
141
+
142
+ if (this.configuration && this.configuration.apiKey) {
143
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
144
+ }
145
+
146
+ const consumes: runtime.Consume[] = [
147
+ { contentType: 'multipart/form-data' },
148
+ ];
149
+ // @ts-ignore: canConsumeForm may be unused
150
+ const canConsumeForm = runtime.canConsumeForm(consumes);
151
+
152
+ let formParams: { append(param: string, value: any): any };
153
+ let useForm = false;
154
+ // use FormData to transmit files using content-type "multipart/form-data"
155
+ useForm = canConsumeForm;
156
+ if (useForm) {
157
+ formParams = new FormData();
158
+ } else {
159
+ formParams = new URLSearchParams();
160
+ }
161
+
162
+ if (requestParameters.file !== undefined) {
163
+ formParams.append('file', requestParameters.file as any);
164
+ }
165
+
166
+ const response = await this.request({
167
+ path: `/v1/data_factory/files`,
168
+ method: 'POST',
169
+ headers: headerParameters,
170
+ query: queryParameters,
171
+ body: formParams,
172
+ }, initOverrides);
173
+
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => FileCreatedDtoFromJSON(jsonValue));
175
+ }
176
+
177
+ /**
178
+ * Post a file so it can be consume by a Data Factory job
179
+ */
180
+ async uploadFile(requestParameters: UploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreatedDto> {
181
+ const response = await this.uploadFileRaw(requestParameters, initOverrides);
182
+ return await response.value();
183
+ }
184
+
185
+ }
package/apis/JobApi.ts ADDED
@@ -0,0 +1,284 @@
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
+ JobDto,
20
+ } from '../models';
21
+ import {
22
+ ExecuteJob400ResponseFromJSON,
23
+ ExecuteJob400ResponseToJSON,
24
+ JobDtoFromJSON,
25
+ JobDtoToJSON,
26
+ } from '../models';
27
+
28
+ export interface CreateJobRequest {
29
+ jobDto: JobDto;
30
+ }
31
+
32
+ export interface GetJobRequest {
33
+ id: string;
34
+ }
35
+
36
+ export interface GetJobsRequest {
37
+ page?: string;
38
+ size?: string;
39
+ }
40
+
41
+ export interface UpdateJobRequest {
42
+ jobDto: JobDto;
43
+ }
44
+
45
+ export interface UpdateJobZipRequest {
46
+ file: Blob;
47
+ id: string;
48
+ }
49
+
50
+ /**
51
+ *
52
+ */
53
+ export class JobApi extends runtime.BaseAPI {
54
+
55
+ /**
56
+ * (Experimental) - Create job
57
+ */
58
+ async createJobRaw(requestParameters: CreateJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
59
+ if (requestParameters.jobDto === null || requestParameters.jobDto === undefined) {
60
+ throw new runtime.RequiredError('jobDto','Required parameter requestParameters.jobDto was null or undefined when calling createJob.');
61
+ }
62
+
63
+ const queryParameters: any = {};
64
+
65
+ const headerParameters: runtime.HTTPHeaders = {};
66
+
67
+ headerParameters['Content-Type'] = 'application/json';
68
+
69
+ if (this.configuration && this.configuration.apiKey) {
70
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
71
+ }
72
+
73
+ if (this.configuration && this.configuration.apiKey) {
74
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
75
+ }
76
+
77
+ const response = await this.request({
78
+ path: `/v1/data_factory/jobs`,
79
+ method: 'POST',
80
+ headers: headerParameters,
81
+ query: queryParameters,
82
+ body: JobDtoToJSON(requestParameters.jobDto),
83
+ }, initOverrides);
84
+
85
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
86
+ }
87
+
88
+ /**
89
+ * (Experimental) - Create job
90
+ */
91
+ async createJob(requestParameters: CreateJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
92
+ const response = await this.createJobRaw(requestParameters, initOverrides);
93
+ return await response.value();
94
+ }
95
+
96
+ /**
97
+ * (Experimental) - Obtain a job by its ID
98
+ */
99
+ async getJobRaw(requestParameters: GetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
100
+ if (requestParameters.id === null || requestParameters.id === undefined) {
101
+ throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getJob.');
102
+ }
103
+
104
+ const queryParameters: any = {};
105
+
106
+ const headerParameters: runtime.HTTPHeaders = {};
107
+
108
+ if (this.configuration && this.configuration.apiKey) {
109
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
110
+ }
111
+
112
+ if (this.configuration && this.configuration.apiKey) {
113
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
114
+ }
115
+
116
+ const response = await this.request({
117
+ path: `/v1/data_factory/jobs/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
118
+ method: 'GET',
119
+ headers: headerParameters,
120
+ query: queryParameters,
121
+ }, initOverrides);
122
+
123
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
124
+ }
125
+
126
+ /**
127
+ * (Experimental) - Obtain a job by its ID
128
+ */
129
+ async getJob(requestParameters: GetJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
130
+ const response = await this.getJobRaw(requestParameters, initOverrides);
131
+ return await response.value();
132
+ }
133
+
134
+ /**
135
+ * (Experimental) - List jobs
136
+ */
137
+ async getJobsRaw(requestParameters: GetJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
138
+ const queryParameters: any = {};
139
+
140
+ if (requestParameters.page !== undefined) {
141
+ queryParameters['page'] = requestParameters.page;
142
+ }
143
+
144
+ if (requestParameters.size !== undefined) {
145
+ queryParameters['size'] = requestParameters.size;
146
+ }
147
+
148
+ const headerParameters: runtime.HTTPHeaders = {};
149
+
150
+ if (this.configuration && this.configuration.apiKey) {
151
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
152
+ }
153
+
154
+ if (this.configuration && this.configuration.apiKey) {
155
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
156
+ }
157
+
158
+ const response = await this.request({
159
+ path: `/v1/data_factory/jobs`,
160
+ method: 'GET',
161
+ headers: headerParameters,
162
+ query: queryParameters,
163
+ }, initOverrides);
164
+
165
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
166
+ }
167
+
168
+ /**
169
+ * (Experimental) - List jobs
170
+ */
171
+ async getJobs(requestParameters: GetJobsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
172
+ const response = await this.getJobsRaw(requestParameters, initOverrides);
173
+ return await response.value();
174
+ }
175
+
176
+ /**
177
+ * (Experimental) - Update Job
178
+ */
179
+ async updateJobRaw(requestParameters: UpdateJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
180
+ if (requestParameters.jobDto === null || requestParameters.jobDto === undefined) {
181
+ throw new runtime.RequiredError('jobDto','Required parameter requestParameters.jobDto was null or undefined when calling updateJob.');
182
+ }
183
+
184
+ const queryParameters: any = {};
185
+
186
+ const headerParameters: runtime.HTTPHeaders = {};
187
+
188
+ headerParameters['Content-Type'] = 'application/json';
189
+
190
+ if (this.configuration && this.configuration.apiKey) {
191
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
192
+ }
193
+
194
+ if (this.configuration && this.configuration.apiKey) {
195
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
196
+ }
197
+
198
+ const response = await this.request({
199
+ path: `/v1/data_factory/jobs`,
200
+ method: 'PUT',
201
+ headers: headerParameters,
202
+ query: queryParameters,
203
+ body: JobDtoToJSON(requestParameters.jobDto),
204
+ }, initOverrides);
205
+
206
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
207
+ }
208
+
209
+ /**
210
+ * (Experimental) - Update Job
211
+ */
212
+ async updateJob(requestParameters: UpdateJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
213
+ const response = await this.updateJobRaw(requestParameters, initOverrides);
214
+ return await response.value();
215
+ }
216
+
217
+ /**
218
+ * (Experimental) - Upload a zip to update a job
219
+ */
220
+ async updateJobZipRaw(requestParameters: UpdateJobZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobDto>> {
221
+ if (requestParameters.file === null || requestParameters.file === undefined) {
222
+ throw new runtime.RequiredError('file','Required parameter requestParameters.file was null or undefined when calling updateJobZip.');
223
+ }
224
+
225
+ if (requestParameters.id === null || requestParameters.id === undefined) {
226
+ throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateJobZip.');
227
+ }
228
+
229
+ const queryParameters: any = {};
230
+
231
+ const headerParameters: runtime.HTTPHeaders = {};
232
+
233
+ if (this.configuration && this.configuration.apiKey) {
234
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
235
+ }
236
+
237
+ if (this.configuration && this.configuration.apiKey) {
238
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
239
+ }
240
+
241
+ const consumes: runtime.Consume[] = [
242
+ { contentType: 'multipart/form-data' },
243
+ ];
244
+ // @ts-ignore: canConsumeForm may be unused
245
+ const canConsumeForm = runtime.canConsumeForm(consumes);
246
+
247
+ let formParams: { append(param: string, value: any): any };
248
+ let useForm = false;
249
+ // use FormData to transmit files using content-type "multipart/form-data"
250
+ useForm = canConsumeForm;
251
+ if (useForm) {
252
+ formParams = new FormData();
253
+ } else {
254
+ formParams = new URLSearchParams();
255
+ }
256
+
257
+ if (requestParameters.file !== undefined) {
258
+ formParams.append('file', requestParameters.file as any);
259
+ }
260
+
261
+ if (requestParameters.id !== undefined) {
262
+ formParams.append('id', requestParameters.id as any);
263
+ }
264
+
265
+ const response = await this.request({
266
+ path: `/v1/data_factory/jobs/zip`,
267
+ method: 'PUT',
268
+ headers: headerParameters,
269
+ query: queryParameters,
270
+ body: formParams,
271
+ }, initOverrides);
272
+
273
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobDtoFromJSON(jsonValue));
274
+ }
275
+
276
+ /**
277
+ * (Experimental) - Upload a zip to update a job
278
+ */
279
+ async updateJobZip(requestParameters: UpdateJobZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobDto> {
280
+ const response = await this.updateJobZipRaw(requestParameters, initOverrides);
281
+ return await response.value();
282
+ }
283
+
284
+ }
@@ -0,0 +1,123 @@
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
+ ExecuteJobDto,
20
+ JobExecutionDto,
21
+ } from '../models';
22
+ import {
23
+ ExecuteJob400ResponseFromJSON,
24
+ ExecuteJob400ResponseToJSON,
25
+ ExecuteJobDtoFromJSON,
26
+ ExecuteJobDtoToJSON,
27
+ JobExecutionDtoFromJSON,
28
+ JobExecutionDtoToJSON,
29
+ } from '../models';
30
+
31
+ export interface ExecuteJobRequest {
32
+ executeJobDto: ExecuteJobDto;
33
+ }
34
+
35
+ export interface GetJobexecutionRequest {
36
+ id: string;
37
+ }
38
+
39
+ /**
40
+ *
41
+ */
42
+ export class JobExecutionApi extends runtime.BaseAPI {
43
+
44
+ /**
45
+ * (Experimental) - Execute a job
46
+ */
47
+ async executeJobRaw(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobExecutionDto>> {
48
+ if (requestParameters.executeJobDto === null || requestParameters.executeJobDto === undefined) {
49
+ throw new runtime.RequiredError('executeJobDto','Required parameter requestParameters.executeJobDto was null or undefined when calling executeJob.');
50
+ }
51
+
52
+ const queryParameters: any = {};
53
+
54
+ const headerParameters: runtime.HTTPHeaders = {};
55
+
56
+ headerParameters['Content-Type'] = 'application/json';
57
+
58
+ if (this.configuration && this.configuration.apiKey) {
59
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
60
+ }
61
+
62
+ if (this.configuration && this.configuration.apiKey) {
63
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
64
+ }
65
+
66
+ const response = await this.request({
67
+ path: `/v1/data_factory/job_executions`,
68
+ method: 'POST',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ body: ExecuteJobDtoToJSON(requestParameters.executeJobDto),
72
+ }, initOverrides);
73
+
74
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobExecutionDtoFromJSON(jsonValue));
75
+ }
76
+
77
+ /**
78
+ * (Experimental) - Execute a job
79
+ */
80
+ async executeJob(requestParameters: ExecuteJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobExecutionDto> {
81
+ const response = await this.executeJobRaw(requestParameters, initOverrides);
82
+ return await response.value();
83
+ }
84
+
85
+ /**
86
+ * (Experimental) - Obtain information about a job execution from its id
87
+ */
88
+ async getJobexecutionRaw(requestParameters: GetJobexecutionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobExecutionDto>> {
89
+ if (requestParameters.id === null || requestParameters.id === undefined) {
90
+ throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getJobexecution.');
91
+ }
92
+
93
+ const queryParameters: any = {};
94
+
95
+ const headerParameters: runtime.HTTPHeaders = {};
96
+
97
+ if (this.configuration && this.configuration.apiKey) {
98
+ headerParameters["X-Api-Key"] = this.configuration.apiKey("X-Api-Key"); // ApiKeyAuthHeader authentication
99
+ }
100
+
101
+ if (this.configuration && this.configuration.apiKey) {
102
+ queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
103
+ }
104
+
105
+ const response = await this.request({
106
+ path: `/v1/data_factory/job_executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
107
+ method: 'GET',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ }, initOverrides);
111
+
112
+ return new runtime.JSONApiResponse(response, (jsonValue) => JobExecutionDtoFromJSON(jsonValue));
113
+ }
114
+
115
+ /**
116
+ * (Experimental) - Obtain information about a job execution from its id
117
+ */
118
+ async getJobexecution(requestParameters: GetJobexecutionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobExecutionDto> {
119
+ const response = await this.getJobexecutionRaw(requestParameters, initOverrides);
120
+ return await response.value();
121
+ }
122
+
123
+ }