@twin.org/immutable-proof-models 0.0.1-next.20 → 0.0.1-next.21

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.
@@ -13,6 +13,10 @@ const ImmutableProofTypes = {
13
13
  * The context root for the immutable proof types.
14
14
  */
15
15
  ContextRoot: "https://schema.twindev.org/immutable-proof/",
16
+ /**
17
+ * The context root for the common types.
18
+ */
19
+ ContextRootCommon: "https://schema.twindev.org/common/",
16
20
  /**
17
21
  * Represents Immutable Proof.
18
22
  */
@@ -26,25 +30,21 @@ const ImmutableProofTypes = {
26
30
  var type = "object";
27
31
  var properties = {
28
32
  "@context": {
29
- anyOf: [
33
+ type: "array",
34
+ minItems: 2,
35
+ items: [
30
36
  {
31
37
  type: "string",
32
38
  "const": "https://schema.twindev.org/immutable-proof/"
33
39
  },
34
40
  {
35
- type: "array",
36
- minItems: 1,
37
- items: [
38
- {
39
- type: "string",
40
- "const": "https://schema.twindev.org/immutable-proof/"
41
- }
42
- ],
43
- additionalItems: {
44
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
- }
41
+ type: "string",
42
+ "const": "https://schema.twindev.org/common/"
46
43
  }
47
44
  ],
45
+ additionalItems: {
46
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
47
+ },
48
48
  description: "JSON-LD Context."
49
49
  },
50
50
  type: {
@@ -11,6 +11,10 @@ const ImmutableProofTypes = {
11
11
  * The context root for the immutable proof types.
12
12
  */
13
13
  ContextRoot: "https://schema.twindev.org/immutable-proof/",
14
+ /**
15
+ * The context root for the common types.
16
+ */
17
+ ContextRootCommon: "https://schema.twindev.org/common/",
14
18
  /**
15
19
  * Represents Immutable Proof.
16
20
  */
@@ -24,25 +28,21 @@ const ImmutableProofTypes = {
24
28
  var type = "object";
25
29
  var properties = {
26
30
  "@context": {
27
- anyOf: [
31
+ type: "array",
32
+ minItems: 2,
33
+ items: [
28
34
  {
29
35
  type: "string",
30
36
  "const": "https://schema.twindev.org/immutable-proof/"
31
37
  },
32
38
  {
33
- type: "array",
34
- minItems: 1,
35
- items: [
36
- {
37
- type: "string",
38
- "const": "https://schema.twindev.org/immutable-proof/"
39
- }
40
- ],
41
- additionalItems: {
42
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
43
- }
39
+ type: "string",
40
+ "const": "https://schema.twindev.org/common/"
44
41
  }
45
42
  ],
43
+ additionalItems: {
44
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
45
+ },
46
46
  description: "JSON-LD Context."
47
47
  },
48
48
  type: {
@@ -8,7 +8,11 @@ export interface IImmutableProof {
8
8
  /**
9
9
  * JSON-LD Context.
10
10
  */
11
- "@context": typeof ImmutableProofTypes.ContextRoot | [typeof ImmutableProofTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
11
+ "@context": [
12
+ typeof ImmutableProofTypes.ContextRoot,
13
+ typeof ImmutableProofTypes.ContextRootCommon,
14
+ ...IJsonLdContextDefinitionElement[]
15
+ ];
12
16
  /**
13
17
  * JSON-LD Type.
14
18
  */
@@ -6,6 +6,10 @@ export declare const ImmutableProofTypes: {
6
6
  * The context root for the immutable proof types.
7
7
  */
8
8
  readonly ContextRoot: "https://schema.twindev.org/immutable-proof/";
9
+ /**
10
+ * The context root for the common types.
11
+ */
12
+ readonly ContextRootCommon: "https://schema.twindev.org/common/";
9
13
  /**
10
14
  * Represents Immutable Proof.
11
15
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-models - Changelog
2
2
 
3
- ## v0.0.1-next.20
3
+ ## v0.0.1-next.21
4
4
 
5
5
  - Initial Release
@@ -6,7 +6,7 @@ Interface describing an immutable proof state.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/immutable-proof/"` \| \[`"https://schema.twindev.org/immutable-proof/"`, `...IJsonLdContextDefinitionElement[]`\]
9
+ > **@context**: \[`"https://schema.twindev.org/immutable-proof/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
10
10
 
11
11
  JSON-LD Context.
12
12
 
@@ -12,6 +12,12 @@ The types of immutable proof data.
12
12
 
13
13
  The context root for the immutable proof types.
14
14
 
15
+ ### ContextRootCommon
16
+
17
+ > `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
18
+
19
+ The context root for the common types.
20
+
15
21
  ### ImmutableProof
16
22
 
17
23
  > `readonly` **ImmutableProof**: `"ImmutableProof"` = `"ImmutableProof"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-models",
3
- "version": "0.0.1-next.20",
3
+ "version": "0.0.1-next.21",
4
4
  "description": "Models which define the structure of the immutable proof connectors and services",
5
5
  "repository": {
6
6
  "type": "git",