@twin.org/data-framework 0.0.1-next.9 → 0.0.2-next.1
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 +22 -9
- package/dist/esm/index.mjs +22 -10
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/frameworkContexts.d.ts +13 -0
- package/dist/types/models/frameworkTypes.d.ts +3 -7
- package/docs/changelog.md +165 -1
- package/docs/reference/classes/FrameworkDataTypes.md +3 -3
- package/docs/reference/index.md +2 -0
- package/docs/reference/type-aliases/FrameworkContexts.md +5 -0
- package/docs/reference/type-aliases/FrameworkTypes.md +1 -1
- package/docs/reference/variables/FrameworkContexts.md +13 -0
- package/docs/reference/variables/FrameworkTypes.md +3 -9
- package/package.json +7 -8
package/dist/cjs/index.cjs
CHANGED
|
@@ -6,26 +6,35 @@ var dataCore = require('@twin.org/data-core');
|
|
|
6
6
|
// Copyright 2024 IOTA Stiftung.
|
|
7
7
|
// SPDX-License-Identifier: Apache-2.0.
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
9
|
+
* The contexts of framework data.
|
|
10
10
|
*/
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
12
|
-
const
|
|
12
|
+
const FrameworkContexts = {
|
|
13
13
|
/**
|
|
14
14
|
* Context Root.
|
|
15
15
|
*/
|
|
16
|
-
ContextRoot: "https://schema.twindev.org/framework/"
|
|
16
|
+
ContextRoot: "https://schema.twindev.org/framework/"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// Copyright 2024 IOTA Stiftung.
|
|
20
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
21
|
+
/**
|
|
22
|
+
* The types of framework data.
|
|
23
|
+
*/
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
|
+
const FrameworkTypes = {
|
|
17
26
|
/**
|
|
18
27
|
* Represents a urn.
|
|
19
28
|
*/
|
|
20
|
-
Urn: "
|
|
29
|
+
Urn: "URN",
|
|
21
30
|
/**
|
|
22
31
|
* Represents a timestamp as an integer, milliseconds since 1 Jan 1970.
|
|
23
32
|
*/
|
|
24
|
-
TimestampMilliseconds: "
|
|
33
|
+
TimestampMilliseconds: "TimestampMilliseconds",
|
|
25
34
|
/**
|
|
26
35
|
* Represents a timestamp as an integer, seconds since 1 Jan 1970.
|
|
27
36
|
*/
|
|
28
|
-
TimestampSeconds: "
|
|
37
|
+
TimestampSeconds: "TimestampSeconds"
|
|
29
38
|
};
|
|
30
39
|
|
|
31
40
|
var type$2 = "integer";
|
|
@@ -59,19 +68,22 @@ class FrameworkDataTypes {
|
|
|
59
68
|
* Register all the data types.
|
|
60
69
|
*/
|
|
61
70
|
static registerTypes() {
|
|
62
|
-
dataCore.DataTypeHandlerFactory.register(FrameworkTypes.Urn
|
|
71
|
+
dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.Urn}`, () => ({
|
|
72
|
+
context: FrameworkContexts.ContextRoot,
|
|
63
73
|
type: FrameworkTypes.Urn,
|
|
64
74
|
defaultValue: "",
|
|
65
75
|
jsonSchema: async () => URNSchema,
|
|
66
76
|
validate: async (propertyName, value, failures, container) => core.Urn.validate(propertyName, value, failures)
|
|
67
77
|
}));
|
|
68
|
-
dataCore.DataTypeHandlerFactory.register(FrameworkTypes.TimestampMilliseconds
|
|
78
|
+
dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampMilliseconds}`, () => ({
|
|
79
|
+
context: FrameworkContexts.ContextRoot,
|
|
69
80
|
type: FrameworkTypes.TimestampMilliseconds,
|
|
70
81
|
defaultValue: Date.now(),
|
|
71
82
|
jsonSchema: async () => TimestampMillisecondsSchema,
|
|
72
83
|
validate: async (propertyName, value, failures, container) => core.Validation.timestampMilliseconds(propertyName, value, failures)
|
|
73
84
|
}));
|
|
74
|
-
dataCore.DataTypeHandlerFactory.register(FrameworkTypes.TimestampSeconds
|
|
85
|
+
dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampSeconds}`, () => ({
|
|
86
|
+
context: FrameworkContexts.ContextRoot,
|
|
75
87
|
type: FrameworkTypes.TimestampSeconds,
|
|
76
88
|
defaultValue: Math.floor(Date.now() / 1000),
|
|
77
89
|
jsonSchema: async () => TimestampSecondsSchema,
|
|
@@ -80,5 +92,6 @@ class FrameworkDataTypes {
|
|
|
80
92
|
}
|
|
81
93
|
}
|
|
82
94
|
|
|
95
|
+
exports.FrameworkContexts = FrameworkContexts;
|
|
83
96
|
exports.FrameworkDataTypes = FrameworkDataTypes;
|
|
84
97
|
exports.FrameworkTypes = FrameworkTypes;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -4,26 +4,35 @@ import { DataTypeHandlerFactory } from '@twin.org/data-core';
|
|
|
4
4
|
// Copyright 2024 IOTA Stiftung.
|
|
5
5
|
// SPDX-License-Identifier: Apache-2.0.
|
|
6
6
|
/**
|
|
7
|
-
* The
|
|
7
|
+
* The contexts of framework data.
|
|
8
8
|
*/
|
|
9
9
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10
|
-
const
|
|
10
|
+
const FrameworkContexts = {
|
|
11
11
|
/**
|
|
12
12
|
* Context Root.
|
|
13
13
|
*/
|
|
14
|
-
ContextRoot: "https://schema.twindev.org/framework/"
|
|
14
|
+
ContextRoot: "https://schema.twindev.org/framework/"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Copyright 2024 IOTA Stiftung.
|
|
18
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
19
|
+
/**
|
|
20
|
+
* The types of framework data.
|
|
21
|
+
*/
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
23
|
+
const FrameworkTypes = {
|
|
15
24
|
/**
|
|
16
25
|
* Represents a urn.
|
|
17
26
|
*/
|
|
18
|
-
Urn: "
|
|
27
|
+
Urn: "URN",
|
|
19
28
|
/**
|
|
20
29
|
* Represents a timestamp as an integer, milliseconds since 1 Jan 1970.
|
|
21
30
|
*/
|
|
22
|
-
TimestampMilliseconds: "
|
|
31
|
+
TimestampMilliseconds: "TimestampMilliseconds",
|
|
23
32
|
/**
|
|
24
33
|
* Represents a timestamp as an integer, seconds since 1 Jan 1970.
|
|
25
34
|
*/
|
|
26
|
-
TimestampSeconds: "
|
|
35
|
+
TimestampSeconds: "TimestampSeconds"
|
|
27
36
|
};
|
|
28
37
|
|
|
29
38
|
var type$2 = "integer";
|
|
@@ -57,19 +66,22 @@ class FrameworkDataTypes {
|
|
|
57
66
|
* Register all the data types.
|
|
58
67
|
*/
|
|
59
68
|
static registerTypes() {
|
|
60
|
-
DataTypeHandlerFactory.register(FrameworkTypes.Urn
|
|
69
|
+
DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.Urn}`, () => ({
|
|
70
|
+
context: FrameworkContexts.ContextRoot,
|
|
61
71
|
type: FrameworkTypes.Urn,
|
|
62
72
|
defaultValue: "",
|
|
63
73
|
jsonSchema: async () => URNSchema,
|
|
64
74
|
validate: async (propertyName, value, failures, container) => Urn.validate(propertyName, value, failures)
|
|
65
75
|
}));
|
|
66
|
-
DataTypeHandlerFactory.register(FrameworkTypes.TimestampMilliseconds
|
|
76
|
+
DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampMilliseconds}`, () => ({
|
|
77
|
+
context: FrameworkContexts.ContextRoot,
|
|
67
78
|
type: FrameworkTypes.TimestampMilliseconds,
|
|
68
79
|
defaultValue: Date.now(),
|
|
69
80
|
jsonSchema: async () => TimestampMillisecondsSchema,
|
|
70
81
|
validate: async (propertyName, value, failures, container) => Validation.timestampMilliseconds(propertyName, value, failures)
|
|
71
82
|
}));
|
|
72
|
-
DataTypeHandlerFactory.register(FrameworkTypes.TimestampSeconds
|
|
83
|
+
DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampSeconds}`, () => ({
|
|
84
|
+
context: FrameworkContexts.ContextRoot,
|
|
73
85
|
type: FrameworkTypes.TimestampSeconds,
|
|
74
86
|
defaultValue: Math.floor(Date.now() / 1000),
|
|
75
87
|
jsonSchema: async () => TimestampSecondsSchema,
|
|
@@ -78,4 +90,4 @@ class FrameworkDataTypes {
|
|
|
78
90
|
}
|
|
79
91
|
}
|
|
80
92
|
|
|
81
|
-
export { FrameworkDataTypes, FrameworkTypes };
|
|
93
|
+
export { FrameworkContexts, FrameworkDataTypes, FrameworkTypes };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The contexts of framework data.
|
|
3
|
+
*/
|
|
4
|
+
export declare const FrameworkContexts: {
|
|
5
|
+
/**
|
|
6
|
+
* Context Root.
|
|
7
|
+
*/
|
|
8
|
+
readonly ContextRoot: "https://schema.twindev.org/framework/";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The contexts of framework data.
|
|
12
|
+
*/
|
|
13
|
+
export type FrameworkContexts = (typeof FrameworkContexts)[keyof typeof FrameworkContexts];
|
|
@@ -2,22 +2,18 @@
|
|
|
2
2
|
* The types of framework data.
|
|
3
3
|
*/
|
|
4
4
|
export declare const FrameworkTypes: {
|
|
5
|
-
/**
|
|
6
|
-
* Context Root.
|
|
7
|
-
*/
|
|
8
|
-
readonly ContextRoot: "https://schema.twindev.org/framework/";
|
|
9
5
|
/**
|
|
10
6
|
* Represents a urn.
|
|
11
7
|
*/
|
|
12
|
-
readonly Urn: "
|
|
8
|
+
readonly Urn: "URN";
|
|
13
9
|
/**
|
|
14
10
|
* Represents a timestamp as an integer, milliseconds since 1 Jan 1970.
|
|
15
11
|
*/
|
|
16
|
-
readonly TimestampMilliseconds: "
|
|
12
|
+
readonly TimestampMilliseconds: "TimestampMilliseconds";
|
|
17
13
|
/**
|
|
18
14
|
* Represents a timestamp as an integer, seconds since 1 Jan 1970.
|
|
19
15
|
*/
|
|
20
|
-
readonly TimestampSeconds: "
|
|
16
|
+
readonly TimestampSeconds: "TimestampSeconds";
|
|
21
17
|
};
|
|
22
18
|
/**
|
|
23
19
|
* The types of framework data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,169 @@
|
|
|
1
1
|
# @twin.org/data-framework - Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/data/compare/data-framework-v0.0.2-next.0...data-framework-v0.0.2-next.1) (2025-08-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add document cache access methods ([dbf1e36](https://github.com/twinfoundation/data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
9
|
+
* expand Json LD Keyword ([70632d1](https://github.com/twinfoundation/data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
10
|
+
* update framework core ([c077b8c](https://github.com/twinfoundation/data/commit/c077b8c07e7ee66b5482254eab6f2a52cd911270))
|
|
11
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/twinfoundation/data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
12
|
+
* use shared store mechanism ([#3](https://github.com/twinfoundation/data/issues/3)) ([33eb221](https://github.com/twinfoundation/data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* The following workspace dependencies were updated
|
|
18
|
+
* dependencies
|
|
19
|
+
* @twin.org/data-core bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
20
|
+
* @twin.org/data-json-ld bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
21
|
+
|
|
22
|
+
## 0.0.1 (2025-07-03)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* add document cache access methods ([dbf1e36](https://github.com/twinfoundation/data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
28
|
+
* expand Json LD Keyword ([70632d1](https://github.com/twinfoundation/data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
29
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/twinfoundation/data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
30
|
+
* use shared store mechanism ([#3](https://github.com/twinfoundation/data/issues/3)) ([33eb221](https://github.com/twinfoundation/data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
31
|
+
|
|
32
|
+
## [0.0.1-next.37](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.36...data-framework-v0.0.1-next.37) (2025-06-11)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Miscellaneous Chores
|
|
36
|
+
|
|
37
|
+
* **data-framework:** Synchronize repo versions
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* The following workspace dependencies were updated
|
|
43
|
+
* dependencies
|
|
44
|
+
* @twin.org/data-core bumped from 0.0.1-next.36 to 0.0.1-next.37
|
|
45
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.36 to 0.0.1-next.37
|
|
46
|
+
|
|
47
|
+
## [0.0.1-next.36](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.35...data-framework-v0.0.1-next.36) (2025-06-10)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
* expand Json LD Keyword ([70632d1](https://github.com/twinfoundation/data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Dependencies
|
|
56
|
+
|
|
57
|
+
* The following workspace dependencies were updated
|
|
58
|
+
* dependencies
|
|
59
|
+
* @twin.org/data-core bumped from 0.0.1-next.35 to 0.0.1-next.36
|
|
60
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.35 to 0.0.1-next.36
|
|
61
|
+
|
|
62
|
+
## [0.0.1-next.35](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.34...data-framework-v0.0.1-next.35) (2025-06-03)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Miscellaneous Chores
|
|
66
|
+
|
|
67
|
+
* **data-framework:** Synchronize repo versions
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Dependencies
|
|
71
|
+
|
|
72
|
+
* The following workspace dependencies were updated
|
|
73
|
+
* dependencies
|
|
74
|
+
* @twin.org/data-core bumped from 0.0.1-next.34 to 0.0.1-next.35
|
|
75
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.34 to 0.0.1-next.35
|
|
76
|
+
|
|
77
|
+
## [0.0.1-next.34](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.33...data-framework-v0.0.1-next.34) (2025-06-02)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Miscellaneous Chores
|
|
81
|
+
|
|
82
|
+
* **data-framework:** Synchronize repo versions
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Dependencies
|
|
86
|
+
|
|
87
|
+
* The following workspace dependencies were updated
|
|
88
|
+
* dependencies
|
|
89
|
+
* @twin.org/data-core bumped from 0.0.1-next.33 to 0.0.1-next.34
|
|
90
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.33 to 0.0.1-next.34
|
|
91
|
+
|
|
92
|
+
## [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)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Miscellaneous Chores
|
|
96
|
+
|
|
97
|
+
* **data-framework:** Synchronize repo versions
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Dependencies
|
|
101
|
+
|
|
102
|
+
* The following workspace dependencies were updated
|
|
103
|
+
* dependencies
|
|
104
|
+
* @twin.org/data-core bumped from 0.0.1-next.32 to 0.0.1-next.33
|
|
105
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.32 to 0.0.1-next.33
|
|
106
|
+
|
|
107
|
+
## [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)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Features
|
|
111
|
+
|
|
112
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/twinfoundation/data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Dependencies
|
|
116
|
+
|
|
117
|
+
* The following workspace dependencies were updated
|
|
118
|
+
* dependencies
|
|
119
|
+
* @twin.org/data-core bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
120
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
121
|
+
|
|
122
|
+
## [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)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Miscellaneous Chores
|
|
126
|
+
|
|
127
|
+
* **data-framework:** Synchronize repo versions
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Dependencies
|
|
131
|
+
|
|
132
|
+
* The following workspace dependencies were updated
|
|
133
|
+
* dependencies
|
|
134
|
+
* @twin.org/data-core bumped from 0.0.1-next.30 to 0.0.1-next.31
|
|
135
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.30 to 0.0.1-next.31
|
|
136
|
+
|
|
137
|
+
## [0.0.1-next.30](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.29...data-framework-v0.0.1-next.30) (2025-04-17)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
* use shared store mechanism ([#3](https://github.com/twinfoundation/data/issues/3)) ([33eb221](https://github.com/twinfoundation/data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Dependencies
|
|
146
|
+
|
|
147
|
+
* The following workspace dependencies were updated
|
|
148
|
+
* dependencies
|
|
149
|
+
* @twin.org/data-core bumped from 0.0.1-next.29 to 0.0.1-next.30
|
|
150
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.29 to 0.0.1-next.30
|
|
151
|
+
|
|
152
|
+
## [0.0.1-next.29](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.28...data-framework-v0.0.1-next.29) (2025-03-28)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Features
|
|
156
|
+
|
|
157
|
+
* add document cache access methods ([dbf1e36](https://github.com/twinfoundation/data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Dependencies
|
|
161
|
+
|
|
162
|
+
* The following workspace dependencies were updated
|
|
163
|
+
* dependencies
|
|
164
|
+
* @twin.org/data-core bumped from 0.0.1-next.28 to 0.0.1-next.29
|
|
165
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.28 to 0.0.1-next.29
|
|
166
|
+
|
|
167
|
+
## v0.0.1-next.28
|
|
4
168
|
|
|
5
169
|
- Initial Release
|
|
@@ -4,13 +4,13 @@ Handle all the framework data types.
|
|
|
4
4
|
|
|
5
5
|
## Constructors
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Constructor
|
|
8
8
|
|
|
9
|
-
> **new FrameworkDataTypes**():
|
|
9
|
+
> **new FrameworkDataTypes**(): `FrameworkDataTypes`
|
|
10
10
|
|
|
11
11
|
#### Returns
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
`FrameworkDataTypes`
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
16
16
|
|
package/docs/reference/index.md
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
## Type Aliases
|
|
8
8
|
|
|
9
|
+
- [FrameworkContexts](type-aliases/FrameworkContexts.md)
|
|
9
10
|
- [FrameworkTypes](type-aliases/FrameworkTypes.md)
|
|
10
11
|
|
|
11
12
|
## Variables
|
|
12
13
|
|
|
14
|
+
- [FrameworkContexts](variables/FrameworkContexts.md)
|
|
13
15
|
- [FrameworkTypes](variables/FrameworkTypes.md)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: FrameworkTypes
|
|
2
2
|
|
|
3
|
-
> **FrameworkTypes
|
|
3
|
+
> **FrameworkTypes** = *typeof* [`FrameworkTypes`](../variables/FrameworkTypes.md)\[keyof *typeof* [`FrameworkTypes`](../variables/FrameworkTypes.md)\]
|
|
4
4
|
|
|
5
5
|
The types of framework data.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Variable: FrameworkContexts
|
|
2
|
+
|
|
3
|
+
> `const` **FrameworkContexts**: `object`
|
|
4
|
+
|
|
5
|
+
The contexts of framework data.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### ContextRoot
|
|
10
|
+
|
|
11
|
+
> `readonly` **ContextRoot**: `"https://schema.twindev.org/framework/"` = `"https://schema.twindev.org/framework/"`
|
|
12
|
+
|
|
13
|
+
Context Root.
|
|
@@ -6,26 +6,20 @@ The types of framework data.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
### ContextRoot
|
|
10
|
-
|
|
11
|
-
> `readonly` **ContextRoot**: `"https://schema.twindev.org/framework/"` = `"https://schema.twindev.org/framework/"`
|
|
12
|
-
|
|
13
|
-
Context Root.
|
|
14
|
-
|
|
15
9
|
### Urn
|
|
16
10
|
|
|
17
|
-
> `readonly` **Urn**: `"
|
|
11
|
+
> `readonly` **Urn**: `"URN"` = `"URN"`
|
|
18
12
|
|
|
19
13
|
Represents a urn.
|
|
20
14
|
|
|
21
15
|
### TimestampMilliseconds
|
|
22
16
|
|
|
23
|
-
> `readonly` **TimestampMilliseconds**: `"
|
|
17
|
+
> `readonly` **TimestampMilliseconds**: `"TimestampMilliseconds"` = `"TimestampMilliseconds"`
|
|
24
18
|
|
|
25
19
|
Represents a timestamp as an integer, milliseconds since 1 Jan 1970.
|
|
26
20
|
|
|
27
21
|
### TimestampSeconds
|
|
28
22
|
|
|
29
|
-
> `readonly` **TimestampSeconds**: `"
|
|
23
|
+
> `readonly` **TimestampSeconds**: `"TimestampSeconds"` = `"TimestampSeconds"`
|
|
30
24
|
|
|
31
25
|
Represents a timestamp as an integer, seconds since 1 Jan 1970.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-framework",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.1",
|
|
4
4
|
"description": "Models which define the structure of framework types",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,22 +15,21 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/data-core": "0.0.
|
|
19
|
-
"@twin.org/data-json-ld": "0.0.
|
|
18
|
+
"@twin.org/data-core": "0.0.2-next.1",
|
|
19
|
+
"@twin.org/data-json-ld": "0.0.2-next.1",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
|
-
"@twin.org/nameof": "next"
|
|
22
|
-
"@types/json-schema": "7.0.15"
|
|
21
|
+
"@twin.org/nameof": "next"
|
|
23
22
|
},
|
|
24
23
|
"main": "./dist/cjs/index.cjs",
|
|
25
24
|
"module": "./dist/esm/index.mjs",
|
|
26
25
|
"types": "./dist/types/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
".": {
|
|
28
|
+
"types": "./dist/types/index.d.ts",
|
|
29
29
|
"require": "./dist/cjs/index.cjs",
|
|
30
|
-
"import": "./dist/esm/index.mjs"
|
|
31
|
-
"types": "./dist/types/index.d.ts"
|
|
30
|
+
"import": "./dist/esm/index.mjs"
|
|
32
31
|
},
|
|
33
|
-
"./locales": "./locales"
|
|
32
|
+
"./locales/*.json": "./locales/*.json"
|
|
34
33
|
},
|
|
35
34
|
"files": [
|
|
36
35
|
"dist/cjs",
|