UNPKG

heat-sfdx-metadata

Version:

![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat) [![npm version](https://badge.fury.io/js/heat-sfdx-metadata.svg)](https://badge.fury.io/js/heat-sfdx-metadata) [![Code Climate](https://codeclimate.com/github/takahitomiyamoto/hea

57 lines 2.25 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.retrieve = retrieve; const common_1 = require("../common"); /** * @name _getMethod * @description get method. */ const _getMethod = (client) => { return client.MetadataService.Metadata.retrieve; }; /** * @name _getArgs * @description get args. */ const _getArgs = (config) => { return { retrieveRequest: { apiVersion: config.asOfVersion, packageNames: config.packageNames, singlePackage: config.singlePackage, specificFiles: config.specificFiles, unpackaged: { fullName: config.fullName, apiAccessLevel: config.apiAccessLevel, description: config.description, namespacePrefix: config.namespacePrefix, objectPermissions: config.objectPermissions, packageType: config.packageType, postInstallClass: config.postInstallClass, setupWeblink: config.setupWeblink, types: config.types, uninstallClass: config.uninstallClass, version: config.version } } }; }; /** * @name retrieve * @description retrieves XML file representations of components in an organization. */ function retrieve(authorization, config) { return __awaiter(this, void 0, void 0, function* () { return yield (0, common_1.callFunction)(authorization, config, _getMethod, _getArgs); }); } //# sourceMappingURL=retrieve.js.map