@xyo-network/bridge-model 2.109.0 → 2.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/EventData.d.cts +1 -1
- package/dist/browser/EventData.d.cts.map +1 -1
- package/dist/browser/EventData.d.mts +1 -1
- package/dist/browser/EventData.d.mts.map +1 -1
- package/dist/browser/EventData.d.ts +1 -1
- package/dist/browser/EventData.d.ts.map +1 -1
- package/dist/browser/Events/index.d.cts +6 -6
- package/dist/browser/Events/index.d.cts.map +1 -1
- package/dist/browser/Events/index.d.mts +6 -6
- package/dist/browser/Events/index.d.mts.map +1 -1
- package/dist/browser/Events/index.d.ts +6 -6
- package/dist/browser/Events/index.d.ts.map +1 -1
- package/dist/browser/Instance.d.cts +4 -4
- package/dist/browser/Instance.d.cts.map +1 -1
- package/dist/browser/Instance.d.mts +4 -4
- package/dist/browser/Instance.d.mts.map +1 -1
- package/dist/browser/Instance.d.ts +4 -4
- package/dist/browser/Instance.d.ts.map +1 -1
- package/dist/browser/Module.d.cts +2 -2
- package/dist/browser/Module.d.cts.map +1 -1
- package/dist/browser/Module.d.mts +2 -2
- package/dist/browser/Module.d.mts.map +1 -1
- package/dist/browser/Module.d.ts +2 -2
- package/dist/browser/Module.d.ts.map +1 -1
- package/dist/browser/Params.d.cts +1 -1
- package/dist/browser/Params.d.cts.map +1 -1
- package/dist/browser/Params.d.mts +1 -1
- package/dist/browser/Params.d.mts.map +1 -1
- package/dist/browser/Params.d.ts +1 -1
- package/dist/browser/Params.d.ts.map +1 -1
- package/dist/browser/Queries/Unexpose.d.cts +1 -1
- package/dist/browser/Queries/Unexpose.d.cts.map +1 -1
- package/dist/browser/Queries/Unexpose.d.mts +1 -1
- package/dist/browser/Queries/Unexpose.d.mts.map +1 -1
- package/dist/browser/Queries/Unexpose.d.ts +1 -1
- package/dist/browser/Queries/Unexpose.d.ts.map +1 -1
- package/dist/browser/Queries/index.d.cts +8 -8
- package/dist/browser/Queries/index.d.cts.map +1 -1
- package/dist/browser/Queries/index.d.mts +8 -8
- package/dist/browser/Queries/index.d.mts.map +1 -1
- package/dist/browser/Queries/index.d.ts +8 -8
- package/dist/browser/Queries/index.d.ts.map +1 -1
- package/dist/browser/QueryFunctions.d.cts +1 -1
- package/dist/browser/QueryFunctions.d.cts.map +1 -1
- package/dist/browser/QueryFunctions.d.mts +1 -1
- package/dist/browser/QueryFunctions.d.mts.map +1 -1
- package/dist/browser/QueryFunctions.d.ts +1 -1
- package/dist/browser/QueryFunctions.d.ts.map +1 -1
- package/dist/browser/RawQueryFunctions.d.cts +1 -1
- package/dist/browser/RawQueryFunctions.d.cts.map +1 -1
- package/dist/browser/RawQueryFunctions.d.mts +1 -1
- package/dist/browser/RawQueryFunctions.d.mts.map +1 -1
- package/dist/browser/RawQueryFunctions.d.ts +1 -1
- package/dist/browser/RawQueryFunctions.d.ts.map +1 -1
- package/dist/browser/attachable/AttachableInstance.d.cts +4 -4
- package/dist/browser/attachable/AttachableInstance.d.cts.map +1 -1
- package/dist/browser/attachable/AttachableInstance.d.mts +4 -4
- package/dist/browser/attachable/AttachableInstance.d.mts.map +1 -1
- package/dist/browser/attachable/AttachableInstance.d.ts +4 -4
- package/dist/browser/attachable/AttachableInstance.d.ts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.cts +11 -11
- package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.mts +11 -11
- package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.ts +11 -11
- package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/browser/attachable/index.d.cts +3 -3
- package/dist/browser/attachable/index.d.cts.map +1 -1
- package/dist/browser/attachable/index.d.mts +3 -3
- package/dist/browser/attachable/index.d.mts.map +1 -1
- package/dist/browser/attachable/index.d.ts +3 -3
- package/dist/browser/attachable/index.d.ts.map +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.cts.map +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.mts.map +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/browser/attachable/isAttachableInstance.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +11 -11
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +11 -11
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +11 -11
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +40 -40
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +40 -40
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +40 -40
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/neutral/EventData.d.cts +1 -1
- package/dist/neutral/EventData.d.cts.map +1 -1
- package/dist/neutral/EventData.d.mts +1 -1
- package/dist/neutral/EventData.d.mts.map +1 -1
- package/dist/neutral/EventData.d.ts +1 -1
- package/dist/neutral/EventData.d.ts.map +1 -1
- package/dist/neutral/Events/index.d.cts +6 -6
- package/dist/neutral/Events/index.d.cts.map +1 -1
- package/dist/neutral/Events/index.d.mts +6 -6
- package/dist/neutral/Events/index.d.mts.map +1 -1
- package/dist/neutral/Events/index.d.ts +6 -6
- package/dist/neutral/Events/index.d.ts.map +1 -1
- package/dist/neutral/Instance.d.cts +4 -4
- package/dist/neutral/Instance.d.cts.map +1 -1
- package/dist/neutral/Instance.d.mts +4 -4
- package/dist/neutral/Instance.d.mts.map +1 -1
- package/dist/neutral/Instance.d.ts +4 -4
- package/dist/neutral/Instance.d.ts.map +1 -1
- package/dist/neutral/Module.d.cts +2 -2
- package/dist/neutral/Module.d.cts.map +1 -1
- package/dist/neutral/Module.d.mts +2 -2
- package/dist/neutral/Module.d.mts.map +1 -1
- package/dist/neutral/Module.d.ts +2 -2
- package/dist/neutral/Module.d.ts.map +1 -1
- package/dist/neutral/Params.d.cts +1 -1
- package/dist/neutral/Params.d.cts.map +1 -1
- package/dist/neutral/Params.d.mts +1 -1
- package/dist/neutral/Params.d.mts.map +1 -1
- package/dist/neutral/Params.d.ts +1 -1
- package/dist/neutral/Params.d.ts.map +1 -1
- package/dist/neutral/Queries/Unexpose.d.cts +1 -1
- package/dist/neutral/Queries/Unexpose.d.cts.map +1 -1
- package/dist/neutral/Queries/Unexpose.d.mts +1 -1
- package/dist/neutral/Queries/Unexpose.d.mts.map +1 -1
- package/dist/neutral/Queries/Unexpose.d.ts +1 -1
- package/dist/neutral/Queries/Unexpose.d.ts.map +1 -1
- package/dist/neutral/Queries/index.d.cts +8 -8
- package/dist/neutral/Queries/index.d.cts.map +1 -1
- package/dist/neutral/Queries/index.d.mts +8 -8
- package/dist/neutral/Queries/index.d.mts.map +1 -1
- package/dist/neutral/Queries/index.d.ts +8 -8
- package/dist/neutral/Queries/index.d.ts.map +1 -1
- package/dist/neutral/QueryFunctions.d.cts +1 -1
- package/dist/neutral/QueryFunctions.d.cts.map +1 -1
- package/dist/neutral/QueryFunctions.d.mts +1 -1
- package/dist/neutral/QueryFunctions.d.mts.map +1 -1
- package/dist/neutral/QueryFunctions.d.ts +1 -1
- package/dist/neutral/QueryFunctions.d.ts.map +1 -1
- package/dist/neutral/RawQueryFunctions.d.cts +1 -1
- package/dist/neutral/RawQueryFunctions.d.cts.map +1 -1
- package/dist/neutral/RawQueryFunctions.d.mts +1 -1
- package/dist/neutral/RawQueryFunctions.d.mts.map +1 -1
- package/dist/neutral/RawQueryFunctions.d.ts +1 -1
- package/dist/neutral/RawQueryFunctions.d.ts.map +1 -1
- package/dist/neutral/attachable/AttachableInstance.d.cts +4 -4
- package/dist/neutral/attachable/AttachableInstance.d.cts.map +1 -1
- package/dist/neutral/attachable/AttachableInstance.d.mts +4 -4
- package/dist/neutral/attachable/AttachableInstance.d.mts.map +1 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +4 -4
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.cts +11 -11
- package/dist/neutral/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.mts +11 -11
- package/dist/neutral/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +11 -11
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/attachable/index.d.cts +3 -3
- package/dist/neutral/attachable/index.d.cts.map +1 -1
- package/dist/neutral/attachable/index.d.mts +3 -3
- package/dist/neutral/attachable/index.d.mts.map +1 -1
- package/dist/neutral/attachable/index.d.ts +3 -3
- package/dist/neutral/attachable/index.d.ts.map +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.cts.map +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.mts.map +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +11 -11
- package/dist/neutral/index.d.cts.map +1 -1
- package/dist/neutral/index.d.mts +11 -11
- package/dist/neutral/index.d.mts.map +1 -1
- package/dist/neutral/index.d.ts +11 -11
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/typeChecks.d.cts +40 -40
- package/dist/neutral/typeChecks.d.cts.map +1 -1
- package/dist/neutral/typeChecks.d.mts +40 -40
- package/dist/neutral/typeChecks.d.mts.map +1 -1
- package/dist/neutral/typeChecks.d.ts +40 -40
- package/dist/neutral/typeChecks.d.ts.map +1 -1
- package/dist/node/EventData.d.cts +1 -1
- package/dist/node/EventData.d.cts.map +1 -1
- package/dist/node/EventData.d.mts +1 -1
- package/dist/node/EventData.d.mts.map +1 -1
- package/dist/node/EventData.d.ts +1 -1
- package/dist/node/EventData.d.ts.map +1 -1
- package/dist/node/Events/index.d.cts +6 -6
- package/dist/node/Events/index.d.cts.map +1 -1
- package/dist/node/Events/index.d.mts +6 -6
- package/dist/node/Events/index.d.mts.map +1 -1
- package/dist/node/Events/index.d.ts +6 -6
- package/dist/node/Events/index.d.ts.map +1 -1
- package/dist/node/Instance.d.cts +4 -4
- package/dist/node/Instance.d.cts.map +1 -1
- package/dist/node/Instance.d.mts +4 -4
- package/dist/node/Instance.d.mts.map +1 -1
- package/dist/node/Instance.d.ts +4 -4
- package/dist/node/Instance.d.ts.map +1 -1
- package/dist/node/Module.d.cts +2 -2
- package/dist/node/Module.d.cts.map +1 -1
- package/dist/node/Module.d.mts +2 -2
- package/dist/node/Module.d.mts.map +1 -1
- package/dist/node/Module.d.ts +2 -2
- package/dist/node/Module.d.ts.map +1 -1
- package/dist/node/Params.d.cts +1 -1
- package/dist/node/Params.d.cts.map +1 -1
- package/dist/node/Params.d.mts +1 -1
- package/dist/node/Params.d.mts.map +1 -1
- package/dist/node/Params.d.ts +1 -1
- package/dist/node/Params.d.ts.map +1 -1
- package/dist/node/Queries/Unexpose.d.cts +1 -1
- package/dist/node/Queries/Unexpose.d.cts.map +1 -1
- package/dist/node/Queries/Unexpose.d.mts +1 -1
- package/dist/node/Queries/Unexpose.d.mts.map +1 -1
- package/dist/node/Queries/Unexpose.d.ts +1 -1
- package/dist/node/Queries/Unexpose.d.ts.map +1 -1
- package/dist/node/Queries/index.d.cts +8 -8
- package/dist/node/Queries/index.d.cts.map +1 -1
- package/dist/node/Queries/index.d.mts +8 -8
- package/dist/node/Queries/index.d.mts.map +1 -1
- package/dist/node/Queries/index.d.ts +8 -8
- package/dist/node/Queries/index.d.ts.map +1 -1
- package/dist/node/QueryFunctions.d.cts +1 -1
- package/dist/node/QueryFunctions.d.cts.map +1 -1
- package/dist/node/QueryFunctions.d.mts +1 -1
- package/dist/node/QueryFunctions.d.mts.map +1 -1
- package/dist/node/QueryFunctions.d.ts +1 -1
- package/dist/node/QueryFunctions.d.ts.map +1 -1
- package/dist/node/RawQueryFunctions.d.cts +1 -1
- package/dist/node/RawQueryFunctions.d.cts.map +1 -1
- package/dist/node/RawQueryFunctions.d.mts +1 -1
- package/dist/node/RawQueryFunctions.d.mts.map +1 -1
- package/dist/node/RawQueryFunctions.d.ts +1 -1
- package/dist/node/RawQueryFunctions.d.ts.map +1 -1
- package/dist/node/attachable/AttachableInstance.d.cts +4 -4
- package/dist/node/attachable/AttachableInstance.d.cts.map +1 -1
- package/dist/node/attachable/AttachableInstance.d.mts +4 -4
- package/dist/node/attachable/AttachableInstance.d.mts.map +1 -1
- package/dist/node/attachable/AttachableInstance.d.ts +4 -4
- package/dist/node/attachable/AttachableInstance.d.ts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.cts +11 -11
- package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.mts +11 -11
- package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.ts +11 -11
- package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/node/attachable/index.d.cts +3 -3
- package/dist/node/attachable/index.d.cts.map +1 -1
- package/dist/node/attachable/index.d.mts +3 -3
- package/dist/node/attachable/index.d.mts.map +1 -1
- package/dist/node/attachable/index.d.ts +3 -3
- package/dist/node/attachable/index.d.ts.map +1 -1
- package/dist/node/attachable/isAttachableInstance.d.cts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.cts.map +1 -1
- package/dist/node/attachable/isAttachableInstance.d.mts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.mts.map +1 -1
- package/dist/node/attachable/isAttachableInstance.d.ts +1 -1
- package/dist/node/attachable/isAttachableInstance.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +11 -11
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +11 -11
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +11 -11
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +40 -40
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +40 -40
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +40 -40
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/EventData.ts +1 -1
- package/src/Events/index.ts +6 -6
- package/src/Instance.ts +4 -4
- package/src/Module.ts +2 -2
- package/src/Params.ts +1 -1
- package/src/Queries/Unexpose.ts +1 -1
- package/src/Queries/index.ts +8 -8
- package/src/QueryFunctions.ts +1 -1
- package/src/RawQueryFunctions.ts +1 -1
- package/src/attachable/AttachableInstance.ts +4 -4
- 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 +11 -11
- package/src/typeChecks.ts +3 -3
package/src/Instance.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { Address } from '@xylabs/hex'
|
|
|
2
2
|
import { Promisable } from '@xylabs/promise'
|
|
3
3
|
import { ModuleInstance } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
|
-
import { BridgeModuleEventData } from './EventData'
|
|
6
|
-
import { BridgeModule } from './Module'
|
|
7
|
-
import { BridgeParams } from './Params'
|
|
8
|
-
import { BridgeQueryFunctions } from './QueryFunctions'
|
|
5
|
+
import { BridgeModuleEventData } from './EventData.js'
|
|
6
|
+
import { BridgeModule } from './Module.js'
|
|
7
|
+
import { BridgeParams } from './Params.js'
|
|
8
|
+
import { BridgeQueryFunctions } from './QueryFunctions.js'
|
|
9
9
|
|
|
10
10
|
export interface BridgeInstance<TParams extends BridgeParams = BridgeParams, TEventData extends BridgeModuleEventData = BridgeModuleEventData>
|
|
11
11
|
extends BridgeModule<TParams, TEventData>,
|
package/src/Module.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Module } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { BridgeModuleEventData } from './EventData'
|
|
4
|
-
import { BridgeParams } from './Params'
|
|
3
|
+
import { BridgeModuleEventData } from './EventData.js'
|
|
4
|
+
import { BridgeParams } from './Params.js'
|
|
5
5
|
|
|
6
6
|
export interface BridgeModule<TParams extends BridgeParams = BridgeParams, TEventData extends BridgeModuleEventData = BridgeModuleEventData>
|
|
7
7
|
extends Module<TParams, TEventData> {}
|
package/src/Params.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyConfigSchema, ModuleParams, ModuleResolverInstance } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { BridgeConfig } from './Config'
|
|
3
|
+
import { BridgeConfig } from './Config.js'
|
|
4
4
|
|
|
5
5
|
export interface BridgeParams<TConfig extends AnyConfigSchema<BridgeConfig> = AnyConfigSchema<BridgeConfig>>
|
|
6
6
|
extends ModuleParams<TConfig>,
|
package/src/Queries/Unexpose.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Query } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
|
-
import { BridgeExposeOptions } from './Expose'
|
|
3
|
+
import { BridgeExposeOptions } from './Expose.js'
|
|
4
4
|
|
|
5
5
|
export const BridgeUnexposeQuerySchema = 'network.xyo.query.bridge.unexpose' as const
|
|
6
6
|
export type BridgeUnexposeQuerySchema = typeof BridgeUnexposeQuerySchema
|
package/src/Queries/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ModuleQueries } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { BridgeConnectQuery } from './Connect'
|
|
4
|
-
import { BridgeDisconnectQuery } from './Disconnect'
|
|
5
|
-
import { BridgeExposeQuery } from './Expose'
|
|
6
|
-
import { BridgeUnexposeQuery } from './Unexpose'
|
|
3
|
+
import { BridgeConnectQuery } from './Connect.js'
|
|
4
|
+
import { BridgeDisconnectQuery } from './Disconnect.js'
|
|
5
|
+
import { BridgeExposeQuery } from './Expose.js'
|
|
6
|
+
import { BridgeUnexposeQuery } from './Unexpose.js'
|
|
7
7
|
|
|
8
|
-
export * from './Connect'
|
|
9
|
-
export * from './Disconnect'
|
|
10
|
-
export * from './Expose'
|
|
11
|
-
export * from './Unexpose'
|
|
8
|
+
export * from './Connect.js'
|
|
9
|
+
export * from './Disconnect.js'
|
|
10
|
+
export * from './Expose.js'
|
|
11
|
+
export * from './Unexpose.js'
|
|
12
12
|
|
|
13
13
|
export type BridgeQueries = BridgeConnectQuery | BridgeDisconnectQuery | BridgeExposeQuery | BridgeUnexposeQuery
|
|
14
14
|
export type BridgeModuleQueries = ModuleQueries | BridgeQueries
|
package/src/QueryFunctions.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Address } from '@xylabs/hex'
|
|
|
2
2
|
import { Promisable } from '@xylabs/promise'
|
|
3
3
|
import { ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
|
-
import { BridgeExposeOptions, BridgeUnexposeOptions } from './Queries'
|
|
5
|
+
import { BridgeExposeOptions, BridgeUnexposeOptions } from './Queries/index.js'
|
|
6
6
|
|
|
7
7
|
export interface BridgeQueryFunctions {
|
|
8
8
|
connect?: (id: ModuleIdentifier, maxDepth?: number) => Promisable<Address | undefined>
|
package/src/RawQueryFunctions.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Promisable } from '@xylabs/promise'
|
|
2
2
|
import { ModuleIdentifier, ModuleQueryResult } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { BridgeExposeOptions, BridgeUnexposeOptions } from './Queries'
|
|
4
|
+
import { BridgeExposeOptions, BridgeUnexposeOptions } from './Queries/index.js'
|
|
5
5
|
|
|
6
6
|
export interface BridgeRawQueryFunctions {
|
|
7
7
|
connectQuery?: (id: ModuleIdentifier, maxDepth?: number) => Promisable<ModuleQueryResult>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IsObjectFactory, TypeCheck } from '@xylabs/object'
|
|
2
2
|
import { AttachableModuleInstance } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { BridgeModuleEventData } from '../EventData'
|
|
5
|
-
import { BridgeInstance } from '../Instance'
|
|
6
|
-
import { BridgeModule } from '../Module'
|
|
7
|
-
import { BridgeParams } from '../Params'
|
|
4
|
+
import { BridgeModuleEventData } from '../EventData.js'
|
|
5
|
+
import { BridgeInstance } from '../Instance.js'
|
|
6
|
+
import { BridgeModule } from '../Module.js'
|
|
7
|
+
import { BridgeParams } from '../Params.js'
|
|
8
8
|
|
|
9
9
|
export interface AttachableBridgeInstance<
|
|
10
10
|
TParams extends BridgeParams = BridgeParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
|
|
3
|
-
import { isAttachableBridgeInstance } from './isAttachableInstance'
|
|
3
|
+
import { isAttachableBridgeInstance } from './isAttachableInstance.js'
|
|
4
4
|
|
|
5
5
|
export const asAttachableBridgeInstance = AsObjectFactory.create(isAttachableBridgeInstance)
|
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.js'
|
|
2
|
+
export * from './AttachableInstance.js'
|
|
3
|
+
export * from './isAttachableInstance.js'
|
|
@@ -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 { isBridgeInstance } from '../typeChecks'
|
|
5
|
-
import { AttachableBridgeInstance } from './AttachableInstance'
|
|
4
|
+
import { isBridgeInstance } from '../typeChecks.js'
|
|
5
|
+
import { AttachableBridgeInstance } from './AttachableInstance.js'
|
|
6
6
|
|
|
7
7
|
export const requiredAttachableBridgeInstanceFunctions: ObjectTypeShape = {}
|
|
8
8
|
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from './attachable'
|
|
2
|
-
export * from './Config'
|
|
3
|
-
export * from './EventData'
|
|
4
|
-
export * from './Events'
|
|
5
|
-
export * from './Instance'
|
|
6
|
-
export * from './Module'
|
|
7
|
-
export * from './Params'
|
|
8
|
-
export * from './Queries'
|
|
9
|
-
export * from './QueryFunctions'
|
|
10
|
-
export * from './RawQueryFunctions'
|
|
11
|
-
export * from './typeChecks'
|
|
1
|
+
export * from './attachable/index.js'
|
|
2
|
+
export * from './Config.js'
|
|
3
|
+
export * from './EventData.js'
|
|
4
|
+
export * from './Events/index.js'
|
|
5
|
+
export * from './Instance.js'
|
|
6
|
+
export * from './Module.js'
|
|
7
|
+
export * from './Params.js'
|
|
8
|
+
export * from './Queries/index.js'
|
|
9
|
+
export * from './QueryFunctions.js'
|
|
10
|
+
export * from './RawQueryFunctions.js'
|
|
11
|
+
export * from './typeChecks.js'
|
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 { BridgeInstance } from './Instance'
|
|
5
|
-
import { BridgeModule } from './Module'
|
|
6
|
-
import { BridgeConnectQuerySchema, BridgeDisconnectQuerySchema } from './Queries'
|
|
4
|
+
import { BridgeInstance } from './Instance.js'
|
|
5
|
+
import { BridgeModule } from './Module.js'
|
|
6
|
+
import { BridgeConnectQuerySchema, BridgeDisconnectQuerySchema } from './Queries/index.js'
|
|
7
7
|
|
|
8
8
|
export const isBridgeInstance = new IsInstanceFactory<BridgeInstance>().create(
|
|
9
9
|
{
|