const caseFlowCategories = [
    {
        id: 'case-management-trigger',
        name: 'Triggers',
        sortOrder: 0,
        color: 'linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%)',
        colorDark: 'linear-gradient(135deg, #E65100 0%, #EF6C00 100%)',
        icon: 'zap',
        tags: [
            'trigger',
            'start',
            'case',
            'event'
        ]
    }
];
const caseManagementTriggerManifest = {
    nodeType: 'uipath.case.trigger',
    version: '1.0.0',
    description: 'Entry point for a case management workflow.',
    category: 'case-management-trigger',
    tags: [
        'trigger',
        'start',
        'case',
        'event',
        'timer'
    ],
    sortOrder: 0,
    display: {
        label: 'Trigger',
        description: 'Starts a case instance and triggers a case entered event',
        icon: 'zap',
        shape: 'circle',
        shadow: false
    },
    handleConfiguration: [
        {
            position: 'right',
            handles: [
                {
                    id: 'output',
                    type: 'source',
                    handleType: 'output',
                    showButton: true,
                    constraints: {
                        minConnections: 1,
                        allowedTargetCategories: [
                            'case-stage'
                        ],
                        forbiddenTargetCategories: [
                            'case-management-trigger',
                            'case-condition'
                        ]
                    }
                }
            ]
        }
    ],
    inputDefinition: {
        serviceType: {
            type: 'string',
            enum: [
                'None',
                'Intsvc.EventTrigger',
                'timer'
            ],
            nullable: true,
            default: 'None'
        },
        timerType: {
            type: 'string',
            nullable: true
        },
        timeCycle: {
            type: 'string'
        },
        context: {
            type: 'array',
            items: {
                type: 'object'
            }
        },
        bindings: {
            type: 'array',
            items: {
                type: 'object'
            }
        }
    },
    toolbarExtensions: {
        design: {
            actions: [
                {
                    id: 'change-trigger-type',
                    icon: 'square-mouse-pointer',
                    label: 'Change trigger type'
                }
            ]
        }
    },
    suppressDefaultToolbarActions: {
        design: [
            'breakpoint'
        ],
        debug: [
            'breakpoint'
        ]
    }
};
const caseFlowManifest = {
    version: '1.0.0',
    categories: caseFlowCategories,
    nodes: [
        caseManagementTriggerManifest
    ]
};
export { caseFlowCategories, caseFlowManifest, caseManagementTriggerManifest };
