@forge/storage 1.3.1-next.0 → 1.3.2-experimental-58938ba

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/out/queries.js DELETED
@@ -1,124 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteQuery = exports.setQuery = exports.listQueryForCleanup = exports.listQuery = exports.getQuery = void 0;
4
- const getQuery = (contextAri, key, encrypted) => ({
5
- query: `
6
- query forge_app_getApplicationStorageEntity($contextAri: ID!, $key: ID!, $encrypted: Boolean!) {
7
- appStoredEntity(contextAri: $contextAri, key: $key, encrypted: $encrypted) {
8
- key
9
- value
10
- }
11
- }
12
- `,
13
- variables: {
14
- contextAri,
15
- key,
16
- encrypted
17
- }
18
- });
19
- exports.getQuery = getQuery;
20
- const listQuery = (contextAri, options) => {
21
- var _a, _b, _c;
22
- return ({
23
- query: `
24
- query forge_app_getApplicationStorageEntities($contextAri: ID!, $where: [AppStoredEntityFilter!], $cursor: String, $limit: Int) {
25
- appStoredEntities(contextAri: $contextAri, where: $where, after: $cursor, first: $limit) {
26
- edges {
27
- node {
28
- value
29
- key
30
- }
31
-
32
- cursor
33
- }
34
- }
35
- }
36
- `,
37
- variables: {
38
- contextAri,
39
- where: (_a = options.where) !== null && _a !== void 0 ? _a : null,
40
- cursor: (_b = options.cursor) !== null && _b !== void 0 ? _b : null,
41
- limit: (_c = options.limit) !== null && _c !== void 0 ? _c : null
42
- }
43
- });
44
- };
45
- exports.listQuery = listQuery;
46
- const listQueryForCleanup = (contextAri, options) => {
47
- var _a, _b, _c;
48
- return ({
49
- query: `
50
- query forge_app_getApplicationStorageEntitiesForCleanup($contextAri: ID!, $where: [AppStoredEntityFilter!], $cursor: String, $limit: Int) {
51
- appStoredEntitiesForCleanup(contextAri: $contextAri, where: $where, after: $cursor, first: $limit) {
52
- edges {
53
- node {
54
- value
55
- key
56
- }
57
-
58
- cursor
59
- }
60
- }
61
- }
62
- `,
63
- variables: {
64
- contextAri,
65
- where: (_a = options.where) !== null && _a !== void 0 ? _a : null,
66
- cursor: (_b = options.cursor) !== null && _b !== void 0 ? _b : null,
67
- limit: (_c = options.limit) !== null && _c !== void 0 ? _c : null
68
- }
69
- });
70
- };
71
- exports.listQueryForCleanup = listQueryForCleanup;
72
- const setQuery = (contextAri, key, value, encrypted) => ({
73
- query: `
74
- mutation forge_app_setApplicationStorageEntity($input: SetAppStoredEntityMutationInput!) {
75
- appStorage{
76
- setAppStoredEntity(input: $input) {
77
- success
78
-
79
- errors {
80
- message
81
- extensions {
82
- errorType
83
- }
84
- }
85
- }
86
- }
87
- }
88
- `,
89
- variables: {
90
- input: {
91
- contextAri,
92
- key,
93
- value,
94
- encrypted
95
- }
96
- }
97
- });
98
- exports.setQuery = setQuery;
99
- const deleteQuery = (contextAri, key, encrypted) => ({
100
- query: `
101
- mutation forge_app_deleteApplicationStorageEntity($input: DeleteAppStoredEntityMutationInput!) {
102
- appStorage {
103
- deleteAppStoredEntity(input: $input) {
104
- success
105
-
106
- errors {
107
- message
108
- extensions {
109
- errorType
110
- }
111
- }
112
- }
113
- }
114
- }
115
- `,
116
- variables: {
117
- input: {
118
- contextAri,
119
- key,
120
- encrypted
121
- }
122
- }
123
- });
124
- exports.deleteQuery = deleteQuery;