@xyo-network/node-model 2.93.3 → 2.93.5
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/Node.d.cts +2 -2
- package/dist/browser/Node.d.cts.map +1 -1
- package/dist/browser/Node.d.mts +2 -2
- package/dist/browser/Node.d.mts.map +1 -1
- package/dist/browser/Node.d.ts +2 -2
- package/dist/browser/Node.d.ts.map +1 -1
- package/dist/browser/attachable/AttachableInstance.d.cts +10 -0
- package/dist/browser/attachable/AttachableInstance.d.cts.map +1 -0
- package/dist/browser/attachable/AttachableInstance.d.mts +10 -0
- package/dist/browser/attachable/AttachableInstance.d.mts.map +1 -0
- package/dist/browser/attachable/AttachableInstance.d.ts +10 -0
- package/dist/browser/attachable/AttachableInstance.d.ts.map +1 -0
- package/dist/browser/attachable/asAttachableInstance.d.cts +44 -0
- package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -0
- package/dist/browser/attachable/asAttachableInstance.d.mts +44 -0
- package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -0
- package/dist/browser/attachable/asAttachableInstance.d.ts +44 -0
- package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -0
- package/dist/browser/attachable/index.d.cts +4 -0
- package/dist/browser/attachable/index.d.cts.map +1 -0
- package/dist/browser/attachable/index.d.mts +4 -0
- package/dist/browser/attachable/index.d.mts.map +1 -0
- package/dist/browser/attachable/index.d.ts +4 -0
- package/dist/browser/attachable/index.d.ts.map +1 -0
- package/dist/browser/attachable/isAttachableInstance.d.cts +5 -0
- package/dist/browser/attachable/isAttachableInstance.d.cts.map +1 -0
- package/dist/browser/attachable/isAttachableInstance.d.mts +5 -0
- package/dist/browser/attachable/isAttachableInstance.d.mts.map +1 -0
- package/dist/browser/attachable/isAttachableInstance.d.ts +5 -0
- package/dist/browser/attachable/isAttachableInstance.d.ts.map +1 -0
- package/dist/browser/index.cjs +37 -4
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +1 -0
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +1 -0
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +1 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +39 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +20 -0
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +20 -0
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +20 -0
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Node.d.cts +2 -2
- package/dist/node/Node.d.cts.map +1 -1
- package/dist/node/Node.d.mts +2 -2
- package/dist/node/Node.d.mts.map +1 -1
- package/dist/node/Node.d.ts +2 -2
- package/dist/node/Node.d.ts.map +1 -1
- package/dist/node/attachable/AttachableInstance.d.cts +10 -0
- package/dist/node/attachable/AttachableInstance.d.cts.map +1 -0
- package/dist/node/attachable/AttachableInstance.d.mts +10 -0
- package/dist/node/attachable/AttachableInstance.d.mts.map +1 -0
- package/dist/node/attachable/AttachableInstance.d.ts +10 -0
- package/dist/node/attachable/AttachableInstance.d.ts.map +1 -0
- package/dist/node/attachable/asAttachableInstance.d.cts +44 -0
- package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -0
- package/dist/node/attachable/asAttachableInstance.d.mts +44 -0
- package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -0
- package/dist/node/attachable/asAttachableInstance.d.ts +44 -0
- package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -0
- package/dist/node/attachable/index.d.cts +4 -0
- package/dist/node/attachable/index.d.cts.map +1 -0
- package/dist/node/attachable/index.d.mts +4 -0
- package/dist/node/attachable/index.d.mts.map +1 -0
- package/dist/node/attachable/index.d.ts +4 -0
- package/dist/node/attachable/index.d.ts.map +1 -0
- package/dist/node/attachable/isAttachableInstance.d.cts +5 -0
- package/dist/node/attachable/isAttachableInstance.d.cts.map +1 -0
- package/dist/node/attachable/isAttachableInstance.d.mts +5 -0
- package/dist/node/attachable/isAttachableInstance.d.mts.map +1 -0
- package/dist/node/attachable/isAttachableInstance.d.ts +5 -0
- package/dist/node/attachable/isAttachableInstance.d.ts.map +1 -0
- package/dist/node/index.cjs +40 -4
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1 -0
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +1 -0
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +38 -4
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +20 -0
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +20 -0
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +20 -0
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/Node.ts +2 -2
- package/src/attachable/AttachableInstance.ts +14 -0
- package/src/attachable/asAttachableInstance.ts +5 -0
- package/src/attachable/index.ts +3 -0
- package/src/attachable/isAttachableInstance.ts +15 -0
- package/src/index.ts +1 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
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
|
+
addToResolvers?: boolean | undefined;
|
|
4
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
5
6
|
archivist?: string | undefined;
|
|
6
7
|
schema: "network.xyo.node.config";
|
|
@@ -10,9 +11,11 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
10
11
|
schema: string;
|
|
11
12
|
};
|
|
12
13
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
14
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
13
15
|
}, import("./Node").NodeModuleEventData>>;
|
|
14
16
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
17
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
|
+
addToResolvers?: boolean | undefined;
|
|
16
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
17
20
|
archivist?: string | undefined;
|
|
18
21
|
schema: "network.xyo.node.config";
|
|
@@ -22,10 +25,12 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
22
25
|
schema: string;
|
|
23
26
|
};
|
|
24
27
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
28
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
25
29
|
}, import("./Node").NodeModuleEventData>>;
|
|
26
30
|
export declare const asNodeModule: {
|
|
27
31
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
28
32
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
|
+
addToResolvers?: boolean | undefined;
|
|
29
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
30
35
|
archivist?: string | undefined;
|
|
31
36
|
schema: "network.xyo.node.config";
|
|
@@ -35,9 +40,11 @@ export declare const asNodeModule: {
|
|
|
35
40
|
schema: string;
|
|
36
41
|
};
|
|
37
42
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
38
44
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
39
45
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
40
46
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
|
+
addToResolvers?: boolean | undefined;
|
|
41
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
42
49
|
archivist?: string | undefined;
|
|
43
50
|
schema: "network.xyo.node.config";
|
|
@@ -47,8 +54,10 @@ export declare const asNodeModule: {
|
|
|
47
54
|
schema: string;
|
|
48
55
|
};
|
|
49
56
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
50
58
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
51
59
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
|
+
addToResolvers?: boolean | undefined;
|
|
52
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
53
62
|
archivist?: string | undefined;
|
|
54
63
|
schema: "network.xyo.node.config";
|
|
@@ -58,11 +67,13 @@ export declare const asNodeModule: {
|
|
|
58
67
|
schema: string;
|
|
59
68
|
};
|
|
60
69
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
70
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
61
71
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
62
72
|
};
|
|
63
73
|
export declare const asNodeInstance: {
|
|
64
74
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
65
75
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
|
+
addToResolvers?: boolean | undefined;
|
|
66
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
67
78
|
archivist?: string | undefined;
|
|
68
79
|
schema: "network.xyo.node.config";
|
|
@@ -72,9 +83,11 @@ export declare const asNodeInstance: {
|
|
|
72
83
|
schema: string;
|
|
73
84
|
};
|
|
74
85
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
86
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
75
87
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
76
88
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
77
89
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
|
+
addToResolvers?: boolean | undefined;
|
|
78
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
79
92
|
archivist?: string | undefined;
|
|
80
93
|
schema: "network.xyo.node.config";
|
|
@@ -84,8 +97,10 @@ export declare const asNodeInstance: {
|
|
|
84
97
|
schema: string;
|
|
85
98
|
};
|
|
86
99
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
87
101
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
88
102
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
|
+
addToResolvers?: boolean | undefined;
|
|
89
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
90
105
|
archivist?: string | undefined;
|
|
91
106
|
schema: "network.xyo.node.config";
|
|
@@ -95,10 +110,12 @@ export declare const asNodeInstance: {
|
|
|
95
110
|
schema: string;
|
|
96
111
|
};
|
|
97
112
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
113
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
98
114
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
99
115
|
};
|
|
100
116
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
101
117
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
|
+
addToResolvers?: boolean | undefined;
|
|
102
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
103
120
|
archivist?: string | undefined;
|
|
104
121
|
schema: "network.xyo.node.config";
|
|
@@ -108,9 +125,11 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
108
125
|
schema: string;
|
|
109
126
|
};
|
|
110
127
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
128
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
111
129
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
112
130
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
113
131
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
|
+
addToResolvers?: boolean | undefined;
|
|
114
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
115
134
|
archivist?: string | undefined;
|
|
116
135
|
schema: "network.xyo.node.config";
|
|
@@ -120,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
|
|
|
120
139
|
schema: string;
|
|
121
140
|
};
|
|
122
141
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
142
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
123
143
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
124
144
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
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
|
+
addToResolvers?: boolean | undefined;
|
|
4
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
5
6
|
archivist?: string | undefined;
|
|
6
7
|
schema: "network.xyo.node.config";
|
|
@@ -10,9 +11,11 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
10
11
|
schema: string;
|
|
11
12
|
};
|
|
12
13
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
14
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
13
15
|
}, import("./Node").NodeModuleEventData>>;
|
|
14
16
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
17
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
|
+
addToResolvers?: boolean | undefined;
|
|
16
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
17
20
|
archivist?: string | undefined;
|
|
18
21
|
schema: "network.xyo.node.config";
|
|
@@ -22,10 +25,12 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
22
25
|
schema: string;
|
|
23
26
|
};
|
|
24
27
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
28
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
25
29
|
}, import("./Node").NodeModuleEventData>>;
|
|
26
30
|
export declare const asNodeModule: {
|
|
27
31
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
28
32
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
|
+
addToResolvers?: boolean | undefined;
|
|
29
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
30
35
|
archivist?: string | undefined;
|
|
31
36
|
schema: "network.xyo.node.config";
|
|
@@ -35,9 +40,11 @@ export declare const asNodeModule: {
|
|
|
35
40
|
schema: string;
|
|
36
41
|
};
|
|
37
42
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
38
44
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
39
45
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
40
46
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
|
+
addToResolvers?: boolean | undefined;
|
|
41
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
42
49
|
archivist?: string | undefined;
|
|
43
50
|
schema: "network.xyo.node.config";
|
|
@@ -47,8 +54,10 @@ export declare const asNodeModule: {
|
|
|
47
54
|
schema: string;
|
|
48
55
|
};
|
|
49
56
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
50
58
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
51
59
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
|
+
addToResolvers?: boolean | undefined;
|
|
52
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
53
62
|
archivist?: string | undefined;
|
|
54
63
|
schema: "network.xyo.node.config";
|
|
@@ -58,11 +67,13 @@ export declare const asNodeModule: {
|
|
|
58
67
|
schema: string;
|
|
59
68
|
};
|
|
60
69
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
70
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
61
71
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
62
72
|
};
|
|
63
73
|
export declare const asNodeInstance: {
|
|
64
74
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
65
75
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
|
+
addToResolvers?: boolean | undefined;
|
|
66
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
67
78
|
archivist?: string | undefined;
|
|
68
79
|
schema: "network.xyo.node.config";
|
|
@@ -72,9 +83,11 @@ export declare const asNodeInstance: {
|
|
|
72
83
|
schema: string;
|
|
73
84
|
};
|
|
74
85
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
86
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
75
87
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
76
88
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
77
89
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
|
+
addToResolvers?: boolean | undefined;
|
|
78
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
79
92
|
archivist?: string | undefined;
|
|
80
93
|
schema: "network.xyo.node.config";
|
|
@@ -84,8 +97,10 @@ export declare const asNodeInstance: {
|
|
|
84
97
|
schema: string;
|
|
85
98
|
};
|
|
86
99
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
87
101
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
88
102
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
|
+
addToResolvers?: boolean | undefined;
|
|
89
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
90
105
|
archivist?: string | undefined;
|
|
91
106
|
schema: "network.xyo.node.config";
|
|
@@ -95,10 +110,12 @@ export declare const asNodeInstance: {
|
|
|
95
110
|
schema: string;
|
|
96
111
|
};
|
|
97
112
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
113
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
98
114
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
99
115
|
};
|
|
100
116
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
101
117
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
|
+
addToResolvers?: boolean | undefined;
|
|
102
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
103
120
|
archivist?: string | undefined;
|
|
104
121
|
schema: "network.xyo.node.config";
|
|
@@ -108,9 +125,11 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
108
125
|
schema: string;
|
|
109
126
|
};
|
|
110
127
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
128
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
111
129
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
112
130
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
113
131
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
|
+
addToResolvers?: boolean | undefined;
|
|
114
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
115
134
|
archivist?: string | undefined;
|
|
116
135
|
schema: "network.xyo.node.config";
|
|
@@ -120,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
|
|
|
120
139
|
schema: string;
|
|
121
140
|
};
|
|
122
141
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
142
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
123
143
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
124
144
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
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
|
+
addToResolvers?: boolean | undefined;
|
|
4
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
5
6
|
archivist?: string | undefined;
|
|
6
7
|
schema: "network.xyo.node.config";
|
|
@@ -10,9 +11,11 @@ export declare const isNodeInstance: import("@xylabs/object").TypeCheck<NodeInst
|
|
|
10
11
|
schema: string;
|
|
11
12
|
};
|
|
12
13
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
14
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
13
15
|
}, import("./Node").NodeModuleEventData>>;
|
|
14
16
|
export declare const isNodeModule: import("@xyo-network/module-model").ModuleTypeCheck<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
15
17
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
18
|
+
addToResolvers?: boolean | undefined;
|
|
16
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
17
20
|
archivist?: string | undefined;
|
|
18
21
|
schema: "network.xyo.node.config";
|
|
@@ -22,10 +25,12 @@ export declare const isNodeModule: import("@xyo-network/module-model").ModuleTyp
|
|
|
22
25
|
schema: string;
|
|
23
26
|
};
|
|
24
27
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
28
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
25
29
|
}, import("./Node").NodeModuleEventData>>;
|
|
26
30
|
export declare const asNodeModule: {
|
|
27
31
|
<TType extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
28
32
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
33
|
+
addToResolvers?: boolean | undefined;
|
|
29
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
30
35
|
archivist?: string | undefined;
|
|
31
36
|
schema: "network.xyo.node.config";
|
|
@@ -35,9 +40,11 @@ export declare const asNodeModule: {
|
|
|
35
40
|
schema: string;
|
|
36
41
|
};
|
|
37
42
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
43
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
38
44
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
39
45
|
<TType_1 extends NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
40
46
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
47
|
+
addToResolvers?: boolean | undefined;
|
|
41
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
42
49
|
archivist?: string | undefined;
|
|
43
50
|
schema: "network.xyo.node.config";
|
|
@@ -47,8 +54,10 @@ export declare const asNodeModule: {
|
|
|
47
54
|
schema: string;
|
|
48
55
|
};
|
|
49
56
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
50
58
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
51
59
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
60
|
+
addToResolvers?: boolean | undefined;
|
|
52
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
53
62
|
archivist?: string | undefined;
|
|
54
63
|
schema: "network.xyo.node.config";
|
|
@@ -58,11 +67,13 @@ export declare const asNodeModule: {
|
|
|
58
67
|
schema: string;
|
|
59
68
|
};
|
|
60
69
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
70
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
61
71
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
62
72
|
};
|
|
63
73
|
export declare const asNodeInstance: {
|
|
64
74
|
<TType extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
65
75
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
76
|
+
addToResolvers?: boolean | undefined;
|
|
66
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
67
78
|
archivist?: string | undefined;
|
|
68
79
|
schema: "network.xyo.node.config";
|
|
@@ -72,9 +83,11 @@ export declare const asNodeInstance: {
|
|
|
72
83
|
schema: string;
|
|
73
84
|
};
|
|
74
85
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
86
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
75
87
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
76
88
|
<TType_1 extends NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
77
89
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
90
|
+
addToResolvers?: boolean | undefined;
|
|
78
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
79
92
|
archivist?: string | undefined;
|
|
80
93
|
schema: "network.xyo.node.config";
|
|
@@ -84,8 +97,10 @@ export declare const asNodeInstance: {
|
|
|
84
97
|
schema: string;
|
|
85
98
|
};
|
|
86
99
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
100
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
87
101
|
}, import("./Node").NodeModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
88
102
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
103
|
+
addToResolvers?: boolean | undefined;
|
|
89
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
90
105
|
archivist?: string | undefined;
|
|
91
106
|
schema: "network.xyo.node.config";
|
|
@@ -95,10 +110,12 @@ export declare const asNodeInstance: {
|
|
|
95
110
|
schema: string;
|
|
96
111
|
};
|
|
97
112
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
113
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
98
114
|
}, import("./Node").NodeModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
99
115
|
};
|
|
100
116
|
export declare const withNodeModule: <R>(module: any, closure: (module: NodeModule<import("@xylabs/object").BaseParamsFields & {
|
|
101
117
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
118
|
+
addToResolvers?: boolean | undefined;
|
|
102
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
103
120
|
archivist?: string | undefined;
|
|
104
121
|
schema: "network.xyo.node.config";
|
|
@@ -108,9 +125,11 @@ export declare const withNodeModule: <R>(module: any, closure: (module: NodeModu
|
|
|
108
125
|
schema: string;
|
|
109
126
|
};
|
|
110
127
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
128
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
111
129
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
112
130
|
export declare const withNodeInstance: <R>(module: any, closure: (module: NodeInstance<import("@xylabs/object").BaseParamsFields & {
|
|
113
131
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
132
|
+
addToResolvers?: boolean | undefined;
|
|
114
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 & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
115
134
|
archivist?: string | undefined;
|
|
116
135
|
schema: "network.xyo.node.config";
|
|
@@ -120,5 +139,6 @@ export declare const withNodeInstance: <R>(module: any, closure: (module: NodeIn
|
|
|
120
139
|
schema: string;
|
|
121
140
|
};
|
|
122
141
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
142
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
123
143
|
}, import("./Node").NodeModuleEventData>) => R) => R | undefined;
|
|
124
144
|
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -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"}
|
package/package.json
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"@xylabs/hex": "^3.0.24",
|
|
14
14
|
"@xylabs/object": "^3.0.24",
|
|
15
15
|
"@xylabs/promise": "^3.0.24",
|
|
16
|
-
"@xyo-network/module-events": "~2.93.
|
|
17
|
-
"@xyo-network/module-model": "~2.93.
|
|
18
|
-
"@xyo-network/payload-model": "~2.93.
|
|
16
|
+
"@xyo-network/module-events": "~2.93.5",
|
|
17
|
+
"@xyo-network/module-model": "~2.93.5",
|
|
18
|
+
"@xyo-network/payload-model": "~2.93.5"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@xylabs/ts-scripts-yarn3": "^3.5.2",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": false,
|
|
64
|
-
"version": "2.93.
|
|
64
|
+
"version": "2.93.5",
|
|
65
65
|
"type": "module"
|
|
66
66
|
}
|
package/src/Node.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex'
|
|
2
2
|
import { Promisable } from '@xylabs/promise'
|
|
3
|
-
import { Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model'
|
|
3
|
+
import { AttachableModuleInstance, Module, ModuleEventData, ModuleIdentifier, ModuleInstance } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
5
|
import { ModuleAttachedEventData, ModuleDetachedEventData, ModuleRegisteredEventData, ModuleUnregisteredEventData } from './EventsModels'
|
|
6
6
|
import { NodeParams } from './Params'
|
|
@@ -26,7 +26,7 @@ export interface NodeInstance<TParams extends NodeParams = NodeParams, TEventDat
|
|
|
26
26
|
extends NodeModule<TParams, TEventData>,
|
|
27
27
|
NodeQueryFunctions,
|
|
28
28
|
ModuleInstance<TParams, TEventData> {
|
|
29
|
-
register?: (mod:
|
|
29
|
+
register?: (mod: AttachableModuleInstance) => Promisable<void>
|
|
30
30
|
registeredModules?: () => Promisable<ModuleInstance[]>
|
|
31
31
|
unregister?: (mod: ModuleInstance) => Promisable<ModuleInstance>
|
|
32
32
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsObjectFactory, TypeCheck } from '@xylabs/object'
|
|
2
|
+
import { AttachableModuleInstance } from '@xyo-network/module-model'
|
|
3
|
+
|
|
4
|
+
import { NodeInstance, NodeModule, NodeModuleEventData } from '../Node'
|
|
5
|
+
import { NodeParams } from '../Params'
|
|
6
|
+
|
|
7
|
+
export interface AttachableNodeInstance<TParams extends NodeParams = NodeParams, TEventData extends NodeModuleEventData = NodeModuleEventData>
|
|
8
|
+
extends NodeModule<TParams, TEventData>,
|
|
9
|
+
AttachableModuleInstance<TParams, TEventData>,
|
|
10
|
+
NodeInstance<TParams, TEventData> {}
|
|
11
|
+
|
|
12
|
+
export type AttachableNodeInstanceTypeCheck<T extends AttachableNodeInstance = AttachableNodeInstance> = TypeCheck<T>
|
|
13
|
+
|
|
14
|
+
export class IsAttachableNodeInstanceFactory<T extends AttachableNodeInstance = AttachableNodeInstance> extends IsObjectFactory<T> {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'
|
|
2
|
+
import { isAttachableModuleInstance } from '@xyo-network/module-model'
|
|
3
|
+
|
|
4
|
+
import { isNodeInstance } from '../typeChecks'
|
|
5
|
+
import { AttachableNodeInstance } from './AttachableInstance'
|
|
6
|
+
|
|
7
|
+
export const requiredAttachableNodeInstanceFunctions: ObjectTypeShape = {}
|
|
8
|
+
|
|
9
|
+
//we do not use IsInstanceFactory here to prevent a cycle
|
|
10
|
+
const factory = new IsObjectFactory<AttachableNodeInstance>()
|
|
11
|
+
|
|
12
|
+
export const isAttachableNodeInstance: TypeCheck<AttachableNodeInstance> = factory.create(requiredAttachableNodeInstanceFunctions, [
|
|
13
|
+
isNodeInstance,
|
|
14
|
+
isAttachableModuleInstance,
|
|
15
|
+
])
|
package/src/index.ts
CHANGED