@xyo-network/bridge-model 2.53.15 → 2.53.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/docs.json +940 -484
- package/dist/types/Bridge.d.ts +3 -3
- package/dist/types/Bridge.d.ts.map +1 -1
- package/dist/types/Queries/Connect.d.ts +2 -2
- package/dist/types/Queries/Connect.d.ts.map +1 -1
- package/dist/types/Queries/Disconnect.d.ts +2 -2
- package/dist/types/Queries/Disconnect.d.ts.map +1 -1
- package/dist/types/Queries/index.d.ts +2 -2
- package/dist/types/Queries/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/Bridge.ts +4 -4
- package/src/Queries/Connect.ts +2 -2
- package/src/Queries/Disconnect.ts +2 -2
- package/src/Queries/index.ts +2 -2
package/dist/types/Bridge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyConfigSchema, Module, ModuleConfig, ModuleEventData, ModuleFilter, ModuleParams, ModuleQueryResult,
|
|
1
|
+
import { AnyConfigSchema, Module, ModuleConfig, ModuleEventData, ModuleFilter, ModuleParams, ModuleQueryResult, Query, QueryBoundWitness } from '@xyo-network/module-model';
|
|
2
2
|
import { Payload } from '@xyo-network/payload-model';
|
|
3
3
|
import { Promisable } from '@xyo-network/promise';
|
|
4
4
|
import { BridgeConfig } from './Config';
|
|
@@ -12,8 +12,8 @@ export interface BridgeModule<TParams extends BridgeParams = BridgeParams, TEven
|
|
|
12
12
|
targetDiscover(address?: string): Promisable<Payload[] | undefined>;
|
|
13
13
|
targetDownResolver(address?: string): TModule['downResolver'];
|
|
14
14
|
targetQueries(address: string): string[];
|
|
15
|
-
targetQuery(address: string, query:
|
|
16
|
-
targetQueryable(address: string, query:
|
|
15
|
+
targetQuery(address: string, query: Query, payloads?: Payload[]): Promisable<ModuleQueryResult | undefined>;
|
|
16
|
+
targetQueryable(address: string, query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promisable<boolean>;
|
|
17
17
|
targetResolve(address: string, filter?: ModuleFilter): Promisable<TModule[]>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=Bridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bridge.d.ts","sourceRoot":"","sources":["../../src/Bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,MAAM,EACN,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"Bridge.d.ts","sourceRoot":"","sources":["../../src/Bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,MAAM,EACN,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,KAAK,EACL,iBAAiB,EAClB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,UAAU,CAAC,OAAO,CAAC,CAAA;IAClC,UAAU,EAAE,MAAM,UAAU,CAAC,OAAO,CAAC,CAAA;CACtC;AAED,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,eAAe,CAAC,YAAY,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,OAAO,CAAC,CAAA;AAE/H,MAAM,WAAW,YAAY,CAC3B,OAAO,SAAS,YAAY,GAAG,YAAY,EAC3C,UAAU,SAAS,eAAe,GAAG,eAAe,EACpD,OAAO,SAAS,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,GAAG,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CACnF,SAAQ,MAAM,EACZ,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAA;IAC3C,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,CAAA;IACnE,kBAAkB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAA;IAC7D,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACxC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAA;IAC3G,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACjI,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;CAC7E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Query } from '@xyo-network/module-model';
|
|
2
2
|
export type XyoBridgeConnectQuerySchema = 'network.xyo.query.bridge.connect';
|
|
3
3
|
export declare const XyoBridgeConnectQuerySchema: XyoBridgeConnectQuerySchema;
|
|
4
|
-
export type XyoBridgeConnectQuery =
|
|
4
|
+
export type XyoBridgeConnectQuery = Query<{
|
|
5
5
|
schema: XyoBridgeConnectQuerySchema;
|
|
6
6
|
uri?: string;
|
|
7
7
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Connect.d.ts","sourceRoot":"","sources":["../../../src/Queries/Connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Connect.d.ts","sourceRoot":"","sources":["../../../src/Queries/Connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAEjD,MAAM,MAAM,2BAA2B,GAAG,kCAAkC,CAAA;AAC5E,eAAO,MAAM,2BAA2B,EAAE,2BAAgE,CAAA;AAE1G,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC;IACxC,MAAM,EAAE,2BAA2B,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Query } from '@xyo-network/module-model';
|
|
2
2
|
export type XyoBridgeDisconnectQuerySchema = 'network.xyo.query.bridge.disconnect';
|
|
3
3
|
export declare const XyoBridgeDisconnectQuerySchema: XyoBridgeDisconnectQuerySchema;
|
|
4
|
-
export type XyoBridgeDisconnectQuery =
|
|
4
|
+
export type XyoBridgeDisconnectQuery = Query<{
|
|
5
5
|
schema: XyoBridgeDisconnectQuerySchema;
|
|
6
6
|
uri?: string;
|
|
7
7
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Disconnect.d.ts","sourceRoot":"","sources":["../../../src/Queries/Disconnect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Disconnect.d.ts","sourceRoot":"","sources":["../../../src/Queries/Disconnect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAEjD,MAAM,MAAM,8BAA8B,GAAG,qCAAqC,CAAA;AAClF,eAAO,MAAM,8BAA8B,EAAE,8BAAsE,CAAA;AAEnH,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAC3C,MAAM,EAAE,8BAA8B,CAAA;IACtC,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ModuleQuery,
|
|
1
|
+
import { ModuleQuery, Query } from '@xyo-network/module-model';
|
|
2
2
|
import { XyoBridgeConnectQuery } from './Connect';
|
|
3
3
|
import { XyoBridgeDisconnectQuery } from './Disconnect';
|
|
4
4
|
export * from './Connect';
|
|
5
5
|
export * from './Disconnect';
|
|
6
6
|
export type XyoBridgeQueryBase = XyoBridgeConnectQuery | XyoBridgeDisconnectQuery;
|
|
7
|
-
export type XyoBridgeQuery<T extends
|
|
7
|
+
export type XyoBridgeQuery<T extends Query | void = void> = ModuleQuery<T extends Query ? XyoBridgeQueryBase | T : XyoBridgeQueryBase>;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Queries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Queries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAEvD,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAE5B,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,wBAAwB,CAAA;AACjF,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI,IAAI,WAAW,CAAC,CAAC,SAAS,KAAK,GAAG,kBAAkB,GAAG,CAAC,GAAG,kBAAkB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/core": "^2.53.
|
|
14
|
-
"@xyo-network/module": "^2.53.
|
|
15
|
-
"@xyo-network/module-model": "^2.53.
|
|
16
|
-
"@xyo-network/payload-model": "^2.53.
|
|
17
|
-
"@xyo-network/promise": "^2.53.
|
|
13
|
+
"@xyo-network/core": "^2.53.17",
|
|
14
|
+
"@xyo-network/module": "^2.53.17",
|
|
15
|
+
"@xyo-network/module-model": "^2.53.17",
|
|
16
|
+
"@xyo-network/payload-model": "^2.53.17",
|
|
17
|
+
"@xyo-network/promise": "^2.53.17"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@xylabs/ts-scripts-yarn3": "^2.16.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
},
|
|
55
55
|
"sideEffects": false,
|
|
56
56
|
"types": "dist/types/index.d.ts",
|
|
57
|
-
"version": "2.53.
|
|
57
|
+
"version": "2.53.17"
|
|
58
58
|
}
|
package/src/Bridge.ts
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
ModuleFilter,
|
|
7
7
|
ModuleParams,
|
|
8
8
|
ModuleQueryResult,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Query,
|
|
10
|
+
QueryBoundWitness,
|
|
11
11
|
} from '@xyo-network/module-model'
|
|
12
12
|
import { Payload } from '@xyo-network/payload-model'
|
|
13
13
|
import { Promisable } from '@xyo-network/promise'
|
|
@@ -31,7 +31,7 @@ export interface BridgeModule<
|
|
|
31
31
|
targetDiscover(address?: string): Promisable<Payload[] | undefined>
|
|
32
32
|
targetDownResolver(address?: string): TModule['downResolver']
|
|
33
33
|
targetQueries(address: string): string[]
|
|
34
|
-
targetQuery(address: string, query:
|
|
35
|
-
targetQueryable(address: string, query:
|
|
34
|
+
targetQuery(address: string, query: Query, payloads?: Payload[]): Promisable<ModuleQueryResult | undefined>
|
|
35
|
+
targetQueryable(address: string, query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promisable<boolean>
|
|
36
36
|
targetResolve(address: string, filter?: ModuleFilter): Promisable<TModule[]>
|
|
37
37
|
}
|
package/src/Queries/Connect.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Query } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
3
|
export type XyoBridgeConnectQuerySchema = 'network.xyo.query.bridge.connect'
|
|
4
4
|
export const XyoBridgeConnectQuerySchema: XyoBridgeConnectQuerySchema = 'network.xyo.query.bridge.connect'
|
|
5
5
|
|
|
6
|
-
export type XyoBridgeConnectQuery =
|
|
6
|
+
export type XyoBridgeConnectQuery = Query<{
|
|
7
7
|
schema: XyoBridgeConnectQuerySchema
|
|
8
8
|
uri?: string
|
|
9
9
|
}>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Query } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
3
|
export type XyoBridgeDisconnectQuerySchema = 'network.xyo.query.bridge.disconnect'
|
|
4
4
|
export const XyoBridgeDisconnectQuerySchema: XyoBridgeDisconnectQuerySchema = 'network.xyo.query.bridge.disconnect'
|
|
5
5
|
|
|
6
|
-
export type XyoBridgeDisconnectQuery =
|
|
6
|
+
export type XyoBridgeDisconnectQuery = Query<{
|
|
7
7
|
schema: XyoBridgeDisconnectQuerySchema
|
|
8
8
|
uri?: string
|
|
9
9
|
}>
|
package/src/Queries/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModuleQuery,
|
|
1
|
+
import { ModuleQuery, Query } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
3
|
import { XyoBridgeConnectQuery } from './Connect'
|
|
4
4
|
import { XyoBridgeDisconnectQuery } from './Disconnect'
|
|
@@ -7,4 +7,4 @@ export * from './Connect'
|
|
|
7
7
|
export * from './Disconnect'
|
|
8
8
|
|
|
9
9
|
export type XyoBridgeQueryBase = XyoBridgeConnectQuery | XyoBridgeDisconnectQuery
|
|
10
|
-
export type XyoBridgeQuery<T extends
|
|
10
|
+
export type XyoBridgeQuery<T extends Query | void = void> = ModuleQuery<T extends Query ? XyoBridgeQueryBase | T : XyoBridgeQueryBase>
|