@xyo-network/node-model 2.93.4 → 2.93.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/browser/Node.d.cts +2 -2
  2. package/dist/browser/Node.d.cts.map +1 -1
  3. package/dist/browser/Node.d.mts +2 -2
  4. package/dist/browser/Node.d.mts.map +1 -1
  5. package/dist/browser/Node.d.ts +2 -2
  6. package/dist/browser/Node.d.ts.map +1 -1
  7. package/dist/browser/attachable/AttachableInstance.d.cts +10 -0
  8. package/dist/browser/attachable/AttachableInstance.d.cts.map +1 -0
  9. package/dist/browser/attachable/AttachableInstance.d.mts +10 -0
  10. package/dist/browser/attachable/AttachableInstance.d.mts.map +1 -0
  11. package/dist/browser/attachable/AttachableInstance.d.ts +10 -0
  12. package/dist/browser/attachable/AttachableInstance.d.ts.map +1 -0
  13. package/dist/browser/attachable/asAttachableInstance.d.cts +44 -0
  14. package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -0
  15. package/dist/browser/attachable/asAttachableInstance.d.mts +44 -0
  16. package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -0
  17. package/dist/browser/attachable/asAttachableInstance.d.ts +44 -0
  18. package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -0
  19. package/dist/browser/attachable/index.d.cts +4 -0
  20. package/dist/browser/attachable/index.d.cts.map +1 -0
  21. package/dist/browser/attachable/index.d.mts +4 -0
  22. package/dist/browser/attachable/index.d.mts.map +1 -0
  23. package/dist/browser/attachable/index.d.ts +4 -0
  24. package/dist/browser/attachable/index.d.ts.map +1 -0
  25. package/dist/browser/attachable/isAttachableInstance.d.cts +5 -0
  26. package/dist/browser/attachable/isAttachableInstance.d.cts.map +1 -0
  27. package/dist/browser/attachable/isAttachableInstance.d.mts +5 -0
  28. package/dist/browser/attachable/isAttachableInstance.d.mts.map +1 -0
  29. package/dist/browser/attachable/isAttachableInstance.d.ts +5 -0
  30. package/dist/browser/attachable/isAttachableInstance.d.ts.map +1 -0
  31. package/dist/browser/index.cjs +37 -4
  32. package/dist/browser/index.cjs.map +1 -1
  33. package/dist/browser/index.d.cts +1 -0
  34. package/dist/browser/index.d.cts.map +1 -1
  35. package/dist/browser/index.d.mts +1 -0
  36. package/dist/browser/index.d.mts.map +1 -1
  37. package/dist/browser/index.d.ts +1 -0
  38. package/dist/browser/index.d.ts.map +1 -1
  39. package/dist/browser/index.js +39 -4
  40. package/dist/browser/index.js.map +1 -1
  41. package/dist/browser/typeChecks.d.cts +10 -0
  42. package/dist/browser/typeChecks.d.cts.map +1 -1
  43. package/dist/browser/typeChecks.d.mts +10 -0
  44. package/dist/browser/typeChecks.d.mts.map +1 -1
  45. package/dist/browser/typeChecks.d.ts +10 -0
  46. package/dist/browser/typeChecks.d.ts.map +1 -1
  47. package/dist/node/Node.d.cts +2 -2
  48. package/dist/node/Node.d.cts.map +1 -1
  49. package/dist/node/Node.d.mts +2 -2
  50. package/dist/node/Node.d.mts.map +1 -1
  51. package/dist/node/Node.d.ts +2 -2
  52. package/dist/node/Node.d.ts.map +1 -1
  53. package/dist/node/attachable/AttachableInstance.d.cts +10 -0
  54. package/dist/node/attachable/AttachableInstance.d.cts.map +1 -0
  55. package/dist/node/attachable/AttachableInstance.d.mts +10 -0
  56. package/dist/node/attachable/AttachableInstance.d.mts.map +1 -0
  57. package/dist/node/attachable/AttachableInstance.d.ts +10 -0
  58. package/dist/node/attachable/AttachableInstance.d.ts.map +1 -0
  59. package/dist/node/attachable/asAttachableInstance.d.cts +44 -0
  60. package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -0
  61. package/dist/node/attachable/asAttachableInstance.d.mts +44 -0
  62. package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -0
  63. package/dist/node/attachable/asAttachableInstance.d.ts +44 -0
  64. package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -0
  65. package/dist/node/attachable/index.d.cts +4 -0
  66. package/dist/node/attachable/index.d.cts.map +1 -0
  67. package/dist/node/attachable/index.d.mts +4 -0
  68. package/dist/node/attachable/index.d.mts.map +1 -0
  69. package/dist/node/attachable/index.d.ts +4 -0
  70. package/dist/node/attachable/index.d.ts.map +1 -0
  71. package/dist/node/attachable/isAttachableInstance.d.cts +5 -0
  72. package/dist/node/attachable/isAttachableInstance.d.cts.map +1 -0
  73. package/dist/node/attachable/isAttachableInstance.d.mts +5 -0
  74. package/dist/node/attachable/isAttachableInstance.d.mts.map +1 -0
  75. package/dist/node/attachable/isAttachableInstance.d.ts +5 -0
  76. package/dist/node/attachable/isAttachableInstance.d.ts.map +1 -0
  77. package/dist/node/index.cjs +40 -4
  78. package/dist/node/index.cjs.map +1 -1
  79. package/dist/node/index.d.cts +1 -0
  80. package/dist/node/index.d.cts.map +1 -1
  81. package/dist/node/index.d.mts +1 -0
  82. package/dist/node/index.d.mts.map +1 -1
  83. package/dist/node/index.d.ts +1 -0
  84. package/dist/node/index.d.ts.map +1 -1
  85. package/dist/node/index.js +38 -4
  86. package/dist/node/index.js.map +1 -1
  87. package/dist/node/typeChecks.d.cts +10 -0
  88. package/dist/node/typeChecks.d.cts.map +1 -1
  89. package/dist/node/typeChecks.d.mts +10 -0
  90. package/dist/node/typeChecks.d.mts.map +1 -1
  91. package/dist/node/typeChecks.d.ts +10 -0
  92. package/dist/node/typeChecks.d.ts.map +1 -1
  93. package/package.json +4 -4
  94. package/src/Node.ts +2 -2
  95. package/src/attachable/AttachableInstance.ts +14 -0
  96. package/src/attachable/asAttachableInstance.ts +5 -0
  97. package/src/attachable/index.ts +3 -0
  98. package/src/attachable/isAttachableInstance.ts +15 -0
  99. package/src/index.ts +1 -0
@@ -0,0 +1,4 @@
1
+ export * from './asAttachableInstance';
2
+ export * from './AttachableInstance';
3
+ export * from './isAttachableInstance';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableNodeInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,eAAO,MAAM,uCAAuC,EAAE,eAAoB,CAAA;AAK1E,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,sBAAsB,CAGrE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableNodeInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,eAAO,MAAM,uCAAuC,EAAE,eAAoB,CAAA;AAK1E,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,sBAAsB,CAGrE,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableNodeInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableNodeInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,eAAO,MAAM,uCAAuC,EAAE,eAAoB,CAAA;AAK1E,eAAO,MAAM,wBAAwB,EAAE,SAAS,CAAC,sBAAsB,CAGrE,CAAA"}
@@ -3,6 +3,7 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
7
  var __export = (target, all) => {
7
8
  for (var name in all)
8
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -20,22 +21,34 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
21
  // src/index.ts
21
22
  var src_exports = {};
22
23
  __export(src_exports, {
24
+ IsAttachableNodeInstanceFactory: () => IsAttachableNodeInstanceFactory,
23
25
  NodeAttachQuerySchema: () => NodeAttachQuerySchema,
24
26
  NodeAttachedQuerySchema: () => NodeAttachedQuerySchema,
25
27
  NodeConfigSchema: () => NodeConfigSchema,
26
28
  NodeDetachQuerySchema: () => NodeDetachQuerySchema,
27
29
  NodeRegisteredQuerySchema: () => NodeRegisteredQuerySchema,
30
+ asAttachableNodeInstance: () => asAttachableNodeInstance,
28
31
  asNodeInstance: () => asNodeInstance,
29
32
  asNodeModule: () => asNodeModule,
33
+ isAttachableNodeInstance: () => isAttachableNodeInstance,
30
34
  isNodeInstance: () => isNodeInstance,
31
35
  isNodeModule: () => isNodeModule,
36
+ requiredAttachableNodeInstanceFunctions: () => requiredAttachableNodeInstanceFunctions,
32
37
  withNodeInstance: () => withNodeInstance,
33
38
  withNodeModule: () => withNodeModule
34
39
  });
35
40
  module.exports = __toCommonJS(src_exports);
36
41
 
37
- // src/Config.ts
38
- var NodeConfigSchema = "network.xyo.node.config";
42
+ // src/attachable/asAttachableInstance.ts
43
+ var import_object3 = require("@xylabs/object");
44
+
45
+ // src/attachable/isAttachableInstance.ts
46
+ var import_object2 = require("@xylabs/object");
47
+ var import_module_model2 = require("@xyo-network/module-model");
48
+
49
+ // src/typeChecks.ts
50
+ var import_object = require("@xylabs/object");
51
+ var import_module_model = require("@xyo-network/module-model");
39
52
 
40
53
  // src/Queries/Attach.ts
41
54
  var NodeAttachQuerySchema = "network.xyo.query.node.attach";
@@ -50,8 +63,6 @@ var NodeDetachQuerySchema = "network.xyo.query.node.detach";
50
63
  var NodeRegisteredQuerySchema = "network.xyo.query.node.registered";
51
64
 
52
65
  // src/typeChecks.ts
53
- var import_object = require("@xylabs/object");
54
- var import_module_model = require("@xyo-network/module-model");
55
66
  var instanceFactory = new import_module_model.IsInstanceFactory();
56
67
  var isNodeInstance = instanceFactory.create({
57
68
  attach: "function",
@@ -72,17 +83,42 @@ var asNodeModule = import_object.AsObjectFactory.create(isNodeModule);
72
83
  var asNodeInstance = import_object.AsObjectFactory.create(isNodeInstance);
73
84
  var withNodeModule = import_module_model.WithFactory.create(isNodeModule);
74
85
  var withNodeInstance = import_module_model.WithFactory.create(isNodeInstance);
86
+
87
+ // src/attachable/isAttachableInstance.ts
88
+ var requiredAttachableNodeInstanceFunctions = {};
89
+ var factory = new import_object2.IsObjectFactory();
90
+ var isAttachableNodeInstance = factory.create(requiredAttachableNodeInstanceFunctions, [
91
+ isNodeInstance,
92
+ import_module_model2.isAttachableModuleInstance
93
+ ]);
94
+
95
+ // src/attachable/asAttachableInstance.ts
96
+ var asAttachableNodeInstance = import_object3.AsObjectFactory.create(isAttachableNodeInstance);
97
+
98
+ // src/attachable/AttachableInstance.ts
99
+ var import_object4 = require("@xylabs/object");
100
+ var _IsAttachableNodeInstanceFactory = class _IsAttachableNodeInstanceFactory extends import_object4.IsObjectFactory {
101
+ };
102
+ __name(_IsAttachableNodeInstanceFactory, "IsAttachableNodeInstanceFactory");
103
+ var IsAttachableNodeInstanceFactory = _IsAttachableNodeInstanceFactory;
104
+
105
+ // src/Config.ts
106
+ var NodeConfigSchema = "network.xyo.node.config";
75
107
  // Annotate the CommonJS export names for ESM import in node:
76
108
  0 && (module.exports = {
109
+ IsAttachableNodeInstanceFactory,
77
110
  NodeAttachQuerySchema,
78
111
  NodeAttachedQuerySchema,
79
112
  NodeConfigSchema,
80
113
  NodeDetachQuerySchema,
81
114
  NodeRegisteredQuerySchema,
115
+ asAttachableNodeInstance,
82
116
  asNodeInstance,
83
117
  asNodeModule,
118
+ isAttachableNodeInstance,
84
119
  isNodeInstance,
85
120
  isNodeModule,
121
+ requiredAttachableNodeInstanceFunctions,
86
122
  withNodeInstance,
87
123
  withNodeModule
88
124
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Config'\nexport * from './EventsModels'\nexport * from './Node'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config'\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n schema: TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema\n },\n TConfig\n >,\n TSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachQuerySchema = 'network.xyo.query.node.attach'\nexport const NodeAttachQuerySchema: NodeAttachQuerySchema = 'network.xyo.query.node.attach'\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n nameOrAddress: string\n schema: NodeAttachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\nexport const NodeAttachedQuerySchema: NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeDetachQuerySchema = 'network.xyo.query.node.detach'\nexport const NodeDetachQuerySchema: NodeDetachQuerySchema = 'network.xyo.query.node.detach'\n\nexport type NodeDetachQuery = Query<{\n nameOrAddress: string\n schema: NodeDetachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\nexport const NodeRegisteredQuerySchema: NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule } from './Node'\nimport { NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema } from './Queries'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;ACIO,IAAMA,mBAAmB;;;ACDzB,IAAMC,wBAA+C;;;ACArD,IAAMC,0BAAmD;;;ACAzD,IAAMC,wBAA+C;;;ACArD,IAAMC,4BAAuD;;;ACHpE,oBAAgC;AAChC,0BAAkF;AAKlF,IAAMC,kBAAkB,IAAIC,sCAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,oCAAAA;AAEnB,IAAMC,eAAeF,cAAcN,OAAO;EAACS;EAAyBC;EAAuBC;EAAuBC;CAA0B;AAE5I,IAAMC,eAAeC,8BAAgBd,OAAOQ,YAAAA;AAC5C,IAAMO,iBAAiBD,8BAAgBd,OAAOD,cAAAA;AAC9C,IAAMiB,iBAAiBC,gCAAYjB,OAAOQ,YAAAA;AAC1C,IAAMU,mBAAmBD,gCAAYjB,OAAOD,cAAAA;","names":["NodeConfigSchema","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","NodeAttachQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance"]}
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/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts"],"sourcesContent":["export * from './attachable'\nexport * from './Config'\nexport * from './EventsModels'\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, NodeModule } from './Node'\nimport { NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema } from './Queries'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachQuerySchema = 'network.xyo.query.node.attach'\nexport const NodeAttachQuerySchema: NodeAttachQuerySchema = 'network.xyo.query.node.attach'\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n nameOrAddress: string\n schema: NodeAttachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\nexport const NodeAttachedQuerySchema: NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeDetachQuerySchema = 'network.xyo.query.node.detach'\nexport const NodeDetachQuerySchema: NodeDetachQuerySchema = 'network.xyo.query.node.detach'\n\nexport type NodeDetachQuery = Query<{\n nameOrAddress: string\n schema: NodeDetachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\nexport const NodeRegisteredQuerySchema: NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule, NodeModuleEventData } from '../Node'\nimport { NodeParams } from '../Params'\n\nexport interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>\n extends NodeModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n NodeInstance<TParams, TEventData> {}\n\nexport type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>\n\nexport class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {}\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config'\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n schema: TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema\n },\n TConfig\n >,\n TSchema\n>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAA,iBAAgC;;;ACAhC,IAAAC,iBAA4D;AAC5D,IAAAC,uBAA2C;;;ACD3C,oBAAgC;AAChC,0BAAkF;;;ACE3E,IAAMC,wBAA+C;;;ACArD,IAAMC,0BAAmD;;;ACAzD,IAAMC,wBAA+C;;;ACArD,IAAMC,4BAAuD;;;AJGpE,IAAMC,kBAAkB,IAAIC,sCAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,oCAAAA;AAEnB,IAAMC,eAAeF,cAAcN,OAAO;EAACS;EAAyBC;EAAuBC;EAAuBC;CAA0B;AAE5I,IAAMC,eAAeC,8BAAgBd,OAAOQ,YAAAA;AAC5C,IAAMO,iBAAiBD,8BAAgBd,OAAOD,cAAAA;AAC9C,IAAMiB,iBAAiBC,gCAAYjB,OAAOQ,YAAAA;AAC1C,IAAMU,mBAAmBD,gCAAYjB,OAAOD,cAAAA;;;ADnB5C,IAAMoB,0CAA2D,CAAC;AAGzE,IAAMC,UAAU,IAAIC,+BAAAA;AAEb,IAAMC,2BAA8DF,QAAQG,OAAOJ,yCAAyC;EACjIK;EACAC;CACD;;;ADVM,IAAMC,2BAA2BC,+BAAgBC,OAAOC,wBAAAA;;;AOJ/D,IAAAC,iBAA2C;AAapC,IAAMC,mCAAN,MAAMA,yCAAmGC,+BAAAA;AAAoB;AAApBA;AAAzG,IAAMD,kCAAN;;;ACTA,IAAME,mBAAmB;","names":["import_object","import_object","import_module_model","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","NodeAttachQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance","requiredAttachableNodeInstanceFunctions","factory","IsObjectFactory","isAttachableNodeInstance","create","isNodeInstance","isAttachableModuleInstance","asAttachableNodeInstance","AsObjectFactory","create","isAttachableNodeInstance","import_object","IsAttachableNodeInstanceFactory","IsObjectFactory","NodeConfigSchema"]}
@@ -1,3 +1,4 @@
1
+ export * from './attachable';
1
2
  export * from './Config';
2
3
  export * from './EventsModels';
3
4
  export * from './Node';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,3 +1,4 @@
1
+ export * from './attachable';
1
2
  export * from './Config';
2
3
  export * from './EventsModels';
3
4
  export * from './Node';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,3 +1,4 @@
1
+ export * from './attachable';
1
2
  export * from './Config';
2
3
  export * from './EventsModels';
3
4
  export * from './Node';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,5 +1,16 @@
1
- // src/Config.ts
2
- var NodeConfigSchema = "network.xyo.node.config";
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";
3
14
 
4
15
  // src/Queries/Attach.ts
5
16
  var NodeAttachQuerySchema = "network.xyo.query.node.attach";
@@ -14,8 +25,6 @@ var NodeDetachQuerySchema = "network.xyo.query.node.detach";
14
25
  var NodeRegisteredQuerySchema = "network.xyo.query.node.registered";
15
26
 
16
27
  // src/typeChecks.ts
17
- import { AsObjectFactory } from "@xylabs/object";
18
- import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
19
28
  var instanceFactory = new IsInstanceFactory();
20
29
  var isNodeInstance = instanceFactory.create({
21
30
  attach: "function",
@@ -36,16 +45,41 @@ var asNodeModule = AsObjectFactory.create(isNodeModule);
36
45
  var asNodeInstance = AsObjectFactory.create(isNodeInstance);
37
46
  var withNodeModule = WithFactory.create(isNodeModule);
38
47
  var withNodeInstance = WithFactory.create(isNodeInstance);
48
+
49
+ // src/attachable/isAttachableInstance.ts
50
+ var requiredAttachableNodeInstanceFunctions = {};
51
+ var factory = new IsObjectFactory();
52
+ var isAttachableNodeInstance = factory.create(requiredAttachableNodeInstanceFunctions, [
53
+ isNodeInstance,
54
+ isAttachableModuleInstance
55
+ ]);
56
+
57
+ // src/attachable/asAttachableInstance.ts
58
+ var asAttachableNodeInstance = AsObjectFactory2.create(isAttachableNodeInstance);
59
+
60
+ // src/attachable/AttachableInstance.ts
61
+ import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/object";
62
+ var _IsAttachableNodeInstanceFactory = class _IsAttachableNodeInstanceFactory extends IsObjectFactory2 {
63
+ };
64
+ __name(_IsAttachableNodeInstanceFactory, "IsAttachableNodeInstanceFactory");
65
+ var IsAttachableNodeInstanceFactory = _IsAttachableNodeInstanceFactory;
66
+
67
+ // src/Config.ts
68
+ var NodeConfigSchema = "network.xyo.node.config";
39
69
  export {
70
+ IsAttachableNodeInstanceFactory,
40
71
  NodeAttachQuerySchema,
41
72
  NodeAttachedQuerySchema,
42
73
  NodeConfigSchema,
43
74
  NodeDetachQuerySchema,
44
75
  NodeRegisteredQuerySchema,
76
+ asAttachableNodeInstance,
45
77
  asNodeInstance,
46
78
  asNodeModule,
79
+ isAttachableNodeInstance,
47
80
  isNodeInstance,
48
81
  isNodeModule,
82
+ requiredAttachableNodeInstanceFunctions,
49
83
  withNodeInstance,
50
84
  withNodeModule
51
85
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/typeChecks.ts"],"sourcesContent":["import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config'\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n schema: TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema\n },\n TConfig\n >,\n TSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachQuerySchema = 'network.xyo.query.node.attach'\nexport const NodeAttachQuerySchema: NodeAttachQuerySchema = 'network.xyo.query.node.attach'\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n nameOrAddress: string\n schema: NodeAttachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\nexport const NodeAttachedQuerySchema: NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeDetachQuerySchema = 'network.xyo.query.node.detach'\nexport const NodeDetachQuerySchema: NodeDetachQuerySchema = 'network.xyo.query.node.detach'\n\nexport type NodeDetachQuery = Query<{\n nameOrAddress: string\n schema: NodeDetachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\nexport const NodeRegisteredQuerySchema: NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule } from './Node'\nimport { NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema } from './Queries'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n"],"mappings":";AAIO,IAAMA,mBAAmB;;;ACDzB,IAAMC,wBAA+C;;;ACArD,IAAMC,0BAAmD;;;ACAzD,IAAMC,wBAA+C;;;ACArD,IAAMC,4BAAuD;;;ACHpE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAKlF,IAAMC,kBAAkB,IAAIC,kBAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,gBAAAA;AAEnB,IAAMC,eAAeF,cAAcN,OAAO;EAACS;EAAyBC;EAAuBC;EAAuBC;CAA0B;AAE5I,IAAMC,eAAeC,gBAAgBd,OAAOQ,YAAAA;AAC5C,IAAMO,iBAAiBD,gBAAgBd,OAAOD,cAAAA;AAC9C,IAAMiB,iBAAiBC,YAAYjB,OAAOQ,YAAAA;AAC1C,IAAMU,mBAAmBD,YAAYjB,OAAOD,cAAAA;","names":["NodeConfigSchema","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","NodeAttachQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance"]}
1
+ {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/Attach.ts","../../src/Queries/Attached.ts","../../src/Queries/Detach.ts","../../src/Queries/Registered.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableNodeInstance } from './isAttachableInstance'\n\nexport const asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isNodeInstance } from '../typeChecks'\nimport { AttachableNodeInstance } from './AttachableInstance'\n\nexport const requiredAttachableNodeInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableNodeInstance>()\n\nexport const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance> = factory.create(requiredAttachableNodeInstanceFunctions, [\n isNodeInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule } from './Node'\nimport { NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema } from './Queries'\n\nconst instanceFactory = new IsInstanceFactory<NodeInstance>()\n\nexport const isNodeInstance = instanceFactory.create(\n {\n attach: 'function',\n attached: 'function',\n detach: 'function',\n registered: 'function',\n },\n [isModuleInstance],\n)\n\nconst moduleFactory = new IsModuleFactory<NodeModule>()\n\nexport const isNodeModule = moduleFactory.create([NodeAttachedQuerySchema, NodeAttachQuerySchema, NodeDetachQuerySchema, NodeRegisteredQuerySchema])\n\nexport const asNodeModule = AsObjectFactory.create(isNodeModule)\nexport const asNodeInstance = AsObjectFactory.create(isNodeInstance)\nexport const withNodeModule = WithFactory.create(isNodeModule)\nexport const withNodeInstance = WithFactory.create(isNodeInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachQuerySchema = 'network.xyo.query.node.attach'\nexport const NodeAttachQuerySchema: NodeAttachQuerySchema = 'network.xyo.query.node.attach'\n\nexport type NodeAttachQuery = Query<{\n external?: boolean\n nameOrAddress: string\n schema: NodeAttachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\nexport const NodeAttachedQuerySchema: NodeAttachedQuerySchema = 'network.xyo.query.node.attached'\n\nexport type NodeAttachedQuery = Query<{\n schema: NodeAttachedQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeDetachQuerySchema = 'network.xyo.query.node.detach'\nexport const NodeDetachQuerySchema: NodeDetachQuerySchema = 'network.xyo.query.node.detach'\n\nexport type NodeDetachQuery = Query<{\n nameOrAddress: string\n schema: NodeDetachQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\nexport const NodeRegisteredQuerySchema: NodeRegisteredQuerySchema = 'network.xyo.query.node.registered'\n\nexport type NodeRegisteredQuery = Query<{\n schema: NodeRegisteredQuerySchema\n}>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { NodeInstance, NodeModule, NodeModuleEventData } from '../Node'\nimport { NodeParams } from '../Params'\n\nexport interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>\n extends NodeModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n NodeInstance<TParams, TEventData> {}\n\nexport type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>\n\nexport class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {}\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const NodeConfigSchema = 'network.xyo.node.config'\nexport type NodeConfigSchema = typeof NodeConfigSchema\n\nexport type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n schema: TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema\n },\n TConfig\n >,\n TSchema\n>\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACAhC,SAASC,uBAAmD;AAC5D,SAASC,kCAAkC;;;ACD3C,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;;;ACE3E,IAAMC,wBAA+C;;;ACArD,IAAMC,0BAAmD;;;ACAzD,IAAMC,wBAA+C;;;ACArD,IAAMC,4BAAuD;;;AJGpE,IAAMC,kBAAkB,IAAIC,kBAAAA;AAErB,IAAMC,iBAAiBF,gBAAgBG,OAC5C;EACEC,QAAQ;EACRC,UAAU;EACVC,QAAQ;EACRC,YAAY;AACd,GACA;EAACC;CAAiB;AAGpB,IAAMC,gBAAgB,IAAIC,gBAAAA;AAEnB,IAAMC,eAAeF,cAAcN,OAAO;EAACS;EAAyBC;EAAuBC;EAAuBC;CAA0B;AAE5I,IAAMC,eAAeC,gBAAgBd,OAAOQ,YAAAA;AAC5C,IAAMO,iBAAiBD,gBAAgBd,OAAOD,cAAAA;AAC9C,IAAMiB,iBAAiBC,YAAYjB,OAAOQ,YAAAA;AAC1C,IAAMU,mBAAmBD,YAAYjB,OAAOD,cAAAA;;;ADnB5C,IAAMoB,0CAA2D,CAAC;AAGzE,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,2BAA8DF,QAAQG,OAAOJ,yCAAyC;EACjIK;EACAC;CACD;;;ADVM,IAAMC,2BAA2BC,iBAAgBC,OAAOC,wBAAAA;;;AOJ/D,SAASC,mBAAAA,wBAAkC;AAapC,IAAMC,mCAAN,MAAMA,yCAAmGC,iBAAAA;AAAoB;AAApBA;AAAzG,IAAMD,kCAAN;;;ACTA,IAAME,mBAAmB;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","NodeAttachQuerySchema","NodeAttachedQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","instanceFactory","IsInstanceFactory","isNodeInstance","create","attach","attached","detach","registered","isModuleInstance","moduleFactory","IsModuleFactory","isNodeModule","NodeAttachedQuerySchema","NodeAttachQuerySchema","NodeDetachQuerySchema","NodeRegisteredQuerySchema","asNodeModule","AsObjectFactory","asNodeInstance","withNodeModule","WithFactory","withNodeInstance","requiredAttachableNodeInstanceFunctions","factory","IsObjectFactory","isAttachableNodeInstance","create","isNodeInstance","isAttachableModuleInstance","asAttachableNodeInstance","AsObjectFactory","create","isAttachableNodeInstance","IsObjectFactory","IsAttachableNodeInstanceFactory","IsObjectFactory","NodeConfigSchema"]}
@@ -11,6 +11,7 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
11
11
  schema: string;
12
12
  };
13
13
  ephemeralQueryAccountEnabled?: boolean | undefined;
14
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
14
15
  }, import("./Node").NodeModuleEventData>>;
15
16
  export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
16
17
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -24,6 +25,7 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
24
25
  schema: string;
25
26
  };
26
27
  ephemeralQueryAccountEnabled?: boolean | undefined;
28
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
27
29
  }, import("./Node").NodeModuleEventData>>;
28
30
  export declare const asNodeModule: {
29
31
  <TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
@@ -38,6 +40,7 @@ export declare const asNodeModule: {
38
40
  schema: string;
39
41
  };
40
42
  ephemeralQueryAccountEnabled?: boolean | undefined;
43
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
41
44
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
42
45
  <TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
43
46
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -51,6 +54,7 @@ export declare const asNodeModule: {
51
54
  schema: string;
52
55
  };
53
56
  ephemeralQueryAccountEnabled?: boolean | undefined;
57
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
54
58
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
55
59
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
56
60
  addToResolvers?: boolean | undefined;
@@ -63,6 +67,7 @@ export declare const asNodeModule: {
63
67
  schema: string;
64
68
  };
65
69
  ephemeralQueryAccountEnabled?: boolean | undefined;
70
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
66
71
  }, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
67
72
  };
68
73
  export declare const asNodeInstance: {
@@ -78,6 +83,7 @@ export declare const asNodeInstance: {
78
83
  schema: string;
79
84
  };
80
85
  ephemeralQueryAccountEnabled?: boolean | undefined;
86
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
81
87
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
82
88
  <TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
83
89
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -91,6 +97,7 @@ export declare const asNodeInstance: {
91
97
  schema: string;
92
98
  };
93
99
  ephemeralQueryAccountEnabled?: boolean | undefined;
100
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
94
101
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
95
102
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
96
103
  addToResolvers?: boolean | undefined;
@@ -103,6 +110,7 @@ export declare const asNodeInstance: {
103
110
  schema: string;
104
111
  };
105
112
  ephemeralQueryAccountEnabled?: boolean | undefined;
113
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
106
114
  }, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
107
115
  };
108
116
  export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
@@ -117,6 +125,7 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
117
125
  schema: string;
118
126
  };
119
127
  ephemeralQueryAccountEnabled?: boolean | undefined;
128
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
120
129
  }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
121
130
  export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
122
131
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -130,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
130
139
  schema: string;
131
140
  };
132
141
  ephemeralQueryAccountEnabled?: boolean | undefined;
142
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
133
143
  }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
134
144
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gEAAqC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;gEAAqC,CAAA"}
@@ -11,6 +11,7 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
11
11
  schema: string;
12
12
  };
13
13
  ephemeralQueryAccountEnabled?: boolean | undefined;
14
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
14
15
  }, import("./Node").NodeModuleEventData>>;
15
16
  export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
16
17
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -24,6 +25,7 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
24
25
  schema: string;
25
26
  };
26
27
  ephemeralQueryAccountEnabled?: boolean | undefined;
28
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
27
29
  }, import("./Node").NodeModuleEventData>>;
28
30
  export declare const asNodeModule: {
29
31
  <TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
@@ -38,6 +40,7 @@ export declare const asNodeModule: {
38
40
  schema: string;
39
41
  };
40
42
  ephemeralQueryAccountEnabled?: boolean | undefined;
43
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
41
44
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
42
45
  <TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
43
46
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -51,6 +54,7 @@ export declare const asNodeModule: {
51
54
  schema: string;
52
55
  };
53
56
  ephemeralQueryAccountEnabled?: boolean | undefined;
57
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
54
58
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
55
59
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
56
60
  addToResolvers?: boolean | undefined;
@@ -63,6 +67,7 @@ export declare const asNodeModule: {
63
67
  schema: string;
64
68
  };
65
69
  ephemeralQueryAccountEnabled?: boolean | undefined;
70
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
66
71
  }, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
67
72
  };
68
73
  export declare const asNodeInstance: {
@@ -78,6 +83,7 @@ export declare const asNodeInstance: {
78
83
  schema: string;
79
84
  };
80
85
  ephemeralQueryAccountEnabled?: boolean | undefined;
86
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
81
87
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
82
88
  <TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
83
89
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -91,6 +97,7 @@ export declare const asNodeInstance: {
91
97
  schema: string;
92
98
  };
93
99
  ephemeralQueryAccountEnabled?: boolean | undefined;
100
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
94
101
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
95
102
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
96
103
  addToResolvers?: boolean | undefined;
@@ -103,6 +110,7 @@ export declare const asNodeInstance: {
103
110
  schema: string;
104
111
  };
105
112
  ephemeralQueryAccountEnabled?: boolean | undefined;
113
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
106
114
  }, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
107
115
  };
108
116
  export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
@@ -117,6 +125,7 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
117
125
  schema: string;
118
126
  };
119
127
  ephemeralQueryAccountEnabled?: boolean | undefined;
128
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
120
129
  }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
121
130
  export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
122
131
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -130,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
130
139
  schema: string;
131
140
  };
132
141
  ephemeralQueryAccountEnabled?: boolean | undefined;
142
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
133
143
  }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
134
144
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gEAAqC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;gEAAqC,CAAA"}
@@ -11,6 +11,7 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
11
11
  schema: string;
12
12
  };
13
13
  ephemeralQueryAccountEnabled?: boolean | undefined;
14
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
14
15
  }, import("./Node").NodeModuleEventData>>;
15
16
  export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
16
17
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -24,6 +25,7 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
24
25
  schema: string;
25
26
  };
26
27
  ephemeralQueryAccountEnabled?: boolean | undefined;
28
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
27
29
  }, import("./Node").NodeModuleEventData>>;
28
30
  export declare const asNodeModule: {
29
31
  <TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
@@ -38,6 +40,7 @@ export declare const asNodeModule: {
38
40
  schema: string;
39
41
  };
40
42
  ephemeralQueryAccountEnabled?: boolean | undefined;
43
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
41
44
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
42
45
  <TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
43
46
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -51,6 +54,7 @@ export declare const asNodeModule: {
51
54
  schema: string;
52
55
  };
53
56
  ephemeralQueryAccountEnabled?: boolean | undefined;
57
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
54
58
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
55
59
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
56
60
  addToResolvers?: boolean | undefined;
@@ -63,6 +67,7 @@ export declare const asNodeModule: {
63
67
  schema: string;
64
68
  };
65
69
  ephemeralQueryAccountEnabled?: boolean | undefined;
70
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
66
71
  }, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
67
72
  };
68
73
  export declare const asNodeInstance: {
@@ -78,6 +83,7 @@ export declare const asNodeInstance: {
78
83
  schema: string;
79
84
  };
80
85
  ephemeralQueryAccountEnabled?: boolean | undefined;
86
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
81
87
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
82
88
  <TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
83
89
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -91,6 +97,7 @@ export declare const asNodeInstance: {
91
97
  schema: string;
92
98
  };
93
99
  ephemeralQueryAccountEnabled?: boolean | undefined;
100
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
94
101
  }, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
95
102
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
96
103
  addToResolvers?: boolean | undefined;
@@ -103,6 +110,7 @@ export declare const asNodeInstance: {
103
110
  schema: string;
104
111
  };
105
112
  ephemeralQueryAccountEnabled?: boolean | undefined;
113
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
106
114
  }, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
107
115
  };
108
116
  export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
@@ -117,6 +125,7 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
117
125
  schema: string;
118
126
  };
119
127
  ephemeralQueryAccountEnabled?: boolean | undefined;
128
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
120
129
  }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
121
130
  export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
122
131
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -130,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
130
139
  schema: string;
131
140
  };
132
141
  ephemeralQueryAccountEnabled?: boolean | undefined;
142
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
133
143
  }, import("./Node").NodeModuleEventData>) => R) => R | undefined;
134
144
  //# sourceMappingURL=typeChecks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;gEAAqC,CAAA"}
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAKjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;yCAQ1B,CAAA;AAID,eAAO,MAAM,YAAY;;;;;;;;;;;;;yCAA2H,CAAA;AAEpJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuC,CAAA;AAChE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;gEAAmC,CAAA;AAC9D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;gEAAqC,CAAA"}
package/package.json CHANGED
@@ -13,9 +13,9 @@
13
13
  "@xylabs/hex": "^3.0.24",
14
14
  "@xylabs/object": "^3.0.24",
15
15
  "@xylabs/promise": "^3.0.24",
16
- "@xyo-network/module-events": "~2.93.4",
17
- "@xyo-network/module-model": "~2.93.4",
18
- "@xyo-network/payload-model": "~2.93.4"
16
+ "@xyo-network/module-events": "~2.93.5",
17
+ "@xyo-network/module-model": "~2.93.5",
18
+ "@xyo-network/payload-model": "~2.93.5"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@xylabs/ts-scripts-yarn3": "^3.5.2",
@@ -61,6 +61,6 @@
61
61
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
62
62
  },
63
63
  "sideEffects": false,
64
- "version": "2.93.4",
64
+ "version": "2.93.5",
65
65
  "type": "module"
66
66
  }
package/src/Node.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Address } from '@xylabs/hex'
2
2
  import { Promisable } from '@xylabs/promise'
3
- import { Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model'
3
+ import { AttachableModuleInstance, Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model'
4
4
 
5
5
  import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels'
6
6
  import { NodeParams } from './Params'
@@ -26,7 +26,7 @@ export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventDat
26
26
  extends NodeModule<TParams, TEventData>,
27
27
  NodeQueryFunctions,
28
28
  ModuleInstance<TParams, TEventData> {
29
- register?: (mod: ModuleInstance) => Promisable<void>
29
+ register?: (mod: AttachableModuleInstance) => Promisable<void>
30
30
  registeredModules?: () => Promisable<ModuleInstance[]>
31
31
  unregister?: (mod: ModuleInstance) => Promisable<ModuleInstance>
32
32
  }