@forge/api
Advanced tools
Comparing version 0.0.0-experimental-383053a to 0.0.0-experimental-3ab06ec
# @forge/api | ||
## 0.0.0-experimental-383053a | ||
## 0.0.0-experimental-3ab06ec | ||
### Minor Changes | ||
- 2136fd7: Adds reportPersonalData method to forge help apps comply with GDPR | ||
## 1.1.0-next.0 | ||
### Minor Changes | ||
- 2136fd7: Adds reportPersonalData method to forge help apps comply with GDPR | ||
## 1.0.1 | ||
### Patch Changes | ||
- Updated dependencies [c0e9085] | ||
- @forge/storage@1.0.1 | ||
## 1.0.1-next.0 | ||
### Patch Changes | ||
- Updated dependencies [c0e9085] | ||
- @forge/storage@1.0.1-next.0 | ||
## 1.0.0 | ||
### Major Changes | ||
- 1daf2c5: Forge packages to 1.0.0 for upcoming platform GA 🎉 | ||
### Patch Changes | ||
- Updated dependencies [1daf2c5] | ||
- @forge/storage@1.0.0 | ||
## 1.0.0-next.0 | ||
### Major Changes | ||
- 1daf2c5: Forge is now generally available 🎉 | ||
### Patch Changes | ||
- Updated dependencies [1daf2c5] | ||
- @forge/storage@1.0.0-next.0 | ||
## 0.7.0 | ||
### Minor Changes | ||
- 843a703: Add forge-storage library | ||
### Patch Changes | ||
- Updated dependencies [843a703] | ||
- @forge/storage@0.0.2 | ||
## 0.7.0-next.0 | ||
### Minor Changes | ||
- 843a703: Add forge-storage library | ||
### Patch Changes | ||
- Updated dependencies [843a703] | ||
- @forge/storage@0.0.2-next.0 | ||
## 0.6.1 | ||
### Patch Changes | ||
- b41cc4c: Fix exported content | ||
@@ -8,0 +78,0 @@ - 5b666a5: Fix published content |
import { RequestInit, Response } from 'node-fetch'; | ||
import { QueryApi } from './storage'; | ||
import { QueryApi } from '@forge/storage'; | ||
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText' | 'headers'>; | ||
@@ -46,6 +46,9 @@ export declare type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>; | ||
declare const API: ForgeAPI; | ||
export declare const privacy: { | ||
reportPersonalData: (accounts: import("./privacy").Account[]) => Promise<import("./privacy").AccountUpdate[]>; | ||
}; | ||
export default API; | ||
export { asUser, asApp, fetch, requestJira, requestConfluence, store, storage, properties }; | ||
export { QueryBuilder, QueryApi, Condition, ListResult, Predicate, Result, Value } from './storage/storage-adapter'; | ||
export { startsWith } from './storage/conditions'; | ||
export { QueryBuilder, QueryApi, Condition, ListResult, Predicate, Result, Value } from '@forge/storage'; | ||
export { startsWith } from '@forge/storage'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.properties = exports.storage = exports.store = exports.requestConfluence = exports.requestJira = exports.fetch = exports.asApp = exports.asUser = void 0; | ||
exports.properties = exports.storage = exports.store = exports.requestConfluence = exports.requestJira = exports.fetch = exports.asApp = exports.asUser = exports.privacy = void 0; | ||
const api_1 = require("./api"); | ||
const properties_1 = require("./properties"); | ||
const storage_1 = require("./storage"); | ||
const privacy_1 = require("./privacy"); | ||
const storage_1 = require("@forge/storage"); | ||
function withDeprecatedMessage(method, message) { | ||
@@ -35,3 +36,3 @@ const wrappedMethod = (...args) => { | ||
exports.store = store; | ||
const storage = storage_1.storageApi; | ||
const storage = storage_1.getStorageInstanceWithQuery(new storage_1.GlobalStorage(global.api.__getAppAri, global.api.asApp().__requestAtlassian)); | ||
exports.storage = storage; | ||
@@ -41,4 +42,7 @@ const properties = properties_1.propertiesApi; | ||
const API = Object.assign(Object.assign({}, FetchAPI), { store: Object.assign({}, store) }); | ||
exports.privacy = { | ||
reportPersonalData: privacy_1.createReportPersonalData(global.api.asApp().__requestAtlassian) | ||
}; | ||
exports.default = API; | ||
var conditions_1 = require("./storage/conditions"); | ||
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return conditions_1.startsWith; } }); | ||
var storage_2 = require("@forge/storage"); | ||
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return storage_2.startsWith; } }); |
@@ -5,3 +5,3 @@ "use strict"; | ||
const product_scoped_storage_1 = require("./product-scoped-storage"); | ||
const errors_1 = require("../errors"); | ||
const storage_1 = require("@forge/storage"); | ||
class ConfluenceVersionedStorage extends product_scoped_storage_1.ProductScopedStorage { | ||
@@ -11,3 +11,3 @@ async versionedSet(key, value) { | ||
if (!versionResponse.ok && versionResponse.status !== 404) { | ||
throw errors_1.APIError.forStatus(versionResponse.status); | ||
throw storage_1.APIError.forStatus(versionResponse.status); | ||
} | ||
@@ -14,0 +14,0 @@ const updatedVersionNumber = await this.getUpdatedVersion(versionResponse); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ProductScopedStorage = void 0; | ||
const errors_1 = require("../errors"); | ||
const storage_1 = require("@forge/storage"); | ||
class ProductScopedStorage { | ||
@@ -16,3 +16,3 @@ constructor(storageApiPath, apiClient) { | ||
} | ||
throw errors_1.APIError.forStatus(response.status); | ||
throw storage_1.APIError.forStatus(response.status); | ||
} | ||
@@ -25,3 +25,3 @@ const { value } = await response.json(); | ||
if (!response.ok) { | ||
throw errors_1.APIError.forStatus(response.status); | ||
throw storage_1.APIError.forStatus(response.status); | ||
} | ||
@@ -32,3 +32,3 @@ } | ||
if (!response.ok) { | ||
throw errors_1.APIError.forStatus(response.status); | ||
throw storage_1.APIError.forStatus(response.status); | ||
} | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "@forge/api", | ||
"version": "0.0.0-experimental-383053a", | ||
"version": "0.0.0-experimental-3ab06ec", | ||
"description": "Forge API methods", | ||
@@ -21,2 +21,3 @@ "author": "Atlassian", | ||
"dependencies": { | ||
"@forge/storage": "^1.0.1", | ||
"@types/node-fetch": "^2.5.7", | ||
@@ -23,0 +24,0 @@ "node-fetch": "^2.6.1" |
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
30373
3
39
392
+ Added@forge/storage@^1.0.1
+ Added@forge/storage@1.6.0(transitive)