@xyo-network/node-model 2.110.16 → 2.110.18
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/EventsModels/index.d.cts +4 -4
- package/dist/browser/EventsModels/index.d.mts +4 -4
- package/dist/browser/EventsModels/index.d.ts +4 -4
- package/dist/browser/Node.d.cts +2 -2
- package/dist/browser/Node.d.mts +2 -2
- package/dist/browser/Node.d.ts +2 -2
- package/dist/browser/Params.d.cts +1 -1
- package/dist/browser/Params.d.mts +1 -1
- package/dist/browser/Params.d.ts +1 -1
- package/dist/browser/Queries/index.d.cts +10 -10
- package/dist/browser/Queries/index.d.mts +10 -10
- package/dist/browser/Queries/index.d.ts +10 -10
- package/dist/browser/attachable/AttachableInstance.d.cts +3 -3
- package/dist/browser/attachable/AttachableInstance.d.mts +3 -3
- package/dist/browser/attachable/AttachableInstance.d.ts +3 -3
- package/dist/browser/attachable/index.d.cts +3 -3
- package/dist/browser/attachable/index.d.mts +3 -3
- package/dist/browser/attachable/index.d.ts +3 -3
- package/dist/browser/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +9 -9
- package/dist/browser/index.d.mts +9 -9
- package/dist/browser/index.d.ts +9 -9
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/instance.d.cts +3 -3
- package/dist/browser/instance.d.mts +3 -3
- package/dist/browser/instance.d.ts +3 -3
- package/dist/browser/typeChecks.d.cts +12 -12
- package/dist/browser/typeChecks.d.mts +12 -12
- package/dist/browser/typeChecks.d.ts +12 -12
- package/dist/neutral/EventsModels/index.d.cts +4 -4
- package/dist/neutral/EventsModels/index.d.mts +4 -4
- package/dist/neutral/EventsModels/index.d.ts +4 -4
- package/dist/neutral/Node.d.cts +2 -2
- package/dist/neutral/Node.d.mts +2 -2
- package/dist/neutral/Node.d.ts +2 -2
- package/dist/neutral/Params.d.cts +1 -1
- package/dist/neutral/Params.d.mts +1 -1
- package/dist/neutral/Params.d.ts +1 -1
- package/dist/neutral/Queries/index.d.cts +10 -10
- package/dist/neutral/Queries/index.d.mts +10 -10
- package/dist/neutral/Queries/index.d.ts +10 -10
- package/dist/neutral/attachable/AttachableInstance.d.cts +3 -3
- package/dist/neutral/attachable/AttachableInstance.d.mts +3 -3
- package/dist/neutral/attachable/AttachableInstance.d.ts +3 -3
- package/dist/neutral/attachable/index.d.cts +3 -3
- package/dist/neutral/attachable/index.d.mts +3 -3
- package/dist/neutral/attachable/index.d.ts +3 -3
- package/dist/neutral/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +9 -9
- package/dist/neutral/index.d.mts +9 -9
- package/dist/neutral/index.d.ts +9 -9
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/instance.d.cts +3 -3
- package/dist/neutral/instance.d.mts +3 -3
- package/dist/neutral/instance.d.ts +3 -3
- package/dist/neutral/typeChecks.d.cts +12 -12
- package/dist/neutral/typeChecks.d.mts +12 -12
- package/dist/neutral/typeChecks.d.ts +12 -12
- package/dist/node/EventsModels/index.d.cts +4 -4
- package/dist/node/EventsModels/index.d.mts +4 -4
- package/dist/node/EventsModels/index.d.ts +4 -4
- package/dist/node/Node.d.cts +2 -2
- package/dist/node/Node.d.mts +2 -2
- package/dist/node/Node.d.ts +2 -2
- package/dist/node/Params.d.cts +1 -1
- package/dist/node/Params.d.mts +1 -1
- package/dist/node/Params.d.ts +1 -1
- package/dist/node/Queries/index.d.cts +10 -10
- package/dist/node/Queries/index.d.mts +10 -10
- package/dist/node/Queries/index.d.ts +10 -10
- package/dist/node/attachable/AttachableInstance.d.cts +3 -3
- package/dist/node/attachable/AttachableInstance.d.mts +3 -3
- package/dist/node/attachable/AttachableInstance.d.ts +3 -3
- package/dist/node/attachable/index.d.cts +3 -3
- package/dist/node/attachable/index.d.mts +3 -3
- package/dist/node/attachable/index.d.ts +3 -3
- package/dist/node/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +9 -9
- package/dist/node/index.d.mts +9 -9
- package/dist/node/index.d.ts +9 -9
- package/dist/node/index.js.map +1 -1
- package/dist/node/instance.d.cts +3 -3
- package/dist/node/instance.d.mts +3 -3
- package/dist/node/instance.d.ts +3 -3
- package/dist/node/typeChecks.d.cts +12 -12
- package/dist/node/typeChecks.d.mts +12 -12
- package/dist/node/typeChecks.d.ts +12 -12
- package/package.json +5 -5
- package/src/EventsModels/index.ts +4 -4
- package/src/Node.ts +2 -2
- package/src/Params.ts +1 -1
- package/src/Queries/index.ts +10 -10
- package/src/attachable/AttachableInstance.ts +3 -3
- package/src/attachable/asAttachableInstance.ts +1 -1
- package/src/attachable/index.ts +3 -3
- package/src/attachable/isAttachableInstance.ts +2 -2
- package/src/index.ts +9 -9
- package/src/instance.ts +3 -3
- package/src/typeChecks.ts +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './asAttachableInstance.
|
|
2
|
-
export * from './AttachableInstance.
|
|
3
|
-
export * from './isAttachableInstance.
|
|
1
|
+
export * from './asAttachableInstance.ts';
|
|
2
|
+
export * from './AttachableInstance.ts';
|
|
3
|
+
export * from './isAttachableInstance.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
|
|
2
|
-
import { AttachableNodeInstance } from './AttachableInstance.
|
|
2
|
+
import { AttachableNodeInstance } from './AttachableInstance.ts';
|
|
3
3
|
export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
|
|
4
4
|
export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
|
|
5
5
|
//# sourceMappingURL=isAttachableInstance.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
|
|
2
|
-
import { AttachableNodeInstance } from './AttachableInstance.
|
|
2
|
+
import { AttachableNodeInstance } from './AttachableInstance.ts';
|
|
3
3
|
export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
|
|
4
4
|
export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
|
|
5
5
|
//# sourceMappingURL=isAttachableInstance.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
|
|
2
|
-
import { AttachableNodeInstance } from './AttachableInstance.
|
|
2
|
+
import { AttachableNodeInstance } from './AttachableInstance.ts';
|
|
3
3
|
export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
|
|
4
4
|
export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
|
|
5
5
|
//# sourceMappingURL=isAttachableInstance.d.ts.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Certify.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/ChildCertification.ts","../../src/Config.ts"],"sourcesContent":["export * from './attachable/index.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Certify.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/ChildCertification.ts","../../src/Config.ts"],"sourcesContent":["export * from './attachable/index.ts'\nexport * from './ChildCertification.ts'\nexport * from './Config.ts'\nexport * from './EventsModels/index.ts'\nexport * from './instance.ts'\nexport * from './Node.ts'\nexport * from './Params.ts'\nexport * from './Queries/index.ts'\nexport * from './typeChecks.ts'\n","import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance.ts'\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.ts'\nimport { AttachableNodeInstance } from './AttachableInstance.ts'\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 } from './instance.ts'\nimport { NodeModule } from './Node.ts'\nimport { NodeAttachedQuerySchema } from './Queries/index.ts'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n certify: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema])\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 { ModuleIdentifier } from '@xyo-network/module-model'\nimport { 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 id: ModuleIdentifier\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 { ModuleIdentifier } from '@xyo-network/module-model'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type NodeCertifyQuerySchema = 'network.xyo.query.node.certify'\nexport const NodeCertifyQuerySchema: NodeCertifyQuerySchema = 'network.xyo.query.node.certify'\n\nexport type NodeCertifyQuery = Query<{\n id: ModuleIdentifier\n schema: NodeCertifyQuerySchema\n}>\n","import { ModuleIdentifier } from '@xyo-network/module-model'\nimport { 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 id: ModuleIdentifier\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 } from '../instance.ts'\nimport { NodeModule, NodeModuleEventData } from '../Node.ts'\nimport { NodeParams } from '../Params.ts'\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 { Address } from '@xylabs/hex'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const ChildCertificationSchema = 'network.xyo.child.certification' as const\nexport type ChildCertificationSchema = typeof ChildCertificationSchema\n\nexport interface ChildCertificationFields {\n address: Address\n expiration: number\n}\n\nexport type ChildCertification = Payload<ChildCertificationFields, ChildCertificationSchema>\n","import { EmptyObject, 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' as const\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n },\n TConfig\n >,\n TSchema extends void ?\n TConfig extends Payload ?\n TConfig['schema']\n : NodeConfigSchema\n : TSchema\n>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAA,iBAAgC;;;ACAhC,IAAAC,iBAA4D;AAC5D,IAAAC,uBAA2C;;;ACD3C,oBAAgC;AAChC,0BAAkF;;;ACG3E,IAAMC,wBAA+C;;;ACDrD,IAAMC,0BAAmD;;;ACCzD,IAAMC,yBAAiD;;;ACAvD,IAAMC,wBAA+C;;;ACDrD,IAAMC,4BAAuD;;;ALIpE,IAAMC,kBAAkB,IAAIC,sCAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,SAAS;EACTC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,oCAAAA;AAEnB,IAAMC,eAAeF,cAAcP,OAAO;EAACU;CAAwB;AAEnE,IAAMC,eAAeC,8BAAgBZ,OAAOS,YAAAA;AAC5C,IAAMI,iBAAiBD,8BAAgBZ,OAAOD,cAAAA;AAC9C,IAAMe,iBAAiBC,gCAAYf,OAAOS,YAAAA;AAC1C,IAAMO,mBAAmBD,gCAAYf,OAAOD,cAAAA;;;ADrB5C,IAAMkB,0CAA2D,CAAC;AAGzE,IAAMC,UAAU,IAAIC,+BAAAA;AAEb,IAAMC,2BAA8DF,QAAQG,OAAOJ,yCAAyC;EACjIK;EACAC;CACD;;;ADVM,IAAMC,2BAA2BC,+BAAgBC,OAAOC,wBAAAA;;;AQJ/D,IAAAC,iBAA2C;AAcpC,IAAMC,mCAAN,MAAMA,yCAAmGC,+BAAAA;AAAoB;AAApBA;AAAzG,IAAMD,kCAAN;;;ACXA,IAAME,2BAA2B;;;ACCjC,IAAMC,mBAAmB;","names":["import_object","import_object","import_module_model","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeCertifyQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","certify","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance","requiredAttachableNodeInstanceFunctions","factory","IsObjectFactory","isAttachableNodeInstance","create","isNodeInstance","isAttachableModuleInstance","asAttachableNodeInstance","AsObjectFactory","create","isAttachableNodeInstance","import_object","IsAttachableNodeInstanceFactory","IsObjectFactory","ChildCertificationSchema","NodeConfigSchema"]}
|
package/dist/node/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './attachable/index.
|
|
2
|
-
export * from './ChildCertification.
|
|
3
|
-
export * from './Config.
|
|
4
|
-
export * from './EventsModels/index.
|
|
5
|
-
export * from './instance.
|
|
6
|
-
export * from './Node.
|
|
7
|
-
export * from './Params.
|
|
8
|
-
export * from './Queries/index.
|
|
9
|
-
export * from './typeChecks.
|
|
1
|
+
export * from './attachable/index.ts';
|
|
2
|
+
export * from './ChildCertification.ts';
|
|
3
|
+
export * from './Config.ts';
|
|
4
|
+
export * from './EventsModels/index.ts';
|
|
5
|
+
export * from './instance.ts';
|
|
6
|
+
export * from './Node.ts';
|
|
7
|
+
export * from './Params.ts';
|
|
8
|
+
export * from './Queries/index.ts';
|
|
9
|
+
export * from './typeChecks.ts';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './attachable/index.
|
|
2
|
-
export * from './ChildCertification.
|
|
3
|
-
export * from './Config.
|
|
4
|
-
export * from './EventsModels/index.
|
|
5
|
-
export * from './instance.
|
|
6
|
-
export * from './Node.
|
|
7
|
-
export * from './Params.
|
|
8
|
-
export * from './Queries/index.
|
|
9
|
-
export * from './typeChecks.
|
|
1
|
+
export * from './attachable/index.ts';
|
|
2
|
+
export * from './ChildCertification.ts';
|
|
3
|
+
export * from './Config.ts';
|
|
4
|
+
export * from './EventsModels/index.ts';
|
|
5
|
+
export * from './instance.ts';
|
|
6
|
+
export * from './Node.ts';
|
|
7
|
+
export * from './Params.ts';
|
|
8
|
+
export * from './Queries/index.ts';
|
|
9
|
+
export * from './typeChecks.ts';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './attachable/index.
|
|
2
|
-
export * from './ChildCertification.
|
|
3
|
-
export * from './Config.
|
|
4
|
-
export * from './EventsModels/index.
|
|
5
|
-
export * from './instance.
|
|
6
|
-
export * from './Node.
|
|
7
|
-
export * from './Params.
|
|
8
|
-
export * from './Queries/index.
|
|
9
|
-
export * from './typeChecks.
|
|
1
|
+
export * from './attachable/index.ts';
|
|
2
|
+
export * from './ChildCertification.ts';
|
|
3
|
+
export * from './Config.ts';
|
|
4
|
+
export * from './EventsModels/index.ts';
|
|
5
|
+
export * from './instance.ts';
|
|
6
|
+
export * from './Node.ts';
|
|
7
|
+
export * from './Params.ts';
|
|
8
|
+
export * from './Queries/index.ts';
|
|
9
|
+
export * from './typeChecks.ts';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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/Certify.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/ChildCertification.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance.
|
|
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/Certify.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/ChildCertification.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance.ts'\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.ts'\nimport { AttachableNodeInstance } from './AttachableInstance.ts'\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 } from './instance.ts'\nimport { NodeModule } from './Node.ts'\nimport { NodeAttachedQuerySchema } from './Queries/index.ts'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n certify: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema])\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 { ModuleIdentifier } from '@xyo-network/module-model'\nimport { 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 id: ModuleIdentifier\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 { ModuleIdentifier } from '@xyo-network/module-model'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type NodeCertifyQuerySchema = 'network.xyo.query.node.certify'\nexport const NodeCertifyQuerySchema: NodeCertifyQuerySchema = 'network.xyo.query.node.certify'\n\nexport type NodeCertifyQuery = Query<{\n id: ModuleIdentifier\n schema: NodeCertifyQuerySchema\n}>\n","import { ModuleIdentifier } from '@xyo-network/module-model'\nimport { 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 id: ModuleIdentifier\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 } from '../instance.ts'\nimport { NodeModule, NodeModuleEventData } from '../Node.ts'\nimport { NodeParams } from '../Params.ts'\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 { Address } from '@xylabs/hex'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const ChildCertificationSchema = 'network.xyo.child.certification' as const\nexport type ChildCertificationSchema = typeof ChildCertificationSchema\n\nexport interface ChildCertificationFields {\n address: Address\n expiration: number\n}\n\nexport type ChildCertification = Payload<ChildCertificationFields, ChildCertificationSchema>\n","import { EmptyObject, 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' as const\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n },\n TConfig\n >,\n TSchema extends void ?\n TConfig extends Payload ?\n TConfig['schema']\n : NodeConfigSchema\n : TSchema\n>\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACAhC,SAASC,uBAAmD;AAC5D,SAASC,kCAAkC;;;ACD3C,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;;;ACG3E,IAAMC,wBAA+C;;;ACDrD,IAAMC,0BAAmD;;;ACCzD,IAAMC,yBAAiD;;;ACAvD,IAAMC,wBAA+C;;;ACDrD,IAAMC,4BAAuD;;;ALIpE,IAAMC,kBAAkB,IAAIC,kBAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,SAAS;EACTC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,gBAAAA;AAEnB,IAAMC,eAAeF,cAAcP,OAAO;EAACU;CAAwB;AAEnE,IAAMC,eAAeC,gBAAgBZ,OAAOS,YAAAA;AAC5C,IAAMI,iBAAiBD,gBAAgBZ,OAAOD,cAAAA;AAC9C,IAAMe,iBAAiBC,YAAYf,OAAOS,YAAAA;AAC1C,IAAMO,mBAAmBD,YAAYf,OAAOD,cAAAA;;;ADrB5C,IAAMkB,0CAA2D,CAAC;AAGzE,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,2BAA8DF,QAAQG,OAAOJ,yCAAyC;EACjIK;EACAC;CACD;;;ADVM,IAAMC,2BAA2BC,iBAAgBC,OAAOC,wBAAAA;;;AQJ/D,SAASC,mBAAAA,wBAAkC;AAcpC,IAAMC,mCAAN,MAAMA,yCAAmGC,iBAAAA;AAAoB;AAApBA;AAAzG,IAAMD,kCAAN;;;ACXA,IAAME,2BAA2B;;;ACCjC,IAAMC,mBAAmB;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeCertifyQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","certify","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance","requiredAttachableNodeInstanceFunctions","factory","IsObjectFactory","isAttachableNodeInstance","create","isNodeInstance","isAttachableModuleInstance","asAttachableNodeInstance","AsObjectFactory","create","isAttachableNodeInstance","IsObjectFactory","IsAttachableNodeInstanceFactory","IsObjectFactory","ChildCertificationSchema","NodeConfigSchema"]}
|
package/dist/node/instance.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
3
|
import { AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
|
-
import { ChildCertification, ChildCertificationFields } from './ChildCertification.
|
|
5
|
-
import { NodeModule, NodeModuleEventData } from './Node.
|
|
6
|
-
import { NodeParams } from './Params.
|
|
4
|
+
import { ChildCertification, ChildCertificationFields } from './ChildCertification.ts';
|
|
5
|
+
import { NodeModule, NodeModuleEventData } from './Node.ts';
|
|
6
|
+
import { NodeParams } from './Params.ts';
|
|
7
7
|
export interface NodeQueryFunctions {
|
|
8
8
|
attach: (id: ModuleIdentifier, external?: boolean) => Promise<Address | undefined>;
|
|
9
9
|
attachQuery: (id: ModuleIdentifier, external?: boolean, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
package/dist/node/instance.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
3
|
import { AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
|
-
import { ChildCertification, ChildCertificationFields } from './ChildCertification.
|
|
5
|
-
import { NodeModule, NodeModuleEventData } from './Node.
|
|
6
|
-
import { NodeParams } from './Params.
|
|
4
|
+
import { ChildCertification, ChildCertificationFields } from './ChildCertification.ts';
|
|
5
|
+
import { NodeModule, NodeModuleEventData } from './Node.ts';
|
|
6
|
+
import { NodeParams } from './Params.ts';
|
|
7
7
|
export interface NodeQueryFunctions {
|
|
8
8
|
attach: (id: ModuleIdentifier, external?: boolean) => Promise<Address | undefined>;
|
|
9
9
|
attachQuery: (id: ModuleIdentifier, external?: boolean, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
package/dist/node/instance.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
2
|
import { AccountInstance } from '@xyo-network/account-model';
|
|
3
3
|
import { AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model';
|
|
4
|
-
import { ChildCertification, ChildCertificationFields } from './ChildCertification.
|
|
5
|
-
import { NodeModule, NodeModuleEventData } from './Node.
|
|
6
|
-
import { NodeParams } from './Params.
|
|
4
|
+
import { ChildCertification, ChildCertificationFields } from './ChildCertification.ts';
|
|
5
|
+
import { NodeModule, NodeModuleEventData } from './Node.ts';
|
|
6
|
+
import { NodeParams } from './Params.ts';
|
|
7
7
|
export interface NodeQueryFunctions {
|
|
8
8
|
attach: (id: ModuleIdentifier, external?: boolean) => Promise<Address | undefined>;
|
|
9
9
|
attachQuery: (id: ModuleIdentifier, external?: boolean, account?: AccountInstance) => Promise<ModuleQueryResult<AddressPayload>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NodeInstance } from './instance.
|
|
2
|
-
import { NodeModule } from './Node.
|
|
1
|
+
import { NodeInstance } from './instance.ts';
|
|
2
|
+
import { NodeModule } from './Node.ts';
|
|
3
3
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
5
5
|
addToResolvers?: boolean;
|
|
@@ -14,7 +14,7 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
14
14
|
};
|
|
15
15
|
ephemeralQueryAccountEnabled?: boolean;
|
|
16
16
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
17
|
-
}, import("./Node.
|
|
17
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
18
18
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
19
19
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
20
20
|
addToResolvers?: boolean;
|
|
@@ -29,7 +29,7 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
29
29
|
};
|
|
30
30
|
ephemeralQueryAccountEnabled?: boolean;
|
|
31
31
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
32
|
-
}, import("./Node.
|
|
32
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
33
33
|
export declare const asNodeModule: {
|
|
34
34
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
35
35
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
@@ -45,7 +45,7 @@ export declare const asNodeModule: {
|
|
|
45
45
|
};
|
|
46
46
|
ephemeralQueryAccountEnabled?: boolean;
|
|
47
47
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
48
|
-
}, import("./Node.
|
|
48
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
49
49
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
50
50
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
51
51
|
addToResolvers?: boolean;
|
|
@@ -60,7 +60,7 @@ export declare const asNodeModule: {
|
|
|
60
60
|
};
|
|
61
61
|
ephemeralQueryAccountEnabled?: boolean;
|
|
62
62
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
63
|
-
}, import("./Node.
|
|
63
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
64
64
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
65
65
|
addToResolvers?: boolean;
|
|
66
66
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -74,7 +74,7 @@ export declare const asNodeModule: {
|
|
|
74
74
|
};
|
|
75
75
|
ephemeralQueryAccountEnabled?: boolean;
|
|
76
76
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
77
|
-
}, import("./Node.
|
|
77
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
78
78
|
};
|
|
79
79
|
export declare const asNodeInstance: {
|
|
80
80
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -91,7 +91,7 @@ export declare const asNodeInstance: {
|
|
|
91
91
|
};
|
|
92
92
|
ephemeralQueryAccountEnabled?: boolean;
|
|
93
93
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
|
-
}, import("./Node.
|
|
94
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
95
95
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
96
96
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
97
97
|
addToResolvers?: boolean;
|
|
@@ -106,7 +106,7 @@ export declare const asNodeInstance: {
|
|
|
106
106
|
};
|
|
107
107
|
ephemeralQueryAccountEnabled?: boolean;
|
|
108
108
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
109
|
-
}, import("./Node.
|
|
109
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
110
110
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
111
111
|
addToResolvers?: boolean;
|
|
112
112
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -120,7 +120,7 @@ export declare const asNodeInstance: {
|
|
|
120
120
|
};
|
|
121
121
|
ephemeralQueryAccountEnabled?: boolean;
|
|
122
122
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
123
|
-
}, import("./Node.
|
|
123
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
124
124
|
};
|
|
125
125
|
export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
126
126
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
@@ -136,7 +136,7 @@ export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<imp
|
|
|
136
136
|
};
|
|
137
137
|
ephemeralQueryAccountEnabled?: boolean;
|
|
138
138
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
139
|
-
}, import("./Node.
|
|
139
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
140
140
|
export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
141
141
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
142
142
|
addToResolvers?: boolean;
|
|
@@ -151,5 +151,5 @@ export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance
|
|
|
151
151
|
};
|
|
152
152
|
ephemeralQueryAccountEnabled?: boolean;
|
|
153
153
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
154
|
-
}, import("./Node.
|
|
154
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
155
155
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NodeInstance } from './instance.
|
|
2
|
-
import { NodeModule } from './Node.
|
|
1
|
+
import { NodeInstance } from './instance.ts';
|
|
2
|
+
import { NodeModule } from './Node.ts';
|
|
3
3
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
5
5
|
addToResolvers?: boolean;
|
|
@@ -14,7 +14,7 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
14
14
|
};
|
|
15
15
|
ephemeralQueryAccountEnabled?: boolean;
|
|
16
16
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
17
|
-
}, import("./Node.
|
|
17
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
18
18
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
19
19
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
20
20
|
addToResolvers?: boolean;
|
|
@@ -29,7 +29,7 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
29
29
|
};
|
|
30
30
|
ephemeralQueryAccountEnabled?: boolean;
|
|
31
31
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
32
|
-
}, import("./Node.
|
|
32
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
33
33
|
export declare const asNodeModule: {
|
|
34
34
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
35
35
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
@@ -45,7 +45,7 @@ export declare const asNodeModule: {
|
|
|
45
45
|
};
|
|
46
46
|
ephemeralQueryAccountEnabled?: boolean;
|
|
47
47
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
48
|
-
}, import("./Node.
|
|
48
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
49
49
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
50
50
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
51
51
|
addToResolvers?: boolean;
|
|
@@ -60,7 +60,7 @@ export declare const asNodeModule: {
|
|
|
60
60
|
};
|
|
61
61
|
ephemeralQueryAccountEnabled?: boolean;
|
|
62
62
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
63
|
-
}, import("./Node.
|
|
63
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
64
64
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
65
65
|
addToResolvers?: boolean;
|
|
66
66
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -74,7 +74,7 @@ export declare const asNodeModule: {
|
|
|
74
74
|
};
|
|
75
75
|
ephemeralQueryAccountEnabled?: boolean;
|
|
76
76
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
77
|
-
}, import("./Node.
|
|
77
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
78
78
|
};
|
|
79
79
|
export declare const asNodeInstance: {
|
|
80
80
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -91,7 +91,7 @@ export declare const asNodeInstance: {
|
|
|
91
91
|
};
|
|
92
92
|
ephemeralQueryAccountEnabled?: boolean;
|
|
93
93
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
|
-
}, import("./Node.
|
|
94
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
95
95
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
96
96
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
97
97
|
addToResolvers?: boolean;
|
|
@@ -106,7 +106,7 @@ export declare const asNodeInstance: {
|
|
|
106
106
|
};
|
|
107
107
|
ephemeralQueryAccountEnabled?: boolean;
|
|
108
108
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
109
|
-
}, import("./Node.
|
|
109
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
110
110
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
111
111
|
addToResolvers?: boolean;
|
|
112
112
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -120,7 +120,7 @@ export declare const asNodeInstance: {
|
|
|
120
120
|
};
|
|
121
121
|
ephemeralQueryAccountEnabled?: boolean;
|
|
122
122
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
123
|
-
}, import("./Node.
|
|
123
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
124
124
|
};
|
|
125
125
|
export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
126
126
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
@@ -136,7 +136,7 @@ export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<imp
|
|
|
136
136
|
};
|
|
137
137
|
ephemeralQueryAccountEnabled?: boolean;
|
|
138
138
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
139
|
-
}, import("./Node.
|
|
139
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
140
140
|
export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
141
141
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
142
142
|
addToResolvers?: boolean;
|
|
@@ -151,5 +151,5 @@ export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance
|
|
|
151
151
|
};
|
|
152
152
|
ephemeralQueryAccountEnabled?: boolean;
|
|
153
153
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
154
|
-
}, import("./Node.
|
|
154
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
155
155
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NodeInstance } from './instance.
|
|
2
|
-
import { NodeModule } from './Node.
|
|
1
|
+
import { NodeInstance } from './instance.ts';
|
|
2
|
+
import { NodeModule } from './Node.ts';
|
|
3
3
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
5
5
|
addToResolvers?: boolean;
|
|
@@ -14,7 +14,7 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
14
14
|
};
|
|
15
15
|
ephemeralQueryAccountEnabled?: boolean;
|
|
16
16
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
17
|
-
}, import("./Node.
|
|
17
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
18
18
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
19
19
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
20
20
|
addToResolvers?: boolean;
|
|
@@ -29,7 +29,7 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
29
29
|
};
|
|
30
30
|
ephemeralQueryAccountEnabled?: boolean;
|
|
31
31
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
32
|
-
}, import("./Node.
|
|
32
|
+
}, import("./Node.ts").NodeModuleEventData>>;
|
|
33
33
|
export declare const asNodeModule: {
|
|
34
34
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
35
35
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
@@ -45,7 +45,7 @@ export declare const asNodeModule: {
|
|
|
45
45
|
};
|
|
46
46
|
ephemeralQueryAccountEnabled?: boolean;
|
|
47
47
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
48
|
-
}, import("./Node.
|
|
48
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
49
49
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
50
50
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
51
51
|
addToResolvers?: boolean;
|
|
@@ -60,7 +60,7 @@ export declare const asNodeModule: {
|
|
|
60
60
|
};
|
|
61
61
|
ephemeralQueryAccountEnabled?: boolean;
|
|
62
62
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
63
|
-
}, import("./Node.
|
|
63
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
64
64
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
65
65
|
addToResolvers?: boolean;
|
|
66
66
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -74,7 +74,7 @@ export declare const asNodeModule: {
|
|
|
74
74
|
};
|
|
75
75
|
ephemeralQueryAccountEnabled?: boolean;
|
|
76
76
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
77
|
-
}, import("./Node.
|
|
77
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
78
78
|
};
|
|
79
79
|
export declare const asNodeInstance: {
|
|
80
80
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -91,7 +91,7 @@ export declare const asNodeInstance: {
|
|
|
91
91
|
};
|
|
92
92
|
ephemeralQueryAccountEnabled?: boolean;
|
|
93
93
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
|
-
}, import("./Node.
|
|
94
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
95
95
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
96
96
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
97
97
|
addToResolvers?: boolean;
|
|
@@ -106,7 +106,7 @@ export declare const asNodeInstance: {
|
|
|
106
106
|
};
|
|
107
107
|
ephemeralQueryAccountEnabled?: boolean;
|
|
108
108
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
109
|
-
}, import("./Node.
|
|
109
|
+
}, import("./Node.ts").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
110
110
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
111
111
|
addToResolvers?: boolean;
|
|
112
112
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -120,7 +120,7 @@ export declare const asNodeInstance: {
|
|
|
120
120
|
};
|
|
121
121
|
ephemeralQueryAccountEnabled?: boolean;
|
|
122
122
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
123
|
-
}, import("./Node.
|
|
123
|
+
}, import("./Node.ts").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
124
124
|
};
|
|
125
125
|
export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
126
126
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
@@ -136,7 +136,7 @@ export declare const withNodeModule: <R>(mod: any, closure: (mod: NodeModule<imp
|
|
|
136
136
|
};
|
|
137
137
|
ephemeralQueryAccountEnabled?: boolean;
|
|
138
138
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
139
|
-
}, import("./Node.
|
|
139
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
140
140
|
export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
141
141
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
142
142
|
addToResolvers?: boolean;
|
|
@@ -151,5 +151,5 @@ export declare const withNodeInstance: <R>(mod: any, closure: (mod: NodeInstance
|
|
|
151
151
|
};
|
|
152
152
|
ephemeralQueryAccountEnabled?: boolean;
|
|
153
153
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
154
|
-
}, import("./Node.
|
|
154
|
+
}, import("./Node.ts").NodeModuleEventData>) => R) => R | undefined;
|
|
155
155
|
//# sourceMappingURL=typeChecks.d.ts.map
|
package/package.json
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/hex": "^3.6.6",
|
|
14
14
|
"@xylabs/object": "^3.6.6",
|
|
15
|
-
"@xyo-network/account-model": "^2.110.
|
|
16
|
-
"@xyo-network/module-events": "^2.110.
|
|
17
|
-
"@xyo-network/module-model": "^2.110.
|
|
18
|
-
"@xyo-network/payload-model": "^2.110.
|
|
15
|
+
"@xyo-network/account-model": "^2.110.18",
|
|
16
|
+
"@xyo-network/module-events": "^2.110.18",
|
|
17
|
+
"@xyo-network/module-model": "^2.110.18",
|
|
18
|
+
"@xyo-network/payload-model": "^2.110.18"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@xylabs/ts-scripts-yarn3": "^3.14.1",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": false,
|
|
64
|
-
"version": "2.110.
|
|
64
|
+
"version": "2.110.18",
|
|
65
65
|
"type": "module"
|
|
66
66
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './ModuleAttached.
|
|
2
|
-
export * from './ModuleDetached.
|
|
3
|
-
export * from './ModuleRegistered.
|
|
4
|
-
export * from './ModuleUnregistered.
|
|
1
|
+
export * from './ModuleAttached.ts'
|
|
2
|
+
export * from './ModuleDetached.ts'
|
|
3
|
+
export * from './ModuleRegistered.ts'
|
|
4
|
+
export * from './ModuleUnregistered.ts'
|
package/src/Node.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Module, ModuleEventData } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels/index.
|
|
4
|
-
import { NodeParams } from './Params.
|
|
3
|
+
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels/index.ts'
|
|
4
|
+
import { NodeParams } from './Params.ts'
|
|
5
5
|
|
|
6
6
|
export interface NodeModuleEventData
|
|
7
7
|
extends ModuleAttachedEventData,
|
package/src/Params.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyObject } from '@xylabs/object'
|
|
2
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { NodeConfig } from './Config.
|
|
4
|
+
import { NodeConfig } from './Config.ts'
|
|
5
5
|
|
|
6
6
|
export type NodeParams<
|
|
7
7
|
TConfig extends AnyConfigSchema<NodeConfig> = AnyConfigSchema<NodeConfig>,
|
package/src/Queries/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ModuleQueries } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { NodeAttachQuery } from './Attach.
|
|
4
|
-
import { NodeAttachedQuery } from './Attached.
|
|
5
|
-
import { NodeCertifyQuery } from './Certify.
|
|
6
|
-
import { NodeDetachQuery } from './Detach.
|
|
7
|
-
import { NodeRegisteredQuery } from './Registered.
|
|
3
|
+
import { NodeAttachQuery } from './Attach.ts'
|
|
4
|
+
import { NodeAttachedQuery } from './Attached.ts'
|
|
5
|
+
import { NodeCertifyQuery } from './Certify.ts'
|
|
6
|
+
import { NodeDetachQuery } from './Detach.ts'
|
|
7
|
+
import { NodeRegisteredQuery } from './Registered.ts'
|
|
8
8
|
|
|
9
|
-
export * from './Attach.
|
|
10
|
-
export * from './Attached.
|
|
11
|
-
export * from './Certify.
|
|
12
|
-
export * from './Detach.
|
|
13
|
-
export * from './Registered.
|
|
9
|
+
export * from './Attach.ts'
|
|
10
|
+
export * from './Attached.ts'
|
|
11
|
+
export * from './Certify.ts'
|
|
12
|
+
export * from './Detach.ts'
|
|
13
|
+
export * from './Registered.ts'
|
|
14
14
|
|
|
15
15
|
export type NodeQueries = NodeAttachQuery | NodeCertifyQuery | NodeDetachQuery | NodeAttachedQuery | NodeRegisteredQuery
|
|
16
16
|
export type NodeModuleQueries = ModuleQueries | NodeQueries
|