@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.
@@ -24,3 +24,4 @@ export * from "./models/types/dataTypes";
24
24
  export * from "./models/types/leftOperandTypes";
25
25
  export * from "./models/types/uriActionTypes";
26
26
  export * from "./models/types/rightOperandTypes";
27
+ export * from "./models/odrlContextType";
@@ -1,11 +1,11 @@
1
- import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
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 { OdrlContexts } from "./odrlContexts";
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": typeof OdrlContexts.Context | [typeof OdrlContexts.Context, ...IJsonLdContextDefinitionElement[]];
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
 
@@ -18,6 +18,7 @@
18
18
 
19
19
  ## Type Aliases
20
20
 
21
+ - [OdrlContextType](type-aliases/OdrlContextType.md)
21
22
  - [OdrlContexts](type-aliases/OdrlContexts.md)
22
23
  - [ActionType](type-aliases/ActionType.md)
23
24
  - [ConflictStrategyType](type-aliases/ConflictStrategyType.md)
@@ -14,7 +14,7 @@ Interface representing an ODRL Policy.
14
14
 
15
15
  ### @context
16
16
 
17
- > **@context**: `"https://www.w3.org/ns/odrl.jsonld"` \| \[`"https://www.w3.org/ns/odrl.jsonld"`, `...IJsonLdContextDefinitionElement[]`\]
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.42",
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.42",
19
- "@twin.org/standards-w3c-vcard": "0.0.1-next.42",
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",