npm package diff
Package: @forge/storage
Versions: 1.5.15-experimental-f6dcf26 - 1.5.15-experimental-204139e
File: package/out/global-storage.js
Index: package/out/global-storage.js
===================================================================
--- package/out/global-storage.js
+++ package/out/global-storage.js
@@ -55,8 +55,18 @@
results,
nextCursor
};
}
+ async transaction(options, isCustomEntity) {
+ if (isCustomEntity) {
+ const requestBody = gql_queries_1.CustomEntityQueries.transaction(this.doGetAppContextAri(), options);
+ await this.mutation(requestBody, 'appStorageCustomEntity', 'transactAppStoredCustomEntity');
+ }
+ else {
+ const requestBody = gql_queries_1.UntypedQueries.transaction(this.doGetAppContextAri(), options);
+ await this.mutation(requestBody, 'appStorage', 'transactAppStoredEntity');
+ }
+ }
async listCustomEntities(options) {
const requestBody = gql_queries_1.CustomEntityQueries.listQuery(this.doGetAppContextAri(), options);
const response = await this.query(requestBody);
const edges = response.appStoredCustomEntities.edges;