@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
272 lines • 12.2 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomObject = void 0;
var core_1 = require("@aurahelper/core");
var actionOverride_1 = require("./actionOverride");
var businessProcess_1 = require("./businessProcess");
var compactLayout_1 = require("./compactLayout");
var customField_1 = require("./customField");
var fieldSet_1 = require("./fieldSet");
var historyRetentionPolicy_1 = require("./historyRetentionPolicy");
var indexXml_1 = require("./indexXml");
var listView_1 = require("./listView");
var namedFilter_1 = require("./namedFilter");
var profileSearchLayouts_1 = require("./profileSearchLayouts");
var recordType_1 = require("./recordType");
var searchLayouts_1 = require("./searchLayouts");
var sharingReason_1 = require("./sharingReason");
var sharingRecalculation_1 = require("./sharingRecalculation");
var validationRule_1 = require("./validationRule");
var webLink_1 = require("./webLink");
exports.CustomObject = {
actionOverrides: new core_1.ArrayXMLField('actionOverrides', 'ActionOverrides')
.setMinApi(18)
.setEditable()
.setFieldKey('actionName')
.setSortOrder(undefined)
.setFields(actionOverride_1.ActionOverride),
allowInChatterGroups: new core_1.BooleanXMLField('allowInChatterGroups', 'Allow In Chatter Groups')
.setMinApi(34)
.setEditable(),
businessProcesses: new core_1.ArrayXMLField('businessProcesses', 'Business Processes')
.setMinApi(17)
.setEditable()
.setFieldKey('fullName')
.setFields(businessProcess_1.BusinessProcess),
compactLayoutAssignment: new core_1.StringXMLField('compactLayoutAssignment', 'Compact Layout Assignment')
.setMinApi(29)
.setEditable()
.setMetadataType(core_1.MetadataTypes.COMPACT_LAYOUT),
compactLayouts: new core_1.ArrayXMLField('compactLayouts', 'Compact Layouts')
.setMinApi(29)
.setEditable()
.setFieldKey('fullName')
.setFields(compactLayout_1.CompactLayout),
customHelp: new core_1.StringXMLField('customHelp', 'Custom Help')
.setMinApi(14)
.setEditable()
.setMetadataType(core_1.MetadataTypes.S_CONTROL),
customHelpPage: new core_1.StringXMLField('customHelpPage', 'Custom Help Page')
.setMinApi(16)
.setEditable()
.setMetadataType(core_1.MetadataTypes.APEX_PAGE),
customSettingsType: new core_1.EnumXMLField('customSettingsType', 'Custom Settings Type')
.setMinApi(17)
.setEditable()
.addEnumValue('List', 'List')
.addEnumValue('Hierarchy', 'Hierarchy'),
customSettingsVisibility: new core_1.EnumXMLField('customSettingsVisibility', 'Custom Settings Visibility')
.setMinApi(17)
.setMaxApi(33)
.setEditable()
.addEnumValue('Public', 'Public')
.addEnumValue('Protected', 'Protected'),
dataStewardGroup: new core_1.StringXMLField('dataStewardGroup', 'Data Steward Group')
.setMinApi(10)
.setMaxApi(47)
.setEditable(),
dataStewardUser: new core_1.StringXMLField('dataStewardUser', 'Data Steward User')
.setMinApi(10)
.setMaxApi(47)
.setEditable(),
deploymentStatus: new core_1.EnumXMLField('deploymentStatus', 'Deployment Status')
.setMinApi(10)
.setEditable()
.addEnumValue('In Development', 'InDevelopment')
.addEnumValue('Deployed', 'Deployed'),
deprecated: new core_1.BooleanXMLField('deprecated', 'Deprecated')
.setMinApi(10)
.setEditable(),
description: new core_1.StringXMLField('description', 'Description')
.setMinApi(10)
.setEditable()
.setMaxLength(1000),
enableActivities: new core_1.BooleanXMLField('enableActivities', 'Enable Activities')
.setMinApi(10)
.setEditable(),
enableBulkApi: new core_1.BooleanXMLField('enableBulkApi', 'Enable Bulk API')
.setMinApi(31)
.setMinApi(10)
.setEditable(),
enableDivisions: new core_1.BooleanXMLField('enableDivisions', 'Enable Divisions')
.setMinApi(10)
.setEditable(),
enableEnhancedLookup: new core_1.BooleanXMLField('enableEnhancedLookup', 'Enable Enhanced Lookup')
.setMinApi(10)
.setEditable(),
enableFeeds: new core_1.BooleanXMLField('enableFeeds', 'Enable Feeds')
.setMinApi(18)
.setEditable(),
enableHistory: new core_1.BooleanXMLField('enableHistory', 'Enable History')
.setMinApi(29)
.setEditable(),
enableReports: new core_1.BooleanXMLField('enableReports', 'Enable Reports')
.setMinApi(38)
.setEditable(),
enableSearch: new core_1.BooleanXMLField('enableSearch', 'Enable Search')
.setMinApi(35)
.setEditable(),
enableSharing: new core_1.BooleanXMLField('enableSharing', 'Enable Sharing')
.setMinApi(31)
.setEditable(),
enableStreamingApi: new core_1.BooleanXMLField('enableStreamingApi', 'Enable Streaming API')
.setMinApi(31)
.setEditable(),
eventType: new core_1.EnumXMLField('eventType', 'Event Type')
.setMinApi(41)
.setEditable()
.addEnumValue('High Volume', 'HighVolume')
.addEnumValue('Standard Volume', 'StandardVolume'),
externalDataSource: new core_1.StringXMLField('externalDataSource', 'External Data Source')
.setMinApi(32)
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.EXTERNAL_DATA_SOURCE),
externalName: new core_1.StringXMLField('externalName', 'External Name')
.setMinApi(32)
.setEditable()
.setRequired(),
externalRepository: new core_1.StringXMLField('externalRepository', 'External Repository')
.setMinApi(32)
.setEditable()
.setRequired(),
externalSharingModel: new core_1.EnumXMLField('externalSharingModel', 'External Sharing Model')
.setMinApi(31)
.setEditable()
.addEnumValue('Private', 'Private')
.addEnumValue('Read', 'Read')
.addEnumValue('Read Write', 'ReadWrite')
.addEnumValue('Read Write Transfer', 'ReadWriteTransfer')
.addEnumValue('Full Access', 'FullAccess')
.addEnumValue('Controlled By Parent', 'ControlledByParent')
.addEnumValue('Controlled By Campaign', 'ControlledByCampaign')
.addEnumValue('Controlled By Lead Or Contact', 'ControlledByLeadOrContact'),
fields: new core_1.ArrayXMLField('fields', 'Fields')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(customField_1.CustomField),
fieldSets: new core_1.ArrayXMLField('fieldSets', 'Field Sets')
.setMinApi(10)
.setEditable()
.setFieldKey('label')
.setFields(fieldSet_1.FieldSet),
fullName: new core_1.StringXMLField('fullName', 'Full Name')
.setMinApi(10)
.setEditable()
.setRequired()
.addMatchPattern(/^[^\d\s_](\w)+$/)
.setUnique(),
gender: new core_1.EnumXMLField('gender', 'Gender')
.setMinApi(10)
.setEditable()
.setEnumValues(core_1.DataValues.GENDER),
household: new core_1.BooleanXMLField('household', 'House hold')
.setMinApi(10)
.setEditable(),
historyRetentionPolicy: new core_1.ObjectXMLField('historyRetentionPolicy', 'History Retention Policy')
.setMinApi(10)
.setEditable()
.setFieldKey('archiveAfterMonths')
.setSortOrder(undefined)
.setFields(historyRetentionPolicy_1.HistoryRetentionPolicy),
indexes: new core_1.ArrayXMLField('indexes', 'Indexes')
.setMinApi(10)
.setEditable()
.setFieldKey('label')
.setFields(indexXml_1.Index),
label: new core_1.StringXMLField('label', 'Label')
.setMinApi(10)
.setEditable()
.setRequired(),
listViews: new core_1.ArrayXMLField('listViews', 'List Views')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(listView_1.ListView),
namedFilter: new core_1.ArrayXMLField('namedFilter', 'Named Filter')
.setMinApi(17)
.setEditable()
.setFieldKey('fullName')
.setFields(namedFilter_1.NamedFilter),
nameField: new core_1.ObjectXMLField('nameField', 'Name Field')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(customField_1.CustomField),
pluralLabel: new core_1.StringXMLField('pluralLabel', 'Plural Label')
.setMinApi(10)
.setEditable()
.setRequired(),
profileSearchLayouts: new core_1.ObjectXMLField('profileSearchLayouts', 'Profile Search Layouts')
.setMinApi(47)
.setEditable()
.setFieldKey('profileName')
.setSortOrder(undefined)
.setFields(profileSearchLayouts_1.ProfileSearchLayout),
publishBehavior: new core_1.EnumXMLField('publishBehavior', 'Publish Behavior')
.setMinApi(46)
.setEditable()
.addEnumValue('Publish After Commit', 'PublishAfterCommit')
.addEnumValue('Publish Immediately', 'PublishImmediately'),
recordTypes: new core_1.ArrayXMLField('recordTypes', 'Record Types')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(recordType_1.RecordType),
recordTypeTrackFeedHistory: new core_1.BooleanXMLField('recordTypeTrackFeedHistory', 'Record Type Track Feed History')
.setMinApi(19)
.setEditable(),
recordTypeTrackHistory: new core_1.BooleanXMLField('recordTypeTrackHistory', 'Record Type Track History')
.setMinApi(19)
.setEditable(),
searchLayouts: new core_1.ObjectXMLField('searchLayouts', 'Search Layouts')
.setMinApi(10)
.setEditable()
.setFieldKey('customTabListAdditionalFields')
.setSortOrder(undefined)
.setFields(searchLayouts_1.SearchLayout),
sharingModel: new core_1.EnumXMLField('sharingModel', 'Sharing Model')
.setMinApi(31)
.setEditable()
.addEnumValue('Private', 'Private')
.addEnumValue('Read', 'Read')
.addEnumValue('Read Write', 'ReadWrite')
.addEnumValue('Read Write Transfer', 'ReadWriteTransfer')
.addEnumValue('Full Access', 'FullAccess')
.addEnumValue('Controlled By Parent', 'ControlledByParent')
.addEnumValue('Controlled By Campaign', 'ControlledByCampaign')
.addEnumValue('Controlled By Lead Or Contact', 'ControlledByLeadOrContact'),
sharingReasons: new core_1.ArrayXMLField('sharingReasons', 'Sharing Reasons')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(sharingReason_1.SharingReason),
sharingRecalculations: new core_1.ArrayXMLField('sharingRecalculations', 'Sharing Recalculations')
.setMinApi(10)
.setEditable()
.setFieldKey('className')
.setFields(sharingRecalculation_1.SharingRecalculation),
startsWith: new core_1.EnumXMLField('startsWith', 'Starts With')
.setMinApi(10)
.setEditable()
.setEnumValues(core_1.DataValues.STARTS_WITH),
validationRules: new core_1.ArrayXMLField('validationRules', 'Validation Rules')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(validationRule_1.ValidationRule),
visibility: new core_1.EnumXMLField('visibility', 'Visibility')
.setMinApi(34)
.setEditable()
.setDefaultValue('Public')
.addEnumValue('Public', 'Public')
.addEnumValue('Protected', 'Protected')
.addEnumValue('Package Protected', 'PackageProtected'),
webLinks: new core_1.ArrayXMLField('webLinks', 'WebLinks')
.setMinApi(10)
.setEditable()
.setFieldKey('fullName')
.setFields(webLink_1.WebLink)
};
//# sourceMappingURL=customObject.js.map