npm package diff
Package: @forge/storage
Versions: 1.5.15-experimental-f6dcf26 - 1.5.15-experimental-204139e
File: package/out/transaction-api.d.ts
Index: package/out/transaction-api.d.ts
===================================================================
--- package/out/transaction-api.d.ts
+++ package/out/transaction-api.d.ts
@@ -0,0 +1,24 @@
+import { GlobalStorage } from '.';
+import { CustomEntityTransactionBuilder } from './entity-storage/custom-entity-transaction-api';
+import { KVSTransactionBuilderInterface, TransactionBuilder } from './storage-adapter';
+interface TransactionSet {
+ key: string;
+ value: string | number | boolean | Record<string, any> | any[];
+}
+interface TransactionDelete {
+ key: string;
+}
+export interface TransactionOptions {
+ set?: TransactionSet[];
+ delete?: TransactionDelete[];
+}
+export declare class DefaultTransactionBuilder implements TransactionBuilder {
+ private globalStorage;
+ private transactionOptions;
+ constructor(globalStorage: Pick<GlobalStorage, 'transaction'>, transactionOptions?: TransactionOptions);
+ entity(name: string): CustomEntityTransactionBuilder;
+ set(key: string, value: string | number | boolean | Record<string, any> | any[]): KVSTransactionBuilderInterface;
+ delete(key: string): KVSTransactionBuilderInterface;
+}
+export {};
+//# sourceMappingURL=transaction-api.d.ts.map
\ No newline at end of file