@xyo-network/archivist-mongodb 2.86.0-rc.1 → 2.86.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.
- package/dist/browser/Archivist.d.cts +21 -144
- package/dist/browser/Archivist.d.cts.map +1 -1
- package/dist/browser/Archivist.d.mts +21 -144
- package/dist/browser/Archivist.d.mts.map +1 -1
- package/dist/browser/Archivist.d.ts +21 -144
- package/dist/browser/Archivist.d.ts.map +1 -1
- package/dist/browser/lib/validByType.d.cts +2 -2
- package/dist/browser/lib/validByType.d.cts.map +1 -1
- package/dist/browser/lib/validByType.d.mts +2 -2
- package/dist/browser/lib/validByType.d.mts.map +1 -1
- package/dist/browser/lib/validByType.d.ts +2 -2
- package/dist/browser/lib/validByType.d.ts.map +1 -1
- package/dist/node/Archivist.d.cts +21 -144
- package/dist/node/Archivist.d.cts.map +1 -1
- package/dist/node/Archivist.d.mts +21 -144
- package/dist/node/Archivist.d.mts.map +1 -1
- package/dist/node/Archivist.d.ts +21 -144
- package/dist/node/Archivist.d.ts.map +1 -1
- package/dist/node/lib/validByType.d.cts +2 -2
- package/dist/node/lib/validByType.d.cts.map +1 -1
- package/dist/node/lib/validByType.d.mts +2 -2
- package/dist/node/lib/validByType.d.mts.map +1 -1
- package/dist/node/lib/validByType.d.ts +2 -2
- package/dist/node/lib/validByType.d.ts.map +1 -1
- package/package.json +24 -25
|
@@ -12,88 +12,25 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
12
12
|
readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<PayloadWithMongoMeta>;
|
|
13
13
|
ensureIndexes(): Promise<void>;
|
|
14
14
|
address: Lowercase<string>;
|
|
15
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
16
|
-
readonly archivist?: string | undefined;
|
|
17
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
18
|
-
readonly name?: string | undefined;
|
|
19
|
-
readonly paging?: Record<string, {
|
|
20
|
-
size?: number | undefined;
|
|
21
|
-
}> | undefined;
|
|
22
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
23
|
-
schema: "network.xyo.module.mongodb.config";
|
|
24
|
-
readonly security?: {
|
|
25
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
26
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
27
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
readonly sign?: boolean | undefined;
|
|
30
|
-
readonly storeQueries?: boolean | undefined;
|
|
31
|
-
readonly timestamp?: boolean | undefined;
|
|
32
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
33
|
-
readonly archivist?: string | undefined;
|
|
34
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
35
|
-
readonly name?: string | undefined;
|
|
36
|
-
readonly paging?: Record<string, {
|
|
37
|
-
size?: number | undefined;
|
|
38
|
-
}> | undefined;
|
|
39
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
40
|
-
schema: "network.xyo.module.mongodb.config";
|
|
41
|
-
readonly security?: {
|
|
42
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
43
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
44
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
readonly sign?: boolean | undefined;
|
|
47
|
-
readonly storeQueries?: boolean | undefined;
|
|
48
|
-
readonly timestamp?: boolean | undefined;
|
|
49
|
-
} & {
|
|
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 & {
|
|
50
16
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
51
17
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
52
18
|
schema: "network.xyo.module.mongodb.config";
|
|
19
|
+
}, "schema"> & {
|
|
20
|
+
schema: "network.xyo.module.mongodb.config";
|
|
53
21
|
}, "schema"> & {
|
|
54
22
|
schema: string;
|
|
55
23
|
};
|
|
56
24
|
id: string;
|
|
57
25
|
params: import("@xylabs/object").BaseParamsFields & {
|
|
58
26
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
62
|
-
readonly name?: string | undefined;
|
|
63
|
-
readonly paging?: Record<string, {
|
|
64
|
-
size?: number | undefined;
|
|
65
|
-
}> | undefined;
|
|
66
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
67
|
-
schema: "network.xyo.module.mongodb.config";
|
|
68
|
-
readonly security?: {
|
|
69
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
70
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
71
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
readonly sign?: boolean | undefined;
|
|
74
|
-
readonly storeQueries?: boolean | undefined;
|
|
75
|
-
readonly timestamp?: boolean | undefined;
|
|
76
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
77
|
-
readonly archivist?: string | undefined;
|
|
78
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
79
|
-
readonly name?: string | undefined;
|
|
80
|
-
readonly paging?: Record<string, {
|
|
81
|
-
size?: number | undefined;
|
|
82
|
-
}> | undefined;
|
|
83
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
84
|
-
schema: "network.xyo.module.mongodb.config";
|
|
85
|
-
readonly security?: {
|
|
86
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
87
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
88
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
readonly sign?: boolean | undefined;
|
|
91
|
-
readonly storeQueries?: boolean | undefined;
|
|
92
|
-
readonly timestamp?: boolean | undefined;
|
|
93
|
-
} & {
|
|
27
|
+
addToResolvers?: boolean | undefined;
|
|
28
|
+
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 & {
|
|
94
29
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
95
30
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
96
31
|
schema: "network.xyo.module.mongodb.config";
|
|
32
|
+
}, "schema"> & {
|
|
33
|
+
schema: "network.xyo.module.mongodb.config";
|
|
97
34
|
}, "schema"> & {
|
|
98
35
|
schema: string;
|
|
99
36
|
};
|
|
@@ -105,114 +42,54 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
105
42
|
};
|
|
106
43
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined, never>;
|
|
107
44
|
queries: string[];
|
|
108
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
45
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
109
46
|
query: Lowercase<string>;
|
|
110
47
|
resultSet?: string | undefined;
|
|
111
48
|
schema: "network.xyo.boundwitness";
|
|
112
49
|
}, "schema"> & {
|
|
113
50
|
schema: "network.xyo.boundwitness";
|
|
114
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
51
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
115
52
|
query: Lowercase<string>;
|
|
116
53
|
resultSet?: string | undefined;
|
|
117
54
|
schema: "network.xyo.boundwitness";
|
|
118
55
|
}, "schema"> & {
|
|
119
56
|
schema: "network.xyo.boundwitness";
|
|
120
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
121
|
-
readonly archivist?: string | undefined;
|
|
122
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
123
|
-
readonly name?: string | undefined;
|
|
124
|
-
readonly paging?: Record<string, {
|
|
125
|
-
size?: number | undefined;
|
|
126
|
-
}> | undefined;
|
|
127
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
57
|
+
}, 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 & {
|
|
128
58
|
schema: "network.xyo.module.config";
|
|
129
|
-
|
|
130
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
131
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
132
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
133
|
-
} | undefined;
|
|
134
|
-
readonly sign?: boolean | undefined;
|
|
135
|
-
readonly storeQueries?: boolean | undefined;
|
|
136
|
-
readonly timestamp?: boolean | undefined;
|
|
137
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
138
|
-
readonly archivist?: string | undefined;
|
|
139
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
140
|
-
readonly name?: string | undefined;
|
|
141
|
-
readonly paging?: Record<string, {
|
|
142
|
-
size?: number | undefined;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
59
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
145
60
|
schema: "network.xyo.module.config";
|
|
146
|
-
|
|
147
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
148
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
149
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
150
|
-
} | undefined;
|
|
151
|
-
readonly sign?: boolean | undefined;
|
|
152
|
-
readonly storeQueries?: boolean | undefined;
|
|
153
|
-
readonly timestamp?: boolean | undefined;
|
|
154
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
|
|
61
|
+
}>(query: T, payloads?: ({
|
|
155
62
|
schema: string;
|
|
156
|
-
} &
|
|
63
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult<{
|
|
157
64
|
schema: string;
|
|
158
|
-
} &
|
|
65
|
+
} & import("@xyo-network/payload-model").PayloadFields, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
159
66
|
message?: string | undefined;
|
|
160
67
|
name?: string | undefined;
|
|
161
68
|
query?: Lowercase<string> | undefined;
|
|
162
69
|
schema: "network.xyo.error.module";
|
|
163
70
|
sources?: Lowercase<string>[] | undefined;
|
|
164
|
-
}, import("@xyo-network/payload-model").SchemaFields &
|
|
71
|
+
}, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
165
72
|
schema: "network.xyo.boundwitness";
|
|
166
73
|
}>, never>;
|
|
167
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
74
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
168
75
|
query: Lowercase<string>;
|
|
169
76
|
resultSet?: string | undefined;
|
|
170
77
|
schema: "network.xyo.boundwitness";
|
|
171
78
|
}, "schema"> & {
|
|
172
79
|
schema: "network.xyo.boundwitness";
|
|
173
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
80
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
174
81
|
query: Lowercase<string>;
|
|
175
82
|
resultSet?: string | undefined;
|
|
176
83
|
schema: "network.xyo.boundwitness";
|
|
177
84
|
}, "schema"> & {
|
|
178
85
|
schema: "network.xyo.boundwitness";
|
|
179
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
180
|
-
readonly archivist?: string | undefined;
|
|
181
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
182
|
-
readonly name?: string | undefined;
|
|
183
|
-
readonly paging?: Record<string, {
|
|
184
|
-
size?: number | undefined;
|
|
185
|
-
}> | undefined;
|
|
186
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
86
|
+
}, 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 & {
|
|
187
87
|
schema: "network.xyo.module.config";
|
|
188
|
-
|
|
189
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
190
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
191
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
readonly sign?: boolean | undefined;
|
|
194
|
-
readonly storeQueries?: boolean | undefined;
|
|
195
|
-
readonly timestamp?: boolean | undefined;
|
|
196
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
197
|
-
readonly archivist?: string | undefined;
|
|
198
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
199
|
-
readonly name?: string | undefined;
|
|
200
|
-
readonly paging?: Record<string, {
|
|
201
|
-
size?: number | undefined;
|
|
202
|
-
}> | undefined;
|
|
203
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
88
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
204
89
|
schema: "network.xyo.module.config";
|
|
205
|
-
|
|
206
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
207
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
208
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
readonly sign?: boolean | undefined;
|
|
211
|
-
readonly storeQueries?: boolean | undefined;
|
|
212
|
-
readonly timestamp?: boolean | undefined;
|
|
213
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
|
|
90
|
+
}>(query: T_1, payloads?: ({
|
|
214
91
|
schema: string;
|
|
215
|
-
} &
|
|
92
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
|
|
216
93
|
start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
217
94
|
stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
218
95
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
@@ -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,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC9D,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,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAwB,oBAAoB,EAAsB,MAAM,8BAA8B,CAAA;AAK7G,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAwC,CAAA;AAElE,qBAAa,gBAAiB,SAAQ,oBAAoB;IACxD,OAAgB,aAAa,WAAwD;IAErF,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"}
|
|
@@ -12,88 +12,25 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
12
12
|
readonly payloads: import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdk<PayloadWithMongoMeta>;
|
|
13
13
|
ensureIndexes(): Promise<void>;
|
|
14
14
|
address: Lowercase<string>;
|
|
15
|
-
config: import("@xyo-network/payload-model").SchemaFields &
|
|
16
|
-
readonly archivist?: string | undefined;
|
|
17
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
18
|
-
readonly name?: string | undefined;
|
|
19
|
-
readonly paging?: Record<string, {
|
|
20
|
-
size?: number | undefined;
|
|
21
|
-
}> | undefined;
|
|
22
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
23
|
-
schema: "network.xyo.module.mongodb.config";
|
|
24
|
-
readonly security?: {
|
|
25
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
26
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
27
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
28
|
-
} | undefined;
|
|
29
|
-
readonly sign?: boolean | undefined;
|
|
30
|
-
readonly storeQueries?: boolean | undefined;
|
|
31
|
-
readonly timestamp?: boolean | undefined;
|
|
32
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
33
|
-
readonly archivist?: string | undefined;
|
|
34
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
35
|
-
readonly name?: string | undefined;
|
|
36
|
-
readonly paging?: Record<string, {
|
|
37
|
-
size?: number | undefined;
|
|
38
|
-
}> | undefined;
|
|
39
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
40
|
-
schema: "network.xyo.module.mongodb.config";
|
|
41
|
-
readonly security?: {
|
|
42
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
43
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
44
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
readonly sign?: boolean | undefined;
|
|
47
|
-
readonly storeQueries?: boolean | undefined;
|
|
48
|
-
readonly timestamp?: boolean | undefined;
|
|
49
|
-
} & {
|
|
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 & {
|
|
50
16
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
51
17
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
52
18
|
schema: "network.xyo.module.mongodb.config";
|
|
19
|
+
}, "schema"> & {
|
|
20
|
+
schema: "network.xyo.module.mongodb.config";
|
|
53
21
|
}, "schema"> & {
|
|
54
22
|
schema: string;
|
|
55
23
|
};
|
|
56
24
|
id: string;
|
|
57
25
|
params: import("@xylabs/object").BaseParamsFields & {
|
|
58
26
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
62
|
-
readonly name?: string | undefined;
|
|
63
|
-
readonly paging?: Record<string, {
|
|
64
|
-
size?: number | undefined;
|
|
65
|
-
}> | undefined;
|
|
66
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
67
|
-
schema: "network.xyo.module.mongodb.config";
|
|
68
|
-
readonly security?: {
|
|
69
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
70
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
71
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
readonly sign?: boolean | undefined;
|
|
74
|
-
readonly storeQueries?: boolean | undefined;
|
|
75
|
-
readonly timestamp?: boolean | undefined;
|
|
76
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/payload-model").SchemaFields & object & {
|
|
77
|
-
readonly archivist?: string | undefined;
|
|
78
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
79
|
-
readonly name?: string | undefined;
|
|
80
|
-
readonly paging?: Record<string, {
|
|
81
|
-
size?: number | undefined;
|
|
82
|
-
}> | undefined;
|
|
83
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
84
|
-
schema: "network.xyo.module.mongodb.config";
|
|
85
|
-
readonly security?: {
|
|
86
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
87
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
88
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
readonly sign?: boolean | undefined;
|
|
91
|
-
readonly storeQueries?: boolean | undefined;
|
|
92
|
-
readonly timestamp?: boolean | undefined;
|
|
93
|
-
} & {
|
|
27
|
+
addToResolvers?: boolean | undefined;
|
|
28
|
+
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 & {
|
|
94
29
|
boundWitnessSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
95
30
|
payloadSdkConfig?: Partial<import("@xyo-network/sdk-xyo-mongo-js").BaseMongoSdkPublicConfig> | undefined;
|
|
96
31
|
schema: "network.xyo.module.mongodb.config";
|
|
32
|
+
}, "schema"> & {
|
|
33
|
+
schema: "network.xyo.module.mongodb.config";
|
|
97
34
|
}, "schema"> & {
|
|
98
35
|
schema: string;
|
|
99
36
|
};
|
|
@@ -105,114 +42,54 @@ declare const MongoDBArchivistBase: (abstract new (...args: any[]) => {
|
|
|
105
42
|
};
|
|
106
43
|
previousHash: () => import("@xylabs/promise").Promisable<string | undefined, never>;
|
|
107
44
|
queries: string[];
|
|
108
|
-
query: <T extends import("@xyo-network/payload-model").SchemaFields &
|
|
45
|
+
query: <T extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
109
46
|
query: Lowercase<string>;
|
|
110
47
|
resultSet?: string | undefined;
|
|
111
48
|
schema: "network.xyo.boundwitness";
|
|
112
49
|
}, "schema"> & {
|
|
113
50
|
schema: "network.xyo.boundwitness";
|
|
114
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
51
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
115
52
|
query: Lowercase<string>;
|
|
116
53
|
resultSet?: string | undefined;
|
|
117
54
|
schema: "network.xyo.boundwitness";
|
|
118
55
|
}, "schema"> & {
|
|
119
56
|
schema: "network.xyo.boundwitness";
|
|
120
|
-
}, TConf extends import("@xyo-network/payload-model").SchemaFields &
|
|
121
|
-
readonly archivist?: string | undefined;
|
|
122
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
123
|
-
readonly name?: string | undefined;
|
|
124
|
-
readonly paging?: Record<string, {
|
|
125
|
-
size?: number | undefined;
|
|
126
|
-
}> | undefined;
|
|
127
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
57
|
+
}, 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 & {
|
|
128
58
|
schema: "network.xyo.module.config";
|
|
129
|
-
|
|
130
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
131
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
132
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
133
|
-
} | undefined;
|
|
134
|
-
readonly sign?: boolean | undefined;
|
|
135
|
-
readonly storeQueries?: boolean | undefined;
|
|
136
|
-
readonly timestamp?: boolean | undefined;
|
|
137
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
138
|
-
readonly archivist?: string | undefined;
|
|
139
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
140
|
-
readonly name?: string | undefined;
|
|
141
|
-
readonly paging?: Record<string, {
|
|
142
|
-
size?: number | undefined;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
59
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
145
60
|
schema: "network.xyo.module.config";
|
|
146
|
-
|
|
147
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
148
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
149
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
150
|
-
} | undefined;
|
|
151
|
-
readonly sign?: boolean | undefined;
|
|
152
|
-
readonly storeQueries?: boolean | undefined;
|
|
153
|
-
readonly timestamp?: boolean | undefined;
|
|
154
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T, payloads?: ({
|
|
61
|
+
}>(query: T, payloads?: ({
|
|
155
62
|
schema: string;
|
|
156
|
-
} &
|
|
63
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf | undefined) => import("@xylabs/promise").Promisable<import("@xyo-network/module-model").ModuleQueryResult<{
|
|
157
64
|
schema: string;
|
|
158
|
-
} &
|
|
65
|
+
} & import("@xyo-network/payload-model").PayloadFields, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
159
66
|
message?: string | undefined;
|
|
160
67
|
name?: string | undefined;
|
|
161
68
|
query?: Lowercase<string> | undefined;
|
|
162
69
|
schema: "network.xyo.error.module";
|
|
163
70
|
sources?: Lowercase<string>[] | undefined;
|
|
164
|
-
}, import("@xyo-network/payload-model").SchemaFields &
|
|
71
|
+
}, import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
165
72
|
schema: "network.xyo.boundwitness";
|
|
166
73
|
}>, never>;
|
|
167
|
-
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
74
|
+
queryable: <T_1 extends import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
168
75
|
query: Lowercase<string>;
|
|
169
76
|
resultSet?: string | undefined;
|
|
170
77
|
schema: "network.xyo.boundwitness";
|
|
171
78
|
}, "schema"> & {
|
|
172
79
|
schema: "network.xyo.boundwitness";
|
|
173
|
-
} = import("@xyo-network/payload-model").SchemaFields &
|
|
80
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/boundwitness-model").BoundWitnessFields & {
|
|
174
81
|
query: Lowercase<string>;
|
|
175
82
|
resultSet?: string | undefined;
|
|
176
83
|
schema: "network.xyo.boundwitness";
|
|
177
84
|
}, "schema"> & {
|
|
178
85
|
schema: "network.xyo.boundwitness";
|
|
179
|
-
}, TConf_1 extends import("@xyo-network/payload-model").SchemaFields &
|
|
180
|
-
readonly archivist?: string | undefined;
|
|
181
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
182
|
-
readonly name?: string | undefined;
|
|
183
|
-
readonly paging?: Record<string, {
|
|
184
|
-
size?: number | undefined;
|
|
185
|
-
}> | undefined;
|
|
186
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
86
|
+
}, 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 & {
|
|
187
87
|
schema: "network.xyo.module.config";
|
|
188
|
-
|
|
189
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
190
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
191
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
readonly sign?: boolean | undefined;
|
|
194
|
-
readonly storeQueries?: boolean | undefined;
|
|
195
|
-
readonly timestamp?: boolean | undefined;
|
|
196
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig = import("@xyo-network/payload-model").SchemaFields & object & {
|
|
197
|
-
readonly archivist?: string | undefined;
|
|
198
|
-
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
199
|
-
readonly name?: string | undefined;
|
|
200
|
-
readonly paging?: Record<string, {
|
|
201
|
-
size?: number | undefined;
|
|
202
|
-
}> | undefined;
|
|
203
|
-
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
88
|
+
} = import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
|
|
204
89
|
schema: "network.xyo.module.config";
|
|
205
|
-
|
|
206
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
207
|
-
readonly allowed?: Record<string, (Lowercase<string> | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
208
|
-
readonly disallowed?: Record<string, Lowercase<string>[]> | undefined;
|
|
209
|
-
} | undefined;
|
|
210
|
-
readonly sign?: boolean | undefined;
|
|
211
|
-
readonly storeQueries?: boolean | undefined;
|
|
212
|
-
readonly timestamp?: boolean | undefined;
|
|
213
|
-
} & import("@xyo-network/module-model").ArchivingModuleConfig>(query: T_1, payloads?: ({
|
|
90
|
+
}>(query: T_1, payloads?: ({
|
|
214
91
|
schema: string;
|
|
215
|
-
} &
|
|
92
|
+
} & import("@xyo-network/payload-model").PayloadFields)[] | undefined, queryConfig?: TConf_1 | undefined) => import("@xylabs/promise").Promisable<boolean, never>;
|
|
216
93
|
start?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
217
94
|
stop?: (() => import("@xylabs/promise").Promisable<boolean, never>) | undefined;
|
|
218
95
|
eventData: import("@xyo-network/module-model").ModuleEventData<object>;
|
|
@@ -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,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC9D,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,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAwB,oBAAoB,EAAsB,MAAM,8BAA8B,CAAA;AAK7G,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAwC,CAAA;AAElE,qBAAa,gBAAiB,SAAQ,oBAAoB;IACxD,OAAgB,aAAa,WAAwD;IAErF,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"}
|