import * as i0 from '@angular/core'; import { Provider, EnvironmentProviders, OnInit } from '@angular/core'; import { Routes } from '@angular/router'; import { Observable } from 'rxjs'; import { NodeInfo } from '@alfresco/aca-shared/store'; import { MatSlideToggleChange } from '@angular/material/slide-toggle'; declare const FOLDER_RULES_ROUTES: Routes; declare function provideFolderRulesExtension(): (Provider | EnvironmentProviders)[]; /** @deprecated use `provideFolderRulesExtension()` instead **/ declare class AcaFolderRulesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ interface RuleSimpleCondition { field: string; comparator: string; parameter: string; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ interface RuleCompositeCondition { inverted: boolean; booleanMode: 'and' | 'or'; compositeConditions: RuleCompositeCondition[]; simpleConditions: RuleSimpleCondition[]; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ interface RuleAction { actionDefinitionId: string; params?: { [key: string]: unknown; }; } interface ActionDefinitionTransformed { id: string; name: string; description: string; title: string; applicableTypes: string[]; trackStatus: boolean; parameterDefinitions: ActionParameterDefinitionTransformed[]; } interface ActionParameterDefinitionTransformed { name: string; type: string; multiValued: boolean; mandatory: boolean; displayLabel: string; parameterConstraintName?: string; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ type RuleTrigger = 'inbound' | 'update' | 'outbound'; interface Rule { id: string; name: string; description: string; isEnabled: boolean; isInheritable: boolean; isAsynchronous: boolean; errorScript: string; isShared: boolean; triggers: RuleTrigger[]; conditions: RuleCompositeCondition; actions: RuleAction[]; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ interface RuleSet { id: string; isLinkedTo: boolean; owningFolder: NodeInfo; linkedToBy: string[]; rules: Rule[]; hasMoreRules: boolean; loadingRules: boolean; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ interface ActionParameterConstraint { name: string; constraints: ConstraintValue[]; } interface ConstraintValue { value: string; label: string; } /*! * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Alfresco Example Content Application * * This file is part of the Alfresco Example Content Application. * If the software was purchased under a paid Alfresco license, the terms of * the paid license agreement will prevail. Otherwise, the software is * provided under the following open source license terms: * * The Alfresco Example Content Application is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The Alfresco Example Content Application is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * from Hyland Software. If not, see . */ declare class ManageRulesSmartComponent implements OnInit { private readonly location; private readonly folderRulesService; private readonly route; private readonly matDialogService; private readonly notificationService; private readonly actionsService; private readonly folderRuleSetsService; nodeId: string; isInheritanceEnabled: boolean; isInheritanceToggleDisabled: boolean; mainRuleSet$: Observable; inheritedRuleSets$: Observable; selectedRule$: Observable; selectedRuleSet$: Observable; hasMoreRuleSets$: Observable; ruleSetsLoading$: Observable; folderInfo$: Observable; actionsLoading$: Observable; actionDefinitions$: Observable; parameterConstraints$: Observable; canEditMainRule: boolean; canEditSelectedRule: boolean; isMainRuleSetNotEmpty: boolean; isInheritedRuleSetsNotEmpty: boolean; private readonly destroyRef; ngOnInit(): void; goBack(): void; onSelectRule(rule: Rule): void; openCreateUpdateRuleDialog(model?: {}): void; onSubmitRuleDialog(dialogRef: any): void; onRuleUpdate(rule: Rule): Promise; onRuleCreate(ruleCreateParams: Partial): Promise; onRuleEnabledToggle(rule: Rule, isEnabled: boolean): Promise; onInheritanceToggleChange(event: MatSlideToggleChange): Promise; onRuleDeleteButtonClicked(rule: Rule): void; onRuleDelete(deletedRuleId: string): void; onLoadMoreRuleSets(): void; onLoadMoreRules(ruleSet: RuleSet): void; canEditRule(ruleSet: RuleSet): boolean; openLinkRulesDialog(existingRuleSet?: RuleSet): void; onRuleSetUnlinkClicked(linkedRuleSet: RuleSet): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { AcaFolderRulesModule, FOLDER_RULES_ROUTES, ManageRulesSmartComponent, provideFolderRulesExtension };