@xyo-network/module-abstract-mongodb 2.88.8 → 2.89.0
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/IndexDescription.d.cts +0 -15
- package/dist/browser/IndexDescription.d.cts.map +1 -1
- package/dist/browser/IndexDescription.d.mts +0 -15
- package/dist/browser/IndexDescription.d.mts.map +1 -1
- package/dist/browser/IndexDescription.d.ts +0 -15
- package/dist/browser/IndexDescription.d.ts.map +1 -1
- package/dist/browser/Indexes/index.d.cts +1 -1
- package/dist/browser/Indexes/index.d.cts.map +1 -1
- package/dist/browser/Indexes/index.d.mts +1 -1
- package/dist/browser/Indexes/index.d.mts.map +1 -1
- package/dist/browser/Indexes/index.d.ts +1 -1
- package/dist/browser/Indexes/index.d.ts.map +1 -1
- package/dist/browser/Module.d.cts +21 -85
- package/dist/browser/Module.d.cts.map +1 -1
- package/dist/browser/Module.d.mts +21 -85
- package/dist/browser/Module.d.mts.map +1 -1
- package/dist/browser/Module.d.ts +21 -85
- package/dist/browser/Module.d.ts.map +1 -1
- package/dist/browser/config/getBaseMongoSdk.d.cts.map +1 -1
- package/dist/browser/config/getBaseMongoSdk.d.mts.map +1 -1
- package/dist/browser/config/getBaseMongoSdk.d.ts.map +1 -1
- package/dist/browser/config/index.d.cts +3 -3
- package/dist/browser/config/index.d.cts.map +1 -1
- package/dist/browser/config/index.d.mts +3 -3
- package/dist/browser/config/index.d.mts.map +1 -1
- package/dist/browser/config/index.d.ts +3 -3
- package/dist/browser/config/index.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +8 -8
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +8 -8
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +8 -8
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/util/index.d.cts +1 -1
- package/dist/browser/util/index.d.cts.map +1 -1
- package/dist/browser/util/index.d.mts +1 -1
- package/dist/browser/util/index.d.mts.map +1 -1
- package/dist/browser/util/index.d.ts +1 -1
- package/dist/browser/util/index.d.ts.map +1 -1
- package/dist/neutral/IndexDescription.d.cts +0 -15
- package/dist/neutral/IndexDescription.d.cts.map +1 -1
- package/dist/neutral/IndexDescription.d.mts +0 -15
- package/dist/neutral/IndexDescription.d.mts.map +1 -1
- package/dist/neutral/IndexDescription.d.ts +0 -15
- package/dist/neutral/IndexDescription.d.ts.map +1 -1
- package/dist/neutral/Indexes/index.d.cts +1 -1
- package/dist/neutral/Indexes/index.d.cts.map +1 -1
- package/dist/neutral/Indexes/index.d.mts +1 -1
- package/dist/neutral/Indexes/index.d.mts.map +1 -1
- package/dist/neutral/Indexes/index.d.ts +1 -1
- package/dist/neutral/Indexes/index.d.ts.map +1 -1
- package/dist/neutral/Module.d.cts +21 -85
- package/dist/neutral/Module.d.cts.map +1 -1
- package/dist/neutral/Module.d.mts +21 -85
- package/dist/neutral/Module.d.mts.map +1 -1
- package/dist/neutral/Module.d.ts +21 -85
- package/dist/neutral/Module.d.ts.map +1 -1
- package/dist/neutral/config/getBaseMongoSdk.d.cts.map +1 -1
- package/dist/neutral/config/getBaseMongoSdk.d.mts.map +1 -1
- package/dist/neutral/config/getBaseMongoSdk.d.ts.map +1 -1
- package/dist/neutral/config/index.d.cts +3 -3
- package/dist/neutral/config/index.d.cts.map +1 -1
- package/dist/neutral/config/index.d.mts +3 -3
- package/dist/neutral/config/index.d.mts.map +1 -1
- package/dist/neutral/config/index.d.ts +3 -3
- package/dist/neutral/config/index.d.ts.map +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +8 -8
- package/dist/neutral/index.d.cts.map +1 -1
- package/dist/neutral/index.d.mts +8 -8
- package/dist/neutral/index.d.mts.map +1 -1
- package/dist/neutral/index.d.ts +8 -8
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/util/index.d.cts +1 -1
- package/dist/neutral/util/index.d.cts.map +1 -1
- package/dist/neutral/util/index.d.mts +1 -1
- package/dist/neutral/util/index.d.mts.map +1 -1
- package/dist/neutral/util/index.d.ts +1 -1
- package/dist/neutral/util/index.d.ts.map +1 -1
- package/dist/node/IndexDescription.d.cts +0 -15
- package/dist/node/IndexDescription.d.cts.map +1 -1
- package/dist/node/IndexDescription.d.mts +0 -15
- package/dist/node/IndexDescription.d.mts.map +1 -1
- package/dist/node/IndexDescription.d.ts +0 -15
- package/dist/node/IndexDescription.d.ts.map +1 -1
- package/dist/node/Indexes/index.d.cts +1 -1
- package/dist/node/Indexes/index.d.cts.map +1 -1
- package/dist/node/Indexes/index.d.mts +1 -1
- package/dist/node/Indexes/index.d.mts.map +1 -1
- package/dist/node/Indexes/index.d.ts +1 -1
- package/dist/node/Indexes/index.d.ts.map +1 -1
- package/dist/node/Module.d.cts +21 -85
- package/dist/node/Module.d.cts.map +1 -1
- package/dist/node/Module.d.mts +21 -85
- package/dist/node/Module.d.mts.map +1 -1
- package/dist/node/Module.d.ts +21 -85
- package/dist/node/Module.d.ts.map +1 -1
- package/dist/node/config/getBaseMongoSdk.d.cts.map +1 -1
- package/dist/node/config/getBaseMongoSdk.d.mts.map +1 -1
- package/dist/node/config/getBaseMongoSdk.d.ts.map +1 -1
- package/dist/node/config/index.d.cts +3 -3
- package/dist/node/config/index.d.cts.map +1 -1
- package/dist/node/config/index.d.mts +3 -3
- package/dist/node/config/index.d.mts.map +1 -1
- package/dist/node/config/index.d.ts +3 -3
- package/dist/node/config/index.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +8 -8
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +8 -8
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +8 -8
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/util/index.d.cts +1 -1
- package/dist/node/util/index.d.cts.map +1 -1
- package/dist/node/util/index.d.mts +1 -1
- package/dist/node/util/index.d.mts.map +1 -1
- package/dist/node/util/index.d.ts +1 -1
- package/dist/node/util/index.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/Indexes/index.ts +1 -1
- package/src/Module.ts +3 -3
- package/src/config/getBaseMongoSdk.ts +1 -1
- package/src/config/hasMongoDBConfig.ts +1 -1
- package/src/config/index.ts +3 -3
- package/src/index.ts +8 -8
- package/src/util/index.ts +1 -1
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The index direction (1 for ascending, -1 for descending)
|
|
3
|
-
*/
|
|
4
1
|
export type IndexDirection = -1 | 1;
|
|
5
|
-
/**
|
|
6
|
-
* Description of index(es) to be created on a store
|
|
7
|
-
*/
|
|
8
2
|
export type IndexDescription = {
|
|
9
|
-
/**
|
|
10
|
-
* The key(s) to index
|
|
11
|
-
*/
|
|
12
3
|
key: {
|
|
13
4
|
[key: string]: IndexDirection;
|
|
14
5
|
} | Map<string, IndexDirection>;
|
|
15
|
-
/**
|
|
16
|
-
* The name of the index
|
|
17
|
-
*/
|
|
18
6
|
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the index must enforce uniqueness on the key
|
|
21
|
-
*/
|
|
22
7
|
unique?: boolean;
|
|
23
8
|
};
|
|
24
9
|
//# sourceMappingURL=IndexDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAKnC,MAAM,MAAM,gBAAgB,GAAG;IAI7B,GAAG,EACC;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACD,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAI/B,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The index direction (1 for ascending, -1 for descending)
|
|
3
|
-
*/
|
|
4
1
|
export type IndexDirection = -1 | 1;
|
|
5
|
-
/**
|
|
6
|
-
* Description of index(es) to be created on a store
|
|
7
|
-
*/
|
|
8
2
|
export type IndexDescription = {
|
|
9
|
-
/**
|
|
10
|
-
* The key(s) to index
|
|
11
|
-
*/
|
|
12
3
|
key: {
|
|
13
4
|
[key: string]: IndexDirection;
|
|
14
5
|
} | Map<string, IndexDirection>;
|
|
15
|
-
/**
|
|
16
|
-
* The name of the index
|
|
17
|
-
*/
|
|
18
6
|
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the index must enforce uniqueness on the key
|
|
21
|
-
*/
|
|
22
7
|
unique?: boolean;
|
|
23
8
|
};
|
|
24
9
|
//# sourceMappingURL=IndexDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAKnC,MAAM,MAAM,gBAAgB,GAAG;IAI7B,GAAG,EACC;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACD,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAI/B,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The index direction (1 for ascending, -1 for descending)
|
|
3
|
-
*/
|
|
4
1
|
export type IndexDirection = -1 | 1;
|
|
5
|
-
/**
|
|
6
|
-
* Description of index(es) to be created on a store
|
|
7
|
-
*/
|
|
8
2
|
export type IndexDescription = {
|
|
9
|
-
/**
|
|
10
|
-
* The key(s) to index
|
|
11
|
-
*/
|
|
12
3
|
key: {
|
|
13
4
|
[key: string]: IndexDirection;
|
|
14
5
|
} | Map<string, IndexDirection>;
|
|
15
|
-
/**
|
|
16
|
-
* The name of the index
|
|
17
|
-
*/
|
|
18
6
|
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* If true, the index must enforce uniqueness on the key
|
|
21
|
-
*/
|
|
22
7
|
unique?: boolean;
|
|
23
8
|
};
|
|
24
9
|
//# sourceMappingURL=IndexDescription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IndexDescription.d.ts","sourceRoot":"","sources":["../../src/IndexDescription.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAKnC,MAAM,MAAM,gBAAgB,GAAG;IAI7B,GAAG,EACC;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACD,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAI/B,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './CollectionIndexFunction';
|
|
1
|
+
export * from './CollectionIndexFunction.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Indexes/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Indexes/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './CollectionIndexFunction';
|
|
1
|
+
export * from './CollectionIndexFunction.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Indexes/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Indexes/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './CollectionIndexFunction';
|
|
1
|
+
export * from './CollectionIndexFunction.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Indexes/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Indexes/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -3,45 +3,25 @@ import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/mod
|
|
|
3
3
|
import { BoundWitnessWithMongoMeta, PayloadWithMongoMeta } from '@xyo-network/payload-mongodb';
|
|
4
4
|
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
|
-
export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
|
|
7
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
8
|
-
addToResolvers?: boolean
|
|
9
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
10
|
-
allowNameResolution?: boolean
|
|
6
|
+
export declare const MongoDBModuleMixin: <TParams extends MongoDBModuleParams = import("@xylabs/object").BaseParamsFields & {
|
|
7
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
8
|
+
addToResolvers?: boolean;
|
|
9
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
10
|
+
allowNameResolution?: boolean;
|
|
11
11
|
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 & {
|
|
12
12
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
13
13
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
14
|
-
schema: "network
|
|
14
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
15
15
|
}, "schema"> & {
|
|
16
16
|
schema: "network.xyo.module.mongodb.config";
|
|
17
17
|
}, "schema"> & {
|
|
18
18
|
schema: string;
|
|
19
19
|
};
|
|
20
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
21
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
20
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
21
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
22
22
|
} & {
|
|
23
23
|
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
24
|
-
jobQueue?: import("@xyo-network/node-core-model").JobQueue
|
|
25
|
-
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
26
|
-
} = import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
28
|
-
addToResolvers?: boolean | undefined;
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
|
|
30
|
-
allowNameResolution?: boolean | undefined;
|
|
31
|
-
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 & {
|
|
32
|
-
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
|
-
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network.xyo.module.mongodb.config";
|
|
35
|
-
}, "schema"> & {
|
|
36
|
-
schema: "network.xyo.module.mongodb.config";
|
|
37
|
-
}, "schema"> & {
|
|
38
|
-
schema: string;
|
|
39
|
-
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
44
|
-
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
24
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
25
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
26
|
}, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
|
|
47
27
|
_boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMongoMeta> | undefined;
|
|
@@ -51,72 +31,28 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
51
31
|
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
52
32
|
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
53
33
|
readonly payloads: BaseMongoSdk<PayloadWithMongoMeta>;
|
|
54
|
-
/**
|
|
55
|
-
* Ensures any indexes specified within the config are created. This method should be idempotent
|
|
56
|
-
* allowing for multiple calls without causing errors while ensuring the desired state.
|
|
57
|
-
*/
|
|
58
34
|
ensureIndexes(): Promise<void>;
|
|
59
|
-
address:
|
|
35
|
+
address: import("@xylabs/hex").Address;
|
|
60
36
|
config: TParams["config"];
|
|
61
37
|
id: string;
|
|
62
|
-
modName?:
|
|
38
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
63
39
|
params: TParams;
|
|
64
40
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
65
41
|
queries: string[];
|
|
66
|
-
query: <T extends import("@xyo-network/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
schema: "network.xyo.boundwitness";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: "network.xyo.boundwitness";
|
|
73
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
74
|
-
additional?: Lowercase<string>[] | undefined;
|
|
75
|
-
query: Lowercase<string>;
|
|
76
|
-
resultSet?: string | undefined;
|
|
77
|
-
schema: "network.xyo.boundwitness";
|
|
78
|
-
}, "schema"> & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}, 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 & {
|
|
81
|
-
schema: "network.xyo.module.config";
|
|
82
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
83
|
-
schema: "network.xyo.module.config";
|
|
84
|
-
}>(query: T, payloads?: ({
|
|
85
|
-
schema: string;
|
|
86
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
87
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
88
|
-
additional?: Lowercase<string>[] | undefined;
|
|
89
|
-
query: Lowercase<string>;
|
|
90
|
-
resultSet?: string | undefined;
|
|
91
|
-
schema: "network.xyo.boundwitness";
|
|
92
|
-
}, "schema"> & {
|
|
93
|
-
schema: "network.xyo.boundwitness";
|
|
94
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
95
|
-
additional?: Lowercase<string>[] | undefined;
|
|
96
|
-
query: Lowercase<string>;
|
|
97
|
-
resultSet?: string | undefined;
|
|
98
|
-
schema: "network.xyo.boundwitness";
|
|
99
|
-
}, "schema"> & {
|
|
100
|
-
schema: "network.xyo.boundwitness";
|
|
101
|
-
}, 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 & {
|
|
102
|
-
schema: "network.xyo.module.config";
|
|
103
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
104
|
-
schema: "network.xyo.module.config";
|
|
105
|
-
}>(query: T_1, payloads?: ({
|
|
106
|
-
schema: string;
|
|
107
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
|
|
108
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
109
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
42
|
+
query: <T extends import("@xyo-network/boundwitness-model").QueryBoundWitness = import("@xyo-network/boundwitness-model").QueryBoundWitness, TConf extends import("@xyo-network/module-model").ModuleConfig = import("@xyo-network/module-model").ModuleConfig>(query: T, payloads?: import("@xyo-network/payload-model").Payload[], queryConfig?: TConf) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
43
|
+
queryable: <T extends import("@xyo-network/boundwitness-model").QueryBoundWitness = import("@xyo-network/boundwitness-model").QueryBoundWitness, TConf_1 extends import("@xyo-network/module-model").ModuleConfig = import("@xyo-network/module-model").ModuleConfig>(query: T, payloads?: import("@xyo-network/payload-model").Payload[], queryConfig?: TConf_1) => import("@xylabs/promise").Promisable<boolean>;
|
|
44
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
45
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
110
46
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
111
47
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
112
48
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
113
|
-
emitSerial<
|
|
49
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
114
50
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
115
|
-
off<
|
|
116
|
-
offAny(listener:
|
|
117
|
-
on<
|
|
118
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
119
|
-
once<
|
|
51
|
+
off<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName | TEventName[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): void;
|
|
52
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
53
|
+
on<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName | TEventName[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
54
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
55
|
+
once<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
120
56
|
}) & {
|
|
121
57
|
labels: MongoDBStorageClassLabels;
|
|
122
58
|
}) & TModule;
|
|
@@ -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,GAC7B,OAAO,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;GACnC,OAAO,SAAS,iBAAiB,CAAC,OAAO,CAAC,2CAE9B,OAAO,8BAN6F,GAAG,EAAE;sBAWjG,YAAY,CAAC,yBAAyB,CAAC,GAAG,SAAS;iBACxD,YAAY,CAAC,oBAAoB,CAAC,GAAG,SAAS;;;;;;qBAkCpC,OAAO,CAAC,IAAI,CAAC;;;;;;;;sRA9CF,CAAA,6DAAwB,CAAC;4RAGR,CAAC,6DACrC,CAAC;;;;;;;;;;;;;;;YAiDnB,CAAA"}
|
|
@@ -3,45 +3,25 @@ import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/mod
|
|
|
3
3
|
import { BoundWitnessWithMongoMeta, PayloadWithMongoMeta } from '@xyo-network/payload-mongodb';
|
|
4
4
|
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
|
-
export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
|
|
7
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
8
|
-
addToResolvers?: boolean
|
|
9
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
10
|
-
allowNameResolution?: boolean
|
|
6
|
+
export declare const MongoDBModuleMixin: <TParams extends MongoDBModuleParams = import("@xylabs/object").BaseParamsFields & {
|
|
7
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
8
|
+
addToResolvers?: boolean;
|
|
9
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
10
|
+
allowNameResolution?: boolean;
|
|
11
11
|
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 & {
|
|
12
12
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
13
13
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
14
|
-
schema: "network
|
|
14
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
15
15
|
}, "schema"> & {
|
|
16
16
|
schema: "network.xyo.module.mongodb.config";
|
|
17
17
|
}, "schema"> & {
|
|
18
18
|
schema: string;
|
|
19
19
|
};
|
|
20
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
21
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
20
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
21
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
22
22
|
} & {
|
|
23
23
|
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
24
|
-
jobQueue?: import("@xyo-network/node-core-model").JobQueue
|
|
25
|
-
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
26
|
-
} = import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
28
|
-
addToResolvers?: boolean | undefined;
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
|
|
30
|
-
allowNameResolution?: boolean | undefined;
|
|
31
|
-
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 & {
|
|
32
|
-
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
|
-
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network.xyo.module.mongodb.config";
|
|
35
|
-
}, "schema"> & {
|
|
36
|
-
schema: "network.xyo.module.mongodb.config";
|
|
37
|
-
}, "schema"> & {
|
|
38
|
-
schema: string;
|
|
39
|
-
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
44
|
-
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
24
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
25
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
26
|
}, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
|
|
47
27
|
_boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMongoMeta> | undefined;
|
|
@@ -51,72 +31,28 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
51
31
|
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
52
32
|
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
53
33
|
readonly payloads: BaseMongoSdk<PayloadWithMongoMeta>;
|
|
54
|
-
/**
|
|
55
|
-
* Ensures any indexes specified within the config are created. This method should be idempotent
|
|
56
|
-
* allowing for multiple calls without causing errors while ensuring the desired state.
|
|
57
|
-
*/
|
|
58
34
|
ensureIndexes(): Promise<void>;
|
|
59
|
-
address:
|
|
35
|
+
address: import("@xylabs/hex").Address;
|
|
60
36
|
config: TParams["config"];
|
|
61
37
|
id: string;
|
|
62
|
-
modName?:
|
|
38
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
63
39
|
params: TParams;
|
|
64
40
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
65
41
|
queries: string[];
|
|
66
|
-
query: <T extends import("@xyo-network/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
schema: "network.xyo.boundwitness";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: "network.xyo.boundwitness";
|
|
73
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
74
|
-
additional?: Lowercase<string>[] | undefined;
|
|
75
|
-
query: Lowercase<string>;
|
|
76
|
-
resultSet?: string | undefined;
|
|
77
|
-
schema: "network.xyo.boundwitness";
|
|
78
|
-
}, "schema"> & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}, 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 & {
|
|
81
|
-
schema: "network.xyo.module.config";
|
|
82
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
83
|
-
schema: "network.xyo.module.config";
|
|
84
|
-
}>(query: T, payloads?: ({
|
|
85
|
-
schema: string;
|
|
86
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
87
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
88
|
-
additional?: Lowercase<string>[] | undefined;
|
|
89
|
-
query: Lowercase<string>;
|
|
90
|
-
resultSet?: string | undefined;
|
|
91
|
-
schema: "network.xyo.boundwitness";
|
|
92
|
-
}, "schema"> & {
|
|
93
|
-
schema: "network.xyo.boundwitness";
|
|
94
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
95
|
-
additional?: Lowercase<string>[] | undefined;
|
|
96
|
-
query: Lowercase<string>;
|
|
97
|
-
resultSet?: string | undefined;
|
|
98
|
-
schema: "network.xyo.boundwitness";
|
|
99
|
-
}, "schema"> & {
|
|
100
|
-
schema: "network.xyo.boundwitness";
|
|
101
|
-
}, 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 & {
|
|
102
|
-
schema: "network.xyo.module.config";
|
|
103
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
104
|
-
schema: "network.xyo.module.config";
|
|
105
|
-
}>(query: T_1, payloads?: ({
|
|
106
|
-
schema: string;
|
|
107
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
|
|
108
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
109
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
42
|
+
query: <T extends import("@xyo-network/boundwitness-model").QueryBoundWitness = import("@xyo-network/boundwitness-model").QueryBoundWitness, TConf extends import("@xyo-network/module-model").ModuleConfig = import("@xyo-network/module-model").ModuleConfig>(query: T, payloads?: import("@xyo-network/payload-model").Payload[], queryConfig?: TConf) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
43
|
+
queryable: <T extends import("@xyo-network/boundwitness-model").QueryBoundWitness = import("@xyo-network/boundwitness-model").QueryBoundWitness, TConf_1 extends import("@xyo-network/module-model").ModuleConfig = import("@xyo-network/module-model").ModuleConfig>(query: T, payloads?: import("@xyo-network/payload-model").Payload[], queryConfig?: TConf_1) => import("@xylabs/promise").Promisable<boolean>;
|
|
44
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
45
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
110
46
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
111
47
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
112
48
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
113
|
-
emitSerial<
|
|
49
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
114
50
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
115
|
-
off<
|
|
116
|
-
offAny(listener:
|
|
117
|
-
on<
|
|
118
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
119
|
-
once<
|
|
51
|
+
off<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName | TEventName[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): void;
|
|
52
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
53
|
+
on<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName | TEventName[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
54
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
55
|
+
once<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
120
56
|
}) & {
|
|
121
57
|
labels: MongoDBStorageClassLabels;
|
|
122
58
|
}) & TModule;
|
|
@@ -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,GAC7B,OAAO,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;GACnC,OAAO,SAAS,iBAAiB,CAAC,OAAO,CAAC,2CAE9B,OAAO,8BAN6F,GAAG,EAAE;sBAWjG,YAAY,CAAC,yBAAyB,CAAC,GAAG,SAAS;iBACxD,YAAY,CAAC,oBAAoB,CAAC,GAAG,SAAS;;;;;;qBAkCpC,OAAO,CAAC,IAAI,CAAC;;;;;;;;sRA9CF,CAAA,6DAAwB,CAAC;4RAGR,CAAC,6DACrC,CAAC;;;;;;;;;;;;;;;YAiDnB,CAAA"}
|
package/dist/browser/Module.d.ts
CHANGED
|
@@ -3,45 +3,25 @@ import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/mod
|
|
|
3
3
|
import { BoundWitnessWithMongoMeta, PayloadWithMongoMeta } from '@xyo-network/payload-mongodb';
|
|
4
4
|
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
|
-
export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
|
|
7
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
8
|
-
addToResolvers?: boolean
|
|
9
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
10
|
-
allowNameResolution?: boolean
|
|
6
|
+
export declare const MongoDBModuleMixin: <TParams extends MongoDBModuleParams = import("@xylabs/object").BaseParamsFields & {
|
|
7
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
8
|
+
addToResolvers?: boolean;
|
|
9
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
10
|
+
allowNameResolution?: boolean;
|
|
11
11
|
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 & {
|
|
12
12
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
13
13
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
14
|
-
schema: "network
|
|
14
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
15
15
|
}, "schema"> & {
|
|
16
16
|
schema: "network.xyo.module.mongodb.config";
|
|
17
17
|
}, "schema"> & {
|
|
18
18
|
schema: string;
|
|
19
19
|
};
|
|
20
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
21
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
20
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
21
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
22
22
|
} & {
|
|
23
23
|
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
24
|
-
jobQueue?: import("@xyo-network/node-core-model").JobQueue
|
|
25
|
-
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
26
|
-
} = import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
28
|
-
addToResolvers?: boolean | undefined;
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
|
|
30
|
-
allowNameResolution?: boolean | undefined;
|
|
31
|
-
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 & {
|
|
32
|
-
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
|
-
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network.xyo.module.mongodb.config";
|
|
35
|
-
}, "schema"> & {
|
|
36
|
-
schema: "network.xyo.module.mongodb.config";
|
|
37
|
-
}, "schema"> & {
|
|
38
|
-
schema: string;
|
|
39
|
-
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
44
|
-
jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
|
|
24
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
25
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
26
|
}, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
|
|
47
27
|
_boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMongoMeta> | undefined;
|
|
@@ -51,72 +31,28 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object
|
|
|
51
31
|
readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
|
|
52
32
|
readonly payloadSdkConfig: BaseMongoSdkConfig;
|
|
53
33
|
readonly payloads: BaseMongoSdk<PayloadWithMongoMeta>;
|
|
54
|
-
/**
|
|
55
|
-
* Ensures any indexes specified within the config are created. This method should be idempotent
|
|
56
|
-
* allowing for multiple calls without causing errors while ensuring the desired state.
|
|
57
|
-
*/
|
|
58
34
|
ensureIndexes(): Promise<void>;
|
|
59
|
-
address:
|
|
35
|
+
address: import("@xylabs/hex").Address;
|
|
60
36
|
config: TParams["config"];
|
|
61
37
|
id: string;
|
|
62
|
-
modName?:
|
|
38
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
63
39
|
params: TParams;
|
|
64
40
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
65
41
|
queries: string[];
|
|
66
|
-
query: <T extends import("@xyo-network/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
schema: "network.xyo.boundwitness";
|
|
71
|
-
}, "schema"> & {
|
|
72
|
-
schema: "network.xyo.boundwitness";
|
|
73
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
74
|
-
additional?: Lowercase<string>[] | undefined;
|
|
75
|
-
query: Lowercase<string>;
|
|
76
|
-
resultSet?: string | undefined;
|
|
77
|
-
schema: "network.xyo.boundwitness";
|
|
78
|
-
}, "schema"> & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}, 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 & {
|
|
81
|
-
schema: "network.xyo.module.config";
|
|
82
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
83
|
-
schema: "network.xyo.module.config";
|
|
84
|
-
}>(query: T, payloads?: ({
|
|
85
|
-
schema: string;
|
|
86
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
87
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
88
|
-
additional?: Lowercase<string>[] | undefined;
|
|
89
|
-
query: Lowercase<string>;
|
|
90
|
-
resultSet?: string | undefined;
|
|
91
|
-
schema: "network.xyo.boundwitness";
|
|
92
|
-
}, "schema"> & {
|
|
93
|
-
schema: "network.xyo.boundwitness";
|
|
94
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
95
|
-
additional?: Lowercase<string>[] | undefined;
|
|
96
|
-
query: Lowercase<string>;
|
|
97
|
-
resultSet?: string | undefined;
|
|
98
|
-
schema: "network.xyo.boundwitness";
|
|
99
|
-
}, "schema"> & {
|
|
100
|
-
schema: "network.xyo.boundwitness";
|
|
101
|
-
}, 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 & {
|
|
102
|
-
schema: "network.xyo.module.config";
|
|
103
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
104
|
-
schema: "network.xyo.module.config";
|
|
105
|
-
}>(query: T_1, payloads?: ({
|
|
106
|
-
schema: string;
|
|
107
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
|
|
108
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
109
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
|
|
42
|
+
query: <T extends import("@xyo-network/boundwitness-model").QueryBoundWitness = import("@xyo-network/boundwitness-model").QueryBoundWitness, TConf extends import("@xyo-network/module-model").ModuleConfig = import("@xyo-network/module-model").ModuleConfig>(query: T, payloads?: import("@xyo-network/payload-model").Payload[], queryConfig?: TConf) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
|
|
43
|
+
queryable: <T extends import("@xyo-network/boundwitness-model").QueryBoundWitness = import("@xyo-network/boundwitness-model").QueryBoundWitness, TConf_1 extends import("@xyo-network/module-model").ModuleConfig = import("@xyo-network/module-model").ModuleConfig>(query: T, payloads?: import("@xyo-network/payload-model").Payload[], queryConfig?: TConf_1) => import("@xylabs/promise").Promisable<boolean>;
|
|
44
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
45
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
110
46
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
111
47
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
112
48
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
113
|
-
emitSerial<
|
|
49
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
114
50
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
115
|
-
off<
|
|
116
|
-
offAny(listener:
|
|
117
|
-
on<
|
|
118
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
119
|
-
once<
|
|
51
|
+
off<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName | TEventName[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): void;
|
|
52
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
53
|
+
on<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName | TEventName[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
54
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
55
|
+
once<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
120
56
|
}) & {
|
|
121
57
|
labels: MongoDBStorageClassLabels;
|
|
122
58
|
}) & TModule;
|
|
@@ -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,GAC7B,OAAO,SAAS,mBAAmB;;;;;;;;;;;;;;;;;;;;GACnC,OAAO,SAAS,iBAAiB,CAAC,OAAO,CAAC,2CAE9B,OAAO,8BAN6F,GAAG,EAAE;sBAWjG,YAAY,CAAC,yBAAyB,CAAC,GAAG,SAAS;iBACxD,YAAY,CAAC,oBAAoB,CAAC,GAAG,SAAS;;;;;;qBAkCpC,OAAO,CAAC,IAAI,CAAC;;;;;;;;sRA9CF,CAAA,6DAAwB,CAAC;4RAGR,CAAC,6DACrC,CAAC;;;;;;;;;;;;;;;YAiDnB,CAAA"}
|