@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,336 @@
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 _BaseResourceScimResource = _interopRequireDefault(require("./BaseResourceScimResource"));
9
+ var _Email = _interopRequireDefault(require("./Email"));
10
+ var _Meta = _interopRequireDefault(require("./Meta"));
11
+ var _Name = _interopRequireDefault(require("./Name"));
12
+ var _ScimExtension = _interopRequireDefault(require("./ScimExtension"));
13
+ var _ScimResource = _interopRequireDefault(require("./ScimResource"));
14
+ var _UserGroup = _interopRequireDefault(require("./UserGroup"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
+ 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); }
17
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
18
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
19
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
21
+ 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); } }
22
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24
+ 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); } /**
25
+ * Kestra EE
26
+ * 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.
27
+ *
28
+ * The version of the OpenAPI document: v1
29
+ *
30
+ *
31
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
32
+ * https://openapi-generator.tech
33
+ * Do not edit the class manually.
34
+ *
35
+ */
36
+ /**
37
+ * The ScimUser model module.
38
+ * @module model/ScimUser
39
+ * @version v0.24.0
40
+ */
41
+ var ScimUser = /*#__PURE__*/function () {
42
+ /**
43
+ * Constructs a new <code>ScimUser</code>.
44
+ * Scim core schema.
45
+ * @alias module:model/ScimUser
46
+ * @implements module:model/ScimResource
47
+ * @implements module:model/BaseResourceScimResource
48
+ * @param meta {module:model/Meta}
49
+ */
50
+ function ScimUser(meta) {
51
+ _classCallCheck(this, ScimUser);
52
+ _ScimResource["default"].initialize(this, meta);
53
+ _BaseResourceScimResource["default"].initialize(this);
54
+ ScimUser.initialize(this, meta);
55
+ }
56
+
57
+ /**
58
+ * Initializes the fields of this object.
59
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
60
+ * Only for internal use.
61
+ */
62
+ return _createClass(ScimUser, null, [{
63
+ key: "initialize",
64
+ value: function initialize(obj, meta) {
65
+ obj['meta'] = meta;
66
+ }
67
+
68
+ /**
69
+ * Constructs a <code>ScimUser</code> from a plain JavaScript object, optionally creating a new instance.
70
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
71
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
72
+ * @param {module:model/ScimUser} obj Optional instance to populate.
73
+ * @return {module:model/ScimUser} The populated <code>ScimUser</code> instance.
74
+ */
75
+ }, {
76
+ key: "constructFromObject",
77
+ value: function constructFromObject(data, obj) {
78
+ if (data) {
79
+ obj = obj || new ScimUser();
80
+ _ScimResource["default"].constructFromObject(data, obj);
81
+ _BaseResourceScimResource["default"].constructFromObject(data, obj);
82
+ if (data.hasOwnProperty('schemas')) {
83
+ obj['schemas'] = _ApiClient["default"].convertToType(data['schemas'], ['String']);
84
+ }
85
+ if (data.hasOwnProperty('baseUrn')) {
86
+ obj['baseUrn'] = _ApiClient["default"].convertToType(data['baseUrn'], 'String');
87
+ }
88
+ if (data.hasOwnProperty('extensions')) {
89
+ obj['extensions'] = _ApiClient["default"].convertToType(data['extensions'], {
90
+ 'String': _ScimExtension["default"]
91
+ });
92
+ }
93
+ if (data.hasOwnProperty('meta')) {
94
+ obj['meta'] = _Meta["default"].constructFromObject(data['meta']);
95
+ }
96
+ if (data.hasOwnProperty('id')) {
97
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
98
+ }
99
+ if (data.hasOwnProperty('externalId')) {
100
+ obj['externalId'] = _ApiClient["default"].convertToType(data['externalId'], 'String');
101
+ }
102
+ if (data.hasOwnProperty('resourceType')) {
103
+ obj['resourceType'] = _ApiClient["default"].convertToType(data['resourceType'], 'String');
104
+ }
105
+ if (data.hasOwnProperty('primaryEmailAddress')) {
106
+ obj['primaryEmailAddress'] = _ApiClient["default"].convertToType(data['primaryEmailAddress'], _Email["default"]);
107
+ }
108
+ if (data.hasOwnProperty('active')) {
109
+ obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean');
110
+ }
111
+ if (data.hasOwnProperty('emails')) {
112
+ obj['emails'] = _ApiClient["default"].convertToType(data['emails'], [_Email["default"]]);
113
+ }
114
+ if (data.hasOwnProperty('userName')) {
115
+ obj['userName'] = _ApiClient["default"].convertToType(data['userName'], 'String');
116
+ }
117
+ if (data.hasOwnProperty('name')) {
118
+ obj['name'] = _Name["default"].constructFromObject(data['name']);
119
+ }
120
+ if (data.hasOwnProperty('groups')) {
121
+ obj['groups'] = _ApiClient["default"].convertToType(data['groups'], [_UserGroup["default"]]);
122
+ }
123
+ }
124
+ return obj;
125
+ }
126
+
127
+ /**
128
+ * Validates the JSON data with respect to <code>ScimUser</code>.
129
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
130
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ScimUser</code>.
131
+ */
132
+ }, {
133
+ key: "validateJSON",
134
+ value: function validateJSON(data) {
135
+ // check to make sure all required properties are present in the JSON string
136
+ var _iterator = _createForOfIteratorHelper(ScimUser.RequiredProperties),
137
+ _step;
138
+ try {
139
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
140
+ var property = _step.value;
141
+ if (!data.hasOwnProperty(property)) {
142
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
143
+ }
144
+ }
145
+ // ensure the json data is an array
146
+ } catch (err) {
147
+ _iterator.e(err);
148
+ } finally {
149
+ _iterator.f();
150
+ }
151
+ if (!Array.isArray(data['schemas'])) {
152
+ throw new Error("Expected the field `schemas` to be an array in the JSON data but got " + data['schemas']);
153
+ }
154
+ // ensure the json data is a string
155
+ if (data['baseUrn'] && !(typeof data['baseUrn'] === 'string' || data['baseUrn'] instanceof String)) {
156
+ throw new Error("Expected the field `baseUrn` to be a primitive type in the JSON string but got " + data['baseUrn']);
157
+ }
158
+ // validate the optional field `meta`
159
+ if (data['meta']) {
160
+ // data not null
161
+ _Meta["default"].validateJSON(data['meta']);
162
+ }
163
+ // ensure the json data is a string
164
+ if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
165
+ throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
166
+ }
167
+ // ensure the json data is a string
168
+ if (data['externalId'] && !(typeof data['externalId'] === 'string' || data['externalId'] instanceof String)) {
169
+ throw new Error("Expected the field `externalId` to be a primitive type in the JSON string but got " + data['externalId']);
170
+ }
171
+ // ensure the json data is a string
172
+ if (data['resourceType'] && !(typeof data['resourceType'] === 'string' || data['resourceType'] instanceof String)) {
173
+ throw new Error("Expected the field `resourceType` to be a primitive type in the JSON string but got " + data['resourceType']);
174
+ }
175
+ // validate the optional field `primaryEmailAddress`
176
+ if (data['primaryEmailAddress']) {
177
+ // data not null
178
+ _Email["default"].validateJSON(data['primaryEmailAddress']);
179
+ }
180
+ if (data['emails']) {
181
+ // data not null
182
+ // ensure the json data is an array
183
+ if (!Array.isArray(data['emails'])) {
184
+ throw new Error("Expected the field `emails` to be an array in the JSON data but got " + data['emails']);
185
+ }
186
+ // validate the optional field `emails` (array)
187
+ var _iterator2 = _createForOfIteratorHelper(data['emails']),
188
+ _step2;
189
+ try {
190
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
191
+ var item = _step2.value;
192
+ _Email["default"].validateJSON(item);
193
+ }
194
+ } catch (err) {
195
+ _iterator2.e(err);
196
+ } finally {
197
+ _iterator2.f();
198
+ }
199
+ ;
200
+ }
201
+ // ensure the json data is a string
202
+ if (data['userName'] && !(typeof data['userName'] === 'string' || data['userName'] instanceof String)) {
203
+ throw new Error("Expected the field `userName` to be a primitive type in the JSON string but got " + data['userName']);
204
+ }
205
+ // validate the optional field `name`
206
+ if (data['name']) {
207
+ // data not null
208
+ _Name["default"].validateJSON(data['name']);
209
+ }
210
+ if (data['groups']) {
211
+ // data not null
212
+ // ensure the json data is an array
213
+ if (!Array.isArray(data['groups'])) {
214
+ throw new Error("Expected the field `groups` to be an array in the JSON data but got " + data['groups']);
215
+ }
216
+ // validate the optional field `groups` (array)
217
+ var _iterator3 = _createForOfIteratorHelper(data['groups']),
218
+ _step3;
219
+ try {
220
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
221
+ var _item = _step3.value;
222
+ _UserGroup["default"].validateJSON(_item);
223
+ }
224
+ } catch (err) {
225
+ _iterator3.e(err);
226
+ } finally {
227
+ _iterator3.f();
228
+ }
229
+ ;
230
+ }
231
+ return true;
232
+ }
233
+ }]);
234
+ }();
235
+ ScimUser.RequiredProperties = ["meta"];
236
+
237
+ /**
238
+ * @member {Array.<String>} schemas
239
+ */
240
+ ScimUser.prototype['schemas'] = undefined;
241
+
242
+ /**
243
+ * @member {String} baseUrn
244
+ */
245
+ ScimUser.prototype['baseUrn'] = undefined;
246
+
247
+ /**
248
+ * @member {Object.<String, module:model/ScimExtension>} extensions
249
+ */
250
+ ScimUser.prototype['extensions'] = undefined;
251
+
252
+ /**
253
+ * @member {module:model/Meta} meta
254
+ */
255
+ ScimUser.prototype['meta'] = undefined;
256
+
257
+ /**
258
+ * @member {String} id
259
+ */
260
+ ScimUser.prototype['id'] = undefined;
261
+
262
+ /**
263
+ * @member {String} externalId
264
+ */
265
+ ScimUser.prototype['externalId'] = undefined;
266
+
267
+ /**
268
+ * @member {String} resourceType
269
+ */
270
+ ScimUser.prototype['resourceType'] = undefined;
271
+
272
+ /**
273
+ * @member {module:model/Email} primaryEmailAddress
274
+ */
275
+ ScimUser.prototype['primaryEmailAddress'] = undefined;
276
+
277
+ /**
278
+ * @member {Boolean} active
279
+ */
280
+ ScimUser.prototype['active'] = undefined;
281
+
282
+ /**
283
+ * @member {Array.<module:model/Email>} emails
284
+ */
285
+ ScimUser.prototype['emails'] = undefined;
286
+
287
+ /**
288
+ * @member {String} userName
289
+ */
290
+ ScimUser.prototype['userName'] = undefined;
291
+
292
+ /**
293
+ * @member {module:model/Name} name
294
+ */
295
+ ScimUser.prototype['name'] = undefined;
296
+
297
+ /**
298
+ * @member {Array.<module:model/UserGroup>} groups
299
+ */
300
+ ScimUser.prototype['groups'] = undefined;
301
+
302
+ // Implement ScimResource interface:
303
+ /**
304
+ * @member {Array.<String>} schemas
305
+ */
306
+ _ScimResource["default"].prototype['schemas'] = undefined;
307
+ /**
308
+ * @member {String} baseUrn
309
+ */
310
+ _ScimResource["default"].prototype['baseUrn'] = undefined;
311
+ /**
312
+ * @member {Object.<String, module:model/ScimExtension>} extensions
313
+ */
314
+ _ScimResource["default"].prototype['extensions'] = undefined;
315
+ /**
316
+ * @member {module:model/Meta} meta
317
+ */
318
+ _ScimResource["default"].prototype['meta'] = undefined;
319
+ /**
320
+ * @member {String} id
321
+ */
322
+ _ScimResource["default"].prototype['id'] = undefined;
323
+ /**
324
+ * @member {String} externalId
325
+ */
326
+ _ScimResource["default"].prototype['externalId'] = undefined;
327
+ /**
328
+ * @member {String} resourceType
329
+ */
330
+ _ScimResource["default"].prototype['resourceType'] = undefined;
331
+ // Implement BaseResourceScimResource interface:
332
+ /**
333
+ * @member {Array.<String>} schemas
334
+ */
335
+ _BaseResourceScimResource["default"].prototype['schemas'] = undefined;
336
+ var _default = exports["default"] = ScimUser;
@@ -0,0 +1,241 @@
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 _AttributeReference = _interopRequireDefault(require("./AttributeReference"));
9
+ var _BaseResourceSearchRequest = _interopRequireDefault(require("./BaseResourceSearchRequest"));
10
+ var _Filter = _interopRequireDefault(require("./Filter"));
11
+ var _PageRequest = _interopRequireDefault(require("./PageRequest"));
12
+ var _SortOrder = _interopRequireDefault(require("./SortOrder"));
13
+ var _SortRequest = _interopRequireDefault(require("./SortRequest"));
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ 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); }
16
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
17
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
18
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
19
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
+ 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); } }
21
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
+ 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); } /**
24
+ * Kestra EE
25
+ * 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.
26
+ *
27
+ * The version of the OpenAPI document: v1
28
+ *
29
+ *
30
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31
+ * https://openapi-generator.tech
32
+ * Do not edit the class manually.
33
+ *
34
+ */
35
+ /**
36
+ * The SearchRequest model module.
37
+ * @module model/SearchRequest
38
+ * @version v0.24.0
39
+ */
40
+ var SearchRequest = /*#__PURE__*/function () {
41
+ /**
42
+ * Constructs a new <code>SearchRequest</code>.
43
+ * @alias module:model/SearchRequest
44
+ * @implements module:model/BaseResourceSearchRequest
45
+ */
46
+ function SearchRequest() {
47
+ _classCallCheck(this, SearchRequest);
48
+ _BaseResourceSearchRequest["default"].initialize(this);
49
+ SearchRequest.initialize(this);
50
+ }
51
+
52
+ /**
53
+ * Initializes the fields of this object.
54
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
55
+ * Only for internal use.
56
+ */
57
+ return _createClass(SearchRequest, null, [{
58
+ key: "initialize",
59
+ value: function initialize(obj) {}
60
+
61
+ /**
62
+ * Constructs a <code>SearchRequest</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
65
+ * @param {module:model/SearchRequest} obj Optional instance to populate.
66
+ * @return {module:model/SearchRequest} The populated <code>SearchRequest</code> instance.
67
+ */
68
+ }, {
69
+ key: "constructFromObject",
70
+ value: function constructFromObject(data, obj) {
71
+ if (data) {
72
+ obj = obj || new SearchRequest();
73
+ _BaseResourceSearchRequest["default"].constructFromObject(data, obj);
74
+ if (data.hasOwnProperty('schemas')) {
75
+ obj['schemas'] = _ApiClient["default"].convertToType(data['schemas'], ['String']);
76
+ }
77
+ if (data.hasOwnProperty('pageRequest')) {
78
+ obj['pageRequest'] = _PageRequest["default"].constructFromObject(data['pageRequest']);
79
+ }
80
+ if (data.hasOwnProperty('sortRequest')) {
81
+ obj['sortRequest'] = _SortRequest["default"].constructFromObject(data['sortRequest']);
82
+ }
83
+ if (data.hasOwnProperty('attributes')) {
84
+ obj['attributes'] = _ApiClient["default"].convertToType(data['attributes'], [_AttributeReference["default"]]);
85
+ }
86
+ if (data.hasOwnProperty('excludedAttributes')) {
87
+ obj['excludedAttributes'] = _ApiClient["default"].convertToType(data['excludedAttributes'], [_AttributeReference["default"]]);
88
+ }
89
+ if (data.hasOwnProperty('filter')) {
90
+ obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
91
+ }
92
+ if (data.hasOwnProperty('sortBy')) {
93
+ obj['sortBy'] = _AttributeReference["default"].constructFromObject(data['sortBy']);
94
+ }
95
+ if (data.hasOwnProperty('sortOrder')) {
96
+ obj['sortOrder'] = _SortOrder["default"].constructFromObject(data['sortOrder']);
97
+ }
98
+ if (data.hasOwnProperty('startIndex')) {
99
+ obj['startIndex'] = _ApiClient["default"].convertToType(data['startIndex'], 'Number');
100
+ }
101
+ if (data.hasOwnProperty('count')) {
102
+ obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
103
+ }
104
+ }
105
+ return obj;
106
+ }
107
+
108
+ /**
109
+ * Validates the JSON data with respect to <code>SearchRequest</code>.
110
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
111
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SearchRequest</code>.
112
+ */
113
+ }, {
114
+ key: "validateJSON",
115
+ value: function validateJSON(data) {
116
+ // ensure the json data is an array
117
+ if (!Array.isArray(data['schemas'])) {
118
+ throw new Error("Expected the field `schemas` to be an array in the JSON data but got " + data['schemas']);
119
+ }
120
+ // validate the optional field `pageRequest`
121
+ if (data['pageRequest']) {
122
+ // data not null
123
+ _PageRequest["default"].validateJSON(data['pageRequest']);
124
+ }
125
+ // validate the optional field `sortRequest`
126
+ if (data['sortRequest']) {
127
+ // data not null
128
+ _SortRequest["default"].validateJSON(data['sortRequest']);
129
+ }
130
+ if (data['attributes']) {
131
+ // data not null
132
+ // ensure the json data is an array
133
+ if (!Array.isArray(data['attributes'])) {
134
+ throw new Error("Expected the field `attributes` to be an array in the JSON data but got " + data['attributes']);
135
+ }
136
+ // validate the optional field `attributes` (array)
137
+ var _iterator = _createForOfIteratorHelper(data['attributes']),
138
+ _step;
139
+ try {
140
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
141
+ var item = _step.value;
142
+ _AttributeReference["default"].validateJSON(item);
143
+ }
144
+ } catch (err) {
145
+ _iterator.e(err);
146
+ } finally {
147
+ _iterator.f();
148
+ }
149
+ ;
150
+ }
151
+ if (data['excludedAttributes']) {
152
+ // data not null
153
+ // ensure the json data is an array
154
+ if (!Array.isArray(data['excludedAttributes'])) {
155
+ throw new Error("Expected the field `excludedAttributes` to be an array in the JSON data but got " + data['excludedAttributes']);
156
+ }
157
+ // validate the optional field `excludedAttributes` (array)
158
+ var _iterator2 = _createForOfIteratorHelper(data['excludedAttributes']),
159
+ _step2;
160
+ try {
161
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
162
+ var _item = _step2.value;
163
+ _AttributeReference["default"].validateJSON(_item);
164
+ }
165
+ } catch (err) {
166
+ _iterator2.e(err);
167
+ } finally {
168
+ _iterator2.f();
169
+ }
170
+ ;
171
+ }
172
+ // validate the optional field `filter`
173
+ if (data['filter']) {
174
+ // data not null
175
+ _Filter["default"].validateJSON(data['filter']);
176
+ }
177
+ // validate the optional field `sortBy`
178
+ if (data['sortBy']) {
179
+ // data not null
180
+ _AttributeReference["default"].validateJSON(data['sortBy']);
181
+ }
182
+ return true;
183
+ }
184
+ }]);
185
+ }();
186
+ /**
187
+ * @member {Array.<String>} schemas
188
+ */
189
+ SearchRequest.prototype['schemas'] = undefined;
190
+
191
+ /**
192
+ * @member {module:model/PageRequest} pageRequest
193
+ */
194
+ SearchRequest.prototype['pageRequest'] = undefined;
195
+
196
+ /**
197
+ * @member {module:model/SortRequest} sortRequest
198
+ */
199
+ SearchRequest.prototype['sortRequest'] = undefined;
200
+
201
+ /**
202
+ * @member {Array.<module:model/AttributeReference>} attributes
203
+ */
204
+ SearchRequest.prototype['attributes'] = undefined;
205
+
206
+ /**
207
+ * @member {Array.<module:model/AttributeReference>} excludedAttributes
208
+ */
209
+ SearchRequest.prototype['excludedAttributes'] = undefined;
210
+
211
+ /**
212
+ * @member {module:model/Filter} filter
213
+ */
214
+ SearchRequest.prototype['filter'] = undefined;
215
+
216
+ /**
217
+ * @member {module:model/AttributeReference} sortBy
218
+ */
219
+ SearchRequest.prototype['sortBy'] = undefined;
220
+
221
+ /**
222
+ * @member {module:model/SortOrder} sortOrder
223
+ */
224
+ SearchRequest.prototype['sortOrder'] = undefined;
225
+
226
+ /**
227
+ * @member {Number} startIndex
228
+ */
229
+ SearchRequest.prototype['startIndex'] = undefined;
230
+
231
+ /**
232
+ * @member {Number} count
233
+ */
234
+ SearchRequest.prototype['count'] = undefined;
235
+
236
+ // Implement BaseResourceSearchRequest interface:
237
+ /**
238
+ * @member {Array.<String>} schemas
239
+ */
240
+ _BaseResourceSearchRequest["default"].prototype['schemas'] = undefined;
241
+ var _default = exports["default"] = SearchRequest;
@@ -0,0 +1,103 @@
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 _Flow = _interopRequireDefault(require("./Flow"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ 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); }
11
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
+ 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); } }
13
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); } /**
16
+ * Kestra EE
17
+ * 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.
18
+ *
19
+ * The version of the OpenAPI document: v1
20
+ *
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * The SearchResultFlow model module.
29
+ * @module model/SearchResultFlow
30
+ * @version v0.24.0
31
+ */
32
+ var SearchResultFlow = /*#__PURE__*/function () {
33
+ /**
34
+ * Constructs a new <code>SearchResultFlow</code>.
35
+ * @alias module:model/SearchResultFlow
36
+ */
37
+ function SearchResultFlow() {
38
+ _classCallCheck(this, SearchResultFlow);
39
+ SearchResultFlow.initialize(this);
40
+ }
41
+
42
+ /**
43
+ * Initializes the fields of this object.
44
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
+ * Only for internal use.
46
+ */
47
+ return _createClass(SearchResultFlow, null, [{
48
+ key: "initialize",
49
+ value: function initialize(obj) {}
50
+
51
+ /**
52
+ * Constructs a <code>SearchResultFlow</code> from a plain JavaScript object, optionally creating a new instance.
53
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
55
+ * @param {module:model/SearchResultFlow} obj Optional instance to populate.
56
+ * @return {module:model/SearchResultFlow} The populated <code>SearchResultFlow</code> instance.
57
+ */
58
+ }, {
59
+ key: "constructFromObject",
60
+ value: function constructFromObject(data, obj) {
61
+ if (data) {
62
+ obj = obj || new SearchResultFlow();
63
+ if (data.hasOwnProperty('model')) {
64
+ obj['model'] = _Flow["default"].constructFromObject(data['model']);
65
+ }
66
+ if (data.hasOwnProperty('fragments')) {
67
+ obj['fragments'] = _ApiClient["default"].convertToType(data['fragments'], ['String']);
68
+ }
69
+ }
70
+ return obj;
71
+ }
72
+
73
+ /**
74
+ * Validates the JSON data with respect to <code>SearchResultFlow</code>.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SearchResultFlow</code>.
77
+ */
78
+ }, {
79
+ key: "validateJSON",
80
+ value: function validateJSON(data) {
81
+ // validate the optional field `model`
82
+ if (data['model']) {
83
+ // data not null
84
+ _Flow["default"].validateJSON(data['model']);
85
+ }
86
+ // ensure the json data is an array
87
+ if (!Array.isArray(data['fragments'])) {
88
+ throw new Error("Expected the field `fragments` to be an array in the JSON data but got " + data['fragments']);
89
+ }
90
+ return true;
91
+ }
92
+ }]);
93
+ }();
94
+ /**
95
+ * @member {module:model/Flow} model
96
+ */
97
+ SearchResultFlow.prototype['model'] = undefined;
98
+
99
+ /**
100
+ * @member {Array.<String>} fragments
101
+ */
102
+ SearchResultFlow.prototype['fragments'] = undefined;
103
+ var _default = exports["default"] = SearchResultFlow;