@xyo-network/module-abstract-mongodb 2.82.0 → 2.84.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,19 @@
1
1
  import { Module } from '@xyo-network/module-model';
2
2
  import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/module-model-mongodb';
3
- import { BoundWitnessWithMeta, PayloadWithMeta } from '@xyo-network/payload-mongodb';
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("@xyo-network/core").BaseParamsFields & {
6
+ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
7
7
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
8
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
9
- accountDerivationPath?: string | undefined;
10
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
8
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
9
+ readonly archivist?: string | undefined;
11
10
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
12
11
  readonly name?: string | undefined;
13
12
  readonly paging?: Record<string, {
14
13
  size?: number | undefined;
15
14
  }> | undefined;
15
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
16
+ schema: "network.xyo.module.mongodb.config";
16
17
  readonly security?: {
17
18
  readonly allowAnonymous?: boolean | undefined;
18
19
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -21,14 +22,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
21
22
  readonly sign?: boolean | undefined;
22
23
  readonly storeQueries?: boolean | undefined;
23
24
  readonly timestamp?: boolean | undefined;
24
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
25
- accountDerivationPath?: string | undefined;
26
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
25
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
26
+ readonly archivist?: string | undefined;
27
27
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
28
28
  readonly name?: string | undefined;
29
29
  readonly paging?: Record<string, {
30
30
  size?: number | undefined;
31
31
  }> | undefined;
32
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
33
+ schema: "network.xyo.module.mongodb.config";
32
34
  readonly security?: {
33
35
  readonly allowAnonymous?: boolean | undefined;
34
36
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -37,33 +39,29 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
37
39
  readonly sign?: boolean | undefined;
38
40
  readonly storeQueries?: boolean | undefined;
39
41
  readonly timestamp?: boolean | undefined;
40
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
+ } & {
41
43
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
42
44
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
43
45
  schema: "network.xyo.module.mongodb.config";
44
- }, "schema"> & {
45
- schema: "network.xyo.module.mongodb.config";
46
- }, "schema"> & {
47
- schema: string;
48
46
  }, "schema"> & {
49
47
  schema: string;
50
48
  };
51
49
  ephemeralQueryAccountEnabled?: boolean | undefined;
52
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
53
50
  } & {
54
51
  boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
55
52
  jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
56
53
  payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
57
- } = import("@xyo-network/core").BaseParamsFields & {
54
+ } = import("@xylabs/object").BaseParamsFields & {
58
55
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
59
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
60
- accountDerivationPath?: string | undefined;
61
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
56
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
57
+ readonly archivist?: string | undefined;
62
58
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
63
59
  readonly name?: string | undefined;
64
60
  readonly paging?: Record<string, {
65
61
  size?: number | undefined;
66
62
  }> | undefined;
63
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
64
+ schema: "network.xyo.module.mongodb.config";
67
65
  readonly security?: {
68
66
  readonly allowAnonymous?: boolean | undefined;
69
67
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -72,14 +70,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
72
70
  readonly sign?: boolean | undefined;
73
71
  readonly storeQueries?: boolean | undefined;
74
72
  readonly timestamp?: boolean | undefined;
75
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
76
- accountDerivationPath?: string | undefined;
77
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
73
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
74
+ readonly archivist?: string | undefined;
78
75
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
79
76
  readonly name?: string | undefined;
80
77
  readonly paging?: Record<string, {
81
78
  size?: number | undefined;
82
79
  }> | undefined;
80
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
81
+ schema: "network.xyo.module.mongodb.config";
83
82
  readonly security?: {
84
83
  readonly allowAnonymous?: boolean | undefined;
85
84
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -88,33 +87,26 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
88
87
  readonly sign?: boolean | undefined;
89
88
  readonly storeQueries?: boolean | undefined;
90
89
  readonly timestamp?: boolean | undefined;
91
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
90
+ } & {
92
91
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
93
92
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
94
93
  schema: "network.xyo.module.mongodb.config";
95
- }, "schema"> & {
96
- schema: "network.xyo.module.mongodb.config";
97
- }, "schema"> & {
98
- schema: string;
99
94
  }, "schema"> & {
100
95
  schema: string;
101
96
  };
102
97
  ephemeralQueryAccountEnabled?: boolean | undefined;
103
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
104
98
  } & {
105
99
  boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
106
100
  jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
107
101
  payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
108
102
  }, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
109
- _boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMeta> | undefined;
110
- _payloadSdk: BaseMongoSdk<PayloadWithMeta> | undefined;
103
+ _boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMongoMeta> | undefined;
104
+ _payloadSdk: BaseMongoSdk<PayloadWithMongoMeta> | undefined;
111
105
  readonly boundWitnessSdkConfig: BaseMongoSdkConfig;
112
- readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
106
+ readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMongoMeta>;
113
107
  readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
114
108
  readonly payloadSdkConfig: BaseMongoSdkConfig;
115
- readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
116
- schema: string;
117
- }>;
109
+ readonly payloads: BaseMongoSdk<PayloadWithMongoMeta>;
118
110
  /**
119
111
  * Ensures any indexes specified within the config are created. This method should be idempotent
120
112
  * allowing for multiple calls without causing errors while ensuring the desired state.
@@ -122,29 +114,31 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
122
114
  ensureIndexes(): Promise<void>;
123
115
  address: string;
124
116
  config: TParams["config"];
117
+ id: string;
125
118
  params: TParams;
126
119
  previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
127
120
  queries: string[];
128
- query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
121
+ query: <T extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
129
122
  query: string;
130
123
  resultSet?: string | undefined;
131
124
  schema: "network.xyo.boundwitness";
132
125
  }, "schema"> & {
133
126
  schema: "network.xyo.boundwitness";
134
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
127
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
135
128
  query: string;
136
129
  resultSet?: string | undefined;
137
130
  schema: "network.xyo.boundwitness";
138
131
  }, "schema"> & {
139
132
  schema: "network.xyo.boundwitness";
140
- }, TConf extends import("@xyo-network/payload-model").SchemaFields & {
141
- accountDerivationPath?: string | undefined;
142
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
133
+ }, TConf extends import("@xyo-network/payload-model").SchemaFields & object & {
134
+ readonly archivist?: string | undefined;
143
135
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
144
136
  readonly name?: string | undefined;
145
137
  readonly paging?: Record<string, {
146
138
  size?: number | undefined;
147
139
  }> | undefined;
140
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
141
+ schema: "network.xyo.module.config";
148
142
  readonly security?: {
149
143
  readonly allowAnonymous?: boolean | undefined;
150
144
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -153,16 +147,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
153
147
  readonly sign?: boolean | undefined;
154
148
  readonly storeQueries?: boolean | undefined;
155
149
  readonly timestamp?: boolean | undefined;
156
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
157
- schema: "network.xyo.module.config";
158
- } = import("@xyo-network/payload-model").SchemaFields & {
159
- accountDerivationPath?: string | undefined;
160
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
150
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
151
+ readonly archivist?: string | undefined;
161
152
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
162
153
  readonly name?: string | undefined;
163
154
  readonly paging?: Record<string, {
164
155
  size?: number | undefined;
165
156
  }> | undefined;
157
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
158
+ schema: "network.xyo.module.config";
166
159
  readonly security?: {
167
160
  readonly allowAnonymous?: boolean | undefined;
168
161
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -171,31 +164,30 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
171
164
  readonly sign?: boolean | undefined;
172
165
  readonly storeQueries?: boolean | undefined;
173
166
  readonly timestamp?: boolean | undefined;
174
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
175
- schema: "network.xyo.module.config";
176
- }>(query: T, payloads?: {
167
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
177
168
  schema: string;
178
- }[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
179
- queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
169
+ } & object)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
170
+ queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
180
171
  query: string;
181
172
  resultSet?: string | undefined;
182
173
  schema: "network.xyo.boundwitness";
183
174
  }, "schema"> & {
184
175
  schema: "network.xyo.boundwitness";
185
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
176
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
186
177
  query: string;
187
178
  resultSet?: string | undefined;
188
179
  schema: "network.xyo.boundwitness";
189
180
  }, "schema"> & {
190
181
  schema: "network.xyo.boundwitness";
191
- }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
192
- accountDerivationPath?: string | undefined;
193
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
182
+ }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & object & {
183
+ readonly archivist?: string | undefined;
194
184
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
195
185
  readonly name?: string | undefined;
196
186
  readonly paging?: Record<string, {
197
187
  size?: number | undefined;
198
188
  }> | undefined;
189
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
190
+ schema: "network.xyo.module.config";
199
191
  readonly security?: {
200
192
  readonly allowAnonymous?: boolean | undefined;
201
193
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -204,16 +196,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
204
196
  readonly sign?: boolean | undefined;
205
197
  readonly storeQueries?: boolean | undefined;
206
198
  readonly timestamp?: boolean | undefined;
207
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
208
- schema: "network.xyo.module.config";
209
- } = import("@xyo-network/payload-model").SchemaFields & {
210
- accountDerivationPath?: string | undefined;
211
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
199
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
200
+ readonly archivist?: string | undefined;
212
201
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
213
202
  readonly name?: string | undefined;
214
203
  readonly paging?: Record<string, {
215
204
  size?: number | undefined;
216
205
  }> | undefined;
206
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
207
+ schema: "network.xyo.module.config";
217
208
  readonly security?: {
218
209
  readonly allowAnonymous?: boolean | undefined;
219
210
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -222,11 +213,9 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
222
213
  readonly sign?: boolean | undefined;
223
214
  readonly storeQueries?: boolean | undefined;
224
215
  readonly timestamp?: boolean | undefined;
225
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
226
- schema: "network.xyo.module.config";
227
- }>(query: T_1, payloads?: {
216
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
228
217
  schema: string;
229
- }[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
218
+ } & object)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
230
219
  start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
231
220
  stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
232
221
  eventData: import("@xyo-network/module-model").ModuleEventData<object>;
@@ -1 +1 @@
1
- {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACpF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAFmF,GAAG,EAAE;sBAWjG,aAAa,oBAAoB,CAAC,GAAG,SAAS;iBACnD,aAAa,eAAe,CAAC,GAAG,SAAS;;;;;;;;IA8BtD;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAFmF,GAAG,EAAE;sBAWjG,aAAa,yBAAyB,CAAC,GAAG,SAAS;iBACxD,aAAa,oBAAoB,CAAC,GAAG,SAAS;;;;;;IA8B3D;;;OAGG;qBACoB,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOvC,CAAA"}
@@ -1,18 +1,19 @@
1
1
  import { Module } from '@xyo-network/module-model';
2
2
  import { MongoDBModuleParams, MongoDBStorageClassLabels } from '@xyo-network/module-model-mongodb';
3
- import { BoundWitnessWithMeta, PayloadWithMeta } from '@xyo-network/payload-mongodb';
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("@xyo-network/core").BaseParamsFields & {
6
+ export declare const MongoDBModuleMixin: <TParams extends import("@xylabs/object").BaseParamsFields & {
7
7
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
8
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
9
- accountDerivationPath?: string | undefined;
10
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
8
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
9
+ readonly archivist?: string | undefined;
11
10
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
12
11
  readonly name?: string | undefined;
13
12
  readonly paging?: Record<string, {
14
13
  size?: number | undefined;
15
14
  }> | undefined;
15
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
16
+ schema: "network.xyo.module.mongodb.config";
16
17
  readonly security?: {
17
18
  readonly allowAnonymous?: boolean | undefined;
18
19
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -21,14 +22,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
21
22
  readonly sign?: boolean | undefined;
22
23
  readonly storeQueries?: boolean | undefined;
23
24
  readonly timestamp?: boolean | undefined;
24
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
25
- accountDerivationPath?: string | undefined;
26
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
25
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
26
+ readonly archivist?: string | undefined;
27
27
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
28
28
  readonly name?: string | undefined;
29
29
  readonly paging?: Record<string, {
30
30
  size?: number | undefined;
31
31
  }> | undefined;
32
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
33
+ schema: "network.xyo.module.mongodb.config";
32
34
  readonly security?: {
33
35
  readonly allowAnonymous?: boolean | undefined;
34
36
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -37,33 +39,29 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
37
39
  readonly sign?: boolean | undefined;
38
40
  readonly storeQueries?: boolean | undefined;
39
41
  readonly timestamp?: boolean | undefined;
40
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
42
+ } & {
41
43
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
42
44
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
43
45
  schema: "network.xyo.module.mongodb.config";
44
- }, "schema"> & {
45
- schema: "network.xyo.module.mongodb.config";
46
- }, "schema"> & {
47
- schema: string;
48
46
  }, "schema"> & {
49
47
  schema: string;
50
48
  };
51
49
  ephemeralQueryAccountEnabled?: boolean | undefined;
52
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
53
50
  } & {
54
51
  boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
55
52
  jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
56
53
  payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
57
- } = import("@xyo-network/core").BaseParamsFields & {
54
+ } = import("@xylabs/object").BaseParamsFields & {
58
55
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
59
- config: import("@xyo-network/payload-model").SchemaFields & Omit<{
60
- accountDerivationPath?: string | undefined;
61
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
56
+ config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
57
+ readonly archivist?: string | undefined;
62
58
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
63
59
  readonly name?: string | undefined;
64
60
  readonly paging?: Record<string, {
65
61
  size?: number | undefined;
66
62
  }> | undefined;
63
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
64
+ schema: "network.xyo.module.mongodb.config";
67
65
  readonly security?: {
68
66
  readonly allowAnonymous?: boolean | undefined;
69
67
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -72,14 +70,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
72
70
  readonly sign?: boolean | undefined;
73
71
  readonly storeQueries?: boolean | undefined;
74
72
  readonly timestamp?: boolean | undefined;
75
- } & import("@xyo-network/module-model").ArchivingModuleConfig & Omit<import("@xyo-network/payload-model").SchemaFields & Omit<{
76
- accountDerivationPath?: string | undefined;
77
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
73
+ } & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
74
+ readonly archivist?: string | undefined;
78
75
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
79
76
  readonly name?: string | undefined;
80
77
  readonly paging?: Record<string, {
81
78
  size?: number | undefined;
82
79
  }> | undefined;
80
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
81
+ schema: "network.xyo.module.mongodb.config";
83
82
  readonly security?: {
84
83
  readonly allowAnonymous?: boolean | undefined;
85
84
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -88,33 +87,26 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
88
87
  readonly sign?: boolean | undefined;
89
88
  readonly storeQueries?: boolean | undefined;
90
89
  readonly timestamp?: boolean | undefined;
91
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
90
+ } & {
92
91
  boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
93
92
  payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
94
93
  schema: "network.xyo.module.mongodb.config";
95
- }, "schema"> & {
96
- schema: "network.xyo.module.mongodb.config";
97
- }, "schema"> & {
98
- schema: string;
99
94
  }, "schema"> & {
100
95
  schema: string;
101
96
  };
102
97
  ephemeralQueryAccountEnabled?: boolean | undefined;
103
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
104
98
  } & {
105
99
  boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
106
100
  jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
107
101
  payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
108
102
  }, TModule extends AnyAbstractModule<TParams> = AnyAbstractModule<TParams>>(ModuleBase: TModule) => ((abstract new (...args: any[]) => {
109
- _boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMeta> | undefined;
110
- _payloadSdk: BaseMongoSdk<PayloadWithMeta> | undefined;
103
+ _boundWitnessSdk: BaseMongoSdk<BoundWitnessWithMongoMeta> | undefined;
104
+ _payloadSdk: BaseMongoSdk<PayloadWithMongoMeta> | undefined;
111
105
  readonly boundWitnessSdkConfig: BaseMongoSdkConfig;
112
- readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMeta>;
106
+ readonly boundWitnesses: BaseMongoSdk<BoundWitnessWithMongoMeta>;
113
107
  readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
114
108
  readonly payloadSdkConfig: BaseMongoSdkConfig;
115
- readonly payloads: BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-mongodb").PayloadMetaBase & {
116
- schema: string;
117
- }>;
109
+ readonly payloads: BaseMongoSdk<PayloadWithMongoMeta>;
118
110
  /**
119
111
  * Ensures any indexes specified within the config are created. This method should be idempotent
120
112
  * allowing for multiple calls without causing errors while ensuring the desired state.
@@ -122,29 +114,31 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
122
114
  ensureIndexes(): Promise<void>;
123
115
  address: string;
124
116
  config: TParams["config"];
117
+ id: string;
125
118
  params: TParams;
126
119
  previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
127
120
  queries: string[];
128
- query: <T extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
121
+ query: <T extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
129
122
  query: string;
130
123
  resultSet?: string | undefined;
131
124
  schema: "network.xyo.boundwitness";
132
125
  }, "schema"> & {
133
126
  schema: "network.xyo.boundwitness";
134
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
127
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
135
128
  query: string;
136
129
  resultSet?: string | undefined;
137
130
  schema: "network.xyo.boundwitness";
138
131
  }, "schema"> & {
139
132
  schema: "network.xyo.boundwitness";
140
- }, TConf extends import("@xyo-network/payload-model").SchemaFields & {
141
- accountDerivationPath?: string | undefined;
142
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
133
+ }, TConf extends import("@xyo-network/payload-model").SchemaFields & object & {
134
+ readonly archivist?: string | undefined;
143
135
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
144
136
  readonly name?: string | undefined;
145
137
  readonly paging?: Record<string, {
146
138
  size?: number | undefined;
147
139
  }> | undefined;
140
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
141
+ schema: "network.xyo.module.config";
148
142
  readonly security?: {
149
143
  readonly allowAnonymous?: boolean | undefined;
150
144
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -153,16 +147,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
153
147
  readonly sign?: boolean | undefined;
154
148
  readonly storeQueries?: boolean | undefined;
155
149
  readonly timestamp?: boolean | undefined;
156
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
157
- schema: "network.xyo.module.config";
158
- } = import("@xyo-network/payload-model").SchemaFields & {
159
- accountDerivationPath?: string | undefined;
160
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
150
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
151
+ readonly archivist?: string | undefined;
161
152
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
162
153
  readonly name?: string | undefined;
163
154
  readonly paging?: Record<string, {
164
155
  size?: number | undefined;
165
156
  }> | undefined;
157
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
158
+ schema: "network.xyo.module.config";
166
159
  readonly security?: {
167
160
  readonly allowAnonymous?: boolean | undefined;
168
161
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -171,31 +164,30 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
171
164
  readonly sign?: boolean | undefined;
172
165
  readonly storeQueries?: boolean | undefined;
173
166
  readonly timestamp?: boolean | undefined;
174
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
175
- schema: "network.xyo.module.config";
176
- }>(query: T, payloads?: {
167
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
177
168
  schema: string;
178
- }[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
179
- queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
169
+ } & object)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult>;
170
+ queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
180
171
  query: string;
181
172
  resultSet?: string | undefined;
182
173
  schema: "network.xyo.boundwitness";
183
174
  }, "schema"> & {
184
175
  schema: "network.xyo.boundwitness";
185
- } = import("@xyo-network/payload-model").SchemaFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
176
+ } = import("@xyo-network/payload-model").SchemaFields & object & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
186
177
  query: string;
187
178
  resultSet?: string | undefined;
188
179
  schema: "network.xyo.boundwitness";
189
180
  }, "schema"> & {
190
181
  schema: "network.xyo.boundwitness";
191
- }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & {
192
- accountDerivationPath?: string | undefined;
193
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
182
+ }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & object & {
183
+ readonly archivist?: string | undefined;
194
184
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
195
185
  readonly name?: string | undefined;
196
186
  readonly paging?: Record<string, {
197
187
  size?: number | undefined;
198
188
  }> | undefined;
189
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
190
+ schema: "network.xyo.module.config";
199
191
  readonly security?: {
200
192
  readonly allowAnonymous?: boolean | undefined;
201
193
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -204,16 +196,15 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
204
196
  readonly sign?: boolean | undefined;
205
197
  readonly storeQueries?: boolean | undefined;
206
198
  readonly timestamp?: boolean | undefined;
207
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
208
- schema: "network.xyo.module.config";
209
- } = import("@xyo-network/payload-model").SchemaFields & {
210
- accountDerivationPath?: string | undefined;
211
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
199
+ } & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
200
+ readonly archivist?: string | undefined;
212
201
  readonly labels?: import("@xyo-network/module-model").Labels | undefined;
213
202
  readonly name?: string | undefined;
214
203
  readonly paging?: Record<string, {
215
204
  size?: number | undefined;
216
205
  }> | undefined;
206
+ readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
207
+ schema: "network.xyo.module.config";
217
208
  readonly security?: {
218
209
  readonly allowAnonymous?: boolean | undefined;
219
210
  readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
@@ -222,11 +213,9 @@ export declare const MongoDBModuleMixin: <TParams extends import("@xyo-network/c
222
213
  readonly sign?: boolean | undefined;
223
214
  readonly storeQueries?: boolean | undefined;
224
215
  readonly timestamp?: boolean | undefined;
225
- } & import("@xyo-network/module-model").ArchivingModuleConfig & {
226
- schema: "network.xyo.module.config";
227
- }>(query: T_1, payloads?: {
216
+ } & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
228
217
  schema: string;
229
- }[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
218
+ } & object)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean>;
230
219
  start?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
231
220
  stop?: (() => import("@xylabs/promise").Promisable<boolean>) | undefined;
232
221
  eventData: import("@xyo-network/module-model").ModuleEventData<object>;
@@ -1 +1 @@
1
- {"version":3,"file":"Module.d.ts","sourceRoot":"","sources":["../../src/Module.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,EAAiB,mBAAmB,EAAuB,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AACtI,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACpF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAFmF,GAAG,EAAE;sBAWjG,aAAa,oBAAoB,CAAC,GAAG,SAAS;iBACnD,aAAa,eAAe,CAAC,GAAG,SAAS;;;;;;;;IA8BtD;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAFmF,GAAG,EAAE;sBAWjG,aAAa,yBAAyB,CAAC,GAAG,SAAS;iBACxD,aAAa,oBAAoB,CAAC,GAAG,SAAS;;;;;;IA8B3D;;;OAGG;qBACoB,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAOvC,CAAA"}