@xyo-network/node-model 2.94.21 → 2.94.23
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/Config.d.cts +3 -4
- package/dist/browser/Config.d.cts.map +1 -1
- package/dist/browser/Config.d.mts +3 -4
- package/dist/browser/Config.d.mts.map +1 -1
- package/dist/browser/Config.d.ts +3 -4
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.cts +6 -9
- package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.mts +6 -9
- package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.ts +6 -9
- package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +20 -30
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +20 -30
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +20 -30
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Config.d.cts +3 -4
- package/dist/node/Config.d.cts.map +1 -1
- package/dist/node/Config.d.mts +3 -4
- package/dist/node/Config.d.mts.map +1 -1
- package/dist/node/Config.d.ts +3 -4
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.cts +6 -9
- package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.mts +6 -9
- package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.ts +6 -9
- package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +20 -30
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +20 -30
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +20 -30
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/Config.ts +7 -4
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { WithAdditional } from '@xylabs/object';
|
|
1
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
2
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
export declare const NodeConfigSchema = "network.xyo.node.config";
|
|
5
5
|
export type NodeConfigSchema = typeof NodeConfigSchema;
|
|
6
|
-
export type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
6
|
+
export type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
7
7
|
archivist?: string;
|
|
8
|
-
|
|
9
|
-
}, TConfig>, TSchema>;
|
|
8
|
+
}, TConfig>, TSchema extends void ? TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema : TSchema>;
|
|
10
9
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,gBAAgB,4BAA4B,CAAA;AACzD,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AAEtD,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CAC9H,cAAc,CACZ;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,EACD,OAAO,CACR,EACD,OAAO,SAAS,IAAI,GAClB,OAAO,SAAS,OAAO,GACrB,OAAO,CAAC,QAAQ,CAAC,GACjB,gBAAgB,GAClB,OAAO,CACV,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { WithAdditional } from '@xylabs/object';
|
|
1
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
2
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
export declare const NodeConfigSchema = "network.xyo.node.config";
|
|
5
5
|
export type NodeConfigSchema = typeof NodeConfigSchema;
|
|
6
|
-
export type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
6
|
+
export type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
7
7
|
archivist?: string;
|
|
8
|
-
|
|
9
|
-
}, TConfig>, TSchema>;
|
|
8
|
+
}, TConfig>, TSchema extends void ? TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema : TSchema>;
|
|
10
9
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,gBAAgB,4BAA4B,CAAA;AACzD,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AAEtD,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CAC9H,cAAc,CACZ;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,EACD,OAAO,CACR,EACD,OAAO,SAAS,IAAI,GAClB,OAAO,SAAS,OAAO,GACrB,OAAO,CAAC,QAAQ,CAAC,GACjB,gBAAgB,GAClB,OAAO,CACV,CAAA"}
|
package/dist/browser/Config.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { WithAdditional } from '@xylabs/object';
|
|
1
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
2
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
3
3
|
import { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
export declare const NodeConfigSchema = "network.xyo.node.config";
|
|
5
5
|
export type NodeConfigSchema = typeof NodeConfigSchema;
|
|
6
|
-
export type NodeConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
6
|
+
export type NodeConfig<TConfig extends EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
7
7
|
archivist?: string;
|
|
8
|
-
|
|
9
|
-
}, TConfig>, TSchema>;
|
|
8
|
+
}, TConfig>, TSchema extends void ? TConfig extends Payload ? TConfig['schema'] : NodeConfigSchema : TSchema>;
|
|
10
9
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,gBAAgB,4BAA4B,CAAA;AACzD,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAA;AAEtD,MAAM,MAAM,UAAU,CAAC,OAAO,SAAS,WAAW,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CAC9H,cAAc,CACZ;IACE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,EACD,OAAO,CACR,EACD,OAAO,SAAS,IAAI,GAClB,OAAO,SAAS,OAAO,GACrB,OAAO,CAAC,QAAQ,CAAC,GACjB,gBAAgB,GAClB,OAAO,CACV,CAAA"}
|
|
@@ -2,10 +2,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
2
2
|
<TType extends import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
4
|
addToResolvers?: boolean | undefined;
|
|
5
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
5
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
6
6
|
archivist?: string | undefined;
|
|
7
|
-
|
|
8
|
-
}, "schema"> & {
|
|
7
|
+
} & {
|
|
9
8
|
schema: "network.xyo.node.config";
|
|
10
9
|
}, "schema"> & {
|
|
11
10
|
schema: string;
|
|
@@ -16,10 +15,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
16
15
|
<TType_1 extends import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
17
16
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
17
|
addToResolvers?: boolean | undefined;
|
|
19
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
18
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
20
19
|
archivist?: string | undefined;
|
|
21
|
-
|
|
22
|
-
}, "schema"> & {
|
|
20
|
+
} & {
|
|
23
21
|
schema: "network.xyo.node.config";
|
|
24
22
|
}, "schema"> & {
|
|
25
23
|
schema: string;
|
|
@@ -29,10 +27,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
29
27
|
}, import("..").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
30
28
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
31
29
|
addToResolvers?: boolean | undefined;
|
|
32
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
30
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
33
31
|
archivist?: string | undefined;
|
|
34
|
-
|
|
35
|
-
}, "schema"> & {
|
|
32
|
+
} & {
|
|
36
33
|
schema: "network.xyo.node.config";
|
|
37
34
|
}, "schema"> & {
|
|
38
35
|
schema: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA"}
|
|
@@ -2,10 +2,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
2
2
|
<TType extends import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
4
|
addToResolvers?: boolean | undefined;
|
|
5
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
5
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
6
6
|
archivist?: string | undefined;
|
|
7
|
-
|
|
8
|
-
}, "schema"> & {
|
|
7
|
+
} & {
|
|
9
8
|
schema: "network.xyo.node.config";
|
|
10
9
|
}, "schema"> & {
|
|
11
10
|
schema: string;
|
|
@@ -16,10 +15,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
16
15
|
<TType_1 extends import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
17
16
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
17
|
addToResolvers?: boolean | undefined;
|
|
19
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
18
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
20
19
|
archivist?: string | undefined;
|
|
21
|
-
|
|
22
|
-
}, "schema"> & {
|
|
20
|
+
} & {
|
|
23
21
|
schema: "network.xyo.node.config";
|
|
24
22
|
}, "schema"> & {
|
|
25
23
|
schema: string;
|
|
@@ -29,10 +27,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
29
27
|
}, import("..").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
30
28
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
31
29
|
addToResolvers?: boolean | undefined;
|
|
32
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
30
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
33
31
|
archivist?: string | undefined;
|
|
34
|
-
|
|
35
|
-
}, "schema"> & {
|
|
32
|
+
} & {
|
|
36
33
|
schema: "network.xyo.node.config";
|
|
37
34
|
}, "schema"> & {
|
|
38
35
|
schema: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA"}
|
|
@@ -2,10 +2,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
2
2
|
<TType extends import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
4
|
addToResolvers?: boolean | undefined;
|
|
5
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
5
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
6
6
|
archivist?: string | undefined;
|
|
7
|
-
|
|
8
|
-
}, "schema"> & {
|
|
7
|
+
} & {
|
|
9
8
|
schema: "network.xyo.node.config";
|
|
10
9
|
}, "schema"> & {
|
|
11
10
|
schema: string;
|
|
@@ -16,10 +15,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
16
15
|
<TType_1 extends import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
17
16
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
17
|
addToResolvers?: boolean | undefined;
|
|
19
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
18
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
20
19
|
archivist?: string | undefined;
|
|
21
|
-
|
|
22
|
-
}, "schema"> & {
|
|
20
|
+
} & {
|
|
23
21
|
schema: "network.xyo.node.config";
|
|
24
22
|
}, "schema"> & {
|
|
25
23
|
schema: string;
|
|
@@ -29,10 +27,9 @@ export declare const asAttachableNodeInstance: {
|
|
|
29
27
|
}, import("..").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance").AttachableNodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
30
28
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
31
29
|
addToResolvers?: boolean | undefined;
|
|
32
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
30
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
33
31
|
archivist?: string | undefined;
|
|
34
|
-
|
|
35
|
-
}, "schema"> & {
|
|
32
|
+
} & {
|
|
36
33
|
schema: "network.xyo.node.config";
|
|
37
34
|
}, "schema"> & {
|
|
38
35
|
schema: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 { EmptyObject, 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 EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n },\n TConfig\n >,\n TSchema extends void ?\n TConfig extends Payload ?\n TConfig['schema']\n : NodeConfigSchema\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,kCAAN,cAAyGC,+BAAAA;EAbhH,OAagHA;;;AAAoB;;;ACT7H,IAAMC,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 +1 @@
|
|
|
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
|
|
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 { EmptyObject, 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 EmptyObject | Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n archivist?: string\n },\n TConfig\n >,\n TSchema extends void ?\n TConfig extends Payload ?\n TConfig['schema']\n : NodeConfigSchema\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,kCAAN,cAAyGC,iBAAAA;EAbhH,OAagHA;;;AAAoB;;;ACT7H,IAAMC,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"]}
|
|
@@ -2,10 +2,9 @@ import { NodeInstance, NodeModule } from './Node';
|
|
|
2
2
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
4
|
addToResolvers?: boolean | undefined;
|
|
5
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
5
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
6
6
|
archivist?: string | undefined;
|
|
7
|
-
|
|
8
|
-
}, "schema"> & {
|
|
7
|
+
} & {
|
|
9
8
|
schema: "network.xyo.node.config";
|
|
10
9
|
}, "schema"> & {
|
|
11
10
|
schema: string;
|
|
@@ -16,10 +15,9 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
16
15
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
17
16
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
17
|
addToResolvers?: boolean | undefined;
|
|
19
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
18
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
20
19
|
archivist?: string | undefined;
|
|
21
|
-
|
|
22
|
-
}, "schema"> & {
|
|
20
|
+
} & {
|
|
23
21
|
schema: "network.xyo.node.config";
|
|
24
22
|
}, "schema"> & {
|
|
25
23
|
schema: string;
|
|
@@ -31,10 +29,9 @@ export declare const asNodeModule: {
|
|
|
31
29
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
32
30
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
31
|
addToResolvers?: boolean | undefined;
|
|
34
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
32
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
35
33
|
archivist?: string | undefined;
|
|
36
|
-
|
|
37
|
-
}, "schema"> & {
|
|
34
|
+
} & {
|
|
38
35
|
schema: "network.xyo.node.config";
|
|
39
36
|
}, "schema"> & {
|
|
40
37
|
schema: string;
|
|
@@ -45,10 +42,9 @@ export declare const asNodeModule: {
|
|
|
45
42
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
46
43
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
44
|
addToResolvers?: boolean | undefined;
|
|
48
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
45
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
49
46
|
archivist?: string | undefined;
|
|
50
|
-
|
|
51
|
-
}, "schema"> & {
|
|
47
|
+
} & {
|
|
52
48
|
schema: "network.xyo.node.config";
|
|
53
49
|
}, "schema"> & {
|
|
54
50
|
schema: string;
|
|
@@ -58,10 +54,9 @@ export declare const asNodeModule: {
|
|
|
58
54
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
59
55
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
56
|
addToResolvers?: boolean | undefined;
|
|
61
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
57
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
62
58
|
archivist?: string | undefined;
|
|
63
|
-
|
|
64
|
-
}, "schema"> & {
|
|
59
|
+
} & {
|
|
65
60
|
schema: "network.xyo.node.config";
|
|
66
61
|
}, "schema"> & {
|
|
67
62
|
schema: string;
|
|
@@ -74,10 +69,9 @@ export declare const asNodeInstance: {
|
|
|
74
69
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
75
70
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
71
|
addToResolvers?: boolean | undefined;
|
|
77
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
72
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
78
73
|
archivist?: string | undefined;
|
|
79
|
-
|
|
80
|
-
}, "schema"> & {
|
|
74
|
+
} & {
|
|
81
75
|
schema: "network.xyo.node.config";
|
|
82
76
|
}, "schema"> & {
|
|
83
77
|
schema: string;
|
|
@@ -88,10 +82,9 @@ export declare const asNodeInstance: {
|
|
|
88
82
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
89
83
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
84
|
addToResolvers?: boolean | undefined;
|
|
91
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
85
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
92
86
|
archivist?: string | undefined;
|
|
93
|
-
|
|
94
|
-
}, "schema"> & {
|
|
87
|
+
} & {
|
|
95
88
|
schema: "network.xyo.node.config";
|
|
96
89
|
}, "schema"> & {
|
|
97
90
|
schema: string;
|
|
@@ -101,10 +94,9 @@ export declare const asNodeInstance: {
|
|
|
101
94
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
102
95
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
96
|
addToResolvers?: boolean | undefined;
|
|
104
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
97
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
105
98
|
archivist?: string | undefined;
|
|
106
|
-
|
|
107
|
-
}, "schema"> & {
|
|
99
|
+
} & {
|
|
108
100
|
schema: "network.xyo.node.config";
|
|
109
101
|
}, "schema"> & {
|
|
110
102
|
schema: string;
|
|
@@ -116,10 +108,9 @@ export declare const asNodeInstance: {
|
|
|
116
108
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
117
109
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
110
|
addToResolvers?: boolean | undefined;
|
|
119
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
111
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
120
112
|
archivist?: string | undefined;
|
|
121
|
-
|
|
122
|
-
}, "schema"> & {
|
|
113
|
+
} & {
|
|
123
114
|
schema: "network.xyo.node.config";
|
|
124
115
|
}, "schema"> & {
|
|
125
116
|
schema: string;
|
|
@@ -130,10 +121,9 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
130
121
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
131
122
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
123
|
addToResolvers?: boolean | undefined;
|
|
133
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
124
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
134
125
|
archivist?: string | undefined;
|
|
135
|
-
|
|
136
|
-
}, "schema"> & {
|
|
126
|
+
} & {
|
|
137
127
|
schema: "network.xyo.node.config";
|
|
138
128
|
}, "schema"> & {
|
|
139
129
|
schema: string;
|
|
@@ -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
|
|
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"}
|
|
@@ -2,10 +2,9 @@ import { NodeInstance, NodeModule } from './Node';
|
|
|
2
2
|
export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
3
3
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
4
|
addToResolvers?: boolean | undefined;
|
|
5
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
5
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
6
6
|
archivist?: string | undefined;
|
|
7
|
-
|
|
8
|
-
}, "schema"> & {
|
|
7
|
+
} & {
|
|
9
8
|
schema: "network.xyo.node.config";
|
|
10
9
|
}, "schema"> & {
|
|
11
10
|
schema: string;
|
|
@@ -16,10 +15,9 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
16
15
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
17
16
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
17
|
addToResolvers?: boolean | undefined;
|
|
19
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
18
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
20
19
|
archivist?: string | undefined;
|
|
21
|
-
|
|
22
|
-
}, "schema"> & {
|
|
20
|
+
} & {
|
|
23
21
|
schema: "network.xyo.node.config";
|
|
24
22
|
}, "schema"> & {
|
|
25
23
|
schema: string;
|
|
@@ -31,10 +29,9 @@ export declare const asNodeModule: {
|
|
|
31
29
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
32
30
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
31
|
addToResolvers?: boolean | undefined;
|
|
34
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
32
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
35
33
|
archivist?: string | undefined;
|
|
36
|
-
|
|
37
|
-
}, "schema"> & {
|
|
34
|
+
} & {
|
|
38
35
|
schema: "network.xyo.node.config";
|
|
39
36
|
}, "schema"> & {
|
|
40
37
|
schema: string;
|
|
@@ -45,10 +42,9 @@ export declare const asNodeModule: {
|
|
|
45
42
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
46
43
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
44
|
addToResolvers?: boolean | undefined;
|
|
48
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
45
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
49
46
|
archivist?: string | undefined;
|
|
50
|
-
|
|
51
|
-
}, "schema"> & {
|
|
47
|
+
} & {
|
|
52
48
|
schema: "network.xyo.node.config";
|
|
53
49
|
}, "schema"> & {
|
|
54
50
|
schema: string;
|
|
@@ -58,10 +54,9 @@ export declare const asNodeModule: {
|
|
|
58
54
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
59
55
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
56
|
addToResolvers?: boolean | undefined;
|
|
61
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
57
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
62
58
|
archivist?: string | undefined;
|
|
63
|
-
|
|
64
|
-
}, "schema"> & {
|
|
59
|
+
} & {
|
|
65
60
|
schema: "network.xyo.node.config";
|
|
66
61
|
}, "schema"> & {
|
|
67
62
|
schema: string;
|
|
@@ -74,10 +69,9 @@ export declare const asNodeInstance: {
|
|
|
74
69
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
75
70
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
71
|
addToResolvers?: boolean | undefined;
|
|
77
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
72
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
78
73
|
archivist?: string | undefined;
|
|
79
|
-
|
|
80
|
-
}, "schema"> & {
|
|
74
|
+
} & {
|
|
81
75
|
schema: "network.xyo.node.config";
|
|
82
76
|
}, "schema"> & {
|
|
83
77
|
schema: string;
|
|
@@ -88,10 +82,9 @@ export declare const asNodeInstance: {
|
|
|
88
82
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
89
83
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
84
|
addToResolvers?: boolean | undefined;
|
|
91
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
85
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
92
86
|
archivist?: string | undefined;
|
|
93
|
-
|
|
94
|
-
}, "schema"> & {
|
|
87
|
+
} & {
|
|
95
88
|
schema: "network.xyo.node.config";
|
|
96
89
|
}, "schema"> & {
|
|
97
90
|
schema: string;
|
|
@@ -101,10 +94,9 @@ export declare const asNodeInstance: {
|
|
|
101
94
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
102
95
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
96
|
addToResolvers?: boolean | undefined;
|
|
104
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
97
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
105
98
|
archivist?: string | undefined;
|
|
106
|
-
|
|
107
|
-
}, "schema"> & {
|
|
99
|
+
} & {
|
|
108
100
|
schema: "network.xyo.node.config";
|
|
109
101
|
}, "schema"> & {
|
|
110
102
|
schema: string;
|
|
@@ -116,10 +108,9 @@ export declare const asNodeInstance: {
|
|
|
116
108
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
117
109
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
110
|
addToResolvers?: boolean | undefined;
|
|
119
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
111
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
120
112
|
archivist?: string | undefined;
|
|
121
|
-
|
|
122
|
-
}, "schema"> & {
|
|
113
|
+
} & {
|
|
123
114
|
schema: "network.xyo.node.config";
|
|
124
115
|
}, "schema"> & {
|
|
125
116
|
schema: string;
|
|
@@ -130,10 +121,9 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
130
121
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
131
122
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
123
|
addToResolvers?: boolean | undefined;
|
|
133
|
-
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields &
|
|
124
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
134
125
|
archivist?: string | undefined;
|
|
135
|
-
|
|
136
|
-
}, "schema"> & {
|
|
126
|
+
} & {
|
|
137
127
|
schema: "network.xyo.node.config";
|
|
138
128
|
}, "schema"> & {
|
|
139
129
|
schema: string;
|