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

40 lines 1.53 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.readMetadata = readMetadata; const common_1 = require("../common"); /** * @name _getMethod * @description get method. */ const _getMethod = (client) => { return client.MetadataService.Metadata.readMetadata; }; /** * @name _getArgs * @description get args. */ const _getArgs = (config) => { return { type: config.metadataType, fullNames: config.fullNames }; }; /** * @name readMetadata * @description returns one or more metadata components from your organization synchronously. */ function readMetadata(authorization, config) { return __awaiter(this, void 0, void 0, function* () { return yield (0, common_1.callFunction)(authorization, config, _getMethod, _getArgs); }); } //# sourceMappingURL=read-metadata.js.map