@forge/storage 0.0.0-experimental-490cfcf → 0.0.0-experimental-85df747

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.d.ts DELETED
@@ -1,69 +0,0 @@
1
- export declare const getQuery: (contextAri: string, key: string, encrypted: boolean) => {
2
- query: string;
3
- variables: {
4
- contextAri: string;
5
- key: string;
6
- encrypted: boolean;
7
- };
8
- };
9
- export interface StartsWithClause {
10
- field: string;
11
- condition: 'STARTS_WITH';
12
- value: string;
13
- }
14
- export interface NotEqualToClause {
15
- field: string;
16
- condition: 'NOT_EQUAL_TO';
17
- value: string[];
18
- }
19
- export interface InClause {
20
- field: string;
21
- condition: 'IN';
22
- value: string[];
23
- }
24
- export declare type WhereClause = StartsWithClause | NotEqualToClause | InClause;
25
- export interface ListOptions {
26
- where?: Array<WhereClause>;
27
- cursor?: string;
28
- limit?: number;
29
- }
30
- export declare const listQuery: (contextAri: string, options: ListOptions) => {
31
- query: string;
32
- variables: {
33
- contextAri: string;
34
- where: WhereClause[] | null;
35
- cursor: string | null;
36
- limit: number | null;
37
- };
38
- };
39
- export declare const listQueryForCleanup: (contextAri: string, options: ListOptions) => {
40
- query: string;
41
- variables: {
42
- contextAri: string;
43
- where: WhereClause[] | null;
44
- cursor: string | null;
45
- limit: number | null;
46
- };
47
- };
48
- export declare const setQuery: (contextAri: string, key: string, value: any, encrypted: boolean) => {
49
- query: string;
50
- variables: {
51
- input: {
52
- contextAri: string;
53
- key: string;
54
- value: any;
55
- encrypted: boolean;
56
- };
57
- };
58
- };
59
- export declare const deleteQuery: (contextAri: string, key: string, encrypted: boolean) => {
60
- query: string;
61
- variables: {
62
- input: {
63
- contextAri: string;
64
- key: string;
65
- encrypted: boolean;
66
- };
67
- };
68
- };
69
- //# sourceMappingURL=queries.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../src/queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,eAAgB,MAAM,OAAO,MAAM,aAAa,OAAO;;;;;;;CAc1E,CAAC;AAEH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,aAAa,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,cAAc,CAAC;IAC1B,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,oBAAY,WAAW,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AAEzE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,SAAS,eAAgB,MAAM,WAAW,WAAW;;;;;;;;CAuBhE,CAAC;AAEH,eAAO,MAAM,mBAAmB,eAAgB,MAAM,WAAW,WAAW;;;;;;;;CAuB1E,CAAC;AAEH,eAAO,MAAM,QAAQ,eAAgB,MAAM,OAAO,MAAM,SAAS,GAAG,aAAa,OAAO;;;;;;;;;;CAyBtF,CAAC;AAEH,eAAO,MAAM,WAAW,eAAgB,MAAM,OAAO,MAAM,aAAa,OAAO;;;;;;;;;CAwB7E,CAAC"}
package/out/queries.js DELETED
@@ -1,119 +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
- exports.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.listQuery = (contextAri, options) => {
20
- var _a, _b, _c;
21
- return ({
22
- query: `
23
- query forge_app_getApplicationStorageEntities($contextAri: ID!, $where: [AppStoredEntityFilter!], $cursor: String, $limit: Int) {
24
- appStoredEntities(contextAri: $contextAri, where: $where, after: $cursor, first: $limit) {
25
- edges {
26
- node {
27
- value
28
- key
29
- }
30
-
31
- cursor
32
- }
33
- }
34
- }
35
- `,
36
- variables: {
37
- contextAri,
38
- where: (_a = options.where) !== null && _a !== void 0 ? _a : null,
39
- cursor: (_b = options.cursor) !== null && _b !== void 0 ? _b : null,
40
- limit: (_c = options.limit) !== null && _c !== void 0 ? _c : null
41
- }
42
- });
43
- };
44
- exports.listQueryForCleanup = (contextAri, options) => {
45
- var _a, _b, _c;
46
- return ({
47
- query: `
48
- query forge_app_getApplicationStorageEntitiesForCleanup($contextAri: ID!, $where: [AppStoredEntityFilter!], $cursor: String, $limit: Int) {
49
- appStoredEntitiesForCleanup(contextAri: $contextAri, where: $where, after: $cursor, first: $limit) {
50
- edges {
51
- node {
52
- value
53
- key
54
- }
55
-
56
- cursor
57
- }
58
- }
59
- }
60
- `,
61
- variables: {
62
- contextAri,
63
- where: (_a = options.where) !== null && _a !== void 0 ? _a : null,
64
- cursor: (_b = options.cursor) !== null && _b !== void 0 ? _b : null,
65
- limit: (_c = options.limit) !== null && _c !== void 0 ? _c : null
66
- }
67
- });
68
- };
69
- exports.setQuery = (contextAri, key, value, encrypted) => ({
70
- query: `
71
- mutation forge_app_setApplicationStorageEntity($input: SetAppStoredEntityMutationInput!) {
72
- appStorage{
73
- setAppStoredEntity(input: $input) {
74
- success
75
-
76
- errors {
77
- message
78
- extensions {
79
- errorType
80
- }
81
- }
82
- }
83
- }
84
- }
85
- `,
86
- variables: {
87
- input: {
88
- contextAri,
89
- key,
90
- value,
91
- encrypted
92
- }
93
- }
94
- });
95
- exports.deleteQuery = (contextAri, key, encrypted) => ({
96
- query: `
97
- mutation forge_app_deleteApplicationStorageEntity($input: DeleteAppStoredEntityMutationInput!) {
98
- appStorage {
99
- deleteAppStoredEntity(input: $input) {
100
- success
101
-
102
- errors {
103
- message
104
- extensions {
105
- errorType
106
- }
107
- }
108
- }
109
- }
110
- }
111
- `,
112
- variables: {
113
- input: {
114
- contextAri,
115
- key,
116
- encrypted
117
- }
118
- }
119
- });