ghostos 0.1.14 → 0.1.16
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/README.dev.md +5 -0
- package/README.md +6 -0
- package/lib/api/leafio/core.d.ts +301 -0
- package/lib/api/leafio/leafgql.d.ts +30 -0
- package/lib/api/leafio/leaflake.d.ts +100 -0
- package/lib/api/leafio/leaflake.unit.test.d.ts +1 -0
- package/lib/api/metamodel.d.ts +179 -0
- package/lib/api/parser/breezyforest.d.ts +1 -0
- package/lib/api/parser/elements/schema/directus.d.ts +72 -0
- package/lib/api/parser/elements/schema/index.d.ts +2 -0
- package/lib/api/parser/eta.d.ts +55 -0
- package/lib/api/parser/eta.spec.d.ts +1 -0
- package/lib/api/parser/etatreeforest.d.ts +37 -0
- package/lib/api/parser/leaf.d.ts +56 -0
- package/lib/api/parser/leafgraph-testbed.browser.test.d.ts +1 -0
- package/lib/api/parser/leafgraph-tests.browser.test.d.ts +1 -0
- package/lib/api/parser/leaflisp/plispdist/index.d.ts +210 -0
- package/lib/api/parser/leaflisp/plispstdlib/index.d.ts +396 -0
- package/lib/api/parser/leaflisp/test.d.mts +1 -0
- package/lib/api/parser/leaflisp/test.d.ts +1 -0
- package/lib/api/parser/leaflisp.d.ts +2 -0
- package/lib/api/parser/nodelogic/abstraction/index.d.ts +7 -0
- package/lib/api/parser/nodelogic/abstraction/leafanchor.d.ts +4 -0
- package/lib/api/parser/nodelogic/abstraction/leafgraph.d.ts +6 -0
- package/lib/api/parser/nodelogic/abstraction/leaflambdagraph.d.ts +4 -0
- package/lib/api/parser/nodelogic/abstraction/leafloopyspell.d.ts +4 -0
- package/lib/api/parser/nodelogic/abstraction/leafloopyspell.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/abstraction/leafspell.d.ts +9 -0
- package/lib/api/parser/nodelogic/abstraction/leafspell.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/abstraction/leafspelldef.d.ts +5 -0
- package/lib/api/parser/nodelogic/common.d.ts +5 -0
- package/lib/api/parser/nodelogic/dataflow/index.d.ts +4 -0
- package/lib/api/parser/nodelogic/dataflow/leafchronosflow.d.ts +4 -0
- package/lib/api/parser/nodelogic/dataflow/leafgateflow.d.ts +10 -0
- package/lib/api/parser/nodelogic/dataflow/leafmixflow.d.ts +4 -0
- package/lib/api/parser/nodelogic/dataflow/leafmixflow.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/datautils/bottling.browser.test.d.ts +1 -0
- package/lib/api/parser/nodelogic/datautils/bottling.d.ts +11 -0
- package/lib/api/parser/nodelogic/datautils/index.d.ts +7 -0
- package/lib/api/parser/nodelogic/datautils/leafbottle.d.ts +12 -0
- package/lib/api/parser/nodelogic/datautils/leafconfig.d.ts +12 -0
- package/lib/api/parser/nodelogic/datautils/leafcrate.d.ts +7 -0
- package/lib/api/parser/nodelogic/datautils/leafdelabel.d.ts +7 -0
- package/lib/api/parser/nodelogic/datautils/leaflabel.d.ts +15 -0
- package/lib/api/parser/nodelogic/datautils/leafunbottle.d.ts +12 -0
- package/lib/api/parser/nodelogic/elements/index.d.ts +8 -0
- package/lib/api/parser/nodelogic/elements/leafdeckclub.d.ts +10 -0
- package/lib/api/parser/nodelogic/elements/leafdeckdiamond.d.ts +10 -0
- package/lib/api/parser/nodelogic/elements/leafdeckheart.d.ts +10 -0
- package/lib/api/parser/nodelogic/elements/leafdeckspade.d.ts +10 -0
- package/lib/api/parser/nodelogic/elements/leafelement.d.ts +21 -0
- package/lib/api/parser/nodelogic/elements/leafelement.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/elements/leafgnav.d.ts +4 -0
- package/lib/api/parser/nodelogic/elements/leafpopupview.d.ts +4 -0
- package/lib/api/parser/nodelogic/elements/library/directus.d.ts +13 -0
- package/lib/api/parser/nodelogic/elements/library/editor.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/form.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/gnav.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/href.d.ts +14 -0
- package/lib/api/parser/nodelogic/elements/library/html.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/http.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/image.d.ts +13 -0
- package/lib/api/parser/nodelogic/elements/library/index.d.ts +25 -0
- package/lib/api/parser/nodelogic/elements/library/mediainput.d.ts +14 -0
- package/lib/api/parser/nodelogic/elements/library/mediaplayer.d.ts +20 -0
- package/lib/api/parser/nodelogic/elements/library/midi.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/openai.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/popup.d.ts +14 -0
- package/lib/api/parser/nodelogic/elements/library/prompt.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/rancher.d.ts +13 -0
- package/lib/api/parser/nodelogic/elements/library/sound.d.ts +17 -0
- package/lib/api/parser/nodelogic/elements/library/sound_lib.d.ts +10 -0
- package/lib/api/parser/nodelogic/elements/library/text.d.ts +13 -0
- package/lib/api/parser/nodelogic/elements/library/wizardryelements.d.ts +4 -0
- package/lib/api/parser/nodelogic/io/index.d.ts +5 -0
- package/lib/api/parser/nodelogic/io/leafinflowport.d.ts +10 -0
- package/lib/api/parser/nodelogic/io/leafinflowport.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/io/leafmemoryio.d.ts +53 -0
- package/lib/api/parser/nodelogic/io/leafmemoryio.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/io/leafoutflowport.d.ts +10 -0
- package/lib/api/parser/nodelogic/io/leafoutflowport.spec.d.ts +1 -0
- package/lib/api/parser/nodelogic/io/leafradioRX.d.ts +4 -0
- package/lib/api/parser/nodelogic/io/leafradioTX.d.ts +4 -0
- package/lib/api/parser/nodelogic/io/leafscreenio.d.ts +10 -0
- package/lib/api/parser/nodelogic/wizardry/index.d.ts +2 -0
- package/lib/api/parser/nodelogic/wizardry/leaflisp.d.ts +19 -0
- package/lib/api/parser/nodelogic/wizardry/leaflisp.unit.test.d.ts +1 -0
- package/lib/api/parser/nodelogic/wizardry/leaflisp2.unit.test.d.ts +1 -0
- package/lib/api/parser/nodelogic/wizardry/leaflisphelp.d.ts +1 -0
- package/lib/api/parser/predicates.d.ts +15 -0
- package/lib/api/parser/runtime-flow-testbed.browser.test.d.ts +1 -0
- package/lib/api/parser/runtime-flow.browser.test.d.ts +1 -0
- package/lib/api/utils/crypto.browser.test.d.ts +1 -0
- package/lib/api/utils/crypto.d.ts +6 -0
- package/lib/api/utils/fetchnodedata.browser.test.d.ts +1 -0
- package/lib/api/utils/fetchnodedata.d.ts +2 -0
- package/lib/api/utils/leafbase64.browser.test.d.ts +1 -0
- package/lib/api/utils/leafbase64.d.ts +2 -0
- package/lib/api/utils/leafdataflow.d.ts +23 -0
- package/lib/api/utils/leafdataflow.spec.d.ts +1 -0
- package/lib/graphql/client.d.ts +13 -0
- package/lib/graphql/events.d.ts +5 -0
- package/lib/graphql/utils.d.ts +3 -0
- package/lib/index.browser.d.ts +41 -0
- package/lib/index.cjs +21830 -0
- package/lib/index.core.d.ts +41 -0
- package/lib/index.core.js +3 -0
- package/lib/index.core.js.LICENSE.txt +16 -0
- package/lib/index.core.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/microservices/persistentio.d.ts +1 -0
- package/lib/microservices/screenio.d.ts +1 -0
- package/lib/microservices/volatileio.d.ts +1 -0
- package/lib/models/dataflow.d.ts +1 -0
- package/lib/utils/connectedComponents.d.ts +1 -0
- package/package.json +2 -2
package/README.dev.md
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
## Publishing on npmjs
|
|
2
2
|
|
|
3
3
|
### Build package and sanity-check the tarball
|
|
4
|
+
|
|
4
5
|
```bash
|
|
5
6
|
npm ci
|
|
6
7
|
npm run build
|
|
7
8
|
npm pack # creates ./ghostos-x.y.z.tgz
|
|
8
9
|
tar -tf ghostos-*.tgz # confirm only the files you expect are inside
|
|
9
10
|
```
|
|
11
|
+
|
|
10
12
|
### Test the package for installability locally
|
|
13
|
+
|
|
11
14
|
```bash
|
|
12
15
|
mkdir /tmp/pkg-test && cd /tmp/pkg-test
|
|
13
16
|
npm init -y
|
|
14
17
|
npm i /path/to/ghostos-x.y.z.tgz
|
|
15
18
|
node -e "import('ghostos').then(m=>console.log(Object.keys(m)))"
|
|
16
19
|
```
|
|
20
|
+
|
|
17
21
|
### Log in and publish on npmjs
|
|
22
|
+
|
|
18
23
|
```bash
|
|
19
24
|
npm login # enter your npmjs.com credentials
|
|
20
25
|
npm publish # publish
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# ghostos
|
|
2
|
+
|
|
2
3
|
A reference LEAF parser implementation used by leafgon.com
|
|
3
4
|
|
|
4
5
|
## Node setup
|
|
@@ -8,19 +9,23 @@ npm i ghostos
|
|
|
8
9
|
```
|
|
9
10
|
|
|
10
11
|
## getting graph data from leafgon.com
|
|
12
|
+
|
|
11
13
|
```bash
|
|
12
14
|
gq https://gdb.leafgon.com/qmgraphql -q 'query {graph: getGraph(domain: "breezyforest", appid: "testbed", filter: {}) {domain appid nodes {uuid leafnodetype out_edges {uuid source {uuid} target {uuid} data} data} edges { uuid source {uuid} target {uuid} } }}' > ./tests/breezyforest-testbed.json
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
## GitHub-hosted leafgraphs
|
|
18
|
+
|
|
16
19
|
Leafgraphs can be loaded from GitHub raw JSON by using `github` as the domain and a repo filepath as the appid.
|
|
17
20
|
|
|
18
21
|
Format:
|
|
22
|
+
|
|
19
23
|
- `github/<github-user>/<repo>/<path>`
|
|
20
24
|
- `github/<github-user>/<repo>@<ref>/<path>` (optional ref, default `main`)
|
|
21
25
|
- `github/<github-user>/<repo>/<path>?token=<some token>`
|
|
22
26
|
|
|
23
27
|
Example:
|
|
28
|
+
|
|
24
29
|
- `github/leafgon/leafgraphs/tests/breezyforest-testbed`
|
|
25
30
|
- `github/leafgon/leafgraphs@dev/tests/breezyforest-testbed`
|
|
26
31
|
- `github/leafgon/leafgraphs/tests/breezyforest-testbed?token=abc123`
|
|
@@ -28,4 +33,5 @@ Example:
|
|
|
28
33
|
See `docs/github-leafgraphs.md` for end-user documentation.
|
|
29
34
|
|
|
30
35
|
## Leafgon-hosted leafgraphs
|
|
36
|
+
|
|
31
37
|
See `docs/leafgon-leafgraphs.md` for end-user documentation.
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
export function useLEAFIOapi({ _LEAFappList, stateObjInstanceID, dirOfSubjects, permissions, metamodel, }?: {
|
|
2
|
+
_LEAFappList?: never[] | undefined;
|
|
3
|
+
stateObjInstanceID?: string | undefined;
|
|
4
|
+
dirOfSubjects?: {} | undefined;
|
|
5
|
+
permissions?: {} | undefined;
|
|
6
|
+
metamodel?: {
|
|
7
|
+
breezyforest: {
|
|
8
|
+
_version: string;
|
|
9
|
+
_nickname: string;
|
|
10
|
+
scaffold: {
|
|
11
|
+
map: {
|
|
12
|
+
leaf: {
|
|
13
|
+
logic: {
|
|
14
|
+
type: string;
|
|
15
|
+
args: {};
|
|
16
|
+
};
|
|
17
|
+
provenance: {
|
|
18
|
+
api: string;
|
|
19
|
+
uuid: string;
|
|
20
|
+
graph: {
|
|
21
|
+
appuuid: string;
|
|
22
|
+
name: string;
|
|
23
|
+
version: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
appdata: {};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
directory: {
|
|
30
|
+
api: string[];
|
|
31
|
+
logic: string[];
|
|
32
|
+
type: string[];
|
|
33
|
+
args: string[];
|
|
34
|
+
provenance: string[];
|
|
35
|
+
uuid: string[];
|
|
36
|
+
leafapp: string[];
|
|
37
|
+
appdata: string[];
|
|
38
|
+
};
|
|
39
|
+
fetch: (n_e: any, crawlkey: any) => any;
|
|
40
|
+
};
|
|
41
|
+
originType: {
|
|
42
|
+
FRONTEND: number;
|
|
43
|
+
BACKEND: number;
|
|
44
|
+
SCREEN: number;
|
|
45
|
+
};
|
|
46
|
+
subsDirectory: {
|
|
47
|
+
readmefirst: {};
|
|
48
|
+
leaflake: {
|
|
49
|
+
bridges: {
|
|
50
|
+
gql: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
appintent: {};
|
|
54
|
+
appmodel: {};
|
|
55
|
+
appview: {};
|
|
56
|
+
osview: {};
|
|
57
|
+
osview2: {};
|
|
58
|
+
dataflowplane: {};
|
|
59
|
+
appcache: {};
|
|
60
|
+
};
|
|
61
|
+
IOAccessPermission: {
|
|
62
|
+
Owner: number;
|
|
63
|
+
Observer: number;
|
|
64
|
+
Contributor: number;
|
|
65
|
+
All: number;
|
|
66
|
+
};
|
|
67
|
+
IOStateGroundZero: {
|
|
68
|
+
dirOfSubjects: {};
|
|
69
|
+
subsCache: {};
|
|
70
|
+
subscriptions: {};
|
|
71
|
+
callbacks: {};
|
|
72
|
+
permissions: {};
|
|
73
|
+
};
|
|
74
|
+
GQLParameters: {
|
|
75
|
+
clientconfig_full: {
|
|
76
|
+
keepGQLConnected: boolean;
|
|
77
|
+
dburi_subs: string | undefined;
|
|
78
|
+
dburi_subs_ws: string | undefined;
|
|
79
|
+
dburi_qm: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
clientconfig_sub: {
|
|
82
|
+
keepGQLConnected: boolean;
|
|
83
|
+
dburi_subs: string | undefined;
|
|
84
|
+
dburi_subs_ws: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
clientconfig_qm: {
|
|
87
|
+
dburi_qm: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
masterquery: string;
|
|
90
|
+
};
|
|
91
|
+
LEAFdictionary: {
|
|
92
|
+
map: typeof import("rxjs").map;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
} | undefined;
|
|
96
|
+
}): {
|
|
97
|
+
getCurLEAFIOState: () => any;
|
|
98
|
+
getMasterSubsDir: () => any;
|
|
99
|
+
setNewLEAFIOState: (key: any, state: any, dataOrigin?: number) => number | true;
|
|
100
|
+
setLEAFIOCallback: (key: any, callerid: any, callbackFunc?: null) => void;
|
|
101
|
+
};
|
|
102
|
+
export function initLEAFIOapi({ _LEAFappList, stateObjInstanceID, dirOfSubjects, permissions, metamodel, }?: {
|
|
103
|
+
_LEAFappList?: never[] | undefined;
|
|
104
|
+
stateObjInstanceID?: string | undefined;
|
|
105
|
+
dirOfSubjects?: {} | undefined;
|
|
106
|
+
permissions?: {} | undefined;
|
|
107
|
+
metamodel?: {
|
|
108
|
+
breezyforest: {
|
|
109
|
+
_version: string;
|
|
110
|
+
_nickname: string;
|
|
111
|
+
scaffold: {
|
|
112
|
+
map: {
|
|
113
|
+
leaf: {
|
|
114
|
+
logic: {
|
|
115
|
+
type: string;
|
|
116
|
+
args: {};
|
|
117
|
+
};
|
|
118
|
+
provenance: {
|
|
119
|
+
api: string;
|
|
120
|
+
uuid: string;
|
|
121
|
+
graph: {
|
|
122
|
+
appuuid: string;
|
|
123
|
+
name: string;
|
|
124
|
+
version: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
appdata: {};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
directory: {
|
|
131
|
+
api: string[];
|
|
132
|
+
logic: string[];
|
|
133
|
+
type: string[];
|
|
134
|
+
args: string[];
|
|
135
|
+
provenance: string[];
|
|
136
|
+
uuid: string[];
|
|
137
|
+
leafapp: string[];
|
|
138
|
+
appdata: string[];
|
|
139
|
+
};
|
|
140
|
+
fetch: (n_e: any, crawlkey: any) => any;
|
|
141
|
+
};
|
|
142
|
+
originType: {
|
|
143
|
+
FRONTEND: number;
|
|
144
|
+
BACKEND: number;
|
|
145
|
+
SCREEN: number;
|
|
146
|
+
};
|
|
147
|
+
subsDirectory: {
|
|
148
|
+
readmefirst: {};
|
|
149
|
+
leaflake: {
|
|
150
|
+
bridges: {
|
|
151
|
+
gql: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
appintent: {};
|
|
155
|
+
appmodel: {};
|
|
156
|
+
appview: {};
|
|
157
|
+
osview: {};
|
|
158
|
+
osview2: {};
|
|
159
|
+
dataflowplane: {};
|
|
160
|
+
appcache: {};
|
|
161
|
+
};
|
|
162
|
+
IOAccessPermission: {
|
|
163
|
+
Owner: number;
|
|
164
|
+
Observer: number;
|
|
165
|
+
Contributor: number;
|
|
166
|
+
All: number;
|
|
167
|
+
};
|
|
168
|
+
IOStateGroundZero: {
|
|
169
|
+
dirOfSubjects: {};
|
|
170
|
+
subsCache: {};
|
|
171
|
+
subscriptions: {};
|
|
172
|
+
callbacks: {};
|
|
173
|
+
permissions: {};
|
|
174
|
+
};
|
|
175
|
+
GQLParameters: {
|
|
176
|
+
clientconfig_full: {
|
|
177
|
+
keepGQLConnected: boolean;
|
|
178
|
+
dburi_subs: string | undefined;
|
|
179
|
+
dburi_subs_ws: string | undefined;
|
|
180
|
+
dburi_qm: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
clientconfig_sub: {
|
|
183
|
+
keepGQLConnected: boolean;
|
|
184
|
+
dburi_subs: string | undefined;
|
|
185
|
+
dburi_subs_ws: string | undefined;
|
|
186
|
+
};
|
|
187
|
+
clientconfig_qm: {
|
|
188
|
+
dburi_qm: string | undefined;
|
|
189
|
+
};
|
|
190
|
+
masterquery: string;
|
|
191
|
+
};
|
|
192
|
+
LEAFdictionary: {
|
|
193
|
+
map: typeof import("rxjs").map;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
} | undefined;
|
|
197
|
+
}): {
|
|
198
|
+
getCurLEAFIOState: () => any;
|
|
199
|
+
getMasterSubsDir: () => any;
|
|
200
|
+
setNewLEAFIOState: (key: any, state: any, dataOrigin?: number) => number | true;
|
|
201
|
+
setLEAFIOCallback: (key: any, callerid: any, callbackFunc?: null) => void;
|
|
202
|
+
destructLEAFIOobj: () => void;
|
|
203
|
+
};
|
|
204
|
+
export function initializeMasterSubsDirectory(_stateObjInstanceID: any, _LEAFappList?: any[], _metamodel?: {
|
|
205
|
+
breezyforest: {
|
|
206
|
+
_version: string;
|
|
207
|
+
_nickname: string;
|
|
208
|
+
scaffold: {
|
|
209
|
+
map: {
|
|
210
|
+
leaf: {
|
|
211
|
+
logic: {
|
|
212
|
+
type: string;
|
|
213
|
+
args: {};
|
|
214
|
+
};
|
|
215
|
+
provenance: {
|
|
216
|
+
api: string;
|
|
217
|
+
uuid: string;
|
|
218
|
+
graph: {
|
|
219
|
+
appuuid: string;
|
|
220
|
+
name: string;
|
|
221
|
+
version: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
appdata: {};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
directory: {
|
|
228
|
+
api: string[];
|
|
229
|
+
logic: string[];
|
|
230
|
+
type: string[];
|
|
231
|
+
args: string[];
|
|
232
|
+
provenance: string[];
|
|
233
|
+
uuid: string[];
|
|
234
|
+
leafapp: string[];
|
|
235
|
+
appdata: string[];
|
|
236
|
+
};
|
|
237
|
+
fetch: (n_e: any, crawlkey: any) => any;
|
|
238
|
+
};
|
|
239
|
+
originType: {
|
|
240
|
+
FRONTEND: number;
|
|
241
|
+
BACKEND: number;
|
|
242
|
+
SCREEN: number;
|
|
243
|
+
};
|
|
244
|
+
subsDirectory: {
|
|
245
|
+
readmefirst: {};
|
|
246
|
+
leaflake: {
|
|
247
|
+
bridges: {
|
|
248
|
+
gql: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
appintent: {};
|
|
252
|
+
appmodel: {};
|
|
253
|
+
appview: {};
|
|
254
|
+
osview: {};
|
|
255
|
+
osview2: {};
|
|
256
|
+
dataflowplane: {};
|
|
257
|
+
appcache: {};
|
|
258
|
+
};
|
|
259
|
+
IOAccessPermission: {
|
|
260
|
+
Owner: number;
|
|
261
|
+
Observer: number;
|
|
262
|
+
Contributor: number;
|
|
263
|
+
All: number;
|
|
264
|
+
};
|
|
265
|
+
IOStateGroundZero: {
|
|
266
|
+
dirOfSubjects: {};
|
|
267
|
+
subsCache: {};
|
|
268
|
+
subscriptions: {};
|
|
269
|
+
callbacks: {};
|
|
270
|
+
permissions: {};
|
|
271
|
+
};
|
|
272
|
+
GQLParameters: {
|
|
273
|
+
clientconfig_full: {
|
|
274
|
+
keepGQLConnected: boolean;
|
|
275
|
+
dburi_subs: string | undefined;
|
|
276
|
+
dburi_subs_ws: string | undefined;
|
|
277
|
+
dburi_qm: string | undefined;
|
|
278
|
+
};
|
|
279
|
+
clientconfig_sub: {
|
|
280
|
+
keepGQLConnected: boolean;
|
|
281
|
+
dburi_subs: string | undefined;
|
|
282
|
+
dburi_subs_ws: string | undefined;
|
|
283
|
+
};
|
|
284
|
+
clientconfig_qm: {
|
|
285
|
+
dburi_qm: string | undefined;
|
|
286
|
+
};
|
|
287
|
+
masterquery: string;
|
|
288
|
+
};
|
|
289
|
+
LEAFdictionary: {
|
|
290
|
+
map: typeof import("rxjs").map;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
}): any[];
|
|
294
|
+
export function initializeSubsMain(): {
|
|
295
|
+
handle$: BehaviorSubject<any>;
|
|
296
|
+
doWrite: (_data: any) => void;
|
|
297
|
+
doSubscribe: (_eventCallback: any) => import("rxjs").Subscription;
|
|
298
|
+
doUnsubscribe: (subscription: any) => any;
|
|
299
|
+
doAddAddressee: (gqlrequest: any, nodeuuid: any) => void;
|
|
300
|
+
};
|
|
301
|
+
import { BehaviorSubject } from "rxjs";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function getLEAFgqlStrAddNode(node_input: any): string;
|
|
2
|
+
export function getLEAFgqlStrUpdateNode(node_input: any): string;
|
|
3
|
+
export function getLEAFgqlStrDelNode(node_uuid: any): string;
|
|
4
|
+
export function getLEAFgqlSubs(graph: any): string;
|
|
5
|
+
export function mutateUpdateNode({ variables, endpoint }: {
|
|
6
|
+
variables: any;
|
|
7
|
+
endpoint?: string | undefined;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
export function mutateAddNode({ variables, endpoint }: {
|
|
10
|
+
variables: any;
|
|
11
|
+
endpoint?: string | undefined;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
export function mutateDelNode({ node_uuid, endpoint }: {
|
|
14
|
+
node_uuid: any;
|
|
15
|
+
endpoint?: string | undefined;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
export function mutateAddEdge({ variables, endpoint }: {
|
|
18
|
+
variables: any;
|
|
19
|
+
endpoint?: string | undefined;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
export function mutateDelEdge({ edge_uuid, endpoint }: {
|
|
22
|
+
edge_uuid: any;
|
|
23
|
+
endpoint?: string | undefined;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
export const MUT_UPDATENODE: "mutation UpdateNode($uuid: String!, $data: String!) {\n updateNode(input: {filter: {uuid: {eq: $uuid}}, set: {data: $data}}) {node {uuid}}\n}";
|
|
26
|
+
export const MUT_ADDNODE: "mutation AddNode($uuid: String!, $leafnodetype: String, $data: String!, $graphdomain: String!, $graphappid: String!, $provdomain: String!, $provappid: String!) {\n addNode(input: [{uuid: $uuid, leafnodetype: $leafnodetype, graph: {domain: $graphdomain, appid: $graphappid}, provenance: {domain: $provdomain, appid: $provappid}, data: $data}]) {node {uuid}}\n}";
|
|
27
|
+
export const MUT_DELNODE: "mutation DeleteNode($uuid: String!) {\n deleteNode(nfilter: {uuid: {eq: $uuid}}) {node {uuid}}\n}";
|
|
28
|
+
export const endpoint_subs: string;
|
|
29
|
+
export const websocket_subs: string;
|
|
30
|
+
export const endpoint_qm: string;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export function initializeLEAFlakeGQLClient({ _clientConfig, _metamodel, _sessionid, }?: {
|
|
2
|
+
_clientConfig?: {
|
|
3
|
+
dburi_subs: string | undefined;
|
|
4
|
+
dburi_subs_ws: string | undefined;
|
|
5
|
+
dburi_qm: string | undefined;
|
|
6
|
+
} | undefined;
|
|
7
|
+
_metamodel?: {
|
|
8
|
+
_version: string;
|
|
9
|
+
_nickname: string;
|
|
10
|
+
scaffold: {
|
|
11
|
+
map: {
|
|
12
|
+
leaf: {
|
|
13
|
+
logic: {
|
|
14
|
+
type: string;
|
|
15
|
+
args: {};
|
|
16
|
+
};
|
|
17
|
+
provenance: {
|
|
18
|
+
api: string;
|
|
19
|
+
uuid: string;
|
|
20
|
+
graph: {
|
|
21
|
+
appuuid: string;
|
|
22
|
+
name: string;
|
|
23
|
+
version: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
appdata: {};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
directory: {
|
|
30
|
+
api: string[];
|
|
31
|
+
logic: string[];
|
|
32
|
+
type: string[];
|
|
33
|
+
args: string[];
|
|
34
|
+
provenance: string[];
|
|
35
|
+
uuid: string[];
|
|
36
|
+
leafapp: string[];
|
|
37
|
+
appdata: string[];
|
|
38
|
+
};
|
|
39
|
+
fetch: (n_e: any, crawlkey: any) => any;
|
|
40
|
+
};
|
|
41
|
+
originType: {
|
|
42
|
+
FRONTEND: number;
|
|
43
|
+
BACKEND: number;
|
|
44
|
+
SCREEN: number;
|
|
45
|
+
};
|
|
46
|
+
subsDirectory: {
|
|
47
|
+
readmefirst: {};
|
|
48
|
+
leaflake: {
|
|
49
|
+
bridges: {
|
|
50
|
+
gql: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
appintent: {};
|
|
54
|
+
appmodel: {};
|
|
55
|
+
appview: {};
|
|
56
|
+
osview: {};
|
|
57
|
+
osview2: {};
|
|
58
|
+
dataflowplane: {};
|
|
59
|
+
appcache: {};
|
|
60
|
+
};
|
|
61
|
+
IOAccessPermission: {
|
|
62
|
+
Owner: number;
|
|
63
|
+
Observer: number;
|
|
64
|
+
Contributor: number;
|
|
65
|
+
All: number;
|
|
66
|
+
};
|
|
67
|
+
IOStateGroundZero: {
|
|
68
|
+
dirOfSubjects: {};
|
|
69
|
+
subsCache: {};
|
|
70
|
+
subscriptions: {};
|
|
71
|
+
callbacks: {};
|
|
72
|
+
permissions: {};
|
|
73
|
+
};
|
|
74
|
+
GQLParameters: {
|
|
75
|
+
clientconfig_full: {
|
|
76
|
+
keepGQLConnected: boolean;
|
|
77
|
+
dburi_subs: string | undefined;
|
|
78
|
+
dburi_subs_ws: string | undefined;
|
|
79
|
+
dburi_qm: string | undefined;
|
|
80
|
+
};
|
|
81
|
+
clientconfig_sub: {
|
|
82
|
+
keepGQLConnected: boolean;
|
|
83
|
+
dburi_subs: string | undefined;
|
|
84
|
+
dburi_subs_ws: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
clientconfig_qm: {
|
|
87
|
+
dburi_qm: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
masterquery: string;
|
|
90
|
+
};
|
|
91
|
+
LEAFdictionary: {
|
|
92
|
+
map: typeof import("rxjs").map;
|
|
93
|
+
};
|
|
94
|
+
} | undefined;
|
|
95
|
+
_sessionid?: undefined;
|
|
96
|
+
}): {
|
|
97
|
+
subscriptions: {};
|
|
98
|
+
subs_methods: {};
|
|
99
|
+
qm_methods: {};
|
|
100
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
export namespace LEAFIOmetamodel {
|
|
2
|
+
namespace breezyforest {
|
|
3
|
+
let _version: string;
|
|
4
|
+
let _nickname: string;
|
|
5
|
+
namespace scaffold {
|
|
6
|
+
namespace map {
|
|
7
|
+
namespace leaf {
|
|
8
|
+
namespace logic {
|
|
9
|
+
let type: string;
|
|
10
|
+
let args: {};
|
|
11
|
+
}
|
|
12
|
+
namespace provenance {
|
|
13
|
+
let api: string;
|
|
14
|
+
let uuid: string;
|
|
15
|
+
namespace graph {
|
|
16
|
+
let appuuid: string;
|
|
17
|
+
let name: string;
|
|
18
|
+
let version: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
let appdata: {};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
namespace directory {
|
|
25
|
+
let api_1: string[];
|
|
26
|
+
export { api_1 as api };
|
|
27
|
+
let logic_1: string[];
|
|
28
|
+
export { logic_1 as logic };
|
|
29
|
+
let type_1: string[];
|
|
30
|
+
export { type_1 as type };
|
|
31
|
+
let args_1: string[];
|
|
32
|
+
export { args_1 as args };
|
|
33
|
+
let provenance_1: string[];
|
|
34
|
+
export { provenance_1 as provenance };
|
|
35
|
+
let uuid_1: string[];
|
|
36
|
+
export { uuid_1 as uuid };
|
|
37
|
+
export let leafapp: string[];
|
|
38
|
+
let appdata_1: string[];
|
|
39
|
+
export { appdata_1 as appdata };
|
|
40
|
+
}
|
|
41
|
+
function fetch(n_e: any, crawlkey: any): any;
|
|
42
|
+
}
|
|
43
|
+
namespace originType {
|
|
44
|
+
let FRONTEND: number;
|
|
45
|
+
let BACKEND: number;
|
|
46
|
+
let SCREEN: number;
|
|
47
|
+
}
|
|
48
|
+
namespace subsDirectory {
|
|
49
|
+
let readmefirst: {};
|
|
50
|
+
namespace leaflake {
|
|
51
|
+
namespace bridges {
|
|
52
|
+
let gql: string;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
let appintent: {};
|
|
56
|
+
let appmodel: {};
|
|
57
|
+
let appview: {};
|
|
58
|
+
let osview: {};
|
|
59
|
+
let osview2: {};
|
|
60
|
+
let dataflowplane: {};
|
|
61
|
+
let appcache: {};
|
|
62
|
+
}
|
|
63
|
+
namespace IOAccessPermission {
|
|
64
|
+
let Owner: number;
|
|
65
|
+
let Observer: number;
|
|
66
|
+
let Contributor: number;
|
|
67
|
+
let All: number;
|
|
68
|
+
}
|
|
69
|
+
namespace IOStateGroundZero {
|
|
70
|
+
let dirOfSubjects: {};
|
|
71
|
+
let subsCache: {};
|
|
72
|
+
let subscriptions: {};
|
|
73
|
+
let callbacks: {};
|
|
74
|
+
let permissions: {};
|
|
75
|
+
}
|
|
76
|
+
namespace GQLParameters {
|
|
77
|
+
namespace clientconfig_full {
|
|
78
|
+
export let keepGQLConnected: boolean;
|
|
79
|
+
export { endpoint_subs as dburi_subs };
|
|
80
|
+
export { websocket_subs as dburi_subs_ws };
|
|
81
|
+
export { endpoint_qm as dburi_qm };
|
|
82
|
+
}
|
|
83
|
+
namespace clientconfig_sub {
|
|
84
|
+
let keepGQLConnected_1: boolean;
|
|
85
|
+
export { keepGQLConnected_1 as keepGQLConnected };
|
|
86
|
+
export { endpoint_subs as dburi_subs };
|
|
87
|
+
export { websocket_subs as dburi_subs_ws };
|
|
88
|
+
}
|
|
89
|
+
namespace clientconfig_qm {
|
|
90
|
+
export { endpoint_qm as dburi_qm };
|
|
91
|
+
}
|
|
92
|
+
let masterquery: string;
|
|
93
|
+
}
|
|
94
|
+
namespace LEAFdictionary {
|
|
95
|
+
export { map };
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export function _leafstdlib_dataflow_api(type: any): any;
|
|
100
|
+
export namespace _breezyforeststdlib_hierarchy {
|
|
101
|
+
let io: string[];
|
|
102
|
+
let elements: string[];
|
|
103
|
+
let abstraction: string[];
|
|
104
|
+
let dataflow: string[];
|
|
105
|
+
let arcane: string[];
|
|
106
|
+
}
|
|
107
|
+
export namespace _edge_handle_dict {
|
|
108
|
+
namespace leaflambdaedge {
|
|
109
|
+
let sourceHandle: string;
|
|
110
|
+
let targetHandle: string;
|
|
111
|
+
}
|
|
112
|
+
namespace leafanchoredge {
|
|
113
|
+
let sourceHandle_1: string;
|
|
114
|
+
export { sourceHandle_1 as sourceHandle };
|
|
115
|
+
let targetHandle_1: string;
|
|
116
|
+
export { targetHandle_1 as targetHandle };
|
|
117
|
+
}
|
|
118
|
+
namespace leafdataedge {
|
|
119
|
+
let sourceHandle_2: string;
|
|
120
|
+
export { sourceHandle_2 as sourceHandle };
|
|
121
|
+
let targetHandle_2: string;
|
|
122
|
+
export { targetHandle_2 as targetHandle };
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
export namespace _edge_style_dict {
|
|
126
|
+
export namespace leaflambdaedge_1 {
|
|
127
|
+
let stroke: string;
|
|
128
|
+
let fillOpacity: number;
|
|
129
|
+
}
|
|
130
|
+
export { leaflambdaedge_1 as leaflambdaedge };
|
|
131
|
+
export namespace leafanchoredge_1 {
|
|
132
|
+
let stroke_1: string;
|
|
133
|
+
export { stroke_1 as stroke };
|
|
134
|
+
let fillOpacity_1: number;
|
|
135
|
+
export { fillOpacity_1 as fillOpacity };
|
|
136
|
+
}
|
|
137
|
+
export { leafanchoredge_1 as leafanchoredge };
|
|
138
|
+
export namespace leafdataedge_1 {
|
|
139
|
+
let stroke_2: string;
|
|
140
|
+
export { stroke_2 as stroke };
|
|
141
|
+
let fillOpacity_2: number;
|
|
142
|
+
export { fillOpacity_2 as fillOpacity };
|
|
143
|
+
}
|
|
144
|
+
export { leafdataedge_1 as leafdataedge };
|
|
145
|
+
}
|
|
146
|
+
export namespace _breezyforeststdlib_name {
|
|
147
|
+
let outport: string;
|
|
148
|
+
let inport: string;
|
|
149
|
+
let screenio: string;
|
|
150
|
+
let memoryio: string;
|
|
151
|
+
let spade: string;
|
|
152
|
+
let heart: string;
|
|
153
|
+
let diamond: string;
|
|
154
|
+
let club: string;
|
|
155
|
+
let element: string;
|
|
156
|
+
let anchor: string;
|
|
157
|
+
let leafgraph: string;
|
|
158
|
+
let lambda: string;
|
|
159
|
+
let spelldef: string;
|
|
160
|
+
let spell: string;
|
|
161
|
+
let loopyspell: string;
|
|
162
|
+
let label: string;
|
|
163
|
+
let delabel: string;
|
|
164
|
+
let bottle: string;
|
|
165
|
+
let unbottle: string;
|
|
166
|
+
let crate: string;
|
|
167
|
+
let config: string;
|
|
168
|
+
let chronos: string;
|
|
169
|
+
let async: string;
|
|
170
|
+
let sync: string;
|
|
171
|
+
let mix: string;
|
|
172
|
+
let gate: string;
|
|
173
|
+
let leaflisp: string;
|
|
174
|
+
}
|
|
175
|
+
declare const endpoint_subs: string | undefined;
|
|
176
|
+
declare const websocket_subs: string | undefined;
|
|
177
|
+
declare const endpoint_qm: string | undefined;
|
|
178
|
+
import { map as map_1 } from "rxjs/operators";
|
|
179
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getLEAFNodeCoreLogic(type: any, scope: any, lambdactrl: any): any;
|