npm package diff
Package: @forge/api
Versions: 3.8.1-experimental-10722bc - 3.9.2-next.1
File: package/out/index.d.ts
Index: package/out/index.d.ts
===================================================================
--- package/out/index.d.ts
+++ package/out/index.d.ts
@@ -1,9 +1,9 @@
import { RequestInit, Response } from 'node-fetch';
-import { QueryApi, TransactionApi, EntityStorageApi, BulkItem, BulkResponse } from '@forge/storage';
+import { QueryApi, EntityStorageApi } from '@forge/storage';
import { authorize } from './authorization';
import { Route } from './safeUrl';
-import { webTrigger } from './webTrigger';
+import { webTrigger, WebTriggerResponse, WebTriggerRequest, WebTriggerMethod, WebTriggerContext } from './webTrigger';
import { __requestAtlassianAsApp, __requestAtlassianAsUser } from './runtime/fetch-and-storage';
import { invokeRemote } from './api/remote';
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText' | 'headers'>;
export declare type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>;
@@ -44,17 +44,16 @@
export interface StorageMethods {
get: (key: string) => Promise<any>;
set: (key: string, value: string | number | boolean | Record<string, any> | any[]) => Promise<void>;
delete: (key: string) => Promise<void>;
- bulkSet: (items: BulkItem[]) => Promise<BulkResponse>;
}
export interface PropertiesAPI {
onJiraProject: (context: string) => StorageMethods;
onJiraIssue: (context: string) => StorageMethods;
onConfluencePage: (context: string) => StorageMethods;
onConfluenceSpace: (context: string) => StorageMethods;
}
-export interface StorageAPI extends StorageMethods, QueryApi, TransactionApi, EntityStorageApi {
+export interface StorageAPI extends StorageMethods, QueryApi, EntityStorageApi {
}
export interface ForgeStorageAPI extends StorageAPI {
getSecret: (key: string) => Promise<any>;
setSecret: (key: string, value: any) => Promise<void>;
@@ -90,9 +89,9 @@
export declare const privacy: {
reportPersonalData: (accounts: import("./privacy").Account[]) => Promise<import("./privacy").AccountUpdate[]>;
};
export default API;
-export { asUser, asApp, authorize, fetch, requestJira, requestConfluence, requestBitbucket, invokeRemote, store, storage, properties, webTrigger, __requestAtlassianAsApp, __requestAtlassianAsUser };
+export { asUser, asApp, authorize, fetch, requestJira, requestConfluence, requestBitbucket, invokeRemote, store, storage, properties, webTrigger, WebTriggerRequest, WebTriggerResponse, WebTriggerMethod, WebTriggerContext, __requestAtlassianAsApp, __requestAtlassianAsUser };
export declare const createRequestStargateAsApp: () => FetchMethod;
export { QueryBuilder, QueryApi, EntityStorageApi, Condition, ListResult, Predicate, Result, Value, WherePredicate, FilterPredicate, startsWith, WhereConditions, FilterConditions, SortOrder } from '@forge/storage';
export { route, assumeTrustedRoute, routeFromAbsolute, Route } from './safeUrl';
export { ForgeRuntime, AppContext, getAppContext, __getRuntime } from './api/runtime';