@twin.org/data-framework 0.0.1-next.31 → 0.0.1-next.33

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.
@@ -69,18 +69,21 @@ class FrameworkDataTypes {
69
69
  */
70
70
  static registerTypes() {
71
71
  dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.Urn}`, () => ({
72
+ context: FrameworkContexts.ContextRoot,
72
73
  type: FrameworkTypes.Urn,
73
74
  defaultValue: "",
74
75
  jsonSchema: async () => URNSchema,
75
76
  validate: async (propertyName, value, failures, container) => core.Urn.validate(propertyName, value, failures)
76
77
  }));
77
78
  dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampMilliseconds}`, () => ({
79
+ context: FrameworkContexts.ContextRoot,
78
80
  type: FrameworkTypes.TimestampMilliseconds,
79
81
  defaultValue: Date.now(),
80
82
  jsonSchema: async () => TimestampMillisecondsSchema,
81
83
  validate: async (propertyName, value, failures, container) => core.Validation.timestampMilliseconds(propertyName, value, failures)
82
84
  }));
83
85
  dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampSeconds}`, () => ({
86
+ context: FrameworkContexts.ContextRoot,
84
87
  type: FrameworkTypes.TimestampSeconds,
85
88
  defaultValue: Math.floor(Date.now() / 1000),
86
89
  jsonSchema: async () => TimestampSecondsSchema,
@@ -67,18 +67,21 @@ class FrameworkDataTypes {
67
67
  */
68
68
  static registerTypes() {
69
69
  DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.Urn}`, () => ({
70
+ context: FrameworkContexts.ContextRoot,
70
71
  type: FrameworkTypes.Urn,
71
72
  defaultValue: "",
72
73
  jsonSchema: async () => URNSchema,
73
74
  validate: async (propertyName, value, failures, container) => Urn.validate(propertyName, value, failures)
74
75
  }));
75
76
  DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampMilliseconds}`, () => ({
77
+ context: FrameworkContexts.ContextRoot,
76
78
  type: FrameworkTypes.TimestampMilliseconds,
77
79
  defaultValue: Date.now(),
78
80
  jsonSchema: async () => TimestampMillisecondsSchema,
79
81
  validate: async (propertyName, value, failures, container) => Validation.timestampMilliseconds(propertyName, value, failures)
80
82
  }));
81
83
  DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampSeconds}`, () => ({
84
+ context: FrameworkContexts.ContextRoot,
82
85
  type: FrameworkTypes.TimestampSeconds,
83
86
  defaultValue: Math.floor(Date.now() / 1000),
84
87
  jsonSchema: async () => TimestampSecondsSchema,
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @twin.org/data-framework - Changelog
2
2
 
3
+ ## [0.0.1-next.33](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.32...data-framework-v0.0.1-next.33) (2025-06-02)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **data-framework:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/data-core bumped from 0.0.1-next.32 to 0.0.1-next.33
16
+ * @twin.org/data-json-ld bumped from 0.0.1-next.32 to 0.0.1-next.33
17
+
18
+ ## [0.0.1-next.32](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.31...data-framework-v0.0.1-next.32) (2025-05-28)
19
+
20
+
21
+ ### Features
22
+
23
+ * use fully qualified names for data type lookups ([b7b5c74](https://github.com/twinfoundation/data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/data-core bumped from 0.0.1-next.31 to 0.0.1-next.32
31
+ * @twin.org/data-json-ld bumped from 0.0.1-next.31 to 0.0.1-next.32
32
+
3
33
  ## [0.0.1-next.31](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.30...data-framework-v0.0.1-next.31) (2025-05-08)
4
34
 
5
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/data-framework",
3
- "version": "0.0.1-next.31",
3
+ "version": "0.0.1-next.33",
4
4
  "description": "Models which define the structure of framework types",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
- "@twin.org/data-core": "0.0.1-next.31",
19
- "@twin.org/data-json-ld": "0.0.1-next.31",
18
+ "@twin.org/data-core": "0.0.1-next.33",
19
+ "@twin.org/data-json-ld": "0.0.1-next.33",
20
20
  "@twin.org/entity": "next",
21
21
  "@twin.org/nameof": "next",
22
22
  "@types/json-schema": "7.0.15"