@product-live/api-sdk 2.4.1 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +412 -208
  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 +418 -149
  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 -31
  22. package/dist/apis/JobApi.js +524 -171
  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 -24
  34. package/dist/apis/VariableApi.js +508 -119
  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 -9
  64. package/dist/models/CreateJobExecutionDto.js +29 -38
  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 -11
  73. package/dist/models/FileDto.js +47 -45
  74. package/dist/models/FileDto.js.map +1 -1
  75. package/dist/models/FindVariablesRequest.d.ts +24 -0
  76. package/dist/models/FindVariablesRequest.js +46 -0
  77. package/dist/models/FindVariablesRequest.js.map +1 -0
  78. package/dist/models/GetFiles200Response.d.ts +21 -0
  79. package/dist/models/GetFiles200Response.js +34 -0
  80. package/dist/models/GetFiles200Response.js.map +1 -0
  81. package/dist/models/GetJobExecutionById400Response.d.ts +17 -0
  82. package/dist/models/GetJobExecutionById400Response.js +22 -0
  83. package/dist/models/GetJobExecutionById400Response.js.map +1 -0
  84. package/dist/models/GetJobExecutions200Response.d.ts +21 -0
  85. package/dist/models/GetJobExecutions200Response.js +34 -0
  86. package/dist/models/GetJobExecutions200Response.js.map +1 -0
  87. package/dist/models/GetJobs200Response.d.ts +21 -0
  88. package/dist/models/GetJobs200Response.js +34 -0
  89. package/dist/models/GetJobs200Response.js.map +1 -0
  90. package/dist/models/GetTasks200Response.d.ts +21 -0
  91. package/dist/models/GetTasks200Response.js +34 -0
  92. package/dist/models/GetTasks200Response.js.map +1 -0
  93. package/dist/models/GetVariables200Response.d.ts +21 -0
  94. package/dist/models/GetVariables200Response.js +34 -0
  95. package/dist/models/GetVariables200Response.js.map +1 -0
  96. package/dist/models/HighOrderQuery.d.ts +20 -0
  97. package/dist/models/HighOrderQuery.js +28 -0
  98. package/dist/models/HighOrderQuery.js.map +1 -0
  99. package/dist/models/JobDto.d.ts +32 -28
  100. package/dist/models/JobDto.js +101 -74
  101. package/dist/models/JobDto.js.map +1 -1
  102. package/dist/models/JobExecutionDto.d.ts +28 -33
  103. package/dist/models/JobExecutionDto.js +83 -77
  104. package/dist/models/JobExecutionDto.js.map +1 -1
  105. package/dist/models/LowOrderQuery.d.ts +22 -0
  106. package/dist/models/LowOrderQuery.js +40 -0
  107. package/dist/models/LowOrderQuery.js.map +1 -0
  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 +18 -0
  118. package/dist/models/Query.js +22 -0
  119. package/dist/models/Query.js.map +1 -0
  120. package/dist/models/TaskDto.d.ts +25 -14
  121. package/dist/models/TaskDto.js +65 -54
  122. package/dist/models/TaskDto.js.map +1 -1
  123. package/dist/models/TaskExecutionDto.d.ts +25 -21
  124. package/dist/models/TaskExecutionDto.js +59 -58
  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 -20
  136. package/dist/models/VariableDto.js +65 -58
  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 -71
  166. package/models/CreateTaskDto.ts +43 -82
  167. package/models/CreateVariableDto.ts +46 -92
  168. package/models/FileDto.ts +53 -91
  169. package/models/FindVariablesRequest.ts +70 -0
  170. package/models/GetFiles200Response.ts +53 -0
  171. package/models/GetJobExecutionById400Response.ts +35 -0
  172. package/models/GetJobExecutions200Response.ts +53 -0
  173. package/models/GetJobs200Response.ts +53 -0
  174. package/models/GetTasks200Response.ts +53 -0
  175. package/models/GetVariables200Response.ts +53 -0
  176. package/models/HighOrderQuery.ts +46 -0
  177. package/models/JobDto.ts +117 -180
  178. package/models/JobExecutionDto.ts +95 -165
  179. package/models/LowOrderQuery.ts +60 -0
  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 +38 -0
  184. package/models/TaskDto.ts +74 -118
  185. package/models/TaskExecutionDto.ts +68 -123
  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 -128
  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 -20
  236. package/dist/models/index.js +0 -37
  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 -22
  264. package/runtime.ts +0 -425
package/servers.ts ADDED
@@ -0,0 +1,55 @@
1
+ import { RequestContext, HttpMethod } from "./http/http";
2
+
3
+ export interface BaseServerConfiguration {
4
+ makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext;
5
+ }
6
+
7
+ /**
8
+ *
9
+ * Represents the configuration of a server including its
10
+ * url template and variable configuration based on the url.
11
+ *
12
+ */
13
+ export class ServerConfiguration<T extends { [key: string]: string }> implements BaseServerConfiguration {
14
+ public constructor(private url: string, private variableConfiguration: T) {}
15
+
16
+ /**
17
+ * Sets the value of the variables of this server. Variables are included in
18
+ * the `url` of this ServerConfiguration in the form `{variableName}`
19
+ *
20
+ * @param variableConfiguration a partial variable configuration for the
21
+ * variables contained in the url
22
+ */
23
+ public setVariables(variableConfiguration: Partial<T>) {
24
+ Object.assign(this.variableConfiguration, variableConfiguration);
25
+ }
26
+
27
+ public getConfiguration(): T {
28
+ return this.variableConfiguration
29
+ }
30
+
31
+ private getUrl() {
32
+ let replacedUrl = this.url;
33
+ for (const key in this.variableConfiguration) {
34
+ var re = new RegExp("{" + key + "}","g");
35
+ replacedUrl = replacedUrl.replace(re, this.variableConfiguration[key]);
36
+ }
37
+ return replacedUrl
38
+ }
39
+
40
+ /**
41
+ * Creates a new request context for this server using the url with variables
42
+ * replaced with their respective values and the endpoint of the request appended.
43
+ *
44
+ * @param endpoint the endpoint to be queried on the server
45
+ * @param httpMethod httpMethod to be used
46
+ *
47
+ */
48
+ public makeRequestContext(endpoint: string, httpMethod: HttpMethod): RequestContext {
49
+ return new RequestContext(this.getUrl() + endpoint, httpMethod);
50
+ }
51
+ }
52
+
53
+ export const server1 = new ServerConfiguration<{ }>("", { })
54
+
55
+ export const servers = [server1];
@@ -0,0 +1,580 @@
1
+ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
2
+ import { Configuration} from '../configuration'
3
+
4
+ import { CreateJobDto } from '../models/CreateJobDto';
5
+ import { CreateJobExecutionDto } from '../models/CreateJobExecutionDto';
6
+ import { CreateTaskDto } from '../models/CreateTaskDto';
7
+ import { CreateVariableDto } from '../models/CreateVariableDto';
8
+ import { FileDto } from '../models/FileDto';
9
+ import { FindVariablesRequest } from '../models/FindVariablesRequest';
10
+ import { GetFiles200Response } from '../models/GetFiles200Response';
11
+ import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
12
+ import { GetJobExecutions200Response } from '../models/GetJobExecutions200Response';
13
+ import { GetJobs200Response } from '../models/GetJobs200Response';
14
+ import { GetTasks200Response } from '../models/GetTasks200Response';
15
+ import { GetVariables200Response } from '../models/GetVariables200Response';
16
+ import { HighOrderQuery } from '../models/HighOrderQuery';
17
+ import { JobDto } from '../models/JobDto';
18
+ import { JobExecutionDto } from '../models/JobExecutionDto';
19
+ import { LowOrderQuery } from '../models/LowOrderQuery';
20
+ import { LowOrderQueryValue } from '../models/LowOrderQueryValue';
21
+ import { PatchTaskExecutionDto } from '../models/PatchTaskExecutionDto';
22
+ import { Query } from '../models/Query';
23
+ import { TaskDto } from '../models/TaskDto';
24
+ import { TaskExecutionDto } from '../models/TaskExecutionDto';
25
+ import { UpdateJobDto } from '../models/UpdateJobDto';
26
+ import { UpdateTaskDto } from '../models/UpdateTaskDto';
27
+ import { UpdateVariableDto } from '../models/UpdateVariableDto';
28
+ import { VariableDto } from '../models/VariableDto';
29
+
30
+ import { ObservableDataFactoryFileApi } from "./ObservableAPI";
31
+ import { DataFactoryFileApiRequestFactory, DataFactoryFileApiResponseProcessor} from "../apis/DataFactoryFileApi";
32
+
33
+ export interface DataFactoryFileApiGetFileByIdRequest {
34
+ /**
35
+ *
36
+ * @type string
37
+ * @memberof DataFactoryFileApigetFileById
38
+ */
39
+ id: string
40
+ }
41
+
42
+ export interface DataFactoryFileApiGetFilesRequest {
43
+ /**
44
+ *
45
+ * @type number
46
+ * @memberof DataFactoryFileApigetFiles
47
+ */
48
+ size?: number
49
+ /**
50
+ *
51
+ * @type number
52
+ * @memberof DataFactoryFileApigetFiles
53
+ */
54
+ page?: number
55
+ }
56
+
57
+ export interface DataFactoryFileApiUploadFileRequest {
58
+ /**
59
+ *
60
+ * @type HttpFile
61
+ * @memberof DataFactoryFileApiuploadFile
62
+ */
63
+ file: HttpFile
64
+ }
65
+
66
+ export class ObjectDataFactoryFileApi {
67
+ private api: ObservableDataFactoryFileApi
68
+
69
+ public constructor(configuration: Configuration, requestFactory?: DataFactoryFileApiRequestFactory, responseProcessor?: DataFactoryFileApiResponseProcessor) {
70
+ this.api = new ObservableDataFactoryFileApi(configuration, requestFactory, responseProcessor);
71
+ }
72
+
73
+ /**
74
+ * (Experimental) - Get a Data Factory File by id
75
+ * @param param the request object
76
+ */
77
+ public getFileById(param: DataFactoryFileApiGetFileByIdRequest, options?: Configuration): Promise<FileDto> {
78
+ return this.api.getFileById(param.id, options).toPromise();
79
+ }
80
+
81
+ /**
82
+ * (Experimental) - Get a list of Data Factory File
83
+ * @param param the request object
84
+ */
85
+ public getFiles(param: DataFactoryFileApiGetFilesRequest = {}, options?: Configuration): Promise<GetFiles200Response> {
86
+ return this.api.getFiles(param.size, param.page, options).toPromise();
87
+ }
88
+
89
+ /**
90
+ * Post a file so it can be consume by a Data Factory job
91
+ * @param param the request object
92
+ */
93
+ public uploadFile(param: DataFactoryFileApiUploadFileRequest, options?: Configuration): Promise<FileDto> {
94
+ return this.api.uploadFile(param.file, options).toPromise();
95
+ }
96
+
97
+ }
98
+
99
+ import { ObservableJobApi } from "./ObservableAPI";
100
+ import { JobApiRequestFactory, JobApiResponseProcessor} from "../apis/JobApi";
101
+
102
+ export interface JobApiCreateJobRequest {
103
+ /**
104
+ *
105
+ * @type CreateJobDto
106
+ * @memberof JobApicreateJob
107
+ */
108
+ createJobDto: CreateJobDto
109
+ }
110
+
111
+ export interface JobApiGetJobByIdRequest {
112
+ /**
113
+ *
114
+ * @type string
115
+ * @memberof JobApigetJobById
116
+ */
117
+ id: string
118
+ }
119
+
120
+ export interface JobApiGetJobsRequest {
121
+ /**
122
+ *
123
+ * @type number
124
+ * @memberof JobApigetJobs
125
+ */
126
+ size?: number
127
+ /**
128
+ *
129
+ * @type number
130
+ * @memberof JobApigetJobs
131
+ */
132
+ page?: number
133
+ }
134
+
135
+ export interface JobApiUpdateJobRequest {
136
+ /**
137
+ *
138
+ * @type string
139
+ * @memberof JobApiupdateJob
140
+ */
141
+ id: string
142
+ /**
143
+ *
144
+ * @type UpdateJobDto
145
+ * @memberof JobApiupdateJob
146
+ */
147
+ updateJobDto: UpdateJobDto
148
+ }
149
+
150
+ export interface JobApiUpdateJobZipRequest {
151
+ /**
152
+ *
153
+ * @type string
154
+ * @memberof JobApiupdateJobZip
155
+ */
156
+ id: string
157
+ /**
158
+ *
159
+ * @type HttpFile
160
+ * @memberof JobApiupdateJobZip
161
+ */
162
+ file: HttpFile
163
+ }
164
+
165
+ export class ObjectJobApi {
166
+ private api: ObservableJobApi
167
+
168
+ public constructor(configuration: Configuration, requestFactory?: JobApiRequestFactory, responseProcessor?: JobApiResponseProcessor) {
169
+ this.api = new ObservableJobApi(configuration, requestFactory, responseProcessor);
170
+ }
171
+
172
+ /**
173
+ * (Experimental) - Create a Job
174
+ * @param param the request object
175
+ */
176
+ public createJob(param: JobApiCreateJobRequest, options?: Configuration): Promise<JobDto> {
177
+ return this.api.createJob(param.createJobDto, options).toPromise();
178
+ }
179
+
180
+ /**
181
+ * (Experimental) - Get a Job by id
182
+ * @param param the request object
183
+ */
184
+ public getJobById(param: JobApiGetJobByIdRequest, options?: Configuration): Promise<JobDto> {
185
+ return this.api.getJobById(param.id, options).toPromise();
186
+ }
187
+
188
+ /**
189
+ * (Experimental) - Get a list of Job
190
+ * @param param the request object
191
+ */
192
+ public getJobs(param: JobApiGetJobsRequest = {}, options?: Configuration): Promise<GetJobs200Response> {
193
+ return this.api.getJobs(param.size, param.page, options).toPromise();
194
+ }
195
+
196
+ /**
197
+ * (Experimental) - Update a Job
198
+ * @param param the request object
199
+ */
200
+ public updateJob(param: JobApiUpdateJobRequest, options?: Configuration): Promise<JobDto> {
201
+ return this.api.updateJob(param.id, param.updateJobDto, options).toPromise();
202
+ }
203
+
204
+ /**
205
+ * (Experimental) - Upload a zip to update a job
206
+ * @param param the request object
207
+ */
208
+ public updateJobZip(param: JobApiUpdateJobZipRequest, options?: Configuration): Promise<JobDto> {
209
+ return this.api.updateJobZip(param.id, param.file, options).toPromise();
210
+ }
211
+
212
+ }
213
+
214
+ import { ObservableJobExecutionApi } from "./ObservableAPI";
215
+ import { JobExecutionApiRequestFactory, JobExecutionApiResponseProcessor} from "../apis/JobExecutionApi";
216
+
217
+ export interface JobExecutionApiCreateJobExecutionRequest {
218
+ /**
219
+ *
220
+ * @type CreateJobExecutionDto
221
+ * @memberof JobExecutionApicreateJobExecution
222
+ */
223
+ createJobExecutionDto: CreateJobExecutionDto
224
+ }
225
+
226
+ export interface JobExecutionApiGetJobExecutionByIdRequest {
227
+ /**
228
+ *
229
+ * @type string
230
+ * @memberof JobExecutionApigetJobExecutionById
231
+ */
232
+ id: string
233
+ }
234
+
235
+ export interface JobExecutionApiGetJobExecutionsRequest {
236
+ /**
237
+ *
238
+ * @type number
239
+ * @memberof JobExecutionApigetJobExecutions
240
+ */
241
+ size?: number
242
+ /**
243
+ *
244
+ * @type number
245
+ * @memberof JobExecutionApigetJobExecutions
246
+ */
247
+ page?: number
248
+ }
249
+
250
+ export class ObjectJobExecutionApi {
251
+ private api: ObservableJobExecutionApi
252
+
253
+ public constructor(configuration: Configuration, requestFactory?: JobExecutionApiRequestFactory, responseProcessor?: JobExecutionApiResponseProcessor) {
254
+ this.api = new ObservableJobExecutionApi(configuration, requestFactory, responseProcessor);
255
+ }
256
+
257
+ /**
258
+ * (Experimental) - Create a Job execution
259
+ * @param param the request object
260
+ */
261
+ public createJobExecution(param: JobExecutionApiCreateJobExecutionRequest, options?: Configuration): Promise<JobExecutionDto> {
262
+ return this.api.createJobExecution(param.createJobExecutionDto, options).toPromise();
263
+ }
264
+
265
+ /**
266
+ * (Experimental) - Get a Job execution by id
267
+ * @param param the request object
268
+ */
269
+ public getJobExecutionById(param: JobExecutionApiGetJobExecutionByIdRequest, options?: Configuration): Promise<JobExecutionDto> {
270
+ return this.api.getJobExecutionById(param.id, options).toPromise();
271
+ }
272
+
273
+ /**
274
+ * (Experimental) - Get a list of Job execution
275
+ * @param param the request object
276
+ */
277
+ public getJobExecutions(param: JobExecutionApiGetJobExecutionsRequest = {}, options?: Configuration): Promise<GetJobExecutions200Response> {
278
+ return this.api.getJobExecutions(param.size, param.page, options).toPromise();
279
+ }
280
+
281
+ }
282
+
283
+ import { ObservableTaskApi } from "./ObservableAPI";
284
+ import { TaskApiRequestFactory, TaskApiResponseProcessor} from "../apis/TaskApi";
285
+
286
+ export interface TaskApiCreateTaskRequest {
287
+ /**
288
+ *
289
+ * @type CreateTaskDto
290
+ * @memberof TaskApicreateTask
291
+ */
292
+ createTaskDto: CreateTaskDto
293
+ }
294
+
295
+ export interface TaskApiDeleteTaskRequest {
296
+ /**
297
+ *
298
+ * @type string
299
+ * @memberof TaskApideleteTask
300
+ */
301
+ id: string
302
+ }
303
+
304
+ export interface TaskApiGetTaskByIdRequest {
305
+ /**
306
+ *
307
+ * @type string
308
+ * @memberof TaskApigetTaskById
309
+ */
310
+ id: string
311
+ }
312
+
313
+ export interface TaskApiGetTasksRequest {
314
+ /**
315
+ *
316
+ * @type number
317
+ * @memberof TaskApigetTasks
318
+ */
319
+ size?: number
320
+ /**
321
+ *
322
+ * @type number
323
+ * @memberof TaskApigetTasks
324
+ */
325
+ page?: number
326
+ }
327
+
328
+ export interface TaskApiPollTaskExecutionRequest {
329
+ /**
330
+ *
331
+ * @type string
332
+ * @memberof TaskApipollTaskExecution
333
+ */
334
+ id: string
335
+ }
336
+
337
+ export interface TaskApiUpdateTaskRequest {
338
+ /**
339
+ *
340
+ * @type string
341
+ * @memberof TaskApiupdateTask
342
+ */
343
+ id: string
344
+ /**
345
+ *
346
+ * @type UpdateTaskDto
347
+ * @memberof TaskApiupdateTask
348
+ */
349
+ updateTaskDto: UpdateTaskDto
350
+ }
351
+
352
+ export class ObjectTaskApi {
353
+ private api: ObservableTaskApi
354
+
355
+ public constructor(configuration: Configuration, requestFactory?: TaskApiRequestFactory, responseProcessor?: TaskApiResponseProcessor) {
356
+ this.api = new ObservableTaskApi(configuration, requestFactory, responseProcessor);
357
+ }
358
+
359
+ /**
360
+ * (Experimental) - Create a Task
361
+ * @param param the request object
362
+ */
363
+ public createTask(param: TaskApiCreateTaskRequest, options?: Configuration): Promise<TaskDto> {
364
+ return this.api.createTask(param.createTaskDto, options).toPromise();
365
+ }
366
+
367
+ /**
368
+ * (Experimental) - Delete a Task by id
369
+ * @param param the request object
370
+ */
371
+ public deleteTask(param: TaskApiDeleteTaskRequest, options?: Configuration): Promise<TaskDto> {
372
+ return this.api.deleteTask(param.id, options).toPromise();
373
+ }
374
+
375
+ /**
376
+ * (Experimental) - Get a Task by id
377
+ * @param param the request object
378
+ */
379
+ public getTaskById(param: TaskApiGetTaskByIdRequest, options?: Configuration): Promise<TaskDto> {
380
+ return this.api.getTaskById(param.id, options).toPromise();
381
+ }
382
+
383
+ /**
384
+ * (Experimental) - Get a list of Task
385
+ * @param param the request object
386
+ */
387
+ public getTasks(param: TaskApiGetTasksRequest = {}, options?: Configuration): Promise<GetTasks200Response> {
388
+ return this.api.getTasks(param.size, param.page, options).toPromise();
389
+ }
390
+
391
+ /**
392
+ * (Experimental) - Poll a task if there is not task to poll, the API returns a `404 Not Found` error
393
+ * @param param the request object
394
+ */
395
+ public pollTaskExecution(param: TaskApiPollTaskExecutionRequest, options?: Configuration): Promise<TaskExecutionDto> {
396
+ return this.api.pollTaskExecution(param.id, options).toPromise();
397
+ }
398
+
399
+ /**
400
+ * (Experimental) - Update a Task
401
+ * @param param the request object
402
+ */
403
+ public updateTask(param: TaskApiUpdateTaskRequest, options?: Configuration): Promise<TaskDto> {
404
+ return this.api.updateTask(param.id, param.updateTaskDto, options).toPromise();
405
+ }
406
+
407
+ }
408
+
409
+ import { ObservableTaskExecutionApi } from "./ObservableAPI";
410
+ import { TaskExecutionApiRequestFactory, TaskExecutionApiResponseProcessor} from "../apis/TaskExecutionApi";
411
+
412
+ export interface TaskExecutionApiGetTaskExecutionByIdRequest {
413
+ /**
414
+ *
415
+ * @type string
416
+ * @memberof TaskExecutionApigetTaskExecutionById
417
+ */
418
+ id: string
419
+ }
420
+
421
+ export interface TaskExecutionApiPatchTaskExecutionRequest {
422
+ /**
423
+ *
424
+ * @type string
425
+ * @memberof TaskExecutionApipatchTaskExecution
426
+ */
427
+ id: string
428
+ /**
429
+ *
430
+ * @type PatchTaskExecutionDto
431
+ * @memberof TaskExecutionApipatchTaskExecution
432
+ */
433
+ patchTaskExecutionDto: PatchTaskExecutionDto
434
+ }
435
+
436
+ export class ObjectTaskExecutionApi {
437
+ private api: ObservableTaskExecutionApi
438
+
439
+ public constructor(configuration: Configuration, requestFactory?: TaskExecutionApiRequestFactory, responseProcessor?: TaskExecutionApiResponseProcessor) {
440
+ this.api = new ObservableTaskExecutionApi(configuration, requestFactory, responseProcessor);
441
+ }
442
+
443
+ /**
444
+ * (Experimental) - Get a Task execution by id
445
+ * @param param the request object
446
+ */
447
+ public getTaskExecutionById(param: TaskExecutionApiGetTaskExecutionByIdRequest, options?: Configuration): Promise<TaskExecutionDto> {
448
+ return this.api.getTaskExecutionById(param.id, options).toPromise();
449
+ }
450
+
451
+ /**
452
+ * (Experimental) - Update running task instance
453
+ * @param param the request object
454
+ */
455
+ public patchTaskExecution(param: TaskExecutionApiPatchTaskExecutionRequest, options?: Configuration): Promise<TaskExecutionDto> {
456
+ return this.api.patchTaskExecution(param.id, param.patchTaskExecutionDto, options).toPromise();
457
+ }
458
+
459
+ }
460
+
461
+ import { ObservableVariableApi } from "./ObservableAPI";
462
+ import { VariableApiRequestFactory, VariableApiResponseProcessor} from "../apis/VariableApi";
463
+
464
+ export interface VariableApiCreateVariableRequest {
465
+ /**
466
+ *
467
+ * @type CreateVariableDto
468
+ * @memberof VariableApicreateVariable
469
+ */
470
+ createVariableDto: CreateVariableDto
471
+ }
472
+
473
+ export interface VariableApiFindVariablesRequest {
474
+ /**
475
+ *
476
+ * @type FindVariablesRequest
477
+ * @memberof VariableApifindVariables
478
+ */
479
+ findVariablesRequest: FindVariablesRequest
480
+ /**
481
+ *
482
+ * @type number
483
+ * @memberof VariableApifindVariables
484
+ */
485
+ size?: number
486
+ /**
487
+ *
488
+ * @type number
489
+ * @memberof VariableApifindVariables
490
+ */
491
+ page?: number
492
+ }
493
+
494
+ export interface VariableApiGetVariableByIdRequest {
495
+ /**
496
+ *
497
+ * @type string
498
+ * @memberof VariableApigetVariableById
499
+ */
500
+ id: string
501
+ }
502
+
503
+ export interface VariableApiGetVariablesRequest {
504
+ /**
505
+ *
506
+ * @type number
507
+ * @memberof VariableApigetVariables
508
+ */
509
+ size?: number
510
+ /**
511
+ *
512
+ * @type number
513
+ * @memberof VariableApigetVariables
514
+ */
515
+ page?: number
516
+ }
517
+
518
+ export interface VariableApiUpdateVariableRequest {
519
+ /**
520
+ *
521
+ * @type string
522
+ * @memberof VariableApiupdateVariable
523
+ */
524
+ id: string
525
+ /**
526
+ *
527
+ * @type UpdateVariableDto
528
+ * @memberof VariableApiupdateVariable
529
+ */
530
+ updateVariableDto: UpdateVariableDto
531
+ }
532
+
533
+ export class ObjectVariableApi {
534
+ private api: ObservableVariableApi
535
+
536
+ public constructor(configuration: Configuration, requestFactory?: VariableApiRequestFactory, responseProcessor?: VariableApiResponseProcessor) {
537
+ this.api = new ObservableVariableApi(configuration, requestFactory, responseProcessor);
538
+ }
539
+
540
+ /**
541
+ * (Experimental) - Create a Variable
542
+ * @param param the request object
543
+ */
544
+ public createVariable(param: VariableApiCreateVariableRequest, options?: Configuration): Promise<VariableDto> {
545
+ return this.api.createVariable(param.createVariableDto, options).toPromise();
546
+ }
547
+
548
+ /**
549
+ * (Experimental) - Find a list of Variable
550
+ * @param param the request object
551
+ */
552
+ public findVariables(param: VariableApiFindVariablesRequest, options?: Configuration): Promise<GetVariables200Response> {
553
+ return this.api.findVariables(param.findVariablesRequest, param.size, param.page, options).toPromise();
554
+ }
555
+
556
+ /**
557
+ * (Experimental) - Get a Variable by id
558
+ * @param param the request object
559
+ */
560
+ public getVariableById(param: VariableApiGetVariableByIdRequest, options?: Configuration): Promise<VariableDto> {
561
+ return this.api.getVariableById(param.id, options).toPromise();
562
+ }
563
+
564
+ /**
565
+ * (Experimental) - Get a list of Variable
566
+ * @param param the request object
567
+ */
568
+ public getVariables(param: VariableApiGetVariablesRequest = {}, options?: Configuration): Promise<GetVariables200Response> {
569
+ return this.api.getVariables(param.size, param.page, options).toPromise();
570
+ }
571
+
572
+ /**
573
+ * (Experimental) - Update a Variable
574
+ * @param param the request object
575
+ */
576
+ public updateVariable(param: VariableApiUpdateVariableRequest, options?: Configuration): Promise<VariableDto> {
577
+ return this.api.updateVariable(param.id, param.updateVariableDto, options).toPromise();
578
+ }
579
+
580
+ }