@twin.org/synchronised-storage-models 0.0.1-next.2 → 0.0.1-next.3
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/cjs/index.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/eventBus/ISyncBatchRequest.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncBatchResponse.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncItemChange.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncItemRemove.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncItemRequest.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncItemResponse.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncItemSet.d.ts +2 -2
- package/dist/types/models/eventBus/ISyncRegisterStorageKey.d.ts +9 -0
- package/dist/types/models/synchronisedStorageTopics.d.ts +2 -2
- package/docs/changelog.md +7 -0
- package/docs/reference/index.md +1 -1
- package/docs/reference/interfaces/ISyncBatchRequest.md +3 -3
- package/docs/reference/interfaces/ISyncBatchResponse.md +3 -3
- package/docs/reference/interfaces/ISyncItemChange.md +3 -3
- package/docs/reference/interfaces/ISyncItemRemove.md +3 -3
- package/docs/reference/interfaces/ISyncItemRequest.md +3 -3
- package/docs/reference/interfaces/ISyncItemResponse.md +3 -3
- package/docs/reference/interfaces/ISyncItemSet.md +3 -3
- package/docs/reference/interfaces/ISyncRegisterStorageKey.md +11 -0
- package/docs/reference/variables/SynchronisedStorageTopics.md +3 -3
- package/package.json +1 -1
- package/dist/types/models/eventBus/ISyncRegisterSchemaType.d.ts +0 -9
- package/docs/reference/interfaces/ISyncRegisterSchemaType.md +0 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -25,9 +25,9 @@ const SyncChangeOperation = {
|
|
|
25
25
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26
26
|
const SynchronisedStorageTopics = {
|
|
27
27
|
/**
|
|
28
|
-
* Register a
|
|
28
|
+
* Register a storage key for the synchronised storage.
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
RegisterStorageKey: "synchronised-storage:register-storage-key",
|
|
31
31
|
/**
|
|
32
32
|
* An item was changed in the storage by the local node.
|
|
33
33
|
*/
|
package/dist/esm/index.mjs
CHANGED
|
@@ -23,9 +23,9 @@ const SyncChangeOperation = {
|
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
24
24
|
const SynchronisedStorageTopics = {
|
|
25
25
|
/**
|
|
26
|
-
* Register a
|
|
26
|
+
* Register a storage key for the synchronised storage.
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
RegisterStorageKey: "synchronised-storage:register-storage-key",
|
|
29
29
|
/**
|
|
30
30
|
* An item was changed in the storage by the local node.
|
|
31
31
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./models/eventBus/ISyncItemRemove";
|
|
|
6
6
|
export * from "./models/eventBus/ISyncItemRequest";
|
|
7
7
|
export * from "./models/eventBus/ISyncItemResponse";
|
|
8
8
|
export * from "./models/eventBus/ISyncItemSet";
|
|
9
|
-
export * from "./models/eventBus/
|
|
9
|
+
export * from "./models/eventBus/ISyncRegisterStorageKey";
|
|
10
10
|
export * from "./models/eventBus/syncChangeOperation";
|
|
11
11
|
export * from "./models/ISynchronisedEntity";
|
|
12
12
|
export * from "./models/ISynchronisedStorageComponent";
|
|
@@ -4,9 +4,9 @@ import type { ISynchronisedEntity } from "../ISynchronisedEntity";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ISyncBatchResponse<T extends ISynchronisedEntity> {
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The key of the storage for the entities in the batch.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
storageKey: string;
|
|
10
10
|
/**
|
|
11
11
|
* The primary key of the entity in the sync item response.
|
|
12
12
|
*/
|
|
@@ -4,9 +4,9 @@ import type { SyncChangeOperation } from "./syncChangeOperation";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ISyncItemChange {
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The key of the storage being changed.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
storageKey: string;
|
|
10
10
|
/**
|
|
11
11
|
* The operation being performed on the item.
|
|
12
12
|
*/
|
|
@@ -4,9 +4,9 @@ import type { ISynchronisedEntity } from "../ISynchronisedEntity";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ISyncItemResponse<T extends ISynchronisedEntity> {
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The key of the storage for the entities in the batch.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
storageKey: string;
|
|
10
10
|
/**
|
|
11
11
|
* The id of the entity in the sync item response.
|
|
12
12
|
*/
|
|
@@ -4,9 +4,9 @@ import type { ISynchronisedEntity } from "../ISynchronisedEntity";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ISyncItemSet<T extends ISynchronisedEntity = ISynchronisedEntity> {
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The key of the storage being set.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
storageKey: string;
|
|
10
10
|
/**
|
|
11
11
|
* The entity being set in the item set.
|
|
12
12
|
*/
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const SynchronisedStorageTopics: {
|
|
5
5
|
/**
|
|
6
|
-
* Register a
|
|
6
|
+
* Register a storage key for the synchronised storage.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly RegisterStorageKey: "synchronised-storage:register-storage-key";
|
|
9
9
|
/**
|
|
10
10
|
* An item was changed in the storage by the local node.
|
|
11
11
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.3](https://github.com/twinfoundation/synchronised-storage/compare/synchronised-storage-models-v0.0.1-next.2...synchronised-storage-models-v0.0.1-next.3) (2025-07-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* sync testing ([#5](https://github.com/twinfoundation/synchronised-storage/issues/5)) ([f78d5ac](https://github.com/twinfoundation/synchronised-storage/commit/f78d5ac661b891f9912e0a81d028453f909a64b4))
|
|
9
|
+
|
|
3
10
|
## [0.0.1-next.2](https://github.com/twinfoundation/synchronised-storage/compare/synchronised-storage-models-v0.0.1-next.1...synchronised-storage-models-v0.0.1-next.2) (2025-07-22)
|
|
4
11
|
|
|
5
12
|
|
package/docs/reference/index.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- [ISyncItemRequest](interfaces/ISyncItemRequest.md)
|
|
13
13
|
- [ISyncItemResponse](interfaces/ISyncItemResponse.md)
|
|
14
14
|
- [ISyncItemSet](interfaces/ISyncItemSet.md)
|
|
15
|
-
- [
|
|
15
|
+
- [ISyncRegisterStorageKey](interfaces/ISyncRegisterStorageKey.md)
|
|
16
16
|
|
|
17
17
|
## Type Aliases
|
|
18
18
|
|
|
@@ -4,11 +4,11 @@ Request for a local batch.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### storageKey
|
|
8
8
|
|
|
9
|
-
> **
|
|
9
|
+
> **storageKey**: `string`
|
|
10
10
|
|
|
11
|
-
The
|
|
11
|
+
The key of the storage for the entities in the batch.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
@@ -10,11 +10,11 @@ Response for a local batch.
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### storageKey
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **storageKey**: `string`
|
|
16
16
|
|
|
17
|
-
The
|
|
17
|
+
The key of the storage for the entities in the batch.
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -4,11 +4,11 @@ Request for a local item.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### storageKey
|
|
8
8
|
|
|
9
|
-
> **
|
|
9
|
+
> **storageKey**: `string`
|
|
10
10
|
|
|
11
|
-
The
|
|
11
|
+
The key of the storage for the entities in the batch.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
@@ -10,11 +10,11 @@ Response for a sync item request.
|
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### storageKey
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **storageKey**: `string`
|
|
16
16
|
|
|
17
|
-
The
|
|
17
|
+
The key of the storage for the entities in the batch.
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -6,11 +6,11 @@ The topics for synchronised storage event bus notifications.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### RegisterStorageKey
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **RegisterStorageKey**: `"synchronised-storage:register-storage-key"` = `"synchronised-storage:register-storage-key"`
|
|
12
12
|
|
|
13
|
-
Register a
|
|
13
|
+
Register a storage key for the synchronised storage.
|
|
14
14
|
|
|
15
15
|
### LocalItemChange
|
|
16
16
|
|
package/package.json
CHANGED