@kestra-io/kestra-sdk 0.24.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 (430) hide show
  1. package/README.md +879 -0
  2. package/dist/ApiClient.js +704 -0
  3. package/dist/KestraClient.js +97 -0
  4. package/dist/api/AIApi.js +85 -0
  5. package/dist/api/AppsApi.js +1017 -0
  6. package/dist/api/AuditLogsApi.js +253 -0
  7. package/dist/api/AuthsApi.js +236 -0
  8. package/dist/api/BannersApi.js +184 -0
  9. package/dist/api/BindingsApi.js +269 -0
  10. package/dist/api/BlueprintTagsApi.js +134 -0
  11. package/dist/api/BlueprintsApi.js +528 -0
  12. package/dist/api/ClusterApi.js +100 -0
  13. package/dist/api/DashboardsApi.js +535 -0
  14. package/dist/api/DefaultApi.js +274 -0
  15. package/dist/api/ExecutionsApi.js +2942 -0
  16. package/dist/api/FilesApi.js +471 -0
  17. package/dist/api/FlowsApi.js +1509 -0
  18. package/dist/api/GroupsApi.js +567 -0
  19. package/dist/api/InvitationsApi.js +300 -0
  20. package/dist/api/KVApi.js +280 -0
  21. package/dist/api/LogsApi.js +371 -0
  22. package/dist/api/MaintenanceApi.js +100 -0
  23. package/dist/api/MetricsApi.js +393 -0
  24. package/dist/api/MiscApi.js +385 -0
  25. package/dist/api/NamespacesApi.js +653 -0
  26. package/dist/api/PluginsApi.js +755 -0
  27. package/dist/api/RolesApi.js +352 -0
  28. package/dist/api/SCIMApi.js +815 -0
  29. package/dist/api/SCIMConfigurationApi.js +264 -0
  30. package/dist/api/SCIMGroupsApi.js +423 -0
  31. package/dist/api/SCIMUsersApi.js +423 -0
  32. package/dist/api/SecurityIntegrationsApi.js +290 -0
  33. package/dist/api/ServiceAccountApi.js +213 -0
  34. package/dist/api/ServicesApi.js +164 -0
  35. package/dist/api/TenantAccessApi.js +268 -0
  36. package/dist/api/TenantsApi.js +325 -0
  37. package/dist/api/TestSuitesApi.js +594 -0
  38. package/dist/api/TriggersApi.js +885 -0
  39. package/dist/api/UsersApi.js +894 -0
  40. package/dist/api/WorkerGroupsApi.js +224 -0
  41. package/dist/index.js +2967 -0
  42. package/dist/model/AbstractFlow.js +252 -0
  43. package/dist/model/AbstractFlowLabels.js +158 -0
  44. package/dist/model/AbstractGraph.js +110 -0
  45. package/dist/model/AbstractGraphBranchType.js +63 -0
  46. package/dist/model/AbstractMetricEntryObject.js +162 -0
  47. package/dist/model/AbstractTrigger.js +264 -0
  48. package/dist/model/AbstractTriggerForExecution.js +138 -0
  49. package/dist/model/AbstractUser.js +277 -0
  50. package/dist/model/AbstractUserTenantIdentityProvider.js +157 -0
  51. package/dist/model/Action.js +68 -0
  52. package/dist/model/ApiAuth.js +113 -0
  53. package/dist/model/ApiAutocomplete.js +101 -0
  54. package/dist/model/ApiGroupSummary.js +101 -0
  55. package/dist/model/ApiIds.js +89 -0
  56. package/dist/model/ApiRoleSummary.js +117 -0
  57. package/dist/model/ApiSecretListResponse.js +148 -0
  58. package/dist/model/ApiSecretMeta.js +112 -0
  59. package/dist/model/ApiSecretMetaEE.js +166 -0
  60. package/dist/model/ApiSecretTag.js +126 -0
  61. package/dist/model/ApiSecretValue.js +168 -0
  62. package/dist/model/ApiTenant.js +315 -0
  63. package/dist/model/ApiUser.js +361 -0
  64. package/dist/model/AppResponse.js +115 -0
  65. package/dist/model/AppResponseUILayout.js +89 -0
  66. package/dist/model/AppsControllerApiApp.js +173 -0
  67. package/dist/model/AppsControllerApiAppCatalogItem.js +137 -0
  68. package/dist/model/AppsControllerApiAppSource.js +161 -0
  69. package/dist/model/AppsControllerApiAppTags.js +89 -0
  70. package/dist/model/AppsControllerApiBulkImportResponse.js +122 -0
  71. package/dist/model/AppsControllerApiBulkImportResponseError.js +101 -0
  72. package/dist/model/AppsControllerApiBulkOperationRequest.js +89 -0
  73. package/dist/model/Assertion.js +325 -0
  74. package/dist/model/AssertionResult.js +178 -0
  75. package/dist/model/AssertionRunError.js +124 -0
  76. package/dist/model/AttributeReference.js +149 -0
  77. package/dist/model/AuditLog.js +257 -0
  78. package/dist/model/AuditLogControllerAuditLogDiff.js +101 -0
  79. package/dist/model/AuditLogControllerAuditLogOption.js +109 -0
  80. package/dist/model/AuditLogControllerAuditLogWithUser.js +105 -0
  81. package/dist/model/AuditLogControllerFindRequest.js +105 -0
  82. package/dist/model/AuditLogDetail.js +149 -0
  83. package/dist/model/AuthControllerAuth.js +105 -0
  84. package/dist/model/AuthControllerInvitationUserRequest.js +140 -0
  85. package/dist/model/AuthControllerResetPasswordRequest.js +101 -0
  86. package/dist/model/Backfill.js +180 -0
  87. package/dist/model/Banner.js +169 -0
  88. package/dist/model/BannerType.js +63 -0
  89. package/dist/model/BaseAuditLog.js +195 -0
  90. package/dist/model/BaseResourcePatchRequest.js +89 -0
  91. package/dist/model/BaseResourceScimResource.js +89 -0
  92. package/dist/model/BaseResourceSearchRequest.js +89 -0
  93. package/dist/model/Binding.js +171 -0
  94. package/dist/model/BindingType.js +58 -0
  95. package/dist/model/Blueprint.js +178 -0
  96. package/dist/model/BlueprintControllerApiBlueprintItem.js +145 -0
  97. package/dist/model/BlueprintControllerApiBlueprintItemWithSource.js +196 -0
  98. package/dist/model/BlueprintControllerApiBlueprintTagItem.js +109 -0
  99. package/dist/model/BlueprintControllerKind.js +63 -0
  100. package/dist/model/BlueprintWithFlow.js +226 -0
  101. package/dist/model/Breakpoint.js +124 -0
  102. package/dist/model/BulkErrorResponse.js +97 -0
  103. package/dist/model/BulkResponse.js +85 -0
  104. package/dist/model/Cache.js +120 -0
  105. package/dist/model/ChartChartOption.js +134 -0
  106. package/dist/model/ChartFiltersOverrides.js +164 -0
  107. package/dist/model/Concurrency.js +119 -0
  108. package/dist/model/ConcurrencyBehavior.js +63 -0
  109. package/dist/model/Condition.js +112 -0
  110. package/dist/model/ConfigurationUsage.js +133 -0
  111. package/dist/model/ConversionServiceProvider.js +108 -0
  112. package/dist/model/ConvertibleMultiValuesString.js +139 -0
  113. package/dist/model/ConvertibleValuesListString.js +126 -0
  114. package/dist/model/CreateApiTokenRequest.js +144 -0
  115. package/dist/model/CreateApiTokenResponse.js +113 -0
  116. package/dist/model/CreateSecurityIntegrationRequest.js +140 -0
  117. package/dist/model/CrudEventType.js +93 -0
  118. package/dist/model/CustomLink.js +113 -0
  119. package/dist/model/DailyExecutionStatistics.js +150 -0
  120. package/dist/model/DailyExecutionStatisticsDuration.js +164 -0
  121. package/dist/model/DailyExecutionStatisticsExecutionCounts.js +197 -0
  122. package/dist/model/Dashboard.js +180 -0
  123. package/dist/model/DashboardControllerPreviewRequest.js +126 -0
  124. package/dist/model/DeleteExecutionsByQueryRequest.js +111 -0
  125. package/dist/model/DeletedInterface.js +85 -0
  126. package/dist/model/DependsOn.js +101 -0
  127. package/dist/model/DocumentationWithSchema.js +103 -0
  128. package/dist/model/Email.js +110 -0
  129. package/dist/model/EventAppResponse.js +139 -0
  130. package/dist/model/EventExecution.js +139 -0
  131. package/dist/model/EventExecutionStatusEvent.js +139 -0
  132. package/dist/model/EventLogEntry.js +139 -0
  133. package/dist/model/ExecutableTaskSubflowId.js +109 -0
  134. package/dist/model/Execution.js +407 -0
  135. package/dist/model/ExecutionControllerApiValidateExecutionInputsResponse.js +134 -0
  136. package/dist/model/ExecutionControllerApiValidateExecutionInputsResponseApiInputAndValue.js +140 -0
  137. package/dist/model/ExecutionControllerApiValidateExecutionInputsResponseApiInputError.js +89 -0
  138. package/dist/model/ExecutionControllerEvalResult.js +113 -0
  139. package/dist/model/ExecutionControllerExecutionResponse.js +505 -0
  140. package/dist/model/ExecutionControllerLastExecutionResponse.js +130 -0
  141. package/dist/model/ExecutionControllerSetLabelsByIdsRequest.js +122 -0
  142. package/dist/model/ExecutionControllerStateRequest.js +98 -0
  143. package/dist/model/ExecutionControllerWebhookResponse.js +216 -0
  144. package/dist/model/ExecutionKind.js +63 -0
  145. package/dist/model/ExecutionMetadata.js +93 -0
  146. package/dist/model/ExecutionRepositoryInterfaceChildFilter.js +58 -0
  147. package/dist/model/ExecutionRepositoryInterfaceFlowFilter.js +126 -0
  148. package/dist/model/ExecutionStatusEvent.js +139 -0
  149. package/dist/model/ExecutionTrigger.js +148 -0
  150. package/dist/model/ExecutionUsage.js +139 -0
  151. package/dist/model/FileAttributes.js +132 -0
  152. package/dist/model/FileAttributesFileType.js +58 -0
  153. package/dist/model/FileMetas.js +108 -0
  154. package/dist/model/Filter.js +97 -0
  155. package/dist/model/Fixtures.js +144 -0
  156. package/dist/model/Flow.js +601 -0
  157. package/dist/model/FlowAllOfLabels.js +158 -0
  158. package/dist/model/FlowControllerTaskValidationType.js +58 -0
  159. package/dist/model/FlowForExecution.js +447 -0
  160. package/dist/model/FlowForExecutionAllOfLabels.js +158 -0
  161. package/dist/model/FlowGenerationPrompt.js +126 -0
  162. package/dist/model/FlowGraph.js +182 -0
  163. package/dist/model/FlowGraphCluster.js +139 -0
  164. package/dist/model/FlowGraphEdge.js +115 -0
  165. package/dist/model/FlowId.js +121 -0
  166. package/dist/model/FlowInterface.js +350 -0
  167. package/dist/model/FlowNode.js +136 -0
  168. package/dist/model/FlowRelation.js +58 -0
  169. package/dist/model/FlowScope.js +58 -0
  170. package/dist/model/FlowTopologyGraph.js +140 -0
  171. package/dist/model/FlowTopologyGraphEdge.js +110 -0
  172. package/dist/model/FlowUsage.js +123 -0
  173. package/dist/model/FlowWithSource.js +695 -0
  174. package/dist/model/FlowWithSourceAllOfLabels.js +158 -0
  175. package/dist/model/Group.js +160 -0
  176. package/dist/model/GroupIdentifier.js +118 -0
  177. package/dist/model/GroupIdentifierMembership.js +58 -0
  178. package/dist/model/GroupUsage.js +85 -0
  179. package/dist/model/HostUsage.js +131 -0
  180. package/dist/model/HostUsageHardware.js +125 -0
  181. package/dist/model/HostUsageJvm.js +113 -0
  182. package/dist/model/HostUsageOs.js +125 -0
  183. package/dist/model/HttpParameters.js +152 -0
  184. package/dist/model/IAMBindingControllerApiBindingDetail.js +152 -0
  185. package/dist/model/IAMBindingControllerApiBindingGroup.js +101 -0
  186. package/dist/model/IAMBindingControllerApiBindingSummary.js +152 -0
  187. package/dist/model/IAMBindingControllerApiBindingUser.js +122 -0
  188. package/dist/model/IAMBindingControllerApiCreateBindingRequest.js +149 -0
  189. package/dist/model/IAMBindingControllerApiRole.js +101 -0
  190. package/dist/model/IAMGroupControllerApiCreateGroupRequest.js +136 -0
  191. package/dist/model/IAMGroupControllerApiGroupDetail.js +113 -0
  192. package/dist/model/IAMGroupControllerApiGroupMember.js +146 -0
  193. package/dist/model/IAMGroupControllerApiGroupMembership.js +118 -0
  194. package/dist/model/IAMGroupControllerApiUpdateGroupRequest.js +127 -0
  195. package/dist/model/IAMInvitationControllerApiInvitationCreateRequest.js +170 -0
  196. package/dist/model/IAMInvitationControllerApiInvitationDetail.js +229 -0
  197. package/dist/model/IAMInvitationControllerApiInvitationRole.js +124 -0
  198. package/dist/model/IAMRoleControllerApiRoleCreateOrUpdateRequest.js +148 -0
  199. package/dist/model/IAMRoleControllerApiRoleCreateOrUpdateRequestPermissions.js +365 -0
  200. package/dist/model/IAMRoleControllerApiRoleDetail.js +143 -0
  201. package/dist/model/IAMServiceAccountControllerApiGroup.js +89 -0
  202. package/dist/model/IAMServiceAccountControllerApiServiceAccountRequest.js +163 -0
  203. package/dist/model/IAMServiceAccountControllerApiServiceAccountResponse.js +178 -0
  204. package/dist/model/IAMTenantAccessControllerApiAuthentication.js +101 -0
  205. package/dist/model/IAMTenantAccessControllerApiCreateTenantAccessRequest.js +112 -0
  206. package/dist/model/IAMTenantAccessControllerApiGroup.js +109 -0
  207. package/dist/model/IAMTenantAccessControllerApiRoleAssignment.js +167 -0
  208. package/dist/model/IAMTenantAccessControllerApiTenantAccess.js +196 -0
  209. package/dist/model/IAMTenantAccessControllerApiUserPermission.js +99 -0
  210. package/dist/model/IAMTenantAccessControllerApiUserTenantAccess.js +188 -0
  211. package/dist/model/IAMTenantAccessControllerUserApiAutocomplete.js +127 -0
  212. package/dist/model/IAMUserControllerApiCreateOrUpdateUserRequest.js +188 -0
  213. package/dist/model/IAMUserControllerApiGroup.js +101 -0
  214. package/dist/model/IAMUserControllerApiPatchRestrictedRequest.js +108 -0
  215. package/dist/model/IAMUserControllerApiPatchSuperAdminRequest.js +108 -0
  216. package/dist/model/IAMUserControllerApiPatchUserPasswordRequest.js +112 -0
  217. package/dist/model/IAMUserControllerApiTenant.js +101 -0
  218. package/dist/model/IAMUserControllerApiUser.js +258 -0
  219. package/dist/model/IAMUserControllerApiUserAuth.js +113 -0
  220. package/dist/model/IAMUserControllerApiUserSummary.js +184 -0
  221. package/dist/model/IAMUserGroupControllerApiUpdateUserGroupsRequest.js +89 -0
  222. package/dist/model/IdWithNamespace.js +101 -0
  223. package/dist/model/IdentityProvider.js +123 -0
  224. package/dist/model/InputObject.js +189 -0
  225. package/dist/model/InputType.js +101 -0
  226. package/dist/model/InstanceControllerApiActiveService.js +94 -0
  227. package/dist/model/InstanceControllerApiActiveServiceList.js +118 -0
  228. package/dist/model/InstanceControllerApiCreateOrUpdateWorkerGroupRequest.js +139 -0
  229. package/dist/model/InstanceControllerApiPluginArtifact.js +137 -0
  230. package/dist/model/InstanceControllerApiPluginArtifactListPluginArtifact.js +97 -0
  231. package/dist/model/InstanceControllerApiPluginArtifactListPluginResolutionResult.js +97 -0
  232. package/dist/model/InstanceControllerApiPluginListRequest.js +89 -0
  233. package/dist/model/InstanceControllerApiPluginVersionDetails.js +182 -0
  234. package/dist/model/InstanceControllerApiPluginVersionDetailsApiPluginClass.js +101 -0
  235. package/dist/model/InstanceControllerApiPluginVersionDetailsApiPluginClasses.js +122 -0
  236. package/dist/model/InstanceControllerApiPluginVersions.js +134 -0
  237. package/dist/model/InstanceControllerApiPluginVersionsApiPluginVersionAndMetadata.js +103 -0
  238. package/dist/model/InstanceControllerApiServerInstance.js +122 -0
  239. package/dist/model/InstanceControllerApiServiceInstance.js +137 -0
  240. package/dist/model/InstanceControllerApiWorkerGroup.js +129 -0
  241. package/dist/model/InstanceControllerApiWorkerGroupDetails.js +163 -0
  242. package/dist/model/InstanceControllerApiWorkerGroupItem.js +126 -0
  243. package/dist/model/InstanceControllerApiWorkerGroupList.js +112 -0
  244. package/dist/model/Invitation.js +258 -0
  245. package/dist/model/InvitationInvitationStatus.js +63 -0
  246. package/dist/model/Isolation.js +98 -0
  247. package/dist/model/KVControllerApiDeleteBulkRequest.js +89 -0
  248. package/dist/model/KVControllerApiDeleteBulkResponse.js +89 -0
  249. package/dist/model/KVControllerTypedValue.js +94 -0
  250. package/dist/model/KVEntry.js +125 -0
  251. package/dist/model/KVType.js +83 -0
  252. package/dist/model/Label.js +126 -0
  253. package/dist/model/Level.js +73 -0
  254. package/dist/model/Listener.js +172 -0
  255. package/dist/model/LogEntry.js +242 -0
  256. package/dist/model/MapObjectObject.js +85 -0
  257. package/dist/model/MeControllerApiMe.js +182 -0
  258. package/dist/model/MeControllerApiProfile.js +125 -0
  259. package/dist/model/MeControllerApiTenant.js +113 -0
  260. package/dist/model/MeControllerApiUpdatePasswordRequest.js +101 -0
  261. package/dist/model/MeControllerApiUserDetailsRequest.js +113 -0
  262. package/dist/model/Meta.js +129 -0
  263. package/dist/model/Metric.js +166 -0
  264. package/dist/model/MetricAggregation.js +130 -0
  265. package/dist/model/MetricAggregations.js +144 -0
  266. package/dist/model/MetricEntry.js +239 -0
  267. package/dist/model/MetricTag.js +101 -0
  268. package/dist/model/MiscControllerBasicAuthCredentials.js +113 -0
  269. package/dist/model/MiscControllerConfiguration.js +266 -0
  270. package/dist/model/MiscControllerEEConfiguration.js +494 -0
  271. package/dist/model/MiscControllerEnvironment.js +101 -0
  272. package/dist/model/MiscControllerLicenseInfo.js +129 -0
  273. package/dist/model/MiscControllerPluginIdAndVersion.js +101 -0
  274. package/dist/model/MiscControllerPreview.js +93 -0
  275. package/dist/model/MiscControllerTenantConfigurationInfo.js +93 -0
  276. package/dist/model/Name.js +102 -0
  277. package/dist/model/Namespace.js +350 -0
  278. package/dist/model/NamespaceAllowedNamespace.js +112 -0
  279. package/dist/model/NamespaceAllowedTrigger.js +124 -0
  280. package/dist/model/NamespaceLight.js +122 -0
  281. package/dist/model/NamespaceUsage.js +85 -0
  282. package/dist/model/NamespaceWithDisabled.js +370 -0
  283. package/dist/model/Output.js +157 -0
  284. package/dist/model/PageRequest.js +93 -0
  285. package/dist/model/PagedResultsApiGroupSummary.js +140 -0
  286. package/dist/model/PagedResultsApiRoleSummary.js +140 -0
  287. package/dist/model/PagedResultsAppsControllerApiApp.js +140 -0
  288. package/dist/model/PagedResultsAppsControllerApiAppCatalogItem.js +140 -0
  289. package/dist/model/PagedResultsAuditLogControllerAuditLogWithUser.js +140 -0
  290. package/dist/model/PagedResultsBlueprint.js +140 -0
  291. package/dist/model/PagedResultsBlueprintControllerApiBlueprintItem.js +140 -0
  292. package/dist/model/PagedResultsDashboard.js +140 -0
  293. package/dist/model/PagedResultsExecution.js +140 -0
  294. package/dist/model/PagedResultsFlow.js +140 -0
  295. package/dist/model/PagedResultsIAMBindingControllerApiBindingDetail.js +140 -0
  296. package/dist/model/PagedResultsIAMBindingControllerApiBindingSummary.js +140 -0
  297. package/dist/model/PagedResultsIAMGroupControllerApiGroupMember.js +140 -0
  298. package/dist/model/PagedResultsIAMInvitationControllerApiInvitationDetail.js +140 -0
  299. package/dist/model/PagedResultsIAMTenantAccessControllerApiUserTenantAccess.js +140 -0
  300. package/dist/model/PagedResultsIAMUserControllerApiUserSummary.js +140 -0
  301. package/dist/model/PagedResultsInstanceControllerApiPluginArtifact.js +140 -0
  302. package/dist/model/PagedResultsInstanceControllerApiServiceInstance.js +140 -0
  303. package/dist/model/PagedResultsLogEntry.js +140 -0
  304. package/dist/model/PagedResultsMapStringObject.js +124 -0
  305. package/dist/model/PagedResultsMetricEntry.js +140 -0
  306. package/dist/model/PagedResultsNamespaceWithDisabled.js +140 -0
  307. package/dist/model/PagedResultsSearchResultFlow.js +140 -0
  308. package/dist/model/PagedResultsTaskRun.js +140 -0
  309. package/dist/model/PagedResultsTenant.js +140 -0
  310. package/dist/model/PagedResultsTestSuite.js +140 -0
  311. package/dist/model/PagedResultsTrigger.js +140 -0
  312. package/dist/model/PagedResultsTriggerControllerTriggers.js +140 -0
  313. package/dist/model/PatchOperation.js +108 -0
  314. package/dist/model/PatchOperationPath.js +91 -0
  315. package/dist/model/PatchOperationType.js +63 -0
  316. package/dist/model/PatchRequest.js +132 -0
  317. package/dist/model/Permission.js +168 -0
  318. package/dist/model/Plugin.js +601 -0
  319. package/dist/model/PluginArtifact.js +149 -0
  320. package/dist/model/PluginArtifactMetadata.js +125 -0
  321. package/dist/model/PluginControllerApiPluginVersions.js +101 -0
  322. package/dist/model/PluginDefault.js +130 -0
  323. package/dist/model/PluginIcon.js +109 -0
  324. package/dist/model/PluginMetric.js +113 -0
  325. package/dist/model/PluginPluginElementMetadata.js +97 -0
  326. package/dist/model/PluginSchema.js +107 -0
  327. package/dist/model/PluginSubGroupPluginCategory.js +118 -0
  328. package/dist/model/PluginUsage.js +87 -0
  329. package/dist/model/PreviewAppRequest.js +91 -0
  330. package/dist/model/PropertyBoolean.js +97 -0
  331. package/dist/model/PropertyDouble.js +97 -0
  332. package/dist/model/PropertyDuration.js +101 -0
  333. package/dist/model/PropertyListString.js +101 -0
  334. package/dist/model/PropertyObject.js +97 -0
  335. package/dist/model/PropertyString.js +101 -0
  336. package/dist/model/QueryFilter.js +103 -0
  337. package/dist/model/QueryFilterField.js +123 -0
  338. package/dist/model/QueryFilterFieldOp.js +134 -0
  339. package/dist/model/QueryFilterOp.js +113 -0
  340. package/dist/model/QueryFilterOperation.js +101 -0
  341. package/dist/model/QueryFilterResourceField.js +122 -0
  342. package/dist/model/RBACServiceRoleAssignmentRoleOrigin.js +58 -0
  343. package/dist/model/Relation.js +98 -0
  344. package/dist/model/RelationType.js +83 -0
  345. package/dist/model/ResourceType.js +339 -0
  346. package/dist/model/ResourceTypeSchemaExtensionConfiguration.js +97 -0
  347. package/dist/model/Role.js +178 -0
  348. package/dist/model/RoleUsage.js +85 -0
  349. package/dist/model/SLA.js +148 -0
  350. package/dist/model/SLABehavior.js +63 -0
  351. package/dist/model/SLAType.js +58 -0
  352. package/dist/model/Schema.js +180 -0
  353. package/dist/model/SchemaAttribute.js +274 -0
  354. package/dist/model/SchemaAttributeMutability.js +68 -0
  355. package/dist/model/SchemaAttributeReturned.js +68 -0
  356. package/dist/model/SchemaAttributeType.js +88 -0
  357. package/dist/model/SchemaAttributeUniqueness.js +63 -0
  358. package/dist/model/SchemaType.js +88 -0
  359. package/dist/model/ScimExtension.js +89 -0
  360. package/dist/model/ScimResource.js +195 -0
  361. package/dist/model/ScimResourceWithOptionalId.js +228 -0
  362. package/dist/model/ScimUser.js +336 -0
  363. package/dist/model/SearchRequest.js +241 -0
  364. package/dist/model/SearchResultFlow.js +103 -0
  365. package/dist/model/SecurityIntegrationType.js +53 -0
  366. package/dist/model/ServerConfig.js +136 -0
  367. package/dist/model/ServerConfigLiveness.js +169 -0
  368. package/dist/model/ServerInstance.js +165 -0
  369. package/dist/model/ServerInstanceType.js +58 -0
  370. package/dist/model/ServerType.js +78 -0
  371. package/dist/model/ServiceInstance.js +232 -0
  372. package/dist/model/ServiceInstanceTimestampedEvent.js +118 -0
  373. package/dist/model/ServiceProviderConfiguration.js +384 -0
  374. package/dist/model/ServiceProviderConfigurationAuthenticationSchema.js +134 -0
  375. package/dist/model/ServiceProviderConfigurationAuthenticationSchemaType.js +73 -0
  376. package/dist/model/ServiceProviderConfigurationBulkConfiguration.js +111 -0
  377. package/dist/model/ServiceProviderConfigurationFilterConfiguration.js +103 -0
  378. package/dist/model/ServiceProviderConfigurationSupportedConfiguration.js +85 -0
  379. package/dist/model/ServiceServiceState.js +98 -0
  380. package/dist/model/ServiceType.js +73 -0
  381. package/dist/model/ServiceUsage.js +110 -0
  382. package/dist/model/ServiceUsageDailyServiceStatistics.js +122 -0
  383. package/dist/model/ServiceUsageDailyStatistics.js +109 -0
  384. package/dist/model/SetupConfiguration.js +145 -0
  385. package/dist/model/SetupConfigurationSetupData.js +115 -0
  386. package/dist/model/SortOrder.js +58 -0
  387. package/dist/model/SortRequest.js +100 -0
  388. package/dist/model/State.js +167 -0
  389. package/dist/model/StateHistory.js +119 -0
  390. package/dist/model/StateType.js +123 -0
  391. package/dist/model/Task.js +253 -0
  392. package/dist/model/TaskFixture.js +157 -0
  393. package/dist/model/TaskForExecution.js +211 -0
  394. package/dist/model/TaskRun.js +284 -0
  395. package/dist/model/TaskRunAttempt.js +168 -0
  396. package/dist/model/Tenant.js +245 -0
  397. package/dist/model/TenantInterface.js +89 -0
  398. package/dist/model/TenantUsage.js +85 -0
  399. package/dist/model/TestState.js +68 -0
  400. package/dist/model/TestSuite.js +212 -0
  401. package/dist/model/TestSuiteControllerSearchTestsLastResult.js +110 -0
  402. package/dist/model/TestSuiteControllerTestSuiteApiId.js +126 -0
  403. package/dist/model/TestSuiteControllerTestSuiteBulkRequest.js +130 -0
  404. package/dist/model/TestSuiteControllerTestsLastResultResponse.js +110 -0
  405. package/dist/model/TestSuiteRunResult.js +215 -0
  406. package/dist/model/TheLabelsToPassToTheExecutionCreated.js +158 -0
  407. package/dist/model/TimeWindow.js +101 -0
  408. package/dist/model/Trigger.js +287 -0
  409. package/dist/model/TriggerContext.js +205 -0
  410. package/dist/model/TriggerControllerSetDisabledRequest.js +140 -0
  411. package/dist/model/TriggerControllerTriggers.js +105 -0
  412. package/dist/model/TriggerFixture.js +136 -0
  413. package/dist/model/Type.js +143 -0
  414. package/dist/model/UnitTest.js +192 -0
  415. package/dist/model/UnitTestResult.js +239 -0
  416. package/dist/model/UpdateFlow200Response.js +261 -0
  417. package/dist/model/UpdateFlowsInNamespaceFromJson200Response.js +141 -0
  418. package/dist/model/Usage.js +343 -0
  419. package/dist/model/UsageEE.js +483 -0
  420. package/dist/model/UserGroup.js +122 -0
  421. package/dist/model/UserGroupType.js +58 -0
  422. package/dist/model/UserType.js +58 -0
  423. package/dist/model/UserUsage.js +138 -0
  424. package/dist/model/UsernamePasswordCredentials.js +150 -0
  425. package/dist/model/ValidateConstraintViolation.js +188 -0
  426. package/dist/model/ValuePathExpression.js +99 -0
  427. package/dist/model/WorkerGroup.js +98 -0
  428. package/dist/model/WorkerGroupFallback.js +63 -0
  429. package/dist/model/WorkerTaskRestartStrategy.js +63 -0
  430. package/package.json +46 -0
@@ -0,0 +1,1509 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AppsControllerApiBulkImportResponse = _interopRequireDefault(require("../model/AppsControllerApiBulkImportResponse"));
9
+ var _BulkResponse = _interopRequireDefault(require("../model/BulkResponse"));
10
+ var _DeleteExecutionsByQueryRequest = _interopRequireDefault(require("../model/DeleteExecutionsByQueryRequest"));
11
+ var _Flow = _interopRequireDefault(require("../model/Flow"));
12
+ var _FlowControllerTaskValidationType = _interopRequireDefault(require("../model/FlowControllerTaskValidationType"));
13
+ var _FlowGraph = _interopRequireDefault(require("../model/FlowGraph"));
14
+ var _FlowInterface = _interopRequireDefault(require("../model/FlowInterface"));
15
+ var _FlowScope = _interopRequireDefault(require("../model/FlowScope"));
16
+ var _FlowTopologyGraph = _interopRequireDefault(require("../model/FlowTopologyGraph"));
17
+ var _FlowWithSource = _interopRequireDefault(require("../model/FlowWithSource"));
18
+ var _IdWithNamespace = _interopRequireDefault(require("../model/IdWithNamespace"));
19
+ var _PagedResultsFlow = _interopRequireDefault(require("../model/PagedResultsFlow"));
20
+ var _PagedResultsSearchResultFlow = _interopRequireDefault(require("../model/PagedResultsSearchResultFlow"));
21
+ var _QueryFilter = _interopRequireDefault(require("../model/QueryFilter"));
22
+ var _Task = _interopRequireDefault(require("../model/Task"));
23
+ var _UpdateFlow200Response = _interopRequireDefault(require("../model/UpdateFlow200Response"));
24
+ var _UpdateFlowsInNamespaceFromJson200Response = _interopRequireDefault(require("../model/UpdateFlowsInNamespaceFromJson200Response"));
25
+ var _ValidateConstraintViolation = _interopRequireDefault(require("../model/ValidateConstraintViolation"));
26
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
28
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
29
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
30
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
31
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
32
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
33
+ * Kestra EE
34
+ * All API operations, except for Superadmin-only endpoints, require a tenant identifier in the HTTP path.<br/> Endpoints designated as Superadmin-only are not tenant-scoped.
35
+ *
36
+ * The version of the OpenAPI document: v1
37
+ *
38
+ *
39
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
40
+ * https://openapi-generator.tech
41
+ * Do not edit the class manually.
42
+ *
43
+ */
44
+ /**
45
+ * Flows service.
46
+ * @module api/FlowsApi
47
+ * @version v0.24.0
48
+ */
49
+ var FlowsApi = exports["default"] = /*#__PURE__*/function () {
50
+ /**
51
+ * Constructs a new FlowsApi.
52
+ * @alias module:api/FlowsApi
53
+ * @class
54
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
55
+ * default to {@link module:ApiClient#instance} if unspecified.
56
+ */
57
+ function FlowsApi(apiClient) {
58
+ _classCallCheck(this, FlowsApi);
59
+ this.apiClient = apiClient || _ApiClient["default"].instance;
60
+ }
61
+
62
+ /**
63
+ * Callback function to receive the result of the bulkImportApps operation.
64
+ * @callback module:api/FlowsApi~bulkImportAppsCallback
65
+ * @param {String} error Error message, if any.
66
+ * @param {module:model/AppsControllerApiBulkImportResponse} data The data returned by the service call.
67
+ * @param {String} response The complete HTTP response.
68
+ */
69
+
70
+ /**
71
+ * Import apps as a ZIP archive of yaml sources or a multi-objects YAML file. When sending a Yaml that contains one or more apps, a list of index is returned. When sending a ZIP archive, a list of files that couldn't be imported is returned.
72
+ * @param {String} tenant
73
+ * @param {Object} opts Optional parameters
74
+ * @param {File} [fileUpload] The file to import, can be a ZIP archive or a multi-objects YAML file
75
+ * @param {module:api/FlowsApi~bulkImportAppsCallback} callback The callback function, accepting three arguments: error, data, response
76
+ * data is of type: {@link module:model/AppsControllerApiBulkImportResponse}
77
+ */
78
+ return _createClass(FlowsApi, [{
79
+ key: "bulkImportApps",
80
+ value: function bulkImportApps(tenant, opts, callback) {
81
+ opts = opts || {};
82
+ var postBody = null;
83
+ // verify the required parameter 'tenant' is set
84
+ if (tenant === undefined || tenant === null) {
85
+ throw new Error("Missing the required parameter 'tenant' when calling bulkImportApps");
86
+ }
87
+ var pathParams = {
88
+ 'tenant': tenant
89
+ };
90
+ var queryParams = {};
91
+ var headerParams = {};
92
+ var formParams = {
93
+ 'fileUpload': opts['fileUpload']
94
+ };
95
+ var authNames = ['basicAuth', 'bearerAuth'];
96
+ var contentTypes = ['multipart/form-data'];
97
+ var accepts = ['application/json'];
98
+ var returnType = _AppsControllerApiBulkImportResponse["default"];
99
+ return this.apiClient.callApi('/api/v1/{tenant}/apps/import', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
100
+ }
101
+
102
+ /**
103
+ * Callback function to receive the result of the bulkUpdateFlows operation.
104
+ * @callback module:api/FlowsApi~bulkUpdateFlowsCallback
105
+ * @param {String} error Error message, if any.
106
+ * @param {Array.<module:model/FlowInterface>} data The data returned by the service call.
107
+ * @param {String} response The complete HTTP response.
108
+ */
109
+
110
+ /**
111
+ * Update from multiples yaml sources
112
+ * All flow will be created / updated for this namespace. Flow that already created but not in `flows` will be deleted if the query delete is `true`
113
+ * @param {Boolean} _delete If missing flow should be deleted
114
+ * @param {Boolean} allowNamespaceChild If namespace child should are allowed to be updated
115
+ * @param {String} tenant
116
+ * @param {Object} opts Optional parameters
117
+ * @param {String} [namespace] The namespace where to update flows
118
+ * @param {String} [body] A list of flows source code splitted with \"---\"
119
+ * @param {module:api/FlowsApi~bulkUpdateFlowsCallback} callback The callback function, accepting three arguments: error, data, response
120
+ * data is of type: {@link Array.<module:model/FlowInterface>}
121
+ */
122
+ }, {
123
+ key: "bulkUpdateFlows",
124
+ value: function bulkUpdateFlows(_delete, allowNamespaceChild, tenant, opts, callback) {
125
+ opts = opts || {};
126
+ var postBody = opts['body'];
127
+ // verify the required parameter '_delete' is set
128
+ if (_delete === undefined || _delete === null) {
129
+ throw new Error("Missing the required parameter '_delete' when calling bulkUpdateFlows");
130
+ }
131
+ // verify the required parameter 'allowNamespaceChild' is set
132
+ if (allowNamespaceChild === undefined || allowNamespaceChild === null) {
133
+ throw new Error("Missing the required parameter 'allowNamespaceChild' when calling bulkUpdateFlows");
134
+ }
135
+ // verify the required parameter 'tenant' is set
136
+ if (tenant === undefined || tenant === null) {
137
+ throw new Error("Missing the required parameter 'tenant' when calling bulkUpdateFlows");
138
+ }
139
+ var pathParams = {
140
+ 'tenant': tenant
141
+ };
142
+ var queryParams = {
143
+ 'delete': _delete,
144
+ 'namespace': opts['namespace'],
145
+ 'allowNamespaceChild': allowNamespaceChild
146
+ };
147
+ var headerParams = {};
148
+ var formParams = {};
149
+ var authNames = ['basicAuth', 'bearerAuth'];
150
+ var contentTypes = ['application/x-yaml'];
151
+ var accepts = ['application/json'];
152
+ var returnType = [_FlowInterface["default"]];
153
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/bulk', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
154
+ }
155
+
156
+ /**
157
+ * Callback function to receive the result of the createFlow operation.
158
+ * @callback module:api/FlowsApi~createFlowCallback
159
+ * @param {String} error Error message, if any.
160
+ * @param {module:model/FlowWithSource} data The data returned by the service call.
161
+ * @param {String} response The complete HTTP response.
162
+ */
163
+
164
+ /**
165
+ * Create a flow from yaml source
166
+ * @param {String} tenant
167
+ * @param {String} body The flow source code
168
+ * @param {module:api/FlowsApi~createFlowCallback} callback The callback function, accepting three arguments: error, data, response
169
+ * data is of type: {@link module:model/FlowWithSource}
170
+ */
171
+ }, {
172
+ key: "createFlow",
173
+ value: function createFlow(tenant, body, callback) {
174
+ var postBody = body;
175
+ // verify the required parameter 'tenant' is set
176
+ if (tenant === undefined || tenant === null) {
177
+ throw new Error("Missing the required parameter 'tenant' when calling createFlow");
178
+ }
179
+ // verify the required parameter 'body' is set
180
+ if (body === undefined || body === null) {
181
+ throw new Error("Missing the required parameter 'body' when calling createFlow");
182
+ }
183
+ var pathParams = {
184
+ 'tenant': tenant
185
+ };
186
+ var queryParams = {};
187
+ var headerParams = {};
188
+ var formParams = {};
189
+ var authNames = ['basicAuth', 'bearerAuth'];
190
+ var contentTypes = ['application/x-yaml'];
191
+ var accepts = ['application/json'];
192
+ var returnType = _FlowWithSource["default"];
193
+ return this.apiClient.callApi('/api/v1/{tenant}/flows', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
194
+ }
195
+
196
+ /**
197
+ * Callback function to receive the result of the deleteFlow operation.
198
+ * @callback module:api/FlowsApi~deleteFlowCallback
199
+ * @param {String} error Error message, if any.
200
+ * @param data This operation does not return a value.
201
+ * @param {String} response The complete HTTP response.
202
+ */
203
+
204
+ /**
205
+ * Delete a flow
206
+ * @param {String} namespace The flow namespace
207
+ * @param {String} id The flow id
208
+ * @param {String} tenant
209
+ * @param {module:api/FlowsApi~deleteFlowCallback} callback The callback function, accepting three arguments: error, data, response
210
+ */
211
+ }, {
212
+ key: "deleteFlow",
213
+ value: function deleteFlow(namespace, id, tenant, callback) {
214
+ var postBody = null;
215
+ // verify the required parameter 'namespace' is set
216
+ if (namespace === undefined || namespace === null) {
217
+ throw new Error("Missing the required parameter 'namespace' when calling deleteFlow");
218
+ }
219
+ // verify the required parameter 'id' is set
220
+ if (id === undefined || id === null) {
221
+ throw new Error("Missing the required parameter 'id' when calling deleteFlow");
222
+ }
223
+ // verify the required parameter 'tenant' is set
224
+ if (tenant === undefined || tenant === null) {
225
+ throw new Error("Missing the required parameter 'tenant' when calling deleteFlow");
226
+ }
227
+ var pathParams = {
228
+ 'namespace': namespace,
229
+ 'id': id,
230
+ 'tenant': tenant
231
+ };
232
+ var queryParams = {};
233
+ var headerParams = {};
234
+ var formParams = {};
235
+ var authNames = ['basicAuth', 'bearerAuth'];
236
+ var contentTypes = [];
237
+ var accepts = [];
238
+ var returnType = null;
239
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
240
+ }
241
+
242
+ /**
243
+ * Callback function to receive the result of the deleteFlowsByIds operation.
244
+ * @callback module:api/FlowsApi~deleteFlowsByIdsCallback
245
+ * @param {String} error Error message, if any.
246
+ * @param {module:model/BulkResponse} data The data returned by the service call.
247
+ * @param {String} response The complete HTTP response.
248
+ */
249
+
250
+ /**
251
+ * Delete flows by their IDs.
252
+ * @param {String} tenant
253
+ * @param {Array.<module:model/IdWithNamespace>} idWithNamespace A list of tuple flow ID and namespace as flow identifiers
254
+ * @param {module:api/FlowsApi~deleteFlowsByIdsCallback} callback The callback function, accepting three arguments: error, data, response
255
+ * data is of type: {@link module:model/BulkResponse}
256
+ */
257
+ }, {
258
+ key: "deleteFlowsByIds",
259
+ value: function deleteFlowsByIds(tenant, idWithNamespace, callback) {
260
+ var postBody = idWithNamespace;
261
+ // verify the required parameter 'tenant' is set
262
+ if (tenant === undefined || tenant === null) {
263
+ throw new Error("Missing the required parameter 'tenant' when calling deleteFlowsByIds");
264
+ }
265
+ // verify the required parameter 'idWithNamespace' is set
266
+ if (idWithNamespace === undefined || idWithNamespace === null) {
267
+ throw new Error("Missing the required parameter 'idWithNamespace' when calling deleteFlowsByIds");
268
+ }
269
+ var pathParams = {
270
+ 'tenant': tenant
271
+ };
272
+ var queryParams = {};
273
+ var headerParams = {};
274
+ var formParams = {};
275
+ var authNames = ['basicAuth', 'bearerAuth'];
276
+ var contentTypes = ['application/json'];
277
+ var accepts = ['application/json'];
278
+ var returnType = _BulkResponse["default"];
279
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/delete/by-ids', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
280
+ }
281
+
282
+ /**
283
+ * Callback function to receive the result of the deleteFlowsByQuery operation.
284
+ * @callback module:api/FlowsApi~deleteFlowsByQueryCallback
285
+ * @param {String} error Error message, if any.
286
+ * @param {module:model/BulkResponse} data The data returned by the service call.
287
+ * @param {String} response The complete HTTP response.
288
+ */
289
+
290
+ /**
291
+ * Delete flows returned by the query parameters.
292
+ * @param {String} tenant
293
+ * @param {module:model/DeleteExecutionsByQueryRequest} deleteExecutionsByQueryRequest
294
+ * @param {Object} opts Optional parameters
295
+ * @param {String} [q] A string filter
296
+ * @param {Array.<module:model/FlowScope>} [scope] The scope of the flows to include
297
+ * @param {String} [namespace] A namespace filter prefix
298
+ * @param {Array.<String>} [labels] A labels filter as a list of 'key:value'
299
+ * @param {module:api/FlowsApi~deleteFlowsByQueryCallback} callback The callback function, accepting three arguments: error, data, response
300
+ * data is of type: {@link module:model/BulkResponse}
301
+ */
302
+ }, {
303
+ key: "deleteFlowsByQuery",
304
+ value: function deleteFlowsByQuery(tenant, deleteExecutionsByQueryRequest, opts, callback) {
305
+ opts = opts || {};
306
+ var postBody = deleteExecutionsByQueryRequest;
307
+ // verify the required parameter 'tenant' is set
308
+ if (tenant === undefined || tenant === null) {
309
+ throw new Error("Missing the required parameter 'tenant' when calling deleteFlowsByQuery");
310
+ }
311
+ // verify the required parameter 'deleteExecutionsByQueryRequest' is set
312
+ if (deleteExecutionsByQueryRequest === undefined || deleteExecutionsByQueryRequest === null) {
313
+ throw new Error("Missing the required parameter 'deleteExecutionsByQueryRequest' when calling deleteFlowsByQuery");
314
+ }
315
+ var pathParams = {
316
+ 'tenant': tenant
317
+ };
318
+ var queryParams = {
319
+ 'q': opts['q'],
320
+ 'scope': this.apiClient.buildCollectionParam(opts['scope'], 'csv'),
321
+ 'namespace': opts['namespace'],
322
+ 'labels': this.apiClient.buildCollectionParam(opts['labels'], 'multi')
323
+ };
324
+ var headerParams = {};
325
+ var formParams = {};
326
+ var authNames = ['basicAuth', 'bearerAuth'];
327
+ var contentTypes = ['application/json'];
328
+ var accepts = ['application/json'];
329
+ var returnType = _BulkResponse["default"];
330
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/delete/by-query', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
331
+ }
332
+
333
+ /**
334
+ * Callback function to receive the result of the disableFlowsByIds operation.
335
+ * @callback module:api/FlowsApi~disableFlowsByIdsCallback
336
+ * @param {String} error Error message, if any.
337
+ * @param {module:model/BulkResponse} data The data returned by the service call.
338
+ * @param {String} response The complete HTTP response.
339
+ */
340
+
341
+ /**
342
+ * Disable flows by their IDs.
343
+ * @param {String} tenant
344
+ * @param {Array.<module:model/IdWithNamespace>} idWithNamespace A list of tuple flow ID and namespace as flow identifiers
345
+ * @param {module:api/FlowsApi~disableFlowsByIdsCallback} callback The callback function, accepting three arguments: error, data, response
346
+ * data is of type: {@link module:model/BulkResponse}
347
+ */
348
+ }, {
349
+ key: "disableFlowsByIds",
350
+ value: function disableFlowsByIds(tenant, idWithNamespace, callback) {
351
+ var postBody = idWithNamespace;
352
+ // verify the required parameter 'tenant' is set
353
+ if (tenant === undefined || tenant === null) {
354
+ throw new Error("Missing the required parameter 'tenant' when calling disableFlowsByIds");
355
+ }
356
+ // verify the required parameter 'idWithNamespace' is set
357
+ if (idWithNamespace === undefined || idWithNamespace === null) {
358
+ throw new Error("Missing the required parameter 'idWithNamespace' when calling disableFlowsByIds");
359
+ }
360
+ var pathParams = {
361
+ 'tenant': tenant
362
+ };
363
+ var queryParams = {};
364
+ var headerParams = {};
365
+ var formParams = {};
366
+ var authNames = ['basicAuth', 'bearerAuth'];
367
+ var contentTypes = ['application/json'];
368
+ var accepts = ['application/json'];
369
+ var returnType = _BulkResponse["default"];
370
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/disable/by-ids', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
371
+ }
372
+
373
+ /**
374
+ * Callback function to receive the result of the disableFlowsByQuery operation.
375
+ * @callback module:api/FlowsApi~disableFlowsByQueryCallback
376
+ * @param {String} error Error message, if any.
377
+ * @param {module:model/BulkResponse} data The data returned by the service call.
378
+ * @param {String} response The complete HTTP response.
379
+ */
380
+
381
+ /**
382
+ * Disable flows returned by the query parameters.
383
+ * @param {String} tenant
384
+ * @param {module:model/DeleteExecutionsByQueryRequest} deleteExecutionsByQueryRequest
385
+ * @param {Object} opts Optional parameters
386
+ * @param {String} [q] A string filter
387
+ * @param {Array.<module:model/FlowScope>} [scope] The scope of the flows to include
388
+ * @param {String} [namespace] A namespace filter prefix
389
+ * @param {Array.<String>} [labels] A labels filter as a list of 'key:value'
390
+ * @param {module:api/FlowsApi~disableFlowsByQueryCallback} callback The callback function, accepting three arguments: error, data, response
391
+ * data is of type: {@link module:model/BulkResponse}
392
+ */
393
+ }, {
394
+ key: "disableFlowsByQuery",
395
+ value: function disableFlowsByQuery(tenant, deleteExecutionsByQueryRequest, opts, callback) {
396
+ opts = opts || {};
397
+ var postBody = deleteExecutionsByQueryRequest;
398
+ // verify the required parameter 'tenant' is set
399
+ if (tenant === undefined || tenant === null) {
400
+ throw new Error("Missing the required parameter 'tenant' when calling disableFlowsByQuery");
401
+ }
402
+ // verify the required parameter 'deleteExecutionsByQueryRequest' is set
403
+ if (deleteExecutionsByQueryRequest === undefined || deleteExecutionsByQueryRequest === null) {
404
+ throw new Error("Missing the required parameter 'deleteExecutionsByQueryRequest' when calling disableFlowsByQuery");
405
+ }
406
+ var pathParams = {
407
+ 'tenant': tenant
408
+ };
409
+ var queryParams = {
410
+ 'q': opts['q'],
411
+ 'scope': this.apiClient.buildCollectionParam(opts['scope'], 'csv'),
412
+ 'namespace': opts['namespace'],
413
+ 'labels': this.apiClient.buildCollectionParam(opts['labels'], 'multi')
414
+ };
415
+ var headerParams = {};
416
+ var formParams = {};
417
+ var authNames = ['basicAuth', 'bearerAuth'];
418
+ var contentTypes = ['application/json'];
419
+ var accepts = ['application/json'];
420
+ var returnType = _BulkResponse["default"];
421
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/disable/by-query', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
422
+ }
423
+
424
+ /**
425
+ * Callback function to receive the result of the enableFlowsByIds operation.
426
+ * @callback module:api/FlowsApi~enableFlowsByIdsCallback
427
+ * @param {String} error Error message, if any.
428
+ * @param {module:model/BulkResponse} data The data returned by the service call.
429
+ * @param {String} response The complete HTTP response.
430
+ */
431
+
432
+ /**
433
+ * Enable flows by their IDs.
434
+ * @param {String} tenant
435
+ * @param {Array.<module:model/IdWithNamespace>} idWithNamespace A list of tuple flow ID and namespace as flow identifiers
436
+ * @param {module:api/FlowsApi~enableFlowsByIdsCallback} callback The callback function, accepting three arguments: error, data, response
437
+ * data is of type: {@link module:model/BulkResponse}
438
+ */
439
+ }, {
440
+ key: "enableFlowsByIds",
441
+ value: function enableFlowsByIds(tenant, idWithNamespace, callback) {
442
+ var postBody = idWithNamespace;
443
+ // verify the required parameter 'tenant' is set
444
+ if (tenant === undefined || tenant === null) {
445
+ throw new Error("Missing the required parameter 'tenant' when calling enableFlowsByIds");
446
+ }
447
+ // verify the required parameter 'idWithNamespace' is set
448
+ if (idWithNamespace === undefined || idWithNamespace === null) {
449
+ throw new Error("Missing the required parameter 'idWithNamespace' when calling enableFlowsByIds");
450
+ }
451
+ var pathParams = {
452
+ 'tenant': tenant
453
+ };
454
+ var queryParams = {};
455
+ var headerParams = {};
456
+ var formParams = {};
457
+ var authNames = ['basicAuth', 'bearerAuth'];
458
+ var contentTypes = ['application/json'];
459
+ var accepts = ['application/json'];
460
+ var returnType = _BulkResponse["default"];
461
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/enable/by-ids', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
462
+ }
463
+
464
+ /**
465
+ * Callback function to receive the result of the enableFlowsByQuery operation.
466
+ * @callback module:api/FlowsApi~enableFlowsByQueryCallback
467
+ * @param {String} error Error message, if any.
468
+ * @param {module:model/BulkResponse} data The data returned by the service call.
469
+ * @param {String} response The complete HTTP response.
470
+ */
471
+
472
+ /**
473
+ * Enable flows returned by the query parameters.
474
+ * @param {String} tenant
475
+ * @param {module:model/DeleteExecutionsByQueryRequest} deleteExecutionsByQueryRequest
476
+ * @param {Object} opts Optional parameters
477
+ * @param {String} [q] A string filter
478
+ * @param {Array.<module:model/FlowScope>} [scope] The scope of the flows to include
479
+ * @param {String} [namespace] A namespace filter prefix
480
+ * @param {Array.<String>} [labels] A labels filter as a list of 'key:value'
481
+ * @param {module:api/FlowsApi~enableFlowsByQueryCallback} callback The callback function, accepting three arguments: error, data, response
482
+ * data is of type: {@link module:model/BulkResponse}
483
+ */
484
+ }, {
485
+ key: "enableFlowsByQuery",
486
+ value: function enableFlowsByQuery(tenant, deleteExecutionsByQueryRequest, opts, callback) {
487
+ opts = opts || {};
488
+ var postBody = deleteExecutionsByQueryRequest;
489
+ // verify the required parameter 'tenant' is set
490
+ if (tenant === undefined || tenant === null) {
491
+ throw new Error("Missing the required parameter 'tenant' when calling enableFlowsByQuery");
492
+ }
493
+ // verify the required parameter 'deleteExecutionsByQueryRequest' is set
494
+ if (deleteExecutionsByQueryRequest === undefined || deleteExecutionsByQueryRequest === null) {
495
+ throw new Error("Missing the required parameter 'deleteExecutionsByQueryRequest' when calling enableFlowsByQuery");
496
+ }
497
+ var pathParams = {
498
+ 'tenant': tenant
499
+ };
500
+ var queryParams = {
501
+ 'q': opts['q'],
502
+ 'scope': this.apiClient.buildCollectionParam(opts['scope'], 'csv'),
503
+ 'namespace': opts['namespace'],
504
+ 'labels': this.apiClient.buildCollectionParam(opts['labels'], 'multi')
505
+ };
506
+ var headerParams = {};
507
+ var formParams = {};
508
+ var authNames = ['basicAuth', 'bearerAuth'];
509
+ var contentTypes = ['application/json'];
510
+ var accepts = ['application/json'];
511
+ var returnType = _BulkResponse["default"];
512
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/enable/by-query', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
513
+ }
514
+
515
+ /**
516
+ * Callback function to receive the result of the exportFlowsByIds operation.
517
+ * @callback module:api/FlowsApi~exportFlowsByIdsCallback
518
+ * @param {String} error Error message, if any.
519
+ * @param {Blob} data The data returned by the service call.
520
+ * @param {String} response The complete HTTP response.
521
+ */
522
+
523
+ /**
524
+ * Export flows as a ZIP archive of yaml sources.
525
+ * @param {String} tenant
526
+ * @param {Array.<module:model/IdWithNamespace>} idWithNamespace A list of tuple flow ID and namespace as flow identifiers
527
+ * @param {module:api/FlowsApi~exportFlowsByIdsCallback} callback The callback function, accepting three arguments: error, data, response
528
+ * data is of type: {@link Blob}
529
+ */
530
+ }, {
531
+ key: "exportFlowsByIds",
532
+ value: function exportFlowsByIds(tenant, idWithNamespace, callback) {
533
+ var postBody = idWithNamespace;
534
+ // verify the required parameter 'tenant' is set
535
+ if (tenant === undefined || tenant === null) {
536
+ throw new Error("Missing the required parameter 'tenant' when calling exportFlowsByIds");
537
+ }
538
+ // verify the required parameter 'idWithNamespace' is set
539
+ if (idWithNamespace === undefined || idWithNamespace === null) {
540
+ throw new Error("Missing the required parameter 'idWithNamespace' when calling exportFlowsByIds");
541
+ }
542
+ var pathParams = {
543
+ 'tenant': tenant
544
+ };
545
+ var queryParams = {};
546
+ var headerParams = {};
547
+ var formParams = {};
548
+ var authNames = ['basicAuth', 'bearerAuth'];
549
+ var contentTypes = ['application/json'];
550
+ var accepts = ['application/octet-stream'];
551
+ var returnType = 'Blob';
552
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/export/by-ids', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
553
+ }
554
+
555
+ /**
556
+ * Callback function to receive the result of the exportFlowsByQuery operation.
557
+ * @callback module:api/FlowsApi~exportFlowsByQueryCallback
558
+ * @param {String} error Error message, if any.
559
+ * @param {Blob} data The data returned by the service call.
560
+ * @param {String} response The complete HTTP response.
561
+ */
562
+
563
+ /**
564
+ * Export flows as a ZIP archive of yaml sources.
565
+ * @param {String} tenant
566
+ * @param {Object} opts Optional parameters
567
+ * @param {Array.<module:model/QueryFilter>} [filters] Filters
568
+ * @param {String} [q] A string filter
569
+ * @param {Array.<module:model/FlowScope>} [scope] The scope of the flows to include
570
+ * @param {String} [namespace] A namespace filter prefix
571
+ * @param {Array.<String>} [labels] A labels filter as a list of 'key:value'
572
+ * @param {module:api/FlowsApi~exportFlowsByQueryCallback} callback The callback function, accepting three arguments: error, data, response
573
+ * data is of type: {@link Blob}
574
+ */
575
+ }, {
576
+ key: "exportFlowsByQuery",
577
+ value: function exportFlowsByQuery(tenant, opts, callback) {
578
+ opts = opts || {};
579
+ var postBody = null;
580
+ // verify the required parameter 'tenant' is set
581
+ if (tenant === undefined || tenant === null) {
582
+ throw new Error("Missing the required parameter 'tenant' when calling exportFlowsByQuery");
583
+ }
584
+ var pathParams = {
585
+ 'tenant': tenant
586
+ };
587
+ var queryParams = {
588
+ 'filters': this.apiClient.buildCollectionParam(opts['filters'], 'csv'),
589
+ 'q': opts['q'],
590
+ 'scope': this.apiClient.buildCollectionParam(opts['scope'], 'csv'),
591
+ 'namespace': opts['namespace'],
592
+ 'labels': this.apiClient.buildCollectionParam(opts['labels'], 'multi')
593
+ };
594
+ var headerParams = {};
595
+ var formParams = {};
596
+ var authNames = ['basicAuth', 'bearerAuth'];
597
+ var contentTypes = [];
598
+ var accepts = ['application/octet-stream'];
599
+ var returnType = 'Blob';
600
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/export/by-query', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
601
+ }
602
+
603
+ /**
604
+ * Callback function to receive the result of the generateFlowGraph operation.
605
+ * @callback module:api/FlowsApi~generateFlowGraphCallback
606
+ * @param {String} error Error message, if any.
607
+ * @param {module:model/FlowGraph} data The data returned by the service call.
608
+ * @param {String} response The complete HTTP response.
609
+ */
610
+
611
+ /**
612
+ * Generate a graph for a flow
613
+ * @param {String} namespace The flow namespace
614
+ * @param {String} id The flow id
615
+ * @param {String} tenant
616
+ * @param {Object} opts Optional parameters
617
+ * @param {Number} [revision] The flow revision
618
+ * @param {Array.<String>} [subflows] The subflow tasks to display
619
+ * @param {module:api/FlowsApi~generateFlowGraphCallback} callback The callback function, accepting three arguments: error, data, response
620
+ * data is of type: {@link module:model/FlowGraph}
621
+ */
622
+ }, {
623
+ key: "generateFlowGraph",
624
+ value: function generateFlowGraph(namespace, id, tenant, opts, callback) {
625
+ opts = opts || {};
626
+ var postBody = null;
627
+ // verify the required parameter 'namespace' is set
628
+ if (namespace === undefined || namespace === null) {
629
+ throw new Error("Missing the required parameter 'namespace' when calling generateFlowGraph");
630
+ }
631
+ // verify the required parameter 'id' is set
632
+ if (id === undefined || id === null) {
633
+ throw new Error("Missing the required parameter 'id' when calling generateFlowGraph");
634
+ }
635
+ // verify the required parameter 'tenant' is set
636
+ if (tenant === undefined || tenant === null) {
637
+ throw new Error("Missing the required parameter 'tenant' when calling generateFlowGraph");
638
+ }
639
+ var pathParams = {
640
+ 'namespace': namespace,
641
+ 'id': id,
642
+ 'tenant': tenant
643
+ };
644
+ var queryParams = {
645
+ 'revision': opts['revision'],
646
+ 'subflows': this.apiClient.buildCollectionParam(opts['subflows'], 'csv')
647
+ };
648
+ var headerParams = {};
649
+ var formParams = {};
650
+ var authNames = ['basicAuth', 'bearerAuth'];
651
+ var contentTypes = [];
652
+ var accepts = ['application/json'];
653
+ var returnType = _FlowGraph["default"];
654
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
655
+ }
656
+
657
+ /**
658
+ * Callback function to receive the result of the generateFlowGraphFromSource operation.
659
+ * @callback module:api/FlowsApi~generateFlowGraphFromSourceCallback
660
+ * @param {String} error Error message, if any.
661
+ * @param {module:model/FlowGraph} data The data returned by the service call.
662
+ * @param {String} response The complete HTTP response.
663
+ */
664
+
665
+ /**
666
+ * Generate a graph for a flow source
667
+ * @param {String} tenant
668
+ * @param {String} body The flow source code
669
+ * @param {Object} opts Optional parameters
670
+ * @param {Array.<String>} [subflows] The subflow tasks to display
671
+ * @param {module:api/FlowsApi~generateFlowGraphFromSourceCallback} callback The callback function, accepting three arguments: error, data, response
672
+ * data is of type: {@link module:model/FlowGraph}
673
+ */
674
+ }, {
675
+ key: "generateFlowGraphFromSource",
676
+ value: function generateFlowGraphFromSource(tenant, body, opts, callback) {
677
+ opts = opts || {};
678
+ var postBody = body;
679
+ // verify the required parameter 'tenant' is set
680
+ if (tenant === undefined || tenant === null) {
681
+ throw new Error("Missing the required parameter 'tenant' when calling generateFlowGraphFromSource");
682
+ }
683
+ // verify the required parameter 'body' is set
684
+ if (body === undefined || body === null) {
685
+ throw new Error("Missing the required parameter 'body' when calling generateFlowGraphFromSource");
686
+ }
687
+ var pathParams = {
688
+ 'tenant': tenant
689
+ };
690
+ var queryParams = {
691
+ 'subflows': this.apiClient.buildCollectionParam(opts['subflows'], 'csv')
692
+ };
693
+ var headerParams = {};
694
+ var formParams = {};
695
+ var authNames = ['basicAuth', 'bearerAuth'];
696
+ var contentTypes = ['application/x-yaml'];
697
+ var accepts = ['application/json'];
698
+ var returnType = _FlowGraph["default"];
699
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/graph', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
700
+ }
701
+
702
+ /**
703
+ * Callback function to receive the result of the getFlow operation.
704
+ * @callback module:api/FlowsApi~getFlowCallback
705
+ * @param {String} error Error message, if any.
706
+ * @param {Object} data The data returned by the service call.
707
+ * @param {String} response The complete HTTP response.
708
+ */
709
+
710
+ /**
711
+ * Get a flow
712
+ * @param {String} namespace The flow namespace
713
+ * @param {String} id The flow id
714
+ * @param {Boolean} source Include the source code
715
+ * @param {Boolean} allowDeleted Get flow even if deleted
716
+ * @param {String} tenant
717
+ * @param {Object} opts Optional parameters
718
+ * @param {Number} [revision] Get latest revision by default
719
+ * @param {module:api/FlowsApi~getFlowCallback} callback The callback function, accepting three arguments: error, data, response
720
+ * data is of type: {@link Object}
721
+ */
722
+ }, {
723
+ key: "getFlow",
724
+ value: function getFlow(namespace, id, source, allowDeleted, tenant, opts, callback) {
725
+ opts = opts || {};
726
+ var postBody = null;
727
+ // verify the required parameter 'namespace' is set
728
+ if (namespace === undefined || namespace === null) {
729
+ throw new Error("Missing the required parameter 'namespace' when calling getFlow");
730
+ }
731
+ // verify the required parameter 'id' is set
732
+ if (id === undefined || id === null) {
733
+ throw new Error("Missing the required parameter 'id' when calling getFlow");
734
+ }
735
+ // verify the required parameter 'source' is set
736
+ if (source === undefined || source === null) {
737
+ throw new Error("Missing the required parameter 'source' when calling getFlow");
738
+ }
739
+ // verify the required parameter 'allowDeleted' is set
740
+ if (allowDeleted === undefined || allowDeleted === null) {
741
+ throw new Error("Missing the required parameter 'allowDeleted' when calling getFlow");
742
+ }
743
+ // verify the required parameter 'tenant' is set
744
+ if (tenant === undefined || tenant === null) {
745
+ throw new Error("Missing the required parameter 'tenant' when calling getFlow");
746
+ }
747
+ var pathParams = {
748
+ 'namespace': namespace,
749
+ 'id': id,
750
+ 'tenant': tenant
751
+ };
752
+ var queryParams = {
753
+ 'source': source,
754
+ 'revision': opts['revision'],
755
+ 'allowDeleted': allowDeleted
756
+ };
757
+ var headerParams = {};
758
+ var formParams = {};
759
+ var authNames = ['basicAuth', 'bearerAuth'];
760
+ var contentTypes = [];
761
+ var accepts = ['application/json'];
762
+ var returnType = Object;
763
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
764
+ }
765
+
766
+ /**
767
+ * Callback function to receive the result of the getFlowDependencies operation.
768
+ * @callback module:api/FlowsApi~getFlowDependenciesCallback
769
+ * @param {String} error Error message, if any.
770
+ * @param {module:model/FlowTopologyGraph} data The data returned by the service call.
771
+ * @param {String} response The complete HTTP response.
772
+ */
773
+
774
+ /**
775
+ * Get flow dependencies
776
+ * @param {String} namespace The flow namespace
777
+ * @param {String} id The flow id
778
+ * @param {Boolean} destinationOnly If true, list only destination dependencies, otherwise list also source dependencies
779
+ * @param {Boolean} expandAll If true, expand all dependencies recursively
780
+ * @param {String} tenant
781
+ * @param {module:api/FlowsApi~getFlowDependenciesCallback} callback The callback function, accepting three arguments: error, data, response
782
+ * data is of type: {@link module:model/FlowTopologyGraph}
783
+ */
784
+ }, {
785
+ key: "getFlowDependencies",
786
+ value: function getFlowDependencies(namespace, id, destinationOnly, expandAll, tenant, callback) {
787
+ var postBody = null;
788
+ // verify the required parameter 'namespace' is set
789
+ if (namespace === undefined || namespace === null) {
790
+ throw new Error("Missing the required parameter 'namespace' when calling getFlowDependencies");
791
+ }
792
+ // verify the required parameter 'id' is set
793
+ if (id === undefined || id === null) {
794
+ throw new Error("Missing the required parameter 'id' when calling getFlowDependencies");
795
+ }
796
+ // verify the required parameter 'destinationOnly' is set
797
+ if (destinationOnly === undefined || destinationOnly === null) {
798
+ throw new Error("Missing the required parameter 'destinationOnly' when calling getFlowDependencies");
799
+ }
800
+ // verify the required parameter 'expandAll' is set
801
+ if (expandAll === undefined || expandAll === null) {
802
+ throw new Error("Missing the required parameter 'expandAll' when calling getFlowDependencies");
803
+ }
804
+ // verify the required parameter 'tenant' is set
805
+ if (tenant === undefined || tenant === null) {
806
+ throw new Error("Missing the required parameter 'tenant' when calling getFlowDependencies");
807
+ }
808
+ var pathParams = {
809
+ 'namespace': namespace,
810
+ 'id': id,
811
+ 'tenant': tenant
812
+ };
813
+ var queryParams = {
814
+ 'destinationOnly': destinationOnly,
815
+ 'expandAll': expandAll
816
+ };
817
+ var headerParams = {};
818
+ var formParams = {};
819
+ var authNames = ['basicAuth', 'bearerAuth'];
820
+ var contentTypes = [];
821
+ var accepts = ['application/json'];
822
+ var returnType = _FlowTopologyGraph["default"];
823
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}/dependencies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
824
+ }
825
+
826
+ /**
827
+ * Callback function to receive the result of the getFlowDependenciesFromNamespace operation.
828
+ * @callback module:api/FlowsApi~getFlowDependenciesFromNamespaceCallback
829
+ * @param {String} error Error message, if any.
830
+ * @param {module:model/FlowTopologyGraph} data The data returned by the service call.
831
+ * @param {String} response The complete HTTP response.
832
+ */
833
+
834
+ /**
835
+ * Retrieve flow dependencies
836
+ * @param {String} namespace The flow namespace
837
+ * @param {Boolean} destinationOnly if true, list only destination dependencies, otherwise list also source dependencies
838
+ * @param {String} tenant
839
+ * @param {module:api/FlowsApi~getFlowDependenciesFromNamespaceCallback} callback The callback function, accepting three arguments: error, data, response
840
+ * data is of type: {@link module:model/FlowTopologyGraph}
841
+ */
842
+ }, {
843
+ key: "getFlowDependenciesFromNamespace",
844
+ value: function getFlowDependenciesFromNamespace(namespace, destinationOnly, tenant, callback) {
845
+ var postBody = null;
846
+ // verify the required parameter 'namespace' is set
847
+ if (namespace === undefined || namespace === null) {
848
+ throw new Error("Missing the required parameter 'namespace' when calling getFlowDependenciesFromNamespace");
849
+ }
850
+ // verify the required parameter 'destinationOnly' is set
851
+ if (destinationOnly === undefined || destinationOnly === null) {
852
+ throw new Error("Missing the required parameter 'destinationOnly' when calling getFlowDependenciesFromNamespace");
853
+ }
854
+ // verify the required parameter 'tenant' is set
855
+ if (tenant === undefined || tenant === null) {
856
+ throw new Error("Missing the required parameter 'tenant' when calling getFlowDependenciesFromNamespace");
857
+ }
858
+ var pathParams = {
859
+ 'namespace': namespace,
860
+ 'tenant': tenant
861
+ };
862
+ var queryParams = {
863
+ 'destinationOnly': destinationOnly
864
+ };
865
+ var headerParams = {};
866
+ var formParams = {};
867
+ var authNames = ['basicAuth', 'bearerAuth'];
868
+ var contentTypes = [];
869
+ var accepts = ['application/json'];
870
+ var returnType = _FlowTopologyGraph["default"];
871
+ return this.apiClient.callApi('/api/v1/{tenant}/namespaces/{namespace}/dependencies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
872
+ }
873
+
874
+ /**
875
+ * Callback function to receive the result of the getTaskFromFlow operation.
876
+ * @callback module:api/FlowsApi~getTaskFromFlowCallback
877
+ * @param {String} error Error message, if any.
878
+ * @param {module:model/Task} data The data returned by the service call.
879
+ * @param {String} response The complete HTTP response.
880
+ */
881
+
882
+ /**
883
+ * Get a flow task
884
+ * @param {String} namespace The flow namespace
885
+ * @param {String} id The flow id
886
+ * @param {String} taskId The task id
887
+ * @param {String} tenant
888
+ * @param {Object} opts Optional parameters
889
+ * @param {Number} [revision] The flow revision
890
+ * @param {module:api/FlowsApi~getTaskFromFlowCallback} callback The callback function, accepting three arguments: error, data, response
891
+ * data is of type: {@link module:model/Task}
892
+ */
893
+ }, {
894
+ key: "getTaskFromFlow",
895
+ value: function getTaskFromFlow(namespace, id, taskId, tenant, opts, callback) {
896
+ opts = opts || {};
897
+ var postBody = null;
898
+ // verify the required parameter 'namespace' is set
899
+ if (namespace === undefined || namespace === null) {
900
+ throw new Error("Missing the required parameter 'namespace' when calling getTaskFromFlow");
901
+ }
902
+ // verify the required parameter 'id' is set
903
+ if (id === undefined || id === null) {
904
+ throw new Error("Missing the required parameter 'id' when calling getTaskFromFlow");
905
+ }
906
+ // verify the required parameter 'taskId' is set
907
+ if (taskId === undefined || taskId === null) {
908
+ throw new Error("Missing the required parameter 'taskId' when calling getTaskFromFlow");
909
+ }
910
+ // verify the required parameter 'tenant' is set
911
+ if (tenant === undefined || tenant === null) {
912
+ throw new Error("Missing the required parameter 'tenant' when calling getTaskFromFlow");
913
+ }
914
+ var pathParams = {
915
+ 'namespace': namespace,
916
+ 'id': id,
917
+ 'taskId': taskId,
918
+ 'tenant': tenant
919
+ };
920
+ var queryParams = {
921
+ 'revision': opts['revision']
922
+ };
923
+ var headerParams = {};
924
+ var formParams = {};
925
+ var authNames = ['basicAuth', 'bearerAuth'];
926
+ var contentTypes = [];
927
+ var accepts = ['application/json'];
928
+ var returnType = _Task["default"];
929
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}/tasks/{taskId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
930
+ }
931
+
932
+ /**
933
+ * Callback function to receive the result of the importFlows operation.
934
+ * @callback module:api/FlowsApi~importFlowsCallback
935
+ * @param {String} error Error message, if any.
936
+ * @param {Array.<String>} data The data returned by the service call.
937
+ * @param {String} response The complete HTTP response.
938
+ */
939
+
940
+ /**
941
+ * Import flows as a ZIP archive of yaml sources or a multi-objects YAML file. When sending a Yaml that contains one or more flows, a list of index is returned. When sending a ZIP archive, a list of files that couldn't be imported is returned.
942
+ * @param {String} tenant
943
+ * @param {Object} opts Optional parameters
944
+ * @param {File} [fileUpload] The file to import, can be a ZIP archive or a multi-objects YAML file
945
+ * @param {module:api/FlowsApi~importFlowsCallback} callback The callback function, accepting three arguments: error, data, response
946
+ * data is of type: {@link Array.<String>}
947
+ */
948
+ }, {
949
+ key: "importFlows",
950
+ value: function importFlows(tenant, opts, callback) {
951
+ opts = opts || {};
952
+ var postBody = null;
953
+ // verify the required parameter 'tenant' is set
954
+ if (tenant === undefined || tenant === null) {
955
+ throw new Error("Missing the required parameter 'tenant' when calling importFlows");
956
+ }
957
+ var pathParams = {
958
+ 'tenant': tenant
959
+ };
960
+ var queryParams = {};
961
+ var headerParams = {};
962
+ var formParams = {
963
+ 'fileUpload': opts['fileUpload']
964
+ };
965
+ var authNames = ['basicAuth', 'bearerAuth'];
966
+ var contentTypes = ['multipart/form-data'];
967
+ var accepts = ['application/json'];
968
+ var returnType = ['String'];
969
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/import', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
970
+ }
971
+
972
+ /**
973
+ * Callback function to receive the result of the listDistinctNamespaces operation.
974
+ * @callback module:api/FlowsApi~listDistinctNamespacesCallback
975
+ * @param {String} error Error message, if any.
976
+ * @param {Array.<String>} data The data returned by the service call.
977
+ * @param {String} response The complete HTTP response.
978
+ */
979
+
980
+ /**
981
+ * List all distinct namespaces
982
+ * @param {String} tenant
983
+ * @param {Object} opts Optional parameters
984
+ * @param {String} [q] A string filter
985
+ * @param {module:api/FlowsApi~listDistinctNamespacesCallback} callback The callback function, accepting three arguments: error, data, response
986
+ * data is of type: {@link Array.<String>}
987
+ */
988
+ }, {
989
+ key: "listDistinctNamespaces",
990
+ value: function listDistinctNamespaces(tenant, opts, callback) {
991
+ opts = opts || {};
992
+ var postBody = null;
993
+ // verify the required parameter 'tenant' is set
994
+ if (tenant === undefined || tenant === null) {
995
+ throw new Error("Missing the required parameter 'tenant' when calling listDistinctNamespaces");
996
+ }
997
+ var pathParams = {
998
+ 'tenant': tenant
999
+ };
1000
+ var queryParams = {
1001
+ 'q': opts['q']
1002
+ };
1003
+ var headerParams = {};
1004
+ var formParams = {};
1005
+ var authNames = ['basicAuth', 'bearerAuth'];
1006
+ var contentTypes = [];
1007
+ var accepts = ['application/json'];
1008
+ var returnType = ['String'];
1009
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/distinct-namespaces', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1010
+ }
1011
+
1012
+ /**
1013
+ * Callback function to receive the result of the listFlowRevisions operation.
1014
+ * @callback module:api/FlowsApi~listFlowRevisionsCallback
1015
+ * @param {String} error Error message, if any.
1016
+ * @param {Array.<module:model/FlowWithSource>} data The data returned by the service call.
1017
+ * @param {String} response The complete HTTP response.
1018
+ */
1019
+
1020
+ /**
1021
+ * Get revisions for a flow
1022
+ * @param {String} namespace The flow namespace
1023
+ * @param {String} id The flow id
1024
+ * @param {String} tenant
1025
+ * @param {module:api/FlowsApi~listFlowRevisionsCallback} callback The callback function, accepting three arguments: error, data, response
1026
+ * data is of type: {@link Array.<module:model/FlowWithSource>}
1027
+ */
1028
+ }, {
1029
+ key: "listFlowRevisions",
1030
+ value: function listFlowRevisions(namespace, id, tenant, callback) {
1031
+ var postBody = null;
1032
+ // verify the required parameter 'namespace' is set
1033
+ if (namespace === undefined || namespace === null) {
1034
+ throw new Error("Missing the required parameter 'namespace' when calling listFlowRevisions");
1035
+ }
1036
+ // verify the required parameter 'id' is set
1037
+ if (id === undefined || id === null) {
1038
+ throw new Error("Missing the required parameter 'id' when calling listFlowRevisions");
1039
+ }
1040
+ // verify the required parameter 'tenant' is set
1041
+ if (tenant === undefined || tenant === null) {
1042
+ throw new Error("Missing the required parameter 'tenant' when calling listFlowRevisions");
1043
+ }
1044
+ var pathParams = {
1045
+ 'namespace': namespace,
1046
+ 'id': id,
1047
+ 'tenant': tenant
1048
+ };
1049
+ var queryParams = {};
1050
+ var headerParams = {};
1051
+ var formParams = {};
1052
+ var authNames = ['basicAuth', 'bearerAuth'];
1053
+ var contentTypes = [];
1054
+ var accepts = ['application/json'];
1055
+ var returnType = [_FlowWithSource["default"]];
1056
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}/revisions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1057
+ }
1058
+
1059
+ /**
1060
+ * Callback function to receive the result of the listFlowsByNamespace operation.
1061
+ * @callback module:api/FlowsApi~listFlowsByNamespaceCallback
1062
+ * @param {String} error Error message, if any.
1063
+ * @param {Array.<module:model/Flow>} data The data returned by the service call.
1064
+ * @param {String} response The complete HTTP response.
1065
+ */
1066
+
1067
+ /**
1068
+ * Retrieve all flows from a given namespace
1069
+ * @param {String} namespace Namespace to filter flows
1070
+ * @param {String} tenant
1071
+ * @param {module:api/FlowsApi~listFlowsByNamespaceCallback} callback The callback function, accepting three arguments: error, data, response
1072
+ * data is of type: {@link Array.<module:model/Flow>}
1073
+ */
1074
+ }, {
1075
+ key: "listFlowsByNamespace",
1076
+ value: function listFlowsByNamespace(namespace, tenant, callback) {
1077
+ var postBody = null;
1078
+ // verify the required parameter 'namespace' is set
1079
+ if (namespace === undefined || namespace === null) {
1080
+ throw new Error("Missing the required parameter 'namespace' when calling listFlowsByNamespace");
1081
+ }
1082
+ // verify the required parameter 'tenant' is set
1083
+ if (tenant === undefined || tenant === null) {
1084
+ throw new Error("Missing the required parameter 'tenant' when calling listFlowsByNamespace");
1085
+ }
1086
+ var pathParams = {
1087
+ 'namespace': namespace,
1088
+ 'tenant': tenant
1089
+ };
1090
+ var queryParams = {};
1091
+ var headerParams = {};
1092
+ var formParams = {};
1093
+ var authNames = ['basicAuth', 'bearerAuth'];
1094
+ var contentTypes = [];
1095
+ var accepts = ['application/json'];
1096
+ var returnType = [_Flow["default"]];
1097
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1098
+ }
1099
+
1100
+ /**
1101
+ * Callback function to receive the result of the searchFlows operation.
1102
+ * @callback module:api/FlowsApi~searchFlowsCallback
1103
+ * @param {String} error Error message, if any.
1104
+ * @param {module:model/PagedResultsFlow} data The data returned by the service call.
1105
+ * @param {String} response The complete HTTP response.
1106
+ */
1107
+
1108
+ /**
1109
+ * Search for flows
1110
+ * @param {Number} page The current page
1111
+ * @param {Number} size The current page size
1112
+ * @param {String} tenant
1113
+ * @param {Object} opts Optional parameters
1114
+ * @param {Array.<String>} [sort] The sort of current page
1115
+ * @param {Array.<module:model/QueryFilter>} [filters] Filters
1116
+ * @param {String} [q] A string filter
1117
+ * @param {Array.<module:model/FlowScope>} [scope] The scope of the flows to include
1118
+ * @param {String} [namespace] A namespace filter prefix
1119
+ * @param {Array.<String>} [labels] A labels filter as a list of 'key:value'
1120
+ * @param {module:api/FlowsApi~searchFlowsCallback} callback The callback function, accepting three arguments: error, data, response
1121
+ * data is of type: {@link module:model/PagedResultsFlow}
1122
+ */
1123
+ }, {
1124
+ key: "searchFlows",
1125
+ value: function searchFlows(page, size, tenant, opts, callback) {
1126
+ opts = opts || {};
1127
+ var postBody = null;
1128
+ // verify the required parameter 'page' is set
1129
+ if (page === undefined || page === null) {
1130
+ throw new Error("Missing the required parameter 'page' when calling searchFlows");
1131
+ }
1132
+ // verify the required parameter 'size' is set
1133
+ if (size === undefined || size === null) {
1134
+ throw new Error("Missing the required parameter 'size' when calling searchFlows");
1135
+ }
1136
+ // verify the required parameter 'tenant' is set
1137
+ if (tenant === undefined || tenant === null) {
1138
+ throw new Error("Missing the required parameter 'tenant' when calling searchFlows");
1139
+ }
1140
+ var pathParams = {
1141
+ 'tenant': tenant
1142
+ };
1143
+ var queryParams = {
1144
+ 'page': page,
1145
+ 'size': size,
1146
+ 'sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv'),
1147
+ 'filters': this.apiClient.buildCollectionParam(opts['filters'], 'csv'),
1148
+ 'q': opts['q'],
1149
+ 'scope': this.apiClient.buildCollectionParam(opts['scope'], 'csv'),
1150
+ 'namespace': opts['namespace'],
1151
+ 'labels': this.apiClient.buildCollectionParam(opts['labels'], 'multi')
1152
+ };
1153
+ var headerParams = {};
1154
+ var formParams = {};
1155
+ var authNames = ['basicAuth', 'bearerAuth'];
1156
+ var contentTypes = [];
1157
+ var accepts = ['application/json'];
1158
+ var returnType = _PagedResultsFlow["default"];
1159
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/search', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1160
+ }
1161
+
1162
+ /**
1163
+ * Callback function to receive the result of the searchFlowsBySourceCode operation.
1164
+ * @callback module:api/FlowsApi~searchFlowsBySourceCodeCallback
1165
+ * @param {String} error Error message, if any.
1166
+ * @param {module:model/PagedResultsSearchResultFlow} data The data returned by the service call.
1167
+ * @param {String} response The complete HTTP response.
1168
+ */
1169
+
1170
+ /**
1171
+ * Search for flows source code
1172
+ * @param {Number} page The current page
1173
+ * @param {Number} size The current page size
1174
+ * @param {String} tenant
1175
+ * @param {Object} opts Optional parameters
1176
+ * @param {Array.<String>} [sort] The sort of current page
1177
+ * @param {String} [q] A string filter
1178
+ * @param {String} [namespace] A namespace filter prefix
1179
+ * @param {module:api/FlowsApi~searchFlowsBySourceCodeCallback} callback The callback function, accepting three arguments: error, data, response
1180
+ * data is of type: {@link module:model/PagedResultsSearchResultFlow}
1181
+ */
1182
+ }, {
1183
+ key: "searchFlowsBySourceCode",
1184
+ value: function searchFlowsBySourceCode(page, size, tenant, opts, callback) {
1185
+ opts = opts || {};
1186
+ var postBody = null;
1187
+ // verify the required parameter 'page' is set
1188
+ if (page === undefined || page === null) {
1189
+ throw new Error("Missing the required parameter 'page' when calling searchFlowsBySourceCode");
1190
+ }
1191
+ // verify the required parameter 'size' is set
1192
+ if (size === undefined || size === null) {
1193
+ throw new Error("Missing the required parameter 'size' when calling searchFlowsBySourceCode");
1194
+ }
1195
+ // verify the required parameter 'tenant' is set
1196
+ if (tenant === undefined || tenant === null) {
1197
+ throw new Error("Missing the required parameter 'tenant' when calling searchFlowsBySourceCode");
1198
+ }
1199
+ var pathParams = {
1200
+ 'tenant': tenant
1201
+ };
1202
+ var queryParams = {
1203
+ 'page': page,
1204
+ 'size': size,
1205
+ 'sort': this.apiClient.buildCollectionParam(opts['sort'], 'csv'),
1206
+ 'q': opts['q'],
1207
+ 'namespace': opts['namespace']
1208
+ };
1209
+ var headerParams = {};
1210
+ var formParams = {};
1211
+ var authNames = ['basicAuth', 'bearerAuth'];
1212
+ var contentTypes = [];
1213
+ var accepts = ['application/json'];
1214
+ var returnType = _PagedResultsSearchResultFlow["default"];
1215
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/source', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1216
+ }
1217
+
1218
+ /**
1219
+ * Callback function to receive the result of the updateFlow operation.
1220
+ * @callback module:api/FlowsApi~updateFlowCallback
1221
+ * @param {String} error Error message, if any.
1222
+ * @param {module:model/UpdateFlow200Response} data The data returned by the service call.
1223
+ * @param {String} response The complete HTTP response.
1224
+ */
1225
+
1226
+ /**
1227
+ * Update a flow
1228
+ * @param {String} id The flow id
1229
+ * @param {String} namespace The flow namespace
1230
+ * @param {String} tenant
1231
+ * @param {String} body The flow source code
1232
+ * @param {module:api/FlowsApi~updateFlowCallback} callback The callback function, accepting three arguments: error, data, response
1233
+ * data is of type: {@link module:model/UpdateFlow200Response}
1234
+ */
1235
+ }, {
1236
+ key: "updateFlow",
1237
+ value: function updateFlow(id, namespace, tenant, body, callback) {
1238
+ var postBody = body;
1239
+ // verify the required parameter 'id' is set
1240
+ if (id === undefined || id === null) {
1241
+ throw new Error("Missing the required parameter 'id' when calling updateFlow");
1242
+ }
1243
+ // verify the required parameter 'namespace' is set
1244
+ if (namespace === undefined || namespace === null) {
1245
+ throw new Error("Missing the required parameter 'namespace' when calling updateFlow");
1246
+ }
1247
+ // verify the required parameter 'tenant' is set
1248
+ if (tenant === undefined || tenant === null) {
1249
+ throw new Error("Missing the required parameter 'tenant' when calling updateFlow");
1250
+ }
1251
+ // verify the required parameter 'body' is set
1252
+ if (body === undefined || body === null) {
1253
+ throw new Error("Missing the required parameter 'body' when calling updateFlow");
1254
+ }
1255
+ var pathParams = {
1256
+ 'id': id,
1257
+ 'namespace': namespace,
1258
+ 'tenant': tenant
1259
+ };
1260
+ var queryParams = {};
1261
+ var headerParams = {};
1262
+ var formParams = {};
1263
+ var authNames = ['basicAuth', 'bearerAuth'];
1264
+ var contentTypes = ['application/x-yaml'];
1265
+ var accepts = ['application/json'];
1266
+ var returnType = _UpdateFlow200Response["default"];
1267
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1268
+ }
1269
+
1270
+ /**
1271
+ * Callback function to receive the result of the updateFlowsInNamespaceFromJson operation.
1272
+ * @callback module:api/FlowsApi~updateFlowsInNamespaceFromJsonCallback
1273
+ * @param {String} error Error message, if any.
1274
+ * @param {module:model/UpdateFlowsInNamespaceFromJson200Response} data The data returned by the service call.
1275
+ * @param {String} response The complete HTTP response.
1276
+ */
1277
+
1278
+ /**
1279
+ * Update a complete namespace from json object
1280
+ * All flow will be created / updated for this namespace. Flow that already created but not in `flows` will be deleted if the query delete is `true`
1281
+ * @param {Boolean} _delete If missing flow should be deleted
1282
+ * @param {String} namespace The flow namespace
1283
+ * @param {String} tenant
1284
+ * @param {Array.<module:model/Flow>} flow A list of flows
1285
+ * @param {module:api/FlowsApi~updateFlowsInNamespaceFromJsonCallback} callback The callback function, accepting three arguments: error, data, response
1286
+ * data is of type: {@link module:model/UpdateFlowsInNamespaceFromJson200Response}
1287
+ */
1288
+ }, {
1289
+ key: "updateFlowsInNamespaceFromJson",
1290
+ value: function updateFlowsInNamespaceFromJson(_delete, namespace, tenant, flow, callback) {
1291
+ var postBody = flow;
1292
+ // verify the required parameter '_delete' is set
1293
+ if (_delete === undefined || _delete === null) {
1294
+ throw new Error("Missing the required parameter '_delete' when calling updateFlowsInNamespaceFromJson");
1295
+ }
1296
+ // verify the required parameter 'namespace' is set
1297
+ if (namespace === undefined || namespace === null) {
1298
+ throw new Error("Missing the required parameter 'namespace' when calling updateFlowsInNamespaceFromJson");
1299
+ }
1300
+ // verify the required parameter 'tenant' is set
1301
+ if (tenant === undefined || tenant === null) {
1302
+ throw new Error("Missing the required parameter 'tenant' when calling updateFlowsInNamespaceFromJson");
1303
+ }
1304
+ // verify the required parameter 'flow' is set
1305
+ if (flow === undefined || flow === null) {
1306
+ throw new Error("Missing the required parameter 'flow' when calling updateFlowsInNamespaceFromJson");
1307
+ }
1308
+ var pathParams = {
1309
+ 'namespace': namespace,
1310
+ 'tenant': tenant
1311
+ };
1312
+ var queryParams = {
1313
+ 'delete': _delete
1314
+ };
1315
+ var headerParams = {};
1316
+ var formParams = {};
1317
+ var authNames = ['basicAuth', 'bearerAuth'];
1318
+ var contentTypes = ['application/json', 'application/x-yaml'];
1319
+ var accepts = ['application/json'];
1320
+ var returnType = _UpdateFlowsInNamespaceFromJson200Response["default"];
1321
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1322
+ }
1323
+
1324
+ /**
1325
+ * Callback function to receive the result of the updateTask operation.
1326
+ * @callback module:api/FlowsApi~updateTaskCallback
1327
+ * @param {String} error Error message, if any.
1328
+ * @param {module:model/Flow} data The data returned by the service call.
1329
+ * @param {String} response The complete HTTP response.
1330
+ */
1331
+
1332
+ /**
1333
+ * Update a single task on a flow
1334
+ * @param {String} namespace The flow namespace
1335
+ * @param {String} id The flow id
1336
+ * @param {String} taskId The task id
1337
+ * @param {String} tenant
1338
+ * @param {module:model/Task} task The task
1339
+ * @param {module:api/FlowsApi~updateTaskCallback} callback The callback function, accepting three arguments: error, data, response
1340
+ * data is of type: {@link module:model/Flow}
1341
+ */
1342
+ }, {
1343
+ key: "updateTask",
1344
+ value: function updateTask(namespace, id, taskId, tenant, task, callback) {
1345
+ var postBody = task;
1346
+ // verify the required parameter 'namespace' is set
1347
+ if (namespace === undefined || namespace === null) {
1348
+ throw new Error("Missing the required parameter 'namespace' when calling updateTask");
1349
+ }
1350
+ // verify the required parameter 'id' is set
1351
+ if (id === undefined || id === null) {
1352
+ throw new Error("Missing the required parameter 'id' when calling updateTask");
1353
+ }
1354
+ // verify the required parameter 'taskId' is set
1355
+ if (taskId === undefined || taskId === null) {
1356
+ throw new Error("Missing the required parameter 'taskId' when calling updateTask");
1357
+ }
1358
+ // verify the required parameter 'tenant' is set
1359
+ if (tenant === undefined || tenant === null) {
1360
+ throw new Error("Missing the required parameter 'tenant' when calling updateTask");
1361
+ }
1362
+ // verify the required parameter 'task' is set
1363
+ if (task === undefined || task === null) {
1364
+ throw new Error("Missing the required parameter 'task' when calling updateTask");
1365
+ }
1366
+ var pathParams = {
1367
+ 'namespace': namespace,
1368
+ 'id': id,
1369
+ 'taskId': taskId,
1370
+ 'tenant': tenant
1371
+ };
1372
+ var queryParams = {};
1373
+ var headerParams = {};
1374
+ var formParams = {};
1375
+ var authNames = ['basicAuth', 'bearerAuth'];
1376
+ var contentTypes = ['application/json'];
1377
+ var accepts = ['application/json'];
1378
+ var returnType = _Flow["default"];
1379
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/{namespace}/{id}/{taskId}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1380
+ }
1381
+
1382
+ /**
1383
+ * Callback function to receive the result of the validateFlows operation.
1384
+ * @callback module:api/FlowsApi~validateFlowsCallback
1385
+ * @param {String} error Error message, if any.
1386
+ * @param {Array.<module:model/ValidateConstraintViolation>} data The data returned by the service call.
1387
+ * @param {String} response The complete HTTP response.
1388
+ */
1389
+
1390
+ /**
1391
+ * Validate a list of flows
1392
+ * @param {String} tenant
1393
+ * @param {String} body A list of flows source code in a single string
1394
+ * @param {module:api/FlowsApi~validateFlowsCallback} callback The callback function, accepting three arguments: error, data, response
1395
+ * data is of type: {@link Array.<module:model/ValidateConstraintViolation>}
1396
+ */
1397
+ }, {
1398
+ key: "validateFlows",
1399
+ value: function validateFlows(tenant, body, callback) {
1400
+ var postBody = body;
1401
+ // verify the required parameter 'tenant' is set
1402
+ if (tenant === undefined || tenant === null) {
1403
+ throw new Error("Missing the required parameter 'tenant' when calling validateFlows");
1404
+ }
1405
+ // verify the required parameter 'body' is set
1406
+ if (body === undefined || body === null) {
1407
+ throw new Error("Missing the required parameter 'body' when calling validateFlows");
1408
+ }
1409
+ var pathParams = {
1410
+ 'tenant': tenant
1411
+ };
1412
+ var queryParams = {};
1413
+ var headerParams = {};
1414
+ var formParams = {};
1415
+ var authNames = ['basicAuth', 'bearerAuth'];
1416
+ var contentTypes = ['application/x-yaml'];
1417
+ var accepts = ['application/json'];
1418
+ var returnType = [_ValidateConstraintViolation["default"]];
1419
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/validate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1420
+ }
1421
+
1422
+ /**
1423
+ * Callback function to receive the result of the validateTask operation.
1424
+ * @callback module:api/FlowsApi~validateTaskCallback
1425
+ * @param {String} error Error message, if any.
1426
+ * @param {module:model/ValidateConstraintViolation} data The data returned by the service call.
1427
+ * @param {String} response The complete HTTP response.
1428
+ */
1429
+
1430
+ /**
1431
+ * Validate a task
1432
+ * @param {module:model/FlowControllerTaskValidationType} section The type of task
1433
+ * @param {String} tenant
1434
+ * @param {String} body A task definition that can be from tasks or triggers
1435
+ * @param {module:api/FlowsApi~validateTaskCallback} callback The callback function, accepting three arguments: error, data, response
1436
+ * data is of type: {@link module:model/ValidateConstraintViolation}
1437
+ */
1438
+ }, {
1439
+ key: "validateTask",
1440
+ value: function validateTask(section, tenant, body, callback) {
1441
+ var postBody = body;
1442
+ // verify the required parameter 'section' is set
1443
+ if (section === undefined || section === null) {
1444
+ throw new Error("Missing the required parameter 'section' when calling validateTask");
1445
+ }
1446
+ // verify the required parameter 'tenant' is set
1447
+ if (tenant === undefined || tenant === null) {
1448
+ throw new Error("Missing the required parameter 'tenant' when calling validateTask");
1449
+ }
1450
+ // verify the required parameter 'body' is set
1451
+ if (body === undefined || body === null) {
1452
+ throw new Error("Missing the required parameter 'body' when calling validateTask");
1453
+ }
1454
+ var pathParams = {
1455
+ 'tenant': tenant
1456
+ };
1457
+ var queryParams = {
1458
+ 'section': section
1459
+ };
1460
+ var headerParams = {};
1461
+ var formParams = {};
1462
+ var authNames = ['basicAuth', 'bearerAuth'];
1463
+ var contentTypes = ['application/x-yaml', 'application/json'];
1464
+ var accepts = ['application/json'];
1465
+ var returnType = _ValidateConstraintViolation["default"];
1466
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/validate/task', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1467
+ }
1468
+
1469
+ /**
1470
+ * Callback function to receive the result of the validateTrigger operation.
1471
+ * @callback module:api/FlowsApi~validateTriggerCallback
1472
+ * @param {String} error Error message, if any.
1473
+ * @param {module:model/ValidateConstraintViolation} data The data returned by the service call.
1474
+ * @param {String} response The complete HTTP response.
1475
+ */
1476
+
1477
+ /**
1478
+ * Validate trigger
1479
+ * @param {String} tenant
1480
+ * @param {String} body The trigger
1481
+ * @param {module:api/FlowsApi~validateTriggerCallback} callback The callback function, accepting three arguments: error, data, response
1482
+ * data is of type: {@link module:model/ValidateConstraintViolation}
1483
+ */
1484
+ }, {
1485
+ key: "validateTrigger",
1486
+ value: function validateTrigger(tenant, body, callback) {
1487
+ var postBody = body;
1488
+ // verify the required parameter 'tenant' is set
1489
+ if (tenant === undefined || tenant === null) {
1490
+ throw new Error("Missing the required parameter 'tenant' when calling validateTrigger");
1491
+ }
1492
+ // verify the required parameter 'body' is set
1493
+ if (body === undefined || body === null) {
1494
+ throw new Error("Missing the required parameter 'body' when calling validateTrigger");
1495
+ }
1496
+ var pathParams = {
1497
+ 'tenant': tenant
1498
+ };
1499
+ var queryParams = {};
1500
+ var headerParams = {};
1501
+ var formParams = {};
1502
+ var authNames = ['basicAuth', 'bearerAuth'];
1503
+ var contentTypes = ['application/json'];
1504
+ var accepts = ['application/json'];
1505
+ var returnType = _ValidateConstraintViolation["default"];
1506
+ return this.apiClient.callApi('/api/v1/{tenant}/flows/validate/trigger', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
1507
+ }
1508
+ }]);
1509
+ }();