@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.
@@ -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 schema type for the synchronised storage.
28
+ * Register a storage key for the synchronised storage.
29
29
  */
30
- RegisterSchemaType: "synchronised-storage:register-schema-type",
30
+ RegisterStorageKey: "synchronised-storage:register-storage-key",
31
31
  /**
32
32
  * An item was changed in the storage by the local node.
33
33
  */
@@ -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 schema type for the synchronised storage.
26
+ * Register a storage key for the synchronised storage.
27
27
  */
28
- RegisterSchemaType: "synchronised-storage:register-schema-type",
28
+ RegisterStorageKey: "synchronised-storage:register-storage-key",
29
29
  /**
30
30
  * An item was changed in the storage by the local node.
31
31
  */
@@ -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/ISyncRegisterSchemaType";
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";
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface ISyncBatchRequest {
5
5
  /**
6
- * The type of the schema for the entities in the batch.
6
+ * The key of the storage for the entities in the batch.
7
7
  */
8
- schemaType: string;
8
+ storageKey: string;
9
9
  /**
10
10
  * The size of the batch.
11
11
  */
@@ -4,9 +4,9 @@ import type { ISynchronisedEntity } from "../ISynchronisedEntity";
4
4
  */
5
5
  export interface ISyncBatchResponse<T extends ISynchronisedEntity> {
6
6
  /**
7
- * The type of the schema for the entities in the batch.
7
+ * The key of the storage for the entities in the batch.
8
8
  */
9
- schemaType: string;
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 type of the schema being changed.
7
+ * The key of the storage being changed.
8
8
  */
9
- schemaType: string;
9
+ storageKey: string;
10
10
  /**
11
11
  * The operation being performed on the item.
12
12
  */
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface ISyncItemRemove {
5
5
  /**
6
- * The type of the schema being removed.
6
+ * The key of the storage being removed.
7
7
  */
8
- schemaType: string;
8
+ storageKey: string;
9
9
  /**
10
10
  * The entity being removed from the item set.
11
11
  */
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export interface ISyncItemRequest {
5
5
  /**
6
- * The type of the schema for the entities in the batch.
6
+ * The key of the storage for the entities in the batch.
7
7
  */
8
- schemaType: string;
8
+ storageKey: string;
9
9
  /**
10
10
  * The item id being requested.
11
11
  */
@@ -4,9 +4,9 @@ import type { ISynchronisedEntity } from "../ISynchronisedEntity";
4
4
  */
5
5
  export interface ISyncItemResponse<T extends ISynchronisedEntity> {
6
6
  /**
7
- * The type of the schema for the entities in the batch.
7
+ * The key of the storage for the entities in the batch.
8
8
  */
9
- schemaType: string;
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 type of the schema being set.
7
+ * The key of the storage being set.
8
8
  */
9
- schemaType: string;
9
+ storageKey: string;
10
10
  /**
11
11
  * The entity being set in the item set.
12
12
  */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Register a key with synchronised storage.
3
+ */
4
+ export interface ISyncRegisterStorageKey {
5
+ /**
6
+ * The key for the storage being registered.
7
+ */
8
+ storageKey: string;
9
+ }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  export declare const SynchronisedStorageTopics: {
5
5
  /**
6
- * Register a schema type for the synchronised storage.
6
+ * Register a storage key for the synchronised storage.
7
7
  */
8
- readonly RegisterSchemaType: "synchronised-storage:register-schema-type";
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
 
@@ -12,7 +12,7 @@
12
12
  - [ISyncItemRequest](interfaces/ISyncItemRequest.md)
13
13
  - [ISyncItemResponse](interfaces/ISyncItemResponse.md)
14
14
  - [ISyncItemSet](interfaces/ISyncItemSet.md)
15
- - [ISyncRegisterSchemaType](interfaces/ISyncRegisterSchemaType.md)
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
- ### schemaType
7
+ ### storageKey
8
8
 
9
- > **schemaType**: `string`
9
+ > **storageKey**: `string`
10
10
 
11
- The type of the schema for the entities in the batch.
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
- ### schemaType
13
+ ### storageKey
14
14
 
15
- > **schemaType**: `string`
15
+ > **storageKey**: `string`
16
16
 
17
- The type of the schema for the entities in the batch.
17
+ The key of the storage for the entities in the batch.
18
18
 
19
19
  ***
20
20
 
@@ -4,11 +4,11 @@ The payload for an item change.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### schemaType
7
+ ### storageKey
8
8
 
9
- > **schemaType**: `string`
9
+ > **storageKey**: `string`
10
10
 
11
- The type of the schema being changed.
11
+ The key of the storage being changed.
12
12
 
13
13
  ***
14
14
 
@@ -4,11 +4,11 @@ The payload for an item remove.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### schemaType
7
+ ### storageKey
8
8
 
9
- > **schemaType**: `string`
9
+ > **storageKey**: `string`
10
10
 
11
- The type of the schema being removed.
11
+ The key of the storage being removed.
12
12
 
13
13
  ***
14
14
 
@@ -4,11 +4,11 @@ Request for a local item.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### schemaType
7
+ ### storageKey
8
8
 
9
- > **schemaType**: `string`
9
+ > **storageKey**: `string`
10
10
 
11
- The type of the schema for the entities in the batch.
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
- ### schemaType
13
+ ### storageKey
14
14
 
15
- > **schemaType**: `string`
15
+ > **storageKey**: `string`
16
16
 
17
- The type of the schema for the entities in the batch.
17
+ The key of the storage for the entities in the batch.
18
18
 
19
19
  ***
20
20
 
@@ -10,11 +10,11 @@ The payload for an item set.
10
10
 
11
11
  ## Properties
12
12
 
13
- ### schemaType
13
+ ### storageKey
14
14
 
15
- > **schemaType**: `string`
15
+ > **storageKey**: `string`
16
16
 
17
- The type of the schema being set.
17
+ The key of the storage being set.
18
18
 
19
19
  ***
20
20
 
@@ -0,0 +1,11 @@
1
+ # Interface: ISyncRegisterStorageKey
2
+
3
+ Register a key with synchronised storage.
4
+
5
+ ## Properties
6
+
7
+ ### storageKey
8
+
9
+ > **storageKey**: `string`
10
+
11
+ The key for the storage being registered.
@@ -6,11 +6,11 @@ The topics for synchronised storage event bus notifications.
6
6
 
7
7
  ## Type declaration
8
8
 
9
- ### RegisterSchemaType
9
+ ### RegisterStorageKey
10
10
 
11
- > `readonly` **RegisterSchemaType**: `"synchronised-storage:register-schema-type"` = `"synchronised-storage:register-schema-type"`
11
+ > `readonly` **RegisterStorageKey**: `"synchronised-storage:register-storage-key"` = `"synchronised-storage:register-storage-key"`
12
12
 
13
- Register a schema type for the synchronised storage.
13
+ Register a storage key for the synchronised storage.
14
14
 
15
15
  ### LocalItemChange
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/synchronised-storage-models",
3
- "version": "0.0.1-next.2",
3
+ "version": "0.0.1-next.3",
4
4
  "description": "Models which define the structure of the synchronised storage connectors and services",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,9 +0,0 @@
1
- /**
2
- * Register a type with synchronised storage so that it can perform consolidations.
3
- */
4
- export interface ISyncRegisterSchemaType {
5
- /**
6
- * The type of the schema being registered.
7
- */
8
- schemaType: string;
9
- }
@@ -1,11 +0,0 @@
1
- # Interface: ISyncRegisterSchemaType
2
-
3
- Register a type with synchronised storage so that it can perform consolidations.
4
-
5
- ## Properties
6
-
7
- ### schemaType
8
-
9
- > **schemaType**: `string`
10
-
11
- The type of the schema being registered.