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

118 lines 5.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EmbeddedServiceConfig = void 0; var core_1 = require("@aurahelper/core"); exports.EmbeddedServiceConfig = { areGuestUsersAllowed: new core_1.BooleanXMLField('areGuestUsersAllowed', 'Are Guest Users Allowed') .setMinApi(45) .setEditable(), authMethod: new core_1.EnumXMLField('authMethod', 'Auth Method') .setMinApi(43) .setEditable() .addEnumValue('Communities Login', 'CommunitiesLogin') .addEnumValue('Custom Login', 'CustomLogin'), customMinimizedComponent: new core_1.StringXMLField('customMinimizedComponent', 'Custom Minimized Component') .setMinApi(43) .setEditable(), deploymentFeature: new core_1.EnumXMLField('deploymentFeature', 'Deployment Feature') .setMinApi(52) .setEditable() .addEnumValue('Live Agent', 'LiveAgent') .addEnumValue('Flows', 'Flows') .addEnumValue('Field Service', 'FieldService'), deploymentType: new core_1.EnumXMLField('deploymentType', 'Deployment Type') .setMinApi(51) .setEditable() .addEnumValue('Mobile', 'Mobile') .addEnumValue('Web', 'Web'), embeddedServiceCustomComponents: new core_1.ArrayXMLField('embeddedServiceCustomComponents', 'Embedded Service Custom Components') .setMinApi(44) .setEditable() .setFieldKey('customComponent') .addField('customComponent', new core_1.StringXMLField('customComponent', 'Custom Component') .setEditable()) .addField('customComponentType', new core_1.EnumXMLField('customComponentType', 'Custom Component Type') .setEditable() .addEnumValue('LA Prechat', 'LA_Prechat') .addEnumValue('LA Minimized', 'LA_Minimized') .addEnumValue('LA PlainTextChatMessage', 'LA_PlainTextChatMessage')), embeddedServiceCustomLabels: new core_1.ArrayXMLField('embeddedServiceCustomLabels', 'Embedded Service Custom Labels') .setMinApi(44) .setEditable() .setFieldKey('customLabel') .addField('customLabel', new core_1.StringXMLField('customLabel', 'Custom Label') .setEditable() .setMetadataType(core_1.MetadataTypes.CUSTOM_LABEL)) .addField('feature', new core_1.EnumXMLField('feature', 'Feature') .setEditable() .addEnumValue('Base', 'Base') .addEnumValue('Field Service', 'FieldService') .addEnumValue('Flows', 'Flows') .addEnumValue('Live Agent', 'LiveAgent') .addEnumValue('Not In Use', 'NotInUse')) .addField('labelKey', new core_1.StringXMLField('labelKey', 'Label Key') .setEditable()), embeddedServiceCustomizations: new core_1.ArrayXMLField('embeddedServiceCustomizations', 'Embedded Service Customizations') .setMinApi(50) .setEditable() .setFieldKey('customizationName') .addField('customizationName', new core_1.StringXMLField('customizationName', 'Customization Name') .setEditable() .setRequired()) .addField('description', new core_1.StringXMLField('description', 'Description') .setEditable()) .addField('embeddedServiceResources', new core_1.ArrayXMLField('embeddedServiceResources', 'Embedded Service Resources') .setEditable() .setRequired() .setFieldKey('resource') .addField('resource', new core_1.StringXMLField('resource', 'Resource') .setEditable() .setRequired() .linkFieldToSObject('StaticResource')) .addField('resourceType', new core_1.EnumXMLField('resourceType', 'Resource Type') .setEditable() .setRequired() .setDefaultValue('ChatInvitation') .addEnumValue('Chat Invitation', 'ChatInvitation'))), embeddedServiceFlowConfig: new core_1.ArrayXMLField('embeddedServiceFlowConfig', 'Embedded Service Flow Config') .setMinApi(45) .setEditable() .setFieldKey('enabled') .addField('enabled', new core_1.BooleanXMLField('enabled', 'Enabled') .setEditable() .setRequired()), embeddedServiceFlows: new core_1.ArrayXMLField('embeddedServiceFlows', 'Embedded Service Flows') .setMinApi(45) .setEditable() .setFieldKey('flow') .addField('flow', new core_1.StringXMLField('flow', 'Flow') .setEditable() .setMetadataType(core_1.MetadataTypes.FLOW)) .addField('flowType', new core_1.EnumXMLField('flowType', 'Flow Type') .setEditable() .setRequired() .addEnumValue('FS Flow', 'FS_Flow') .addEnumValue('FS NewAppointment', 'FS_NewAppointment') .addEnumValue('FS ModifyAppointment', 'FS_ModifyAppointment') .addEnumValue('FS CancelAppointment', 'FS_CancelAppointment') .addEnumValue('LA Survey', 'LA_Survey')) .addField('isAuthenticationRequired', new core_1.BooleanXMLField('isAuthenticationRequired', 'Is Authentication Required') .setEditable() .addDependencyField(new core_1.XMLDependencyField('flowType', 'FS_Flow', true)) .addDependencyField(new core_1.XMLDependencyField('flowType', ['FS_NewAppointment', 'FS_ModifyAppointment', 'FS_CancelAppointment', 'LA_Survey'], false))), masterLabel: new core_1.StringXMLField('masterLabel', 'Master Label') .setMinApi(37) .setEditable() .setRequired() .setUnique(), shouldHideAuthDialog: new core_1.BooleanXMLField('shouldHideAuthDialog', 'Should Hide Auth Dialog') .setMinApi(43) .setDefaultValue(false) .setEditable(), site: new core_1.StringXMLField('site', 'Site') .setMinApi(37) .setEditable() .setRequired() .setMetadataType(core_1.MetadataTypes.CUSTOM_SITE) }; //# sourceMappingURL=embeddedServiceConfig.js.map