@twin.org/auditable-item-graph-models 0.0.1-next.22 → 0.0.1-next.23

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 AuditableItemGraphTypes = {
13
13
  * The context root for the auditable item graph types.
14
14
  */
15
15
  ContextRoot: "https://schema.twindev.org/aig/",
16
+ /**
17
+ * The context root for the common types.
18
+ */
19
+ ContextRootCommon: "https://schema.twindev.org/common/",
16
20
  /**
17
21
  * Represents auditable item graph vertex.
18
22
  */
@@ -115,25 +119,21 @@ var AuditableItemGraphAliasSchema = {
115
119
  var type$5 = "object";
116
120
  var properties$5 = {
117
121
  "@context": {
118
- anyOf: [
122
+ type: "array",
123
+ minItems: 2,
124
+ items: [
119
125
  {
120
126
  type: "string",
121
127
  "const": "https://schema.twindev.org/aig/"
122
128
  },
123
129
  {
124
- type: "array",
125
- minItems: 1,
126
- items: [
127
- {
128
- type: "string",
129
- "const": "https://schema.twindev.org/aig/"
130
- }
131
- ],
132
- additionalItems: {
133
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
134
- }
130
+ type: "string",
131
+ "const": "https://schema.twindev.org/common/"
135
132
  }
136
133
  ],
134
+ additionalItems: {
135
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
136
+ },
137
137
  description: "JSON-LD Context."
138
138
  },
139
139
  type: {
@@ -409,25 +409,21 @@ var properties$1 = {
409
409
  description: "The date/time of when the element was deleted, as we never actually remove items."
410
410
  },
411
411
  "@context": {
412
- anyOf: [
412
+ type: "array",
413
+ minItems: 2,
414
+ items: [
413
415
  {
414
416
  type: "string",
415
417
  "const": "https://schema.twindev.org/aig/"
416
418
  },
417
419
  {
418
- type: "array",
419
- minItems: 1,
420
- items: [
421
- {
422
- type: "string",
423
- "const": "https://schema.twindev.org/aig/"
424
- }
425
- ],
426
- additionalItems: {
427
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
428
- }
420
+ type: "string",
421
+ "const": "https://schema.twindev.org/common/"
429
422
  }
430
423
  ],
424
+ additionalItems: {
425
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
426
+ },
431
427
  description: "JSON-LD Context."
432
428
  },
433
429
  type: {
@@ -11,6 +11,10 @@ const AuditableItemGraphTypes = {
11
11
  * The context root for the auditable item graph types.
12
12
  */
13
13
  ContextRoot: "https://schema.twindev.org/aig/",
14
+ /**
15
+ * The context root for the common types.
16
+ */
17
+ ContextRootCommon: "https://schema.twindev.org/common/",
14
18
  /**
15
19
  * Represents auditable item graph vertex.
16
20
  */
@@ -113,25 +117,21 @@ var AuditableItemGraphAliasSchema = {
113
117
  var type$5 = "object";
114
118
  var properties$5 = {
115
119
  "@context": {
116
- anyOf: [
120
+ type: "array",
121
+ minItems: 2,
122
+ items: [
117
123
  {
118
124
  type: "string",
119
125
  "const": "https://schema.twindev.org/aig/"
120
126
  },
121
127
  {
122
- type: "array",
123
- minItems: 1,
124
- items: [
125
- {
126
- type: "string",
127
- "const": "https://schema.twindev.org/aig/"
128
- }
129
- ],
130
- additionalItems: {
131
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
132
- }
128
+ type: "string",
129
+ "const": "https://schema.twindev.org/common/"
133
130
  }
134
131
  ],
132
+ additionalItems: {
133
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
134
+ },
135
135
  description: "JSON-LD Context."
136
136
  },
137
137
  type: {
@@ -407,25 +407,21 @@ var properties$1 = {
407
407
  description: "The date/time of when the element was deleted, as we never actually remove items."
408
408
  },
409
409
  "@context": {
410
- anyOf: [
410
+ type: "array",
411
+ minItems: 2,
412
+ items: [
411
413
  {
412
414
  type: "string",
413
415
  "const": "https://schema.twindev.org/aig/"
414
416
  },
415
417
  {
416
- type: "array",
417
- minItems: 1,
418
- items: [
419
- {
420
- type: "string",
421
- "const": "https://schema.twindev.org/aig/"
422
- }
423
- ],
424
- additionalItems: {
425
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
426
- }
418
+ type: "string",
419
+ "const": "https://schema.twindev.org/common/"
427
420
  }
428
421
  ],
422
+ additionalItems: {
423
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
424
+ },
429
425
  description: "JSON-LD Context."
430
426
  },
431
427
  type: {
@@ -9,7 +9,11 @@ export interface IAuditableItemGraphChangeset {
9
9
  /**
10
10
  * JSON-LD Context.
11
11
  */
12
- "@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
12
+ "@context": [
13
+ typeof AuditableItemGraphTypes.ContextRoot,
14
+ typeof AuditableItemGraphTypes.ContextRootCommon,
15
+ ...IJsonLdContextDefinitionElement[]
16
+ ];
13
17
  /**
14
18
  * JSON-LD Type.
15
19
  */
@@ -12,7 +12,11 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
12
12
  /**
13
13
  * JSON-LD Context.
14
14
  */
15
- "@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...IJsonLdContextDefinitionElement[]];
15
+ "@context": [
16
+ typeof AuditableItemGraphTypes.ContextRoot,
17
+ typeof AuditableItemGraphTypes.ContextRootCommon,
18
+ ...IJsonLdContextDefinitionElement[]
19
+ ];
16
20
  /**
17
21
  * The id of the element.
18
22
  */
@@ -6,6 +6,10 @@ export declare const AuditableItemGraphTypes: {
6
6
  * The context root for the auditable item graph types.
7
7
  */
8
8
  readonly ContextRoot: "https://schema.twindev.org/aig/";
9
+ /**
10
+ * The context root for the common types.
11
+ */
12
+ readonly ContextRootCommon: "https://schema.twindev.org/common/";
9
13
  /**
10
14
  * Represents auditable item graph vertex.
11
15
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
- ## v0.0.1-next.22
3
+ ## v0.0.1-next.23
4
4
 
5
5
  - Initial Release
@@ -6,7 +6,7 @@ Interface describing a set of updates to the vertex.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
9
+ > **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
10
10
 
11
11
  JSON-LD Context.
12
12
 
@@ -46,7 +46,7 @@ The date/time of when the element was deleted, as we never actually remove items
46
46
 
47
47
  ### @context
48
48
 
49
- > **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
49
+ > **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
50
50
 
51
51
  JSON-LD Context.
52
52
 
@@ -12,6 +12,12 @@ The types of auditable item graph data.
12
12
 
13
13
  The context root for the auditable item graph 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
  ### Vertex
16
22
 
17
23
  > `readonly` **Vertex**: `"AuditableItemGraphVertex"` = `"AuditableItemGraphVertex"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/auditable-item-graph-models",
3
- "version": "0.0.1-next.22",
3
+ "version": "0.0.1-next.23",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",