@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
239 lines • 10.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomObjectTranslation = void 0;
var core_1 = require("@aurahelper/core");
function objectCaseNameValue(minApi) {
return new core_1.ArrayXMLField('caseValues', 'Case Values')
.setMinApi(minApi)
.setEditable()
.setFieldKey('value')
.addField('article', new core_1.EnumXMLField('article', 'Article')
.setEditable()
.addEnumValue('Definite', 'Definite')
.addEnumValue('Indefinite', 'Indefinite')
.addEnumValue('None', 'None'))
.addField('caseType', new core_1.EnumXMLField('caseType', 'Case Type')
.setEditable()
.addEnumValue('Ablative', 'Ablative')
.addEnumValue('Accusative', 'Accusative')
.addEnumValue('Adessive', 'Adessive')
.addEnumValue('Allative', 'Allative')
.addEnumValue('Causal Final', 'Causalfinal')
.addEnumValue('Dative', 'Dative')
.addEnumValue('Delative', 'Delative')
.addEnumValue('Distributive', 'Distributive')
.addEnumValue('Elative', 'Elative')
.addEnumValue('Essive', 'Essive')
.addEnumValue('Essive Formal', 'Essiveformal')
.addEnumValue('Genitive', 'Genitive')
.addEnumValue('Illative', 'Illative')
.addEnumValue('Inessive', 'Inessive')
.addEnumValue('Instrumental', 'Instrumental')
.addEnumValue('Lative', 'Lative')
.addEnumValue('Locative', 'Locative')
.addEnumValue('Nominative', 'Nominative')
.addEnumValue('Objective', 'Objective')
.addEnumValue('Partitive', 'Partitive')
.addEnumValue('Prepositional', 'Prepositional')
.addEnumValue('Subjective', 'Subjective')
.addEnumValue('Sublative', 'Sublative')
.addEnumValue('Superessive', 'Superessive')
.addEnumValue('Termanative', 'Termanative')
.addEnumValue('Translative', 'Translative')
.addEnumValue('Vocative', 'Vocative'))
.addField('plural', new core_1.BooleanXMLField('plural', 'Plural')
.setEditable())
.addField('possessive', new core_1.EnumXMLField('possessive', 'Possessive')
.setEditable()
.addEnumValue('None', 'None')
.addEnumValue('First', 'First')
.addEnumValue('Second', 'Second'))
.addField('value', new core_1.BooleanXMLField('value', 'Value')
.setEditable()
.setRequired());
}
exports.CustomObjectTranslation = {
caseValues: objectCaseNameValue(14),
fields: new core_1.ArrayXMLField('fields', 'Fields')
.setMinApi(29)
.setEditable()
.setFieldKey('name')
.addField('caseValues', objectCaseNameValue(29))
.addField('description', new core_1.StringXMLField('description', 'Description')
.setMinApi(14)
.setEditable())
.addField('gender', new core_1.EnumXMLField('gender', 'Gender')
.setMinApi(29)
.setEditable()
.setEnumValues(core_1.DataValues.GENDER))
.addField('help', new core_1.StringXMLField('help', 'Help')
.setMinApi(14)
.setEditable())
.addField('label', new core_1.StringXMLField('label', 'Label')
.setMinApi(14)
.setEditable()
.setMaxLength(765))
.addField('lookupFilter', new core_1.ObjectXMLField('lookupFilter', 'Lookup Filter')
.setMinApi(30)
.setEditable()
.setFieldKey('informationalMessage')
.setSortOrder(undefined)
.addField('errorMessage', new core_1.StringXMLField('errorMessage', 'Error Message')
.setEditable())
.addField('informationalMessage', new core_1.StringXMLField('informationalMessage', 'Informational Message')
.setEditable()))
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.CUSTOM_FIELD))
.addField('picklistValues', new core_1.ArrayXMLField('picklistValues', 'Picklist Values')
.setEditable()
.setFieldKey('masterLabel')
.addField('masterLabel', new core_1.StringXMLField('masterLabel', 'Master Label')
.setEditable()
.setRequired())
.addField('translation', new core_1.StringXMLField('translation', 'Translation')
.setEditable()
.setRequired()))
.addField('relationshipLabel', new core_1.StringXMLField('relationshipLabel', 'Relationship Label')
.setEditable()
.setMaxLength(765))
.addField('startsWith', new core_1.EnumXMLField('startsWith', 'Starts With')
.setEditable()
.setEnumValues(core_1.DataValues.STARTS_WITH)),
fieldSets: new core_1.ArrayXMLField('fieldSets', 'Field Sets')
.setMinApi(41)
.setEditable()
.setFieldKey('name')
.addField('label', new core_1.StringXMLField('label', 'Label')
.setEditable()
.setRequired()
.setMaxLength(765))
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.FIELD_SET)),
fullName: new core_1.StringXMLField('fullName', 'Full Name')
.setMinApi(14)
.setEditable()
.setRequired()
.addMatchPattern(/^[^\d\s_](\w)+$/)
.setUnique(),
gender: new core_1.EnumXMLField('gender', 'Gender')
.setMinApi(14)
.setEditable()
.setEnumValues(core_1.DataValues.GENDER),
layouts: new core_1.ArrayXMLField('layouts', 'Layouts')
.setMinApi()
.setEditable()
.setFieldKey('layout')
.addField('layout', new core_1.StringXMLField('layout', 'Layout')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.LAYOUT))
.addField('layoutType', new core_1.StringXMLField('layoutType', 'Layout Type')
.setEditable())
.addField('sections', new core_1.ArrayXMLField('sections', 'Sections')
.setEditable()
.setFieldKey('section')
.addField('label', new core_1.StringXMLField('label', 'Label')
.setEditable()
.setRequired()
.setMaxLength(765))
.addField('section', new core_1.StringXMLField('section', 'Section')
.setEditable()
.setRequired())),
nameFieldLabel: new core_1.StringXMLField('nameFieldLabel', 'Name Field Label')
.setMinApi(14)
.setEditable()
.setMaxLength(765),
namedFilters: new core_1.ArrayXMLField('namedFilters', 'Named Filters')
.setMinApi(14)
.setMaxApi(30)
.setFieldKey('name')
.addField('errorMessage', new core_1.StringXMLField('errorMessage', 'Error Message')
.setEditable())
.addField('informationalMessage', new core_1.StringXMLField('informationalMessage', 'Informational Message')
.setEditable())
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()),
quickActions: new core_1.ArrayXMLField('quickActions', 'Quick Actions')
.setMinApi(14)
.setEditable()
.setFieldKey('name')
.addField('label', new core_1.StringXMLField('label', 'Label')
.setEditable()
.setRequired()
.setMaxLength(765))
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.QUICK_ACTION)),
recordTypes: new core_1.ArrayXMLField('recordTypes', 'Record Types')
.setMinApi(14)
.setEditable()
.setFieldKey('name')
.addField('label', new core_1.StringXMLField('label', 'Label')
.setEditable()
.setRequired()
.setMaxLength(765))
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.RECORD_TYPE))
.addField('description', new core_1.StringXMLField('description', 'Description')
.setMinApi(42)
.setEditable()),
sharingReasons: new core_1.ArrayXMLField('sharingReasons', 'Sharing Reasons')
.setMinApi(14)
.setEditable()
.setFieldKey('name')
.addField('label', new core_1.StringXMLField('label', 'Label')
.setEditable()
.setRequired())
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.SHARING_REASON)),
startsWith: new core_1.EnumXMLField('startsWith', 'Starts With')
.setMinApi(14)
.setEditable()
.setEnumValues(core_1.DataValues.STARTS_WITH),
validationRules: new core_1.ArrayXMLField('validationRules', 'Validation Rules')
.setMinApi(14)
.setEditable()
.setFieldKey('name')
.addField('errorMessage', new core_1.StringXMLField('errorMessage', 'Error Message')
.setEditable()
.setRequired())
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.VALIDATION_RULE)),
webLinks: new core_1.ArrayXMLField('webLinks', 'Web Links')
.setMinApi(14)
.setEditable()
.setFieldKey('name')
.addField('label', new core_1.StringXMLField('label', 'Label')
.setEditable()
.setRequired()
.setMaxLength(765))
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.WEBLINK)),
workflowTasks: new core_1.ArrayXMLField('workflowTasks', 'Workflow Tasks')
.setMinApi(14)
.setEditable()
.setFieldKey('name')
.addField('description', new core_1.StringXMLField('description', 'Description')
.setEditable())
.addField('name', new core_1.StringXMLField('name', 'Name')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.WORKFLOW_TASK))
.addField('subject', new core_1.StringXMLField('subject', 'Subject')
.setEditable())
};
//# sourceMappingURL=customObjectTranslation.js.map