@xyo-network/node-view 4.0.3 → 4.1.0
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/dist/neutral/index.d.ts +38 -0
- package/package.json +14 -15
- /package/{dist/types → build/neutral}/ViewNode.d.ts +0 -0
- /package/{dist/types → build/neutral}/ViewNode.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { ModuleIdentifier, AnyConfigSchema, ModuleInstance, ModuleFilterOptions } from '@xyo-network/module-model';
|
|
3
|
+
import { MemoryNode } from '@xyo-network/node-memory';
|
|
4
|
+
import { NodeConfig, NodeParams, NodeModuleEventData, AttachableNodeInstance } from '@xyo-network/node-model';
|
|
5
|
+
import { Schema } from '@xyo-network/payload-model';
|
|
6
|
+
|
|
7
|
+
declare const ViewNodeConfigSchema: "network.xyo.node.view.config";
|
|
8
|
+
type ViewNodeConfigSchema = typeof ViewNodeConfigSchema;
|
|
9
|
+
type ViewNodeConfig = NodeConfig<{
|
|
10
|
+
ids: ModuleIdentifier[];
|
|
11
|
+
source: ModuleIdentifier;
|
|
12
|
+
}, ViewNodeConfigSchema>;
|
|
13
|
+
type ViewNodeParams = NodeParams<AnyConfigSchema<ViewNodeConfig>>;
|
|
14
|
+
declare class ViewNode<TParams extends ViewNodeParams = ViewNodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends MemoryNode<TParams, TEventData> implements AttachableNodeInstance<TParams, TEventData> {
|
|
15
|
+
static readonly configSchemas: Schema[];
|
|
16
|
+
static readonly defaultConfigSchema: Schema;
|
|
17
|
+
static readonly labels: {
|
|
18
|
+
ModuleLimitationLabelName: string;
|
|
19
|
+
};
|
|
20
|
+
private _buildMutex;
|
|
21
|
+
private _built;
|
|
22
|
+
private _limitedResolver;
|
|
23
|
+
get ids(): string[] | undefined;
|
|
24
|
+
get queries(): Schema[];
|
|
25
|
+
get source(): string | undefined;
|
|
26
|
+
/** @deprecated do not pass undefined. If trying to get all, pass '*' */
|
|
27
|
+
resolve(): Promise<ModuleInstance[]>;
|
|
28
|
+
resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
|
|
29
|
+
resolve<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
|
|
30
|
+
protected attachUsingAddress(address: Address): Promise<Lowercase<string>>;
|
|
31
|
+
protected attachedPublicModules(): Promise<ModuleInstance[]>;
|
|
32
|
+
protected detachUsingAddress(address: Address): Promise<Lowercase<string>>;
|
|
33
|
+
protected startHandler(): Promise<void>;
|
|
34
|
+
private build;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { ViewNode, ViewNodeConfigSchema };
|
|
38
|
+
export type { ViewNodeConfig, ViewNodeParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/node-view",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,29 +21,28 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.13.
|
|
33
|
-
"@xylabs/
|
|
34
|
-
"@
|
|
35
|
-
"@xyo-network/module-
|
|
36
|
-
"@xyo-network/
|
|
37
|
-
"@xyo-network/node-
|
|
38
|
-
"@xyo-network/
|
|
39
|
-
"@xyo-network/payload-model": "^4.0.3",
|
|
32
|
+
"@xylabs/assert": "^4.13.15",
|
|
33
|
+
"@xylabs/hex": "^4.13.15",
|
|
34
|
+
"@xyo-network/module-model": "^4.1.0",
|
|
35
|
+
"@xyo-network/module-resolver": "^4.1.0",
|
|
36
|
+
"@xyo-network/node-memory": "^4.1.0",
|
|
37
|
+
"@xyo-network/node-model": "^4.1.0",
|
|
38
|
+
"@xyo-network/payload-model": "^4.1.0",
|
|
40
39
|
"async-mutex": "^0.5.0"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
43
|
-
"@xylabs/events": "^4.13.
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
45
|
-
"@xylabs/tsconfig": "^
|
|
46
|
-
"@xyo-network/module-events": "^4.0
|
|
42
|
+
"@xylabs/events": "^4.13.15",
|
|
43
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
44
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
45
|
+
"@xyo-network/module-events": "^4.1.0",
|
|
47
46
|
"typescript": "^5.8.3"
|
|
48
47
|
},
|
|
49
48
|
"publishConfig": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|