@xyo-network/node-model 2.93.3 → 2.93.5
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/browser/Node.d.cts +2 -2
- package/dist/browser/Node.d.cts.map +1 -1
- package/dist/browser/Node.d.mts +2 -2
- package/dist/browser/Node.d.mts.map +1 -1
- package/dist/browser/Node.d.ts +2 -2
- package/dist/browser/Node.d.ts.map +1 -1
- package/dist/browser/attachable/AttachableInstance.d.cts +10 -0
- package/dist/browser/attachable/AttachableInstance.d.cts.map +1 -0
- package/dist/browser/attachable/AttachableInstance.d.mts +10 -0
- package/dist/browser/attachable/AttachableInstance.d.mts.map +1 -0
- package/dist/browser/attachable/AttachableInstance.d.ts +10 -0
- package/dist/browser/attachable/AttachableInstance.d.ts.map +1 -0
- package/dist/browser/attachable/asAttachableInstance.d.cts +44 -0
- package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -0
- package/dist/browser/attachable/asAttachableInstance.d.mts +44 -0
- package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -0
- package/dist/browser/attachable/asAttachableInstance.d.ts +44 -0
- package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -0
- package/dist/browser/attachable/index.d.cts +4 -0
- package/dist/browser/attachable/index.d.cts.map +1 -0
- package/dist/browser/attachable/index.d.mts +4 -0
- package/dist/browser/attachable/index.d.mts.map +1 -0
- package/dist/browser/attachable/index.d.ts +4 -0
- package/dist/browser/attachable/index.d.ts.map +1 -0
- package/dist/browser/attachable/isAttachableInstance.d.cts +5 -0
- package/dist/browser/attachable/isAttachableInstance.d.cts.map +1 -0
- package/dist/browser/attachable/isAttachableInstance.d.mts +5 -0
- package/dist/browser/attachable/isAttachableInstance.d.mts.map +1 -0
- package/dist/browser/attachable/isAttachableInstance.d.ts +5 -0
- package/dist/browser/attachable/isAttachableInstance.d.ts.map +1 -0
- package/dist/browser/index.cjs +37 -4
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +1 -0
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +1 -0
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +39 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +20 -0
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +20 -0
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +20 -0
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Node.d.cts +2 -2
- package/dist/node/Node.d.cts.map +1 -1
- package/dist/node/Node.d.mts +2 -2
- package/dist/node/Node.d.mts.map +1 -1
- package/dist/node/Node.d.ts +2 -2
- package/dist/node/Node.d.ts.map +1 -1
- package/dist/node/attachable/AttachableInstance.d.cts +10 -0
- package/dist/node/attachable/AttachableInstance.d.cts.map +1 -0
- package/dist/node/attachable/AttachableInstance.d.mts +10 -0
- package/dist/node/attachable/AttachableInstance.d.mts.map +1 -0
- package/dist/node/attachable/AttachableInstance.d.ts +10 -0
- package/dist/node/attachable/AttachableInstance.d.ts.map +1 -0
- package/dist/node/attachable/asAttachableInstance.d.cts +44 -0
- package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -0
- package/dist/node/attachable/asAttachableInstance.d.mts +44 -0
- package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -0
- package/dist/node/attachable/asAttachableInstance.d.ts +44 -0
- package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -0
- package/dist/node/attachable/index.d.cts +4 -0
- package/dist/node/attachable/index.d.cts.map +1 -0
- package/dist/node/attachable/index.d.mts +4 -0
- package/dist/node/attachable/index.d.mts.map +1 -0
- package/dist/node/attachable/index.d.ts +4 -0
- package/dist/node/attachable/index.d.ts.map +1 -0
- package/dist/node/attachable/isAttachableInstance.d.cts +5 -0
- package/dist/node/attachable/isAttachableInstance.d.cts.map +1 -0
- package/dist/node/attachable/isAttachableInstance.d.mts +5 -0
- package/dist/node/attachable/isAttachableInstance.d.mts.map +1 -0
- package/dist/node/attachable/isAttachableInstance.d.ts +5 -0
- package/dist/node/attachable/isAttachableInstance.d.ts.map +1 -0
- package/dist/node/index.cjs +40 -4
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -0
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +1 -0
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +38 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +20 -0
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +20 -0
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +20 -0
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/Node.ts +2 -2
- package/src/attachable/AttachableInstance.ts +14 -0
- package/src/attachable/asAttachableInstance.ts +5 -0
- package/src/attachable/index.ts +3 -0
- package/src/attachable/isAttachableInstance.ts +15 -0
- package/src/index.ts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance'\n\nexport const asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isNodeInstance } from '../typeChecks'\nimport { AttachableNodeInstance } from './AttachableInstance'\n\nexport const requiredAttachableNodeInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableNodeInstance>()\n\nexport const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance> = factory.create(requiredAttachableNodeInstanceFunctions, [\n isNodeInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule } from './Node'\nimport { NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema } from './Queries'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachQuerySchema = 'network.xyo.query.node.attach'\nexport const NodeAttachQuerySchema: NodeAttachQuerySchema = 'network.xyo.query.node.attach'\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n nameOrAddress: string\n schema: NodeAttachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\nexport const NodeAttachedQuerySchema: NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeDetachQuerySchema = 'network.xyo.query.node.detach'\nexport const NodeDetachQuerySchema: NodeDetachQuerySchema = 'network.xyo.query.node.detach'\n\nexport type NodeDetachQuery = Query<{\n nameOrAddress: string\n schema: NodeDetachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\nexport const NodeRegisteredQuerySchema: NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule, NodeModuleEventData } from '../Node'\nimport { NodeParams } from '../Params'\n\nexport interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>\n extends NodeModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n NodeInstance<TParams, TEventData> {}\n\nexport type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>\n\nexport class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {}\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config'\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n schema: TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema\n },\n TConfig\n >,\n TSchema\n>\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACAhC,SAASC,uBAAmD;AAC5D,SAASC,kCAAkC;;;ACD3C,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;;;ACE3E,IAAMC,wBAA+C;;;ACArD,IAAMC,0BAAmD;;;ACAzD,IAAMC,wBAA+C;;;ACArD,IAAMC,4BAAuD;;;AJGpE,IAAMC,kBAAkB,IAAIC,kBAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,gBAAAA;AAEnB,IAAMC,eAAeF,cAAcN,OAAO;EAACS;EAAyBC;EAAuBC;EAAuBC;CAA0B;AAE5I,IAAMC,eAAeC,gBAAgBd,OAAOQ,YAAAA;AAC5C,IAAMO,iBAAiBD,gBAAgBd,OAAOD,cAAAA;AAC9C,IAAMiB,iBAAiBC,YAAYjB,OAAOQ,YAAAA;AAC1C,IAAMU,mBAAmBD,YAAYjB,OAAOD,cAAAA;;;ADnB5C,IAAMoB,0CAA2D,CAAC;AAGzE,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,2BAA8DF,QAAQG,OAAOJ,yCAAyC;EACjIK;EACAC;CACD;;;ADVM,IAAMC,2BAA2BC,iBAAgBC,OAAOC,wBAAAA;;;AOJ/D,SAASC,mBAAAA,wBAAkC;AAapC,IAAMC,kCAAN,cAAyGC,iBAAAA;EAbhH,OAagHA;;;AAAoB;;;ACT7H,IAAMC,mBAAmB;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","NodeAttachQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance","requiredAttachableNodeInstanceFunctions","factory","IsObjectFactory","isAttachableNodeInstance","create","isNodeInstance","isAttachableModuleInstance","asAttachableNodeInstance","AsObjectFactory","create","isAttachableNodeInstance","IsObjectFactory","IsAttachableNodeInstanceFactory","IsObjectFactory","NodeConfigSchema"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeInstance, NodeModule } from './Node';
|
|
2
2
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
addToResolvers?: boolean | undefined;
|
|
4
5
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
5
6
|
archivist?: string | undefined;
|
|
6
7
|
schema: "network.xyo.node.config";
|
|
@@ -10,9 +11,11 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
10
11
|
schema: string;
|
|
11
12
|
};
|
|
12
13
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
14
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
13
15
|
}, import("./Node").NodeModuleEventData>>;
|
|
14
16
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
17
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
|
+
addToResolvers?: boolean | undefined;
|
|
16
19
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
17
20
|
archivist?: string | undefined;
|
|
18
21
|
schema: "network.xyo.node.config";
|
|
@@ -22,10 +25,12 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
22
25
|
schema: string;
|
|
23
26
|
};
|
|
24
27
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
28
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
25
29
|
}, import("./Node").NodeModuleEventData>>;
|
|
26
30
|
export declare const asNodeModule: {
|
|
27
31
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
28
32
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
|
+
addToResolvers?: boolean | undefined;
|
|
29
34
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
30
35
|
archivist?: string | undefined;
|
|
31
36
|
schema: "network.xyo.node.config";
|
|
@@ -35,9 +40,11 @@ export declare const asNodeModule: {
|
|
|
35
40
|
schema: string;
|
|
36
41
|
};
|
|
37
42
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
38
44
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
39
45
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
40
46
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
|
+
addToResolvers?: boolean | undefined;
|
|
41
48
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
42
49
|
archivist?: string | undefined;
|
|
43
50
|
schema: "network.xyo.node.config";
|
|
@@ -47,8 +54,10 @@ export declare const asNodeModule: {
|
|
|
47
54
|
schema: string;
|
|
48
55
|
};
|
|
49
56
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
50
58
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
51
59
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
|
+
addToResolvers?: boolean | undefined;
|
|
52
61
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
53
62
|
archivist?: string | undefined;
|
|
54
63
|
schema: "network.xyo.node.config";
|
|
@@ -58,11 +67,13 @@ export declare const asNodeModule: {
|
|
|
58
67
|
schema: string;
|
|
59
68
|
};
|
|
60
69
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
70
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
61
71
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
62
72
|
};
|
|
63
73
|
export declare const asNodeInstance: {
|
|
64
74
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
65
75
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
|
+
addToResolvers?: boolean | undefined;
|
|
66
77
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
67
78
|
archivist?: string | undefined;
|
|
68
79
|
schema: "network.xyo.node.config";
|
|
@@ -72,9 +83,11 @@ export declare const asNodeInstance: {
|
|
|
72
83
|
schema: string;
|
|
73
84
|
};
|
|
74
85
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
86
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
75
87
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
76
88
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
77
89
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
|
+
addToResolvers?: boolean | undefined;
|
|
78
91
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
79
92
|
archivist?: string | undefined;
|
|
80
93
|
schema: "network.xyo.node.config";
|
|
@@ -84,8 +97,10 @@ export declare const asNodeInstance: {
|
|
|
84
97
|
schema: string;
|
|
85
98
|
};
|
|
86
99
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
87
101
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
88
102
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
|
+
addToResolvers?: boolean | undefined;
|
|
89
104
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
90
105
|
archivist?: string | undefined;
|
|
91
106
|
schema: "network.xyo.node.config";
|
|
@@ -95,10 +110,12 @@ export declare const asNodeInstance: {
|
|
|
95
110
|
schema: string;
|
|
96
111
|
};
|
|
97
112
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
113
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
98
114
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
99
115
|
};
|
|
100
116
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
101
117
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
|
+
addToResolvers?: boolean | undefined;
|
|
102
119
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
103
120
|
archivist?: string | undefined;
|
|
104
121
|
schema: "network.xyo.node.config";
|
|
@@ -108,9 +125,11 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
108
125
|
schema: string;
|
|
109
126
|
};
|
|
110
127
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
128
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
111
129
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
112
130
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
113
131
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
|
+
addToResolvers?: boolean | undefined;
|
|
114
133
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
115
134
|
archivist?: string | undefined;
|
|
116
135
|
schema: "network.xyo.node.config";
|
|
@@ -120,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
|
|
|
120
139
|
schema: string;
|
|
121
140
|
};
|
|
122
141
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
142
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
123
143
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
124
144
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;gEAAqC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeInstance, NodeModule } from './Node';
|
|
2
2
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
addToResolvers?: boolean | undefined;
|
|
4
5
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
5
6
|
archivist?: string | undefined;
|
|
6
7
|
schema: "network.xyo.node.config";
|
|
@@ -10,9 +11,11 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
10
11
|
schema: string;
|
|
11
12
|
};
|
|
12
13
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
14
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
13
15
|
}, import("./Node").NodeModuleEventData>>;
|
|
14
16
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
17
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
|
+
addToResolvers?: boolean | undefined;
|
|
16
19
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
17
20
|
archivist?: string | undefined;
|
|
18
21
|
schema: "network.xyo.node.config";
|
|
@@ -22,10 +25,12 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
22
25
|
schema: string;
|
|
23
26
|
};
|
|
24
27
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
28
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
25
29
|
}, import("./Node").NodeModuleEventData>>;
|
|
26
30
|
export declare const asNodeModule: {
|
|
27
31
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
28
32
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
|
+
addToResolvers?: boolean | undefined;
|
|
29
34
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
30
35
|
archivist?: string | undefined;
|
|
31
36
|
schema: "network.xyo.node.config";
|
|
@@ -35,9 +40,11 @@ export declare const asNodeModule: {
|
|
|
35
40
|
schema: string;
|
|
36
41
|
};
|
|
37
42
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
38
44
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
39
45
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
40
46
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
|
+
addToResolvers?: boolean | undefined;
|
|
41
48
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
42
49
|
archivist?: string | undefined;
|
|
43
50
|
schema: "network.xyo.node.config";
|
|
@@ -47,8 +54,10 @@ export declare const asNodeModule: {
|
|
|
47
54
|
schema: string;
|
|
48
55
|
};
|
|
49
56
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
50
58
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
51
59
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
|
+
addToResolvers?: boolean | undefined;
|
|
52
61
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
53
62
|
archivist?: string | undefined;
|
|
54
63
|
schema: "network.xyo.node.config";
|
|
@@ -58,11 +67,13 @@ export declare const asNodeModule: {
|
|
|
58
67
|
schema: string;
|
|
59
68
|
};
|
|
60
69
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
70
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
61
71
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
62
72
|
};
|
|
63
73
|
export declare const asNodeInstance: {
|
|
64
74
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
65
75
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
|
+
addToResolvers?: boolean | undefined;
|
|
66
77
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
67
78
|
archivist?: string | undefined;
|
|
68
79
|
schema: "network.xyo.node.config";
|
|
@@ -72,9 +83,11 @@ export declare const asNodeInstance: {
|
|
|
72
83
|
schema: string;
|
|
73
84
|
};
|
|
74
85
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
86
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
75
87
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
76
88
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
77
89
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
|
+
addToResolvers?: boolean | undefined;
|
|
78
91
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
79
92
|
archivist?: string | undefined;
|
|
80
93
|
schema: "network.xyo.node.config";
|
|
@@ -84,8 +97,10 @@ export declare const asNodeInstance: {
|
|
|
84
97
|
schema: string;
|
|
85
98
|
};
|
|
86
99
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
87
101
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
88
102
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
|
+
addToResolvers?: boolean | undefined;
|
|
89
104
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
90
105
|
archivist?: string | undefined;
|
|
91
106
|
schema: "network.xyo.node.config";
|
|
@@ -95,10 +110,12 @@ export declare const asNodeInstance: {
|
|
|
95
110
|
schema: string;
|
|
96
111
|
};
|
|
97
112
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
113
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
98
114
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
99
115
|
};
|
|
100
116
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
101
117
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
|
+
addToResolvers?: boolean | undefined;
|
|
102
119
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
103
120
|
archivist?: string | undefined;
|
|
104
121
|
schema: "network.xyo.node.config";
|
|
@@ -108,9 +125,11 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
108
125
|
schema: string;
|
|
109
126
|
};
|
|
110
127
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
128
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
111
129
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
112
130
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
113
131
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
|
+
addToResolvers?: boolean | undefined;
|
|
114
133
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
115
134
|
archivist?: string | undefined;
|
|
116
135
|
schema: "network.xyo.node.config";
|
|
@@ -120,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
|
|
|
120
139
|
schema: string;
|
|
121
140
|
};
|
|
122
141
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
142
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
123
143
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
124
144
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;gEAAqC,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NodeInstance, NodeModule } from './Node';
|
|
2
2
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
addToResolvers?: boolean | undefined;
|
|
4
5
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
5
6
|
archivist?: string | undefined;
|
|
6
7
|
schema: "network.xyo.node.config";
|
|
@@ -10,9 +11,11 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
10
11
|
schema: string;
|
|
11
12
|
};
|
|
12
13
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
14
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
13
15
|
}, import("./Node").NodeModuleEventData>>;
|
|
14
16
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
17
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
|
+
addToResolvers?: boolean | undefined;
|
|
16
19
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
17
20
|
archivist?: string | undefined;
|
|
18
21
|
schema: "network.xyo.node.config";
|
|
@@ -22,10 +25,12 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
22
25
|
schema: string;
|
|
23
26
|
};
|
|
24
27
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
28
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
25
29
|
}, import("./Node").NodeModuleEventData>>;
|
|
26
30
|
export declare const asNodeModule: {
|
|
27
31
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
28
32
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
|
+
addToResolvers?: boolean | undefined;
|
|
29
34
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
30
35
|
archivist?: string | undefined;
|
|
31
36
|
schema: "network.xyo.node.config";
|
|
@@ -35,9 +40,11 @@ export declare const asNodeModule: {
|
|
|
35
40
|
schema: string;
|
|
36
41
|
};
|
|
37
42
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
38
44
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
39
45
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
40
46
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
|
+
addToResolvers?: boolean | undefined;
|
|
41
48
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
42
49
|
archivist?: string | undefined;
|
|
43
50
|
schema: "network.xyo.node.config";
|
|
@@ -47,8 +54,10 @@ export declare const asNodeModule: {
|
|
|
47
54
|
schema: string;
|
|
48
55
|
};
|
|
49
56
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
50
58
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
51
59
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
|
+
addToResolvers?: boolean | undefined;
|
|
52
61
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
53
62
|
archivist?: string | undefined;
|
|
54
63
|
schema: "network.xyo.node.config";
|
|
@@ -58,11 +67,13 @@ export declare const asNodeModule: {
|
|
|
58
67
|
schema: string;
|
|
59
68
|
};
|
|
60
69
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
70
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
61
71
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
62
72
|
};
|
|
63
73
|
export declare const asNodeInstance: {
|
|
64
74
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
65
75
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
|
+
addToResolvers?: boolean | undefined;
|
|
66
77
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
67
78
|
archivist?: string | undefined;
|
|
68
79
|
schema: "network.xyo.node.config";
|
|
@@ -72,9 +83,11 @@ export declare const asNodeInstance: {
|
|
|
72
83
|
schema: string;
|
|
73
84
|
};
|
|
74
85
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
86
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
75
87
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
76
88
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
77
89
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
|
+
addToResolvers?: boolean | undefined;
|
|
78
91
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
79
92
|
archivist?: string | undefined;
|
|
80
93
|
schema: "network.xyo.node.config";
|
|
@@ -84,8 +97,10 @@ export declare const asNodeInstance: {
|
|
|
84
97
|
schema: string;
|
|
85
98
|
};
|
|
86
99
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
87
101
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
88
102
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
|
+
addToResolvers?: boolean | undefined;
|
|
89
104
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
90
105
|
archivist?: string | undefined;
|
|
91
106
|
schema: "network.xyo.node.config";
|
|
@@ -95,10 +110,12 @@ export declare const asNodeInstance: {
|
|
|
95
110
|
schema: string;
|
|
96
111
|
};
|
|
97
112
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
113
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
98
114
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
99
115
|
};
|
|
100
116
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
101
117
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
|
+
addToResolvers?: boolean | undefined;
|
|
102
119
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
103
120
|
archivist?: string | undefined;
|
|
104
121
|
schema: "network.xyo.node.config";
|
|
@@ -108,9 +125,11 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
108
125
|
schema: string;
|
|
109
126
|
};
|
|
110
127
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
128
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
111
129
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
112
130
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
113
131
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
|
+
addToResolvers?: boolean | undefined;
|
|
114
133
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
115
134
|
archivist?: string | undefined;
|
|
116
135
|
schema: "network.xyo.node.config";
|
|
@@ -120,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
|
|
|
120
139
|
schema: string;
|
|
121
140
|
};
|
|
122
141
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
142
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
123
143
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
124
144
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;gEAAqC,CAAA"}
|
package/dist/node/Node.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
-
import { Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { AttachableModuleInstance, Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
|
|
4
4
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels';
|
|
5
5
|
import { NodeParams } from './Params';
|
|
6
6
|
export interface NodeQueryFunctions {
|
|
@@ -14,7 +14,7 @@ export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDeta
|
|
|
14
14
|
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
15
15
|
}
|
|
16
16
|
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
17
|
-
register?: (mod:
|
|
17
|
+
register?: (mod: AttachableModuleInstance) => Promisable<void>;
|
|
18
18
|
registeredModules?: () => Promisable<ModuleInstance[]>;
|
|
19
19
|
unregister?: (mod: ModuleInstance) => Promisable<ModuleInstance>;
|
|
20
20
|
}
|
package/dist/node/Node.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/H,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACzI,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAChG,QAAQ,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACrC,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,KAAK,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAC5E,UAAU,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEtB,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC/H,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,kBAAkB,EAClB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9D,iBAAiB,CAAC,EAAE,MAAM,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;IACtD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,UAAU,CAAC,cAAc,CAAC,CAAA;CACjE"}
|
package/dist/node/Node.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
-
import { Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { AttachableModuleInstance, Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
|
|
4
4
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels';
|
|
5
5
|
import { NodeParams } from './Params';
|
|
6
6
|
export interface NodeQueryFunctions {
|
|
@@ -14,7 +14,7 @@ export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDeta
|
|
|
14
14
|
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
15
15
|
}
|
|
16
16
|
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
17
|
-
register?: (mod:
|
|
17
|
+
register?: (mod: AttachableModuleInstance) => Promisable<void>;
|
|
18
18
|
registeredModules?: () => Promisable<ModuleInstance[]>;
|
|
19
19
|
unregister?: (mod: ModuleInstance) => Promisable<ModuleInstance>;
|
|
20
20
|
}
|
package/dist/node/Node.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/H,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACzI,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAChG,QAAQ,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACrC,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,KAAK,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAC5E,UAAU,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEtB,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC/H,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,kBAAkB,EAClB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9D,iBAAiB,CAAC,EAAE,MAAM,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;IACtD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,UAAU,CAAC,cAAc,CAAC,CAAA;CACjE"}
|
package/dist/node/Node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { Promisable } from '@xylabs/promise';
|
|
3
|
-
import { Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { AttachableModuleInstance, Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model';
|
|
4
4
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels';
|
|
5
5
|
import { NodeParams } from './Params';
|
|
6
6
|
export interface NodeQueryFunctions {
|
|
@@ -14,7 +14,7 @@ export interface NodeModuleEventData extends ModuleAttachedEventData, ModuleDeta
|
|
|
14
14
|
export interface NodeModule<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends Module<TParams, TEventData> {
|
|
15
15
|
}
|
|
16
16
|
export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, NodeQueryFunctions, ModuleInstance<TParams, TEventData> {
|
|
17
|
-
register?: (mod:
|
|
17
|
+
register?: (mod: AttachableModuleInstance) => Promisable<void>;
|
|
18
18
|
registeredModules?: () => Promisable<ModuleInstance[]>;
|
|
19
19
|
unregister?: (mod: ModuleInstance) => Promisable<ModuleInstance>;
|
|
20
20
|
}
|
package/dist/node/Node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../src/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/H,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AACzI,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAErC,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAChG,QAAQ,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACrC,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,KAAK,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC,CAAA;IAC5E,UAAU,EAAE,MAAM,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,mBACf,SAAQ,uBAAuB,EAC7B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,eAAe;CAAG;AAEtB,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC/H,SAAQ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CACjI,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,kBAAkB,EAClB,cAAc,CAAC,OAAO,EAAE,UAAU,CAAC;IACrC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,wBAAwB,KAAK,UAAU,CAAC,IAAI,CAAC,CAAA;IAC9D,iBAAiB,CAAC,EAAE,MAAM,UAAU,CAAC,cAAc,EAAE,CAAC,CAAA;IACtD,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,UAAU,CAAC,cAAc,CAAC,CAAA;CACjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IsObjectFactory, TypeCheck } from '@xylabs/object';
|
|
2
|
+
import { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { NodeInstance, NodeModule, NodeModuleEventData } from '../Node';
|
|
4
|
+
import { NodeParams } from '../Params';
|
|
5
|
+
export interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, NodeInstance<TParams, TEventData> {
|
|
6
|
+
}
|
|
7
|
+
export type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>;
|
|
8
|
+
export declare class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AttachableInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC3I,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAErH,qBAAa,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IsObjectFactory, TypeCheck } from '@xylabs/object';
|
|
2
|
+
import { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { NodeInstance, NodeModule, NodeModuleEventData } from '../Node';
|
|
4
|
+
import { NodeParams } from '../Params';
|
|
5
|
+
export interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, NodeInstance<TParams, TEventData> {
|
|
6
|
+
}
|
|
7
|
+
export type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>;
|
|
8
|
+
export declare class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AttachableInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC3I,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAErH,qBAAa,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IsObjectFactory, TypeCheck } from '@xylabs/object';
|
|
2
|
+
import { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { NodeInstance, NodeModule, NodeModuleEventData } from '../Node';
|
|
4
|
+
import { NodeParams } from '../Params';
|
|
5
|
+
export interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData> extends NodeModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, NodeInstance<TParams, TEventData> {
|
|
6
|
+
}
|
|
7
|
+
export type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>;
|
|
8
|
+
export declare class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=AttachableInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,EAAE,UAAU,SAAS,mBAAmB,GAAG,mBAAmB,CAC3I,SAAQ,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,EACrC,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC;CAAG;AAExC,MAAM,MAAM,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAErH,qBAAa,+BAA+B,CAAC,CAAC,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
|