@product-live/api-sdk 2.23.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/package.json +4 -39
  2. package/.openapi-generator/FILES +0 -74
  3. package/.openapi-generator/VERSION +0 -1
  4. package/.openapi-generator-ignore +0 -23
  5. package/DataFactoryFileApi.md +0 -182
  6. package/DefaultApi.md +0 -105
  7. package/ItemApi.md +0 -125
  8. package/JobApi.md +0 -333
  9. package/JobExecutionApi.md +0 -185
  10. package/README.md +0 -80
  11. package/TaskApi.md +0 -375
  12. package/TaskExecutionApi.md +0 -130
  13. package/VariableApi.md +0 -315
  14. package/apis/DataFactoryFileApi.ts +0 -307
  15. package/apis/DefaultApi.ts +0 -117
  16. package/apis/ItemApi.ts +0 -197
  17. package/apis/JobApi.ts +0 -507
  18. package/apis/JobExecutionApi.ts +0 -289
  19. package/apis/TaskApi.ts +0 -558
  20. package/apis/TaskExecutionApi.ts +0 -212
  21. package/apis/VariableApi.ts +0 -495
  22. package/apis/baseapi.ts +0 -37
  23. package/apis/exception.ts +0 -15
  24. package/auth/auth.ts +0 -107
  25. package/configuration.ts +0 -82
  26. package/dist/apis/DataFactoryFileApi.d.ts +0 -15
  27. package/dist/apis/DataFactoryFileApi.js +0 -359
  28. package/dist/apis/DataFactoryFileApi.js.map +0 -1
  29. package/dist/apis/DefaultApi.d.ts +0 -11
  30. package/dist/apis/DefaultApi.js +0 -172
  31. package/dist/apis/DefaultApi.js.map +0 -1
  32. package/dist/apis/ItemApi.d.ts +0 -13
  33. package/dist/apis/ItemApi.js +0 -249
  34. package/dist/apis/ItemApi.js.map +0 -1
  35. package/dist/apis/JobApi.d.ts +0 -21
  36. package/dist/apis/JobApi.js +0 -547
  37. package/dist/apis/JobApi.js.map +0 -1
  38. package/dist/apis/JobExecutionApi.d.ts +0 -16
  39. package/dist/apis/JobExecutionApi.js +0 -339
  40. package/dist/apis/JobExecutionApi.js.map +0 -1
  41. package/dist/apis/TaskApi.d.ts +0 -24
  42. package/dist/apis/TaskApi.js +0 -609
  43. package/dist/apis/TaskApi.js.map +0 -1
  44. package/dist/apis/TaskExecutionApi.d.ts +0 -13
  45. package/dist/apis/TaskExecutionApi.js +0 -259
  46. package/dist/apis/TaskExecutionApi.js.map +0 -1
  47. package/dist/apis/VariableApi.d.ts +0 -22
  48. package/dist/apis/VariableApi.js +0 -529
  49. package/dist/apis/VariableApi.js.map +0 -1
  50. package/dist/apis/baseapi.d.ts +0 -18
  51. package/dist/apis/baseapi.js +0 -46
  52. package/dist/apis/baseapi.js.map +0 -1
  53. package/dist/apis/exception.d.ts +0 -10
  54. package/dist/apis/exception.js +0 -32
  55. package/dist/apis/exception.js.map +0 -1
  56. package/dist/auth/auth.d.ts +0 -42
  57. package/dist/auth/auth.js +0 -45
  58. package/dist/auth/auth.js.map +0 -1
  59. package/dist/configuration.d.ts +0 -18
  60. package/dist/configuration.js +0 -22
  61. package/dist/configuration.js.map +0 -1
  62. package/dist/http/http.d.ts +0 -82
  63. package/dist/http/http.js +0 -229
  64. package/dist/http/http.js.map +0 -1
  65. package/dist/http/isomorphic-fetch.d.ts +0 -5
  66. package/dist/http/isomorphic-fetch.js +0 -34
  67. package/dist/http/isomorphic-fetch.js.map +0 -1
  68. package/dist/index.d.ts +0 -10
  69. package/dist/index.js +0 -36
  70. package/dist/index.js.map +0 -1
  71. package/dist/middleware.d.ts +0 -16
  72. package/dist/middleware.js +0 -18
  73. package/dist/middleware.js.map +0 -1
  74. package/dist/models/CreateJobDto.d.ts +0 -30
  75. package/dist/models/CreateJobDto.js +0 -82
  76. package/dist/models/CreateJobDto.js.map +0 -1
  77. package/dist/models/CreateJobExecutionDto.d.ts +0 -21
  78. package/dist/models/CreateJobExecutionDto.js +0 -34
  79. package/dist/models/CreateJobExecutionDto.js.map +0 -1
  80. package/dist/models/CreateTaskDto.d.ts +0 -21
  81. package/dist/models/CreateTaskDto.js +0 -46
  82. package/dist/models/CreateTaskDto.js.map +0 -1
  83. package/dist/models/CreateVariableDto.d.ts +0 -22
  84. package/dist/models/CreateVariableDto.js +0 -46
  85. package/dist/models/CreateVariableDto.js.map +0 -1
  86. package/dist/models/FileDto.d.ts +0 -23
  87. package/dist/models/FileDto.js +0 -52
  88. package/dist/models/FileDto.js.map +0 -1
  89. package/dist/models/FindVariablesRequest.d.ts +0 -23
  90. package/dist/models/FindVariablesRequest.js +0 -46
  91. package/dist/models/FindVariablesRequest.js.map +0 -1
  92. package/dist/models/GetFiles200Response.d.ts +0 -21
  93. package/dist/models/GetFiles200Response.js +0 -34
  94. package/dist/models/GetFiles200Response.js.map +0 -1
  95. package/dist/models/GetItems200Response.d.ts +0 -21
  96. package/dist/models/GetItems200Response.js +0 -34
  97. package/dist/models/GetItems200Response.js.map +0 -1
  98. package/dist/models/GetJobExecutionById400Response.d.ts +0 -17
  99. package/dist/models/GetJobExecutionById400Response.js +0 -22
  100. package/dist/models/GetJobExecutionById400Response.js.map +0 -1
  101. package/dist/models/GetJobExecutions200Response.d.ts +0 -21
  102. package/dist/models/GetJobExecutions200Response.js +0 -34
  103. package/dist/models/GetJobExecutions200Response.js.map +0 -1
  104. package/dist/models/GetJobs200Response.d.ts +0 -21
  105. package/dist/models/GetJobs200Response.js +0 -34
  106. package/dist/models/GetJobs200Response.js.map +0 -1
  107. package/dist/models/GetTasks200Response.d.ts +0 -21
  108. package/dist/models/GetTasks200Response.js +0 -34
  109. package/dist/models/GetTasks200Response.js.map +0 -1
  110. package/dist/models/GetVariables200Response.d.ts +0 -21
  111. package/dist/models/GetVariables200Response.js +0 -34
  112. package/dist/models/GetVariables200Response.js.map +0 -1
  113. package/dist/models/HighOrderQuery.d.ts +0 -19
  114. package/dist/models/HighOrderQuery.js +0 -28
  115. package/dist/models/HighOrderQuery.js.map +0 -1
  116. package/dist/models/ItemDto.d.ts +0 -28
  117. package/dist/models/ItemDto.js +0 -64
  118. package/dist/models/ItemDto.js.map +0 -1
  119. package/dist/models/ItemFieldDTO.d.ts +0 -19
  120. package/dist/models/ItemFieldDTO.js +0 -34
  121. package/dist/models/ItemFieldDTO.js.map +0 -1
  122. package/dist/models/ItemFieldFile.d.ts +0 -18
  123. package/dist/models/ItemFieldFile.js +0 -22
  124. package/dist/models/ItemFieldFile.js.map +0 -1
  125. package/dist/models/ItemFieldFileData.d.ts +0 -18
  126. package/dist/models/ItemFieldFileData.js +0 -28
  127. package/dist/models/ItemFieldFileData.js.map +0 -1
  128. package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.d.ts +0 -18
  129. package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js +0 -22
  130. package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantity.js.map +0 -1
  131. package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.d.ts +0 -19
  132. package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js +0 -34
  133. package/dist/models/ItemFieldMultipleSelectWithCommentAndQuantityData.js.map +0 -1
  134. package/dist/models/ItemFieldSimpleNumber.d.ts +0 -18
  135. package/dist/models/ItemFieldSimpleNumber.js +0 -28
  136. package/dist/models/ItemFieldSimpleNumber.js.map +0 -1
  137. package/dist/models/ItemFieldSimpleString.d.ts +0 -17
  138. package/dist/models/ItemFieldSimpleString.js +0 -22
  139. package/dist/models/ItemFieldSimpleString.js.map +0 -1
  140. package/dist/models/ItemFieldSimpleStringArray.d.ts +0 -17
  141. package/dist/models/ItemFieldSimpleStringArray.js +0 -22
  142. package/dist/models/ItemFieldSimpleStringArray.js.map +0 -1
  143. package/dist/models/ItemMetadataDTO.d.ts +0 -23
  144. package/dist/models/ItemMetadataDTO.js +0 -58
  145. package/dist/models/ItemMetadataDTO.js.map +0 -1
  146. package/dist/models/JobDto.d.ts +0 -35
  147. package/dist/models/JobDto.js +0 -106
  148. package/dist/models/JobDto.js.map +0 -1
  149. package/dist/models/JobExecutionDto.d.ts +0 -33
  150. package/dist/models/JobExecutionDto.js +0 -88
  151. package/dist/models/JobExecutionDto.js.map +0 -1
  152. package/dist/models/LowOrderQuery.d.ts +0 -22
  153. package/dist/models/LowOrderQuery.js +0 -40
  154. package/dist/models/LowOrderQuery.js.map +0 -1
  155. package/dist/models/LowOrderQueryValue.d.ts +0 -16
  156. package/dist/models/LowOrderQueryValue.js +0 -15
  157. package/dist/models/LowOrderQueryValue.js.map +0 -1
  158. package/dist/models/ObjectSerializer.d.ts +0 -45
  159. package/dist/models/ObjectSerializer.js +0 -347
  160. package/dist/models/ObjectSerializer.js.map +0 -1
  161. package/dist/models/PatchTaskExecutionDto.d.ts +0 -22
  162. package/dist/models/PatchTaskExecutionDto.js +0 -34
  163. package/dist/models/PatchTaskExecutionDto.js.map +0 -1
  164. package/dist/models/Query1.d.ts +0 -23
  165. package/dist/models/Query1.js +0 -46
  166. package/dist/models/Query1.js.map +0 -1
  167. package/dist/models/TaskDto.d.ts +0 -26
  168. package/dist/models/TaskDto.js +0 -70
  169. package/dist/models/TaskDto.js.map +0 -1
  170. package/dist/models/TaskExecutionDto.d.ts +0 -30
  171. package/dist/models/TaskExecutionDto.js +0 -64
  172. package/dist/models/TaskExecutionDto.js.map +0 -1
  173. package/dist/models/UpdateJobDto.d.ts +0 -31
  174. package/dist/models/UpdateJobDto.js +0 -88
  175. package/dist/models/UpdateJobDto.js.map +0 -1
  176. package/dist/models/UpdateTaskDto.d.ts +0 -22
  177. package/dist/models/UpdateTaskDto.js +0 -52
  178. package/dist/models/UpdateTaskDto.js.map +0 -1
  179. package/dist/models/UpdateVariableDto.d.ts +0 -23
  180. package/dist/models/UpdateVariableDto.js +0 -52
  181. package/dist/models/UpdateVariableDto.js.map +0 -1
  182. package/dist/models/VariableDto.d.ts +0 -27
  183. package/dist/models/VariableDto.js +0 -70
  184. package/dist/models/VariableDto.js.map +0 -1
  185. package/dist/models/all.d.ts +0 -36
  186. package/dist/models/all.js +0 -53
  187. package/dist/models/all.js.map +0 -1
  188. package/dist/rxjsStub.d.ts +0 -10
  189. package/dist/rxjsStub.js +0 -33
  190. package/dist/rxjsStub.js.map +0 -1
  191. package/dist/servers.d.ts +0 -17
  192. package/dist/servers.js +0 -32
  193. package/dist/servers.js.map +0 -1
  194. package/dist/types/ObjectParamAPI.d.ts +0 -187
  195. package/dist/types/ObjectParamAPI.js +0 -160
  196. package/dist/types/ObjectParamAPI.js.map +0 -1
  197. package/dist/types/ObservableAPI.d.ts +0 -109
  198. package/dist/types/ObservableAPI.js +0 -758
  199. package/dist/types/ObservableAPI.js.map +0 -1
  200. package/dist/types/PromiseAPI.d.ts +0 -92
  201. package/dist/types/PromiseAPI.js +0 -180
  202. package/dist/types/PromiseAPI.js.map +0 -1
  203. package/dist/util.d.ts +0 -2
  204. package/dist/util.js +0 -29
  205. package/dist/util.js.map +0 -1
  206. package/git_push.sh +0 -51
  207. package/http/http.ts +0 -229
  208. package/http/isomorphic-fetch.ts +0 -32
  209. package/index.ts +0 -12
  210. package/middleware.ts +0 -66
  211. package/models/CreateJobDto.ts +0 -108
  212. package/models/CreateJobExecutionDto.ts +0 -49
  213. package/models/CreateTaskDto.ts +0 -63
  214. package/models/CreateVariableDto.ts +0 -66
  215. package/models/FileDto.ts +0 -73
  216. package/models/FindVariablesRequest.ts +0 -68
  217. package/models/GetFiles200Response.ts +0 -53
  218. package/models/GetItems200Response.ts +0 -53
  219. package/models/GetJobExecutionById400Response.ts +0 -35
  220. package/models/GetJobExecutions200Response.ts +0 -53
  221. package/models/GetJobs200Response.ts +0 -53
  222. package/models/GetTasks200Response.ts +0 -53
  223. package/models/GetVariables200Response.ts +0 -53
  224. package/models/HighOrderQuery.ts +0 -45
  225. package/models/ItemDto.ts +0 -86
  226. package/models/ItemFieldDTO.ts +0 -49
  227. package/models/ItemFieldFile.ts +0 -36
  228. package/models/ItemFieldFileData.ts +0 -42
  229. package/models/ItemFieldMultipleSelectWithCommentAndQuantity.ts +0 -36
  230. package/models/ItemFieldMultipleSelectWithCommentAndQuantityData.ts +0 -49
  231. package/models/ItemFieldSimpleNumber.ts +0 -42
  232. package/models/ItemFieldSimpleString.ts +0 -35
  233. package/models/ItemFieldSimpleStringArray.ts +0 -35
  234. package/models/ItemMetadataDTO.ts +0 -77
  235. package/models/JobDto.ts +0 -137
  236. package/models/JobExecutionDto.ts +0 -115
  237. package/models/LowOrderQuery.ts +0 -60
  238. package/models/LowOrderQueryValue.ts +0 -29
  239. package/models/ObjectSerializer.ts +0 -358
  240. package/models/PatchTaskExecutionDto.ts +0 -52
  241. package/models/Query1.ts +0 -69
  242. package/models/TaskDto.ts +0 -94
  243. package/models/TaskExecutionDto.ts +0 -88
  244. package/models/UpdateJobDto.ts +0 -115
  245. package/models/UpdateTaskDto.ts +0 -70
  246. package/models/UpdateVariableDto.ts +0 -73
  247. package/models/VariableDto.ts +0 -95
  248. package/models/all.ts +0 -36
  249. package/rxjsStub.ts +0 -27
  250. package/servers.ts +0 -55
  251. package/tsconfig.json +0 -28
  252. package/types/ObjectParamAPI.ts +0 -675
  253. package/types/ObservableAPI.ts +0 -837
  254. package/types/PromiseAPI.ts +0 -452
  255. package/util.ts +0 -37
package/apis/TaskApi.ts DELETED
@@ -1,558 +0,0 @@
1
- // TODO: better import syntax?
2
- import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
3
- import {Configuration} from '../configuration';
4
- import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
5
- import * as FormData from "form-data";
6
- import { URLSearchParams } from 'url';
7
- import {ObjectSerializer} from '../models/ObjectSerializer';
8
- import {ApiException} from './exception';
9
- import {canConsumeForm, isCodeInRange} from '../util';
10
- import {SecurityAuthentication} from '../auth/auth';
11
-
12
-
13
- import { CreateTaskDto } from '../models/CreateTaskDto';
14
- import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
15
- import { GetTasks200Response } from '../models/GetTasks200Response';
16
- import { TaskDto } from '../models/TaskDto';
17
- import { TaskExecutionDto } from '../models/TaskExecutionDto';
18
- import { UpdateTaskDto } from '../models/UpdateTaskDto';
19
-
20
- /**
21
- * no description
22
- */
23
- export class TaskApiRequestFactory extends BaseAPIRequestFactory {
24
-
25
- /**
26
- * (Experimental) - Create a Task
27
- * @param createTaskDto
28
- */
29
- public async createTask(createTaskDto: CreateTaskDto, _options?: Configuration): Promise<RequestContext> {
30
- let _config = _options || this.configuration;
31
-
32
- // verify required parameter 'createTaskDto' is not null or undefined
33
- if (createTaskDto === null || createTaskDto === undefined) {
34
- throw new RequiredError("TaskApi", "createTask", "createTaskDto");
35
- }
36
-
37
-
38
- // Path Params
39
- const localVarPath = '/v1/data_factory/tasks';
40
-
41
- // Make Request Context
42
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
43
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
44
-
45
-
46
- // Body Params
47
- const contentType = ObjectSerializer.getPreferredMediaType([
48
- "application/json"
49
- ]);
50
- requestContext.setHeaderParam("Content-Type", contentType);
51
- const serializedBody = ObjectSerializer.stringify(
52
- ObjectSerializer.serialize(createTaskDto, "CreateTaskDto", ""),
53
- contentType
54
- );
55
- requestContext.setBody(serializedBody);
56
-
57
- let authMethod: SecurityAuthentication | undefined;
58
- // Apply auth methods
59
- authMethod = _config.authMethods["ApiKeyAuthQuery"]
60
- if (authMethod?.applySecurityAuthentication) {
61
- await authMethod?.applySecurityAuthentication(requestContext);
62
- }
63
- // Apply auth methods
64
- authMethod = _config.authMethods["ApiKeyAuthHeader"]
65
- if (authMethod?.applySecurityAuthentication) {
66
- await authMethod?.applySecurityAuthentication(requestContext);
67
- }
68
-
69
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
70
- if (defaultAuth?.applySecurityAuthentication) {
71
- await defaultAuth?.applySecurityAuthentication(requestContext);
72
- }
73
-
74
- return requestContext;
75
- }
76
-
77
- /**
78
- * (Experimental) - Delete a Task by id
79
- * @param id
80
- */
81
- public async deleteTask(id: string, _options?: Configuration): Promise<RequestContext> {
82
- let _config = _options || this.configuration;
83
-
84
- // verify required parameter 'id' is not null or undefined
85
- if (id === null || id === undefined) {
86
- throw new RequiredError("TaskApi", "deleteTask", "id");
87
- }
88
-
89
-
90
- // Path Params
91
- const localVarPath = '/v1/data_factory/tasks/{id}'
92
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
93
-
94
- // Make Request Context
95
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
96
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
97
-
98
-
99
- let authMethod: SecurityAuthentication | undefined;
100
- // Apply auth methods
101
- authMethod = _config.authMethods["ApiKeyAuthQuery"]
102
- if (authMethod?.applySecurityAuthentication) {
103
- await authMethod?.applySecurityAuthentication(requestContext);
104
- }
105
- // Apply auth methods
106
- authMethod = _config.authMethods["ApiKeyAuthHeader"]
107
- if (authMethod?.applySecurityAuthentication) {
108
- await authMethod?.applySecurityAuthentication(requestContext);
109
- }
110
-
111
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
112
- if (defaultAuth?.applySecurityAuthentication) {
113
- await defaultAuth?.applySecurityAuthentication(requestContext);
114
- }
115
-
116
- return requestContext;
117
- }
118
-
119
- /**
120
- * (Experimental) - Get a Task by id
121
- * @param id
122
- */
123
- public async getTaskById(id: string, _options?: Configuration): Promise<RequestContext> {
124
- let _config = _options || this.configuration;
125
-
126
- // verify required parameter 'id' is not null or undefined
127
- if (id === null || id === undefined) {
128
- throw new RequiredError("TaskApi", "getTaskById", "id");
129
- }
130
-
131
-
132
- // Path Params
133
- const localVarPath = '/v1/data_factory/tasks/{id}'
134
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
135
-
136
- // Make Request Context
137
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
138
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
139
-
140
-
141
- let authMethod: SecurityAuthentication | undefined;
142
- // Apply auth methods
143
- authMethod = _config.authMethods["ApiKeyAuthQuery"]
144
- if (authMethod?.applySecurityAuthentication) {
145
- await authMethod?.applySecurityAuthentication(requestContext);
146
- }
147
- // Apply auth methods
148
- authMethod = _config.authMethods["ApiKeyAuthHeader"]
149
- if (authMethod?.applySecurityAuthentication) {
150
- await authMethod?.applySecurityAuthentication(requestContext);
151
- }
152
-
153
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
154
- if (defaultAuth?.applySecurityAuthentication) {
155
- await defaultAuth?.applySecurityAuthentication(requestContext);
156
- }
157
-
158
- return requestContext;
159
- }
160
-
161
- /**
162
- * (Experimental) - Get a list of Task
163
- * @param size
164
- * @param page
165
- */
166
- public async getTasks(size?: number, page?: number, _options?: Configuration): Promise<RequestContext> {
167
- let _config = _options || this.configuration;
168
-
169
-
170
-
171
- // Path Params
172
- const localVarPath = '/v1/data_factory/tasks';
173
-
174
- // Make Request Context
175
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
176
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
177
-
178
- // Query Params
179
- if (size !== undefined) {
180
- requestContext.setQueryParam("size", ObjectSerializer.serialize(size, "number", ""));
181
- }
182
-
183
- // Query Params
184
- if (page !== undefined) {
185
- requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", ""));
186
- }
187
-
188
-
189
- let authMethod: SecurityAuthentication | undefined;
190
- // Apply auth methods
191
- authMethod = _config.authMethods["ApiKeyAuthQuery"]
192
- if (authMethod?.applySecurityAuthentication) {
193
- await authMethod?.applySecurityAuthentication(requestContext);
194
- }
195
- // Apply auth methods
196
- authMethod = _config.authMethods["ApiKeyAuthHeader"]
197
- if (authMethod?.applySecurityAuthentication) {
198
- await authMethod?.applySecurityAuthentication(requestContext);
199
- }
200
-
201
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
202
- if (defaultAuth?.applySecurityAuthentication) {
203
- await defaultAuth?.applySecurityAuthentication(requestContext);
204
- }
205
-
206
- return requestContext;
207
- }
208
-
209
- /**
210
- * (Experimental) - Poll a task if there is not task to poll, the API returns a `404 Not Found` error
211
- * @param id
212
- */
213
- public async pollTaskExecution(id: string, _options?: Configuration): Promise<RequestContext> {
214
- let _config = _options || this.configuration;
215
-
216
- // verify required parameter 'id' is not null or undefined
217
- if (id === null || id === undefined) {
218
- throw new RequiredError("TaskApi", "pollTaskExecution", "id");
219
- }
220
-
221
-
222
- // Path Params
223
- const localVarPath = '/v1/data_factory/tasks/{id}/poll'
224
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
225
-
226
- // Make Request Context
227
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
228
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
229
-
230
-
231
- let authMethod: SecurityAuthentication | undefined;
232
- // Apply auth methods
233
- authMethod = _config.authMethods["ApiKeyAuthQuery"]
234
- if (authMethod?.applySecurityAuthentication) {
235
- await authMethod?.applySecurityAuthentication(requestContext);
236
- }
237
- // Apply auth methods
238
- authMethod = _config.authMethods["ApiKeyAuthHeader"]
239
- if (authMethod?.applySecurityAuthentication) {
240
- await authMethod?.applySecurityAuthentication(requestContext);
241
- }
242
-
243
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
244
- if (defaultAuth?.applySecurityAuthentication) {
245
- await defaultAuth?.applySecurityAuthentication(requestContext);
246
- }
247
-
248
- return requestContext;
249
- }
250
-
251
- /**
252
- * (Experimental) - Update a Task
253
- * @param id
254
- * @param updateTaskDto
255
- */
256
- public async updateTask(id: string, updateTaskDto: UpdateTaskDto, _options?: Configuration): Promise<RequestContext> {
257
- let _config = _options || this.configuration;
258
-
259
- // verify required parameter 'id' is not null or undefined
260
- if (id === null || id === undefined) {
261
- throw new RequiredError("TaskApi", "updateTask", "id");
262
- }
263
-
264
-
265
- // verify required parameter 'updateTaskDto' is not null or undefined
266
- if (updateTaskDto === null || updateTaskDto === undefined) {
267
- throw new RequiredError("TaskApi", "updateTask", "updateTaskDto");
268
- }
269
-
270
-
271
- // Path Params
272
- const localVarPath = '/v1/data_factory/tasks/{id}'
273
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
274
-
275
- // Make Request Context
276
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
277
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
278
-
279
-
280
- // Body Params
281
- const contentType = ObjectSerializer.getPreferredMediaType([
282
- "application/json"
283
- ]);
284
- requestContext.setHeaderParam("Content-Type", contentType);
285
- const serializedBody = ObjectSerializer.stringify(
286
- ObjectSerializer.serialize(updateTaskDto, "UpdateTaskDto", ""),
287
- contentType
288
- );
289
- requestContext.setBody(serializedBody);
290
-
291
- let authMethod: SecurityAuthentication | undefined;
292
- // Apply auth methods
293
- authMethod = _config.authMethods["ApiKeyAuthQuery"]
294
- if (authMethod?.applySecurityAuthentication) {
295
- await authMethod?.applySecurityAuthentication(requestContext);
296
- }
297
- // Apply auth methods
298
- authMethod = _config.authMethods["ApiKeyAuthHeader"]
299
- if (authMethod?.applySecurityAuthentication) {
300
- await authMethod?.applySecurityAuthentication(requestContext);
301
- }
302
-
303
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
304
- if (defaultAuth?.applySecurityAuthentication) {
305
- await defaultAuth?.applySecurityAuthentication(requestContext);
306
- }
307
-
308
- return requestContext;
309
- }
310
-
311
- }
312
-
313
- export class TaskApiResponseProcessor {
314
-
315
- /**
316
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
317
- * to the expected objects
318
- *
319
- * @params response Response returned by the server for a request to createTask
320
- * @throws ApiException if the response code was not in [200, 299]
321
- */
322
- public async createTask(response: ResponseContext): Promise<TaskDto > {
323
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
324
- if (isCodeInRange("201", response.httpStatusCode)) {
325
- const body: TaskDto = ObjectSerializer.deserialize(
326
- ObjectSerializer.parse(await response.body.text(), contentType),
327
- "TaskDto", ""
328
- ) as TaskDto;
329
- return body;
330
- }
331
- if (isCodeInRange("400", response.httpStatusCode)) {
332
- const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
333
- ObjectSerializer.parse(await response.body.text(), contentType),
334
- "GetJobExecutionById400Response", ""
335
- ) as GetJobExecutionById400Response;
336
- throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
337
- }
338
- if (isCodeInRange("401", response.httpStatusCode)) {
339
- throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
340
- }
341
-
342
- // Work around for missing responses in specification, e.g. for petstore.yaml
343
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
344
- const body: TaskDto = ObjectSerializer.deserialize(
345
- ObjectSerializer.parse(await response.body.text(), contentType),
346
- "TaskDto", ""
347
- ) as TaskDto;
348
- return body;
349
- }
350
-
351
- throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
352
- }
353
-
354
- /**
355
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
356
- * to the expected objects
357
- *
358
- * @params response Response returned by the server for a request to deleteTask
359
- * @throws ApiException if the response code was not in [200, 299]
360
- */
361
- public async deleteTask(response: ResponseContext): Promise<TaskDto > {
362
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
363
- if (isCodeInRange("201", response.httpStatusCode)) {
364
- const body: TaskDto = ObjectSerializer.deserialize(
365
- ObjectSerializer.parse(await response.body.text(), contentType),
366
- "TaskDto", ""
367
- ) as TaskDto;
368
- return body;
369
- }
370
- if (isCodeInRange("400", response.httpStatusCode)) {
371
- const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
372
- ObjectSerializer.parse(await response.body.text(), contentType),
373
- "GetJobExecutionById400Response", ""
374
- ) as GetJobExecutionById400Response;
375
- throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
376
- }
377
- if (isCodeInRange("401", response.httpStatusCode)) {
378
- throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
379
- }
380
- if (isCodeInRange("404", response.httpStatusCode)) {
381
- throw new ApiException<undefined>(response.httpStatusCode, "Not found", undefined, response.headers);
382
- }
383
-
384
- // Work around for missing responses in specification, e.g. for petstore.yaml
385
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
386
- const body: TaskDto = ObjectSerializer.deserialize(
387
- ObjectSerializer.parse(await response.body.text(), contentType),
388
- "TaskDto", ""
389
- ) as TaskDto;
390
- return body;
391
- }
392
-
393
- throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
394
- }
395
-
396
- /**
397
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
398
- * to the expected objects
399
- *
400
- * @params response Response returned by the server for a request to getTaskById
401
- * @throws ApiException if the response code was not in [200, 299]
402
- */
403
- public async getTaskById(response: ResponseContext): Promise<TaskDto > {
404
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
405
- if (isCodeInRange("200", response.httpStatusCode)) {
406
- const body: TaskDto = ObjectSerializer.deserialize(
407
- ObjectSerializer.parse(await response.body.text(), contentType),
408
- "TaskDto", ""
409
- ) as TaskDto;
410
- return body;
411
- }
412
- if (isCodeInRange("400", response.httpStatusCode)) {
413
- const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
414
- ObjectSerializer.parse(await response.body.text(), contentType),
415
- "GetJobExecutionById400Response", ""
416
- ) as GetJobExecutionById400Response;
417
- throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
418
- }
419
- if (isCodeInRange("401", response.httpStatusCode)) {
420
- throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
421
- }
422
- if (isCodeInRange("404", response.httpStatusCode)) {
423
- throw new ApiException<undefined>(response.httpStatusCode, "Not found", undefined, response.headers);
424
- }
425
-
426
- // Work around for missing responses in specification, e.g. for petstore.yaml
427
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
428
- const body: TaskDto = ObjectSerializer.deserialize(
429
- ObjectSerializer.parse(await response.body.text(), contentType),
430
- "TaskDto", ""
431
- ) as TaskDto;
432
- return body;
433
- }
434
-
435
- throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
436
- }
437
-
438
- /**
439
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
440
- * to the expected objects
441
- *
442
- * @params response Response returned by the server for a request to getTasks
443
- * @throws ApiException if the response code was not in [200, 299]
444
- */
445
- public async getTasks(response: ResponseContext): Promise<GetTasks200Response > {
446
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
447
- if (isCodeInRange("200", response.httpStatusCode)) {
448
- const body: GetTasks200Response = ObjectSerializer.deserialize(
449
- ObjectSerializer.parse(await response.body.text(), contentType),
450
- "GetTasks200Response", ""
451
- ) as GetTasks200Response;
452
- return body;
453
- }
454
- if (isCodeInRange("400", response.httpStatusCode)) {
455
- const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
456
- ObjectSerializer.parse(await response.body.text(), contentType),
457
- "GetJobExecutionById400Response", ""
458
- ) as GetJobExecutionById400Response;
459
- throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
460
- }
461
- if (isCodeInRange("401", response.httpStatusCode)) {
462
- throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
463
- }
464
-
465
- // Work around for missing responses in specification, e.g. for petstore.yaml
466
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
467
- const body: GetTasks200Response = ObjectSerializer.deserialize(
468
- ObjectSerializer.parse(await response.body.text(), contentType),
469
- "GetTasks200Response", ""
470
- ) as GetTasks200Response;
471
- return body;
472
- }
473
-
474
- throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
475
- }
476
-
477
- /**
478
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
479
- * to the expected objects
480
- *
481
- * @params response Response returned by the server for a request to pollTaskExecution
482
- * @throws ApiException if the response code was not in [200, 299]
483
- */
484
- public async pollTaskExecution(response: ResponseContext): Promise<TaskExecutionDto > {
485
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
486
- if (isCodeInRange("200", response.httpStatusCode)) {
487
- const body: TaskExecutionDto = ObjectSerializer.deserialize(
488
- ObjectSerializer.parse(await response.body.text(), contentType),
489
- "TaskExecutionDto", ""
490
- ) as TaskExecutionDto;
491
- return body;
492
- }
493
- if (isCodeInRange("400", response.httpStatusCode)) {
494
- const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
495
- ObjectSerializer.parse(await response.body.text(), contentType),
496
- "GetJobExecutionById400Response", ""
497
- ) as GetJobExecutionById400Response;
498
- throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
499
- }
500
- if (isCodeInRange("401", response.httpStatusCode)) {
501
- throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
502
- }
503
- if (isCodeInRange("404", response.httpStatusCode)) {
504
- throw new ApiException<undefined>(response.httpStatusCode, "Not found", undefined, response.headers);
505
- }
506
-
507
- // Work around for missing responses in specification, e.g. for petstore.yaml
508
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
509
- const body: TaskExecutionDto = ObjectSerializer.deserialize(
510
- ObjectSerializer.parse(await response.body.text(), contentType),
511
- "TaskExecutionDto", ""
512
- ) as TaskExecutionDto;
513
- return body;
514
- }
515
-
516
- throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
517
- }
518
-
519
- /**
520
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
521
- * to the expected objects
522
- *
523
- * @params response Response returned by the server for a request to updateTask
524
- * @throws ApiException if the response code was not in [200, 299]
525
- */
526
- public async updateTask(response: ResponseContext): Promise<TaskDto > {
527
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
528
- if (isCodeInRange("201", response.httpStatusCode)) {
529
- const body: TaskDto = ObjectSerializer.deserialize(
530
- ObjectSerializer.parse(await response.body.text(), contentType),
531
- "TaskDto", ""
532
- ) as TaskDto;
533
- return body;
534
- }
535
- if (isCodeInRange("400", response.httpStatusCode)) {
536
- const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
537
- ObjectSerializer.parse(await response.body.text(), contentType),
538
- "GetJobExecutionById400Response", ""
539
- ) as GetJobExecutionById400Response;
540
- throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
541
- }
542
- if (isCodeInRange("401", response.httpStatusCode)) {
543
- throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
544
- }
545
-
546
- // Work around for missing responses in specification, e.g. for petstore.yaml
547
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
548
- const body: TaskDto = ObjectSerializer.deserialize(
549
- ObjectSerializer.parse(await response.body.text(), contentType),
550
- "TaskDto", ""
551
- ) as TaskDto;
552
- return body;
553
- }
554
-
555
- throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
556
- }
557
-
558
- }