@xyo-network/node-model 2.110.16 → 2.110.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/EventsModels/index.d.cts +4 -4
- package/dist/browser/EventsModels/index.d.mts +4 -4
- package/dist/browser/EventsModels/index.d.ts +4 -4
- package/dist/browser/Node.d.cts +2 -2
- package/dist/browser/Node.d.mts +2 -2
- package/dist/browser/Node.d.ts +2 -2
- package/dist/browser/Params.d.cts +1 -1
- package/dist/browser/Params.d.mts +1 -1
- package/dist/browser/Params.d.ts +1 -1
- package/dist/browser/Queries/index.d.cts +10 -10
- package/dist/browser/Queries/index.d.mts +10 -10
- package/dist/browser/Queries/index.d.ts +10 -10
- package/dist/browser/attachable/AttachableInstance.d.cts +3 -3
- package/dist/browser/attachable/AttachableInstance.d.mts +3 -3
- package/dist/browser/attachable/AttachableInstance.d.ts +3 -3
- package/dist/browser/attachable/index.d.cts +3 -3
- package/dist/browser/attachable/index.d.mts +3 -3
- package/dist/browser/attachable/index.d.ts +3 -3
- package/dist/browser/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +9 -9
- package/dist/browser/index.d.mts +9 -9
- package/dist/browser/index.d.ts +9 -9
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/instance.d.cts +3 -3
- package/dist/browser/instance.d.mts +3 -3
- package/dist/browser/instance.d.ts +3 -3
- package/dist/browser/typeChecks.d.cts +12 -12
- package/dist/browser/typeChecks.d.mts +12 -12
- package/dist/browser/typeChecks.d.ts +12 -12
- package/dist/neutral/EventsModels/index.d.cts +4 -4
- package/dist/neutral/EventsModels/index.d.mts +4 -4
- package/dist/neutral/EventsModels/index.d.ts +4 -4
- package/dist/neutral/Node.d.cts +2 -2
- package/dist/neutral/Node.d.mts +2 -2
- package/dist/neutral/Node.d.ts +2 -2
- package/dist/neutral/Params.d.cts +1 -1
- package/dist/neutral/Params.d.mts +1 -1
- package/dist/neutral/Params.d.ts +1 -1
- package/dist/neutral/Queries/index.d.cts +10 -10
- package/dist/neutral/Queries/index.d.mts +10 -10
- package/dist/neutral/Queries/index.d.ts +10 -10
- package/dist/neutral/attachable/AttachableInstance.d.cts +3 -3
- package/dist/neutral/attachable/AttachableInstance.d.mts +3 -3
- package/dist/neutral/attachable/AttachableInstance.d.ts +3 -3
- package/dist/neutral/attachable/index.d.cts +3 -3
- package/dist/neutral/attachable/index.d.mts +3 -3
- package/dist/neutral/attachable/index.d.ts +3 -3
- package/dist/neutral/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +9 -9
- package/dist/neutral/index.d.mts +9 -9
- package/dist/neutral/index.d.ts +9 -9
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/instance.d.cts +3 -3
- package/dist/neutral/instance.d.mts +3 -3
- package/dist/neutral/instance.d.ts +3 -3
- package/dist/neutral/typeChecks.d.cts +12 -12
- package/dist/neutral/typeChecks.d.mts +12 -12
- package/dist/neutral/typeChecks.d.ts +12 -12
- package/dist/node/EventsModels/index.d.cts +4 -4
- package/dist/node/EventsModels/index.d.mts +4 -4
- package/dist/node/EventsModels/index.d.ts +4 -4
- package/dist/node/Node.d.cts +2 -2
- package/dist/node/Node.d.mts +2 -2
- package/dist/node/Node.d.ts +2 -2
- package/dist/node/Params.d.cts +1 -1
- package/dist/node/Params.d.mts +1 -1
- package/dist/node/Params.d.ts +1 -1
- package/dist/node/Queries/index.d.cts +10 -10
- package/dist/node/Queries/index.d.mts +10 -10
- package/dist/node/Queries/index.d.ts +10 -10
- package/dist/node/attachable/AttachableInstance.d.cts +3 -3
- package/dist/node/attachable/AttachableInstance.d.mts +3 -3
- package/dist/node/attachable/AttachableInstance.d.ts +3 -3
- package/dist/node/attachable/index.d.cts +3 -3
- package/dist/node/attachable/index.d.mts +3 -3
- package/dist/node/attachable/index.d.ts +3 -3
- package/dist/node/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +9 -9
- package/dist/node/index.d.mts +9 -9
- package/dist/node/index.d.ts +9 -9
- package/dist/node/index.js.map +1 -1
- package/dist/node/instance.d.cts +3 -3
- package/dist/node/instance.d.mts +3 -3
- package/dist/node/instance.d.ts +3 -3
- package/dist/node/typeChecks.d.cts +12 -12
- package/dist/node/typeChecks.d.mts +12 -12
- package/dist/node/typeChecks.d.ts +12 -12
- package/package.json +5 -5
- package/src/EventsModels/index.ts +4 -4
- package/src/Node.ts +2 -2
- package/src/Params.ts +1 -1
- package/src/Queries/index.ts +10 -10
- package/src/attachable/AttachableInstance.ts +3 -3
- package/src/attachable/asAttachableInstance.ts +1 -1
- package/src/attachable/index.ts +3 -3
- package/src/attachable/isAttachableInstance.ts +2 -2
- package/src/index.ts +9 -9
- package/src/instance.ts +3 -3
- package/src/typeChecks.ts +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IsObjectFactory, TypeCheck } from '@xylabs/object'
|
|
2
2
|
import { AttachableModuleInstance } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { NodeInstance } from '../instance.
|
|
5
|
-
import { NodeModule, NodeModuleEventData } from '../Node.
|
|
6
|
-
import { NodeParams } from '../Params.
|
|
4
|
+
import { NodeInstance } from '../instance.ts'
|
|
5
|
+
import { NodeModule, NodeModuleEventData } from '../Node.ts'
|
|
6
|
+
import { NodeParams } from '../Params.ts'
|
|
7
7
|
|
|
8
8
|
export interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>
|
|
9
9
|
extends NodeModule<TParams, TEventData>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
|
|
3
|
-
import { isAttachableNodeInstance } from './isAttachableInstance.
|
|
3
|
+
import { isAttachableNodeInstance } from './isAttachableInstance.ts'
|
|
4
4
|
|
|
5
5
|
export const asAttachableNodeInstance = AsObjectFactory.create(isAttachableNodeInstance)
|
package/src/attachable/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './asAttachableInstance.
|
|
2
|
-
export * from './AttachableInstance.
|
|
3
|
-
export * from './isAttachableInstance.
|
|
1
|
+
export * from './asAttachableInstance.ts'
|
|
2
|
+
export * from './AttachableInstance.ts'
|
|
3
|
+
export * from './isAttachableInstance.ts'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'
|
|
2
2
|
import { isAttachableModuleInstance } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { isNodeInstance } from '../typeChecks.
|
|
5
|
-
import { AttachableNodeInstance } from './AttachableInstance.
|
|
4
|
+
import { isNodeInstance } from '../typeChecks.ts'
|
|
5
|
+
import { AttachableNodeInstance } from './AttachableInstance.ts'
|
|
6
6
|
|
|
7
7
|
export const requiredAttachableNodeInstanceFunctions: ObjectTypeShape = {}
|
|
8
8
|
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './attachable/index.
|
|
2
|
-
export * from './ChildCertification.
|
|
3
|
-
export * from './Config.
|
|
4
|
-
export * from './EventsModels/index.
|
|
5
|
-
export * from './instance.
|
|
6
|
-
export * from './Node.
|
|
7
|
-
export * from './Params.
|
|
8
|
-
export * from './Queries/index.
|
|
9
|
-
export * from './typeChecks.
|
|
1
|
+
export * from './attachable/index.ts'
|
|
2
|
+
export * from './ChildCertification.ts'
|
|
3
|
+
export * from './Config.ts'
|
|
4
|
+
export * from './EventsModels/index.ts'
|
|
5
|
+
export * from './instance.ts'
|
|
6
|
+
export * from './Node.ts'
|
|
7
|
+
export * from './Params.ts'
|
|
8
|
+
export * from './Queries/index.ts'
|
|
9
|
+
export * from './typeChecks.ts'
|
package/src/instance.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { Address } from '@xylabs/hex'
|
|
|
2
2
|
import { AccountInstance } from '@xyo-network/account-model'
|
|
3
3
|
import { AddressPayload, AttachableModuleInstance, ModuleIdentifier, ModuleInstance, ModuleQueryResult } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
|
-
import { ChildCertification, ChildCertificationFields } from './ChildCertification.
|
|
6
|
-
import { NodeModule, NodeModuleEventData } from './Node.
|
|
7
|
-
import { NodeParams } from './Params.
|
|
5
|
+
import { ChildCertification, ChildCertificationFields } from './ChildCertification.ts'
|
|
6
|
+
import { NodeModule, NodeModuleEventData } from './Node.ts'
|
|
7
|
+
import { NodeParams } from './Params.ts'
|
|
8
8
|
|
|
9
9
|
export interface NodeQueryFunctions {
|
|
10
10
|
attach: (id: ModuleIdentifier, external?: boolean) => Promise<Address | undefined>
|
package/src/typeChecks.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { NodeInstance } from './instance.
|
|
5
|
-
import { NodeModule } from './Node.
|
|
6
|
-
import { NodeAttachedQuerySchema } from './Queries/index.
|
|
4
|
+
import { NodeInstance } from './instance.ts'
|
|
5
|
+
import { NodeModule } from './Node.ts'
|
|
6
|
+
import { NodeAttachedQuerySchema } from './Queries/index.ts'
|
|
7
7
|
|
|
8
8
|
const instanceFactory = new IsInstanceFactory<NodeInstance>()
|
|
9
9
|
|