@xyo-network/archivist-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.
- package/dist/browser/Archivist.d.cts +22 -73
- package/dist/browser/Archivist.d.cts.map +1 -1
- package/dist/browser/Archivist.d.mts +22 -73
- package/dist/browser/Archivist.d.mts.map +1 -1
- package/dist/browser/Archivist.d.ts +22 -73
- package/dist/browser/Archivist.d.ts.map +1 -1
- package/dist/neutral/Archivist.d.cts +22 -73
- package/dist/neutral/Archivist.d.cts.map +1 -1
- package/dist/neutral/Archivist.d.mts +22 -73
- package/dist/neutral/Archivist.d.mts.map +1 -1
- package/dist/neutral/Archivist.d.ts +22 -73
- package/dist/neutral/Archivist.d.ts.map +1 -1
- package/dist/node/Archivist.d.cts +22 -73
- package/dist/node/Archivist.d.cts.map +1 -1
- package/dist/node/Archivist.d.mts +22 -73
- package/dist/node/Archivist.d.mts.map +1 -1
- package/dist/node/Archivist.d.ts +22 -73
- package/dist/node/Archivist.d.ts.map +1 -1
- package/package.json +23 -23
|
@@ -11,106 +11,55 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
11
11
|
readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
|
|
12
12
|
readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<PayloadWithMongoMeta>;
|
|
13
13
|
ensureIndexes(): Promise<void>;
|
|
14
|
-
address:
|
|
14
|
+
address: import("@xylabs/hex").Address;
|
|
15
15
|
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 & {
|
|
16
16
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
17
17
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
18
|
-
schema: "network
|
|
18
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
19
19
|
}, "schema"> & {
|
|
20
20
|
schema: "network.xyo.module.mongodb.config";
|
|
21
21
|
}, "schema"> & {
|
|
22
22
|
schema: string;
|
|
23
23
|
};
|
|
24
24
|
id: string;
|
|
25
|
-
modName?:
|
|
25
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
26
26
|
params: import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
28
|
-
addToResolvers?: boolean
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
30
|
-
allowNameResolution?: boolean
|
|
27
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
28
|
+
addToResolvers?: boolean;
|
|
29
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
30
|
+
allowNameResolution?: boolean;
|
|
31
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
32
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
33
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network
|
|
34
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
35
35
|
}, "schema"> & {
|
|
36
36
|
schema: "network.xyo.module.mongodb.config";
|
|
37
37
|
}, "schema"> & {
|
|
38
38
|
schema: string;
|
|
39
39
|
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
40
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
41
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
42
42
|
} & {
|
|
43
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
|
|
44
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
45
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
46
|
};
|
|
47
|
-
previousHash: () => import("@xylabs/promise").Promisable<string | undefined
|
|
47
|
+
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
48
48
|
queries: string[];
|
|
49
|
-
query: <T extends import("@xyo-network/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
schema: "network.xyo.boundwitness";
|
|
54
|
-
}, "schema"> & {
|
|
55
|
-
schema: "network.xyo.boundwitness";
|
|
56
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
57
|
-
additional?: Lowercase<string>[] | undefined;
|
|
58
|
-
query: Lowercase<string>;
|
|
59
|
-
resultSet?: string | undefined;
|
|
60
|
-
schema: "network.xyo.boundwitness";
|
|
61
|
-
}, "schema"> & {
|
|
62
|
-
schema: "network.xyo.boundwitness";
|
|
63
|
-
}, 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 & {
|
|
64
|
-
schema: "network.xyo.module.config";
|
|
65
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
66
|
-
schema: "network.xyo.module.config";
|
|
67
|
-
}>(query: T, payloads?: ({
|
|
68
|
-
schema: string;
|
|
69
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult<{
|
|
70
|
-
schema: string;
|
|
71
|
-
} & import("@xyo-network/payload-model").PayloadFields, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
72
|
-
details?: import("@xylabs/object").JsonValue | undefined;
|
|
73
|
-
message?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
query?: Lowercase<string> | undefined;
|
|
76
|
-
schema: "network.xyo.error.module";
|
|
77
|
-
sources?: Lowercase<string>[] | undefined;
|
|
78
|
-
}, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}>, never>;
|
|
81
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
82
|
-
additional?: Lowercase<string>[] | undefined;
|
|
83
|
-
query: Lowercase<string>;
|
|
84
|
-
resultSet?: string | undefined;
|
|
85
|
-
schema: "network.xyo.boundwitness";
|
|
86
|
-
}, "schema"> & {
|
|
87
|
-
schema: "network.xyo.boundwitness";
|
|
88
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
89
|
-
additional?: Lowercase<string>[] | undefined;
|
|
90
|
-
query: Lowercase<string>;
|
|
91
|
-
resultSet?: string | undefined;
|
|
92
|
-
schema: "network.xyo.boundwitness";
|
|
93
|
-
}, "schema"> & {
|
|
94
|
-
schema: "network.xyo.boundwitness";
|
|
95
|
-
}, 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 & {
|
|
96
|
-
schema: "network.xyo.module.config";
|
|
97
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
98
|
-
schema: "network.xyo.module.config";
|
|
99
|
-
}>(query: T_1, payloads?: ({
|
|
100
|
-
schema: string;
|
|
101
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
|
|
102
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
103
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
49
|
+
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>;
|
|
50
|
+
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>;
|
|
51
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
52
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
104
53
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
105
54
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
106
55
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
107
|
-
emitSerial<
|
|
56
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
108
57
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
109
|
-
off<
|
|
110
|
-
offAny(listener:
|
|
111
|
-
on<
|
|
112
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
113
|
-
once<
|
|
58
|
+
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;
|
|
59
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
60
|
+
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;
|
|
61
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
62
|
+
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;
|
|
114
63
|
}) & {
|
|
115
64
|
labels: import("@xyo-network/module-model-mongodb").MongoDBStorageClassLabels;
|
|
116
65
|
} & typeof AbstractArchivist;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Archivist.d.ts","sourceRoot":"","sources":["../../src/Archivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAKnE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAAwB,oBAAoB,EAAsB,MAAM,8BAA8B,CAAA;AAK7G,QAAA,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"Archivist.d.ts","sourceRoot":"","sources":["../../src/Archivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAKnE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAAwB,oBAAoB,EAAsB,MAAM,8BAA8B,CAAA;AAK7G,QAAA,MAAM,oBAAoB;;;;;8BAgCqG,8BACvH;;;;oBAC2F,aAC1F;;+CAzB2C,+BAG5C;0CACH,+BAA+B;uBAEyB,mCAAmC;;;;;;;WAsBzC,CAAC,SAAS,2BAA2B;;yBA1C5F,4BAA4B;;mCAIT,4BAA4B;;uBAEO,4BACjC,wBA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O,CAAC,OAAO,GAAG,SAAS,CAAC;cAK1B,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;cAyBxD,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;cAkBhE,YAAY;CAKtC"}
|
|
@@ -11,106 +11,55 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
11
11
|
readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
|
|
12
12
|
readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<PayloadWithMongoMeta>;
|
|
13
13
|
ensureIndexes(): Promise<void>;
|
|
14
|
-
address:
|
|
14
|
+
address: import("@xylabs/hex").Address;
|
|
15
15
|
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 & {
|
|
16
16
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
17
17
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
18
|
-
schema: "network
|
|
18
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
19
19
|
}, "schema"> & {
|
|
20
20
|
schema: "network.xyo.module.mongodb.config";
|
|
21
21
|
}, "schema"> & {
|
|
22
22
|
schema: string;
|
|
23
23
|
};
|
|
24
24
|
id: string;
|
|
25
|
-
modName?:
|
|
25
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
26
26
|
params: import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
28
|
-
addToResolvers?: boolean
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
30
|
-
allowNameResolution?: boolean
|
|
27
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
28
|
+
addToResolvers?: boolean;
|
|
29
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
30
|
+
allowNameResolution?: boolean;
|
|
31
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
32
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
33
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network
|
|
34
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
35
35
|
}, "schema"> & {
|
|
36
36
|
schema: "network.xyo.module.mongodb.config";
|
|
37
37
|
}, "schema"> & {
|
|
38
38
|
schema: string;
|
|
39
39
|
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
40
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
41
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
42
42
|
} & {
|
|
43
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
|
|
44
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
45
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
46
|
};
|
|
47
|
-
previousHash: () => import("@xylabs/promise").Promisable<string | undefined
|
|
47
|
+
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
48
48
|
queries: string[];
|
|
49
|
-
query: <T extends import("@xyo-network/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
schema: "network.xyo.boundwitness";
|
|
54
|
-
}, "schema"> & {
|
|
55
|
-
schema: "network.xyo.boundwitness";
|
|
56
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
57
|
-
additional?: Lowercase<string>[] | undefined;
|
|
58
|
-
query: Lowercase<string>;
|
|
59
|
-
resultSet?: string | undefined;
|
|
60
|
-
schema: "network.xyo.boundwitness";
|
|
61
|
-
}, "schema"> & {
|
|
62
|
-
schema: "network.xyo.boundwitness";
|
|
63
|
-
}, 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 & {
|
|
64
|
-
schema: "network.xyo.module.config";
|
|
65
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
66
|
-
schema: "network.xyo.module.config";
|
|
67
|
-
}>(query: T, payloads?: ({
|
|
68
|
-
schema: string;
|
|
69
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult<{
|
|
70
|
-
schema: string;
|
|
71
|
-
} & import("@xyo-network/payload-model").PayloadFields, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
72
|
-
details?: import("@xylabs/object").JsonValue | undefined;
|
|
73
|
-
message?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
query?: Lowercase<string> | undefined;
|
|
76
|
-
schema: "network.xyo.error.module";
|
|
77
|
-
sources?: Lowercase<string>[] | undefined;
|
|
78
|
-
}, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}>, never>;
|
|
81
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
82
|
-
additional?: Lowercase<string>[] | undefined;
|
|
83
|
-
query: Lowercase<string>;
|
|
84
|
-
resultSet?: string | undefined;
|
|
85
|
-
schema: "network.xyo.boundwitness";
|
|
86
|
-
}, "schema"> & {
|
|
87
|
-
schema: "network.xyo.boundwitness";
|
|
88
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
89
|
-
additional?: Lowercase<string>[] | undefined;
|
|
90
|
-
query: Lowercase<string>;
|
|
91
|
-
resultSet?: string | undefined;
|
|
92
|
-
schema: "network.xyo.boundwitness";
|
|
93
|
-
}, "schema"> & {
|
|
94
|
-
schema: "network.xyo.boundwitness";
|
|
95
|
-
}, 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 & {
|
|
96
|
-
schema: "network.xyo.module.config";
|
|
97
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
98
|
-
schema: "network.xyo.module.config";
|
|
99
|
-
}>(query: T_1, payloads?: ({
|
|
100
|
-
schema: string;
|
|
101
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
|
|
102
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
103
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
49
|
+
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>;
|
|
50
|
+
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>;
|
|
51
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
52
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
104
53
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
105
54
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
106
55
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
107
|
-
emitSerial<
|
|
56
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
108
57
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
109
|
-
off<
|
|
110
|
-
offAny(listener:
|
|
111
|
-
on<
|
|
112
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
113
|
-
once<
|
|
58
|
+
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;
|
|
59
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
60
|
+
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;
|
|
61
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
62
|
+
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;
|
|
114
63
|
}) & {
|
|
115
64
|
labels: import("@xyo-network/module-model-mongodb").MongoDBStorageClassLabels;
|
|
116
65
|
} & typeof AbstractArchivist;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Archivist.d.ts","sourceRoot":"","s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,CAAC,mBAEtE,iBAAiB,oBAAoB,2BAA2B;iCAClE,iCAAiC,6BACxB,iCAAiC,4CAA4C,2BAC7E,wBAAwB,2BAA2B,kCAAkC,CAAC,SAAS,4BAClG,wBAAwB,CAAC,qBAAqB,iBAAiB;SAGhE,CAAC,eAAe,iBAAiB;QAAgC,CAAA,eAAe,iBACvF;sBAEwC,2BACjB;4CAKb,2BAA2B,0CAA0C,2BAA2B;yCAA8E,2BAA2B,oEAAoE,2BAA2B;+CAAsG,2BAA2B,oEAAoE,2BAA2B;2CAAkG,2BAA2B,0CAA0C,2BAA2B;wCAA+E,2BAA2B,mFAAmF,4BAA4B,uBAAuB,2BAA2B;4BAA2E,4BAA4B;uCAAkF,2BAA2B,mFAAmF,4BAA4B,uBAAuB,2BAA2B,gDAAgD,4BAA4B;2BAAuD,4BAA4B,4BAA4B,4BAA4B;yCAAqE,2BAA2B,mEAAmE,4BAA4B,uBAAuB,2BAA2B,gDAAgD,4BAA4B;;;4BA9DxyD,CAAA;AAElE,qBAAa,gBAAiB,SAAQ,oBAAoB;IACxD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAyD;IACzG,gBAAyB,mBAAmB,EAAE,MAAM,CAA+B;IAEnF,SAAkB,OAAO,EAAE,MAAM,EAAE,CAAiD;IAErE,IAAI,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;cAK1B,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;cAyBxD,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;cAkBhE,YAAY;CAKtC"}
|
|
@@ -11,106 +11,55 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
11
11
|
readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
|
|
12
12
|
readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<PayloadWithMongoMeta>;
|
|
13
13
|
ensureIndexes(): Promise<void>;
|
|
14
|
-
address:
|
|
14
|
+
address: import("@xylabs/hex").Address;
|
|
15
15
|
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 & {
|
|
16
16
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
17
17
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
18
|
-
schema: "network
|
|
18
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
19
19
|
}, "schema"> & {
|
|
20
20
|
schema: "network.xyo.module.mongodb.config";
|
|
21
21
|
}, "schema"> & {
|
|
22
22
|
schema: string;
|
|
23
23
|
};
|
|
24
24
|
id: string;
|
|
25
|
-
modName?:
|
|
25
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
26
26
|
params: import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
28
|
-
addToResolvers?: boolean
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
30
|
-
allowNameResolution?: boolean
|
|
27
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
28
|
+
addToResolvers?: boolean;
|
|
29
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
30
|
+
allowNameResolution?: boolean;
|
|
31
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
32
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
33
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network
|
|
34
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
35
35
|
}, "schema"> & {
|
|
36
36
|
schema: "network.xyo.module.mongodb.config";
|
|
37
37
|
}, "schema"> & {
|
|
38
38
|
schema: string;
|
|
39
39
|
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
40
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
41
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
42
42
|
} & {
|
|
43
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
|
|
44
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
45
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
46
|
};
|
|
47
|
-
previousHash: () => import("@xylabs/promise").Promisable<string | undefined
|
|
47
|
+
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
48
48
|
queries: string[];
|
|
49
|
-
query: <T extends import("@xyo-network/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
schema: "network.xyo.boundwitness";
|
|
54
|
-
}, "schema"> & {
|
|
55
|
-
schema: "network.xyo.boundwitness";
|
|
56
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
57
|
-
additional?: Lowercase<string>[] | undefined;
|
|
58
|
-
query: Lowercase<string>;
|
|
59
|
-
resultSet?: string | undefined;
|
|
60
|
-
schema: "network.xyo.boundwitness";
|
|
61
|
-
}, "schema"> & {
|
|
62
|
-
schema: "network.xyo.boundwitness";
|
|
63
|
-
}, 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 & {
|
|
64
|
-
schema: "network.xyo.module.config";
|
|
65
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
66
|
-
schema: "network.xyo.module.config";
|
|
67
|
-
}>(query: T, payloads?: ({
|
|
68
|
-
schema: string;
|
|
69
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult<{
|
|
70
|
-
schema: string;
|
|
71
|
-
} & import("@xyo-network/payload-model").PayloadFields, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
72
|
-
details?: import("@xylabs/object").JsonValue | undefined;
|
|
73
|
-
message?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
query?: Lowercase<string> | undefined;
|
|
76
|
-
schema: "network.xyo.error.module";
|
|
77
|
-
sources?: Lowercase<string>[] | undefined;
|
|
78
|
-
}, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}>, never>;
|
|
81
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
82
|
-
additional?: Lowercase<string>[] | undefined;
|
|
83
|
-
query: Lowercase<string>;
|
|
84
|
-
resultSet?: string | undefined;
|
|
85
|
-
schema: "network.xyo.boundwitness";
|
|
86
|
-
}, "schema"> & {
|
|
87
|
-
schema: "network.xyo.boundwitness";
|
|
88
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
89
|
-
additional?: Lowercase<string>[] | undefined;
|
|
90
|
-
query: Lowercase<string>;
|
|
91
|
-
resultSet?: string | undefined;
|
|
92
|
-
schema: "network.xyo.boundwitness";
|
|
93
|
-
}, "schema"> & {
|
|
94
|
-
schema: "network.xyo.boundwitness";
|
|
95
|
-
}, 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 & {
|
|
96
|
-
schema: "network.xyo.module.config";
|
|
97
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
98
|
-
schema: "network.xyo.module.config";
|
|
99
|
-
}>(query: T_1, payloads?: ({
|
|
100
|
-
schema: string;
|
|
101
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
|
|
102
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
103
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
49
|
+
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>;
|
|
50
|
+
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>;
|
|
51
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
52
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
104
53
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
105
54
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
106
55
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
107
|
-
emitSerial<
|
|
56
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
108
57
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
109
|
-
off<
|
|
110
|
-
offAny(listener:
|
|
111
|
-
on<
|
|
112
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
113
|
-
once<
|
|
58
|
+
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;
|
|
59
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
60
|
+
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;
|
|
61
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
62
|
+
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;
|
|
114
63
|
}) & {
|
|
115
64
|
labels: import("@xyo-network/module-model-mongodb").MongoDBStorageClassLabels;
|
|
116
65
|
} & typeof AbstractArchivist;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Archivist.d.ts","sourceRoot":"","sources":["../../src/Archivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAKnE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAAwB,oBAAoB,EAAsB,MAAM,8BAA8B,CAAA;AAK7G,QAAA,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"Archivist.d.ts","sourceRoot":"","sources":["../../src/Archivist.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CA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B;4BAA2E,4BAA4B;uCAAkF,2BAA2B,mFAAmF,4BAA4B,uBAAuB,2BAA2B,gDAAgD,4BAA4B;2BAAuD,4BAA4B,4BAA4B,4BAA4B;yCAAqE,2BAA2B,mEAAmE,4BAA4B,uBAAuB,2BAA2B,gDAAgD,4BAA4B;;;4BA9DxyD,CAAA;AAElE,qBAAa,gBAAiB,SAAQ,oBAAoB;IACxD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAyD;IACzG,gBAAyB,mBAAmB,EAAE,MAAM,CAA+B;IAEnF,SAAkB,OAAO,EAAE,MAAM,EAAE,CAAiD;IAErE,IAAI,IAAI,OAAO,CAAC,OAAO,GAAG,SAAS,CAAC;cAK1B,UAAU,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;cAyBxD,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;cAkBhE,YAAY;CAKtC"}
|
|
@@ -11,106 +11,55 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
11
11
|
readonly payloadSdkConfig: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkConfig;
|
|
12
12
|
readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<PayloadWithMongoMeta>;
|
|
13
13
|
ensureIndexes(): Promise<void>;
|
|
14
|
-
address:
|
|
14
|
+
address: import("@xylabs/hex").Address;
|
|
15
15
|
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 & {
|
|
16
16
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
17
17
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
18
|
-
schema: "network
|
|
18
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
19
19
|
}, "schema"> & {
|
|
20
20
|
schema: "network.xyo.module.mongodb.config";
|
|
21
21
|
}, "schema"> & {
|
|
22
22
|
schema: string;
|
|
23
23
|
};
|
|
24
24
|
id: string;
|
|
25
|
-
modName?:
|
|
25
|
+
modName?: import("@xyo-network/module-model").ModuleName;
|
|
26
26
|
params: import("@xylabs/object").BaseParamsFields & {
|
|
27
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random"
|
|
28
|
-
addToResolvers?: boolean
|
|
29
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[]
|
|
30
|
-
allowNameResolution?: boolean
|
|
27
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
28
|
+
addToResolvers?: boolean;
|
|
29
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
30
|
+
allowNameResolution?: boolean;
|
|
31
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
32
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
33
33
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
34
|
-
schema: "network
|
|
34
|
+
schema: import("@xyo-network/module-model-mongodb").MongoDBModuleConfigSchema;
|
|
35
35
|
}, "schema"> & {
|
|
36
36
|
schema: "network.xyo.module.mongodb.config";
|
|
37
37
|
}, "schema"> & {
|
|
38
38
|
schema: string;
|
|
39
39
|
};
|
|
40
|
-
ephemeralQueryAccountEnabled?: boolean
|
|
41
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[]
|
|
40
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
41
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
42
42
|
} & {
|
|
43
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
|
|
44
|
+
jobQueue?: import("@xyo-network/node-core-model").JobQueue;
|
|
45
45
|
payloadSdkConfig?: (import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPrivateConfig & Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig>) | undefined;
|
|
46
46
|
};
|
|
47
|
-
previousHash: () => import("@xylabs/promise").Promisable<string | undefined
|
|
47
|
+
previousHash: () => import("@xylabs/promise").Promisable<string | undefined>;
|
|
48
48
|
queries: string[];
|
|
49
|
-
query: <T extends import("@xyo-network/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
schema: "network.xyo.boundwitness";
|
|
54
|
-
}, "schema"> & {
|
|
55
|
-
schema: "network.xyo.boundwitness";
|
|
56
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
57
|
-
additional?: Lowercase<string>[] | undefined;
|
|
58
|
-
query: Lowercase<string>;
|
|
59
|
-
resultSet?: string | undefined;
|
|
60
|
-
schema: "network.xyo.boundwitness";
|
|
61
|
-
}, "schema"> & {
|
|
62
|
-
schema: "network.xyo.boundwitness";
|
|
63
|
-
}, 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 & {
|
|
64
|
-
schema: "network.xyo.module.config";
|
|
65
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
66
|
-
schema: "network.xyo.module.config";
|
|
67
|
-
}>(query: T, payloads?: ({
|
|
68
|
-
schema: string;
|
|
69
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult<{
|
|
70
|
-
schema: string;
|
|
71
|
-
} & import("@xyo-network/payload-model").PayloadFields, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
72
|
-
details?: import("@xylabs/object").JsonValue | undefined;
|
|
73
|
-
message?: string | undefined;
|
|
74
|
-
name?: string | undefined;
|
|
75
|
-
query?: Lowercase<string> | undefined;
|
|
76
|
-
schema: "network.xyo.error.module";
|
|
77
|
-
sources?: Lowercase<string>[] | undefined;
|
|
78
|
-
}, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
79
|
-
schema: "network.xyo.boundwitness";
|
|
80
|
-
}>, never>;
|
|
81
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
82
|
-
additional?: Lowercase<string>[] | undefined;
|
|
83
|
-
query: Lowercase<string>;
|
|
84
|
-
resultSet?: string | undefined;
|
|
85
|
-
schema: "network.xyo.boundwitness";
|
|
86
|
-
}, "schema"> & {
|
|
87
|
-
schema: "network.xyo.boundwitness";
|
|
88
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
89
|
-
additional?: Lowercase<string>[] | undefined;
|
|
90
|
-
query: Lowercase<string>;
|
|
91
|
-
resultSet?: string | undefined;
|
|
92
|
-
schema: "network.xyo.boundwitness";
|
|
93
|
-
}, "schema"> & {
|
|
94
|
-
schema: "network.xyo.boundwitness";
|
|
95
|
-
}, 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 & {
|
|
96
|
-
schema: "network.xyo.module.config";
|
|
97
|
-
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
98
|
-
schema: "network.xyo.module.config";
|
|
99
|
-
}>(query: T_1, payloads?: ({
|
|
100
|
-
schema: string;
|
|
101
|
-
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
|
|
102
|
-
start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
103
|
-
stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
49
|
+
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>;
|
|
50
|
+
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>;
|
|
51
|
+
start?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
52
|
+
stop?: () => import("@xylabs/promise").Promisable<boolean>;
|
|
104
53
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
105
54
|
clearListeners(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): void;
|
|
106
55
|
emit<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
107
|
-
emitSerial<
|
|
56
|
+
emitSerial<TEventName extends keyof import("@xyo-network/module-model").ModuleEventData<object>>(eventName: TEventName, eventArgs: import("@xyo-network/module-model").ModuleEventData<object>[TEventName]): Promise<void>;
|
|
108
57
|
listenerCount(eventNames: keyof import("@xyo-network/module-model").ModuleEventData<object> | (keyof import("@xyo-network/module-model").ModuleEventData<object>)[]): number;
|
|
109
|
-
off<
|
|
110
|
-
offAny(listener:
|
|
111
|
-
on<
|
|
112
|
-
onAny(listener: import("@xyo-network/module-events").EventAnyListener
|
|
113
|
-
once<
|
|
58
|
+
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;
|
|
59
|
+
offAny(listener: import("@xyo-network/module-events").EventAnyListener | Promise<void>): void;
|
|
60
|
+
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;
|
|
61
|
+
onAny(listener: import("@xyo-network/module-events").EventAnyListener): import("@xyo-network/module-events").EventUnsubscribeFunction;
|
|
62
|
+
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;
|
|
114
63
|
}) & {
|
|
115
64
|
labels: import("@xyo-network/module-model-mongodb").MongoDBStorageClassLabels;
|
|
116
65
|
} & typeof AbstractArchivist;
|