npm package diff

Package: @forge/storage

Versions: 1.5.15-experimental-10722bc - 1.6.0-next.0

File: package/out/global-storage.d.ts

Index: package/out/global-storage.d.ts
===================================================================
--- package/out/global-storage.d.ts
+++ package/out/global-storage.d.ts
@@ -1,48 +1,30 @@
-import { BulkResponse, FetchMethod } from './index';
-import { CustomEntityListOptions, FilterClause, ListOptions } from './query-interfaces';
-import { BulkItem, SharedStorageAdapter } from './storage-adapter';
+import { FetchMethod } from './index';
+import { CustomEntityListOptions, ListOptions } from './query-interfaces';
+import { SharedStorageAdapter } from './storage-adapter';
+import type { Metrics } from '@forge/util/packages/metrics-interface';
 interface ListResults {
     results: {
         key: string;
         value: any;
     }[];
     nextCursor?: string;
 }
-export declare type colorsEnum = 'or' | 'and';
-declare type TransactionRequestCondition = {
-    [key in colorsEnum]?: FilterClause[];
-};
-export interface TransactionRequestSet {
-    key: string;
-    value: string | number | boolean | Record<string, any> | any[];
-    entityName?: string;
-    conditions?: TransactionRequestCondition;
-}
-export interface TransactionRequestDeleteCheck {
-    key: string;
-    entityName?: string;
-    conditions?: TransactionRequestCondition;
-}
-export interface TransactionRequestInput {
-    set?: TransactionRequestSet[];
-    delete?: TransactionRequestDeleteCheck[];
-    check?: TransactionRequestDeleteCheck[];
-}
+export declare type StoreType = 'typed' | 'untyped';
+export declare type OperationType = 'get' | 'set' | 'query' | 'delete';
 export declare class GlobalStorage implements SharedStorageAdapter {
     private getAppContextAri;
     private apiClient;
+    private readonly getMetrics;
     private readonly endpoint;
-    constructor(getAppContextAri: (() => string) | string, apiClient: FetchMethod);
+    constructor(getAppContextAri: (() => string) | string, apiClient: FetchMethod, getMetrics: () => Metrics);
     private doGetAppContextAri;
     get(key: string): Promise<any>;
     getSecret(key: string): Promise<any>;
     list(options: ListOptions): Promise<ListResults>;
-    transaction(options: TransactionRequestInput, isCustomEntity?: boolean): Promise<void>;
     listCustomEntities(options: CustomEntityListOptions): Promise<ListResults>;
     set(key: string, value: any): Promise<void>;
     setSecret(key: string, value: any): Promise<void>;
-    bulkSet(items: BulkItem[]): Promise<BulkResponse>;
     delete(key: string): Promise<void>;
     deleteSecret(key: string): Promise<void>;
     getEntity<T>(entityName: string, entityKey: string): Promise<T>;
     setEntity<T>(entityName: string, entityKey: string, value: T): Promise<void>;
@@ -51,7 +33,8 @@
     private getEntityInternal;
     private buildRequest;
     private query;
     private mutation;
+    private wrapInMetric;
 }
 export {};
 //# sourceMappingURL=global-storage.d.ts.map
\ No newline at end of file