UNPKG

salesforce-alm

Version:

This package contains tools, and APIs, for an improved salesforce.com developer experience.

63 lines (61 loc) 1.95 kB
"use strict"; /* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /* eslint-disable @typescript-eslint/no-unused-vars */ Object.defineProperty(exports, "__esModule", { value: true }); exports.NonDecomposedWorkspaceStrategy = void 0; /** * Workspace decomposition strategy where metadata files do not require decomposition */ class NonDecomposedWorkspaceStrategy { /** * Returns null because this strategy has no decompositions * * @param annotation * @param decomposedSubtypeConfig * @returns {null} */ getDecomposedFileName(annotation, decomposedSubtypeConfig) { return null; } /** * For non-decomposed source, the metadata file path is also the container path * * @param metadataFilePath * @param ext * @returns {any} */ getContainerPath(metadataFilePath, ext) { return metadataFilePath; } /** * Returns an empty map because this strategy has no decompositions * * @param metadataFilePath * @param ext * @returns {Map<DecomposedSubtypeConfig, string[]>} */ findDecomposedPaths(metadataFilePath, ext) { return new Map(); } /** * Returns null because this strategy has no decompositions * * @param metadataFilePath * @param ext * @param decomposedSubtypeConfig * @returns {null} */ getDecomposedSubtypeDirFromMetadataFile(metadataFilePath, ext, decomposedSubtypeConfig) { return null; } getDecomposedSubtypeDirFromAnnotation(annotation, metadataType, aggregateFullName, decomposedSubtypeConfig) { return null; } } exports.NonDecomposedWorkspaceStrategy = NonDecomposedWorkspaceStrategy; //# sourceMappingURL=nonDecomposedWorkspaceStrategy.js.map