@twin.org/document-management-models 0.0.1-next.16 → 0.0.1-next.17

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.
@@ -36,12 +36,19 @@ const DocumentTypes = {
36
36
  DocumentAttestation: "DocumentAttestation"
37
37
  };
38
38
 
39
+ var $schema = "https://json-schema.org/draft/2020-12/schema";
40
+ var $id = "https://schema.twindev.org/documents/Document";
41
+ var description = "Interface describing a document.";
39
42
  var type = "object";
40
43
  var properties = {
41
44
  "@context": {
42
45
  type: "array",
43
46
  minItems: 3,
44
- items: [
47
+ items: {
48
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
49
+ },
50
+ description: "JSON-LD Context.",
51
+ prefixItems: [
45
52
  {
46
53
  type: "string",
47
54
  "const": "https://schema.twindev.org/documents/"
@@ -54,11 +61,7 @@ var properties = {
54
61
  type: "string",
55
62
  "const": "https://schema.org"
56
63
  }
57
- ],
58
- additionalItems: {
59
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
60
- },
61
- description: "JSON-LD Context."
64
+ ]
62
65
  },
63
66
  type: {
64
67
  type: "string",
@@ -147,13 +150,14 @@ var required = [
147
150
  "userIdentity"
148
151
  ];
149
152
  var additionalProperties = false;
150
- var description = "Interface describing a document.";
151
153
  var DocumentSchema = {
154
+ $schema: $schema,
155
+ $id: $id,
156
+ description: description,
152
157
  type: type,
153
158
  properties: properties,
154
159
  required: required,
155
- additionalProperties: additionalProperties,
156
- description: description
160
+ additionalProperties: additionalProperties
157
161
  };
158
162
 
159
163
  // Copyright 2024 IOTA Stiftung.
@@ -34,12 +34,19 @@ const DocumentTypes = {
34
34
  DocumentAttestation: "DocumentAttestation"
35
35
  };
36
36
 
37
+ var $schema = "https://json-schema.org/draft/2020-12/schema";
38
+ var $id = "https://schema.twindev.org/documents/Document";
39
+ var description = "Interface describing a document.";
37
40
  var type = "object";
38
41
  var properties = {
39
42
  "@context": {
40
43
  type: "array",
41
44
  minItems: 3,
42
- items: [
45
+ items: {
46
+ $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
47
+ },
48
+ description: "JSON-LD Context.",
49
+ prefixItems: [
43
50
  {
44
51
  type: "string",
45
52
  "const": "https://schema.twindev.org/documents/"
@@ -52,11 +59,7 @@ var properties = {
52
59
  type: "string",
53
60
  "const": "https://schema.org"
54
61
  }
55
- ],
56
- additionalItems: {
57
- $ref: "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
58
- },
59
- description: "JSON-LD Context."
62
+ ]
60
63
  },
61
64
  type: {
62
65
  type: "string",
@@ -145,13 +148,14 @@ var required = [
145
148
  "userIdentity"
146
149
  ];
147
150
  var additionalProperties = false;
148
- var description = "Interface describing a document.";
149
151
  var DocumentSchema = {
152
+ $schema: $schema,
153
+ $id: $id,
154
+ description: description,
150
155
  type: type,
151
156
  properties: properties,
152
157
  required: required,
153
- additionalProperties: additionalProperties,
154
- description: description
158
+ additionalProperties: additionalProperties
155
159
  };
156
160
 
157
161
  // Copyright 2024 IOTA Stiftung.
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/document-management-models - Changelog
2
2
 
3
+ ## [0.0.1-next.17](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.1-next.16...document-management-models-v0.0.1-next.17) (2025-06-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * update dependencies ([f9d8641](https://github.com/twinfoundation/document-management/commit/f9d86417dba24027699225ec7473296e361dcb00))
9
+
3
10
  ## [0.0.1-next.16](https://github.com/twinfoundation/document-management/compare/document-management-models-v0.0.1-next.15...document-management-models-v0.0.1-next.16) (2025-06-03)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/document-management-models",
3
- "version": "0.0.1-next.16",
3
+ "version": "0.0.1-next.17",
4
4
  "description": "Models which define the structure of the document management connectors and services",
5
5
  "repository": {
6
6
  "type": "git",