@xyo-network/archivist-mongodb 2.74.3 → 2.74.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,238 @@
1
1
  import { AbstractArchivist } from '@xyo-network/archivist-abstract';
2
- import { MongoDBArchivistParams } from '@xyo-network/archivist-model-mongodb';
3
- import { MongoDBStorageClassLabels } from '@xyo-network/module-model-mongodb';
4
- import { BoundWitnessWithMeta } from '@xyo-network/node-core-model';
5
2
  import { Payload } from '@xyo-network/payload-model';
6
- import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js';
7
- export declare class MongoDBArchivist<TParams extends MongoDBArchivistParams = MongoDBArchivistParams> extends AbstractArchivist<TParams> {
8
- static configSchemas: string[];
9
- static labels: MongoDBStorageClassLabels;
10
- private _boundWitnessSdk;
11
- private _payloadSdk;
12
- get boundWitnessSdkConfig(): BaseMongoSdkConfig;
13
- get boundWitnesses(): BaseMongoSdk<BoundWitnessWithMeta>;
14
- get payloadSdkConfig(): BaseMongoSdkConfig;
15
- get payloads(): BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
3
+ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
4
+ _boundWitnessSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/node-core-model").BoundWitnessWithMeta> | undefined;
5
+ _payloadSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
6
+ schema: string;
7
+ }> | undefined;
8
+ readonly boundWitnessSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
9
+ readonly boundWitnesses: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/node-core-model").BoundWitnessWithMeta>;
10
+ readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
11
+ readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
12
+ readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
16
13
  schema: string;
17
14
  }>;
18
- get queries(): string[];
15
+ address: string;
16
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
17
+ accountDerivationPath?: string | undefined;
18
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
19
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
20
+ readonly name?: string | undefined;
21
+ readonly paging?: Record<string, {
22
+ size?: number | undefined;
23
+ }> | undefined;
24
+ readonly security?: {
25
+ readonly allowAnonymous?: boolean | undefined;
26
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
27
+ readonly disallowed?: Record<string, string[]> | undefined;
28
+ } | undefined;
29
+ readonly sign?: boolean | undefined;
30
+ readonly storeQueries?: boolean | undefined;
31
+ readonly timestamp?: boolean | undefined;
32
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
33
+ accountDerivationPath?: string | undefined;
34
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
35
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
36
+ readonly name?: string | undefined;
37
+ readonly paging?: Record<string, {
38
+ size?: number | undefined;
39
+ }> | undefined;
40
+ readonly security?: {
41
+ readonly allowAnonymous?: boolean | undefined;
42
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
43
+ readonly disallowed?: Record<string, string[]> | undefined;
44
+ } | undefined;
45
+ readonly sign?: boolean | undefined;
46
+ readonly storeQueries?: boolean | undefined;
47
+ readonly timestamp?: boolean | undefined;
48
+ } & {
49
+ boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
50
+ payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
51
+ schema: "network.xyo.module.mongodb.config";
52
+ }, "schema"> & {
53
+ schema: "network.xyo.module.mongodb.config";
54
+ }, "schema"> & {
55
+ schema: string;
56
+ }, "schema"> & {
57
+ schema: string;
58
+ };
59
+ params: import("@xyo-network/core").BaseParamsFields & {
60
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
61
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
62
+ accountDerivationPath?: string | undefined;
63
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
64
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
65
+ readonly name?: string | undefined;
66
+ readonly paging?: Record<string, {
67
+ size?: number | undefined;
68
+ }> | undefined;
69
+ readonly security?: {
70
+ readonly allowAnonymous?: boolean | undefined;
71
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
72
+ readonly disallowed?: Record<string, string[]> | undefined;
73
+ } | undefined;
74
+ readonly sign?: boolean | undefined;
75
+ readonly storeQueries?: boolean | undefined;
76
+ readonly timestamp?: boolean | undefined;
77
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
78
+ accountDerivationPath?: string | undefined;
79
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
80
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
81
+ readonly name?: string | undefined;
82
+ readonly paging?: Record<string, {
83
+ size?: number | undefined;
84
+ }> | undefined;
85
+ readonly security?: {
86
+ readonly allowAnonymous?: boolean | undefined;
87
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
88
+ readonly disallowed?: Record<string, string[]> | undefined;
89
+ } | undefined;
90
+ readonly sign?: boolean | undefined;
91
+ readonly storeQueries?: boolean | undefined;
92
+ readonly timestamp?: boolean | undefined;
93
+ } & {
94
+ boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
95
+ payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
96
+ schema: "network.xyo.module.mongodb.config";
97
+ }, "schema"> & {
98
+ schema: "network.xyo.module.mongodb.config";
99
+ }, "schema"> & {
100
+ schema: string;
101
+ }, "schema"> & {
102
+ schema: string;
103
+ };
104
+ ephemeralQueryAccountEnabled?: boolean | undefined;
105
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
106
+ } & {
107
+ boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
108
+ jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
109
+ payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
110
+ };
111
+ previousHash: () => import("@xyo-network/promise").Promisable<string | undefined, never>;
112
+ queries: string[];
113
+ query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
114
+ query: string;
115
+ resultSet?: string | undefined;
116
+ schema: "network.xyo.boundwitness";
117
+ }, "schema"> & {
118
+ schema: "network.xyo.boundwitness";
119
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
120
+ query: string;
121
+ resultSet?: string | undefined;
122
+ schema: "network.xyo.boundwitness";
123
+ }, "schema"> & {
124
+ schema: "network.xyo.boundwitness";
125
+ }, TConf extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
126
+ accountDerivationPath?: string | undefined;
127
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
128
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
129
+ readonly name?: string | undefined;
130
+ readonly paging?: Record<string, {
131
+ size?: number | undefined;
132
+ }> | undefined;
133
+ readonly security?: {
134
+ readonly allowAnonymous?: boolean | undefined;
135
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
136
+ readonly disallowed?: Record<string, string[]> | undefined;
137
+ } | undefined;
138
+ readonly sign?: boolean | undefined;
139
+ readonly storeQueries?: boolean | undefined;
140
+ readonly timestamp?: boolean | undefined;
141
+ } & {
142
+ schema: "network.xyo.module.config";
143
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
144
+ accountDerivationPath?: string | undefined;
145
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
146
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
147
+ readonly name?: string | undefined;
148
+ readonly paging?: Record<string, {
149
+ size?: number | undefined;
150
+ }> | undefined;
151
+ readonly security?: {
152
+ readonly allowAnonymous?: boolean | undefined;
153
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
154
+ readonly disallowed?: Record<string, string[]> | undefined;
155
+ } | undefined;
156
+ readonly sign?: boolean | undefined;
157
+ readonly storeQueries?: boolean | undefined;
158
+ readonly timestamp?: boolean | undefined;
159
+ } & {
160
+ schema: "network.xyo.module.config";
161
+ }>(query: T, payloads?: ({
162
+ schema: string;
163
+ } & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult, never>;
164
+ queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
165
+ query: string;
166
+ resultSet?: string | undefined;
167
+ schema: "network.xyo.boundwitness";
168
+ }, "schema"> & {
169
+ schema: "network.xyo.boundwitness";
170
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
171
+ query: string;
172
+ resultSet?: string | undefined;
173
+ schema: "network.xyo.boundwitness";
174
+ }, "schema"> & {
175
+ schema: "network.xyo.boundwitness";
176
+ }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
177
+ accountDerivationPath?: string | undefined;
178
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
179
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
180
+ readonly name?: string | undefined;
181
+ readonly paging?: Record<string, {
182
+ size?: number | undefined;
183
+ }> | undefined;
184
+ readonly security?: {
185
+ readonly allowAnonymous?: boolean | undefined;
186
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
187
+ readonly disallowed?: Record<string, string[]> | undefined;
188
+ } | undefined;
189
+ readonly sign?: boolean | undefined;
190
+ readonly storeQueries?: boolean | undefined;
191
+ readonly timestamp?: boolean | undefined;
192
+ } & {
193
+ schema: "network.xyo.module.config";
194
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
195
+ accountDerivationPath?: string | undefined;
196
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
197
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
198
+ readonly name?: string | undefined;
199
+ readonly paging?: Record<string, {
200
+ size?: number | undefined;
201
+ }> | undefined;
202
+ readonly security?: {
203
+ readonly allowAnonymous?: boolean | undefined;
204
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
205
+ readonly disallowed?: Record<string, string[]> | undefined;
206
+ } | undefined;
207
+ readonly sign?: boolean | undefined;
208
+ readonly storeQueries?: boolean | undefined;
209
+ readonly timestamp?: boolean | undefined;
210
+ } & {
211
+ schema: "network.xyo.module.config";
212
+ }>(query: T_1, payloads?: ({
213
+ schema: string;
214
+ } & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean, never>;
215
+ start?: (() => import("@xyo-network/promise").Promisable<boolean, never>) | undefined;
216
+ stop?: (() => import("@xyo-network/promise").Promisable<boolean, never>) | undefined;
217
+ eventData: import("@xyo-network/module-model").ModuleEventData<object>;
218
+ clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
219
+ emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
220
+ 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>;
221
+ listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
222
+ 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;
223
+ offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
224
+ 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;
225
+ onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
226
+ 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;
227
+ }) & {
228
+ labels: import("@xyo-network/module-model-mongodb").MongoDBStorageClassLabels;
229
+ } & typeof AbstractArchivist;
230
+ export declare class MongoDBArchivist extends MongoDBArchivistBase {
231
+ static configSchemas: string[];
232
+ readonly queries: string[];
19
233
  head(): Promise<Payload | undefined>;
20
234
  protected getHandler(hashes: string[]): Promise<Payload[]>;
21
235
  protected insertHandler(payloads?: Payload[]): Promise<Payload[]>;
22
236
  }
237
+ export {};
23
238
  //# sourceMappingURL=Archivist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Archivist.d.ts","sourceRoot":"","sources":["../src/Archivist.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,EAAgC,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAK3G,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAA2C,MAAM,8BAA8B,CAAA;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAsBhF,qBACa,gBAAgB,CAAC,OAAO,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAC/H,OA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CAAC,OAAO,EAAE,CAAC;cAQhD,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAgBjF"}
@@ -1,23 +1,238 @@
1
1
  import { AbstractArchivist } from '@xyo-network/archivist-abstract';
2
- import { MongoDBArchivistParams } from '@xyo-network/archivist-model-mongodb';
3
- import { MongoDBStorageClassLabels } from '@xyo-network/module-model-mongodb';
4
- import { BoundWitnessWithMeta } from '@xyo-network/node-core-model';
5
2
  import { Payload } from '@xyo-network/payload-model';
6
- import { BaseMongoSdk, BaseMongoSdkConfig } from '@xyo-network/sdk-xyo-mongo-js';
7
- export declare class MongoDBArchivist<TParams extends MongoDBArchivistParams = MongoDBArchivistParams> extends AbstractArchivist<TParams> {
8
- static configSchemas: string[];
9
- static labels: MongoDBStorageClassLabels;
10
- private _boundWitnessSdk;
11
- private _payloadSdk;
12
- get boundWitnessSdkConfig(): BaseMongoSdkConfig;
13
- get boundWitnesses(): BaseMongoSdk<BoundWitnessWithMeta>;
14
- get payloadSdkConfig(): BaseMongoSdkConfig;
15
- get payloads(): BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
3
+ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
4
+ _boundWitnessSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/node-core-model").BoundWitnessWithMeta> | undefined;
5
+ _payloadSdk: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
6
+ schema: string;
7
+ }> | undefined;
8
+ readonly boundWitnessSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
9
+ readonly boundWitnesses: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/node-core-model").BoundWitnessWithMeta>;
10
+ readonly jobQueue: import("@xyo-network/node-core-model").JobQueue;
11
+ readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
12
+ readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/node-core-model").PayloadMetaBase & {
16
13
  schema: string;
17
14
  }>;
18
- get queries(): string[];
15
+ address: string;
16
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
17
+ accountDerivationPath?: string | undefined;
18
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
19
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
20
+ readonly name?: string | undefined;
21
+ readonly paging?: Record<string, {
22
+ size?: number | undefined;
23
+ }> | undefined;
24
+ readonly security?: {
25
+ readonly allowAnonymous?: boolean | undefined;
26
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
27
+ readonly disallowed?: Record<string, string[]> | undefined;
28
+ } | undefined;
29
+ readonly sign?: boolean | undefined;
30
+ readonly storeQueries?: boolean | undefined;
31
+ readonly timestamp?: boolean | undefined;
32
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
33
+ accountDerivationPath?: string | undefined;
34
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
35
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
36
+ readonly name?: string | undefined;
37
+ readonly paging?: Record<string, {
38
+ size?: number | undefined;
39
+ }> | undefined;
40
+ readonly security?: {
41
+ readonly allowAnonymous?: boolean | undefined;
42
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
43
+ readonly disallowed?: Record<string, string[]> | undefined;
44
+ } | undefined;
45
+ readonly sign?: boolean | undefined;
46
+ readonly storeQueries?: boolean | undefined;
47
+ readonly timestamp?: boolean | undefined;
48
+ } & {
49
+ boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
50
+ payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
51
+ schema: "network.xyo.module.mongodb.config";
52
+ }, "schema"> & {
53
+ schema: "network.xyo.module.mongodb.config";
54
+ }, "schema"> & {
55
+ schema: string;
56
+ }, "schema"> & {
57
+ schema: string;
58
+ };
59
+ params: import("@xyo-network/core").BaseParamsFields & {
60
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
61
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
62
+ accountDerivationPath?: string | undefined;
63
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
64
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
65
+ readonly name?: string | undefined;
66
+ readonly paging?: Record<string, {
67
+ size?: number | undefined;
68
+ }> | undefined;
69
+ readonly security?: {
70
+ readonly allowAnonymous?: boolean | undefined;
71
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
72
+ readonly disallowed?: Record<string, string[]> | undefined;
73
+ } | undefined;
74
+ readonly sign?: boolean | undefined;
75
+ readonly storeQueries?: boolean | undefined;
76
+ readonly timestamp?: boolean | undefined;
77
+ } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
78
+ accountDerivationPath?: string | undefined;
79
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
80
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
81
+ readonly name?: string | undefined;
82
+ readonly paging?: Record<string, {
83
+ size?: number | undefined;
84
+ }> | undefined;
85
+ readonly security?: {
86
+ readonly allowAnonymous?: boolean | undefined;
87
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
88
+ readonly disallowed?: Record<string, string[]> | undefined;
89
+ } | undefined;
90
+ readonly sign?: boolean | undefined;
91
+ readonly storeQueries?: boolean | undefined;
92
+ readonly timestamp?: boolean | undefined;
93
+ } & {
94
+ boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
95
+ payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
96
+ schema: "network.xyo.module.mongodb.config";
97
+ }, "schema"> & {
98
+ schema: "network.xyo.module.mongodb.config";
99
+ }, "schema"> & {
100
+ schema: string;
101
+ }, "schema"> & {
102
+ schema: string;
103
+ };
104
+ ephemeralQueryAccountEnabled?: boolean | undefined;
105
+ wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
106
+ } & {
107
+ boundWitnessSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
108
+ jobQueue?: import("@xyo-network/node-core-model").JobQueue | undefined;
109
+ payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
110
+ };
111
+ previousHash: () => import("@xyo-network/promise").Promisable<string | undefined, never>;
112
+ queries: string[];
113
+ query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
114
+ query: string;
115
+ resultSet?: string | undefined;
116
+ schema: "network.xyo.boundwitness";
117
+ }, "schema"> & {
118
+ schema: "network.xyo.boundwitness";
119
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
120
+ query: string;
121
+ resultSet?: string | undefined;
122
+ schema: "network.xyo.boundwitness";
123
+ }, "schema"> & {
124
+ schema: "network.xyo.boundwitness";
125
+ }, TConf extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
126
+ accountDerivationPath?: string | undefined;
127
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
128
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
129
+ readonly name?: string | undefined;
130
+ readonly paging?: Record<string, {
131
+ size?: number | undefined;
132
+ }> | undefined;
133
+ readonly security?: {
134
+ readonly allowAnonymous?: boolean | undefined;
135
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
136
+ readonly disallowed?: Record<string, string[]> | undefined;
137
+ } | undefined;
138
+ readonly sign?: boolean | undefined;
139
+ readonly storeQueries?: boolean | undefined;
140
+ readonly timestamp?: boolean | undefined;
141
+ } & {
142
+ schema: "network.xyo.module.config";
143
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
144
+ accountDerivationPath?: string | undefined;
145
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
146
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
147
+ readonly name?: string | undefined;
148
+ readonly paging?: Record<string, {
149
+ size?: number | undefined;
150
+ }> | undefined;
151
+ readonly security?: {
152
+ readonly allowAnonymous?: boolean | undefined;
153
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
154
+ readonly disallowed?: Record<string, string[]> | undefined;
155
+ } | undefined;
156
+ readonly sign?: boolean | undefined;
157
+ readonly storeQueries?: boolean | undefined;
158
+ readonly timestamp?: boolean | undefined;
159
+ } & {
160
+ schema: "network.xyo.module.config";
161
+ }>(query: T, payloads?: ({
162
+ schema: string;
163
+ } & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xyo-network/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult, never>;
164
+ queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
165
+ query: string;
166
+ resultSet?: string | undefined;
167
+ schema: "network.xyo.boundwitness";
168
+ }, "schema"> & {
169
+ schema: "network.xyo.boundwitness";
170
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
171
+ query: string;
172
+ resultSet?: string | undefined;
173
+ schema: "network.xyo.boundwitness";
174
+ }, "schema"> & {
175
+ schema: "network.xyo.boundwitness";
176
+ }, TConf_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
177
+ accountDerivationPath?: string | undefined;
178
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
179
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
180
+ readonly name?: string | undefined;
181
+ readonly paging?: Record<string, {
182
+ size?: number | undefined;
183
+ }> | undefined;
184
+ readonly security?: {
185
+ readonly allowAnonymous?: boolean | undefined;
186
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
187
+ readonly disallowed?: Record<string, string[]> | undefined;
188
+ } | undefined;
189
+ readonly sign?: boolean | undefined;
190
+ readonly storeQueries?: boolean | undefined;
191
+ readonly timestamp?: boolean | undefined;
192
+ } & {
193
+ schema: "network.xyo.module.config";
194
+ } = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
195
+ accountDerivationPath?: string | undefined;
196
+ readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
197
+ readonly labels?: import("@xyo-network/module-model").Labels | undefined;
198
+ readonly name?: string | undefined;
199
+ readonly paging?: Record<string, {
200
+ size?: number | undefined;
201
+ }> | undefined;
202
+ readonly security?: {
203
+ readonly allowAnonymous?: boolean | undefined;
204
+ readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
205
+ readonly disallowed?: Record<string, string[]> | undefined;
206
+ } | undefined;
207
+ readonly sign?: boolean | undefined;
208
+ readonly storeQueries?: boolean | undefined;
209
+ readonly timestamp?: boolean | undefined;
210
+ } & {
211
+ schema: "network.xyo.module.config";
212
+ }>(query: T_1, payloads?: ({
213
+ schema: string;
214
+ } & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xyo-network/promise").Promisable<boolean, never>;
215
+ start?: (() => import("@xyo-network/promise").Promisable<boolean, never>) | undefined;
216
+ stop?: (() => import("@xyo-network/promise").Promisable<boolean, never>) | undefined;
217
+ eventData: import("@xyo-network/module-model").ModuleEventData<object>;
218
+ clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
219
+ emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
220
+ 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>;
221
+ listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
222
+ 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;
223
+ offAny(listener: Promise<void> | import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): void;
224
+ 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;
225
+ onAny(listener: import("@xyo-network/module-events").EventAnyListener<import("@xyo-network/module-events").EventArgs>): import("@xyo-network/module-events").EventUnsubscribeFunction;
226
+ 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;
227
+ }) & {
228
+ labels: import("@xyo-network/module-model-mongodb").MongoDBStorageClassLabels;
229
+ } & typeof AbstractArchivist;
230
+ export declare class MongoDBArchivist extends MongoDBArchivistBase {
231
+ static configSchemas: string[];
232
+ readonly queries: string[];
19
233
  head(): Promise<Payload | undefined>;
20
234
  protected getHandler(hashes: string[]): Promise<Payload[]>;
21
235
  protected insertHandler(payloads?: Payload[]): Promise<Payload[]>;
22
236
  }
237
+ export {};
23
238
  //# sourceMappingURL=Archivist.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Archivist.d.ts","sourceRoot":"","sources":["../src/Archivist.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,EAAgC,sBAAsB,EAAE,MAAM,sCAAsC,CAAA;AAK3G,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAA2C,MAAM,8BAA8B,CAAA;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAsBhF,qBACa,gBAAgB,CAAC,OAAO,SAAS,sBAAsB,GAAG,sBAAsB,CAAE,SAAQ,iBAAiB,CAAC,OAAO,CAAC;IAC/H,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