@bearer/openapi-generator
Advanced tools
Comparing version 0.111.0 to 0.112.0
@@ -6,3 +6,3 @@ # Change Log | ||
# [0.111.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.111.0) (2019-04-09) | ||
# [0.112.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.112.0) (2019-04-11) | ||
@@ -15,2 +15,10 @@ **Note:** Version bump only for package @bearer/openapi-generator | ||
# [0.111.0](https://github.com/Bearer/bearer/compare/v0.110.0...v0.111.0) (2019-04-11) | ||
**Note:** Version bump only for package @bearer/openapi-generator | ||
# [0.110.0](https://github.com/Bearer/bearer/compare/v0.109.0...v0.110.0) (2019-04-08) | ||
@@ -17,0 +25,0 @@ |
@@ -20,11 +20,11 @@ import ts from 'typescript'; | ||
* @param functions list of func names | ||
* @param integrationUuid integration unique identifier | ||
* @param buid integration unique identifier | ||
* @param integrationName name of the integration | ||
*/ | ||
export default function generator({ functionsDir, functions, integrationUuid, integrationName }: { | ||
export default function generator({ functionsDir, functions, buid, integrationName }: { | ||
functionsDir: string; | ||
functions: string[]; | ||
integrationUuid: string; | ||
buid: string; | ||
integrationName: string; | ||
}): string; | ||
export {}; |
@@ -128,6 +128,6 @@ "use strict"; | ||
* @param functions list of func names | ||
* @param integrationUuid integration unique identifier | ||
* @param buid integration unique identifier | ||
* @param integrationName name of the integration | ||
*/ | ||
function generator({ functionsDir, functions, integrationUuid, integrationName }) { | ||
function generator({ functionsDir, functions, buid, integrationName }) { | ||
const doc = openapi_template_1.topOfSpec(integrationName); | ||
@@ -138,3 +138,3 @@ const schemas = functions.sort().reduce((acc, func) => { | ||
return Object.assign(acc, openapi_template_1.specPath({ | ||
integrationUuid, | ||
buid, | ||
functionName: func, | ||
@@ -141,0 +141,0 @@ response: { type: 'object', properties: typeSchema.response }, |
@@ -21,4 +21,4 @@ declare type THeader = { | ||
}; | ||
export declare function specPath({ integrationUuid, functionName, requestBody, response, oauth }: { | ||
integrationUuid: string; | ||
export declare function specPath({ buid, functionName, requestBody, response, oauth }: { | ||
buid: string; | ||
functionName: string; | ||
@@ -25,0 +25,0 @@ requestBody: any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function specPath({ integrationUuid, functionName, requestBody, response, oauth }) { | ||
function specPath({ buid, functionName, requestBody, response, oauth }) { | ||
return { | ||
[`/${integrationUuid}/${functionName}`]: { | ||
[`/${buid}/${functionName}`]: { | ||
post: { | ||
@@ -57,3 +57,3 @@ parameters: [ | ||
}, | ||
servers: [{ url: 'https://int.bearer.sh/api/v3/functions/backend/' }], | ||
servers: [{ url: 'https://int.bearer.sh/api/v4/functions/backend/' }], | ||
tags: [] | ||
@@ -60,0 +60,0 @@ }; |
{ | ||
"name": "@bearer/openapi-generator", | ||
"version": "0.111.0", | ||
"version": "0.112.0", | ||
"description": "Function openapi spec generator", | ||
@@ -32,6 +32,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@bearer/functions": "^0.111.0", | ||
"@bearer/functions": "^0.112.0", | ||
"lodash.merge": "^4.6.1" | ||
}, | ||
"gitHead": "60daf46e8781c3d6ca49def23fa862ef1a2ef232" | ||
"gitHead": "4c58dd6b2019e09a7c32cda3c574723a3fe0e844" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21291
+ Added@bearer/functions@0.112.0(transitive)
+ Added@bearer/logger@0.112.0(transitive)
+ Added@bearer/x-ray@0.112.0(transitive)
- Removed@bearer/functions@0.111.0(transitive)
- Removed@bearer/logger@0.111.0(transitive)
- Removed@bearer/x-ray@0.111.0(transitive)
Updated@bearer/functions@^0.112.0