@xyo-network/archivist-storage 4.1.2 → 4.1.4
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 +2 -46
- package/package.json +22 -22
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,46 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { AbstractArchivist } from '@xyo-network/archivist-abstract';
|
|
4
|
-
import { ArchivistConfig, ArchivistParams, ArchivistModuleEventData, ArchivistInstance, ArchivistNextOptions } from '@xyo-network/archivist-model';
|
|
5
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model';
|
|
6
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
7
|
-
import { Schema, WithStorageMeta, Payload } from '@xyo-network/payload-model';
|
|
8
|
-
|
|
9
|
-
declare const StorageArchivistConfigSchema: "network.xyo.archivist.storage.config";
|
|
10
|
-
type StorageArchivistConfigSchema = typeof StorageArchivistConfigSchema;
|
|
11
|
-
type StorageArchivistConfig = ArchivistConfig<{
|
|
12
|
-
maxEntries?: number;
|
|
13
|
-
maxEntrySize?: number;
|
|
14
|
-
namespace?: string;
|
|
15
|
-
schema: StorageArchivistConfigSchema;
|
|
16
|
-
type?: 'local' | 'session' | 'page';
|
|
17
|
-
}>;
|
|
18
|
-
type StorageArchivistParams = ArchivistParams<AnyConfigSchema<StorageArchivistConfig>>;
|
|
19
|
-
declare class StorageArchivist<TParams extends StorageArchivistParams = StorageArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends AbstractArchivist<TParams, TEventData> implements ArchivistInstance {
|
|
20
|
-
static readonly configSchemas: Schema[];
|
|
21
|
-
static readonly defaultConfigSchema: Schema;
|
|
22
|
-
static readonly labels: {
|
|
23
|
-
"network.xyo.storage.class": string;
|
|
24
|
-
};
|
|
25
|
-
private _privateStorage;
|
|
26
|
-
private _storage;
|
|
27
|
-
get maxEntries(): number;
|
|
28
|
-
get maxEntrySize(): number;
|
|
29
|
-
get namespace(): string;
|
|
30
|
-
get queries(): string[];
|
|
31
|
-
get type(): "local" | "session" | "page";
|
|
32
|
-
private get privateStorage();
|
|
33
|
-
private get storage();
|
|
34
|
-
protected allHandler(): PromisableArray<WithStorageMeta<Payload>>;
|
|
35
|
-
protected clearHandler(): void | Promise<void>;
|
|
36
|
-
protected commitHandler(): Promise<BoundWitness[]>;
|
|
37
|
-
protected deleteHandler(hashes: Hash[]): Promise<WithStorageMeta<Payload>[]>;
|
|
38
|
-
protected getFromCursor(order?: 'asc' | 'desc', limit?: number, cursor?: Hex, open?: boolean): WithStorageMeta[];
|
|
39
|
-
protected getHandler(hashes: string[]): Promisable<WithStorageMeta<Payload>[]>;
|
|
40
|
-
protected insertHandler(payloads: WithStorageMeta<Payload>[]): Promise<WithStorageMeta<Payload>[]>;
|
|
41
|
-
protected nextHandler(options?: ArchivistNextOptions): Promisable<WithStorageMeta<Payload>[]>;
|
|
42
|
-
protected startHandler(): Promise<void>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { StorageArchivist, StorageArchivistConfigSchema };
|
|
46
|
-
export type { StorageArchivistConfig, StorageArchivistParams };
|
|
1
|
+
export * from './StorageArchivist.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/archivist-storage",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.13.
|
|
33
|
-
"@xylabs/exists": "^4.13.
|
|
34
|
-
"@xylabs/hex": "^4.13.
|
|
35
|
-
"@xylabs/promise": "^4.13.
|
|
36
|
-
"@xyo-network/archivist-abstract": "^4.1.
|
|
37
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
38
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
39
|
-
"@xyo-network/module-model": "^4.1.
|
|
40
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
41
|
-
"@xyo-network/payload-model": "^4.1.
|
|
32
|
+
"@xylabs/assert": "^4.13.16",
|
|
33
|
+
"@xylabs/exists": "^4.13.16",
|
|
34
|
+
"@xylabs/hex": "^4.13.16",
|
|
35
|
+
"@xylabs/promise": "^4.13.16",
|
|
36
|
+
"@xyo-network/archivist-abstract": "^4.1.4",
|
|
37
|
+
"@xyo-network/archivist-model": "^4.1.4",
|
|
38
|
+
"@xyo-network/boundwitness-model": "^4.1.4",
|
|
39
|
+
"@xyo-network/module-model": "^4.1.4",
|
|
40
|
+
"@xyo-network/payload-builder": "^4.1.4",
|
|
41
|
+
"@xyo-network/payload-model": "^4.1.4",
|
|
42
42
|
"store2": "^2.14.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@xylabs/delay": "^4.13.
|
|
46
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
47
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
48
|
-
"@xylabs/vitest-extended": "^4.13.
|
|
49
|
-
"@xyo-network/account": "^4.1.
|
|
50
|
-
"@xyo-network/archivist-acceptance-tests": "^4.1.
|
|
51
|
-
"@xyo-network/archivist-memory": "^4.1.
|
|
52
|
-
"@xyo-network/boundwitness-wrapper": "^4.1.
|
|
53
|
-
"@xyo-network/id-payload-plugin": "^4.1.
|
|
54
|
-
"@xyo-network/node-memory": "^4.1.
|
|
55
|
-
"@xyo-network/payload-wrapper": "^4.1.
|
|
45
|
+
"@xylabs/delay": "^4.13.16",
|
|
46
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
47
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
48
|
+
"@xylabs/vitest-extended": "^4.13.16",
|
|
49
|
+
"@xyo-network/account": "^4.1.4",
|
|
50
|
+
"@xyo-network/archivist-acceptance-tests": "^4.1.4",
|
|
51
|
+
"@xyo-network/archivist-memory": "^4.1.4",
|
|
52
|
+
"@xyo-network/boundwitness-wrapper": "^4.1.4",
|
|
53
|
+
"@xyo-network/id-payload-plugin": "^4.1.4",
|
|
54
|
+
"@xyo-network/node-memory": "^4.1.4",
|
|
55
|
+
"@xyo-network/payload-wrapper": "^4.1.4",
|
|
56
56
|
"typescript": "^5.8.3",
|
|
57
57
|
"uuid": "^11.1.0",
|
|
58
58
|
"vitest": "^3.2.4"
|