@twin.org/synchronised-storage-models 0.0.3-next.3 → 0.0.3-next.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ISyncChangeSet.js","sourceRoot":"","sources":["../../../src/models/ISyncChangeSet.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ISyncChange } from \"./ISyncChange.js\";\nimport type { SynchronisedStorageContexts } from \"./synchronisedStorageContexts.js\";\nimport type { SynchronisedStorageTypes } from \"./synchronisedStorageTypes.js\";\n\n/**\n * The object definition for a sync change set.\n */\nexport interface ISyncChangeSet {\n\t/**\n\t * The LD Context for the change set.\n\t */\n\t\"@context\": typeof SynchronisedStorageContexts.ContextRoot;\n\n\t/**\n\t * The LD Type for the change set.\n\t */\n\ttype: typeof SynchronisedStorageTypes.ChangeSet;\n\n\t/**\n\t * The id of the change set.\n\t */\n\tid: string;\n\n\t/**\n\t * The storage key of the change set. This is used to identify the entities being synchronised.\n\t */\n\tstorageKey: string;\n\n\t/**\n\t * The date the change set was created.\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The date the change set was last modified.\n\t */\n\tdateModified: string;\n\n\t/**\n\t * The identity of the node that created the change set.\n\t */\n\tnodeId: string;\n\n\t/**\n\t * The changes to apply after a snapshot.\n\t */\n\tchanges: ISyncChange[];\n}\n"]}
1
+ {"version":3,"file":"ISyncChangeSet.js","sourceRoot":"","sources":["../../../src/models/ISyncChangeSet.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ISyncChange } from \"./ISyncChange.js\";\nimport type { SynchronisedStorageContexts } from \"./synchronisedStorageContexts.js\";\nimport type { SynchronisedStorageTypes } from \"./synchronisedStorageTypes.js\";\n\n/**\n * The object definition for a sync change set.\n */\nexport interface ISyncChangeSet {\n\t/**\n\t * The LD Context for the change set.\n\t */\n\t\"@context\": typeof SynchronisedStorageContexts.Namespace;\n\n\t/**\n\t * The LD Type for the change set.\n\t */\n\ttype: typeof SynchronisedStorageTypes.ChangeSet;\n\n\t/**\n\t * The id of the change set.\n\t */\n\tid: string;\n\n\t/**\n\t * The storage key of the change set. This is used to identify the entities being synchronised.\n\t */\n\tstorageKey: string;\n\n\t/**\n\t * The date the change set was created.\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The date the change set was last modified.\n\t */\n\tdateModified: string;\n\n\t/**\n\t * The identity of the node that created the change set.\n\t */\n\tnodeId: string;\n\n\t/**\n\t * The changes to apply after a snapshot.\n\t */\n\tchanges: ISyncChange[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ISyncRequest.js","sourceRoot":"","sources":["../../../src/models/ISyncRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SynchronisedStorageContexts } from \"./synchronisedStorageContexts.js\";\nimport type { SynchronisedStorageTypes } from \"./synchronisedStorageTypes.js\";\n\n/**\n * The object definition for a sync request.\n */\nexport interface ISyncRequest {\n\t/**\n\t * The LD Context for the request.\n\t */\n\t\"@context\": typeof SynchronisedStorageContexts.ContextRoot;\n\n\t/**\n\t * The LD Type for the request.\n\t */\n\ttype: typeof SynchronisedStorageTypes.SyncRequest;\n\n\t/**\n\t * The identity of the node that created the request.\n\t */\n\tnodeId: string;\n}\n"]}
1
+ {"version":3,"file":"ISyncRequest.js","sourceRoot":"","sources":["../../../src/models/ISyncRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SynchronisedStorageContexts } from \"./synchronisedStorageContexts.js\";\nimport type { SynchronisedStorageTypes } from \"./synchronisedStorageTypes.js\";\n\n/**\n * The object definition for a sync request.\n */\nexport interface ISyncRequest {\n\t/**\n\t * The LD Context for the request.\n\t */\n\t\"@context\": typeof SynchronisedStorageContexts.Namespace;\n\n\t/**\n\t * The LD Type for the request.\n\t */\n\ttype: typeof SynchronisedStorageTypes.SyncRequest;\n\n\t/**\n\t * The identity of the node that created the request.\n\t */\n\tnodeId: string;\n}\n"]}
@@ -1,13 +1,13 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  /**
4
- * The LD Contexts concerning SynchronisedStorage.
4
+ * The Contexts concerning SynchronisedStorage.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  export const SynchronisedStorageContexts = {
8
8
  /**
9
- * The SynchronisedStorage LD Context.
9
+ * The namespace.
10
10
  */
11
- ContextRoot: "https://schema.twindev.org/synchronised-storage"
11
+ Namespace: "https://schema.twindev.org/synchronised-storage/"
12
12
  };
13
13
  //# sourceMappingURL=synchronisedStorageContexts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"synchronisedStorageContexts.js","sourceRoot":"","sources":["../../../src/models/synchronisedStorageContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,WAAW,EAAE,iDAAiD;CACrD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD Contexts concerning SynchronisedStorage.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const SynchronisedStorageContexts = {\n\t/**\n\t * The SynchronisedStorage LD Context.\n\t */\n\tContextRoot: \"https://schema.twindev.org/synchronised-storage\"\n} as const;\n\n/**\n * The LD Contexts concerning SynchronisedStorage.\n */\nexport type SynchronisedStorageContexts =\n\t(typeof SynchronisedStorageContexts)[keyof typeof SynchronisedStorageContexts];\n"]}
1
+ {"version":3,"file":"synchronisedStorageContexts.js","sourceRoot":"","sources":["../../../src/models/synchronisedStorageContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,SAAS,EAAE,kDAAkD;CACpD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The Contexts concerning SynchronisedStorage.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const SynchronisedStorageContexts = {\n\t/**\n\t * The namespace.\n\t */\n\tNamespace: \"https://schema.twindev.org/synchronised-storage/\"\n} as const;\n\n/**\n * The Contexts concerning SynchronisedStorage.\n */\nexport type SynchronisedStorageContexts =\n\t(typeof SynchronisedStorageContexts)[keyof typeof SynchronisedStorageContexts];\n"]}
@@ -8,7 +8,7 @@ export interface ISyncChangeSet {
8
8
  /**
9
9
  * The LD Context for the change set.
10
10
  */
11
- "@context": typeof SynchronisedStorageContexts.ContextRoot;
11
+ "@context": typeof SynchronisedStorageContexts.Namespace;
12
12
  /**
13
13
  * The LD Type for the change set.
14
14
  */
@@ -7,7 +7,7 @@ export interface ISyncRequest {
7
7
  /**
8
8
  * The LD Context for the request.
9
9
  */
10
- "@context": typeof SynchronisedStorageContexts.ContextRoot;
10
+ "@context": typeof SynchronisedStorageContexts.Namespace;
11
11
  /**
12
12
  * The LD Type for the request.
13
13
  */
@@ -1,13 +1,13 @@
1
1
  /**
2
- * The LD Contexts concerning SynchronisedStorage.
2
+ * The Contexts concerning SynchronisedStorage.
3
3
  */
4
4
  export declare const SynchronisedStorageContexts: {
5
5
  /**
6
- * The SynchronisedStorage LD Context.
6
+ * The namespace.
7
7
  */
8
- readonly ContextRoot: "https://schema.twindev.org/synchronised-storage";
8
+ readonly Namespace: "https://schema.twindev.org/synchronised-storage/";
9
9
  };
10
10
  /**
11
- * The LD Contexts concerning SynchronisedStorage.
11
+ * The Contexts concerning SynchronisedStorage.
12
12
  */
13
13
  export type SynchronisedStorageContexts = (typeof SynchronisedStorageContexts)[keyof typeof SynchronisedStorageContexts];
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.4](https://github.com/twinfoundation/synchronised-storage/compare/synchronised-storage-models-v0.0.3-next.3...synchronised-storage-models-v0.0.3-next.4) (2026-01-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * update contexts and namespaces ([#31](https://github.com/twinfoundation/synchronised-storage/issues/31)) ([b31c8fa](https://github.com/twinfoundation/synchronised-storage/commit/b31c8fabb8431a230415aaa2caa47fb021489d3a))
9
+
3
10
  ## [0.0.3-next.3](https://github.com/twinfoundation/synchronised-storage/compare/synchronised-storage-models-v0.0.3-next.2...synchronised-storage-models-v0.0.3-next.3) (2026-01-12)
4
11
 
5
12
 
@@ -6,7 +6,7 @@ The object definition for a sync change set.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/synchronised-storage"`
9
+ > **@context**: `"https://schema.twindev.org/synchronised-storage/"`
10
10
 
11
11
  The LD Context for the change set.
12
12
 
@@ -6,7 +6,7 @@ The object definition for a sync request.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/synchronised-storage"`
9
+ > **@context**: `"https://schema.twindev.org/synchronised-storage/"`
10
10
 
11
11
  The LD Context for the request.
12
12
 
@@ -2,4 +2,4 @@
2
2
 
3
3
  > **SynchronisedStorageContexts** = *typeof* [`SynchronisedStorageContexts`](../variables/SynchronisedStorageContexts.md)\[keyof *typeof* [`SynchronisedStorageContexts`](../variables/SynchronisedStorageContexts.md)\]
4
4
 
5
- The LD Contexts concerning SynchronisedStorage.
5
+ The Contexts concerning SynchronisedStorage.
@@ -2,12 +2,12 @@
2
2
 
3
3
  > `const` **SynchronisedStorageContexts**: `object`
4
4
 
5
- The LD Contexts concerning SynchronisedStorage.
5
+ The Contexts concerning SynchronisedStorage.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### ContextRoot
9
+ ### Namespace
10
10
 
11
- > `readonly` **ContextRoot**: `"https://schema.twindev.org/synchronised-storage"` = `"https://schema.twindev.org/synchronised-storage"`
11
+ > `readonly` **Namespace**: `"https://schema.twindev.org/synchronised-storage/"` = `"https://schema.twindev.org/synchronised-storage/"`
12
12
 
13
- The SynchronisedStorage LD Context.
13
+ The namespace.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/synchronised-storage-models",
3
- "version": "0.0.3-next.3",
3
+ "version": "0.0.3-next.4",
4
4
  "description": "Models which define the structure of the synchronised storage connectors and services",
5
5
  "repository": {
6
6
  "type": "git",