UNPKG

@aurahelper/xml-definitions

Version:

Powerfull Libraries to get the XML Definitions of ALL XML Salesforce Metadata Files. Support All API Versions up to API 53.0. You can get the definition of one or more XML files for a specific version of Salesforce. For Example: You can get the XML Defini

52 lines 2.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModerationRule = void 0; var core_1 = require("@aurahelper/core"); exports.ModerationRule = { action: new core_1.EnumXMLField('action', 'Action') .setMinApi(36) .setEditable() .setRequired() .addEnumValue('Block', 'Block') .addEnumValue('Review', 'Review') .addEnumValue('Replace', 'Replace') .addEnumValue('Flag', 'Flag') .addEnumValue('Freeze And Notify', 'FreezeAndNotify'), actionLimit: new core_1.IntegerXMLField('actionLimit', 'Action Limit') .setMinApi(39) .setEditable(), active: new core_1.BooleanXMLField('active', 'Active') .setMinApi(36) .setEditable() .setRequired(), description: new core_1.StringXMLField('description', 'Description') .setMinApi(36) .setEditable(), entitiesAndFields: new core_1.ArrayXMLField('entitiesAndFields', 'Entities And Fields') .setMinApi(36) .setEditable() .setFieldKey('entityName') .setSortOrder(undefined) .addField('entityName', new core_1.StringXMLField('entityName', 'Entity Name') .setEditable() .setRequired()) .addField('fieldName', new core_1.StringXMLField('fieldName', 'Field Name') .setEditable()) .addField('keywordList', new core_1.StringXMLField('keywordList', 'Keyword List') .setEditable() .setMetadataType(core_1.MetadataTypes.KEYWORD_LIST)), masterLabel: new core_1.StringXMLField('masterLabel', 'Master Label') .setMinApi(36) .setEditable() .setRequired(), notifyLimit: new core_1.IntegerXMLField('notifyLimit', 'Notify Limit') .setMinApi(39) .setEditable(), userCriteria: new core_1.StringXMLField('userCriteria', 'User Criteria') .setMinApi(39) .setEditable(), userMessage: new core_1.StringXMLField('userMessage', 'User Message') .setMinApi(36) .setEditable(), }; //# sourceMappingURL=moderationRule.js.map