@twin.org/standards-w3c-odrl 0.0.3-next.26 → 0.0.3-next.28
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":"IOdrlConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { LeftOperandType } from \"./types/leftOperandType.js\";\nimport type { OperatorType } from \"./types/operatorType.js\";\nimport type { StatusType } from \"./types/statusType.js\";\n\n/**\n * Interface for ODRL Constraints.\n * https://www.w3.org/TR/odrl-model/#constraint\n */\nexport interface IOdrlConstraint extends IJsonLdNodeObject {\n\t/**\n\t * Optional unique identifier for the constraint.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The left operand of the constraint.\n\t */\n\tleftOperand: string | LeftOperandType;\n\n\t/**\n\t * The operator of the constraint.\n\t */\n\toperator: OperatorType;\n\n\t/**\n\t * The right operand of the constraint.\n\t * value with optional @type is used for literal values (like \"5.00\" with type \"xsd:decimal\")\n\t * id is used when referencing a URI/identifier (like odrl:policyUsage)\n\t */\n\trightOperand
|
|
1
|
+
{"version":3,"file":"IOdrlConstraint.js","sourceRoot":"","sources":["../../../src/models/IOdrlConstraint.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { ObjectOrArray } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { LeftOperandType } from \"./types/leftOperandType.js\";\nimport type { OperatorType } from \"./types/operatorType.js\";\nimport type { StatusType } from \"./types/statusType.js\";\n\n/**\n * Interface for ODRL Constraints.\n * https://www.w3.org/TR/odrl-model/#constraint\n */\nexport interface IOdrlConstraint extends IJsonLdNodeObject {\n\t/**\n\t * Optional unique identifier for the constraint.\n\t */\n\tuid?: string;\n\n\t/**\n\t * The left operand of the constraint.\n\t */\n\tleftOperand: string | LeftOperandType;\n\n\t/**\n\t * The operator of the constraint.\n\t */\n\toperator: OperatorType;\n\n\t/**\n\t * The right operand of the constraint.\n\t * value with optional @type is used for literal values (like \"5.00\" with type \"xsd:decimal\")\n\t * id is used when referencing a URI/identifier (like odrl:policyUsage)\n\t */\n\trightOperand?: ObjectOrArray<\n\t\t| string\n\t\t| {\n\t\t\t\t\"@value\": string;\n\t\t\t\t\"@type\"?: string;\n\t\t }\n\t\t| {\n\t\t\t\t\"@id\": string;\n\t\t }\n\t>;\n\n\t/**\n\t * Reference to the right operand.\n\t * Can be used to reference external resources or policies using an IRI.\n\t */\n\trightOperandReference?: ObjectOrArray<string>;\n\n\t/**\n\t * The data type of the right operand.\n\t */\n\tdataType?: string;\n\n\t/**\n\t * The unit for the right operand value.\n\t */\n\tunit?: string;\n\n\t/**\n\t * The status value for comparison.\n\t */\n\tstatus?: StatusType;\n}\n"]}
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"description": "The operator of the constraint."
|
|
92
92
|
},
|
|
93
93
|
"rightOperand": {
|
|
94
|
+
"description": "Object or array data type",
|
|
94
95
|
"anyOf": [
|
|
95
96
|
{
|
|
96
97
|
"type": "string"
|
|
@@ -121,13 +122,59 @@
|
|
|
121
122
|
"@id"
|
|
122
123
|
],
|
|
123
124
|
"additionalProperties": false
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"anyOf": [
|
|
130
|
+
{
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"@value": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
139
|
+
"@type": {
|
|
140
|
+
"type": "string"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"required": [
|
|
144
|
+
"@value"
|
|
145
|
+
],
|
|
146
|
+
"additionalProperties": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"@id": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"required": [
|
|
156
|
+
"@id"
|
|
157
|
+
],
|
|
158
|
+
"additionalProperties": false
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
124
162
|
}
|
|
125
|
-
]
|
|
126
|
-
"description": "The right operand of the constraint. value with optional"
|
|
163
|
+
]
|
|
127
164
|
},
|
|
128
165
|
"rightOperandReference": {
|
|
129
|
-
"
|
|
130
|
-
"
|
|
166
|
+
"description": "Object or array data type",
|
|
167
|
+
"anyOf": [
|
|
168
|
+
{
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]
|
|
131
178
|
},
|
|
132
179
|
"dataType": {
|
|
133
180
|
"type": "string",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ObjectOrArray } from "@twin.org/core";
|
|
1
2
|
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
3
|
import type { LeftOperandType } from "./types/leftOperandType.js";
|
|
3
4
|
import type { OperatorType } from "./types/operatorType.js";
|
|
@@ -24,16 +25,17 @@ export interface IOdrlConstraint extends IJsonLdNodeObject {
|
|
|
24
25
|
* value with optional @type is used for literal values (like "5.00" with type "xsd:decimal")
|
|
25
26
|
* id is used when referencing a URI/identifier (like odrl:policyUsage)
|
|
26
27
|
*/
|
|
27
|
-
rightOperand?: string | {
|
|
28
|
+
rightOperand?: ObjectOrArray<string | {
|
|
28
29
|
"@value": string;
|
|
29
30
|
"@type"?: string;
|
|
30
31
|
} | {
|
|
31
32
|
"@id": string;
|
|
32
|
-
}
|
|
33
|
+
}>;
|
|
33
34
|
/**
|
|
34
35
|
* Reference to the right operand.
|
|
36
|
+
* Can be used to reference external resources or policies using an IRI.
|
|
35
37
|
*/
|
|
36
|
-
rightOperandReference?: string
|
|
38
|
+
rightOperandReference?: ObjectOrArray<string>;
|
|
37
39
|
/**
|
|
38
40
|
* The data type of the right operand.
|
|
39
41
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-odrl - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.28](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.27...standards-w3c-odrl-v0.0.3-next.28) (2026-02-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* odrl constraint right operand as array ([91c5bf6](https://github.com/twinfoundation/standards/commit/91c5bf6f12f5e2f57d22352b17a50cdf249059e3))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.27 to 0.0.3-next.28
|
|
16
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.27 to 0.0.3-next.28
|
|
17
|
+
|
|
18
|
+
## [0.0.3-next.27](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.26...standards-w3c-odrl-v0.0.3-next.27) (2026-02-03)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Miscellaneous Chores
|
|
22
|
+
|
|
23
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.3-next.26 to 0.0.3-next.27
|
|
31
|
+
* @twin.org/standards-dublin-core bumped from 0.0.3-next.26 to 0.0.3-next.27
|
|
32
|
+
|
|
3
33
|
## [0.0.3-next.26](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.3-next.25...standards-w3c-odrl-v0.0.3-next.26) (2026-02-02)
|
|
4
34
|
|
|
5
35
|
|
|
@@ -39,7 +39,7 @@ The operator of the constraint.
|
|
|
39
39
|
|
|
40
40
|
### rightOperand?
|
|
41
41
|
|
|
42
|
-
> `optional` **rightOperand**: `string` \| \{ `@value`: `string`; `@type?`: `string`; \} \| \{ `@id`: `string`; \}
|
|
42
|
+
> `optional` **rightOperand**: `ObjectOrArray`\<`string` \| \{ `@value`: `string`; `@type?`: `string`; \} \| \{ `@id`: `string`; \}\>
|
|
43
43
|
|
|
44
44
|
The right operand of the constraint.
|
|
45
45
|
value with optional
|
|
@@ -48,9 +48,10 @@ value with optional
|
|
|
48
48
|
|
|
49
49
|
### rightOperandReference?
|
|
50
50
|
|
|
51
|
-
> `optional` **rightOperandReference**: `string
|
|
51
|
+
> `optional` **rightOperandReference**: `ObjectOrArray`\<`string`\>
|
|
52
52
|
|
|
53
53
|
Reference to the right operand.
|
|
54
|
+
Can be used to reference external resources or policies using an IRI.
|
|
54
55
|
|
|
55
56
|
***
|
|
56
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-odrl",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.28",
|
|
4
4
|
"description": "Models which define the structure of W3C ODRL Standard",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
|
-
"@twin.org/standards-dublin-core": "0.0.3-next.
|
|
21
|
-
"@twin.org/standards-w3c-vcard": "0.0.3-next.
|
|
20
|
+
"@twin.org/standards-dublin-core": "0.0.3-next.28",
|
|
21
|
+
"@twin.org/standards-w3c-vcard": "0.0.3-next.28",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|