npm package diff
Package: @forge/storage
Versions: 1.5.15-experimental-f6dcf26 - 1.5.15-experimental-204139e
File: package/out/gql-queries.js
Index: package/out/gql-queries.js
===================================================================
--- package/out/gql-queries.js
+++ package/out/gql-queries.js
@@ -144,8 +144,32 @@
encrypted
}
}
});
+ static transaction = (contextAri, items) => ({
+ query: `
+ mutation forge_app_setApplicationStorageTransact($input: TransactMutationInput!) {
+ appStorage {
+ transactAppStoredEntity(input: $input) {
+ success
+ errors {
+ message
+ extensions {
+ errorType
+ statusCode
+ }
+ }
+ }
+ }
+ }
+ `,
+ variables: {
+ input: {
+ contextAri,
+ items
+ }
+ }
+ });
}
exports.UntypedQueries = UntypedQueries;
class CustomEntityQueries {
static get = (contextAri, entityName, key) => ({
@@ -256,6 +280,30 @@
...(options.limit ? { limit: options.limit } : {})
}
};
};
+ static transaction = (contextAri, items) => ({
+ query: `
+ mutation forge_app_setApplicationStorageTransact($input: TransactMutationInput!) {
+ appStorageCustomEntity {
+ transactAppStoredCustomEntity(input: $input) {
+ success
+ errors {
+ message
+ extensions {
+ errorType
+ statusCode
+ }
+ }
+ }
+ }
+ }
+ `,
+ variables: {
+ input: {
+ contextAri,
+ items
+ }
+ }
+ });
}
exports.CustomEntityQueries = CustomEntityQueries;