@forge/api
Advanced tools
Comparing version 2.1.0-next.3 to 2.1.0-next.4
# @forge/api | ||
## 2.1.0-next.4 | ||
### Patch Changes | ||
- 85ce23a: Update error message and build config | ||
- Updated dependencies [85ce23a] | ||
- @forge/auth@0.0.1-next.2 | ||
## 2.1.0-next.3 | ||
@@ -4,0 +12,0 @@ |
export declare const authorize: () => { | ||
onJira: (projectPermissionsInput: import("@forge/auth/out/jira").ProjectPermission[]) => Promise<import("@forge/auth/out/jira").ProjectPermissionResponse[]>; | ||
onJiraProject: (...projects: (string | number)[]) => { | ||
[k: string]: import("@forge/auth/out/types").PermissionCheck; | ||
}; | ||
onJiraIssue: (...issues: (string | number)[]) => { | ||
[k: string]: import("@forge/auth/out/types").PermissionCheck; | ||
}; | ||
onConfluenceContent: (contentId: string | number) => { | ||
[k: string]: import("@forge/auth/out/types").PermissionCheck; | ||
}; | ||
readonly onJira: (projectPermissionsInput: import("@forge/auth/out/jira").ProjectPermission[]) => Promise<import("@forge/auth/out/jira").ProjectPermissionResponse[]>; | ||
readonly onJiraProject: (projects: string | number | (string | number)[]) => Record<string, import("@forge/auth/out/types").PermissionCheck>; | ||
readonly onJiraIssue: (issues: string | number | (string | number)[]) => Record<string, import("@forge/auth/out/types").PermissionCheck>; | ||
readonly onConfluenceContent: (contentId: string | number) => Record<string, import("@forge/auth/out/types").PermissionCheck>; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,3 +8,3 @@ "use strict"; | ||
if (!process.env.__CURRENT_USER_ACCOUNT_ID) | ||
throw new Error('Cannot authorize undefined user'); | ||
throw new Error(`Couldn’t find the accountId of the invoking user. This API can only be used inside user-invoked modules.`); | ||
const accountId = process.env.__CURRENT_USER_ACCOUNT_ID; | ||
@@ -11,0 +11,0 @@ return Object.assign(Object.assign({}, auth_1.authorizeConfluenceWithFetch(async (path, opts) => { |
{ | ||
"name": "@forge/api", | ||
"version": "2.1.0-next.3", | ||
"version": "2.1.0-next.4", | ||
"description": "Forge API methods", | ||
@@ -18,3 +18,3 @@ "author": "Atlassian", | ||
"dependencies": { | ||
"@forge/auth": "^0.0.1-next.0", | ||
"@forge/auth": "^0.0.1-next.2", | ||
"@forge/storage": "^1.0.4-next.0", | ||
@@ -21,0 +21,0 @@ "@types/node-fetch": "^2.5.7", |
Sorry, the diff of this file is not supported yet
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
39549
509
Updated@forge/auth@^0.0.1-next.2