@xyo-network/archivist-wrapper 3.9.18 → 3.9.20

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.
@@ -0,0 +1,46 @@
1
+ import type { Hash } from '@xylabs/hex';
2
+ import type { AccountInstance } from '@xyo-network/account-model';
3
+ import type { ArchivistModuleInstance, ArchivistNextOptions, AttachableArchivistInstance } from '@xyo-network/archivist-model';
4
+ import type { ModuleQueryResult } from '@xyo-network/module-model';
5
+ import { ModuleWrapper } from '@xyo-network/module-wrapper';
6
+ import type { Payload, WithStorageMeta } from '@xyo-network/payload-model';
7
+ export declare class ArchivistWrapper<TWrappedModule extends ArchivistModuleInstance = ArchivistModuleInstance> extends ModuleWrapper<TWrappedModule> implements AttachableArchivistInstance<ArchivistModuleInstance['params']> {
8
+ static readonly instanceIdentityCheck: import("@xylabs/object").TypeCheck<import("@xyo-network/archivist-model").ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
9
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
10
+ addToResolvers?: boolean;
11
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
12
+ allowNameResolution?: boolean;
13
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>;
14
+ ephemeralQueryAccountEnabled?: boolean;
15
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
16
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
17
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
18
+ } & import("@xyo-network/archivist-model").ArchivistParamFields & object, import("@xyo-network/archivist-model").ArchivistModuleEventData, Payload<void, void>>>;
19
+ static readonly moduleIdentityCheck: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModuleInstance<import("@xylabs/object").BaseParamsFields & {
20
+ account?: import("@xyo-network/account-model").AccountInstance | "random";
21
+ addToResolvers?: boolean;
22
+ additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
23
+ allowNameResolution?: boolean;
24
+ config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>;
25
+ ephemeralQueryAccountEnabled?: boolean;
26
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
27
+ privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
28
+ publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
29
+ }, import("@xyo-network/archivist-model").ArchivistModuleEventData>>;
30
+ static readonly requiredQueries: string[];
31
+ all(): Promise<WithStorageMeta<Payload>[]>;
32
+ allQuery(account?: AccountInstance): Promise<ModuleQueryResult>;
33
+ clear(): Promise<void>;
34
+ clearQuery(account?: AccountInstance): Promise<ModuleQueryResult>;
35
+ commit(): Promise<Payload[]>;
36
+ commitQuery(account?: AccountInstance): Promise<ModuleQueryResult>;
37
+ delete(hashes: Hash[]): Promise<Lowercase<string>[]>;
38
+ deleteQuery(hashes: Hash[], account?: AccountInstance): Promise<ModuleQueryResult>;
39
+ get(hashes: Hash[]): Promise<WithStorageMeta<Payload>[]>;
40
+ getQuery(hashes: Hash[], account?: AccountInstance): Promise<ModuleQueryResult>;
41
+ insert(payloads: Payload[]): Promise<WithStorageMeta<Payload>[]>;
42
+ insertQuery(payloads: Payload[], account?: AccountInstance): Promise<ModuleQueryResult>;
43
+ next(options?: ArchivistNextOptions): Promise<WithStorageMeta<Payload>[]>;
44
+ nextQuery(options?: ArchivistNextOptions, account?: AccountInstance): Promise<ModuleQueryResult>;
45
+ }
46
+ //# sourceMappingURL=ArchivistWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArchivistWrapper.d.ts","sourceRoot":"","sources":["../../src/ArchivistWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAOV,uBAA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B,CAAC;IAKlF,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;IAKxD,QAAQ,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK/E,MAAM,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;IAKhE,WAAW,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKvF,IAAI,CAAC,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;IAKzE,SAAS,CAAC,OAAO,CAAC,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAIvG"}
@@ -1,51 +1,2 @@
1
- import * as _xyo_network_module_model from '@xyo-network/module-model';
2
- import { ModuleQueryResult } from '@xyo-network/module-model';
3
- import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
4
- import { ArchivistModuleInstance, AttachableArchivistInstance, ArchivistNextOptions } from '@xyo-network/archivist-model';
5
- import * as _xylabs_object from '@xylabs/object';
6
- import { Hash } from '@xylabs/hex';
7
- import { AccountInstance } from '@xyo-network/account-model';
8
- import { ModuleWrapper } from '@xyo-network/module-wrapper';
9
- import { Payload, WithStorageMeta } from '@xyo-network/payload-model';
10
-
11
- declare class ArchivistWrapper<TWrappedModule extends ArchivistModuleInstance = ArchivistModuleInstance> extends ModuleWrapper<TWrappedModule> implements AttachableArchivistInstance<ArchivistModuleInstance['params']> {
12
- static readonly instanceIdentityCheck: _xylabs_object.TypeCheck<_xyo_network_archivist_model.ArchivistInstance<_xylabs_object.BaseParamsFields & {
13
- account?: AccountInstance | "random";
14
- addToResolvers?: boolean;
15
- additionalSigners?: AccountInstance[];
16
- allowNameResolution?: boolean;
17
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig>;
18
- ephemeralQueryAccountEnabled?: boolean;
19
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
20
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
21
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
22
- } & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData, Payload>>;
23
- static readonly moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
24
- account?: AccountInstance | "random";
25
- addToResolvers?: boolean;
26
- additionalSigners?: AccountInstance[];
27
- allowNameResolution?: boolean;
28
- config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig>;
29
- ephemeralQueryAccountEnabled?: boolean;
30
- moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
31
- privateChildren?: _xyo_network_module_model.ModuleInstance[];
32
- publicChildren?: _xyo_network_module_model.ModuleInstance[];
33
- }, _xyo_network_archivist_model.ArchivistModuleEventData>>;
34
- static readonly requiredQueries: string[];
35
- all(): Promise<WithStorageMeta<Payload>[]>;
36
- allQuery(account?: AccountInstance): Promise<ModuleQueryResult>;
37
- clear(): Promise<void>;
38
- clearQuery(account?: AccountInstance): Promise<ModuleQueryResult>;
39
- commit(): Promise<Payload[]>;
40
- commitQuery(account?: AccountInstance): Promise<ModuleQueryResult>;
41
- delete(hashes: Hash[]): Promise<Lowercase<string>[]>;
42
- deleteQuery(hashes: Hash[], account?: AccountInstance): Promise<ModuleQueryResult>;
43
- get(hashes: Hash[]): Promise<WithStorageMeta<Payload>[]>;
44
- getQuery(hashes: Hash[], account?: AccountInstance): Promise<ModuleQueryResult>;
45
- insert(payloads: Payload[]): Promise<WithStorageMeta<Payload>[]>;
46
- insertQuery(payloads: Payload[], account?: AccountInstance): Promise<ModuleQueryResult>;
47
- next(options?: ArchivistNextOptions): Promise<WithStorageMeta<Payload>[]>;
48
- nextQuery(options?: ArchivistNextOptions, account?: AccountInstance): Promise<ModuleQueryResult>;
49
- }
50
-
51
- export { ArchivistWrapper };
1
+ export * from './ArchivistWrapper.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-wrapper",
3
- "version": "3.9.18",
3
+ "version": "3.9.20",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,20 +30,20 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/hex": "^4.5.1",
33
- "@xyo-network/account-model": "^3.9.18",
34
- "@xyo-network/archivist-model": "^3.9.18",
35
- "@xyo-network/module-model": "^3.9.18",
36
- "@xyo-network/module-wrapper": "^3.9.18",
37
- "@xyo-network/payload-model": "^3.9.18"
33
+ "@xyo-network/account-model": "^3.9.20",
34
+ "@xyo-network/archivist-model": "^3.9.20",
35
+ "@xyo-network/module-model": "^3.9.20",
36
+ "@xyo-network/module-wrapper": "^3.9.20",
37
+ "@xyo-network/payload-model": "^3.9.20"
38
38
  },
39
39
  "devDependencies": {
40
- "@xylabs/ts-scripts-yarn3": "^5.0.25",
41
- "@xylabs/tsconfig": "^5.0.25",
40
+ "@xylabs/ts-scripts-yarn3": "^5.0.39",
41
+ "@xylabs/tsconfig": "^5.0.39",
42
42
  "@xylabs/vitest-extended": "^4.5.1",
43
- "@xyo-network/account": "^3.9.18",
44
- "@xyo-network/archivist-memory": "^3.9.18",
45
- "@xyo-network/payload-builder": "^3.9.18",
46
- "typescript": "^5.7.3",
43
+ "@xyo-network/account": "^3.9.20",
44
+ "@xyo-network/archivist-memory": "^3.9.20",
45
+ "@xyo-network/payload-builder": "^3.9.20",
46
+ "typescript": "^5.8.2",
47
47
  "vitest": "^3.0.7"
48
48
  },
49
49
  "publishConfig": {