@product-live/api-sdk 2.5.1 → 2.10.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.
Files changed (264) hide show
  1. package/DataFactoryFileApi.md +182 -0
  2. package/JobApi.md +333 -0
  3. package/JobExecutionApi.md +185 -0
  4. package/README.md +80 -0
  5. package/TaskApi.md +375 -0
  6. package/TaskExecutionApi.md +130 -0
  7. package/VariableApi.md +315 -0
  8. package/apis/DataFactoryFileApi.ts +252 -133
  9. package/apis/JobApi.ts +414 -201
  10. package/apis/JobExecutionApi.ts +237 -121
  11. package/apis/TaskApi.ts +458 -213
  12. package/apis/TaskExecutionApi.ts +174 -90
  13. package/apis/VariableApi.ts +406 -195
  14. package/apis/baseapi.ts +37 -0
  15. package/apis/exception.ts +15 -0
  16. package/auth/auth.ts +107 -0
  17. package/configuration.ts +82 -0
  18. package/dist/apis/DataFactoryFileApi.d.ts +14 -19
  19. package/dist/apis/DataFactoryFileApi.js +340 -103
  20. package/dist/apis/DataFactoryFileApi.js.map +1 -1
  21. package/dist/apis/JobApi.d.ts +19 -30
  22. package/dist/apis/JobApi.js +524 -165
  23. package/dist/apis/JobApi.js.map +1 -1
  24. package/dist/apis/JobExecutionApi.d.ts +14 -18
  25. package/dist/apis/JobExecutionApi.js +320 -88
  26. package/dist/apis/JobExecutionApi.js.map +1 -1
  27. package/dist/apis/TaskApi.d.ts +22 -34
  28. package/dist/apis/TaskApi.js +584 -171
  29. package/dist/apis/TaskApi.js.map +1 -1
  30. package/dist/apis/TaskExecutionApi.d.ts +11 -13
  31. package/dist/apis/TaskExecutionApi.js +242 -62
  32. package/dist/apis/TaskExecutionApi.js.map +1 -1
  33. package/dist/apis/VariableApi.d.ts +20 -31
  34. package/dist/apis/VariableApi.js +506 -153
  35. package/dist/apis/VariableApi.js.map +1 -1
  36. package/dist/apis/baseapi.d.ts +18 -0
  37. package/dist/apis/baseapi.js +46 -0
  38. package/dist/apis/baseapi.js.map +1 -0
  39. package/dist/apis/exception.d.ts +10 -0
  40. package/dist/apis/exception.js +32 -0
  41. package/dist/apis/exception.js.map +1 -0
  42. package/dist/auth/auth.d.ts +42 -0
  43. package/dist/auth/auth.js +45 -0
  44. package/dist/auth/auth.js.map +1 -0
  45. package/dist/configuration.d.ts +18 -0
  46. package/dist/configuration.js +22 -0
  47. package/dist/configuration.js.map +1 -0
  48. package/dist/http/http.d.ts +82 -0
  49. package/dist/http/http.js +229 -0
  50. package/dist/http/http.js.map +1 -0
  51. package/dist/http/isomorphic-fetch.d.ts +5 -0
  52. package/dist/http/isomorphic-fetch.js +34 -0
  53. package/dist/http/isomorphic-fetch.js.map +1 -0
  54. package/dist/index.d.ts +10 -3
  55. package/dist/index.js +17 -3
  56. package/dist/index.js.map +1 -1
  57. package/dist/middleware.d.ts +16 -0
  58. package/dist/middleware.js +18 -0
  59. package/dist/middleware.js.map +1 -0
  60. package/dist/models/CreateJobDto.d.ts +27 -24
  61. package/dist/models/CreateJobDto.js +77 -62
  62. package/dist/models/CreateJobDto.js.map +1 -1
  63. package/dist/models/CreateJobExecutionDto.d.ts +18 -8
  64. package/dist/models/CreateJobExecutionDto.js +29 -36
  65. package/dist/models/CreateJobExecutionDto.js.map +1 -1
  66. package/dist/models/CreateTaskDto.d.ts +20 -10
  67. package/dist/models/CreateTaskDto.js +41 -42
  68. package/dist/models/CreateTaskDto.js.map +1 -1
  69. package/dist/models/CreateVariableDto.d.ts +21 -16
  70. package/dist/models/CreateVariableDto.js +41 -46
  71. package/dist/models/CreateVariableDto.js.map +1 -1
  72. package/dist/models/FileDto.d.ts +22 -15
  73. package/dist/models/FileDto.js +47 -48
  74. package/dist/models/FileDto.js.map +1 -1
  75. package/dist/models/FindVariablesRequest.d.ts +24 -7
  76. package/dist/models/FindVariablesRequest.js +42 -33
  77. package/dist/models/FindVariablesRequest.js.map +1 -1
  78. package/dist/models/GetFiles200Response.d.ts +20 -13
  79. package/dist/models/GetFiles200Response.js +29 -38
  80. package/dist/models/GetFiles200Response.js.map +1 -1
  81. package/dist/models/GetJobExecutionById400Response.d.ts +16 -6
  82. package/dist/models/GetJobExecutionById400Response.js +17 -30
  83. package/dist/models/GetJobExecutionById400Response.js.map +1 -1
  84. package/dist/models/GetJobExecutions200Response.d.ts +20 -13
  85. package/dist/models/GetJobExecutions200Response.js +29 -38
  86. package/dist/models/GetJobExecutions200Response.js.map +1 -1
  87. package/dist/models/GetJobs200Response.d.ts +20 -13
  88. package/dist/models/GetJobs200Response.js +29 -38
  89. package/dist/models/GetJobs200Response.js.map +1 -1
  90. package/dist/models/GetTasks200Response.d.ts +20 -13
  91. package/dist/models/GetTasks200Response.js +29 -38
  92. package/dist/models/GetTasks200Response.js.map +1 -1
  93. package/dist/models/GetVariables200Response.d.ts +20 -13
  94. package/dist/models/GetVariables200Response.js +29 -38
  95. package/dist/models/GetVariables200Response.js.map +1 -1
  96. package/dist/models/HighOrderQuery.d.ts +19 -13
  97. package/dist/models/HighOrderQuery.js +23 -37
  98. package/dist/models/HighOrderQuery.js.map +1 -1
  99. package/dist/models/JobDto.d.ts +32 -32
  100. package/dist/models/JobDto.js +101 -77
  101. package/dist/models/JobDto.js.map +1 -1
  102. package/dist/models/JobExecutionDto.d.ts +28 -21
  103. package/dist/models/JobExecutionDto.js +83 -66
  104. package/dist/models/JobExecutionDto.js.map +1 -1
  105. package/dist/models/LowOrderQuery.d.ts +21 -22
  106. package/dist/models/LowOrderQuery.js +35 -49
  107. package/dist/models/LowOrderQuery.js.map +1 -1
  108. package/dist/models/LowOrderQueryValue.d.ts +16 -0
  109. package/dist/models/LowOrderQueryValue.js +15 -0
  110. package/dist/models/LowOrderQueryValue.js.map +1 -0
  111. package/dist/models/ObjectSerializer.d.ts +34 -0
  112. package/dist/models/ObjectSerializer.js +313 -0
  113. package/dist/models/ObjectSerializer.js.map +1 -0
  114. package/dist/models/PatchTaskExecutionDto.d.ts +19 -13
  115. package/dist/models/PatchTaskExecutionDto.js +29 -40
  116. package/dist/models/PatchTaskExecutionDto.js.map +1 -1
  117. package/dist/models/Query.d.ts +17 -20
  118. package/dist/models/Query.js +17 -43
  119. package/dist/models/Query.js.map +1 -1
  120. package/dist/models/TaskDto.d.ts +25 -18
  121. package/dist/models/TaskDto.js +65 -57
  122. package/dist/models/TaskDto.js.map +1 -1
  123. package/dist/models/TaskExecutionDto.d.ts +25 -25
  124. package/dist/models/TaskExecutionDto.js +59 -61
  125. package/dist/models/TaskExecutionDto.js.map +1 -1
  126. package/dist/models/UpdateJobDto.d.ts +28 -25
  127. package/dist/models/UpdateJobDto.js +83 -65
  128. package/dist/models/UpdateJobDto.js.map +1 -1
  129. package/dist/models/UpdateTaskDto.d.ts +21 -11
  130. package/dist/models/UpdateTaskDto.js +47 -45
  131. package/dist/models/UpdateTaskDto.js.map +1 -1
  132. package/dist/models/UpdateVariableDto.d.ts +22 -17
  133. package/dist/models/UpdateVariableDto.js +47 -49
  134. package/dist/models/UpdateVariableDto.js.map +1 -1
  135. package/dist/models/VariableDto.d.ts +26 -24
  136. package/dist/models/VariableDto.js +65 -61
  137. package/dist/models/VariableDto.js.map +1 -1
  138. package/dist/models/all.d.ts +25 -0
  139. package/dist/models/all.js +42 -0
  140. package/dist/models/all.js.map +1 -0
  141. package/dist/rxjsStub.d.ts +10 -0
  142. package/dist/rxjsStub.js +33 -0
  143. package/dist/rxjsStub.js.map +1 -0
  144. package/dist/servers.d.ts +17 -0
  145. package/dist/servers.js +32 -0
  146. package/dist/servers.js.map +1 -0
  147. package/dist/types/ObjectParamAPI.d.ts +160 -0
  148. package/dist/types/ObjectParamAPI.js +129 -0
  149. package/dist/types/ObjectParamAPI.js.map +1 -0
  150. package/dist/types/ObservableAPI.d.ts +89 -0
  151. package/dist/types/ObservableAPI.js +642 -0
  152. package/dist/types/ObservableAPI.js.map +1 -0
  153. package/dist/types/PromiseAPI.d.ts +76 -0
  154. package/dist/types/PromiseAPI.js +148 -0
  155. package/dist/types/PromiseAPI.js.map +1 -0
  156. package/dist/util.d.ts +2 -0
  157. package/dist/util.js +29 -0
  158. package/dist/util.js.map +1 -0
  159. package/git_push.sh +51 -0
  160. package/http/http.ts +229 -0
  161. package/http/isomorphic-fetch.ts +32 -0
  162. package/index.ts +12 -5
  163. package/middleware.ts +66 -0
  164. package/models/CreateJobDto.ts +88 -144
  165. package/models/CreateJobExecutionDto.ts +29 -63
  166. package/models/CreateTaskDto.ts +43 -82
  167. package/models/CreateVariableDto.ts +46 -92
  168. package/models/FileDto.ts +53 -101
  169. package/models/FindVariablesRequest.ts +50 -55
  170. package/models/GetFiles200Response.ts +37 -82
  171. package/models/GetJobExecutionById400Response.ts +15 -45
  172. package/models/GetJobExecutions200Response.ts +37 -82
  173. package/models/GetJobs200Response.ts +37 -82
  174. package/models/GetTasks200Response.ts +37 -82
  175. package/models/GetVariables200Response.ts +37 -82
  176. package/models/HighOrderQuery.ts +30 -75
  177. package/models/JobDto.ts +117 -188
  178. package/models/JobExecutionDto.ts +95 -154
  179. package/models/LowOrderQuery.ts +44 -99
  180. package/models/LowOrderQueryValue.ts +29 -0
  181. package/models/ObjectSerializer.ts +324 -0
  182. package/models/PatchTaskExecutionDto.ts +36 -78
  183. package/models/Query.ts +18 -65
  184. package/models/TaskDto.ts +74 -128
  185. package/models/TaskExecutionDto.ts +68 -131
  186. package/models/UpdateJobDto.ts +95 -153
  187. package/models/UpdateTaskDto.ts +50 -91
  188. package/models/UpdateVariableDto.ts +53 -101
  189. package/models/VariableDto.ts +75 -136
  190. package/models/all.ts +25 -0
  191. package/package.json +35 -10
  192. package/rxjsStub.ts +27 -0
  193. package/servers.ts +55 -0
  194. package/types/ObjectParamAPI.ts +580 -0
  195. package/types/ObservableAPI.ts +701 -0
  196. package/types/PromiseAPI.ts +370 -0
  197. package/util.ts +37 -0
  198. package/apis/index.ts +0 -8
  199. package/dist/apis/index.d.ts +0 -6
  200. package/dist/apis/index.js +0 -23
  201. package/dist/apis/index.js.map +0 -1
  202. package/dist/models/FileControllerGetFiles200Response.d.ts +0 -14
  203. package/dist/models/FileControllerGetFiles200Response.js +0 -43
  204. package/dist/models/FileControllerGetFiles200Response.js.map +0 -1
  205. package/dist/models/JobControllerList200Response.d.ts +0 -14
  206. package/dist/models/JobControllerList200Response.js +0 -43
  207. package/dist/models/JobControllerList200Response.js.map +0 -1
  208. package/dist/models/JobDtoPeriodicityInner.d.ts +0 -8
  209. package/dist/models/JobDtoPeriodicityInner.js +0 -37
  210. package/dist/models/JobDtoPeriodicityInner.js.map +0 -1
  211. package/dist/models/JobDtoTasksInner.d.ts +0 -14
  212. package/dist/models/JobDtoTasksInner.js +0 -45
  213. package/dist/models/JobDtoTasksInner.js.map +0 -1
  214. package/dist/models/JobDtoTitleLocal.d.ts +0 -8
  215. package/dist/models/JobDtoTitleLocal.js +0 -37
  216. package/dist/models/JobDtoTitleLocal.js.map +0 -1
  217. package/dist/models/JobExecutionControllerGetOne400Response.d.ts +0 -7
  218. package/dist/models/JobExecutionControllerGetOne400Response.js +0 -35
  219. package/dist/models/JobExecutionControllerGetOne400Response.js.map +0 -1
  220. package/dist/models/JobExecutionControllerList200Response.d.ts +0 -14
  221. package/dist/models/JobExecutionControllerList200Response.js +0 -43
  222. package/dist/models/JobExecutionControllerList200Response.js.map +0 -1
  223. package/dist/models/JobExecutionDtoInfo.d.ts +0 -7
  224. package/dist/models/JobExecutionDtoInfo.js +0 -35
  225. package/dist/models/JobExecutionDtoInfo.js.map +0 -1
  226. package/dist/models/TaskControllerList200Response.d.ts +0 -14
  227. package/dist/models/TaskControllerList200Response.js +0 -43
  228. package/dist/models/TaskControllerList200Response.js.map +0 -1
  229. package/dist/models/TaskDtoInputKeysInner.d.ts +0 -8
  230. package/dist/models/TaskDtoInputKeysInner.js +0 -37
  231. package/dist/models/TaskDtoInputKeysInner.js.map +0 -1
  232. package/dist/models/VariableControllerList200Response.d.ts +0 -14
  233. package/dist/models/VariableControllerList200Response.js +0 -43
  234. package/dist/models/VariableControllerList200Response.js.map +0 -1
  235. package/dist/models/index.d.ts +0 -24
  236. package/dist/models/index.js +0 -41
  237. package/dist/models/index.js.map +0 -1
  238. package/dist/runtime.d.ts +0 -154
  239. package/dist/runtime.js +0 -306
  240. package/dist/runtime.js.map +0 -1
  241. package/models/ExecuteJob400Response.ts +0 -65
  242. package/models/ExecuteJobDto.ts +0 -97
  243. package/models/ExecuteJobDtoInfo.ts +0 -65
  244. package/models/ExecuteJobDtoJob.ts +0 -81
  245. package/models/FileControllerGetFiles200Response.ts +0 -98
  246. package/models/FileCreatedDto.ts +0 -111
  247. package/models/JobControllerList200Response.ts +0 -98
  248. package/models/JobDtoPeriodicitiesInner.ts +0 -73
  249. package/models/JobDtoPeriodicityInner.ts +0 -73
  250. package/models/JobDtoProject.ts +0 -73
  251. package/models/JobDtoTasksInner.ts +0 -105
  252. package/models/JobDtoTitleLocal.ts +0 -73
  253. package/models/JobExecutionControllerGetOne400Response.ts +0 -65
  254. package/models/JobExecutionControllerList200Response.ts +0 -98
  255. package/models/JobExecutionDtoEventsInner.ts +0 -89
  256. package/models/JobExecutionDtoInfo.ts +0 -65
  257. package/models/JobExecutionDtoJob.ts +0 -81
  258. package/models/TaskControllerList200Response.ts +0 -98
  259. package/models/TaskDtoInputKeysInner.ts +0 -73
  260. package/models/TaskInstanceDto.ts +0 -143
  261. package/models/TaskInstanceUpdateDto.ts +0 -107
  262. package/models/VariableControllerList200Response.ts +0 -98
  263. package/models/index.ts +0 -26
  264. package/runtime.ts +0 -425
@@ -1,10 +1,8 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
1
  /**
4
2
  * Product-Live API
5
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
4
  *
7
- * The version of the OpenAPI document: 2.5.1
5
+ * OpenAPI spec version: 2.8.1
8
6
  *
9
7
  *
10
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,104 +10,51 @@
12
10
  * Do not edit the class manually.
13
11
  */
14
12
 
15
- import { exists, mapValues } from '../runtime';
16
- import type { Any } from './Any';
17
- import {
18
- AnyFromJSON,
19
- AnyFromJSONTyped,
20
- AnyToJSON,
21
- } from './Any';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface LowOrderQuery
27
- */
28
- export interface LowOrderQuery {
29
- /**
30
- *
31
- * @type {Any}
32
- * @memberof LowOrderQuery
33
- */
34
- value?: Any;
35
- /**
36
- *
37
- * @type {string}
38
- * @memberof LowOrderQuery
39
- */
40
- field?: string;
41
- /**
42
- *
43
- * @type {boolean}
44
- * @memberof LowOrderQuery
45
- */
46
- caseSensitive?: boolean;
47
- /**
48
- *
49
- * @type {string}
50
- * @memberof LowOrderQuery
51
- */
52
- type?: LowOrderQueryTypeEnum;
53
- }
54
-
55
-
56
- /**
57
- * @export
58
- */
59
- export const LowOrderQueryTypeEnum = {
60
- Eq: 'eq',
61
- Eq: 'eq',
62
- Search: 'search',
63
- In: 'in',
64
- True: 'true',
65
- False: 'false',
66
- Greater: 'greater',
67
- GreaterOrEqual: 'greaterOrEqual',
68
- Lower: 'lower',
69
- LowerOrEqual: 'lowerOrEqual'
70
- } as const;
71
- export type LowOrderQueryTypeEnum = typeof LowOrderQueryTypeEnum[keyof typeof LowOrderQueryTypeEnum];
72
-
73
-
74
- /**
75
- * Check if a given object implements the LowOrderQuery interface.
76
- */
77
- export function instanceOfLowOrderQuery(value: object): boolean {
78
- let isInstance = true;
79
-
80
- return isInstance;
81
- }
82
-
83
- export function LowOrderQueryFromJSON(json: any): LowOrderQuery {
84
- return LowOrderQueryFromJSONTyped(json, false);
85
- }
86
-
87
- export function LowOrderQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): LowOrderQuery {
88
- if ((json === undefined) || (json === null)) {
89
- return json;
13
+ import { LowOrderQueryValue } from '../models/LowOrderQueryValue';
14
+ import { HttpFile } from '../http/http';
15
+
16
+ export class LowOrderQuery {
17
+ 'value'?: LowOrderQueryValue;
18
+ 'field'?: string;
19
+ 'caseSensitive'?: boolean;
20
+ 'type'?: LowOrderQueryTypeEnum;
21
+
22
+ static readonly discriminator: string | undefined = undefined;
23
+
24
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
25
+ {
26
+ "name": "value",
27
+ "baseName": "value",
28
+ "type": "LowOrderQueryValue",
29
+ "format": ""
30
+ },
31
+ {
32
+ "name": "field",
33
+ "baseName": "field",
34
+ "type": "string",
35
+ "format": ""
36
+ },
37
+ {
38
+ "name": "caseSensitive",
39
+ "baseName": "caseSensitive",
40
+ "type": "boolean",
41
+ "format": ""
42
+ },
43
+ {
44
+ "name": "type",
45
+ "baseName": "type",
46
+ "type": "LowOrderQueryTypeEnum",
47
+ "format": ""
48
+ } ];
49
+
50
+ static getAttributeTypeMap() {
51
+ return LowOrderQuery.attributeTypeMap;
90
52
  }
91
- return {
92
-
93
- 'value': !exists(json, 'value') ? undefined : AnyFromJSON(json['value']),
94
- 'field': !exists(json, 'field') ? undefined : json['field'],
95
- 'caseSensitive': !exists(json, 'caseSensitive') ? undefined : json['caseSensitive'],
96
- 'type': !exists(json, 'type') ? undefined : json['type'],
97
- };
98
- }
99
53
 
100
- export function LowOrderQueryToJSON(value?: LowOrderQuery | null): any {
101
- if (value === undefined) {
102
- return undefined;
103
- }
104
- if (value === null) {
105
- return null;
54
+ public constructor() {
106
55
  }
107
- return {
108
-
109
- 'value': AnyToJSON(value.value),
110
- 'field': value.field,
111
- 'caseSensitive': value.caseSensitive,
112
- 'type': value.type,
113
- };
114
56
  }
115
57
 
58
+
59
+ export type LowOrderQueryTypeEnum = "eq" | "eq" | "search" | "in" | "true" | "false" | "greater" | "greaterOrEqual" | "lower" | "lowerOrEqual" ;
60
+
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Product-Live API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * OpenAPI spec version: 2.8.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+
13
+ import { HttpFile } from '../http/http';
14
+
15
+ export class LowOrderQueryValue {
16
+
17
+ static readonly discriminator: string | undefined = undefined;
18
+
19
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
20
+ ];
21
+
22
+ static getAttributeTypeMap() {
23
+ return LowOrderQueryValue.attributeTypeMap;
24
+ }
25
+
26
+ public constructor() {
27
+ }
28
+ }
29
+
@@ -0,0 +1,324 @@
1
+ export * from '../models/CreateJobDto';
2
+ export * from '../models/CreateJobExecutionDto';
3
+ export * from '../models/CreateTaskDto';
4
+ export * from '../models/CreateVariableDto';
5
+ export * from '../models/FileDto';
6
+ export * from '../models/FindVariablesRequest';
7
+ export * from '../models/GetFiles200Response';
8
+ export * from '../models/GetJobExecutionById400Response';
9
+ export * from '../models/GetJobExecutions200Response';
10
+ export * from '../models/GetJobs200Response';
11
+ export * from '../models/GetTasks200Response';
12
+ export * from '../models/GetVariables200Response';
13
+ export * from '../models/HighOrderQuery';
14
+ export * from '../models/JobDto';
15
+ export * from '../models/JobExecutionDto';
16
+ export * from '../models/LowOrderQuery';
17
+ export * from '../models/LowOrderQueryValue';
18
+ export * from '../models/PatchTaskExecutionDto';
19
+ export * from '../models/Query';
20
+ export * from '../models/TaskDto';
21
+ export * from '../models/TaskExecutionDto';
22
+ export * from '../models/UpdateJobDto';
23
+ export * from '../models/UpdateTaskDto';
24
+ export * from '../models/UpdateVariableDto';
25
+ export * from '../models/VariableDto';
26
+
27
+ import { CreateJobDto , CreateJobDtoStatusEnum } from '../models/CreateJobDto';
28
+ import { CreateJobExecutionDto } from '../models/CreateJobExecutionDto';
29
+ import { CreateTaskDto } from '../models/CreateTaskDto';
30
+ import { CreateVariableDto , CreateVariableDtoStatusEnum } from '../models/CreateVariableDto';
31
+ import { FileDto, FileDtoObjectEnum } from '../models/FileDto';
32
+ import { FindVariablesRequest, FindVariablesRequestTypeEnum } from '../models/FindVariablesRequest';
33
+ import { GetFiles200Response, GetFiles200ResponseObjectEnum } from '../models/GetFiles200Response';
34
+ import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
35
+ import { GetJobExecutions200Response, GetJobExecutions200ResponseObjectEnum } from '../models/GetJobExecutions200Response';
36
+ import { GetJobs200Response, GetJobs200ResponseObjectEnum } from '../models/GetJobs200Response';
37
+ import { GetTasks200Response, GetTasks200ResponseObjectEnum } from '../models/GetTasks200Response';
38
+ import { GetVariables200Response, GetVariables200ResponseObjectEnum } from '../models/GetVariables200Response';
39
+ import { HighOrderQuery , HighOrderQueryTypeEnum } from '../models/HighOrderQuery';
40
+ import { JobDto , JobDtoStatusEnum , JobDtoObjectEnum } from '../models/JobDto';
41
+ import { JobExecutionDto , JobExecutionDtoObjectEnum } from '../models/JobExecutionDto';
42
+ import { LowOrderQuery , LowOrderQueryTypeEnum } from '../models/LowOrderQuery';
43
+ import { LowOrderQueryValue } from '../models/LowOrderQueryValue';
44
+ import { PatchTaskExecutionDto , PatchTaskExecutionDtoStatusEnum } from '../models/PatchTaskExecutionDto';
45
+ import { Query, QueryTypeEnum } from '../models/Query';
46
+ import { TaskDto , TaskDtoObjectEnum } from '../models/TaskDto';
47
+ import { TaskExecutionDto , TaskExecutionDtoObjectEnum , TaskExecutionDtoStatusEnum } from '../models/TaskExecutionDto';
48
+ import { UpdateJobDto , UpdateJobDtoStatusEnum } from '../models/UpdateJobDto';
49
+ import { UpdateTaskDto } from '../models/UpdateTaskDto';
50
+ import { UpdateVariableDto , UpdateVariableDtoStatusEnum } from '../models/UpdateVariableDto';
51
+ import { VariableDto , VariableDtoStatusEnum , VariableDtoObjectEnum } from '../models/VariableDto';
52
+
53
+ /* tslint:disable:no-unused-variable */
54
+ let primitives = [
55
+ "string",
56
+ "boolean",
57
+ "double",
58
+ "integer",
59
+ "long",
60
+ "float",
61
+ "number",
62
+ "any"
63
+ ];
64
+
65
+ const supportedMediaTypes: { [mediaType: string]: number } = {
66
+ "application/json": Infinity,
67
+ "application/octet-stream": 0,
68
+ "application/x-www-form-urlencoded": 0
69
+ }
70
+
71
+
72
+ let enumsMap: Set<string> = new Set<string>([
73
+ "CreateJobDtoStatusEnum",
74
+ "CreateVariableDtoStatusEnum",
75
+ "FileDtoObjectEnum",
76
+ "FindVariablesRequestTypeEnum",
77
+ "GetFiles200ResponseObjectEnum",
78
+ "GetJobExecutions200ResponseObjectEnum",
79
+ "GetJobs200ResponseObjectEnum",
80
+ "GetTasks200ResponseObjectEnum",
81
+ "GetVariables200ResponseObjectEnum",
82
+ "HighOrderQueryTypeEnum",
83
+ "JobDtoStatusEnum",
84
+ "JobDtoObjectEnum",
85
+ "JobExecutionDtoObjectEnum",
86
+ "LowOrderQueryTypeEnum",
87
+ "PatchTaskExecutionDtoStatusEnum",
88
+ "QueryTypeEnum",
89
+ "TaskDtoObjectEnum",
90
+ "TaskExecutionDtoObjectEnum",
91
+ "TaskExecutionDtoStatusEnum",
92
+ "UpdateJobDtoStatusEnum",
93
+ "UpdateVariableDtoStatusEnum",
94
+ "VariableDtoStatusEnum",
95
+ "VariableDtoObjectEnum",
96
+ ]);
97
+
98
+ let typeMap: {[index: string]: any} = {
99
+ "CreateJobDto": CreateJobDto,
100
+ "CreateJobExecutionDto": CreateJobExecutionDto,
101
+ "CreateTaskDto": CreateTaskDto,
102
+ "CreateVariableDto": CreateVariableDto,
103
+ "FileDto": FileDto,
104
+ "FindVariablesRequest": FindVariablesRequest,
105
+ "GetFiles200Response": GetFiles200Response,
106
+ "GetJobExecutionById400Response": GetJobExecutionById400Response,
107
+ "GetJobExecutions200Response": GetJobExecutions200Response,
108
+ "GetJobs200Response": GetJobs200Response,
109
+ "GetTasks200Response": GetTasks200Response,
110
+ "GetVariables200Response": GetVariables200Response,
111
+ "HighOrderQuery": HighOrderQuery,
112
+ "JobDto": JobDto,
113
+ "JobExecutionDto": JobExecutionDto,
114
+ "LowOrderQuery": LowOrderQuery,
115
+ "LowOrderQueryValue": LowOrderQueryValue,
116
+ "PatchTaskExecutionDto": PatchTaskExecutionDto,
117
+ "Query": Query,
118
+ "TaskDto": TaskDto,
119
+ "TaskExecutionDto": TaskExecutionDto,
120
+ "UpdateJobDto": UpdateJobDto,
121
+ "UpdateTaskDto": UpdateTaskDto,
122
+ "UpdateVariableDto": UpdateVariableDto,
123
+ "VariableDto": VariableDto,
124
+ }
125
+
126
+ export class ObjectSerializer {
127
+ public static findCorrectType(data: any, expectedType: string) {
128
+ if (data == undefined) {
129
+ return expectedType;
130
+ } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
131
+ return expectedType;
132
+ } else if (expectedType === "Date") {
133
+ return expectedType;
134
+ } else {
135
+ if (enumsMap.has(expectedType)) {
136
+ return expectedType;
137
+ }
138
+
139
+ if (!typeMap[expectedType]) {
140
+ return expectedType; // w/e we don't know the type
141
+ }
142
+
143
+ // Check the discriminator
144
+ let discriminatorProperty = typeMap[expectedType].discriminator;
145
+ if (discriminatorProperty == null) {
146
+ return expectedType; // the type does not have a discriminator. use it.
147
+ } else {
148
+ if (data[discriminatorProperty]) {
149
+ var discriminatorType = data[discriminatorProperty];
150
+ if(typeMap[discriminatorType]){
151
+ return discriminatorType; // use the type given in the discriminator
152
+ } else {
153
+ return expectedType; // discriminator did not map to a type
154
+ }
155
+ } else {
156
+ return expectedType; // discriminator was not present (or an empty string)
157
+ }
158
+ }
159
+ }
160
+ }
161
+
162
+ public static serialize(data: any, type: string, format: string) {
163
+ if (data == undefined) {
164
+ return data;
165
+ } else if (primitives.indexOf(type.toLowerCase()) !== -1) {
166
+ return data;
167
+ } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
168
+ let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
169
+ subType = subType.substring(0, subType.length - 1); // Type> => Type
170
+ let transformedData: any[] = [];
171
+ for (let date of data) {
172
+ transformedData.push(ObjectSerializer.serialize(date, subType, format));
173
+ }
174
+ return transformedData;
175
+ } else if (type === "Date") {
176
+ if (format == "date") {
177
+ let month = data.getMonth()+1
178
+ month = month < 10 ? "0" + month.toString() : month.toString()
179
+ let day = data.getDate();
180
+ day = day < 10 ? "0" + day.toString() : day.toString();
181
+
182
+ return data.getFullYear() + "-" + month + "-" + day;
183
+ } else {
184
+ return data.toISOString();
185
+ }
186
+ } else {
187
+ if (enumsMap.has(type)) {
188
+ return data;
189
+ }
190
+ if (!typeMap[type]) { // in case we dont know the type
191
+ return data;
192
+ }
193
+
194
+ // Get the actual type of this object
195
+ type = this.findCorrectType(data, type);
196
+
197
+ // get the map for the correct type.
198
+ let attributeTypes = typeMap[type].getAttributeTypeMap();
199
+ let instance: {[index: string]: any} = {};
200
+ for (let attributeType of attributeTypes) {
201
+ instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type, attributeType.format);
202
+ }
203
+ return instance;
204
+ }
205
+ }
206
+
207
+ public static deserialize(data: any, type: string, format: string) {
208
+ // polymorphism may change the actual type.
209
+ type = ObjectSerializer.findCorrectType(data, type);
210
+ if (data == undefined) {
211
+ return data;
212
+ } else if (primitives.indexOf(type.toLowerCase()) !== -1) {
213
+ return data;
214
+ } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
215
+ let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
216
+ subType = subType.substring(0, subType.length - 1); // Type> => Type
217
+ let transformedData: any[] = [];
218
+ for (let date of data) {
219
+ transformedData.push(ObjectSerializer.deserialize(date, subType, format));
220
+ }
221
+ return transformedData;
222
+ } else if (type === "Date") {
223
+ return new Date(data);
224
+ } else {
225
+ if (enumsMap.has(type)) {// is Enum
226
+ return data;
227
+ }
228
+
229
+ if (!typeMap[type]) { // dont know the type
230
+ return data;
231
+ }
232
+ let instance = new typeMap[type]();
233
+ let attributeTypes = typeMap[type].getAttributeTypeMap();
234
+ for (let attributeType of attributeTypes) {
235
+ let value = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type, attributeType.format);
236
+ if (value !== undefined) {
237
+ instance[attributeType.name] = value;
238
+ }
239
+ }
240
+ return instance;
241
+ }
242
+ }
243
+
244
+
245
+ /**
246
+ * Normalize media type
247
+ *
248
+ * We currently do not handle any media types attributes, i.e. anything
249
+ * after a semicolon. All content is assumed to be UTF-8 compatible.
250
+ */
251
+ public static normalizeMediaType(mediaType: string | undefined): string | undefined {
252
+ if (mediaType === undefined) {
253
+ return undefined;
254
+ }
255
+ return mediaType.split(";")[0].trim().toLowerCase();
256
+ }
257
+
258
+ /**
259
+ * From a list of possible media types, choose the one we can handle best.
260
+ *
261
+ * The order of the given media types does not have any impact on the choice
262
+ * made.
263
+ */
264
+ public static getPreferredMediaType(mediaTypes: Array<string>): string {
265
+ /** According to OAS 3 we should default to json */
266
+ if (!mediaTypes) {
267
+ return "application/json";
268
+ }
269
+
270
+ const normalMediaTypes = mediaTypes.map(this.normalizeMediaType);
271
+ let selectedMediaType: string | undefined = undefined;
272
+ let selectedRank: number = -Infinity;
273
+ for (const mediaType of normalMediaTypes) {
274
+ if (supportedMediaTypes[mediaType!] > selectedRank) {
275
+ selectedMediaType = mediaType;
276
+ selectedRank = supportedMediaTypes[mediaType!];
277
+ }
278
+ }
279
+
280
+ if (selectedMediaType === undefined) {
281
+ throw new Error("None of the given media types are supported: " + mediaTypes.join(", "));
282
+ }
283
+
284
+ return selectedMediaType!;
285
+ }
286
+
287
+ /**
288
+ * Convert data to a string according the given media type
289
+ */
290
+ public static stringify(data: any, mediaType: string): string {
291
+ if (mediaType === "text/plain") {
292
+ return String(data);
293
+ }
294
+
295
+ if (mediaType === "application/json") {
296
+ return JSON.stringify(data);
297
+ }
298
+
299
+ throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.stringify.");
300
+ }
301
+
302
+ /**
303
+ * Parse data from a string according to the given media type
304
+ */
305
+ public static parse(rawData: string, mediaType: string | undefined) {
306
+ if (mediaType === undefined) {
307
+ throw new Error("Cannot parse content. No Content-Type defined.");
308
+ }
309
+
310
+ if (mediaType === "text/plain") {
311
+ return rawData;
312
+ }
313
+
314
+ if (mediaType === "application/json") {
315
+ return JSON.parse(rawData);
316
+ }
317
+
318
+ if (mediaType === "text/html") {
319
+ return rawData;
320
+ }
321
+
322
+ throw new Error("The mediaType " + mediaType + " is not supported by ObjectSerializer.parse.");
323
+ }
324
+ }
@@ -1,10 +1,8 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
1
  /**
4
2
  * Product-Live API
5
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
4
  *
7
- * The version of the OpenAPI document: 2.5.1
5
+ * OpenAPI spec version: 2.8.1
8
6
  *
9
7
  *
10
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,83 +10,43 @@
12
10
  * Do not edit the class manually.
13
11
  */
14
12
 
15
- import { exists, mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface PatchTaskExecutionDto
20
- */
21
- export interface PatchTaskExecutionDto {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof PatchTaskExecutionDto
26
- */
27
- id: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof PatchTaskExecutionDto
32
- */
33
- status: PatchTaskExecutionDtoStatusEnum;
34
- /**
35
- *
36
- * @type {{ [key: string]: any; }}
37
- * @memberof PatchTaskExecutionDto
38
- */
39
- output?: { [key: string]: any; };
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const PatchTaskExecutionDtoStatusEnum = {
47
- Failed: 'FAILED',
48
- Completed: 'COMPLETED'
49
- } as const;
50
- export type PatchTaskExecutionDtoStatusEnum = typeof PatchTaskExecutionDtoStatusEnum[keyof typeof PatchTaskExecutionDtoStatusEnum];
51
-
52
-
53
- /**
54
- * Check if a given object implements the PatchTaskExecutionDto interface.
55
- */
56
- export function instanceOfPatchTaskExecutionDto(value: object): boolean {
57
- let isInstance = true;
58
- isInstance = isInstance && "id" in value;
59
- isInstance = isInstance && "status" in value;
60
-
61
- return isInstance;
62
- }
63
-
64
- export function PatchTaskExecutionDtoFromJSON(json: any): PatchTaskExecutionDto {
65
- return PatchTaskExecutionDtoFromJSONTyped(json, false);
66
- }
67
-
68
- export function PatchTaskExecutionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchTaskExecutionDto {
69
- if ((json === undefined) || (json === null)) {
70
- return json;
13
+ import { HttpFile } from '../http/http';
14
+
15
+ export class PatchTaskExecutionDto {
16
+ 'id': string;
17
+ 'status': PatchTaskExecutionDtoStatusEnum;
18
+ 'output'?: { [key: string]: any; };
19
+
20
+ static readonly discriminator: string | undefined = undefined;
21
+
22
+ static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
23
+ {
24
+ "name": "id",
25
+ "baseName": "id",
26
+ "type": "string",
27
+ "format": ""
28
+ },
29
+ {
30
+ "name": "status",
31
+ "baseName": "status",
32
+ "type": "PatchTaskExecutionDtoStatusEnum",
33
+ "format": ""
34
+ },
35
+ {
36
+ "name": "output",
37
+ "baseName": "output",
38
+ "type": "{ [key: string]: any; }",
39
+ "format": ""
40
+ } ];
41
+
42
+ static getAttributeTypeMap() {
43
+ return PatchTaskExecutionDto.attributeTypeMap;
71
44
  }
72
- return {
73
-
74
- 'id': json['id'],
75
- 'status': json['status'],
76
- 'output': !exists(json, 'output') ? undefined : json['output'],
77
- };
78
- }
79
45
 
80
- export function PatchTaskExecutionDtoToJSON(value?: PatchTaskExecutionDto | null): any {
81
- if (value === undefined) {
82
- return undefined;
83
- }
84
- if (value === null) {
85
- return null;
46
+ public constructor() {
86
47
  }
87
- return {
88
-
89
- 'id': value.id,
90
- 'status': value.status,
91
- 'output': value.output,
92
- };
93
48
  }
94
49
 
50
+
51
+ export type PatchTaskExecutionDtoStatusEnum = "FAILED" | "COMPLETED" ;
52
+