@forge/api
Advanced tools
Comparing version 0.1.4 to 0.1.5-next.0
# @forge/api | ||
## 0.1.5-next.0 | ||
### Patch Changes | ||
- f86d998: Added types for the store methods | ||
## 0.1.4 |
@@ -8,2 +8,12 @@ import { RequestInit, Response } from 'node-fetch'; | ||
} | ||
export interface StorageMethods { | ||
get: (key: string) => Promise<any>; | ||
set: (key: string, value: any) => Promise<void>; | ||
delete: (key: string) => Promise<void>; | ||
} | ||
export interface StoreMethods { | ||
onJiraIssue: (context: string) => StorageMethods; | ||
onConfluencePage: (context: string) => StorageMethods; | ||
onConfluenceSpace: (context: string) => StorageMethods; | ||
} | ||
export interface ForgeAPI extends FetchMethods { | ||
@@ -13,2 +23,3 @@ asUser(): FetchMethods; | ||
fetch: FetchMethod; | ||
store: StoreMethods; | ||
} | ||
@@ -21,4 +32,5 @@ declare const API: ForgeAPI; | ||
declare const requestConfluence: FetchMethod; | ||
declare const store: StoreMethods; | ||
export default API; | ||
export { asUser, asApp, fetch, requestJira, requestConfluence }; | ||
export { asUser, asApp, fetch, requestJira, requestConfluence, store }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -14,2 +14,4 @@ "use strict"; | ||
exports.requestConfluence = requestConfluence; | ||
const store = API.store; | ||
exports.store = store; | ||
exports.default = API; |
{ | ||
"name": "@forge/api", | ||
"version": "0.1.4", | ||
"version": "0.1.5-next.0", | ||
"description": "Forge API methods", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
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
4492
48