@xyo-network/archivist-model 3.8.0 → 3.8.2
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/neutral/index.d.ts +995 -14
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/ArchivistFunctions.ts +22 -0
- package/src/Instance.ts +3 -3
- package/src/Module.ts +10 -8
- package/src/ModuleInstance.ts +11 -0
- package/src/PayloadArchivist.ts +36 -0
- package/src/attachable/AttachableInstance.ts +2 -2
- package/src/index.ts +3 -2
- package/src/typeChecks.ts +2 -2
- package/dist/neutral/Config.d.ts +0 -27
- package/dist/neutral/Config.d.ts.map +0 -1
- package/dist/neutral/EventData.d.ts +0 -5
- package/dist/neutral/EventData.d.ts.map +0 -1
- package/dist/neutral/EventModels/Cleared.d.ts +0 -7
- package/dist/neutral/EventModels/Cleared.d.ts.map +0 -1
- package/dist/neutral/EventModels/Deleted.d.ts +0 -10
- package/dist/neutral/EventModels/Deleted.d.ts.map +0 -1
- package/dist/neutral/EventModels/Inserted.d.ts +0 -10
- package/dist/neutral/EventModels/Inserted.d.ts.map +0 -1
- package/dist/neutral/EventModels/index.d.ts +0 -4
- package/dist/neutral/EventModels/index.d.ts.map +0 -1
- package/dist/neutral/IndexDescription.d.ts +0 -34
- package/dist/neutral/IndexDescription.d.ts.map +0 -1
- package/dist/neutral/Instance.d.ts +0 -10
- package/dist/neutral/Instance.d.ts.map +0 -1
- package/dist/neutral/Labels.d.ts +0 -5
- package/dist/neutral/Labels.d.ts.map +0 -1
- package/dist/neutral/Module.d.ts +0 -6
- package/dist/neutral/Module.d.ts.map +0 -1
- package/dist/neutral/NextOptions.d.ts +0 -10
- package/dist/neutral/NextOptions.d.ts.map +0 -1
- package/dist/neutral/Params.d.ts +0 -5
- package/dist/neutral/Params.d.ts.map +0 -1
- package/dist/neutral/Queries/All.d.ts +0 -7
- package/dist/neutral/Queries/All.d.ts.map +0 -1
- package/dist/neutral/Queries/Clear.d.ts +0 -7
- package/dist/neutral/Queries/Clear.d.ts.map +0 -1
- package/dist/neutral/Queries/Commit.d.ts +0 -7
- package/dist/neutral/Queries/Commit.d.ts.map +0 -1
- package/dist/neutral/Queries/Delete.d.ts +0 -9
- package/dist/neutral/Queries/Delete.d.ts.map +0 -1
- package/dist/neutral/Queries/Get.d.ts +0 -9
- package/dist/neutral/Queries/Get.d.ts.map +0 -1
- package/dist/neutral/Queries/Insert.d.ts +0 -7
- package/dist/neutral/Queries/Insert.d.ts.map +0 -1
- package/dist/neutral/Queries/Next.d.ts +0 -6
- package/dist/neutral/Queries/Next.d.ts.map +0 -1
- package/dist/neutral/Queries/index.d.ts +0 -18
- package/dist/neutral/Queries/index.d.ts.map +0 -1
- package/dist/neutral/QueryFunctions.d.ts +0 -23
- package/dist/neutral/QueryFunctions.d.ts.map +0 -1
- package/dist/neutral/RawQueryFunctions.d.ts +0 -16
- package/dist/neutral/RawQueryFunctions.d.ts.map +0 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +0 -14
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +0 -191
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/index.d.ts +0 -4
- package/dist/neutral/attachable/index.d.ts.map +0 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +0 -6
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/typeChecks.d.ts +0 -625
- package/dist/neutral/typeChecks.d.ts.map +0 -1
- package/src/QueryFunctions.ts +0 -39
|
@@ -1,625 +0,0 @@
|
|
|
1
|
-
import type { ArchivistInstance } from './Instance.ts';
|
|
2
|
-
import type { ArchivistModule } from './Module.ts';
|
|
3
|
-
export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
5
|
-
addToResolvers?: boolean;
|
|
6
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
7
|
-
allowNameResolution?: boolean;
|
|
8
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
9
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
10
|
-
parents?: {
|
|
11
|
-
commit?: string[] | undefined;
|
|
12
|
-
read?: string[] | undefined;
|
|
13
|
-
write?: string[] | undefined;
|
|
14
|
-
} | undefined;
|
|
15
|
-
requireAllParents?: boolean | undefined;
|
|
16
|
-
storage?: {
|
|
17
|
-
indexes?: {
|
|
18
|
-
key: {
|
|
19
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
20
|
-
};
|
|
21
|
-
multiEntry?: boolean | undefined;
|
|
22
|
-
name?: string | undefined;
|
|
23
|
-
unique?: boolean | undefined;
|
|
24
|
-
}[] | undefined;
|
|
25
|
-
} | undefined;
|
|
26
|
-
storeParentReads?: boolean | undefined;
|
|
27
|
-
readonly archiving?: {
|
|
28
|
-
readonly archivists?: string[] | undefined;
|
|
29
|
-
readonly queries?: string[] | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
readonly allowedQueries?: string[] | undefined;
|
|
32
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
33
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
34
|
-
readonly labels?: {
|
|
35
|
-
[x: string]: string | undefined;
|
|
36
|
-
} | undefined;
|
|
37
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
38
|
-
readonly paging?: {
|
|
39
|
-
[x: string]: {
|
|
40
|
-
size?: number | undefined;
|
|
41
|
-
};
|
|
42
|
-
} | undefined;
|
|
43
|
-
readonly retry?: {
|
|
44
|
-
backoff?: number | undefined;
|
|
45
|
-
interval?: number | undefined;
|
|
46
|
-
retries?: number | undefined;
|
|
47
|
-
} | undefined;
|
|
48
|
-
readonly security?: {
|
|
49
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
50
|
-
readonly allowed?: {
|
|
51
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
52
|
-
} | undefined;
|
|
53
|
-
readonly disallowed?: {
|
|
54
|
-
[x: string]: Lowercase<string>[];
|
|
55
|
-
} | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
readonly sign?: boolean | undefined;
|
|
58
|
-
readonly storeQueries?: boolean | undefined;
|
|
59
|
-
readonly timestamp?: boolean | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
62
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
63
|
-
}, import("./EventData.ts").ArchivistModuleEventData, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
64
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
65
|
-
}>>>;
|
|
66
|
-
export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
67
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
68
|
-
addToResolvers?: boolean;
|
|
69
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
70
|
-
allowNameResolution?: boolean;
|
|
71
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
72
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
73
|
-
parents?: {
|
|
74
|
-
commit?: string[] | undefined;
|
|
75
|
-
read?: string[] | undefined;
|
|
76
|
-
write?: string[] | undefined;
|
|
77
|
-
} | undefined;
|
|
78
|
-
requireAllParents?: boolean | undefined;
|
|
79
|
-
storage?: {
|
|
80
|
-
indexes?: {
|
|
81
|
-
key: {
|
|
82
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
83
|
-
};
|
|
84
|
-
multiEntry?: boolean | undefined;
|
|
85
|
-
name?: string | undefined;
|
|
86
|
-
unique?: boolean | undefined;
|
|
87
|
-
}[] | undefined;
|
|
88
|
-
} | undefined;
|
|
89
|
-
storeParentReads?: boolean | undefined;
|
|
90
|
-
readonly archiving?: {
|
|
91
|
-
readonly archivists?: string[] | undefined;
|
|
92
|
-
readonly queries?: string[] | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
readonly allowedQueries?: string[] | undefined;
|
|
95
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
96
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
97
|
-
readonly labels?: {
|
|
98
|
-
[x: string]: string | undefined;
|
|
99
|
-
} | undefined;
|
|
100
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
101
|
-
readonly paging?: {
|
|
102
|
-
[x: string]: {
|
|
103
|
-
size?: number | undefined;
|
|
104
|
-
};
|
|
105
|
-
} | undefined;
|
|
106
|
-
readonly retry?: {
|
|
107
|
-
backoff?: number | undefined;
|
|
108
|
-
interval?: number | undefined;
|
|
109
|
-
retries?: number | undefined;
|
|
110
|
-
} | undefined;
|
|
111
|
-
readonly security?: {
|
|
112
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
113
|
-
readonly allowed?: {
|
|
114
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
115
|
-
} | undefined;
|
|
116
|
-
readonly disallowed?: {
|
|
117
|
-
[x: string]: Lowercase<string>[];
|
|
118
|
-
} | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
readonly sign?: boolean | undefined;
|
|
121
|
-
readonly storeQueries?: boolean | undefined;
|
|
122
|
-
readonly timestamp?: boolean | undefined;
|
|
123
|
-
}>;
|
|
124
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
125
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
126
|
-
}, import("./EventData.ts").ArchivistModuleEventData>>;
|
|
127
|
-
export declare const asArchivistModule: {
|
|
128
|
-
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
129
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
130
|
-
addToResolvers?: boolean;
|
|
131
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
132
|
-
allowNameResolution?: boolean;
|
|
133
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
134
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
135
|
-
parents?: {
|
|
136
|
-
commit?: string[] | undefined;
|
|
137
|
-
read?: string[] | undefined;
|
|
138
|
-
write?: string[] | undefined;
|
|
139
|
-
} | undefined;
|
|
140
|
-
requireAllParents?: boolean | undefined;
|
|
141
|
-
storage?: {
|
|
142
|
-
indexes?: {
|
|
143
|
-
key: {
|
|
144
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
145
|
-
};
|
|
146
|
-
multiEntry?: boolean | undefined;
|
|
147
|
-
name?: string | undefined;
|
|
148
|
-
unique?: boolean | undefined;
|
|
149
|
-
}[] | undefined;
|
|
150
|
-
} | undefined;
|
|
151
|
-
storeParentReads?: boolean | undefined;
|
|
152
|
-
readonly archiving?: {
|
|
153
|
-
readonly archivists?: string[] | undefined;
|
|
154
|
-
readonly queries?: string[] | undefined;
|
|
155
|
-
} | undefined;
|
|
156
|
-
readonly allowedQueries?: string[] | undefined;
|
|
157
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
158
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
159
|
-
readonly labels?: {
|
|
160
|
-
[x: string]: string | undefined;
|
|
161
|
-
} | undefined;
|
|
162
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
163
|
-
readonly paging?: {
|
|
164
|
-
[x: string]: {
|
|
165
|
-
size?: number | undefined;
|
|
166
|
-
};
|
|
167
|
-
} | undefined;
|
|
168
|
-
readonly retry?: {
|
|
169
|
-
backoff?: number | undefined;
|
|
170
|
-
interval?: number | undefined;
|
|
171
|
-
retries?: number | undefined;
|
|
172
|
-
} | undefined;
|
|
173
|
-
readonly security?: {
|
|
174
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
175
|
-
readonly allowed?: {
|
|
176
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
177
|
-
} | undefined;
|
|
178
|
-
readonly disallowed?: {
|
|
179
|
-
[x: string]: Lowercase<string>[];
|
|
180
|
-
} | undefined;
|
|
181
|
-
} | undefined;
|
|
182
|
-
readonly sign?: boolean | undefined;
|
|
183
|
-
readonly storeQueries?: boolean | undefined;
|
|
184
|
-
readonly timestamp?: boolean | undefined;
|
|
185
|
-
}>;
|
|
186
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
187
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
188
|
-
}, import("./EventData.ts").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
189
|
-
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
190
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
191
|
-
addToResolvers?: boolean;
|
|
192
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
193
|
-
allowNameResolution?: boolean;
|
|
194
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
195
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
196
|
-
parents?: {
|
|
197
|
-
commit?: string[] | undefined;
|
|
198
|
-
read?: string[] | undefined;
|
|
199
|
-
write?: string[] | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
requireAllParents?: boolean | undefined;
|
|
202
|
-
storage?: {
|
|
203
|
-
indexes?: {
|
|
204
|
-
key: {
|
|
205
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
206
|
-
};
|
|
207
|
-
multiEntry?: boolean | undefined;
|
|
208
|
-
name?: string | undefined;
|
|
209
|
-
unique?: boolean | undefined;
|
|
210
|
-
}[] | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
storeParentReads?: boolean | undefined;
|
|
213
|
-
readonly archiving?: {
|
|
214
|
-
readonly archivists?: string[] | undefined;
|
|
215
|
-
readonly queries?: string[] | undefined;
|
|
216
|
-
} | undefined;
|
|
217
|
-
readonly allowedQueries?: string[] | undefined;
|
|
218
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
219
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
220
|
-
readonly labels?: {
|
|
221
|
-
[x: string]: string | undefined;
|
|
222
|
-
} | undefined;
|
|
223
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
224
|
-
readonly paging?: {
|
|
225
|
-
[x: string]: {
|
|
226
|
-
size?: number | undefined;
|
|
227
|
-
};
|
|
228
|
-
} | undefined;
|
|
229
|
-
readonly retry?: {
|
|
230
|
-
backoff?: number | undefined;
|
|
231
|
-
interval?: number | undefined;
|
|
232
|
-
retries?: number | undefined;
|
|
233
|
-
} | undefined;
|
|
234
|
-
readonly security?: {
|
|
235
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
236
|
-
readonly allowed?: {
|
|
237
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
238
|
-
} | undefined;
|
|
239
|
-
readonly disallowed?: {
|
|
240
|
-
[x: string]: Lowercase<string>[];
|
|
241
|
-
} | undefined;
|
|
242
|
-
} | undefined;
|
|
243
|
-
readonly sign?: boolean | undefined;
|
|
244
|
-
readonly storeQueries?: boolean | undefined;
|
|
245
|
-
readonly timestamp?: boolean | undefined;
|
|
246
|
-
}>;
|
|
247
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
248
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
249
|
-
}, import("./EventData.ts").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
250
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
251
|
-
addToResolvers?: boolean;
|
|
252
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
253
|
-
allowNameResolution?: boolean;
|
|
254
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
255
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
256
|
-
parents?: {
|
|
257
|
-
commit?: string[] | undefined;
|
|
258
|
-
read?: string[] | undefined;
|
|
259
|
-
write?: string[] | undefined;
|
|
260
|
-
} | undefined;
|
|
261
|
-
requireAllParents?: boolean | undefined;
|
|
262
|
-
storage?: {
|
|
263
|
-
indexes?: {
|
|
264
|
-
key: {
|
|
265
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
266
|
-
};
|
|
267
|
-
multiEntry?: boolean | undefined;
|
|
268
|
-
name?: string | undefined;
|
|
269
|
-
unique?: boolean | undefined;
|
|
270
|
-
}[] | undefined;
|
|
271
|
-
} | undefined;
|
|
272
|
-
storeParentReads?: boolean | undefined;
|
|
273
|
-
readonly archiving?: {
|
|
274
|
-
readonly archivists?: string[] | undefined;
|
|
275
|
-
readonly queries?: string[] | undefined;
|
|
276
|
-
} | undefined;
|
|
277
|
-
readonly allowedQueries?: string[] | undefined;
|
|
278
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
279
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
280
|
-
readonly labels?: {
|
|
281
|
-
[x: string]: string | undefined;
|
|
282
|
-
} | undefined;
|
|
283
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
284
|
-
readonly paging?: {
|
|
285
|
-
[x: string]: {
|
|
286
|
-
size?: number | undefined;
|
|
287
|
-
};
|
|
288
|
-
} | undefined;
|
|
289
|
-
readonly retry?: {
|
|
290
|
-
backoff?: number | undefined;
|
|
291
|
-
interval?: number | undefined;
|
|
292
|
-
retries?: number | undefined;
|
|
293
|
-
} | undefined;
|
|
294
|
-
readonly security?: {
|
|
295
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
296
|
-
readonly allowed?: {
|
|
297
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
298
|
-
} | undefined;
|
|
299
|
-
readonly disallowed?: {
|
|
300
|
-
[x: string]: Lowercase<string>[];
|
|
301
|
-
} | undefined;
|
|
302
|
-
} | undefined;
|
|
303
|
-
readonly sign?: boolean | undefined;
|
|
304
|
-
readonly storeQueries?: boolean | undefined;
|
|
305
|
-
readonly timestamp?: boolean | undefined;
|
|
306
|
-
}>;
|
|
307
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
308
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
309
|
-
}, import("./EventData.ts").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
310
|
-
};
|
|
311
|
-
export declare const asArchivistInstance: {
|
|
312
|
-
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
313
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
314
|
-
addToResolvers?: boolean;
|
|
315
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
316
|
-
allowNameResolution?: boolean;
|
|
317
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
318
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
319
|
-
parents?: {
|
|
320
|
-
commit?: string[] | undefined;
|
|
321
|
-
read?: string[] | undefined;
|
|
322
|
-
write?: string[] | undefined;
|
|
323
|
-
} | undefined;
|
|
324
|
-
requireAllParents?: boolean | undefined;
|
|
325
|
-
storage?: {
|
|
326
|
-
indexes?: {
|
|
327
|
-
key: {
|
|
328
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
329
|
-
};
|
|
330
|
-
multiEntry?: boolean | undefined;
|
|
331
|
-
name?: string | undefined;
|
|
332
|
-
unique?: boolean | undefined;
|
|
333
|
-
}[] | undefined;
|
|
334
|
-
} | undefined;
|
|
335
|
-
storeParentReads?: boolean | undefined;
|
|
336
|
-
readonly archiving?: {
|
|
337
|
-
readonly archivists?: string[] | undefined;
|
|
338
|
-
readonly queries?: string[] | undefined;
|
|
339
|
-
} | undefined;
|
|
340
|
-
readonly allowedQueries?: string[] | undefined;
|
|
341
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
342
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
343
|
-
readonly labels?: {
|
|
344
|
-
[x: string]: string | undefined;
|
|
345
|
-
} | undefined;
|
|
346
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
347
|
-
readonly paging?: {
|
|
348
|
-
[x: string]: {
|
|
349
|
-
size?: number | undefined;
|
|
350
|
-
};
|
|
351
|
-
} | undefined;
|
|
352
|
-
readonly retry?: {
|
|
353
|
-
backoff?: number | undefined;
|
|
354
|
-
interval?: number | undefined;
|
|
355
|
-
retries?: number | undefined;
|
|
356
|
-
} | undefined;
|
|
357
|
-
readonly security?: {
|
|
358
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
359
|
-
readonly allowed?: {
|
|
360
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
361
|
-
} | undefined;
|
|
362
|
-
readonly disallowed?: {
|
|
363
|
-
[x: string]: Lowercase<string>[];
|
|
364
|
-
} | undefined;
|
|
365
|
-
} | undefined;
|
|
366
|
-
readonly sign?: boolean | undefined;
|
|
367
|
-
readonly storeQueries?: boolean | undefined;
|
|
368
|
-
readonly timestamp?: boolean | undefined;
|
|
369
|
-
}>;
|
|
370
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
371
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
372
|
-
}, import("./EventData.ts").ArchivistModuleEventData, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
373
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
374
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
375
|
-
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
376
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
377
|
-
addToResolvers?: boolean;
|
|
378
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
379
|
-
allowNameResolution?: boolean;
|
|
380
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
381
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
382
|
-
parents?: {
|
|
383
|
-
commit?: string[] | undefined;
|
|
384
|
-
read?: string[] | undefined;
|
|
385
|
-
write?: string[] | undefined;
|
|
386
|
-
} | undefined;
|
|
387
|
-
requireAllParents?: boolean | undefined;
|
|
388
|
-
storage?: {
|
|
389
|
-
indexes?: {
|
|
390
|
-
key: {
|
|
391
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
392
|
-
};
|
|
393
|
-
multiEntry?: boolean | undefined;
|
|
394
|
-
name?: string | undefined;
|
|
395
|
-
unique?: boolean | undefined;
|
|
396
|
-
}[] | undefined;
|
|
397
|
-
} | undefined;
|
|
398
|
-
storeParentReads?: boolean | undefined;
|
|
399
|
-
readonly archiving?: {
|
|
400
|
-
readonly archivists?: string[] | undefined;
|
|
401
|
-
readonly queries?: string[] | undefined;
|
|
402
|
-
} | undefined;
|
|
403
|
-
readonly allowedQueries?: string[] | undefined;
|
|
404
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
405
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
406
|
-
readonly labels?: {
|
|
407
|
-
[x: string]: string | undefined;
|
|
408
|
-
} | undefined;
|
|
409
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
410
|
-
readonly paging?: {
|
|
411
|
-
[x: string]: {
|
|
412
|
-
size?: number | undefined;
|
|
413
|
-
};
|
|
414
|
-
} | undefined;
|
|
415
|
-
readonly retry?: {
|
|
416
|
-
backoff?: number | undefined;
|
|
417
|
-
interval?: number | undefined;
|
|
418
|
-
retries?: number | undefined;
|
|
419
|
-
} | undefined;
|
|
420
|
-
readonly security?: {
|
|
421
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
422
|
-
readonly allowed?: {
|
|
423
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
424
|
-
} | undefined;
|
|
425
|
-
readonly disallowed?: {
|
|
426
|
-
[x: string]: Lowercase<string>[];
|
|
427
|
-
} | undefined;
|
|
428
|
-
} | undefined;
|
|
429
|
-
readonly sign?: boolean | undefined;
|
|
430
|
-
readonly storeQueries?: boolean | undefined;
|
|
431
|
-
readonly timestamp?: boolean | undefined;
|
|
432
|
-
}>;
|
|
433
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
434
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
435
|
-
}, import("./EventData.ts").ArchivistModuleEventData, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
436
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
437
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
438
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
439
|
-
addToResolvers?: boolean;
|
|
440
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
441
|
-
allowNameResolution?: boolean;
|
|
442
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
443
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
444
|
-
parents?: {
|
|
445
|
-
commit?: string[] | undefined;
|
|
446
|
-
read?: string[] | undefined;
|
|
447
|
-
write?: string[] | undefined;
|
|
448
|
-
} | undefined;
|
|
449
|
-
requireAllParents?: boolean | undefined;
|
|
450
|
-
storage?: {
|
|
451
|
-
indexes?: {
|
|
452
|
-
key: {
|
|
453
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
454
|
-
};
|
|
455
|
-
multiEntry?: boolean | undefined;
|
|
456
|
-
name?: string | undefined;
|
|
457
|
-
unique?: boolean | undefined;
|
|
458
|
-
}[] | undefined;
|
|
459
|
-
} | undefined;
|
|
460
|
-
storeParentReads?: boolean | undefined;
|
|
461
|
-
readonly archiving?: {
|
|
462
|
-
readonly archivists?: string[] | undefined;
|
|
463
|
-
readonly queries?: string[] | undefined;
|
|
464
|
-
} | undefined;
|
|
465
|
-
readonly allowedQueries?: string[] | undefined;
|
|
466
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
467
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
468
|
-
readonly labels?: {
|
|
469
|
-
[x: string]: string | undefined;
|
|
470
|
-
} | undefined;
|
|
471
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
472
|
-
readonly paging?: {
|
|
473
|
-
[x: string]: {
|
|
474
|
-
size?: number | undefined;
|
|
475
|
-
};
|
|
476
|
-
} | undefined;
|
|
477
|
-
readonly retry?: {
|
|
478
|
-
backoff?: number | undefined;
|
|
479
|
-
interval?: number | undefined;
|
|
480
|
-
retries?: number | undefined;
|
|
481
|
-
} | undefined;
|
|
482
|
-
readonly security?: {
|
|
483
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
484
|
-
readonly allowed?: {
|
|
485
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
486
|
-
} | undefined;
|
|
487
|
-
readonly disallowed?: {
|
|
488
|
-
[x: string]: Lowercase<string>[];
|
|
489
|
-
} | undefined;
|
|
490
|
-
} | undefined;
|
|
491
|
-
readonly sign?: boolean | undefined;
|
|
492
|
-
readonly storeQueries?: boolean | undefined;
|
|
493
|
-
readonly timestamp?: boolean | undefined;
|
|
494
|
-
}>;
|
|
495
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
496
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
497
|
-
}, import("./EventData.ts").ArchivistModuleEventData, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
498
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
499
|
-
}>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
500
|
-
};
|
|
501
|
-
export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
502
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
503
|
-
addToResolvers?: boolean;
|
|
504
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
505
|
-
allowNameResolution?: boolean;
|
|
506
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
507
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
508
|
-
parents?: {
|
|
509
|
-
commit?: string[] | undefined;
|
|
510
|
-
read?: string[] | undefined;
|
|
511
|
-
write?: string[] | undefined;
|
|
512
|
-
} | undefined;
|
|
513
|
-
requireAllParents?: boolean | undefined;
|
|
514
|
-
storage?: {
|
|
515
|
-
indexes?: {
|
|
516
|
-
key: {
|
|
517
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
518
|
-
};
|
|
519
|
-
multiEntry?: boolean | undefined;
|
|
520
|
-
name?: string | undefined;
|
|
521
|
-
unique?: boolean | undefined;
|
|
522
|
-
}[] | undefined;
|
|
523
|
-
} | undefined;
|
|
524
|
-
storeParentReads?: boolean | undefined;
|
|
525
|
-
readonly archiving?: {
|
|
526
|
-
readonly archivists?: string[] | undefined;
|
|
527
|
-
readonly queries?: string[] | undefined;
|
|
528
|
-
} | undefined;
|
|
529
|
-
readonly allowedQueries?: string[] | undefined;
|
|
530
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
531
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
532
|
-
readonly labels?: {
|
|
533
|
-
[x: string]: string | undefined;
|
|
534
|
-
} | undefined;
|
|
535
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
536
|
-
readonly paging?: {
|
|
537
|
-
[x: string]: {
|
|
538
|
-
size?: number | undefined;
|
|
539
|
-
};
|
|
540
|
-
} | undefined;
|
|
541
|
-
readonly retry?: {
|
|
542
|
-
backoff?: number | undefined;
|
|
543
|
-
interval?: number | undefined;
|
|
544
|
-
retries?: number | undefined;
|
|
545
|
-
} | undefined;
|
|
546
|
-
readonly security?: {
|
|
547
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
548
|
-
readonly allowed?: {
|
|
549
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
550
|
-
} | undefined;
|
|
551
|
-
readonly disallowed?: {
|
|
552
|
-
[x: string]: Lowercase<string>[];
|
|
553
|
-
} | undefined;
|
|
554
|
-
} | undefined;
|
|
555
|
-
readonly sign?: boolean | undefined;
|
|
556
|
-
readonly storeQueries?: boolean | undefined;
|
|
557
|
-
readonly timestamp?: boolean | undefined;
|
|
558
|
-
}>;
|
|
559
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
560
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
561
|
-
}, import("./EventData.ts").ArchivistModuleEventData>) => R) => R | undefined;
|
|
562
|
-
export declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
563
|
-
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
564
|
-
addToResolvers?: boolean;
|
|
565
|
-
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
566
|
-
allowNameResolution?: boolean;
|
|
567
|
-
config: import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
568
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
569
|
-
parents?: {
|
|
570
|
-
commit?: string[] | undefined;
|
|
571
|
-
read?: string[] | undefined;
|
|
572
|
-
write?: string[] | undefined;
|
|
573
|
-
} | undefined;
|
|
574
|
-
requireAllParents?: boolean | undefined;
|
|
575
|
-
storage?: {
|
|
576
|
-
indexes?: {
|
|
577
|
-
key: {
|
|
578
|
-
[x: string]: import("./IndexDescription.ts").IndexDirection;
|
|
579
|
-
};
|
|
580
|
-
multiEntry?: boolean | undefined;
|
|
581
|
-
name?: string | undefined;
|
|
582
|
-
unique?: boolean | undefined;
|
|
583
|
-
}[] | undefined;
|
|
584
|
-
} | undefined;
|
|
585
|
-
storeParentReads?: boolean | undefined;
|
|
586
|
-
readonly archiving?: {
|
|
587
|
-
readonly archivists?: string[] | undefined;
|
|
588
|
-
readonly queries?: string[] | undefined;
|
|
589
|
-
} | undefined;
|
|
590
|
-
readonly allowedQueries?: string[] | undefined;
|
|
591
|
-
readonly archivist?: import("@xyo-network/module-model").ModuleIdentifier | undefined;
|
|
592
|
-
readonly consoleLogger?: import("@xylabs/logger").LogLevel | undefined;
|
|
593
|
-
readonly labels?: {
|
|
594
|
-
[x: string]: string | undefined;
|
|
595
|
-
} | undefined;
|
|
596
|
-
readonly name?: import("@xyo-network/module-model").ModuleName | undefined;
|
|
597
|
-
readonly paging?: {
|
|
598
|
-
[x: string]: {
|
|
599
|
-
size?: number | undefined;
|
|
600
|
-
};
|
|
601
|
-
} | undefined;
|
|
602
|
-
readonly retry?: {
|
|
603
|
-
backoff?: number | undefined;
|
|
604
|
-
interval?: number | undefined;
|
|
605
|
-
retries?: number | undefined;
|
|
606
|
-
} | undefined;
|
|
607
|
-
readonly security?: {
|
|
608
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
609
|
-
readonly allowed?: {
|
|
610
|
-
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
611
|
-
} | undefined;
|
|
612
|
-
readonly disallowed?: {
|
|
613
|
-
[x: string]: Lowercase<string>[];
|
|
614
|
-
} | undefined;
|
|
615
|
-
} | undefined;
|
|
616
|
-
readonly sign?: boolean | undefined;
|
|
617
|
-
readonly storeQueries?: boolean | undefined;
|
|
618
|
-
readonly timestamp?: boolean | undefined;
|
|
619
|
-
}>;
|
|
620
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
621
|
-
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
622
|
-
}, import("./EventData.ts").ArchivistModuleEventData, import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
623
|
-
schema: import("@xyo-network/payload-model").Schema;
|
|
624
|
-
}>>) => R) => R | undefined;
|
|
625
|
-
//# sourceMappingURL=typeChecks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAGlD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEANE,iBAAiB,iCAClB,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAEiB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAC9B,gBAAoB;CAED,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAPA,iBAAiB,iCAClB,gBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAEiB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAC9B,gBAAoB;CAGG,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA0C,CAAA"}
|
package/src/QueryFunctions.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/hex'
|
|
2
|
-
import type { Promisable, PromisableArray } from '@xylabs/promise'
|
|
3
|
-
import type { ModuleQueryFunctions } from '@xyo-network/module-model'
|
|
4
|
-
import type { Payload, WithStorageMeta } from '@xyo-network/payload-model'
|
|
5
|
-
|
|
6
|
-
import type { NextOptions } from './NextOptions.ts'
|
|
7
|
-
|
|
8
|
-
export interface ReadArchivist<TReadResponse, TId = string> {
|
|
9
|
-
all(): PromisableArray<TReadResponse>
|
|
10
|
-
get(ids: TId[]): PromisableArray<TReadResponse>
|
|
11
|
-
next(options?: NextOptions<TId>): PromisableArray<TReadResponse>
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface WriteArchivist<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> {
|
|
15
|
-
clear(): Promisable<void>
|
|
16
|
-
delete(ids: TId[]): PromisableArray<TId>
|
|
17
|
-
insert(item: TWrite[]): PromisableArray<TWriteResponse>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface StashArchivist<TWriteResponse> {
|
|
21
|
-
commit(): PromisableArray<TWriteResponse>
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface Archivist<
|
|
25
|
-
TReadResponse extends Payload = Payload,
|
|
26
|
-
TWriteResponse extends Payload = Payload,
|
|
27
|
-
TWrite extends Payload = TReadResponse & Payload,
|
|
28
|
-
TId = Hash,
|
|
29
|
-
> extends ReadArchivist<WithStorageMeta<TReadResponse>, TId>,
|
|
30
|
-
WriteArchivist<WithStorageMeta<TReadResponse>, WithStorageMeta<TWriteResponse>, TWrite, TId>,
|
|
31
|
-
StashArchivist<TWriteResponse> {}
|
|
32
|
-
|
|
33
|
-
export interface ArchivistQueryFunctions<
|
|
34
|
-
TReadResponse extends Payload = Payload,
|
|
35
|
-
TWriteResponse extends Payload = Payload,
|
|
36
|
-
TWrite extends Payload = TReadResponse & Payload,
|
|
37
|
-
TId = Hash,
|
|
38
|
-
> extends Archivist<TReadResponse, TWriteResponse, TWrite, TId>,
|
|
39
|
-
ModuleQueryFunctions {}
|