@xyo-network/node-model 2.106.0-rc.5 → 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.
Files changed (49) hide show
  1. package/dist/browser/attachable/asAttachableInstance.d.cts +21 -21
  2. package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -1
  3. package/dist/browser/attachable/asAttachableInstance.d.mts +21 -21
  4. package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -1
  5. package/dist/browser/attachable/asAttachableInstance.d.ts +21 -21
  6. package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -1
  7. package/dist/browser/index.cjs +1 -113
  8. package/dist/browser/index.cjs.map +1 -1
  9. package/dist/browser/index.js +1 -92
  10. package/dist/browser/index.js.map +1 -1
  11. package/dist/browser/typeChecks.d.cts +70 -70
  12. package/dist/browser/typeChecks.d.cts.map +1 -1
  13. package/dist/browser/typeChecks.d.mts +70 -70
  14. package/dist/browser/typeChecks.d.mts.map +1 -1
  15. package/dist/browser/typeChecks.d.ts +70 -70
  16. package/dist/browser/typeChecks.d.ts.map +1 -1
  17. package/dist/neutral/attachable/asAttachableInstance.d.cts +21 -21
  18. package/dist/neutral/attachable/asAttachableInstance.d.cts.map +1 -1
  19. package/dist/neutral/attachable/asAttachableInstance.d.mts +21 -21
  20. package/dist/neutral/attachable/asAttachableInstance.d.mts.map +1 -1
  21. package/dist/neutral/attachable/asAttachableInstance.d.ts +21 -21
  22. package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
  23. package/dist/neutral/index.cjs +1 -113
  24. package/dist/neutral/index.cjs.map +1 -1
  25. package/dist/neutral/index.js +1 -92
  26. package/dist/neutral/index.js.map +1 -1
  27. package/dist/neutral/typeChecks.d.cts +70 -70
  28. package/dist/neutral/typeChecks.d.cts.map +1 -1
  29. package/dist/neutral/typeChecks.d.mts +70 -70
  30. package/dist/neutral/typeChecks.d.mts.map +1 -1
  31. package/dist/neutral/typeChecks.d.ts +70 -70
  32. package/dist/neutral/typeChecks.d.ts.map +1 -1
  33. package/dist/node/attachable/asAttachableInstance.d.cts +21 -21
  34. package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -1
  35. package/dist/node/attachable/asAttachableInstance.d.mts +21 -21
  36. package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -1
  37. package/dist/node/attachable/asAttachableInstance.d.ts +21 -21
  38. package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -1
  39. package/dist/node/index.cjs +1 -132
  40. package/dist/node/index.cjs.map +1 -1
  41. package/dist/node/index.js +1 -91
  42. package/dist/node/index.js.map +1 -1
  43. package/dist/node/typeChecks.d.cts +70 -70
  44. package/dist/node/typeChecks.d.cts.map +1 -1
  45. package/dist/node/typeChecks.d.mts +70 -70
  46. package/dist/node/typeChecks.d.mts.map +1 -1
  47. package/dist/node/typeChecks.d.ts +70 -70
  48. package/dist/node/typeChecks.d.ts.map +1 -1
  49. package/package.json +9 -10
@@ -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":";;;;;;;;;;;;;;;;;;;;;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,kCAAN,cAAyGC,+BAAAA;EAdhH,OAcgHA;;;AAAoB;;;ACX7H,IAAMC,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"]}
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"]}
@@ -1,93 +1,2 @@
1
- var __defProp = Object.defineProperty;
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":";;;;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,kCAAN,cAAyGC,iBAAAA;EAdhH,OAcgHA;;;AAAoB;;;ACX7H,IAAMC,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"]}
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" | undefined;
5
- addToResolvers?: boolean | undefined;
6
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
7
- allowNameResolution?: boolean | undefined;
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 | undefined;
9
+ archivist?: string;
10
10
  } & {
11
11
  schema: "network.xyo.node.config";
12
12
  }, "schema"> & {
13
13
  schema: string;
14
14
  };
15
- ephemeralQueryAccountEnabled?: boolean | undefined;
16
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
20
- addToResolvers?: boolean | undefined;
21
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
22
- allowNameResolution?: boolean | undefined;
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 | undefined;
24
+ archivist?: string;
25
25
  } & {
26
26
  schema: "network.xyo.node.config";
27
27
  }, "schema"> & {
28
28
  schema: string;
29
29
  };
30
- ephemeralQueryAccountEnabled?: boolean | undefined;
31
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
36
- addToResolvers?: boolean | undefined;
37
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
38
- allowNameResolution?: boolean | undefined;
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 | undefined;
40
+ archivist?: string;
41
41
  } & {
42
42
  schema: "network.xyo.node.config";
43
43
  }, "schema"> & {
44
44
  schema: string;
45
45
  };
46
- ephemeralQueryAccountEnabled?: boolean | undefined;
47
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
51
- addToResolvers?: boolean | undefined;
52
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
53
- allowNameResolution?: boolean | undefined;
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 | undefined;
55
+ archivist?: string;
56
56
  } & {
57
57
  schema: "network.xyo.node.config";
58
58
  }, "schema"> & {
59
59
  schema: string;
60
60
  };
61
- ephemeralQueryAccountEnabled?: boolean | undefined;
62
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
65
- addToResolvers?: boolean | undefined;
66
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
67
- allowNameResolution?: boolean | undefined;
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 | undefined;
69
+ archivist?: string;
70
70
  } & {
71
71
  schema: "network.xyo.node.config";
72
72
  }, "schema"> & {
73
73
  schema: string;
74
74
  };
75
- ephemeralQueryAccountEnabled?: boolean | undefined;
76
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
82
- addToResolvers?: boolean | undefined;
83
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
84
- allowNameResolution?: boolean | undefined;
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 | undefined;
86
+ archivist?: string;
87
87
  } & {
88
88
  schema: "network.xyo.node.config";
89
89
  }, "schema"> & {
90
90
  schema: string;
91
91
  };
92
- ephemeralQueryAccountEnabled?: boolean | undefined;
93
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
97
- addToResolvers?: boolean | undefined;
98
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
99
- allowNameResolution?: boolean | undefined;
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 | undefined;
101
+ archivist?: string;
102
102
  } & {
103
103
  schema: "network.xyo.node.config";
104
104
  }, "schema"> & {
105
105
  schema: string;
106
106
  };
107
- ephemeralQueryAccountEnabled?: boolean | undefined;
108
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
111
- addToResolvers?: boolean | undefined;
112
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
113
- allowNameResolution?: boolean | undefined;
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 | undefined;
115
+ archivist?: string;
116
116
  } & {
117
117
  schema: "network.xyo.node.config";
118
118
  }, "schema"> & {
119
119
  schema: string;
120
120
  };
121
- ephemeralQueryAccountEnabled?: boolean | undefined;
122
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
127
- addToResolvers?: boolean | undefined;
128
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
129
- allowNameResolution?: boolean | undefined;
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 | undefined;
131
+ archivist?: string;
132
132
  } & {
133
133
  schema: "network.xyo.node.config";
134
134
  }, "schema"> & {
135
135
  schema: string;
136
136
  };
137
- ephemeralQueryAccountEnabled?: boolean | undefined;
138
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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" | undefined;
142
- addToResolvers?: boolean | undefined;
143
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
144
- allowNameResolution?: boolean | undefined;
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 | undefined;
146
+ archivist?: string;
147
147
  } & {
148
148
  schema: "network.xyo.node.config";
149
149
  }, "schema"> & {
150
150
  schema: string;
151
151
  };
152
- ephemeralQueryAccountEnabled?: boolean | undefined;
153
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;gEAAqC,CAAA"}
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"}