@twin.org/attestation-models 0.0.1-next.16 → 0.0.1-next.18

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