@twin.org/standards-w3c-odrl 0.0.1-next.42 → 0.0.1-next.44
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/types/index.d.ts +1 -0
- package/dist/types/models/IOdrlPolicy.d.ts +3 -3
- package/dist/types/models/odrlContextType.d.ts +14 -0
- package/docs/changelog.md +30 -0
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IOdrlPolicy.md +1 -1
- package/docs/reference/type-aliases/OdrlContextType.md +5 -0
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
2
|
import type { IOdrlAction } from "./IOdrlAction";
|
|
3
3
|
import type { IOdrlAsset } from "./IOdrlAsset";
|
|
4
4
|
import type { IOdrlDuty } from "./IOdrlDuty";
|
|
5
5
|
import type { IOdrlParty } from "./IOdrlParty";
|
|
6
6
|
import type { IOdrlPermission } from "./IOdrlPermission";
|
|
7
7
|
import type { IOdrlProhibition } from "./IOdrlProhibition";
|
|
8
|
-
import type {
|
|
8
|
+
import type { OdrlContextType } from "./odrlContextType";
|
|
9
9
|
import type { ActionType } from "./types/actionTypes";
|
|
10
10
|
import type { ConflictStrategyType } from "./types/conflictStrategyTypes";
|
|
11
11
|
import type { PolicyType } from "./types/policyTypes";
|
|
@@ -17,7 +17,7 @@ export interface IOdrlPolicy extends IJsonLdNodeObject {
|
|
|
17
17
|
* The context for the policy.
|
|
18
18
|
* Must include "https://www.w3.org/ns/odrl.jsonld"
|
|
19
19
|
*/
|
|
20
|
-
"@context":
|
|
20
|
+
"@context": OdrlContextType;
|
|
21
21
|
/**
|
|
22
22
|
* The type of policy.
|
|
23
23
|
* Must be one of: "Set", "Offer", "Agreement"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
|
|
2
|
+
import type { OdrlContexts } from "./odrlContexts";
|
|
3
|
+
/**
|
|
4
|
+
* The ODRL JSON-LD context type.
|
|
5
|
+
*/
|
|
6
|
+
export type OdrlContextType = typeof OdrlContexts.Context | [typeof OdrlContexts.Context, ...IJsonLdContextDefinitionElement[]] | [
|
|
7
|
+
...IJsonLdContextDefinitionElement[],
|
|
8
|
+
typeof OdrlContexts.Context,
|
|
9
|
+
IJsonLdContextDefinitionElement
|
|
10
|
+
] | [
|
|
11
|
+
IJsonLdContextDefinitionElement,
|
|
12
|
+
typeof OdrlContexts.Context,
|
|
13
|
+
...IJsonLdContextDefinitionElement[]
|
|
14
|
+
];
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-odrl - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.44](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.1-next.43...standards-w3c-odrl-v0.0.1-next.44) (2025-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **standards-w3c-odrl:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.1-next.43 to 0.0.1-next.44
|
|
16
|
+
* @twin.org/standards-dublin-core bumped from 0.0.1-next.43 to 0.0.1-next.44
|
|
17
|
+
|
|
18
|
+
## [0.0.1-next.43](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.1-next.42...standards-w3c-odrl-v0.0.1-next.43) (2025-05-20)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* improve LD Context definition for ODRL ([#28](https://github.com/twinfoundation/standards/issues/28)) ([3362fb0](https://github.com/twinfoundation/standards/commit/3362fb0fe301bef56f4d67955f21e44b9119b8ef))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/standards-w3c-vcard bumped from 0.0.1-next.42 to 0.0.1-next.43
|
|
31
|
+
* @twin.org/standards-dublin-core bumped from 0.0.1-next.42 to 0.0.1-next.43
|
|
32
|
+
|
|
3
33
|
## [0.0.1-next.42](https://github.com/twinfoundation/standards/compare/standards-w3c-odrl-v0.0.1-next.41...standards-w3c-odrl-v0.0.1-next.42) (2025-05-09)
|
|
4
34
|
|
|
5
35
|
|
package/docs/reference/index.md
CHANGED
|
@@ -14,7 +14,7 @@ Interface representing an ODRL Policy.
|
|
|
14
14
|
|
|
15
15
|
### @context
|
|
16
16
|
|
|
17
|
-
> **@context**: `
|
|
17
|
+
> **@context**: [`OdrlContextType`](../type-aliases/OdrlContextType.md)
|
|
18
18
|
|
|
19
19
|
The context for the policy.
|
|
20
20
|
Must include "https://www.w3.org/ns/odrl.jsonld"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: OdrlContextType
|
|
2
|
+
|
|
3
|
+
> **OdrlContextType** = *typeof* [`Context`](../variables/OdrlContexts.md#context) \| \[*typeof* [`Context`](../variables/OdrlContexts.md#context), `...IJsonLdContextDefinitionElement[]`\] \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`Context`](../variables/OdrlContexts.md#context), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`Context`](../variables/OdrlContexts.md#context), `...IJsonLdContextDefinitionElement[]`\]
|
|
4
|
+
|
|
5
|
+
The ODRL JSON-LD context type.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-w3c-odrl",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.44",
|
|
4
4
|
"description": "Models which define the structure of W3C ODRL Standard",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/data-json-ld": "next",
|
|
18
|
-
"@twin.org/standards-dublin-core": "0.0.1-next.
|
|
19
|
-
"@twin.org/standards-w3c-vcard": "0.0.1-next.
|
|
18
|
+
"@twin.org/standards-dublin-core": "0.0.1-next.44",
|
|
19
|
+
"@twin.org/standards-w3c-vcard": "0.0.1-next.44",
|
|
20
20
|
"@twin.org/web": "next"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/cjs/index.cjs",
|