@xyo-network/node-view 3.8.0 → 3.8.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.
@@ -1,2 +1,36 @@
1
- export * from './ViewNode.ts';
2
- //# sourceMappingURL=index.d.ts.map
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 {
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[];
24
+ get queries(): Schema[];
25
+ get source(): string;
26
+ resolve(): Promise<ModuleInstance[]>;
27
+ resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
28
+ resolve<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
29
+ protected attachUsingAddress(address: Address): Promise<Lowercase<string>>;
30
+ protected attachedPublicModules(): Promise<ModuleInstance[]>;
31
+ protected detachUsingAddress(address: Address): Promise<Lowercase<string>>;
32
+ protected startHandler(): Promise<boolean>;
33
+ private build;
34
+ }
35
+
36
+ export { ViewNode, type ViewNodeConfig, ViewNodeConfigSchema, type ViewNodeParams };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/node-view",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,17 +31,17 @@
31
31
  "dependencies": {
32
32
  "@xylabs/assert": "^4.5.1",
33
33
  "@xylabs/hex": "^4.5.1",
34
- "@xyo-network/module-events": "^3.8.0",
35
- "@xyo-network/module-model": "^3.8.0",
36
- "@xyo-network/module-resolver": "^3.8.0",
37
- "@xyo-network/node-memory": "^3.8.0",
38
- "@xyo-network/node-model": "^3.8.0",
39
- "@xyo-network/payload-model": "^3.8.0",
34
+ "@xyo-network/module-events": "^3.8.1",
35
+ "@xyo-network/module-model": "^3.8.1",
36
+ "@xyo-network/module-resolver": "^3.8.1",
37
+ "@xyo-network/node-memory": "^3.8.1",
38
+ "@xyo-network/node-model": "^3.8.1",
39
+ "@xyo-network/payload-model": "^3.8.1",
40
40
  "async-mutex": "^0.5.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
44
- "@xylabs/tsconfig": "^4.2.6",
43
+ "@xylabs/ts-scripts-yarn3": "^5.0.22",
44
+ "@xylabs/tsconfig": "^5.0.22",
45
45
  "typescript": "^5.7.3"
46
46
  },
47
47
  "publishConfig": {
@@ -1,35 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { AnyConfigSchema, ModuleFilterOptions, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
3
- import { MemoryNode } from '@xyo-network/node-memory';
4
- import type { AttachableNodeInstance, NodeConfig, NodeModuleEventData, NodeParams } from '@xyo-network/node-model';
5
- import type { Schema } from '@xyo-network/payload-model';
6
- export declare const ViewNodeConfigSchema: "network.xyo.node.view.config";
7
- export type ViewNodeConfigSchema = typeof ViewNodeConfigSchema;
8
- export type ViewNodeConfig = NodeConfig<{
9
- ids: ModuleIdentifier[];
10
- source: ModuleIdentifier;
11
- }, ViewNodeConfigSchema>;
12
- export type ViewNodeParams = NodeParams<AnyConfigSchema<ViewNodeConfig>>;
13
- export declare class ViewNode<TParams extends ViewNodeParams = ViewNodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends MemoryNode<TParams, TEventData> implements AttachableNodeInstance {
14
- static readonly configSchemas: Schema[];
15
- static readonly defaultConfigSchema: Schema;
16
- static readonly labels: {
17
- ModuleLimitationLabelName: string;
18
- };
19
- private _buildMutex;
20
- private _built;
21
- private _limitedResolver;
22
- get ids(): string[];
23
- get queries(): Schema[];
24
- get source(): string;
25
- /** @deprecated do not pass undefined. If trying to get all, pass '*' */
26
- resolve(): Promise<ModuleInstance[]>;
27
- resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
28
- resolve<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
29
- protected attachUsingAddress(address: Address): Promise<Lowercase<string>>;
30
- protected attachedPublicModules(): Promise<ModuleInstance[]>;
31
- protected detachUsingAddress(address: Address): Promise<Lowercase<string>>;
32
- protected startHandler(): Promise<boolean>;
33
- private build;
34
- }
35
- //# sourceMappingURL=ViewNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ViewNode.d.ts","sourceRoot":"","sources":["../../src/ViewNode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAGlC,OAAO,EAAE,UAAU,EAAoB,MAAM,0BAA0B,CAAA;AACvE,O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