@product-live/api-sdk 2.22.0 → 2.26.0
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/package.json +4 -35
- package/.openapi-generator/FILES +0 -74
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/DataFactoryFileApi.md +0 -182
- package/DefaultApi.md +0 -105
- package/ItemApi.md +0 -125
- package/JobApi.md +0 -333
- package/JobExecutionApi.md +0 -185
- package/README.md +0 -4
- package/TaskApi.md +0 -375
- package/TaskExecutionApi.md +0 -130
- package/VariableApi.md +0 -315
- package/apis/DataFactoryFileApi.ts +0 -307
- package/apis/DefaultApi.ts +0 -117
- package/apis/ItemApi.ts +0 -197
- package/apis/JobApi.ts +0 -507
- package/apis/JobExecutionApi.ts +0 -289
- package/apis/TaskApi.ts +0 -558
- package/apis/TaskExecutionApi.ts +0 -212
- package/apis/VariableApi.ts +0 -495
- package/apis/baseapi.ts +0 -37
- package/apis/exception.ts +0 -15
- package/auth/auth.ts +0 -107
- package/configuration.ts +0 -82
- package/dist/apis/DataFactoryFileApi.d.ts +0 -15
- package/dist/apis/DataFactoryFileApi.js +0 -359
- package/dist/apis/DataFactoryFileApi.js.map +0 -1
- package/dist/apis/DefaultApi.d.ts +0 -11
- package/dist/apis/DefaultApi.js +0 -172
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/ItemApi.d.ts +0 -13
- package/dist/apis/ItemApi.js +0 -249
- package/dist/apis/ItemApi.js.map +0 -1
- package/dist/apis/JobApi.d.ts +0 -21
- package/dist/apis/JobApi.js +0 -547
- package/dist/apis/JobApi.js.map +0 -1
- package/dist/apis/JobExecutionApi.d.ts +0 -16
- package/dist/apis/JobExecutionApi.js +0 -339
- package/dist/apis/JobExecutionApi.js.map +0 -1
- package/dist/apis/TaskApi.d.ts +0 -24
- package/dist/apis/TaskApi.js +0 -609
- package/dist/apis/TaskApi.js.map +0 -1
- package/dist/apis/TaskExecutionApi.d.ts +0 -13
- package/dist/apis/TaskExecutionApi.js +0 -259
- package/dist/apis/TaskExecutionApi.js.map +0 -1
- package/dist/apis/VariableApi.d.ts +0 -22
- package/dist/apis/VariableApi.js +0 -529
- package/dist/apis/VariableApi.js.map +0 -1
- package/dist/apis/baseapi.d.ts +0 -18
- package/dist/apis/baseapi.js +0 -46
- package/dist/apis/baseapi.js.map +0 -1
- package/dist/apis/exception.d.ts +0 -10
- package/dist/apis/exception.js +0 -32
- package/dist/apis/exception.js.map +0 -1
- package/dist/auth/auth.d.ts +0 -42
- package/dist/auth/auth.js +0 -45
- package/dist/auth/auth.js.map +0 -1
- package/dist/configuration.d.ts +0 -18
- package/dist/configuration.js +0 -22
- package/dist/configuration.js.map +0 -1
- package/dist/http/http.d.ts +0 -82
- package/dist/http/http.js +0 -229
- package/dist/http/http.js.map +0 -1
- package/dist/http/isomorphic-fetch.d.ts +0 -5
- package/dist/http/isomorphic-fetch.js +0 -34
- package/dist/http/isomorphic-fetch.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -36
- package/dist/index.js.map +0 -1
- package/dist/middleware.d.ts +0 -16
- package/dist/middleware.js +0 -18
- package/dist/middleware.js.map +0 -1
- package/dist/models/CreateJobDto.d.ts +0 -30
- package/dist/models/CreateJobDto.js +0 -82
- package/dist/models/CreateJobDto.js.map +0 -1
- package/dist/models/CreateJobExecutionDto.d.ts +0 -21
- package/dist/models/CreateJobExecutionDto.js +0 -34
- package/dist/models/CreateJobExecutionDto.js.map +0 -1
- package/dist/models/CreateTaskDto.d.ts +0 -21
- package/dist/models/CreateTaskDto.js +0 -46
- package/dist/models/CreateTaskDto.js.map +0 -1
- package/dist/models/CreateVariableDto.d.ts +0 -22
- package/dist/models/CreateVariableDto.js +0 -46
- package/dist/models/CreateVariableDto.js.map +0 -1
- package/dist/models/FileDto.d.ts +0 -23
- package/dist/models/FileDto.js +0 -52
- package/dist/models/FileDto.js.map +0 -1
- package/dist/models/FindVariablesRequest.d.ts +0 -23
- package/dist/models/FindVariablesRequest.js +0 -46
- package/dist/models/FindVariablesRequest.js.map +0 -1
- package/dist/models/GetFiles200Response.d.ts +0 -21
- package/dist/models/GetFiles200Response.js +0 -34
- package/dist/models/GetFiles200Response.js.map +0 -1
- package/dist/models/GetItems200Response.d.ts +0 -21
- package/dist/models/GetItems200Response.js +0 -34
- package/dist/models/GetItems200Response.js.map +0 -1
- package/dist/models/GetJobExecutionById400Response.d.ts +0 -17
- package/dist/models/GetJobExecutionById400Response.js +0 -22
- package/dist/models/GetJobExecutionById400Response.js.map +0 -1
- package/dist/models/GetJobExecutions200Response.d.ts +0 -21
- package/dist/models/GetJobExecutions200Response.js +0 -34
- package/dist/models/GetJobExecutions200Response.js.map +0 -1
- package/dist/models/GetJobs200Response.d.ts +0 -21
- package/dist/models/GetJobs200Response.js +0 -34
- package/dist/models/GetJobs200Response.js.map +0 -1
- package/dist/models/GetTasks200Response.d.ts +0 -21
- package/dist/models/GetTasks200Response.js +0 -34
- package/dist/models/GetTasks200Response.js.map +0 -1
- package/dist/models/GetVariables200Response.d.ts +0 -21
- package/dist/models/GetVariables200Response.js +0 -34
- package/dist/models/GetVariables200Response.js.map +0 -1
- package/dist/models/HighOrderQuery.d.ts +0 -19
- package/dist/models/HighOrderQuery.js +0 -28
- package/dist/models/HighOrderQuery.js.map +0 -1
- package/dist/models/ItemDto.d.ts +0 -28
- package/dist/models/ItemDto.js +0 -64
- package/dist/models/ItemDto.js.map +0 -1
- package/dist/models/ItemFieldDTO.d.ts +0 -19
- package/dist/models/ItemFieldDTO.js +0 -34
- package/dist/models/ItemFieldDTO.js.map +0 -1
- package/dist/models/ItemFieldFile.d.ts +0 -18
- package/dist/models/ItemFieldFile.js +0 -22
- package/dist/models/ItemFieldFile.js.map +0 -1
- package/dist/models/ItemFieldFileData.d.ts +0 -18
- package/dist/models/ItemFieldFileData.js +0 -28
- package/dist/models/ItemFieldFileData.js.map +0 -1
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.d.ts +0 -18
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js +0 -22
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js.map +0 -1
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.d.ts +0 -19
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js +0 -34
- package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js.map +0 -1
- package/dist/models/ItemFieldSimpleNumber.d.ts +0 -18
- package/dist/models/ItemFieldSimpleNumber.js +0 -28
- package/dist/models/ItemFieldSimpleNumber.js.map +0 -1
- package/dist/models/ItemFieldSimpleString.d.ts +0 -17
- package/dist/models/ItemFieldSimpleString.js +0 -22
- package/dist/models/ItemFieldSimpleString.js.map +0 -1
- package/dist/models/ItemFieldSimpleStringArray.d.ts +0 -17
- package/dist/models/ItemFieldSimpleStringArray.js +0 -22
- package/dist/models/ItemFieldSimpleStringArray.js.map +0 -1
- package/dist/models/ItemMetadataDTO.d.ts +0 -23
- package/dist/models/ItemMetadataDTO.js +0 -58
- package/dist/models/ItemMetadataDTO.js.map +0 -1
- package/dist/models/JobDto.d.ts +0 -35
- package/dist/models/JobDto.js +0 -106
- package/dist/models/JobDto.js.map +0 -1
- package/dist/models/JobExecutionDto.d.ts +0 -33
- package/dist/models/JobExecutionDto.js +0 -88
- package/dist/models/JobExecutionDto.js.map +0 -1
- package/dist/models/LowOrderQuery.d.ts +0 -22
- package/dist/models/LowOrderQuery.js +0 -40
- package/dist/models/LowOrderQuery.js.map +0 -1
- package/dist/models/LowOrderQueryValue.d.ts +0 -16
- package/dist/models/LowOrderQueryValue.js +0 -15
- package/dist/models/LowOrderQueryValue.js.map +0 -1
- package/dist/models/ObjectSerializer.d.ts +0 -45
- package/dist/models/ObjectSerializer.js +0 -347
- package/dist/models/ObjectSerializer.js.map +0 -1
- package/dist/models/PatchTaskExecutionDto.d.ts +0 -22
- package/dist/models/PatchTaskExecutionDto.js +0 -34
- package/dist/models/PatchTaskExecutionDto.js.map +0 -1
- package/dist/models/Query1.d.ts +0 -23
- package/dist/models/Query1.js +0 -46
- package/dist/models/Query1.js.map +0 -1
- package/dist/models/TaskDto.d.ts +0 -26
- package/dist/models/TaskDto.js +0 -70
- package/dist/models/TaskDto.js.map +0 -1
- package/dist/models/TaskExecutionDto.d.ts +0 -30
- package/dist/models/TaskExecutionDto.js +0 -64
- package/dist/models/TaskExecutionDto.js.map +0 -1
- package/dist/models/UpdateJobDto.d.ts +0 -31
- package/dist/models/UpdateJobDto.js +0 -88
- package/dist/models/UpdateJobDto.js.map +0 -1
- package/dist/models/UpdateTaskDto.d.ts +0 -22
- package/dist/models/UpdateTaskDto.js +0 -52
- package/dist/models/UpdateTaskDto.js.map +0 -1
- package/dist/models/UpdateVariableDto.d.ts +0 -23
- package/dist/models/UpdateVariableDto.js +0 -52
- package/dist/models/UpdateVariableDto.js.map +0 -1
- package/dist/models/VariableDto.d.ts +0 -27
- package/dist/models/VariableDto.js +0 -70
- package/dist/models/VariableDto.js.map +0 -1
- package/dist/models/all.d.ts +0 -36
- package/dist/models/all.js +0 -53
- package/dist/models/all.js.map +0 -1
- package/dist/rxjsStub.d.ts +0 -10
- package/dist/rxjsStub.js +0 -33
- package/dist/rxjsStub.js.map +0 -1
- package/dist/servers.d.ts +0 -17
- package/dist/servers.js +0 -32
- package/dist/servers.js.map +0 -1
- package/dist/types/ObjectParamAPI.d.ts +0 -187
- package/dist/types/ObjectParamAPI.js +0 -160
- package/dist/types/ObjectParamAPI.js.map +0 -1
- package/dist/types/ObservableAPI.d.ts +0 -109
- package/dist/types/ObservableAPI.js +0 -758
- package/dist/types/ObservableAPI.js.map +0 -1
- package/dist/types/PromiseAPI.d.ts +0 -92
- package/dist/types/PromiseAPI.js +0 -180
- package/dist/types/PromiseAPI.js.map +0 -1
- package/dist/util.d.ts +0 -2
- package/dist/util.js +0 -29
- package/dist/util.js.map +0 -1
- package/git_push.sh +0 -51
- package/http/http.ts +0 -229
- package/http/isomorphic-fetch.ts +0 -32
- package/index.ts +0 -12
- package/middleware.ts +0 -66
- package/models/CreateJobDto.ts +0 -108
- package/models/CreateJobExecutionDto.ts +0 -49
- package/models/CreateTaskDto.ts +0 -63
- package/models/CreateVariableDto.ts +0 -66
- package/models/FileDto.ts +0 -73
- package/models/FindVariablesRequest.ts +0 -68
- package/models/GetFiles200Response.ts +0 -53
- package/models/GetItems200Response.ts +0 -53
- package/models/GetJobExecutionById400Response.ts +0 -35
- package/models/GetJobExecutions200Response.ts +0 -53
- package/models/GetJobs200Response.ts +0 -53
- package/models/GetTasks200Response.ts +0 -53
- package/models/GetVariables200Response.ts +0 -53
- package/models/HighOrderQuery.ts +0 -45
- package/models/ItemDto.ts +0 -86
- package/models/ItemFieldDTO.ts +0 -49
- package/models/ItemFieldFile.ts +0 -36
- package/models/ItemFieldFileData.ts +0 -42
- package/models/ItemFieldMultipleSelectWithCommentAndQuantity.ts +0 -36
- package/models/ItemFieldMultipleSelectWithCommentAndQuantityData.ts +0 -49
- package/models/ItemFieldSimpleNumber.ts +0 -42
- package/models/ItemFieldSimpleString.ts +0 -35
- package/models/ItemFieldSimpleStringArray.ts +0 -35
- package/models/ItemMetadataDTO.ts +0 -77
- package/models/JobDto.ts +0 -137
- package/models/JobExecutionDto.ts +0 -115
- package/models/LowOrderQuery.ts +0 -60
- package/models/LowOrderQueryValue.ts +0 -29
- package/models/ObjectSerializer.ts +0 -358
- package/models/PatchTaskExecutionDto.ts +0 -52
- package/models/Query1.ts +0 -69
- package/models/TaskDto.ts +0 -94
- package/models/TaskExecutionDto.ts +0 -88
- package/models/UpdateJobDto.ts +0 -115
- package/models/UpdateTaskDto.ts +0 -70
- package/models/UpdateVariableDto.ts +0 -73
- package/models/VariableDto.ts +0 -95
- package/models/all.ts +0 -36
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -55
- package/tsconfig.json +0 -28
- package/types/ObjectParamAPI.ts +0 -675
- package/types/ObservableAPI.ts +0 -837
- package/types/PromiseAPI.ts +0 -452
- package/util.ts +0 -37
package/apis/JobExecutionApi.ts
DELETED
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
// TODO: better import syntax?
|
|
2
|
-
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
|
|
3
|
-
import {Configuration} from '../configuration';
|
|
4
|
-
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
|
5
|
-
import * as FormData from "form-data";
|
|
6
|
-
import { URLSearchParams } from 'url';
|
|
7
|
-
import {ObjectSerializer} from '../models/ObjectSerializer';
|
|
8
|
-
import {ApiException} from './exception';
|
|
9
|
-
import {canConsumeForm, isCodeInRange} from '../util';
|
|
10
|
-
import {SecurityAuthentication} from '../auth/auth';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { CreateJobExecutionDto } from '../models/CreateJobExecutionDto';
|
|
14
|
-
import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
|
|
15
|
-
import { GetJobExecutions200Response } from '../models/GetJobExecutions200Response';
|
|
16
|
-
import { JobExecutionDto } from '../models/JobExecutionDto';
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* no description
|
|
20
|
-
*/
|
|
21
|
-
export class JobExecutionApiRequestFactory extends BaseAPIRequestFactory {
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* (Experimental) - Create a Job execution
|
|
25
|
-
* @param createJobExecutionDto
|
|
26
|
-
*/
|
|
27
|
-
public async createJobExecution(createJobExecutionDto: CreateJobExecutionDto, _options?: Configuration): Promise<RequestContext> {
|
|
28
|
-
let _config = _options || this.configuration;
|
|
29
|
-
|
|
30
|
-
// verify required parameter 'createJobExecutionDto' is not null or undefined
|
|
31
|
-
if (createJobExecutionDto === null || createJobExecutionDto === undefined) {
|
|
32
|
-
throw new RequiredError("JobExecutionApi", "createJobExecution", "createJobExecutionDto");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// Path Params
|
|
37
|
-
const localVarPath = '/v1/data_factory/job_executions';
|
|
38
|
-
|
|
39
|
-
// Make Request Context
|
|
40
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
41
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
// Body Params
|
|
45
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
46
|
-
"application/json"
|
|
47
|
-
]);
|
|
48
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
49
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
50
|
-
ObjectSerializer.serialize(createJobExecutionDto, "CreateJobExecutionDto", ""),
|
|
51
|
-
contentType
|
|
52
|
-
);
|
|
53
|
-
requestContext.setBody(serializedBody);
|
|
54
|
-
|
|
55
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
56
|
-
// Apply auth methods
|
|
57
|
-
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
58
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
59
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
60
|
-
}
|
|
61
|
-
// Apply auth methods
|
|
62
|
-
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
63
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
64
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
68
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
69
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
return requestContext;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* (Experimental) - Get a Job execution by id
|
|
77
|
-
* @param id
|
|
78
|
-
*/
|
|
79
|
-
public async getJobExecutionById(id: string, _options?: Configuration): Promise<RequestContext> {
|
|
80
|
-
let _config = _options || this.configuration;
|
|
81
|
-
|
|
82
|
-
// verify required parameter 'id' is not null or undefined
|
|
83
|
-
if (id === null || id === undefined) {
|
|
84
|
-
throw new RequiredError("JobExecutionApi", "getJobExecutionById", "id");
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// Path Params
|
|
89
|
-
const localVarPath = '/v1/data_factory/job_executions/{id}'
|
|
90
|
-
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
91
|
-
|
|
92
|
-
// Make Request Context
|
|
93
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
94
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
98
|
-
// Apply auth methods
|
|
99
|
-
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
100
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
101
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
102
|
-
}
|
|
103
|
-
// Apply auth methods
|
|
104
|
-
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
105
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
106
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
110
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
111
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return requestContext;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* (Experimental) - Get a list of Job execution
|
|
119
|
-
* @param size
|
|
120
|
-
* @param page
|
|
121
|
-
*/
|
|
122
|
-
public async getJobExecutions(size?: number, page?: number, _options?: Configuration): Promise<RequestContext> {
|
|
123
|
-
let _config = _options || this.configuration;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
// Path Params
|
|
128
|
-
const localVarPath = '/v1/data_factory/job_executions';
|
|
129
|
-
|
|
130
|
-
// Make Request Context
|
|
131
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
132
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
133
|
-
|
|
134
|
-
// Query Params
|
|
135
|
-
if (size !== undefined) {
|
|
136
|
-
requestContext.setQueryParam("size", ObjectSerializer.serialize(size, "number", ""));
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Query Params
|
|
140
|
-
if (page !== undefined) {
|
|
141
|
-
requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", ""));
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
let authMethod: SecurityAuthentication | undefined;
|
|
146
|
-
// Apply auth methods
|
|
147
|
-
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
148
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
149
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
150
|
-
}
|
|
151
|
-
// Apply auth methods
|
|
152
|
-
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
153
|
-
if (authMethod?.applySecurityAuthentication) {
|
|
154
|
-
await authMethod?.applySecurityAuthentication(requestContext);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
158
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
159
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return requestContext;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export class JobExecutionApiResponseProcessor {
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
171
|
-
* to the expected objects
|
|
172
|
-
*
|
|
173
|
-
* @params response Response returned by the server for a request to createJobExecution
|
|
174
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
175
|
-
*/
|
|
176
|
-
public async createJobExecution(response: ResponseContext): Promise<JobExecutionDto > {
|
|
177
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
178
|
-
if (isCodeInRange("201", response.httpStatusCode)) {
|
|
179
|
-
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
180
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
181
|
-
"JobExecutionDto", ""
|
|
182
|
-
) as JobExecutionDto;
|
|
183
|
-
return body;
|
|
184
|
-
}
|
|
185
|
-
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
186
|
-
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
187
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
188
|
-
"GetJobExecutionById400Response", ""
|
|
189
|
-
) as GetJobExecutionById400Response;
|
|
190
|
-
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
191
|
-
}
|
|
192
|
-
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
193
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
197
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
198
|
-
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
199
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
200
|
-
"JobExecutionDto", ""
|
|
201
|
-
) as JobExecutionDto;
|
|
202
|
-
return body;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
210
|
-
* to the expected objects
|
|
211
|
-
*
|
|
212
|
-
* @params response Response returned by the server for a request to getJobExecutionById
|
|
213
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
214
|
-
*/
|
|
215
|
-
public async getJobExecutionById(response: ResponseContext): Promise<JobExecutionDto > {
|
|
216
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
217
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
218
|
-
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
219
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
220
|
-
"JobExecutionDto", ""
|
|
221
|
-
) as JobExecutionDto;
|
|
222
|
-
return body;
|
|
223
|
-
}
|
|
224
|
-
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
225
|
-
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
226
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
227
|
-
"GetJobExecutionById400Response", ""
|
|
228
|
-
) as GetJobExecutionById400Response;
|
|
229
|
-
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
230
|
-
}
|
|
231
|
-
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
232
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
233
|
-
}
|
|
234
|
-
if (isCodeInRange("404", response.httpStatusCode)) {
|
|
235
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Not found", undefined, response.headers);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
239
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
240
|
-
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
241
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
242
|
-
"JobExecutionDto", ""
|
|
243
|
-
) as JobExecutionDto;
|
|
244
|
-
return body;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
252
|
-
* to the expected objects
|
|
253
|
-
*
|
|
254
|
-
* @params response Response returned by the server for a request to getJobExecutions
|
|
255
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
256
|
-
*/
|
|
257
|
-
public async getJobExecutions(response: ResponseContext): Promise<GetJobExecutions200Response > {
|
|
258
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
259
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
260
|
-
const body: GetJobExecutions200Response = ObjectSerializer.deserialize(
|
|
261
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
262
|
-
"GetJobExecutions200Response", ""
|
|
263
|
-
) as GetJobExecutions200Response;
|
|
264
|
-
return body;
|
|
265
|
-
}
|
|
266
|
-
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
267
|
-
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
268
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
269
|
-
"GetJobExecutionById400Response", ""
|
|
270
|
-
) as GetJobExecutionById400Response;
|
|
271
|
-
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
272
|
-
}
|
|
273
|
-
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
274
|
-
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
278
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
279
|
-
const body: GetJobExecutions200Response = ObjectSerializer.deserialize(
|
|
280
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
281
|
-
"GetJobExecutions200Response", ""
|
|
282
|
-
) as GetJobExecutions200Response;
|
|
283
|
-
return body;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
}
|