UNPKG

@nimbella/postman-api

Version:

Postman Collection to Nimbella Project: Take your APIs seamlessly into Serverless world with this API

44 lines (43 loc) 1.9 kB
"use strict"; /* * Copyright (c) 2019 - present Nimbella Corp. * * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstance = exports.getIncludeFile = exports.getMethodValidationStub = exports.getGlobalValidationStub = exports.getTestStub = exports.getMethodStub = void 0; const tslib_1 = require("tslib"); const gen_factory_1 = tslib_1.__importDefault(require("./gen-factory")); let genInstance; async function getMethodStub(item) { return genInstance.generator.getMethodStub(item); } exports.getMethodStub = getMethodStub; async function getTestStub(item, location) { return genInstance.generator.getTestStub(item, location); } exports.getTestStub = getTestStub; async function getGlobalValidationStub(item) { return genInstance.generator.getGlobalValidationStub(item); } exports.getGlobalValidationStub = getGlobalValidationStub; async function getMethodValidationStub(item) { return genInstance.generator.getMethodValidationStub(item); } exports.getMethodValidationStub = getMethodValidationStub; async function getIncludeFile(item) { return genInstance.generator.getIncludeFile(item); } exports.getIncludeFile = getIncludeFile; function getInstance(language) { genInstance = gen_factory_1.default(language); return genInstance; } exports.getInstance = getInstance;