{"_id":"@qrvey/function-gateway","_rev":"14-978c285dd94d7bfb4e8f9c46a19a4dae","name":"@qrvey/function-gateway","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@qrvey/function-gateway","version":"1.0.0","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.0","maintainers":[{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"7a826bd1f0b0dc4d4ce1c6c4fb4586feb1be431e","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.0.tgz","fileCount":7,"integrity":"sha512-oE7vuLXQOTWfhalpk1asXlmhLH/OG9TnIXK/VkwKviZK3yQLqcG0+MbanfzedoC/fx6AwHSWOpcS2ldWQYC9ZQ==","signatures":[{"sig":"MEQCICXygTgYEczG13yI33MHJ8hs9Cuw2/44zu+tWovEUk7hAiB1aPrIVUTKmNzOiRu7Ud9DJ2wUo0V+pXoHbg/dK9Og/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37214},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"26568a5814944a422787ae0534f7940377553194","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.8.1","description":"The `@qrvey/function-gateway` package provides a unified interface for invoking lambda and REST functions based on the specific configurations of the service.","directories":{},"_nodeVersion":"20.11.0","dependencies":{"@qrvey/fetch":"1.0.0","@aws-sdk/client-lambda":"3.556.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.0_1713446129462_0.7682168178460573","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@qrvey/function-gateway","version":"1.0.1","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.1","maintainers":[{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"605901d70899b6e4669c3566883af069acacd82c","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.1.tgz","fileCount":7,"integrity":"sha512-QTVvLvQs0aWrgk9l2ZHz7taN2kendGd56nUfc+lRRuYoGDeC56b52WqllHaRCiFshRFnTkHKRcogzpSMZHLArQ==","signatures":[{"sig":"MEQCICsQd6aBIYNrkFWuHtgTHrGevPP6rZv9Xfkx+E20tDT6AiA1Utui5JI6vZQV3OQw2VLLGkMluymqZPoivRLzWzcAeg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45177},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"0d845fb12a33cdd4c45b9870945c6ca58da1d8de","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.8.1","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.11.0","dependencies":{"@qrvey/fetch":"1.0.1","@aws-sdk/client-lambda":"3.556.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.1_1713468341212_0.12496704627894073","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@qrvey/function-gateway","version":"1.0.2","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.2","maintainers":[{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"8ddd67f9c802a73d1b8357192ac9b670fbcc2736","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.2.tgz","fileCount":7,"integrity":"sha512-20+NMNjoLjbhuls9OcBBONVZJGI90zxyhZaObcRgvip4f9TfEqbWrP+JOJLPDNm2x44FP+Jb/8Zfshp/MkOjDQ==","signatures":[{"sig":"MEQCICwrEIWSQNtcWA/f4ZQWneKCBVvkRzCplD/9fNgRhAtWAiAuT3enZ2HAmBJm1luYMkX3F0AeS8yVxZ5ugGm8/BC2Yw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45182},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"dccbdcd441941b6bf38a0daa40aed665cd3f96f6","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.8.1","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.11.0","dependencies":{"@qrvey/fetch":"1.0.1","@aws-sdk/client-lambda":"3.556.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.2_1713469335932_0.44856091746286886","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@qrvey/function-gateway","version":"1.0.3","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.3","maintainers":[{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"0d4eb571e9aad4544400c6567b941c93e01a1343","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.3.tgz","fileCount":7,"integrity":"sha512-qHvkt3q6IljPCTWONhcghdrn0mhXiMV5vZw5TSAFkNmauG7twhmHuzMlOIz6hZzozfCMhHbFaY1d5ILNggMdoQ==","signatures":[{"sig":"MEUCIQDYHxcmFhcnHsYSzBVXn+mVDSOTGGkxwP1Xkd5aYw6ybgIgXTheSejclsFeHkQcUMqTS82M90MxLn7yJeKi9fb60gg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45485},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"73a1f8def67d60103fdcc566c68298f5c9f4f786","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.8.1","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.11.0","dependencies":{"@qrvey/fetch":"1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"peerDependencies":{"@aws-sdk/client-lambda":"3.x"},"peerDependenciesMeta":{"@aws-sdk/client-lambda":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.3_1713914280794_0.17101591680626704","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@qrvey/function-gateway","version":"1.0.4","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.4","maintainers":[{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"75bab550bbc341087e596d096b9b0413033703ab","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.4.tgz","fileCount":7,"integrity":"sha512-lxyn7UWG440U3OPpeBYdE9Chh8oGTgeU1ZmATvrqigkXcU9tXkIjxhH/JbV+KRRvSGfTlhq0LOEGuChnTubciw==","signatures":[{"sig":"MEYCIQCUwJJNecf4Hv49BikfF8bWXeaLPWsDyuC42m0Z5xIv9QIhAJ45REHxFanCLDx6NEOM4WYUWnmZA7HHLLhxC/0XiMfZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45484},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"2a7e38bc725b7be5c0696a8e10297c83bf2bfad7","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.8.1","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.11.0","dependencies":{"@qrvey/fetch":"1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"peerDependencies":{"@aws-sdk/client-lambda":"3.x"},"peerDependenciesMeta":{"@aws-sdk/client-lambda":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.4_1713979529964_0.4579640086886527","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@qrvey/function-gateway","version":"1.0.5","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.5","maintainers":[{"name":"steven.barrientos","email":"steven.barrientos@qrvey.com"},{"name":"daniel.henriquez","email":"daniel.henriquez@qrvey.com"},{"name":"everacostaqrvey","email":"ever.acosta@qrvey.com"},{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"3a89f6a55397bb89b03f167ae7cc4c1e06f594a2","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.5.tgz","fileCount":7,"integrity":"sha512-Yf5QMHhVnbUKJ1UkUOvNQ9TzneBXTiKV8Eb/c7LWaprPQOSY1hjJhi/w3ukMrmlK4zTL8+j6E6zS2XWvdT7QHg==","signatures":[{"sig":"MEYCIQCCUNwslUgJchKC8H9/FaHkJ2StgiYIYwDV1oVQZ5R9BgIhAKsW62Iw9/RXB0QZDcrmmCkZlIfFxEgha4UUzBKIWNVn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45484},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"6e83e91303e9c99f83ab52fa65e03cd55b80ea6c","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.3.0","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"14.19.3","dependencies":{"@qrvey/fetch":"1.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"peerDependencies":{"@aws-sdk/client-lambda":"3.x"},"peerDependenciesMeta":{"@aws-sdk/client-lambda":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.5_1723232308007_0.004411035753636883","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@qrvey/function-gateway","version":"1.0.6","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.6","maintainers":[{"name":"steven.barrientos","email":"steven.barrientos@qrvey.com"},{"name":"daniel.henriquez","email":"daniel.henriquez@qrvey.com"},{"name":"everacostaqrvey","email":"ever.acosta@qrvey.com"},{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"dc6f7e7c6754905480a50438b0d6d200ea345352","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.6.tgz","fileCount":7,"integrity":"sha512-BDd4eEJJnrOuaTNNKJ4eScx9AlX3KQzNB4TF/aq0oUfBbtA04dpMDo6ptdFOfHxiXE7aJF94oDvdM3DKZMuwHg==","signatures":[{"sig":"MEUCIBUPl5eTY2IPpa98Rlk72a2HE+sL0cWvj3w+zOTjF2CoAiEAkYkY9G7O71g+/NwzYd14QHKsOPuhcsUsB/j8x/FOVYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45484},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"9141ea584f2a25b4a0d6f692fb98572071c41265","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"9.8.1","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.16.0","dependencies":{"@qrvey/fetch":"1.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"peerDependencies":{"@aws-sdk/client-lambda":"3.x"},"peerDependenciesMeta":{"@aws-sdk/client-lambda":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.6_1724356651347_0.9045901474607083","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@qrvey/function-gateway","version":"1.0.7","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.7","maintainers":[{"name":"steven.barrientos","email":"steven.barrientos@qrvey.com"},{"name":"daniel.henriquez","email":"daniel.henriquez@qrvey.com"},{"name":"everacostaqrvey","email":"ever.acosta@qrvey.com"},{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"},{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"}],"dist":{"shasum":"7b27cf2f014473651d401e0b885e4d109821e5df","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.7.tgz","fileCount":7,"integrity":"sha512-Gmm9KtEdSHuJ7PER5H9x+9ZuY2oKGV+EZ+91pRaM5X96vudXvD2a7Mn8nVFwxYurTEAefHQ7UsD4D+MQN82z5Q==","signatures":[{"sig":"MEUCIQCtUxSKwN42oaOfnRVpuU6NNhjNsDnyxvcwy521YzkoMAIgeC4z1hbcmLQV0q9l2VWCg8vrkMsAbOyqmwdkq59F8kM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45484},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"41b7bafbb8475829e299d0a302f61f9188f58802","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"10.8.2","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.18.0","dependencies":{"@qrvey/fetch":"1.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"peerDependencies":{"@aws-sdk/client-lambda":"3.x"},"peerDependenciesMeta":{"@aws-sdk/client-lambda":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.7_1730336156996_0.23384472609912343","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@qrvey/function-gateway","version":"1.0.8","keywords":["qrvey","aws lambda","fetch","rest"],"license":"MIT","_id":"@qrvey/function-gateway@1.0.8","maintainers":[{"name":"amit.bhatnagar","email":"amit@qrvey.com"},{"name":"ricardo.madrid","email":"ricardo.madrid@qrvey.com"},{"name":"jmsosa","email":"julio.sosa@qrvey.com"},{"name":"emirpolo","email":"emiarrie@gmail.com"},{"name":"sandresbc86","email":"sergio@qrvey.com"},{"name":"juandavidleg1","email":"juandavidleg1@gmail.com"},{"name":"hugo.tilano","email":"hugo.tilano@qrvey.com"},{"name":"mario.vasco","email":"mario.vasco@qrvey.com"},{"name":"jose.gonzalez.qrvey","email":"jose.gonzalez@qrvey.com"},{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},{"name":"daniel.henriquez","email":"daniel.henriquez@qrvey.com"},{"name":"everacostaqrvey","email":"ever.acosta@qrvey.com"},{"name":"steven.barrientos","email":"steven.barrientos@qrvey.com"},{"name":"andresbetinqrvey","email":"andres.betin@qrvey.com"}],"dist":{"shasum":"9a7751600e15a9ba5f301d0bb92049708982f673","tarball":"https://registry.npmjs.org/@qrvey/function-gateway/-/function-gateway-1.0.8.tgz","fileCount":7,"integrity":"sha512-YY5/rc19eOXANt0aDD6pwlxGhM3ffXHlYFOV9in3iIeNwq338xhOzn1dF48XPouhZpS1QpO5haeo2AtWkCOLUg==","signatures":[{"sig":"MEUCIHjfAyuZIJDZpakwVYvHt4Cov8nET0i5G/D3aWV1htAmAiEArKssLqTMrOMkucJ6FKZ4vUlYpel8mADnYJPoXopbnjc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":45484},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{".":{"import":"./dist/esm/index.mjs","default":"./dist/cjs/index.js","require":"./dist/cjs/index.js"}},"gitHead":"76a4b7807f9a60025dbf6032cbef8cd258d1c419","scripts":{"test":"jest","build":"yarn build:clean && yarn build:compile","test:cov":"jest --coverage && chmod +x ./coverageReader.sh && sh ./coverageReader.sh","type-check":"tsc","build:clean":"rm -rf dist","build:compile":"yarn build:compile:cjs && yarn build:compile:esm && yarn build:compile:types","prepare-publish":"yarn install && yarn test:cov && yarn build","publish-package":"yarn prepare-publish && npm publish","build:compile:cjs":"tsup --config ./tsup.config.cjs.ts","build:compile:esm":"tsup --config ./tsup.config.esm.ts","build:compile:types":"tsup --config ./tsup.config.types.ts","login-code-artifact":"aws codeartifact --profile manualqa login --tool npm --domain qrvey-npm --repository qrvey-npm","publish-package-dev":"yarn prepare-publish && yarn publish-codeartifact","publish-codeartifact":"npm publish --prefix dist --registry=https://qrvey-npm-459649773688.d.codeartifact.us-east-1.amazonaws.com/npm/qrvey-npm/","build:compile:original":"tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json","build:compile:cjs:original":"tsup --config ./tsup.config.cjs.ts"},"_npmUser":{"name":"qrvey-jespinel","email":"jeffrey.espinel@qrvey.com"},"_npmVersion":"10.8.2","description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@qrvey/fetch":"1.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","tsup":"7.2.0","ts-jest":"29.1.1","tsconfig":"*","typescript":"5.2.2","@types/jest":"29.5.5","auto-version-js":"0.3.10","eslint-config-custom":"*"},"peerDependencies":{"@aws-sdk/client-lambda":"3.x"},"peerDependenciesMeta":{"@aws-sdk/client-lambda":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/function-gateway_1.0.8_1735858053497_0.5249807672685731","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-04-18T13:15:29.293Z","modified":"2026-01-06T20:43:33.427Z","1.0.0":"2024-04-18T13:15:29.641Z","1.0.1":"2024-04-18T19:25:41.373Z","1.0.2":"2024-04-18T19:42:16.183Z","1.0.3":"2024-04-23T23:18:00.987Z","1.0.4":"2024-04-24T17:25:30.148Z","1.0.5":"2024-08-09T19:38:28.192Z","1.0.6":"2024-08-22T19:57:31.575Z","1.0.7":"2024-10-31T00:55:57.272Z","1.0.8":"2025-01-02T22:47:33.703Z"},"license":"MIT","keywords":["qrvey","aws lambda","fetch","rest"],"description":"![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway) ![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)","maintainers":[{"email":"amit@qrvey.com","name":"amit.bhatnagar"},{"email":"ricardo.madrid@qrvey.com","name":"ricardo.madrid"},{"email":"julio.sosa@qrvey.com","name":"jmsosa"},{"email":"emiarrie@gmail.com","name":"emirpolo"},{"email":"sergio@qrvey.com","name":"sandresbc86"},{"email":"juandavidleg1@gmail.com","name":"juandavidleg1"},{"email":"hugo.tilano@qrvey.com","name":"hugo.tilano"},{"email":"mario.vasco@qrvey.com","name":"mario.vasco"},{"email":"jose.gonzalez@qrvey.com","name":"jose.gonzalez.qrvey"},{"email":"rafael.medrano@qrvey.com","name":"rafamedrano"},{"email":"jeffrey.espinel@qrvey.com","name":"qrvey-jespinel"},{"email":"daniel.henriquez@qrvey.com","name":"daniel.henriquez"},{"email":"ever.acosta@qrvey.com","name":"everacostaqrvey"},{"email":"andres.betin@qrvey.com","name":"andresbetinqrvey"},{"email":"nestor.estrada@qrvey.com","name":"neox10"}],"readme":"# @qrvey/function-gateway\n\n![install size](https://packagephobia.com/badge?p=%40qrvey%2Ffunction-gateway)\n![coverage](https://img.shields.io/badge/unit_test_coverage-100%25-brightgreen)\n\nThe `@qrvey/function-gateway` package provides a unified interface for invoking lambda and REST functions based on the specific configurations of the service.\n\n## Installation\n\nYou can install the package using npm or yarn:\n\n```bash\nnpm install @qrvey/function-gateway\n```\n\nOr with yarn:\n\n```bash\nyarn add @qrvey/function-gateway\n```\n\nNote: If the application does not have @aws-sdk/client-lambda installed, it must be installed manually. @qrvey/function-gateway requires it to make Lambda invoke calls.\n\n### Conditions for Lambda or REST call\n\nThe function gateway in the `@qrvey/function-gateway` package can invoke functions either as a Lambda function or as a REST API call, depending on certain conditions. These conditions are determined by:\n\n1. **REST Invocation**:\n    - If the environment variable `PLATFORM_TYPE` is set to `'CONTAINER'` and the function mapping contains a REST configuration.\n    - If the `options.mappingType` parameter is explicitly set to `'rest'`.\n\n2. **Lambda Invocation**:\n    - If the `options.mappingType` parameter is explicitly set to `'lambda'`.\n    - In the absence of `options.mappingType` being specified, the function gateway will default to Lambda invocation unless there is a REST configuration and no Lambda configuration.\n\n\n## Usage Example\n\n```javascript\nconst { FunctionGatewayService } = require(\"@qrvey/function-gateway\");\nconst mapper = require(\"./fnGwMapping\");\n\nclass MyFunctionGateway extends FunctionGatewayService {\n  getInfoById(id) {\n    const headers: {\n        'x-api-key': 'my-api-key'\n    }\n    const params = { headers, dataId: id };\n    return MyFunctionGateway.invoke(\"getData\", params, mapper);\n  }\n}\n\nconst myFunctionGw = new MyFunctionGateway();\nmyFunctionGw\n  .getInfoById(\"my_id\")\n  .then((res) => {\n    // Handle successful result\n    console.log(JSON.parse(res.Payload));\n  })\n  .catch((error) => {\n    // Handle errors\n    console.log(error);\n  });\n```\n\n## API\n\n### Class\n`FunctionGatewayService`\n\n#### Function\n`static invoke(functionName: string, params: unknown, functionMapping: IFunctionMapping, options: IFunctionOptions): Promise<any>`\n\n-   **`functionName`**: The name of the function to invoke.\n-   **`params`**: Parameters to be provided to the corresponding property in the functionMapping definition.\n-   **`functionMapping`**: An object that maps function names to function implementations.\n-   **`options`**: An object containing additional options for invoking the function.\n-   **Returns**: A promise that resolves with the result of the invoked function or rejects with an error if the invocation fails.\n\n#### `functionMapping param`\n\nDefines the mapping of function names to their corresponding implementations.\n\nExample\n\nThis example demonstrates how to configure both a Lambda function and a REST API call:\n\n```javascript\nconst mapper = {\n    // Define a mapping for a function named 'getData'\n    getData: (param) => {\n        return {\n            // Configuration for a Lambda invocation\n            lambda: {\n                // [required] The name of the Lambda function\n                name: process.env.SERVER_PREFIX + '_getDataFunction',\n                // [required] The payload to send to the Lambda function\n                payload: {\n                    headers: param.headers,\n                    method: 'get', // HTTP method for the request\n                    body: {\n                        pathParameters: {\n                            dataID: param.dataID, // Parameters to pass to the Lambda function\n                        },\n                    },\n                },\n                // [optional]\n                options: {\n                    asHttp: false,\n                    //invocationParams defines the additional params to be passed in lambda.invoke call\n                    invocationParams: {\n                        Qualifier: 'my_lambda_alias' //should be the name of the property used in lambda.invoke of @aws-sdk/client-lambda library\n                    },\n                },\n                // A callback function to handle the Lambda response\n                callback: (res) => {\n                    const responseObj = JSON.parse(res.Payload);\n                    return responseObj.data; // Extracting and returning the data from the response\n                },\n            },\n            // Configuration for REST API invocation\n            rest: {\n                // The URL for the REST API call\n                endpoint: `/api/service-data/${param.dataID}`,\n                // The HTTP method for the request\n                method: 'get',\n                // Additional options for the REST API call\n                options: {\n                    baseDomain: process.env.API_DOMAIN,\n                    headers: param.headers, // Headers to include in the request\n                },\n            },\n        };\n    }\n};\n```\n","readmeFilename":"README.md"}