@coasys/ad4m 0.10.1-rc9-dev → 0.10.1-release-candidate-1
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/lib/index.cjs +1113 -429
- package/lib/index.js +1114 -430
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -0
- package/lib/src/neighbourhood/NeighbourhoodClient.d.ts +2 -2
- package/lib/src/neighbourhood/NeighbourhoodClient.js +12 -8
- package/lib/src/neighbourhood/NeighbourhoodProxy.d.ts +2 -2
- package/lib/src/neighbourhood/NeighbourhoodProxy.js +4 -4
- package/lib/src/neighbourhood/NeighbourhoodResolver.d.ts +2 -2
- package/lib/src/neighbourhood/NeighbourhoodResolver.js +6 -4
- package/lib/src/runtime/RuntimeClient.d.ts +5 -1
- package/lib/src/runtime/RuntimeClient.js +48 -0
- package/lib/src/runtime/RuntimeResolver.d.ts +24 -0
- package/lib/src/runtime/RuntimeResolver.js +117 -0
- package/lib/src/schema.gql +6 -2
- package/lib/src/typeDefs.js +6 -2
- package/package.json +2 -1
- package/src/index.ts +1 -0
- package/src/neighbourhood/NeighbourhoodClient.ts +12 -8
- package/src/neighbourhood/NeighbourhoodProxy.ts +4 -4
- package/src/neighbourhood/NeighbourhoodResolver.ts +2 -2
- package/src/runtime/RuntimeClient.ts +52 -1
- package/src/runtime/RuntimeResolver.ts +77 -0
- package/yarn-error.log +0 -90
|
@@ -138,6 +138,60 @@ export class TriggeredNotification {
|
|
|
138
138
|
triggerMatch: string;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
+
@ObjectType()
|
|
142
|
+
export class ImportStats {
|
|
143
|
+
@Field()
|
|
144
|
+
total: number;
|
|
145
|
+
|
|
146
|
+
@Field()
|
|
147
|
+
imported: number;
|
|
148
|
+
|
|
149
|
+
@Field()
|
|
150
|
+
failed: number;
|
|
151
|
+
|
|
152
|
+
@Field()
|
|
153
|
+
omitted: number;
|
|
154
|
+
|
|
155
|
+
@Field(type => [String])
|
|
156
|
+
errors: string[];
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@ObjectType()
|
|
160
|
+
export class ImportResult {
|
|
161
|
+
@Field()
|
|
162
|
+
perspectives: ImportStats;
|
|
163
|
+
|
|
164
|
+
@Field()
|
|
165
|
+
links: ImportStats;
|
|
166
|
+
|
|
167
|
+
@Field()
|
|
168
|
+
expressions: ImportStats;
|
|
169
|
+
|
|
170
|
+
@Field()
|
|
171
|
+
perspectiveDiffs: ImportStats;
|
|
172
|
+
|
|
173
|
+
@Field()
|
|
174
|
+
notifications: ImportStats;
|
|
175
|
+
|
|
176
|
+
@Field()
|
|
177
|
+
models: ImportStats;
|
|
178
|
+
|
|
179
|
+
@Field()
|
|
180
|
+
defaultModels: ImportStats;
|
|
181
|
+
|
|
182
|
+
@Field()
|
|
183
|
+
tasks: ImportStats;
|
|
184
|
+
|
|
185
|
+
@Field()
|
|
186
|
+
friends: ImportStats;
|
|
187
|
+
|
|
188
|
+
@Field()
|
|
189
|
+
trustedAgents: ImportStats;
|
|
190
|
+
|
|
191
|
+
@Field()
|
|
192
|
+
knownLinkLanguages: ImportStats;
|
|
193
|
+
}
|
|
194
|
+
|
|
141
195
|
/**
|
|
142
196
|
* Resolver classes are used here to define the GraphQL schema
|
|
143
197
|
* (through the type-graphql annotations)
|
|
@@ -336,5 +390,28 @@ export default class RuntimeResolver {
|
|
|
336
390
|
}
|
|
337
391
|
}
|
|
338
392
|
}
|
|
393
|
+
|
|
394
|
+
@Mutation()
|
|
395
|
+
runtimeExportDb(@Arg("filePath", type => String) filePath: string): boolean {
|
|
396
|
+
return true
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
@Mutation()
|
|
400
|
+
runtimeImportDb(@Arg("filePath", type => String) filePath: string): boolean {
|
|
401
|
+
return true
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@Mutation()
|
|
405
|
+
runtimeExportPerspective(
|
|
406
|
+
@Arg("perspectiveUuid", type => String) perspectiveUuid: string,
|
|
407
|
+
@Arg("filePath", type => String) filePath: string
|
|
408
|
+
): boolean {
|
|
409
|
+
return true
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@Mutation()
|
|
413
|
+
runtimeImportPerspective(@Arg("filePath", type => String) filePath: string): boolean {
|
|
414
|
+
return true
|
|
415
|
+
}
|
|
339
416
|
}
|
|
340
417
|
|
package/yarn-error.log
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
Arguments:
|
|
2
|
-
/Users/nicolasluck/.nvm/versions/node/v18.16.1/bin/node /Users/nicolasluck/.nvm/versions/node/v18.16.1/bin/yarn install
|
|
3
|
-
|
|
4
|
-
PATH:
|
|
5
|
-
/Users/nicolasluck/Library/pnpm:/Users/nicolasluck/.nvm/versions/node/v18.16.1/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Users/nicolasluck/.cargo/bin
|
|
6
|
-
|
|
7
|
-
Yarn version:
|
|
8
|
-
1.22.19
|
|
9
|
-
|
|
10
|
-
Node version:
|
|
11
|
-
18.16.1
|
|
12
|
-
|
|
13
|
-
Platform:
|
|
14
|
-
darwin arm64
|
|
15
|
-
|
|
16
|
-
Trace:
|
|
17
|
-
Error: ENOENT: no such file or directory, copyfile '/Users/nicolasluck/Library/Caches/Yarn/v6/npm-has-flag-3.0.0-b5d454dc2199ae225699f3467e5a07f3b955bafd-integrity/node_modules/has-flag/index.js' -> '/Users/nicolasluck/Coasys/code/ad4m/node_modules/@changesets/cli/node_modules/has-flag/index.js'
|
|
18
|
-
|
|
19
|
-
npm manifest:
|
|
20
|
-
{
|
|
21
|
-
"name": "@coasys/ad4m",
|
|
22
|
-
"description": "*The Agent-Centric Distributed Application Meta-ontology* or just: *Agent-Centric DApp Meta-ontology* * A new meta-ontology for interoperable, decentralized application design * A spanning-layer to enable seamless integration between Holochain DNAs, blockchains, linked-data structures/ontologies and centralized back-ends * The basis for turning distinct, monolithic and siloed apps into a global, open and interoperable sense-making network",
|
|
23
|
-
"main": "lib/index.cjs",
|
|
24
|
-
"module": "lib/index.js",
|
|
25
|
-
"types": "lib/src/index.d.ts",
|
|
26
|
-
"type": "module",
|
|
27
|
-
"private": true,
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "patch-package && tsc && pnpm run buildSchema && pnpm run bundle",
|
|
30
|
-
"buildSchema": "node --es-module-specifier-resolution=node lib/src/buildSchema.js",
|
|
31
|
-
"bundle": "rollup -c rollup.config.js",
|
|
32
|
-
"test": "jest --forceExit"
|
|
33
|
-
},
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/perspect3vism/ad4m.git"
|
|
37
|
-
},
|
|
38
|
-
"author": {
|
|
39
|
-
"name": "Nicolas Luck",
|
|
40
|
-
"email": "nicolas@lucksus.eu"
|
|
41
|
-
},
|
|
42
|
-
"contributors": [
|
|
43
|
-
{
|
|
44
|
-
"name": "Joshua Parkin",
|
|
45
|
-
"email": "joshuadparkin@gmail.com"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"license": "CAL-1.0",
|
|
49
|
-
"bugs": {
|
|
50
|
-
"url": "https://github.com/perspect3vism/ad4m/issues"
|
|
51
|
-
},
|
|
52
|
-
"homepage": "https://ad4m.dev",
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@apollo/client": "3.7.10",
|
|
55
|
-
"@holochain/client": "0.16.0",
|
|
56
|
-
"@types/jest": "^26.0.14",
|
|
57
|
-
"class-validator": "^0.13.1",
|
|
58
|
-
"express": "4.18.2",
|
|
59
|
-
"graphql": "15.7.2",
|
|
60
|
-
"reflect-metadata": "^0.1.13",
|
|
61
|
-
"type-graphql": "1.1.1"
|
|
62
|
-
},
|
|
63
|
-
"devDependencies": {
|
|
64
|
-
"@apollo/server": "^4.9.4",
|
|
65
|
-
"@rollup/plugin-alias": "^3.1.5",
|
|
66
|
-
"@rollup/plugin-commonjs": "^20.0.0",
|
|
67
|
-
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
68
|
-
"concat-md": "^0.5.0",
|
|
69
|
-
"cross-fetch": "^3.1.4",
|
|
70
|
-
"graphql-ws": "5.12.0",
|
|
71
|
-
"honkit": "^4.0.0",
|
|
72
|
-
"jest": "^26.6.0",
|
|
73
|
-
"patch-package": "^8.0.0",
|
|
74
|
-
"rollup": "^2.56.3",
|
|
75
|
-
"ts-jest": "^26.5.6",
|
|
76
|
-
"typescript": "^4.6.2",
|
|
77
|
-
"ws": "8.13.0",
|
|
78
|
-
"@types/node": "*",
|
|
79
|
-
"@types/yargs": "*"
|
|
80
|
-
},
|
|
81
|
-
"patchedDependencies": {},
|
|
82
|
-
"version": "0.9.1-prerelease"
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
yarn manifest:
|
|
87
|
-
No manifest
|
|
88
|
-
|
|
89
|
-
Lockfile:
|
|
90
|
-
No lockfile
|