npm package diff
Package: @forge/api
Versions: 3.9.2-next.0-experimental-c7a7d36 - 3.8.1-experimental-204139e
File: package/out/index.d.ts
Index: package/out/index.d.ts
===================================================================
--- package/out/index.d.ts
+++ package/out/index.d.ts
@@ -1,12 +1,11 @@
import { RequestInit, Response } from 'node-fetch';
-import { QueryApi, EntityStorageApi } from '@forge/storage';
+import { QueryApi, TransactionApi, EntityStorageApi, BulkItem, BulkResponse } from '@forge/storage';
import { authorize } from './authorization';
import { Route } from './safeUrl';
import { webTrigger } from './webTrigger';
import { __requestAtlassianAsApp, __requestAtlassianAsUser } from './runtime/fetch-and-storage';
import { invokeRemote } from './api/remote';
-import { __fetchProduct } from './api/fetch';
export declare type APIResponse = Pick<Response, 'json' | 'text' | 'arrayBuffer' | 'ok' | 'status' | 'statusText' | 'headers'>;
export declare type FetchMethod = (url: string, init?: RequestInit) => Promise<APIResponse>;
export declare type FetchMethodAllowingRoute = (url: string | Route, init?: RequestInit) => Promise<APIResponse>;
export declare type RequestProductMethod = (url: Route, init?: RequestInit) => Promise<APIResponse>;
@@ -45,16 +44,17 @@
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, EntityStorageApi {
+export interface StorageAPI extends StorageMethods, QueryApi, TransactionApi, EntityStorageApi {
}
export interface ForgeStorageAPI extends StorageAPI {
getSecret: (key: string) => Promise<any>;
setSecret: (key: string, value: any) => Promise<void>;
@@ -90,9 +90,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, __fetchProduct };
+export { asUser, asApp, authorize, fetch, requestJira, requestConfluence, requestBitbucket, invokeRemote, store, storage, properties, webTrigger, __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';