Returns true if the package is empty otherwise false
Add a new member(s) to the package XML manifest
Type of component to add
Name of the component(s) to add
Get all types that are mentioned in this package.
Count the number of package members in the current manifest
Optionaltype: stringThe XML type to count
Gets a new package manifest with just the specified metadata types. If no metadata types are specified a copy of the current manifest is returned.
Filter expression or metadata types to include in the new manifest
Determine if the specified type exists in the current manifest and has members
Get a list of all components of the specified type in this package
Optionaltype: stringThe XML type to list the components from
Merge another package into this package
Other package to merge into this package
This manifest with all members of the other package added
Removes one or more members from the manifest, if no member is specified all members of the specified type are removed.
Type of component to remove
Optionalmember: string | Iterable<string, any, any>If specified, the name of the component to remove. If not specified, all components of the specified type are removed.
Converts the contents of the package to a JSON structure that can be use for retrieval
Converts the contents of the package to XML that can be saved into a package.xml file
Get all types that are mentioned in this package.
StaticfromCreates a package XML structure object from a MetadataManifest
The manifest to create a PackageXML from
StaticfromCreates a new package XML structure object from a JSON structure or a package.xml file
Deserialized JSON structure or package.xml file
New PackageManifest object
StaticfromDeserializes a package.xml file into a package XML structure object
Buffer or string containing the package.xml file contents
New PackageManifest object
Object that describe the salesforce package XML, can be converted into a package.xml file body or JSON structure