atlassian-openapi
Advanced tools
Comparing version 1.0.0 to 1.0.2
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./lookup")); | ||
__export(require("./type-checks")); | ||
__export(require("./operation-grouping")); | ||
__exportStar(require("./swagger"), exports); | ||
__exportStar(require("./lookup"), exports); | ||
__exportStar(require("./type-checks"), exports); | ||
__exportStar(require("./operation-grouping"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SwaggerLookup = void 0; | ||
const type_checks_1 = require("./type-checks"); | ||
@@ -4,0 +5,0 @@ const jsonpointer_1 = require("jsonpointer"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.tagGroupingStrategy = exports.urlGroupingStrategy = exports.radV1GroupingStrategy = exports.getOpPath = exports.getIdForOperation = exports.getIdForOperationGroup = void 0; | ||
const URI = require("urijs"); | ||
@@ -4,0 +5,0 @@ function findBestServer(swagger) { |
@@ -205,2 +205,22 @@ export declare namespace Swagger { | ||
/** | ||
* New OAuth2 scopes | ||
* @see https://hello.atlassian.net/wiki/spaces/redfox/pages/1046875420/RFC+OAuth+scopes+deprecation+in+Jira+-+DAC | ||
*/ | ||
interface OAuth2Scopes { | ||
deprecated: boolean; | ||
scopes: string[]; | ||
documentation?: string; | ||
} | ||
/** | ||
* OAuth2 scopes with scope's state | ||
* @see https://hello.atlassian.net/wiki/spaces/redfox/pages/1304762888/OpenAPI+-+DAC+contract | ||
*/ | ||
interface OAuth2ScopesWithState { | ||
state: OAuth2ScopesState; | ||
scopes: string[]; | ||
scheme?: string; | ||
documentation?: string; | ||
} | ||
type OAuth2ScopesState = 'Current' | 'Deprecated' | 'Beta'; | ||
/** | ||
* This interface was referenced by `SwaggerV3`'s JSON-Schema | ||
@@ -232,2 +252,3 @@ * via the `definition` "Operation". | ||
'x-atlassian-connect-scope'?: string; | ||
'x-atlassian-oauth2-scopes'?: OAuth2Scopes[] | OAuth2ScopesWithState[]; | ||
} | ||
@@ -234,0 +255,0 @@ /** |
@@ -29,2 +29,6 @@ import { Swagger as S, Swagger } from './swagger'; | ||
function isPathParam(p: Swagger.Parameter): p is (Swagger.ParameterWithSchemaWithExampleInPath | Swagger.ParameterWithSchemaWithExamplesInPath | Swagger.ParameterWithContentInPath); | ||
function isOAuth2ScopesArray(o: NonNullable<Swagger.Operation['x-atlassian-oauth2-scopes']>): o is Array<Swagger.OAuth2Scopes>; | ||
function isOAuth2ScopesWithStateArray(o: NonNullable<Swagger.Operation['x-atlassian-oauth2-scopes']>): o is Array<Swagger.OAuth2ScopesWithState>; | ||
function isOAuth2Scopes(o: Swagger.OAuth2Scopes | Swagger.OAuth2ScopesWithState): o is Swagger.OAuth2Scopes; | ||
function isOAuth2ScopesWithState(o: Swagger.OAuth2Scopes | Swagger.OAuth2ScopesWithState): o is Swagger.OAuth2ScopesWithState; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SwaggerTypeChecks = void 0; | ||
var SwaggerTypeChecks; | ||
@@ -360,2 +361,21 @@ (function (SwaggerTypeChecks) { | ||
SwaggerTypeChecks.isPathParam = isPathParam; | ||
// tslint:disable-next-line:max-line-length | ||
function isOAuth2ScopesArray(o) { | ||
return o.every(isOAuth2Scopes); | ||
} | ||
SwaggerTypeChecks.isOAuth2ScopesArray = isOAuth2ScopesArray; | ||
// tslint:disable-next-line:max-line-length | ||
function isOAuth2ScopesWithStateArray(o) { | ||
return o.every(isOAuth2ScopesWithState); | ||
} | ||
SwaggerTypeChecks.isOAuth2ScopesWithStateArray = isOAuth2ScopesWithStateArray; | ||
function isOAuth2Scopes(o) { | ||
return 'deprecated' in o; | ||
} | ||
SwaggerTypeChecks.isOAuth2Scopes = isOAuth2Scopes; | ||
// tslint:disable-next-line:max-line-length | ||
function isOAuth2ScopesWithState(o) { | ||
return 'state' in o; | ||
} | ||
SwaggerTypeChecks.isOAuth2ScopesWithState = isOAuth2ScopesWithState; | ||
})(SwaggerTypeChecks = exports.SwaggerTypeChecks || (exports.SwaggerTypeChecks = {})); |
{ | ||
"name": "atlassian-openapi", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "This is a package that lets you deal with the Atlassian flavour of the OpenAPI 3.0 specification.", | ||
"repository": { | ||
"type" : "git", | ||
"url" : "git@bitbucket.org:echo_rm/atlassian-openapi.git" | ||
}, | ||
"repository": "github:robertmassaioli/atlassian-openapi", | ||
"keywords": [ | ||
@@ -30,3 +27,3 @@ "atlassian", | ||
"dependencies": { | ||
"jsonpointer": "^4.0.1", | ||
"jsonpointer": "^5.0.0", | ||
"urijs": "^1.18.10" | ||
@@ -42,3 +39,3 @@ }, | ||
"tslint": "^5.10.0", | ||
"typescript": "^3.1.1" | ||
"typescript": "^3.7" | ||
}, | ||
@@ -45,0 +42,0 @@ "husky": { |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
59890
14
1630
0
15
1
+ Addedjsonpointer@5.0.1(transitive)
- Removedjsonpointer@4.1.0(transitive)
Updatedjsonpointer@^5.0.0