UNPKG

sfdx-plugin-package-xml

Version:

explore metadata in an org and generate a package.xml manifest

18 lines 555 B
export const FOLDER_BASED_METADATA_MAP = { EmailFolder: "EmailTemplate", EmailTemplateFolder: "EmailTemplate", DashboardFolder: "Dashboard", DocumentFolder: "Document", ReportFolder: "Report", }; /** * transform a folder type to the type of its content * @param type metadata type (e.g. 'EmailFolder') */ export function transformFolderToType(type) { if (Object.keys(FOLDER_BASED_METADATA_MAP).includes(type)) { return FOLDER_BASED_METADATA_MAP[type]; } return type; } //# sourceMappingURL=metadata-folder.js.map