@xyo-network/module-abstract-mongodb 2.86.0 → 2.86.1
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/Module.d.cts +20 -142
- package/dist/browser/Module.d.cts.map +1 -1
- package/dist/browser/Module.d.mts +20 -142
- package/dist/browser/Module.d.mts.map +1 -1
- package/dist/browser/Module.d.ts +20 -142
- package/dist/browser/Module.d.ts.map +1 -1
- package/dist/browser/index.cjs +5 -5
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +5 -5
- package/dist/browser/index.js.map +1 -1
- package/dist/node/Module.d.cts +20 -142
- package/dist/node/Module.d.cts.map +1 -1
- package/dist/node/Module.d.mts +20 -142
- package/dist/node/Module.d.mts.map +1 -1
- package/dist/node/Module.d.ts +20 -142
- package/dist/node/Module.d.ts.map +1 -1
- package/dist/node/index.cjs +5 -5
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +5 -5
- package/dist/node/index.js.map +1 -1
- package/package.json +13 -13
- package/src/Module.ts +1 -1
- package/src/config/getBaseMongoSdk.ts +4 -4
package/dist/node/Module.d.cts
CHANGED
|
@@ -5,44 +5,13 @@ import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js'
|
|
|
5
5
|
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
6
|
export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
|
|
7
7
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
11
|
-
readonly name?: string | undefined;
|
|
12
|
-
readonly paging?: Record<string, {
|
|
13
|
-
size?: number | undefined;
|
|
14
|
-
}> | undefined;
|
|
15
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
16
|
-
schema: "network.xyo.module.mongodb.config";
|
|
17
|
-
readonly security?: {
|
|
18
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
19
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
20
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
readonly sign?: boolean | undefined;
|
|
23
|
-
readonly storeQueries?: boolean | undefined;
|
|
24
|
-
readonly timestamp?: boolean | undefined;
|
|
25
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
26
|
-
readonly archivist?: string | undefined;
|
|
27
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
28
|
-
readonly name?: string | undefined;
|
|
29
|
-
readonly paging?: Record<string, {
|
|
30
|
-
size?: number | undefined;
|
|
31
|
-
}> | undefined;
|
|
32
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
33
|
-
schema: "network.xyo.module.mongodb.config";
|
|
34
|
-
readonly security?: {
|
|
35
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
36
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
37
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
readonly sign?: boolean | undefined;
|
|
40
|
-
readonly storeQueries?: boolean | undefined;
|
|
41
|
-
readonly timestamp?: boolean | undefined;
|
|
42
|
-
} & {
|
|
8
|
+
addToResolvers?: boolean | undefined;
|
|
9
|
+
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 & {
|
|
43
10
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
44
11
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
45
12
|
schema: "network.xyo.module.mongodb.config";
|
|
13
|
+
}, "schema"> & {
|
|
14
|
+
schema: "network.xyo.module.mongodb.config";
|
|
46
15
|
}, "schema"> & {
|
|
47
16
|
schema: string;
|
|
48
17
|
};
|
|
@@ -53,44 +22,13 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
53
22
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
54
23
|
} = import("@xylabs/object").BaseParamsFields & {
|
|
55
24
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
59
|
-
readonly name?: string | undefined;
|
|
60
|
-
readonly paging?: Record<string, {
|
|
61
|
-
size?: number | undefined;
|
|
62
|
-
}> | undefined;
|
|
63
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
64
|
-
schema: "network.xyo.module.mongodb.config";
|
|
65
|
-
readonly security?: {
|
|
66
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
67
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
68
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
readonly sign?: boolean | undefined;
|
|
71
|
-
readonly storeQueries?: boolean | undefined;
|
|
72
|
-
readonly timestamp?: boolean | undefined;
|
|
73
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
74
|
-
readonly archivist?: string | undefined;
|
|
75
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
76
|
-
readonly name?: string | undefined;
|
|
77
|
-
readonly paging?: Record<string, {
|
|
78
|
-
size?: number | undefined;
|
|
79
|
-
}> | undefined;
|
|
80
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
81
|
-
schema: "network.xyo.module.mongodb.config";
|
|
82
|
-
readonly security?: {
|
|
83
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
84
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
85
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
readonly sign?: boolean | undefined;
|
|
88
|
-
readonly storeQueries?: boolean | undefined;
|
|
89
|
-
readonly timestamp?: boolean | undefined;
|
|
90
|
-
} & {
|
|
25
|
+
addToResolvers?: boolean | undefined;
|
|
26
|
+
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 & {
|
|
91
27
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
92
28
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
93
29
|
schema: "network.xyo.module.mongodb.config";
|
|
30
|
+
}, "schema"> & {
|
|
31
|
+
schema: "network.xyo.module.mongodb.config";
|
|
94
32
|
}, "schema"> & {
|
|
95
33
|
schema: string;
|
|
96
34
|
};
|
|
@@ -118,104 +56,44 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
118
56
|
params: TParams;
|
|
119
57
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
120
58
|
queries: string[];
|
|
121
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
59
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
122
60
|
query: Lowercase<string>;
|
|
123
61
|
resultSet?: string | undefined;
|
|
124
62
|
schema: "network.xyo.boundwitness";
|
|
125
63
|
}, "schema"> & {
|
|
126
64
|
schema: "network.xyo.boundwitness";
|
|
127
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
65
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
128
66
|
query: Lowercase<string>;
|
|
129
67
|
resultSet?: string | undefined;
|
|
130
68
|
schema: "network.xyo.boundwitness";
|
|
131
69
|
}, "schema"> & {
|
|
132
70
|
schema: "network.xyo.boundwitness";
|
|
133
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
134
|
-
readonly archivist?: string | undefined;
|
|
135
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
136
|
-
readonly name?: string | undefined;
|
|
137
|
-
readonly paging?: Record<string, {
|
|
138
|
-
size?: number | undefined;
|
|
139
|
-
}> | undefined;
|
|
140
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
71
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
141
72
|
schema: "network.xyo.module.config";
|
|
142
|
-
|
|
143
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
144
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
145
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
readonly sign?: boolean | undefined;
|
|
148
|
-
readonly storeQueries?: boolean | undefined;
|
|
149
|
-
readonly timestamp?: boolean | undefined;
|
|
150
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
151
|
-
readonly archivist?: string | undefined;
|
|
152
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
153
|
-
readonly name?: string | undefined;
|
|
154
|
-
readonly paging?: Record<string, {
|
|
155
|
-
size?: number | undefined;
|
|
156
|
-
}> | undefined;
|
|
157
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
73
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
158
74
|
schema: "network.xyo.module.config";
|
|
159
|
-
|
|
160
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
161
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
162
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
163
|
-
} | undefined;
|
|
164
|
-
readonly sign?: boolean | undefined;
|
|
165
|
-
readonly storeQueries?: boolean | undefined;
|
|
166
|
-
readonly timestamp?: boolean | undefined;
|
|
167
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
|
|
75
|
+
}>(query: T, payloads?: ({
|
|
168
76
|
schema: string;
|
|
169
|
-
} &
|
|
170
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
77
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
78
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
171
79
|
query: Lowercase<string>;
|
|
172
80
|
resultSet?: string | undefined;
|
|
173
81
|
schema: "network.xyo.boundwitness";
|
|
174
82
|
}, "schema"> & {
|
|
175
83
|
schema: "network.xyo.boundwitness";
|
|
176
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
84
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
177
85
|
query: Lowercase<string>;
|
|
178
86
|
resultSet?: string | undefined;
|
|
179
87
|
schema: "network.xyo.boundwitness";
|
|
180
88
|
}, "schema"> & {
|
|
181
89
|
schema: "network.xyo.boundwitness";
|
|
182
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
183
|
-
readonly archivist?: string | undefined;
|
|
184
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
185
|
-
readonly name?: string | undefined;
|
|
186
|
-
readonly paging?: Record<string, {
|
|
187
|
-
size?: number | undefined;
|
|
188
|
-
}> | undefined;
|
|
189
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
90
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
190
91
|
schema: "network.xyo.module.config";
|
|
191
|
-
|
|
192
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
193
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
194
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
readonly sign?: boolean | undefined;
|
|
197
|
-
readonly storeQueries?: boolean | undefined;
|
|
198
|
-
readonly timestamp?: boolean | undefined;
|
|
199
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
200
|
-
readonly archivist?: string | undefined;
|
|
201
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
202
|
-
readonly name?: string | undefined;
|
|
203
|
-
readonly paging?: Record<string, {
|
|
204
|
-
size?: number | undefined;
|
|
205
|
-
}> | undefined;
|
|
206
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
92
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
207
93
|
schema: "network.xyo.module.config";
|
|
208
|
-
|
|
209
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
210
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
211
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
212
|
-
} | undefined;
|
|
213
|
-
readonly sign?: boolean | undefined;
|
|
214
|
-
readonly storeQueries?: boolean | undefined;
|
|
215
|
-
readonly timestamp?: boolean | undefined;
|
|
216
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
|
|
94
|
+
}>(query: T_1, payloads?: ({
|
|
217
95
|
schema: string;
|
|
218
|
-
} &
|
|
96
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
|
|
219
97
|
start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
220
98
|
stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
221
99
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAQhF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,CAAA;AAE3I,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAQhF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,CAAA;AAE3I,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wFAIjB,OAAO,8BAN6F,GAAG,EAAE;sBAWjG,aAAa,yBAAyB,CAAC,GAAG,SAAS;iBACxD,aAAa,oBAAoB,CAAC,GAAG,SAAS;;;;;;IA8B3D;;;OAGG;qBACoB,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOvC,CAAA"}
|
package/dist/node/Module.d.mts
CHANGED
|
@@ -5,44 +5,13 @@ import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js'
|
|
|
5
5
|
export type AnyAbstractModule<TParams extends MongoDBModuleParams = MongoDBModuleParams> = abstract new (...args: any[]) => Module<TParams>;
|
|
6
6
|
export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
|
|
7
7
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
11
|
-
readonly name?: string | undefined;
|
|
12
|
-
readonly paging?: Record<string, {
|
|
13
|
-
size?: number | undefined;
|
|
14
|
-
}> | undefined;
|
|
15
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
16
|
-
schema: "network.xyo.module.mongodb.config";
|
|
17
|
-
readonly security?: {
|
|
18
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
19
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
20
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
21
|
-
} | undefined;
|
|
22
|
-
readonly sign?: boolean | undefined;
|
|
23
|
-
readonly storeQueries?: boolean | undefined;
|
|
24
|
-
readonly timestamp?: boolean | undefined;
|
|
25
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
26
|
-
readonly archivist?: string | undefined;
|
|
27
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
28
|
-
readonly name?: string | undefined;
|
|
29
|
-
readonly paging?: Record<string, {
|
|
30
|
-
size?: number | undefined;
|
|
31
|
-
}> | undefined;
|
|
32
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
33
|
-
schema: "network.xyo.module.mongodb.config";
|
|
34
|
-
readonly security?: {
|
|
35
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
36
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
37
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
readonly sign?: boolean | undefined;
|
|
40
|
-
readonly storeQueries?: boolean | undefined;
|
|
41
|
-
readonly timestamp?: boolean | undefined;
|
|
42
|
-
} & {
|
|
8
|
+
addToResolvers?: boolean | undefined;
|
|
9
|
+
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 & {
|
|
43
10
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
44
11
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
45
12
|
schema: "network.xyo.module.mongodb.config";
|
|
13
|
+
}, "schema"> & {
|
|
14
|
+
schema: "network.xyo.module.mongodb.config";
|
|
46
15
|
}, "schema"> & {
|
|
47
16
|
schema: string;
|
|
48
17
|
};
|
|
@@ -53,44 +22,13 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
53
22
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
54
23
|
} = import("@xylabs/object").BaseParamsFields & {
|
|
55
24
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
59
|
-
readonly name?: string | undefined;
|
|
60
|
-
readonly paging?: Record<string, {
|
|
61
|
-
size?: number | undefined;
|
|
62
|
-
}> | undefined;
|
|
63
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
64
|
-
schema: "network.xyo.module.mongodb.config";
|
|
65
|
-
readonly security?: {
|
|
66
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
67
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
68
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
readonly sign?: boolean | undefined;
|
|
71
|
-
readonly storeQueries?: boolean | undefined;
|
|
72
|
-
readonly timestamp?: boolean | undefined;
|
|
73
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
74
|
-
readonly archivist?: string | undefined;
|
|
75
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
76
|
-
readonly name?: string | undefined;
|
|
77
|
-
readonly paging?: Record<string, {
|
|
78
|
-
size?: number | undefined;
|
|
79
|
-
}> | undefined;
|
|
80
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
81
|
-
schema: "network.xyo.module.mongodb.config";
|
|
82
|
-
readonly security?: {
|
|
83
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
84
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
85
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
readonly sign?: boolean | undefined;
|
|
88
|
-
readonly storeQueries?: boolean | undefined;
|
|
89
|
-
readonly timestamp?: boolean | undefined;
|
|
90
|
-
} & {
|
|
25
|
+
addToResolvers?: boolean | undefined;
|
|
26
|
+
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 & {
|
|
91
27
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
92
28
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
93
29
|
schema: "network.xyo.module.mongodb.config";
|
|
30
|
+
}, "schema"> & {
|
|
31
|
+
schema: "network.xyo.module.mongodb.config";
|
|
94
32
|
}, "schema"> & {
|
|
95
33
|
schema: string;
|
|
96
34
|
};
|
|
@@ -118,104 +56,44 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
118
56
|
params: TParams;
|
|
119
57
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
120
58
|
queries: string[];
|
|
121
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
59
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
122
60
|
query: Lowercase<string>;
|
|
123
61
|
resultSet?: string | undefined;
|
|
124
62
|
schema: "network.xyo.boundwitness";
|
|
125
63
|
}, "schema"> & {
|
|
126
64
|
schema: "network.xyo.boundwitness";
|
|
127
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
65
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
128
66
|
query: Lowercase<string>;
|
|
129
67
|
resultSet?: string | undefined;
|
|
130
68
|
schema: "network.xyo.boundwitness";
|
|
131
69
|
}, "schema"> & {
|
|
132
70
|
schema: "network.xyo.boundwitness";
|
|
133
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
134
|
-
readonly archivist?: string | undefined;
|
|
135
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
136
|
-
readonly name?: string | undefined;
|
|
137
|
-
readonly paging?: Record<string, {
|
|
138
|
-
size?: number | undefined;
|
|
139
|
-
}> | undefined;
|
|
140
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
71
|
+
}, TConf extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
141
72
|
schema: "network.xyo.module.config";
|
|
142
|
-
|
|
143
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
144
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
145
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
readonly sign?: boolean | undefined;
|
|
148
|
-
readonly storeQueries?: boolean | undefined;
|
|
149
|
-
readonly timestamp?: boolean | undefined;
|
|
150
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
151
|
-
readonly archivist?: string | undefined;
|
|
152
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
153
|
-
readonly name?: string | undefined;
|
|
154
|
-
readonly paging?: Record<string, {
|
|
155
|
-
size?: number | undefined;
|
|
156
|
-
}> | undefined;
|
|
157
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
73
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
158
74
|
schema: "network.xyo.module.config";
|
|
159
|
-
|
|
160
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
161
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
162
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
163
|
-
} | undefined;
|
|
164
|
-
readonly sign?: boolean | undefined;
|
|
165
|
-
readonly storeQueries?: boolean | undefined;
|
|
166
|
-
readonly timestamp?: boolean | undefined;
|
|
167
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
|
|
75
|
+
}>(query: T, payloads?: ({
|
|
168
76
|
schema: string;
|
|
169
|
-
} &
|
|
170
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
77
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
78
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
171
79
|
query: Lowercase<string>;
|
|
172
80
|
resultSet?: string | undefined;
|
|
173
81
|
schema: "network.xyo.boundwitness";
|
|
174
82
|
}, "schema"> & {
|
|
175
83
|
schema: "network.xyo.boundwitness";
|
|
176
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
84
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
177
85
|
query: Lowercase<string>;
|
|
178
86
|
resultSet?: string | undefined;
|
|
179
87
|
schema: "network.xyo.boundwitness";
|
|
180
88
|
}, "schema"> & {
|
|
181
89
|
schema: "network.xyo.boundwitness";
|
|
182
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
183
|
-
readonly archivist?: string | undefined;
|
|
184
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
185
|
-
readonly name?: string | undefined;
|
|
186
|
-
readonly paging?: Record<string, {
|
|
187
|
-
size?: number | undefined;
|
|
188
|
-
}> | undefined;
|
|
189
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
90
|
+
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
190
91
|
schema: "network.xyo.module.config";
|
|
191
|
-
|
|
192
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
193
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
194
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
195
|
-
} | undefined;
|
|
196
|
-
readonly sign?: boolean | undefined;
|
|
197
|
-
readonly storeQueries?: boolean | undefined;
|
|
198
|
-
readonly timestamp?: boolean | undefined;
|
|
199
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
200
|
-
readonly archivist?: string | undefined;
|
|
201
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
202
|
-
readonly name?: string | undefined;
|
|
203
|
-
readonly paging?: Record<string, {
|
|
204
|
-
size?: number | undefined;
|
|
205
|
-
}> | undefined;
|
|
206
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
92
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
207
93
|
schema: "network.xyo.module.config";
|
|
208
|
-
|
|
209
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
210
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
211
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
212
|
-
} | undefined;
|
|
213
|
-
readonly sign?: boolean | undefined;
|
|
214
|
-
readonly storeQueries?: boolean | undefined;
|
|
215
|
-
readonly timestamp?: boolean | undefined;
|
|
216
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
|
|
94
|
+
}>(query: T_1, payloads?: ({
|
|
217
95
|
schema: string;
|
|
218
|
-
} &
|
|
96
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
|
|
219
97
|
start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
220
98
|
stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
221
99
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAQhF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,CAAA;AAE3I,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC9F,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAQhF,MAAM,MAAM,iBAAiB,CAAC,OAAO,SAAS,mBAAmB,GAAG,mBAAmB,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC,OAAO,CAAC,CAAA;AAE3I,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wFAIjB,OAAO,8BAN6F,GAAG,EAAE;sBAWjG,aAAa,yBAAyB,CAAC,GAAG,SAAS;iBACxD,aAAa,oBAAoB,CAAC,GAAG,SAAS;;;;;;IA8B3D;;;OAGG;qBACoB,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOvC,CAAA"}
|