@product-live/api-sdk 1.87.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator-ignore +23 -0
- package/apis/DataFactoryFileApi.ts +185 -0
- package/apis/JobApi.ts +284 -0
- package/apis/JobExecutionApi.ts +123 -0
- package/apis/TaskApi.ts +299 -0
- package/apis/TaskExecutionApi.ts +128 -0
- package/apis/VariableApi.ts +85 -0
- package/apis/index.ts +8 -0
- package/index.ts +5 -0
- package/models/ExecuteJob400Response.ts +65 -0
- package/models/ExecuteJobDto.ts +97 -0
- package/models/ExecuteJobDtoInfo.ts +65 -0
- package/models/ExecuteJobDtoJob.ts +81 -0
- package/models/FileCreatedDto.ts +111 -0
- package/models/JobDto.ts +241 -0
- package/models/JobDtoPeriodicityInner.ts +73 -0
- package/models/JobDtoProject.ts +73 -0
- package/models/JobDtoTasksInner.ts +97 -0
- package/models/JobDtoTitleLocal.ts +73 -0
- package/models/JobExecutionDto.ts +202 -0
- package/models/JobExecutionDtoEventsInner.ts +89 -0
- package/models/TaskDto.ts +145 -0
- package/models/TaskDtoInputKeysInner.ts +73 -0
- package/models/TaskInstanceDto.ts +143 -0
- package/models/TaskInstanceUpdateDto.ts +107 -0
- package/models/VariableDto.ts +129 -0
- package/models/index.ts +19 -0
- package/package.json +10 -0
- package/runtime.ts +407 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface JobDtoTasksInner
|
|
20
|
+
*/
|
|
21
|
+
export interface JobDtoTasksInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof JobDtoTasksInner
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof JobDtoTasksInner
|
|
32
|
+
*/
|
|
33
|
+
optional?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof JobDtoTasksInner
|
|
38
|
+
*/
|
|
39
|
+
type?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof JobDtoTasksInner
|
|
44
|
+
*/
|
|
45
|
+
description?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof JobDtoTasksInner
|
|
50
|
+
*/
|
|
51
|
+
input?: { [key: string]: any; };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the JobDtoTasksInner interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfJobDtoTasksInner(value: object): boolean {
|
|
58
|
+
let isInstance = true;
|
|
59
|
+
|
|
60
|
+
return isInstance;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function JobDtoTasksInnerFromJSON(json: any): JobDtoTasksInner {
|
|
64
|
+
return JobDtoTasksInnerFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function JobDtoTasksInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDtoTasksInner {
|
|
68
|
+
if ((json === undefined) || (json === null)) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
74
|
+
'optional': !exists(json, 'optional') ? undefined : json['optional'],
|
|
75
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
76
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
77
|
+
'input': !exists(json, 'input') ? undefined : json['input'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function JobDtoTasksInnerToJSON(value?: JobDtoTasksInner | null): any {
|
|
82
|
+
if (value === undefined) {
|
|
83
|
+
return undefined;
|
|
84
|
+
}
|
|
85
|
+
if (value === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'name': value.name,
|
|
91
|
+
'optional': value.optional,
|
|
92
|
+
'type': value.type,
|
|
93
|
+
'description': value.description,
|
|
94
|
+
'input': value.input,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface JobDtoTitleLocal
|
|
20
|
+
*/
|
|
21
|
+
export interface JobDtoTitleLocal {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof JobDtoTitleLocal
|
|
26
|
+
*/
|
|
27
|
+
en?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof JobDtoTitleLocal
|
|
32
|
+
*/
|
|
33
|
+
fr?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the JobDtoTitleLocal interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfJobDtoTitleLocal(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function JobDtoTitleLocalFromJSON(json: any): JobDtoTitleLocal {
|
|
46
|
+
return JobDtoTitleLocalFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function JobDtoTitleLocalFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDtoTitleLocal {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'en': !exists(json, 'en') ? undefined : json['en'],
|
|
56
|
+
'fr': !exists(json, 'fr') ? undefined : json['fr'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function JobDtoTitleLocalToJSON(value?: JobDtoTitleLocal | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'en': value.en,
|
|
70
|
+
'fr': value.fr,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { ExecuteJobDtoInfo } from './ExecuteJobDtoInfo';
|
|
17
|
+
import {
|
|
18
|
+
ExecuteJobDtoInfoFromJSON,
|
|
19
|
+
ExecuteJobDtoInfoFromJSONTyped,
|
|
20
|
+
ExecuteJobDtoInfoToJSON,
|
|
21
|
+
} from './ExecuteJobDtoInfo';
|
|
22
|
+
import type { ExecuteJobDtoJob } from './ExecuteJobDtoJob';
|
|
23
|
+
import {
|
|
24
|
+
ExecuteJobDtoJobFromJSON,
|
|
25
|
+
ExecuteJobDtoJobFromJSONTyped,
|
|
26
|
+
ExecuteJobDtoJobToJSON,
|
|
27
|
+
} from './ExecuteJobDtoJob';
|
|
28
|
+
import type { JobExecutionDtoEventsInner } from './JobExecutionDtoEventsInner';
|
|
29
|
+
import {
|
|
30
|
+
JobExecutionDtoEventsInnerFromJSON,
|
|
31
|
+
JobExecutionDtoEventsInnerFromJSONTyped,
|
|
32
|
+
JobExecutionDtoEventsInnerToJSON,
|
|
33
|
+
} from './JobExecutionDtoEventsInner';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface JobExecutionDto
|
|
39
|
+
*/
|
|
40
|
+
export interface JobExecutionDto {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof JobExecutionDto
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof JobExecutionDto
|
|
51
|
+
*/
|
|
52
|
+
object: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof JobExecutionDto
|
|
57
|
+
*/
|
|
58
|
+
createdAt: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof JobExecutionDto
|
|
63
|
+
*/
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof JobExecutionDto
|
|
69
|
+
*/
|
|
70
|
+
endedAt: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof JobExecutionDto
|
|
75
|
+
*/
|
|
76
|
+
startedAt: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {object}
|
|
80
|
+
* @memberof JobExecutionDto
|
|
81
|
+
*/
|
|
82
|
+
status: object;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {object}
|
|
86
|
+
* @memberof JobExecutionDto
|
|
87
|
+
*/
|
|
88
|
+
message: object;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {{ [key: string]: any; }}
|
|
92
|
+
* @memberof JobExecutionDto
|
|
93
|
+
*/
|
|
94
|
+
output: { [key: string]: any; };
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {ExecuteJobDtoJob}
|
|
98
|
+
* @memberof JobExecutionDto
|
|
99
|
+
*/
|
|
100
|
+
job: ExecuteJobDtoJob;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {ExecuteJobDtoInfo}
|
|
104
|
+
* @memberof JobExecutionDto
|
|
105
|
+
*/
|
|
106
|
+
info: ExecuteJobDtoInfo;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {ExecuteJobDtoJob}
|
|
110
|
+
* @memberof JobExecutionDto
|
|
111
|
+
*/
|
|
112
|
+
pipeline: ExecuteJobDtoJob;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {{ [key: string]: any; }}
|
|
116
|
+
* @memberof JobExecutionDto
|
|
117
|
+
*/
|
|
118
|
+
payload: { [key: string]: any; };
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {Array<JobExecutionDtoEventsInner>}
|
|
122
|
+
* @memberof JobExecutionDto
|
|
123
|
+
*/
|
|
124
|
+
events: Array<JobExecutionDtoEventsInner>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Check if a given object implements the JobExecutionDto interface.
|
|
129
|
+
*/
|
|
130
|
+
export function instanceOfJobExecutionDto(value: object): boolean {
|
|
131
|
+
let isInstance = true;
|
|
132
|
+
isInstance = isInstance && "id" in value;
|
|
133
|
+
isInstance = isInstance && "object" in value;
|
|
134
|
+
isInstance = isInstance && "createdAt" in value;
|
|
135
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
136
|
+
isInstance = isInstance && "endedAt" in value;
|
|
137
|
+
isInstance = isInstance && "startedAt" in value;
|
|
138
|
+
isInstance = isInstance && "status" in value;
|
|
139
|
+
isInstance = isInstance && "message" in value;
|
|
140
|
+
isInstance = isInstance && "output" in value;
|
|
141
|
+
isInstance = isInstance && "job" in value;
|
|
142
|
+
isInstance = isInstance && "info" in value;
|
|
143
|
+
isInstance = isInstance && "pipeline" in value;
|
|
144
|
+
isInstance = isInstance && "payload" in value;
|
|
145
|
+
isInstance = isInstance && "events" in value;
|
|
146
|
+
|
|
147
|
+
return isInstance;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function JobExecutionDtoFromJSON(json: any): JobExecutionDto {
|
|
151
|
+
return JobExecutionDtoFromJSONTyped(json, false);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function JobExecutionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobExecutionDto {
|
|
155
|
+
if ((json === undefined) || (json === null)) {
|
|
156
|
+
return json;
|
|
157
|
+
}
|
|
158
|
+
return {
|
|
159
|
+
|
|
160
|
+
'id': json['id'],
|
|
161
|
+
'object': json['object'],
|
|
162
|
+
'createdAt': json['createdAt'],
|
|
163
|
+
'updatedAt': json['updatedAt'],
|
|
164
|
+
'endedAt': json['endedAt'],
|
|
165
|
+
'startedAt': json['startedAt'],
|
|
166
|
+
'status': json['status'],
|
|
167
|
+
'message': json['message'],
|
|
168
|
+
'output': json['output'],
|
|
169
|
+
'job': ExecuteJobDtoJobFromJSON(json['job']),
|
|
170
|
+
'info': ExecuteJobDtoInfoFromJSON(json['info']),
|
|
171
|
+
'pipeline': ExecuteJobDtoJobFromJSON(json['pipeline']),
|
|
172
|
+
'payload': json['payload'],
|
|
173
|
+
'events': ((json['events'] as Array<any>).map(JobExecutionDtoEventsInnerFromJSON)),
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function JobExecutionDtoToJSON(value?: JobExecutionDto | null): any {
|
|
178
|
+
if (value === undefined) {
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
181
|
+
if (value === null) {
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
return {
|
|
185
|
+
|
|
186
|
+
'id': value.id,
|
|
187
|
+
'object': value.object,
|
|
188
|
+
'createdAt': value.createdAt,
|
|
189
|
+
'updatedAt': value.updatedAt,
|
|
190
|
+
'endedAt': value.endedAt,
|
|
191
|
+
'startedAt': value.startedAt,
|
|
192
|
+
'status': value.status,
|
|
193
|
+
'message': value.message,
|
|
194
|
+
'output': value.output,
|
|
195
|
+
'job': ExecuteJobDtoJobToJSON(value.job),
|
|
196
|
+
'info': ExecuteJobDtoInfoToJSON(value.info),
|
|
197
|
+
'pipeline': ExecuteJobDtoJobToJSON(value.pipeline),
|
|
198
|
+
'payload': value.payload,
|
|
199
|
+
'events': ((value.events as Array<any>).map(JobExecutionDtoEventsInnerToJSON)),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface JobExecutionDtoEventsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface JobExecutionDtoEventsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof JobExecutionDtoEventsInner
|
|
26
|
+
*/
|
|
27
|
+
createdAt?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof JobExecutionDtoEventsInner
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof JobExecutionDtoEventsInner
|
|
38
|
+
*/
|
|
39
|
+
taskId?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof JobExecutionDtoEventsInner
|
|
44
|
+
*/
|
|
45
|
+
payload?: { [key: string]: any; };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the JobExecutionDtoEventsInner interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfJobExecutionDtoEventsInner(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
|
|
54
|
+
return isInstance;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function JobExecutionDtoEventsInnerFromJSON(json: any): JobExecutionDtoEventsInner {
|
|
58
|
+
return JobExecutionDtoEventsInnerFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function JobExecutionDtoEventsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobExecutionDtoEventsInner {
|
|
62
|
+
if ((json === undefined) || (json === null)) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
|
|
68
|
+
'type': !exists(json, 'type') ? undefined : json['type'],
|
|
69
|
+
'taskId': !exists(json, 'taskId') ? undefined : json['taskId'],
|
|
70
|
+
'payload': !exists(json, 'payload') ? undefined : json['payload'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function JobExecutionDtoEventsInnerToJSON(value?: JobExecutionDtoEventsInner | null): any {
|
|
75
|
+
if (value === undefined) {
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
if (value === null) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'createdAt': value.createdAt,
|
|
84
|
+
'type': value.type,
|
|
85
|
+
'taskId': value.taskId,
|
|
86
|
+
'payload': value.payload,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { TaskDtoInputKeysInner } from './TaskDtoInputKeysInner';
|
|
17
|
+
import {
|
|
18
|
+
TaskDtoInputKeysInnerFromJSON,
|
|
19
|
+
TaskDtoInputKeysInnerFromJSONTyped,
|
|
20
|
+
TaskDtoInputKeysInnerToJSON,
|
|
21
|
+
} from './TaskDtoInputKeysInner';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface TaskDto
|
|
27
|
+
*/
|
|
28
|
+
export interface TaskDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof TaskDto
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof TaskDto
|
|
39
|
+
*/
|
|
40
|
+
object: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof TaskDto
|
|
45
|
+
*/
|
|
46
|
+
createdAt: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof TaskDto
|
|
51
|
+
*/
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof TaskDto
|
|
57
|
+
*/
|
|
58
|
+
name: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof TaskDto
|
|
63
|
+
*/
|
|
64
|
+
description: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof TaskDto
|
|
69
|
+
*/
|
|
70
|
+
retryCount: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Array<TaskDtoInputKeysInner>}
|
|
74
|
+
* @memberof TaskDto
|
|
75
|
+
*/
|
|
76
|
+
inputKeys: Array<TaskDtoInputKeysInner>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<TaskDtoInputKeysInner>}
|
|
80
|
+
* @memberof TaskDto
|
|
81
|
+
*/
|
|
82
|
+
outputKeys: Array<TaskDtoInputKeysInner>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the TaskDto interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfTaskDto(value: object): boolean {
|
|
89
|
+
let isInstance = true;
|
|
90
|
+
isInstance = isInstance && "id" in value;
|
|
91
|
+
isInstance = isInstance && "object" in value;
|
|
92
|
+
isInstance = isInstance && "createdAt" in value;
|
|
93
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
94
|
+
isInstance = isInstance && "name" in value;
|
|
95
|
+
isInstance = isInstance && "description" in value;
|
|
96
|
+
isInstance = isInstance && "retryCount" in value;
|
|
97
|
+
isInstance = isInstance && "inputKeys" in value;
|
|
98
|
+
isInstance = isInstance && "outputKeys" in value;
|
|
99
|
+
|
|
100
|
+
return isInstance;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function TaskDtoFromJSON(json: any): TaskDto {
|
|
104
|
+
return TaskDtoFromJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function TaskDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskDto {
|
|
108
|
+
if ((json === undefined) || (json === null)) {
|
|
109
|
+
return json;
|
|
110
|
+
}
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'id': json['id'],
|
|
114
|
+
'object': json['object'],
|
|
115
|
+
'createdAt': json['createdAt'],
|
|
116
|
+
'updatedAt': json['updatedAt'],
|
|
117
|
+
'name': json['name'],
|
|
118
|
+
'description': json['description'],
|
|
119
|
+
'retryCount': json['retryCount'],
|
|
120
|
+
'inputKeys': ((json['inputKeys'] as Array<any>).map(TaskDtoInputKeysInnerFromJSON)),
|
|
121
|
+
'outputKeys': ((json['outputKeys'] as Array<any>).map(TaskDtoInputKeysInnerFromJSON)),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function TaskDtoToJSON(value?: TaskDto | null): any {
|
|
126
|
+
if (value === undefined) {
|
|
127
|
+
return undefined;
|
|
128
|
+
}
|
|
129
|
+
if (value === null) {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
|
|
134
|
+
'id': value.id,
|
|
135
|
+
'object': value.object,
|
|
136
|
+
'createdAt': value.createdAt,
|
|
137
|
+
'updatedAt': value.updatedAt,
|
|
138
|
+
'name': value.name,
|
|
139
|
+
'description': value.description,
|
|
140
|
+
'retryCount': value.retryCount,
|
|
141
|
+
'inputKeys': ((value.inputKeys as Array<any>).map(TaskDtoInputKeysInnerToJSON)),
|
|
142
|
+
'outputKeys': ((value.outputKeys as Array<any>).map(TaskDtoInputKeysInnerToJSON)),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Product-Live API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.87.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TaskDtoInputKeysInner
|
|
20
|
+
*/
|
|
21
|
+
export interface TaskDtoInputKeysInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TaskDtoInputKeysInner
|
|
26
|
+
*/
|
|
27
|
+
key?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TaskDtoInputKeysInner
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TaskDtoInputKeysInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTaskDtoInputKeysInner(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
|
|
42
|
+
return isInstance;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TaskDtoInputKeysInnerFromJSON(json: any): TaskDtoInputKeysInner {
|
|
46
|
+
return TaskDtoInputKeysInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TaskDtoInputKeysInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskDtoInputKeysInner {
|
|
50
|
+
if ((json === undefined) || (json === null)) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'key': !exists(json, 'key') ? undefined : json['key'],
|
|
56
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TaskDtoInputKeysInnerToJSON(value?: TaskDtoInputKeysInner | null): any {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'key': value.key,
|
|
70
|
+
'description': value.description,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|