@twin.org/synchronised-storage-service 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.
@@ -9,9 +9,9 @@ export declare class SyncSnapshotEntry<T extends ISynchronisedEntity = ISynchron
9
9
  */
10
10
  id: string;
11
11
  /**
12
- * The schema type for the snapshot i.e. which entity is being synchronized.
12
+ * The storage key for the snapshot i.e. which entity is being synchronized.
13
13
  */
14
- schemaType: string;
14
+ storageKey: string;
15
15
  /**
16
16
  * The date the snapshot was created.
17
17
  */
@@ -31,5 +31,5 @@ export declare class SyncSnapshotEntry<T extends ISynchronisedEntity = ISynchron
31
31
  /**
32
32
  * The changes that were made in this snapshot, if this is a local snapshot.
33
33
  */
34
- localChanges?: ISyncChange<T>[];
34
+ changes?: ISyncChange<T>[];
35
35
  }
@@ -31,9 +31,9 @@ export declare class ChangeSetHelper<T extends ISynchronisedEntity = ISynchronis
31
31
  /**
32
32
  * Apply a sync changeset.
33
33
  * @param changeSetStorageId The id of the sync changeset to apply.
34
- * @returns True if the change was applied.
34
+ * @returns The changeset if it existed.
35
35
  */
36
- getAndApplyChangeset(changeSetStorageId: string): Promise<boolean>;
36
+ getAndApplyChangeset(changeSetStorageId: string): Promise<ISyncChangeSet<T> | undefined>;
37
37
  /**
38
38
  * Apply a sync changeset.
39
39
  * @param syncChangeset The sync changeset to apply.
@@ -43,9 +43,10 @@ export declare class ChangeSetHelper<T extends ISynchronisedEntity = ISynchronis
43
43
  /**
44
44
  * Store the changeset.
45
45
  * @param syncChangeSet The sync change set to store.
46
+ * @param nodeIdentity The node identity to use for the changeset.
46
47
  * @returns The id of the change set.
47
48
  */
48
- storeChangeSet(syncChangeSet: ISyncChangeSet): Promise<string>;
49
+ storeChangeSet(syncChangeSet: ISyncChangeSet, nodeIdentity: string): Promise<string>;
49
50
  /**
50
51
  * Verify the proof of a sync changeset.
51
52
  * @param syncChangeset The sync changeset to verify.
@@ -21,18 +21,18 @@ export declare class LocalSyncStateHelper<T extends ISynchronisedEntity = ISynch
21
21
  constructor(logging: ILoggingConnector | undefined, localSyncSnapshotEntryEntityStorage: IEntityStorageConnector<SyncSnapshotEntry<T>>, changeSetHelper: ChangeSetHelper<T>);
22
22
  /**
23
23
  * Add a new change to the local snapshot.
24
- * @param schemaType The schema type of the snapshot to add the change for.
24
+ * @param storageKey The storage key of the snapshot to add the change for.
25
25
  * @param operation The operation to perform.
26
26
  * @param id The id of the entity to add the change for.
27
27
  * @returns Nothing.
28
28
  */
29
- addLocalChange(schemaType: string, operation: SyncChangeOperation, id: string): Promise<void>;
29
+ addLocalChange(storageKey: string, operation: SyncChangeOperation, id: string): Promise<void>;
30
30
  /**
31
31
  * Get the current local snapshot.
32
- * @param schemaType The schema type of the snapshot to get.
32
+ * @param storageKey The storage key of the snapshot to get.
33
33
  * @returns The local snapshot entry.
34
34
  */
35
- getLocalChangeSnapshot(schemaType: string): Promise<SyncSnapshotEntry<T>>;
35
+ getLocalChangeSnapshot(storageKey: string): Promise<SyncSnapshotEntry<T>>;
36
36
  /**
37
37
  * Set the current local snapshot.
38
38
  * @param localChangeSnapshot The local change snapshot to set.
@@ -47,11 +47,11 @@ export declare class LocalSyncStateHelper<T extends ISynchronisedEntity = ISynch
47
47
  removeLocalChangeSnapshot(localChangeSnapshot: SyncSnapshotEntry<T>): Promise<void>;
48
48
  /**
49
49
  * Sync local data using a remote sync state.
50
- * @param schemaType The schema type of the snapshot to sync with.
50
+ * @param storageKey The storage key of the snapshot to sync with.
51
51
  * @param remoteSyncState The sync state to sync with.
52
52
  * @returns Nothing.
53
53
  */
54
- syncFromRemote(schemaType: string, remoteSyncState: ISyncState): Promise<void>;
54
+ syncFromRemote(storageKey: string, remoteSyncState: ISyncState): Promise<void>;
55
55
  /**
56
56
  * Process the modified snapshots and store them in the local storage.
57
57
  * @param modifiedSnapshots The modified snapshots to process.
@@ -5,7 +5,7 @@ import { type ISynchronisedEntity } from "@twin.org/synchronised-storage-models"
5
5
  import type { IVerifiableStorageConnector } from "@twin.org/verifiable-storage-models";
6
6
  import type { ChangeSetHelper } from "./changeSetHelper";
7
7
  import type { ISyncChange } from "../models/ISyncChange";
8
- import type { ISyncPointer } from "../models/ISyncPointer";
8
+ import type { ISyncPointerStore } from "../models/ISyncPointerStore";
9
9
  import type { ISyncState } from "../models/ISyncState";
10
10
  /**
11
11
  * Class for performing entity storage operations in decentralised storage.
@@ -32,43 +32,44 @@ export declare class RemoteSyncStateHelper<T extends ISynchronisedEntity = ISync
32
32
  setNodeIdentity(nodeIdentity: string): void;
33
33
  /**
34
34
  * Create and store a change set.
35
- * @param schemaType The schema type of the change set.
35
+ * @param storageKey The storage key of the change set.
36
36
  * @param changes The changes to apply.
37
37
  * @param completeCallback The callback to call when the changeset is created and stored.
38
38
  * @returns The storage id of the change set if created.
39
39
  */
40
- createAndStoreChangeSet(schemaType: string, changes: ISyncChange<T>[] | undefined, completeCallback: (id?: string) => Promise<void>): Promise<void>;
40
+ createAndStoreChangeSet(storageKey: string, changes: ISyncChange<T>[], completeCallback: (id?: string) => Promise<void>): Promise<void>;
41
41
  /**
42
42
  * Finalise the full details for the sync change set.
43
- * @param schemaType The schema type of the change set.
43
+ * @param storageKey The storage key of the change set.
44
44
  * @param completeCallback The callback to call when the changeset is populated.
45
45
  * @returns Nothing.
46
46
  */
47
- finaliseFullChanges(schemaType: string, completeCallback: (id?: string) => Promise<void>): Promise<void>;
47
+ finaliseFullChanges(storageKey: string, completeCallback: (id?: string) => Promise<void>): Promise<void>;
48
48
  /**
49
49
  * Add a new changeset into the sync state.
50
+ * @param storageKey The storage key of the change set to add.
50
51
  * @param changeSetStorageId The id of the change set to add the the current state
51
52
  * @returns Nothing.
52
53
  */
53
- addChangeSetToSyncState(changeSetStorageId: string): Promise<void>;
54
+ addChangeSetToSyncState(storageKey: string, changeSetStorageId: string): Promise<void>;
54
55
  /**
55
56
  * Create a consolidated snapshot for the entire storage.
56
- * @param schemaType The schema type of the snapshot to create.
57
+ * @param storageKey The storage key of the snapshot to create.
57
58
  * @param batchSize The batch size to use for consolidation.
58
59
  * @returns Nothing.
59
60
  */
60
- consolidateFromLocal(schemaType: string, batchSize: number): Promise<void>;
61
+ consolidateFromLocal(storageKey: string, batchSize: number): Promise<void>;
61
62
  /**
62
- * Get the sync pointer.
63
- * @returns The sync pointer.
63
+ * Get the sync pointer store.
64
+ * @returns The sync pointer store.
64
65
  */
65
- getVerifiableSyncPointer(): Promise<ISyncPointer | undefined>;
66
+ getVerifiableSyncPointerStore(): Promise<ISyncPointerStore>;
66
67
  /**
67
68
  * Store the verifiable sync pointer in the verifiable storage.
68
- * @param syncStateId The id of the sync state to store.
69
+ * @param syncPointerStore The sync pointer store to store.
69
70
  * @returns Nothing.
70
71
  */
71
- storeVerifiableSyncPointer(syncStateId: string): Promise<ISyncPointer>;
72
+ storeVerifiableSyncPointerStore(syncPointerStore: ISyncPointerStore): Promise<void>;
72
73
  /**
73
74
  * Store the remote sync state.
74
75
  * @param syncState The sync state to store.
@@ -1,8 +1,12 @@
1
1
  export * from "./entities/syncSnapshotEntry";
2
2
  export * from "./models/ISyncChange";
3
+ export * from "./models/ISyncChangeSet";
3
4
  export * from "./models/ISynchronisedStorageServiceConfig";
4
5
  export * from "./models/ISynchronisedStorageServiceConstructorOptions";
6
+ export * from "./models/ISyncPointerStore";
7
+ export * from "./models/ISyncSnapshot";
8
+ export * from "./models/ISyncState";
5
9
  export * from "./restEntryPoints";
6
10
  export * from "./schema";
7
- export * from "./synchronisedStorageService";
8
11
  export * from "./synchronisedStorageRoutes";
12
+ export * from "./synchronisedStorageService";
@@ -14,9 +14,9 @@ export interface ISyncChangeSet<T extends ISynchronisedEntity = ISynchronisedEnt
14
14
  */
15
15
  dateCreated: string;
16
16
  /**
17
- * The schema type of the change set. This is used to identify the type of entity being synchronised.
17
+ * The storage key of the change set. This is used to identify the entities being synchronised.
18
18
  */
19
- schemaType: string;
19
+ storageKey: string;
20
20
  /**
21
21
  * The date the change set was last modified.
22
22
  */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The object definition for the sync pointer store.
3
+ */
4
+ export interface ISyncPointerStore {
5
+ /**
6
+ * The mapping from storage keys to sync pointers.
7
+ */
8
+ syncPointers: {
9
+ [key: string]: string;
10
+ };
11
+ }
@@ -13,10 +13,10 @@ export interface ISynchronisedStorageServiceConfig {
13
13
  */
14
14
  synchronisedStorageMethodId?: string;
15
15
  /**
16
- * How often to check for entity updates in milliseconds.
17
- * @default 300000 (5 minutes)
16
+ * How often to check for entity updates in minutes.
17
+ * @default 5
18
18
  */
19
- entityUpdateIntervalMs?: number;
19
+ entityUpdateIntervalMinutes?: number;
20
20
  /**
21
21
  * Is this a node that has permission to write to the verifiable storage?
22
22
  * @default false
@@ -24,9 +24,9 @@ export interface ISynchronisedStorageServiceConfig {
24
24
  isTrustedNode?: boolean;
25
25
  /**
26
26
  * Interval to perform consolidation of changesets, only used if isTrustedNode is set.
27
- * @default 300000 (5 minutes)
27
+ * @default 60
28
28
  */
29
- consolidationIntervalMs?: number;
29
+ consolidationIntervalMinutes?: number;
30
30
  /**
31
31
  * The number of entities to process in a single consolidation batch.
32
32
  * @default 1000
@@ -31,6 +31,11 @@ export interface ISynchronisedStorageServiceConstructorOptions {
31
31
  * @default identity
32
32
  */
33
33
  identityConnectorType?: string;
34
+ /**
35
+ * The task scheduler component.
36
+ * @default task-scheduler
37
+ */
38
+ taskSchedulerComponentType?: string;
34
39
  /**
35
40
  * The synchronised entity storage component type to use if this node is not trusted.
36
41
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.1-next.3](https://github.com/twinfoundation/synchronised-storage/compare/synchronised-storage-service-v0.0.1-next.2...synchronised-storage-service-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
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/synchronised-storage-models bumped from 0.0.1-next.2 to 0.0.1-next.3
16
+
3
17
  ## [0.0.1-next.2](https://github.com/twinfoundation/synchronised-storage/compare/synchronised-storage-service-v0.0.1-next.1...synchronised-storage-service-v0.0.1-next.2) (2025-07-22)
4
18
 
5
19
 
@@ -28,11 +28,11 @@ The id for the snapshot.
28
28
 
29
29
  ***
30
30
 
31
- ### schemaType
31
+ ### storageKey
32
32
 
33
- > **schemaType**: `string`
33
+ > **storageKey**: `string`
34
34
 
35
- The schema type for the snapshot i.e. which entity is being synchronized.
35
+ The storage key for the snapshot i.e. which entity is being synchronized.
36
36
 
37
37
  ***
38
38
 
@@ -68,8 +68,8 @@ The ids of the storage for the change sets in the snapshot, if this is not a loc
68
68
 
69
69
  ***
70
70
 
71
- ### localChanges?
71
+ ### changes?
72
72
 
73
- > `optional` **localChanges**: [`ISyncChange`](../interfaces/ISyncChange.md)\<`T`\>[]
73
+ > `optional` **changes**: [`ISyncChange`](../interfaces/ISyncChange.md)\<`T`\>[]
74
74
 
75
75
  The changes that were made in this snapshot, if this is a local snapshot.
@@ -8,6 +8,10 @@
8
8
  ## Interfaces
9
9
 
10
10
  - [ISyncChange](interfaces/ISyncChange.md)
11
+ - [ISyncChangeSet](interfaces/ISyncChangeSet.md)
12
+ - [ISyncPointerStore](interfaces/ISyncPointerStore.md)
13
+ - [ISyncSnapshot](interfaces/ISyncSnapshot.md)
14
+ - [ISyncState](interfaces/ISyncState.md)
11
15
  - [ISynchronisedStorageServiceConfig](interfaces/ISynchronisedStorageServiceConfig.md)
12
16
  - [ISynchronisedStorageServiceConstructorOptions](interfaces/ISynchronisedStorageServiceConstructorOptions.md)
13
17
 
@@ -0,0 +1,65 @@
1
+ # Interface: ISyncChangeSet\<T\>
2
+
3
+ The object definition for a sync change set.
4
+
5
+ ## Type Parameters
6
+
7
+ ### T
8
+
9
+ `T` *extends* `ISynchronisedEntity` = `ISynchronisedEntity`
10
+
11
+ ## Properties
12
+
13
+ ### id
14
+
15
+ > **id**: `string`
16
+
17
+ The id of the snapshot.
18
+
19
+ ***
20
+
21
+ ### dateCreated
22
+
23
+ > **dateCreated**: `string`
24
+
25
+ The date the change set was created.
26
+
27
+ ***
28
+
29
+ ### storageKey
30
+
31
+ > **storageKey**: `string`
32
+
33
+ The storage key of the change set. This is used to identify the entities being synchronised.
34
+
35
+ ***
36
+
37
+ ### dateModified?
38
+
39
+ > `optional` **dateModified**: `string`
40
+
41
+ The date the change set was last modified.
42
+
43
+ ***
44
+
45
+ ### changes
46
+
47
+ > **changes**: [`ISyncChange`](ISyncChange.md)\<`T`\>[]
48
+
49
+ The changes to apply after a snapshot.
50
+
51
+ ***
52
+
53
+ ### nodeIdentity
54
+
55
+ > **nodeIdentity**: `string`
56
+
57
+ The identity of the node that created the change set.
58
+
59
+ ***
60
+
61
+ ### proof?
62
+
63
+ > `optional` **proof**: `IProof`
64
+
65
+ The proof for the change set.
@@ -0,0 +1,15 @@
1
+ # Interface: ISyncPointerStore
2
+
3
+ The object definition for the sync pointer store.
4
+
5
+ ## Properties
6
+
7
+ ### syncPointers
8
+
9
+ > **syncPointers**: `object`
10
+
11
+ The mapping from storage keys to sync pointers.
12
+
13
+ #### Index Signature
14
+
15
+ \[`key`: `string`\]: `string`
@@ -0,0 +1,35 @@
1
+ # Interface: ISyncSnapshot
2
+
3
+ The object definition for a sync snapshot.
4
+
5
+ ## Properties
6
+
7
+ ### id
8
+
9
+ > **id**: `string`
10
+
11
+ The id of the snapshot.
12
+
13
+ ***
14
+
15
+ ### dateCreated
16
+
17
+ > **dateCreated**: `string`
18
+
19
+ The date the snapshot was created.
20
+
21
+ ***
22
+
23
+ ### dateModified?
24
+
25
+ > `optional` **dateModified**: `string`
26
+
27
+ The date the snapshot was last modified.
28
+
29
+ ***
30
+
31
+ ### changeSetStorageIds
32
+
33
+ > **changeSetStorageIds**: `string`[]
34
+
35
+ The ids of the storage for the change sets in the snapshot.
@@ -0,0 +1,11 @@
1
+ # Interface: ISyncState
2
+
3
+ The object definition for a sync state.
4
+
5
+ ## Properties
6
+
7
+ ### snapshots
8
+
9
+ > **snapshots**: [`ISyncSnapshot`](ISyncSnapshot.md)[]
10
+
11
+ The snapshots.
@@ -27,16 +27,16 @@ synchronised-storage-assertion
27
27
 
28
28
  ***
29
29
 
30
- ### entityUpdateIntervalMs?
30
+ ### entityUpdateIntervalMinutes?
31
31
 
32
- > `optional` **entityUpdateIntervalMs**: `number`
32
+ > `optional` **entityUpdateIntervalMinutes**: `number`
33
33
 
34
- How often to check for entity updates in milliseconds.
34
+ How often to check for entity updates in minutes.
35
35
 
36
36
  #### Default
37
37
 
38
38
  ```ts
39
- 300000 (5 minutes)
39
+ 5
40
40
  ```
41
41
 
42
42
  ***
@@ -55,16 +55,16 @@ false
55
55
 
56
56
  ***
57
57
 
58
- ### consolidationIntervalMs?
58
+ ### consolidationIntervalMinutes?
59
59
 
60
- > `optional` **consolidationIntervalMs**: `number`
60
+ > `optional` **consolidationIntervalMinutes**: `number`
61
61
 
62
62
  Interval to perform consolidation of changesets, only used if isTrustedNode is set.
63
63
 
64
64
  #### Default
65
65
 
66
66
  ```ts
67
- 300000 (5 minutes)
67
+ 60
68
68
  ```
69
69
 
70
70
  ***
@@ -76,6 +76,20 @@ identity
76
76
 
77
77
  ***
78
78
 
79
+ ### taskSchedulerComponentType?
80
+
81
+ > `optional` **taskSchedulerComponentType**: `string`
82
+
83
+ The task scheduler component.
84
+
85
+ #### Default
86
+
87
+ ```ts
88
+ task-scheduler
89
+ ```
90
+
91
+ ***
92
+
79
93
  ### trustedSynchronisedStorageComponentType?
80
94
 
81
95
  > `optional` **trustedSynchronisedStorageComponentType**: `string`
package/locales/en.json CHANGED
@@ -9,26 +9,43 @@
9
9
  "createdChangeSetProof": "Created change proof for change set with id \"{id}\", proof value is \"{proofValue}\""
10
10
  },
11
11
  "localSyncStateHelper": {
12
+ "getLocalChangeSnapshot": "Retrieving local change snapshot for storage key \"{storageKey}\"",
13
+ "localChangeSnapshotExists": "Found existing local change snapshot for storage key \"{storageKey}\"",
14
+ "localChangeSnapshotDoesNotExist": "No local change snapshot found for storage key \"{storageKey}\", creating new one",
12
15
  "remoteSyncSynchronisation": "Syncing from remote state with \"{snapshotCount}\" snapshots",
13
16
  "remoteSyncSnapshotProcessing": "Processing remote sync snapshot with id \"{snapshotId}\" created on \"{dateCreated}\"",
14
17
  "remoteSyncSnapshotModified": "Processing modified sync snapshot with id \"{snapshotId}\", remote modified on \"{remoteModified}\", local modified on \"{localModified}\"",
15
18
  "remoteSyncSnapshotNew": "Processing new sync snapshot with id \"{snapshotId}\", created on \"{dateCreated}\"",
16
- "removeLocalChangeSnapshot": "Removing local change snapshot with id \"{snapshotId}\""
19
+ "removeLocalChangeSnapshot": "Removing local change snapshot with id \"{snapshotId}\"",
20
+ "addLocalChange": "Adding local change with id \"{id}\" to local change snapshot for storage key \"{storageKey}\", operation \"{operation}\"",
21
+ "setLocalChangeSnapshot": "Storing local change snapshot for storage key \"{storageKey}\""
17
22
  },
18
23
  "remoteSyncStateHelper": {
19
- "verifiableSyncPointerRetrieving": "Retrieving verifiable sync pointer for key \"{key}\"",
20
- "verifiableSyncPointerNotFound": "No verifiable sync pointer found for key \"{key}\"",
21
- "verifiableSyncPointerRetrieved": "Retrieved verifiable sync pointer for key \"{key}\" with value \"{syncPointerId}\"",
22
- "verifiableSyncPointerStoring": "Storing verifiable sync pointer for key \"{key}\" with value \"{syncPointerId}\"",
24
+ "verifiableSyncPointerStoreRetrieving": "Retrieving verifiable sync pointer for key \"{key}\"",
25
+ "verifiableSyncPointerStoreNotFound": "No verifiable sync pointer store found for key \"{key}\"",
26
+ "verifiableSyncPointerStoreRetrieved": "Retrieved verifiable sync pointer for key \"{key}\"",
27
+ "verifiableSyncPointerStoreStoring": "Storing verifiable sync pointer store for key \"{key}\"",
23
28
  "remoteSyncStateStoring": "Storing remote sync state entry with \"{snapshotCount}\" snapshots",
24
29
  "remoteSyncStateRetrieving": "Retrieving remote sync state entry for syncPointerId \"{syncPointerId}\"",
25
30
  "remoteSyncStateRetrieved": "Retrieving remote sync state entry for syncPointerId \"{syncPointerId}\" with \"{snapshotCount}\" snapshots",
26
31
  "remoteSyncStateNotFound": "No remote sync state entry found for syncPointerId \"{syncPointerId}\"",
27
32
  "consolidationStarting": "Starting consolidation of remote sync state",
28
- "consolidationCompleted": "Consolidation of remote sync state completed"
33
+ "consolidationCompleted": "Consolidation of remote sync state completed",
34
+ "addChangeSetToSyncState": "Adding change set with id \"{changeSetStorageId}\" to remote sync state for storage key \"{storageKey}\"",
35
+ "createAndStoreChangeSet": "Creating and storing change set for storage key \"{storageKey}\" with \"{changeCount}\" changes",
36
+ "finalisingSyncChanges": "Finalising sync changes for storage key \"{storageKey}\""
29
37
  },
30
38
  "synchronisedStorageService": {
31
- "registerType": "Registering synchronised storage type \"{schemaType}\""
39
+ "registerType": "Registering synchronised storage type \"{storageKey}\"",
40
+ "activateType": "Activating synchronised storage type \"{storageKey}\"",
41
+ "startEntitySync": "Starting synchronised entity storage for type \"{storageKey}\"",
42
+ "updateFromRemoteSyncState": "Updating synchronised entity storage from remote sync state for type \"{storageKey}\"",
43
+ "updateFromLocalSyncState": "Updating synchronised entity storage from local sync state for type \"{storageKey}\"",
44
+ "updateFromLocalSyncStateNoChanges": "No changes found in local sync state for type \"{storageKey}\", skipping update",
45
+ "createdStorageChangeSet": "Created storage change set for type \"{storageKey}\" with id \"{changeSetStorageId}\"",
46
+ "createdStorageChangeSetNone": "No changes found for type \"{storageKey}\", no storage change set created",
47
+ "createChangeSetRequestingItem": "Creating change set for type \"{storageKey}\", requesting item with id \"{id}\"",
48
+ "createChangeSetRespondingItem": "Responding to change set request for type \"{storageKey}\", item with id \"{id}\""
32
49
  }
33
50
  },
34
51
  "error": {
@@ -40,6 +57,9 @@
40
57
  "notTrustedNode": "This method can only be called on a trusted node",
41
58
  "entitySyncFailed": "Failed to sync synchronised entity storage connector",
42
59
  "consolidationSyncFailed": "Failed to consolidate synchronised entity storage connector"
60
+ },
61
+ "remoteSyncStateHelper": {
62
+ "finalisingSyncChangesFailed": "Failed to finalise sync changes for storage key \"{storageKey}\""
43
63
  }
44
64
  }
45
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/synchronised-storage-service",
3
- "version": "0.0.1-next.2",
3
+ "version": "0.0.1-next.3",
4
4
  "description": "Synchronised storage contract implementation and REST endpoint definitions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,6 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/api-models": "next",
18
+ "@twin.org/background-task-models": "next",
18
19
  "@twin.org/blob-storage-models": "next",
19
20
  "@twin.org/core": "next",
20
21
  "@twin.org/entity": "next",
@@ -24,7 +25,7 @@
24
25
  "@twin.org/logging-models": "next",
25
26
  "@twin.org/nameof": "next",
26
27
  "@twin.org/standards-w3c-did": "next",
27
- "@twin.org/synchronised-storage-models": "0.0.1-next.2",
28
+ "@twin.org/synchronised-storage-models": "0.0.1-next.3",
28
29
  "@twin.org/verifiable-storage-models": "next",
29
30
  "@twin.org/web": "next"
30
31
  },
@@ -1,9 +0,0 @@
1
- /**
2
- * The object definition for the sync pointer.
3
- */
4
- export interface ISyncPointer {
5
- /**
6
- * The pointer to where the sync data resides.
7
- */
8
- syncPointerId: string;
9
- }