@xyo-network/node-model 2.106.0 → 2.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/attachable/asAttachableInstance.d.cts +21 -21
- package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.mts +21 -21
- package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.ts +21 -21
- package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/browser/index.cjs +1 -113
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -92
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +70 -70
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +70 -70
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +70 -70
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.cts +21 -21
- package/dist/neutral/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.mts +21 -21
- package/dist/neutral/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +21 -21
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/index.cjs +1 -113
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +1 -92
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/typeChecks.d.cts +70 -70
- package/dist/neutral/typeChecks.d.cts.map +1 -1
- package/dist/neutral/typeChecks.d.mts +70 -70
- package/dist/neutral/typeChecks.d.mts.map +1 -1
- package/dist/neutral/typeChecks.d.ts +70 -70
- package/dist/neutral/typeChecks.d.ts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.cts +21 -21
- package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.mts +21 -21
- package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.ts +21 -21
- package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -132
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -91
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +70 -70
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +70 -70
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +70 -70
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -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'\nexport * from './ChildCertification'\nexport * from './Config'\nexport * from './EventsModels'\nexport * from './instance'\nexport * from './Node'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","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 } from './instance'\nimport { NodeModule } from './Node'\nimport { NodeAttachedQuerySchema } from './Queries'\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'\nimport { 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 { 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":"
|
|
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'\nexport * from './ChildCertification'\nexport * from './Config'\nexport * from './EventsModels'\nexport * from './instance'\nexport * from './Node'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","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 } from './instance'\nimport { NodeModule } from './Node'\nimport { NodeAttachedQuerySchema } from './Queries'\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'\nimport { 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 { 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":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,8BAAAE,EAAA,oCAAAC,EAAA,0BAAAC,EAAA,4BAAAC,EAAA,2BAAAC,EAAA,qBAAAC,EAAA,0BAAAC,EAAA,8BAAAC,EAAA,6BAAAC,EAAA,mBAAAC,EAAA,iBAAAC,EAAA,6BAAAC,EAAA,mBAAAC,EAAA,iBAAAC,EAAA,4CAAAC,EAAA,qBAAAC,EAAA,mBAAAC,IAAA,eAAAC,EAAAnB,GCAA,IAAAoB,EAAgC,0BCAhC,IAAAC,EAA4D,0BAC5DC,EAA2C,qCCD3C,IAAAC,EAAgC,0BAChCC,EAAkF,qCCG3E,IAAMC,EAA+C,gCCDrD,IAAMC,EAAmD,kCCCzD,IAAMC,EAAiD,iCCAvD,IAAMC,EAA+C,gCCDrD,IAAMC,EAAuD,oCLIpE,IAAMC,EAAkB,IAAIC,oBAEfC,EAAiBF,EAAgBG,OAC5C,CACEC,OAAQ,WACRC,SAAU,WACVC,QAAS,WACTC,OAAQ,WACRC,WAAY,UACd,EACA,CAACC,mBAAiB,EAGdC,EAAgB,IAAIC,kBAEbC,EAAeF,EAAcP,OAAO,CAACU,EAAwB,EAE7DC,EAAeC,kBAAgBZ,OAAOS,CAAAA,EACtCI,EAAiBD,kBAAgBZ,OAAOD,CAAAA,EACxCe,EAAiBC,cAAYf,OAAOS,CAAAA,EACpCO,EAAmBD,cAAYf,OAAOD,CAAAA,EDrB5C,IAAMkB,EAA2D,CAAC,EAGnEC,EAAU,IAAIC,kBAEPC,EAA8DF,EAAQG,OAAOJ,EAAyC,CACjIK,EACAC,6BACD,EDVM,IAAMC,EAA2BC,kBAAgBC,OAAOC,CAAAA,EQJ/D,IAAAC,EAA2C,0BAcpC,IAAMC,EAAN,cAAyGC,iBAAAA,CAdhH,MAcgHA,CAAAA,EAAAA,wCAAoB,ECX7H,IAAMC,EAA2B,kCCCjC,IAAMC,EAAmB","names":["src_exports","__export","ChildCertificationSchema","IsAttachableNodeInstanceFactory","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeCertifyQuerySchema","NodeConfigSchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","asAttachableNodeInstance","asNodeInstance","asNodeModule","isAttachableNodeInstance","isNodeInstance","isNodeModule","requiredAttachableNodeInstanceFunctions","withNodeInstance","withNodeModule","__toCommonJS","import_object","import_object","import_module_model","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/neutral/index.js
CHANGED
|
@@ -1,93 +1,2 @@
|
|
|
1
|
-
var
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
|
-
// src/attachable/asAttachableInstance.ts
|
|
5
|
-
import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/object";
|
|
6
|
-
|
|
7
|
-
// src/attachable/isAttachableInstance.ts
|
|
8
|
-
import { IsObjectFactory } from "@xylabs/object";
|
|
9
|
-
import { isAttachableModuleInstance } from "@xyo-network/module-model";
|
|
10
|
-
|
|
11
|
-
// src/typeChecks.ts
|
|
12
|
-
import { AsObjectFactory } from "@xylabs/object";
|
|
13
|
-
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
|
|
14
|
-
|
|
15
|
-
// src/Queries/Attach.ts
|
|
16
|
-
var NodeAttachQuerySchema = "network.xyo.query.node.attach";
|
|
17
|
-
|
|
18
|
-
// src/Queries/Attached.ts
|
|
19
|
-
var NodeAttachedQuerySchema = "network.xyo.query.node.attached";
|
|
20
|
-
|
|
21
|
-
// src/Queries/Certify.ts
|
|
22
|
-
var NodeCertifyQuerySchema = "network.xyo.query.node.certify";
|
|
23
|
-
|
|
24
|
-
// src/Queries/Detach.ts
|
|
25
|
-
var NodeDetachQuerySchema = "network.xyo.query.node.detach";
|
|
26
|
-
|
|
27
|
-
// src/Queries/Registered.ts
|
|
28
|
-
var NodeRegisteredQuerySchema = "network.xyo.query.node.registered";
|
|
29
|
-
|
|
30
|
-
// src/typeChecks.ts
|
|
31
|
-
var instanceFactory = new IsInstanceFactory();
|
|
32
|
-
var isNodeInstance = instanceFactory.create({
|
|
33
|
-
attach: "function",
|
|
34
|
-
attached: "function",
|
|
35
|
-
certify: "function",
|
|
36
|
-
detach: "function",
|
|
37
|
-
registered: "function"
|
|
38
|
-
}, [
|
|
39
|
-
isModuleInstance
|
|
40
|
-
]);
|
|
41
|
-
var moduleFactory = new IsModuleFactory();
|
|
42
|
-
var isNodeModule = moduleFactory.create([
|
|
43
|
-
NodeAttachedQuerySchema
|
|
44
|
-
]);
|
|
45
|
-
var asNodeModule = AsObjectFactory.create(isNodeModule);
|
|
46
|
-
var asNodeInstance = AsObjectFactory.create(isNodeInstance);
|
|
47
|
-
var withNodeModule = WithFactory.create(isNodeModule);
|
|
48
|
-
var withNodeInstance = WithFactory.create(isNodeInstance);
|
|
49
|
-
|
|
50
|
-
// src/attachable/isAttachableInstance.ts
|
|
51
|
-
var requiredAttachableNodeInstanceFunctions = {};
|
|
52
|
-
var factory = new IsObjectFactory();
|
|
53
|
-
var isAttachableNodeInstance = factory.create(requiredAttachableNodeInstanceFunctions, [
|
|
54
|
-
isNodeInstance,
|
|
55
|
-
isAttachableModuleInstance
|
|
56
|
-
]);
|
|
57
|
-
|
|
58
|
-
// src/attachable/asAttachableInstance.ts
|
|
59
|
-
var asAttachableNodeInstance = AsObjectFactory2.create(isAttachableNodeInstance);
|
|
60
|
-
|
|
61
|
-
// src/attachable/AttachableInstance.ts
|
|
62
|
-
import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/object";
|
|
63
|
-
var IsAttachableNodeInstanceFactory = class extends IsObjectFactory2 {
|
|
64
|
-
static {
|
|
65
|
-
__name(this, "IsAttachableNodeInstanceFactory");
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
// src/ChildCertification.ts
|
|
70
|
-
var ChildCertificationSchema = "network.xyo.child.certification";
|
|
71
|
-
|
|
72
|
-
// src/Config.ts
|
|
73
|
-
var NodeConfigSchema = "network.xyo.node.config";
|
|
74
|
-
export {
|
|
75
|
-
ChildCertificationSchema,
|
|
76
|
-
IsAttachableNodeInstanceFactory,
|
|
77
|
-
NodeAttachQuerySchema,
|
|
78
|
-
NodeAttachedQuerySchema,
|
|
79
|
-
NodeCertifyQuerySchema,
|
|
80
|
-
NodeConfigSchema,
|
|
81
|
-
NodeDetachQuerySchema,
|
|
82
|
-
NodeRegisteredQuerySchema,
|
|
83
|
-
asAttachableNodeInstance,
|
|
84
|
-
asNodeInstance,
|
|
85
|
-
asNodeModule,
|
|
86
|
-
isAttachableNodeInstance,
|
|
87
|
-
isNodeInstance,
|
|
88
|
-
isNodeModule,
|
|
89
|
-
requiredAttachableNodeInstanceFunctions,
|
|
90
|
-
withNodeInstance,
|
|
91
|
-
withNodeModule
|
|
92
|
-
};
|
|
1
|
+
var m=Object.defineProperty;var o=(t,i)=>m(t,"name",{value:i,configurable:!0});import{AsObjectFactory as w}from"@xylabs/object";import{IsObjectFactory as u}from"@xylabs/object";import{isAttachableModuleInstance as N}from"@xyo-network/module-model";import{AsObjectFactory as c}from"@xylabs/object";import{IsInstanceFactory as p,IsModuleFactory as x,isModuleInstance as f,WithFactory as n}from"@xyo-network/module-model";var b="network.xyo.query.node.attach";var r="network.xyo.query.node.attached";var q="network.xyo.query.node.certify";var Q="network.xyo.query.node.detach";var j="network.xyo.query.node.registered";var y=new p,e=y.create({attach:"function",attached:"function",certify:"function",detach:"function",registered:"function"},[f]),h=new x,a=h.create([r]),W=c.create(a),v=c.create(e),z=n.create(a),B=n.create(e);var l={},I=new u,s=I.create(l,[e,N]);var T=w.create(s);import{IsObjectFactory as A}from"@xylabs/object";var d=class extends A{static{o(this,"IsAttachableNodeInstanceFactory")}};var Z="network.xyo.child.certification";var $="network.xyo.node.config";export{Z as ChildCertificationSchema,d as IsAttachableNodeInstanceFactory,b as NodeAttachQuerySchema,r as NodeAttachedQuerySchema,q as NodeCertifyQuerySchema,$ as NodeConfigSchema,Q as NodeDetachQuerySchema,j as NodeRegisteredQuerySchema,T as asAttachableNodeInstance,v as asNodeInstance,W as asNodeModule,s as isAttachableNodeInstance,e as isNodeInstance,a as isNodeModule,l as requiredAttachableNodeInstanceFunctions,B as withNodeInstance,z as withNodeModule};
|
|
93
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -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'\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 } from './instance'\nimport { NodeModule } from './Node'\nimport { NodeAttachedQuerySchema } from './Queries'\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'\nimport { 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 { 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":"
|
|
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'\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 } from './instance'\nimport { NodeModule } from './Node'\nimport { NodeAttachedQuerySchema } from './Queries'\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'\nimport { 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 { 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":"+EAAA,OAASA,mBAAAA,MAAuB,iBCAhC,OAASC,mBAAAA,MAAmD,iBAC5D,OAASC,8BAAAA,MAAkC,4BCD3C,OAASC,mBAAAA,MAAuB,iBAChC,OAASC,qBAAAA,EAAmBC,mBAAAA,EAAiBC,oBAAAA,EAAkBC,eAAAA,MAAmB,4BCG3E,IAAMC,EAA+C,gCCDrD,IAAMC,EAAmD,kCCCzD,IAAMC,EAAiD,iCCAvD,IAAMC,EAA+C,gCCDrD,IAAMC,EAAuD,oCLIpE,IAAMC,EAAkB,IAAIC,EAEfC,EAAiBF,EAAgBG,OAC5C,CACEC,OAAQ,WACRC,SAAU,WACVC,QAAS,WACTC,OAAQ,WACRC,WAAY,UACd,EACA,CAACC,EAAiB,EAGdC,EAAgB,IAAIC,EAEbC,EAAeF,EAAcP,OAAO,CAACU,EAAwB,EAE7DC,EAAeC,EAAgBZ,OAAOS,CAAAA,EACtCI,EAAiBD,EAAgBZ,OAAOD,CAAAA,EACxCe,EAAiBC,EAAYf,OAAOS,CAAAA,EACpCO,EAAmBD,EAAYf,OAAOD,CAAAA,EDrB5C,IAAMkB,EAA2D,CAAC,EAGnEC,EAAU,IAAIC,EAEPC,EAA8DF,EAAQG,OAAOJ,EAAyC,CACjIK,EACAC,EACD,EDVM,IAAMC,EAA2BC,EAAgBC,OAAOC,CAAAA,EQJ/D,OAASC,mBAAAA,MAAkC,iBAcpC,IAAMC,EAAN,cAAyGC,CAAAA,CAdhH,MAcgHA,CAAAA,EAAAA,wCAAoB,ECX7H,IAAMC,EAA2B,kCCCjC,IAAMC,EAAmB","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"]}
|
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
import { NodeInstance } from './instance';
|
|
2
2
|
import { NodeModule } from './Node';
|
|
3
3
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
5
|
-
addToResolvers?: boolean
|
|
6
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
7
|
-
allowNameResolution?: boolean
|
|
4
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
5
|
+
addToResolvers?: boolean;
|
|
6
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
7
|
+
allowNameResolution?: boolean;
|
|
8
8
|
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 & {
|
|
9
|
-
archivist?: string
|
|
9
|
+
archivist?: string;
|
|
10
10
|
} & {
|
|
11
11
|
schema: "network.xyo.node.config";
|
|
12
12
|
}, "schema"> & {
|
|
13
13
|
schema: string;
|
|
14
14
|
};
|
|
15
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
16
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
15
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
16
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
17
17
|
}, import("./Node").NodeModuleEventData>>;
|
|
18
18
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
19
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
20
|
-
addToResolvers?: boolean
|
|
21
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
22
|
-
allowNameResolution?: boolean
|
|
19
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
20
|
+
addToResolvers?: boolean;
|
|
21
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
22
|
+
allowNameResolution?: boolean;
|
|
23
23
|
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 & {
|
|
24
|
-
archivist?: string
|
|
24
|
+
archivist?: string;
|
|
25
25
|
} & {
|
|
26
26
|
schema: "network.xyo.node.config";
|
|
27
27
|
}, "schema"> & {
|
|
28
28
|
schema: string;
|
|
29
29
|
};
|
|
30
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
31
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
30
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
31
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
32
32
|
}, import("./Node").NodeModuleEventData>>;
|
|
33
33
|
export declare const asNodeModule: {
|
|
34
34
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
35
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
36
|
-
addToResolvers?: boolean
|
|
37
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
38
|
-
allowNameResolution?: boolean
|
|
35
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
36
|
+
addToResolvers?: boolean;
|
|
37
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
38
|
+
allowNameResolution?: boolean;
|
|
39
39
|
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 & {
|
|
40
|
-
archivist?: string
|
|
40
|
+
archivist?: string;
|
|
41
41
|
} & {
|
|
42
42
|
schema: "network.xyo.node.config";
|
|
43
43
|
}, "schema"> & {
|
|
44
44
|
schema: string;
|
|
45
45
|
};
|
|
46
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
47
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
46
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
47
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
48
48
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
49
49
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
50
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
51
|
-
addToResolvers?: boolean
|
|
52
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
53
|
-
allowNameResolution?: boolean
|
|
50
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
51
|
+
addToResolvers?: boolean;
|
|
52
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
53
|
+
allowNameResolution?: boolean;
|
|
54
54
|
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 & {
|
|
55
|
-
archivist?: string
|
|
55
|
+
archivist?: string;
|
|
56
56
|
} & {
|
|
57
57
|
schema: "network.xyo.node.config";
|
|
58
58
|
}, "schema"> & {
|
|
59
59
|
schema: string;
|
|
60
60
|
};
|
|
61
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
62
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
61
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
62
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
63
63
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
64
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
65
|
-
addToResolvers?: boolean
|
|
66
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
67
|
-
allowNameResolution?: boolean
|
|
64
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
65
|
+
addToResolvers?: boolean;
|
|
66
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
67
|
+
allowNameResolution?: boolean;
|
|
68
68
|
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 & {
|
|
69
|
-
archivist?: string
|
|
69
|
+
archivist?: string;
|
|
70
70
|
} & {
|
|
71
71
|
schema: "network.xyo.node.config";
|
|
72
72
|
}, "schema"> & {
|
|
73
73
|
schema: string;
|
|
74
74
|
};
|
|
75
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
76
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
75
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
76
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
77
77
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
78
78
|
};
|
|
79
79
|
export declare const asNodeInstance: {
|
|
80
80
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
81
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
82
|
-
addToResolvers?: boolean
|
|
83
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
84
|
-
allowNameResolution?: boolean
|
|
81
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
82
|
+
addToResolvers?: boolean;
|
|
83
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
84
|
+
allowNameResolution?: boolean;
|
|
85
85
|
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 & {
|
|
86
|
-
archivist?: string
|
|
86
|
+
archivist?: string;
|
|
87
87
|
} & {
|
|
88
88
|
schema: "network.xyo.node.config";
|
|
89
89
|
}, "schema"> & {
|
|
90
90
|
schema: string;
|
|
91
91
|
};
|
|
92
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
93
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
92
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
93
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
94
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
95
95
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
96
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
97
|
-
addToResolvers?: boolean
|
|
98
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
99
|
-
allowNameResolution?: boolean
|
|
96
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
97
|
+
addToResolvers?: boolean;
|
|
98
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
99
|
+
allowNameResolution?: boolean;
|
|
100
100
|
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 & {
|
|
101
|
-
archivist?: string
|
|
101
|
+
archivist?: string;
|
|
102
102
|
} & {
|
|
103
103
|
schema: "network.xyo.node.config";
|
|
104
104
|
}, "schema"> & {
|
|
105
105
|
schema: string;
|
|
106
106
|
};
|
|
107
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
108
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
107
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
108
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
109
109
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
110
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
111
|
-
addToResolvers?: boolean
|
|
112
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
113
|
-
allowNameResolution?: boolean
|
|
110
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
111
|
+
addToResolvers?: boolean;
|
|
112
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
113
|
+
allowNameResolution?: boolean;
|
|
114
114
|
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 & {
|
|
115
|
-
archivist?: string
|
|
115
|
+
archivist?: string;
|
|
116
116
|
} & {
|
|
117
117
|
schema: "network.xyo.node.config";
|
|
118
118
|
}, "schema"> & {
|
|
119
119
|
schema: string;
|
|
120
120
|
};
|
|
121
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
122
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
121
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
122
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
123
123
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
124
124
|
};
|
|
125
125
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
126
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
127
|
-
addToResolvers?: boolean
|
|
128
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
129
|
-
allowNameResolution?: boolean
|
|
126
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
127
|
+
addToResolvers?: boolean;
|
|
128
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
129
|
+
allowNameResolution?: boolean;
|
|
130
130
|
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 & {
|
|
131
|
-
archivist?: string
|
|
131
|
+
archivist?: string;
|
|
132
132
|
} & {
|
|
133
133
|
schema: "network.xyo.node.config";
|
|
134
134
|
}, "schema"> & {
|
|
135
135
|
schema: string;
|
|
136
136
|
};
|
|
137
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
138
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
137
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
138
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
139
139
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
140
140
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
141
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
142
|
-
addToResolvers?: boolean
|
|
143
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
144
|
-
allowNameResolution?: boolean
|
|
141
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
142
|
+
addToResolvers?: boolean;
|
|
143
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
144
|
+
allowNameResolution?: boolean;
|
|
145
145
|
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 & {
|
|
146
|
-
archivist?: string
|
|
146
|
+
archivist?: string;
|
|
147
147
|
} & {
|
|
148
148
|
schema: "network.xyo.node.config";
|
|
149
149
|
}, "schema"> & {
|
|
150
150
|
schema: string;
|
|
151
151
|
};
|
|
152
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
153
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
152
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
153
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
154
154
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
155
155
|
//# 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,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;yCAS1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;;yCAAkD,CAAA;AAE3E,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;yCAS1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;;yCAAkD,CAAA;AAE3E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;4DAnBzB,iBAAiB,iCAAiC,gBAEpC;;;;;;;;;;;;;;;4DAE8B,iBAEzC;;;;;;;;;;;;;;+DAGkB,gBACP;CASkD,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;4DApB3B,iBAAiB,iCAAiC,gBAEpC;;;;;;;;;;;;;;;4DAE8B,iBAEzC;;;;;;;;;;;;;;+DAGkB,gBACP;CAUsD,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;gEAAqC,CAAA"}
|