Hierarchy

  • MetadataType
    • MetadataType

Properties

aliasFor?: string

Whenever this type is requested, return the aliasFor type instead

childXmlNames: string[]

Array with the list of child XML fragments that match this metadata type

children?: {
    directories?: DirectoryIndex;
    suffixes: SuffixIndex;
    types: TypeIndex;
}

Type definitions for child types, if the type has any.

Examples: CustomField and CompactLayout on CustomObject

Type declaration

  • Optional directories?: DirectoryIndex
  • suffixes: SuffixIndex
  • types: TypeIndex
directoryName: string

Name of the directory where components are located in a package.

folderContentType?: string

If the type is a folder type (container for components), the id of the type it is a container for.

folderType?: string

If the type is contained in folders, the id of the type that contains it.

hasContent: boolean

True when the metadata has a separate content file(s) this implies that any -meta.xml file is a meta file and not a content file and should not be renamed.

id: string

Unique identifier of the metadata type. Usually the API name lowercased.

ignoreParentName?: boolean

If the parent name should be ignored when constructing the type's fullName

ignoreParsedFullName?: boolean

Whether or not to ignore the fullName that's parsed from the file path. If true, the metadata type's name will be used instead. For example, CustomLabels instead of MyLabels.

inFolder?: boolean

Whether or not components are stored in folders.

Examples: Reports, Dashboards, Documents, EmailTemplates

Deprecated

use folderType to get the related folder type, if one exists

isAddressable?: boolean

Whether the component is supported by the Metadata API and therefore should be included within a manifest.

isBundle: boolean
legacySuffix?: string

When converting deploying source, this will update the suffix in the output or temporary directory (metadata format) Use this, along with additional suffix keys in the registry, to support incorrect suffixes from existing code

metaFileSuffix?: string

MetaFile suffix

An override to the default "-meta.xml" suffix.

Examples: "_meta.json" for DigitalExperience.

name: string

API name of the metadata type.

strategies?: {
    adapter: "default" | "mixedContent" | "matchingContentFile" | "decomposed" | "digitalExperience" | "bundle";
    decomposition?: "topLevel" | "folderPerType";
    recomposition?: "startEmpty";
    transformer?: "standard" | "decomposed" | "staticResource" | "nonDecomposed" | "decomposedLabels";
}

Configuration for resolving and converting components of the type.

Type declaration

  • adapter: "default" | "mixedContent" | "matchingContentFile" | "decomposed" | "digitalExperience" | "bundle"
  • Optional decomposition?: "topLevel" | "folderPerType"
  • Optional recomposition?: "startEmpty"
  • Optional transformer?: "standard" | "decomposed" | "staticResource" | "nonDecomposed" | "decomposedLabels"
strictDirectoryName?: boolean

Whether or not components are required to reside in a folder named after the type's directoryName.

suffix?: string

File suffix

Some types may not have one, such as those made up of varying file extensions.

Examples: LightningComponentBundles, Documents, StaticResources

supportsPartialDelete?: boolean

Whether the component can be partially deleted, such as metadata types that are made up of multiple files.

Examples: LightningComponentBundle, ExperienceBundle, StaticResource, and DigitalExperienceBundle

supportsWildcardAndName?: boolean

Whether or not components of the same type can be can be specified with the wildcard character, and by name in a manifest

<members>*</members>
<members>Account</members>
<name>CustomObject</name>
unaddressableWithoutParent?: boolean

Whether the component requires the parent to be present when deploying/retrieving

uniqueIdElement?: string

The xml attribute used as the unique identifier when parsing the xml

xmlElementName?: string

The XML element name for the type in the xml file used for constructing child components.

xmlName: string

Name of the XML tag used for this metadata type

Deprecated

Use name instead