[ACS-4448] Adding selectable options of mime types in folder rules add conditions (#3098)

* [ACS-4448] Adding selectable options of mime types in folder rules conditions.

* [ACS-4448] Restructuring

* PR comments

* added unit tests

* PR comments

* unit tests

* unit tests
This commit is contained in:
Aayush Rohila
2023-04-11 14:34:48 +05:30
committed by GitHub
parent 494c2f753c
commit 2787ed97fb
7 changed files with 936 additions and 7 deletions

View File

@@ -23,7 +23,7 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
export type RuleConditionFieldType = 'string' | 'number' | 'date' | 'type' | 'special';
export type RuleConditionFieldType = 'string' | 'number' | 'date' | 'type' | 'special' | 'mimeType';
export interface RuleConditionField {
name: string;
@@ -31,6 +31,8 @@ export interface RuleConditionField {
type: RuleConditionFieldType;
}
export const comparatorHiddenForConditionFieldType: string[] = ['special', 'mimeType'];
export const ruleConditionFields: RuleConditionField[] = [
{
name: 'cm:name',
@@ -45,7 +47,7 @@ export const ruleConditionFields: RuleConditionField[] = [
{
name: 'mimetype',
label: 'ACA_FOLDER_RULES.RULE_DETAILS.FIELDS.MIMETYPE',
type: 'string'
type: 'mimeType'
},
{
name: 'encoding',