@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
185 lines • 9.38 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Prompt = void 0;
var core_1 = require("@aurahelper/core");
exports.Prompt = {
masterLabel: new core_1.StringXMLField('masterLabel', 'Master Label')
.setMinApi(46)
.setEditable()
.setRequired()
.setMaxLength(80),
promptVersions: new core_1.ArrayXMLField('promptVersions', 'Prompt Versions')
.setMinApi(46)
.setEditable()
.setFieldKey('masterLabel')
.addField('actionButtonLabel', new core_1.StringXMLField('actionButtonLabel', 'Action Button Label')
.setEditable()
.setMaxLength(25))
.addField('actionButtonLink', new core_1.StringXMLField('actionButtonLink', 'Action Button Link')
.setEditable()
.setMaxLength(1000))
.addField('body', new core_1.StringXMLField('body', 'Body')
.setEditable()
.setRequired()
.setMaxLength(4000))
.addField('delayDays', new core_1.IntegerXMLField('delayDays', 'Delay Days')
.setEditable())
.addField('description', new core_1.StringXMLField('description', 'Description')
.setEditable()
.setMaxLength(255))
.addField('dismissButtonLabel', new core_1.StringXMLField('dismissButtonLabel', 'Dismiss Button Label')
.setEditable()
.setMaxLength(15))
.addField('displayPosition', new core_1.EnumXMLField('displayPosition', 'Display Position')
.setEditable()
.addEnumValue('Bottom Center', 'BottomCenter')
.addEnumValue('Bottom Left', 'BottomLeft')
.addEnumValue('Bottom Right', 'BottomRight')
.addEnumValue('Top Center', 'TopCenter')
.addEnumValue('Top Left', 'TopLeft')
.addEnumValue('Top Right', 'TopRight'))
.addField('displayType', new core_1.EnumXMLField('displayType', 'Display Type')
.setEditable()
.setRequired()
.addEnumValue('Docked Composer', 'DockedComposer')
.addEnumValue('Floating Panel', 'FloatingPanel')
.addEnumValue('Bottom Right', 'BottomRight')
.addEnumValue('Left Bottom', 'LeftBottom')
.addEnumValue('Left Center', 'LeftCenter')
.addEnumValue('Left Top', 'LeftTop')
.addEnumValue('Right Bottom', 'RightBottom')
.addEnumValue('Right Center', 'RightCenter')
.addEnumValue('Right Top', 'RightTop')
.addEnumValue('Top Center', 'TopCenter')
.addEnumValue('Top Left', 'TopLeft')
.addEnumValue('Top Right', 'TopRight'))
.addField('elementRelativePosition', new core_1.EnumXMLField('elementRelativePosition', 'Element Relative Position')
.setEditable()
.setRequired()
.setMinApi(52)
.addEnumValue('Bottom Center', 'BottomCenter')
.addEnumValue('Bottom Left', 'BottomLeft')
.addEnumValue('Targeted', 'Targeted', 52))
.addField('endDate', new core_1.DateTimeXMLField('endDate', 'End Date')
.setEditable()
.setFormat('yyyy-mm-dd'))
.addField('header', new core_1.StringXMLField('header', 'Header')
.setEditable()
.setMaxLength(36))
.addField('image', new core_1.StringXMLField('image', 'Image')
.setEditable()
.setMetadataType(core_1.MetadataTypes.CONTENT_ASSET))
.addField('imageAltText', new core_1.StringXMLField('imageAltText', 'Image Alternative Text')
.setEditable()
.setMetadataType(core_1.MetadataTypes.CONTENT_ASSET)
.addDependencyField(new core_1.XMLDependencyField('imageLocation', core_1.DataValues.NOT_NULL, core_1.DataValues.NOT_NULL))
.addDependencyField(new core_1.XMLDependencyField('image', core_1.DataValues.NOT_NULL, core_1.DataValues.NOT_NULL)))
.addField('imageLocation', new core_1.EnumXMLField('imageLocation', 'Image Location')
.setEditable()
.setRequired()
.addEnumValue('Top', 'Top')
.addEnumValue('Bottom', 'Bottom')
.addEnumValue('Right', 'Right')
.addEnumValue('Left', 'Left'))
.addField('indexWithIsPublished', new core_1.StringXMLField('indexWithIsPublished', 'Index With Is Published')
.setEditable())
.addField('indexWithoutIsPublished', new core_1.StringXMLField('indexWithoutIsPublished', 'Index Without Is Published')
.setEditable())
.addField('isPublished', new core_1.BooleanXMLField('isPublished', 'Is Published')
.setEditable())
.addField('masterLabel', new core_1.StringXMLField('masterLabel', 'Master Label')
.setEditable()
.setRequired())
.addField('publishedDate', new core_1.DateTimeXMLField('publishedDate', 'Published Date')
.setEditable()
.setFormat('yyyy-mm-dd'))
.addField('referenceElementContext', new core_1.StringXMLField('referenceElementContext', 'Reference Element Context')
.setMinApi(52)
.setEditable())
.addField('shouldDisplayActionButton', new core_1.BooleanXMLField('shouldDisplayActionButton', 'Should Display Action Button')
.setEditable())
.addField('shouldIgnoreGlobalDelay', new core_1.BooleanXMLField('shouldIgnoreGlobalDelay', 'Should Ignore Global Delay')
.setMinApi(48)
.setEditable())
.addField('startDate', new core_1.DateTimeXMLField('startDate', 'Start Date')
.setMinApi(48)
.setEditable()
.setFormat('yyyy-mm-dd'))
.addField('stepNumber', new core_1.IntegerXMLField('stepNumber', 'Step Number')
.setMinApi(49)
.setEditable()
.setMinValue(1)
.setMaxValue(10))
.addField('targetAppDeveloperName', new core_1.StringXMLField('targetAppDeveloperName', 'Target App Developer Name')
.setMaxApi(50)
.setEditable())
.addField('targetAppNamespacePrefix', new core_1.StringXMLField('targetAppNamespacePrefix', 'Target App Namespace Prefix')
.setMaxApi(50)
.setEditable()
.setMaxLength(15))
.addField('targetPageKey1', new core_1.StringXMLField('targetPageKey1', 'Target Page Key 1')
.setEditable())
.addField('targetPageKey2', new core_1.StringXMLField('targetPageKey2', 'Target Page Key 2')
.setEditable())
.addField('targetPageKey3', new core_1.StringXMLField('targetPageKey3', 'Target Page Key 3')
.setEditable())
.addField('targetPageKey3', new core_1.StringXMLField('targetPageKey3', 'Target Page Key 3')
.setMinApi(53)
.setEditable())
.addField('targetPageType', new core_1.StringXMLField('targetPageType', 'Target Page Type')
.setRequired()
.setEditable())
.addField('targetRecordType', new core_1.StringXMLField('targetRecordType', 'Target Record Type')
.setMinApi(53)
.setEditable())
.addField('themeColor', new core_1.EnumXMLField('themeColor', 'Theme Color')
.setEditable()
.addEnumValue('Theme 1', 'Theme1')
.addEnumValue('Theme 2', 'Theme2')
.addEnumValue('Theme 3', 'Theme3')
.addEnumValue('Theme 4', 'Theme4'))
.addField('themeSaturation', new core_1.EnumXMLField('themeSaturation', 'Theme Saturation')
.setEditable()
.addEnumValue('Dark', 'Dark')
.addEnumValue('Light', 'Light'))
.addField('timesToDisplay', new core_1.IntegerXMLField('timesToDisplay', 'Times To Display')
.setEditable()
.setMinValue(1)
.setMaxValue(30))
.addField('title', new core_1.StringXMLField('title', 'Title')
.setEditable()
.setMaxLength(36))
.addField('uiFormulaRule', new core_1.ObjectXMLField('uiFormulaRule', 'UI Formula Rule')
.setEditable()
.setFieldKey('booleanFilter')
.setSortOrder(undefined)
.addField('booleanFilter', new core_1.StringXMLField('booleanFilter', 'Boolean Filter')
.setEditable())
.addField('criteria', new core_1.ArrayXMLField('criteria', 'Criteria')
.setEditable()
.setFieldKey('leftValue')
.setSortOrder(undefined)
.addField('leftValue', new core_1.StringXMLField('leftValue', 'Left Value')
.setEditable()
.setRequired())
.addField('operator', new core_1.EnumXMLField('operator', 'Operator')
.setEditable()
.setRequired()
.setDefaultValue('EQUAL')
.addEnumValue('Equal', 'EQUAL'))
.addField('rightValue', new core_1.StringXMLField('rightValue', 'Right Value')
.setEditable())))
.addField('userAccess', new core_1.EnumXMLField('userAccess', 'User Access')
.setEditable()
.addEnumValue('Everyone', 'Everyone')
.addEnumValue('Specific Permissions', 'SpecificPermissions')
.addDependencyField(new core_1.XMLDependencyField(core_1.DataValues.API_VALUE, [46, 47, 48], core_1.DataValues.NOT_NULL)))
.addField('versionNumber', new core_1.IntegerXMLField('versionNumber', 'Version Number')
.setEditable()
.setRequired())
.addField('videoLink', new core_1.StringXMLField('videoLink', 'Video Link')
.setMinApi(48)
.setEditable()
.setMaxLength(1000))
};
//# sourceMappingURL=prompt.js.map