@xyo-network/module-abstract-mongodb 2.88.8 → 2.88.9

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.
Files changed (46) hide show
  1. package/dist/browser/IndexDescription.d.cts +0 -15
  2. package/dist/browser/IndexDescription.d.cts.map +1 -1
  3. package/dist/browser/IndexDescription.d.mts +0 -15
  4. package/dist/browser/IndexDescription.d.mts.map +1 -1
  5. package/dist/browser/IndexDescription.d.ts +0 -15
  6. package/dist/browser/IndexDescription.d.ts.map +1 -1
  7. package/dist/browser/Module.d.cts +21 -85
  8. package/dist/browser/Module.d.cts.map +1 -1
  9. package/dist/browser/Module.d.mts +21 -85
  10. package/dist/browser/Module.d.mts.map +1 -1
  11. package/dist/browser/Module.d.ts +21 -85
  12. package/dist/browser/Module.d.ts.map +1 -1
  13. package/dist/browser/config/getBaseMongoSdk.d.cts.map +1 -1
  14. package/dist/browser/config/getBaseMongoSdk.d.mts.map +1 -1
  15. package/dist/browser/config/getBaseMongoSdk.d.ts.map +1 -1
  16. package/dist/neutral/IndexDescription.d.cts +0 -15
  17. package/dist/neutral/IndexDescription.d.cts.map +1 -1
  18. package/dist/neutral/IndexDescription.d.mts +0 -15
  19. package/dist/neutral/IndexDescription.d.mts.map +1 -1
  20. package/dist/neutral/IndexDescription.d.ts +0 -15
  21. package/dist/neutral/IndexDescription.d.ts.map +1 -1
  22. package/dist/neutral/Module.d.cts +21 -85
  23. package/dist/neutral/Module.d.cts.map +1 -1
  24. package/dist/neutral/Module.d.mts +21 -85
  25. package/dist/neutral/Module.d.mts.map +1 -1
  26. package/dist/neutral/Module.d.ts +21 -85
  27. package/dist/neutral/Module.d.ts.map +1 -1
  28. package/dist/neutral/config/getBaseMongoSdk.d.cts.map +1 -1
  29. package/dist/neutral/config/getBaseMongoSdk.d.mts.map +1 -1
  30. package/dist/neutral/config/getBaseMongoSdk.d.ts.map +1 -1
  31. package/dist/node/IndexDescription.d.cts +0 -15
  32. package/dist/node/IndexDescription.d.cts.map +1 -1
  33. package/dist/node/IndexDescription.d.mts +0 -15
  34. package/dist/node/IndexDescription.d.mts.map +1 -1
  35. package/dist/node/IndexDescription.d.ts +0 -15
  36. package/dist/node/IndexDescription.d.ts.map +1 -1
  37. package/dist/node/Module.d.cts +21 -85
  38. package/dist/node/Module.d.cts.map +1 -1
  39. package/dist/node/Module.d.mts +21 -85
  40. package/dist/node/Module.d.mts.map +1 -1
  41. package/dist/node/Module.d.ts +21 -85
  42. package/dist/node/Module.d.ts.map +1 -1
  43. package/dist/node/config/getBaseMongoSdk.d.cts.map +1 -1
  44. package/dist/node/config/getBaseMongoSdk.d.mts.map +1 -1
  45. package/dist/node/config/getBaseMongoSdk.d.ts.map +1 -1
  46. package/package.json +13 -13
@@ -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":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EACC;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACD,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
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":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EACC;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACD,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
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":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAC,CAAA;AAEnC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,GAAG,EACC;QACE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAC9B,GACD,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
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"}
@@ -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" | undefined;
8
- addToResolvers?: boolean | undefined;
9
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
10
- allowNameResolution?: boolean | undefined;
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.xyo.module.mongodb.config";
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 | undefined;
21
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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 | undefined;
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: Lowercase<string>;
35
+ address: import("@xylabs/hex").Address;
60
36
  config: TParams["config"];
61
37
  id: string;
62
- modName?: string | undefined;
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/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
67
- additional?: Lowercase<string>[] | undefined;
68
- query: Lowercase<string>;
69
- resultSet?: string | undefined;
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<TEventName_1 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_1, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName_1]): Promise<void>;
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<TEventName_2 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_2 | TEventName_2[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_2]>): void;
116
- offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
117
- on<TEventName_3 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_3 | TEventName_3[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_3]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
118
- onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
119
- once<TEventName_4 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_4, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_4]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;sRA9CN,CAAC,6DAAwB,CAAC;4RAGR,CAAC,6DACrC,CAAC;;;;;;;;;;;;;;;YAiDhB,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" | undefined;
8
- addToResolvers?: boolean | undefined;
9
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
10
- allowNameResolution?: boolean | undefined;
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.xyo.module.mongodb.config";
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 | undefined;
21
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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 | undefined;
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: Lowercase<string>;
35
+ address: import("@xylabs/hex").Address;
60
36
  config: TParams["config"];
61
37
  id: string;
62
- modName?: string | undefined;
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/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
67
- additional?: Lowercase<string>[] | undefined;
68
- query: Lowercase<string>;
69
- resultSet?: string | undefined;
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<TEventName_1 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_1, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName_1]): Promise<void>;
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<TEventName_2 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_2 | TEventName_2[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_2]>): void;
116
- offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
117
- on<TEventName_3 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_3 | TEventName_3[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_3]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
118
- onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
119
- once<TEventName_4 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_4, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_4]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;sRA9CN,CAAC,6DAAwB,CAAC;4RAGR,CAAC,6DACrC,CAAC;;;;;;;;;;;;;;;YAiDhB,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" | undefined;
8
- addToResolvers?: boolean | undefined;
9
- additionalSigners?: import("@xyo-network/account-model").AccountInstance[] | undefined;
10
- allowNameResolution?: boolean | undefined;
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.xyo.module.mongodb.config";
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 | undefined;
21
- moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
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 | undefined;
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: Lowercase<string>;
35
+ address: import("@xylabs/hex").Address;
60
36
  config: TParams["config"];
61
37
  id: string;
62
- modName?: string | undefined;
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/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
67
- additional?: Lowercase<string>[] | undefined;
68
- query: Lowercase<string>;
69
- resultSet?: string | undefined;
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<TEventName_1 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_1, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName_1]): Promise<void>;
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<TEventName_2 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_2 | TEventName_2[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_2]>): void;
116
- offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
117
- on<TEventName_3 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventNames: TEventName_3 | TEventName_3[], listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_3]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
118
- onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
119
- once<TEventName_4 extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName_4, listener: import("@xyo-network/module-events").EventListener<import("@xyo-network/module-model").ModuleEventData<object>[TEventName_4]>): import("@xyo-network/module-events").EventUnsubscribeFunction;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;;;;;;;;sRA9CN,CAAC,6DAAwB,CAAC;4RAGR,CAAC,6DACrC,CAAC;;;;;;;;;;;;;;;YAiDhB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,mCAAoC,MAAM,oBAErE,CAAA"}
1
+ {"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,cAAc,MAAM,oBAErE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,mCAAoC,MAAM,oBAErE,CAAA"}
1
+ {"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,cAAc,MAAM,oBAErE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,mCAAoC,MAAM,oBAErE,CAAA"}
1
+ {"version":3,"file":"getBaseMongoSdk.d.ts","sourceRoot":"","sources":["../../../src/config/getBaseMongoSdk.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAIlC,eAAO,MAAM,4BAA4B,QAAO,yBAS/C,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,QAAQ,cAAc,MAAM,oBAErE,CAAA"}