@xyo-network/archivist-model 3.15.10 → 3.16.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/types/ArchivistFunctions.d.ts +1 -1
- package/dist/types/ArchivistFunctions.d.ts.map +1 -1
- package/dist/types/EventModels/Deleted.d.ts +2 -0
- package/dist/types/EventModels/Deleted.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/ArchivistFunctions.ts +1 -1
- package/src/EventModels/Deleted.ts +2 -1
|
@@ -10,7 +10,7 @@ export interface ReadArchivistFunctions<TReadResponse, TId = string> {
|
|
|
10
10
|
}
|
|
11
11
|
export interface WriteArchivistFunctions<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> {
|
|
12
12
|
clear(): Promisable<void>;
|
|
13
|
-
delete(ids: TId[]): PromisableArray<
|
|
13
|
+
delete(ids: TId[]): PromisableArray<TReadResponse>;
|
|
14
14
|
insert(item: TWrite[]): PromisableArray<TWriteResponse>;
|
|
15
15
|
}
|
|
16
16
|
export interface StashArchivistFunctions<TWriteResponse> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArchivistFunctions.d.ts","sourceRoot":"","sources":["../../src/ArchivistFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAElE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,MAAM,WAAW,qBAAqB,CAAC,aAAa,EAAE,iBAAiB;IACrE,GAAG,IAAI,eAAe,CAAC,aAAa,CAAC,CAAA;IACrC,QAAQ,IAAI,eAAe,CAAC,iBAAiB,CAAC,CAAA;CAC/C;AAED,MAAM,WAAW,sBAAsB,CAAC,aAAa,EAAE,GAAG,GAAG,MAAM;IACjE,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;IAC/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CAAC,cAAc,CAAC,CAAA;CACxD;AAED,MAAM,WAAW,uBAAuB,CAAC,cAAc;IACrD,MAAM,IAAI,eAAe,CAAC,cAAc,CAAC,CAAA;CAC1C"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { EventData } from '@xylabs/events';
|
|
2
2
|
import type { Hash } from '@xylabs/hex';
|
|
3
3
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model';
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
5
|
export type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
5
6
|
hashes: Hash[];
|
|
7
|
+
payloads: Payload[];
|
|
6
8
|
}>;
|
|
7
9
|
export interface DeletedEventData<T extends Module = Module> extends EventData {
|
|
8
10
|
deleted: DeletedEventArgs<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deleted.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Deleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Deleted.d.ts","sourceRoot":"","sources":["../../../src/EventModels/Deleted.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACvE,CAAC,EAAE;IAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAA;CAAE,CAC3C,CAAA;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IAC5E,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/archivist-model",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@xylabs/object": "^4.9.18",
|
|
37
37
|
"@xylabs/promise": "^4.9.18",
|
|
38
38
|
"@xylabs/typeof": "^4.9.18",
|
|
39
|
-
"@xyo-network/account-model": "^3.
|
|
40
|
-
"@xyo-network/boundwitness-model": "^3.
|
|
41
|
-
"@xyo-network/module-model": "^3.
|
|
42
|
-
"@xyo-network/payload-model": "^3.
|
|
39
|
+
"@xyo-network/account-model": "^3.16.1",
|
|
40
|
+
"@xyo-network/boundwitness-model": "^3.16.1",
|
|
41
|
+
"@xyo-network/module-model": "^3.16.1",
|
|
42
|
+
"@xyo-network/payload-model": "^3.16.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@xylabs/ts-scripts-yarn3": "^6.5.6",
|
|
@@ -14,7 +14,7 @@ export interface ReadArchivistFunctions<TReadResponse, TId = string> {
|
|
|
14
14
|
|
|
15
15
|
export interface WriteArchivistFunctions<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> {
|
|
16
16
|
clear(): Promisable<void>
|
|
17
|
-
delete(ids: TId[]): PromisableArray<
|
|
17
|
+
delete(ids: TId[]): PromisableArray<TReadResponse>
|
|
18
18
|
insert(item: TWrite[]): PromisableArray<TWriteResponse>
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { EventData } from '@xylabs/events'
|
|
2
2
|
import type { Hash } from '@xylabs/hex'
|
|
3
3
|
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
5
|
|
|
5
6
|
export type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
6
|
-
T, { hashes: Hash[] }
|
|
7
|
+
T, { hashes: Hash[]; payloads: Payload[] }
|
|
7
8
|
>
|
|
8
9
|
|
|
9
10
|
export interface DeletedEventData<T extends Module = Module> extends EventData {
|