/** * The Jira Cloud platform REST API * Jira Cloud platform REST API documentation * * The version of the OpenAPI document: 1001.0.0-SNAPSHOT * Contact: ecosystem@atlassian.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { PageBeanWorkflowTransitionRules, WorkflowTransitionRulesUpdate, WorkflowTransitionRulesUpdateErrors } from '../models'; export interface GetWorkflowTransitionRuleConfigurationsRequest { types: Array; startAt?: number; maxResults?: number; keys?: Array; expand?: string; } export interface UpdateWorkflowTransitionRuleConfigurationsRequest { WorkflowTransitionRulesUpdate: WorkflowTransitionRulesUpdate; } /** * no description */ export declare class WorkflowTransitionRulesApi extends runtime.BaseAPI { /** * Returns a paginated list of workflows with transition rules. The workflows can be filtered to return only those containing workflow transition rules: * of one or more transition rule types, such as [workflow post functions](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-post-function/). * matching one or more transition rule keys. Only workflows containing transition rules created by the calling Connect app are returned. However, if a workflow is returned all transition rules that match the filters are returned for that workflow. Due to server-side optimizations, workflows with an empty list of rules may be returned; these workflows can be ignored. **[Permissions](#permissions) required:** Only Connect apps can use this operation. * Get workflow transition rule configurations */ getWorkflowTransitionRuleConfigurationsRaw(requestParameters: GetWorkflowTransitionRuleConfigurationsRequest): Promise>; /** * Returns a paginated list of workflows with transition rules. The workflows can be filtered to return only those containing workflow transition rules: * of one or more transition rule types, such as [workflow post functions](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-post-function/). * matching one or more transition rule keys. Only workflows containing transition rules created by the calling Connect app are returned. However, if a workflow is returned all transition rules that match the filters are returned for that workflow. Due to server-side optimizations, workflows with an empty list of rules may be returned; these workflows can be ignored. **[Permissions](#permissions) required:** Only Connect apps can use this operation. * Get workflow transition rule configurations */ getWorkflowTransitionRuleConfigurations(requestParameters: GetWorkflowTransitionRuleConfigurationsRequest): Promise; /** * Updates configuration of workflow transition rules. The following rule types are supported: * [post functions](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-post-function/) * [conditions](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-condition/) * [validators](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-validator/) Only rules created by the calling Connect app can be updated. **[Permissions](#permissions) required:** Only Connect apps can use this operation. * Update workflow transition rule configurations */ updateWorkflowTransitionRuleConfigurationsRaw(requestParameters: UpdateWorkflowTransitionRuleConfigurationsRequest): Promise>; /** * Updates configuration of workflow transition rules. The following rule types are supported: * [post functions](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-post-function/) * [conditions](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-condition/) * [validators](https://developer.atlassian.com/cloud/jira/platform/modules/workflow-validator/) Only rules created by the calling Connect app can be updated. **[Permissions](#permissions) required:** Only Connect apps can use this operation. * Update workflow transition rule configurations */ updateWorkflowTransitionRuleConfigurations(requestParameters: UpdateWorkflowTransitionRuleConfigurationsRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetWorkflowTransitionRuleConfigurationsTypesEnum { Postfunction = "postfunction", Condition = "condition", Validator = "validator" }