@xyo-network/bridge-model 2.64.4 → 2.64.6

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/esm/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './Bridge';
2
2
  export * from './Config';
3
+ export * from './isBridgeModule';
3
4
  export * from './Queries';
5
+ export * from './withBridgeModule';
4
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { isModule, IsModuleFactory } from '@xyo-network/module-model';
2
+ export const isBridgeModule = IsModuleFactory.create(isModule, [
3
+ 'targetConfig',
4
+ 'targetDiscover',
5
+ 'targetDownResolver',
6
+ 'targetQueries',
7
+ 'targetQuery',
8
+ 'targetQueryable',
9
+ 'targetResolve',
10
+ ]);
11
+ //# sourceMappingURL=isBridgeModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBridgeModule.js","sourceRoot":"","sources":["../../src/isBridgeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAIrE,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC,MAAM,CAAe,QAAQ,EAAE;IAC3E,cAAc;IACd,gBAAgB;IAChB,oBAAoB;IACpB,eAAe;IACf,aAAa;IACb,iBAAiB;IACjB,eAAe;CAChB,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { WithModuleFactory } from '@xyo-network/module-model';
2
+ import { isBridgeModule } from './isBridgeModule';
3
+ export const withBridgeModule = WithModuleFactory.create(isBridgeModule);
4
+ //# sourceMappingURL=withBridgeModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withBridgeModule.js","sourceRoot":"","sources":["../../src/withBridgeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA"}
@@ -1,4 +1,6 @@
1
1
  export * from './Bridge';
2
2
  export * from './Config';
3
+ export * from './isBridgeModule';
3
4
  export * from './Queries';
5
+ export * from './withBridgeModule';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,34 @@
1
+ import { BridgeModule } from './Bridge';
2
+ export declare const isBridgeModule: import("@xyo-network/module-model").ModuleTypeCheck<BridgeModule<import("./Bridge").BridgeParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
+ readonly name?: string | undefined;
5
+ readonly paging?: Record<string, {
6
+ size?: number | undefined;
7
+ }> | undefined;
8
+ readonly schema: string;
9
+ readonly security?: {
10
+ readonly allowAnonymous?: boolean | undefined;
11
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
12
+ readonly disallowed?: Record<string, string[]> | undefined;
13
+ } | undefined;
14
+ readonly storeQueries?: boolean | undefined;
15
+ } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
16
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
17
+ readonly name?: string | undefined;
18
+ readonly paging?: Record<string, {
19
+ size?: number | undefined;
20
+ }> | undefined;
21
+ readonly schema: "network.xyo.bridge.config";
22
+ readonly security?: {
23
+ readonly allowAnonymous?: boolean | undefined;
24
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
25
+ readonly disallowed?: Record<string, string[]> | undefined;
26
+ } | undefined;
27
+ readonly storeQueries?: boolean | undefined;
28
+ } & Omit<{
29
+ discoverCache?: true | import("./Config").CacheConfig | undefined;
30
+ schema: "network.xyo.bridge.config";
31
+ }, "schema">, "schema"> & {
32
+ schema: string;
33
+ }, "schema">>, import("@xyo-network/module-model").ModuleEventData, import("@xyo-network/module-model").Module<import("@xyo-network/module-model").ModuleParams, import("@xyo-network/module-model").ModuleEventData>>>;
34
+ //# sourceMappingURL=isBridgeModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBridgeModule.d.ts","sourceRoot":"","sources":["../../src/isBridgeModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uNAQzB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const withBridgeModule: <R extends void = void>(module: any, closure: (module: any) => R) => R | undefined;
2
+ //# sourceMappingURL=withBridgeModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withBridgeModule.d.ts","sourceRoot":"","sources":["../../src/withBridgeModule.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,oFAA2C,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.64.4",
14
- "@xyo-network/module": "^2.64.4",
15
- "@xyo-network/module-model": "^2.64.4",
16
- "@xyo-network/payload-model": "^2.64.4",
17
- "@xyo-network/promise": "^2.64.4"
13
+ "@xyo-network/core": "^2.64.6",
14
+ "@xyo-network/module": "^2.64.6",
15
+ "@xyo-network/module-model": "^2.64.6",
16
+ "@xyo-network/payload-model": "^2.64.6",
17
+ "@xyo-network/promise": "^2.64.6"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@xylabs/ts-scripts-yarn3": "^2.18.5",
@@ -54,5 +54,5 @@
54
54
  },
55
55
  "sideEffects": false,
56
56
  "types": "dist/types/index.d.ts",
57
- "version": "2.64.4"
57
+ "version": "2.64.6"
58
58
  }
package/src/index.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from './Bridge'
2
2
  export * from './Config'
3
+ export * from './isBridgeModule'
3
4
  export * from './Queries'
5
+ export * from './withBridgeModule'
@@ -0,0 +1,13 @@
1
+ import { isModule, IsModuleFactory } from '@xyo-network/module-model'
2
+
3
+ import { BridgeModule } from './Bridge'
4
+
5
+ export const isBridgeModule = IsModuleFactory.create<BridgeModule>(isModule, [
6
+ 'targetConfig',
7
+ 'targetDiscover',
8
+ 'targetDownResolver',
9
+ 'targetQueries',
10
+ 'targetQuery',
11
+ 'targetQueryable',
12
+ 'targetResolve',
13
+ ])
@@ -0,0 +1,5 @@
1
+ import { WithModuleFactory } from '@xyo-network/module-model'
2
+
3
+ import { isBridgeModule } from './isBridgeModule'
4
+
5
+ export const withBridgeModule = WithModuleFactory.create(isBridgeModule)