@twin.org/document-management-models 0.0.1-next.8 → 0.0.1
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.
- package/dist/cjs/index.cjs +152 -4
- package/dist/esm/index.mjs +152 -5
- package/dist/types/dataTypes/documentManagementDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/models/IDocument.d.ts +4 -8
- package/dist/types/models/IDocumentList.d.ts +9 -4
- package/dist/types/models/IDocumentManagementComponent.d.ts +70 -35
- package/dist/types/models/api/{IDocumentManagementSetRequest.d.ts → IDocumentManagementCreateRequest.d.ts} +14 -15
- package/dist/types/models/api/IDocumentManagementGetRequest.d.ts +17 -13
- package/dist/types/models/api/IDocumentManagementGetResponse.d.ts +2 -2
- package/dist/types/models/api/IDocumentManagementGetRevisionRequest.d.ts +53 -0
- package/dist/types/models/api/IDocumentManagementGetRevisionResponse.d.ts +17 -0
- package/dist/types/models/api/IDocumentManagementQueryRequest.d.ts +7 -22
- package/dist/types/models/api/IDocumentManagementQueryResponse.d.ts +2 -2
- package/dist/types/models/api/IDocumentManagementRemoveRequest.d.ts +5 -15
- package/dist/types/models/api/IDocumentManagementUpdateRequest.d.ts +36 -0
- package/dist/types/models/documentTypes.d.ts +0 -4
- package/docs/changelog.md +103 -0
- package/docs/reference/classes/DocumentManagementDataTypes.md +25 -0
- package/docs/reference/index.md +8 -1
- package/docs/reference/interfaces/IDocument.md +8 -16
- package/docs/reference/interfaces/IDocumentList.md +14 -6
- package/docs/reference/interfaces/IDocumentManagementComponent.md +165 -57
- package/docs/reference/interfaces/{IDocumentManagementSetRequest.md → IDocumentManagementCreateRequest.md} +13 -21
- package/docs/reference/interfaces/IDocumentManagementGetRequest.md +24 -18
- package/docs/reference/interfaces/IDocumentManagementGetResponse.md +1 -1
- package/docs/reference/interfaces/IDocumentManagementGetRevisionRequest.md +91 -0
- package/docs/reference/interfaces/IDocumentManagementGetRevisionResponse.md +23 -0
- package/docs/reference/interfaces/IDocumentManagementQueryRequest.md +11 -43
- package/docs/reference/interfaces/IDocumentManagementQueryResponse.md +1 -1
- package/docs/reference/interfaces/IDocumentManagementRemoveRequest.md +7 -27
- package/docs/reference/interfaces/IDocumentManagementUpdateRequest.md +43 -0
- package/docs/reference/type-aliases/DocumentContexts.md +1 -1
- package/docs/reference/type-aliases/DocumentTypes.md +1 -1
- package/docs/reference/variables/DocumentTypes.md +0 -6
- package/package.json +10 -8
|
@@ -16,58 +16,26 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
###
|
|
19
|
+
### query
|
|
20
20
|
|
|
21
|
-
> **
|
|
22
|
-
|
|
23
|
-
The path parameters.
|
|
24
|
-
|
|
25
|
-
#### auditableItemGraphId
|
|
26
|
-
|
|
27
|
-
> **auditableItemGraphId**: `string`
|
|
28
|
-
|
|
29
|
-
The id of the auditable item graph vertex which contains the documents.
|
|
30
|
-
|
|
31
|
-
***
|
|
32
|
-
|
|
33
|
-
### query?
|
|
34
|
-
|
|
35
|
-
> `optional` **query**: `object`
|
|
21
|
+
> **query**: `object`
|
|
36
22
|
|
|
37
23
|
The query parameters.
|
|
38
24
|
|
|
39
|
-
####
|
|
40
|
-
|
|
41
|
-
> `optional` **documentCodes**: `string`
|
|
42
|
-
|
|
43
|
-
List of comma separated document codes to filter the query.
|
|
44
|
-
|
|
45
|
-
#### includeRemoved?
|
|
25
|
+
#### documentId
|
|
46
26
|
|
|
47
|
-
>
|
|
27
|
+
> **documentId**: `string`
|
|
48
28
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
##### Default
|
|
52
|
-
|
|
53
|
-
```ts
|
|
54
|
-
false
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
#### includeMostRecentRevisions?
|
|
58
|
-
|
|
59
|
-
> `optional` **includeMostRecentRevisions**: `boolean`
|
|
60
|
-
|
|
61
|
-
Include the most recent 5 revisions, use the individual get to retrieve more.
|
|
62
|
-
|
|
63
|
-
##### Default
|
|
64
|
-
|
|
65
|
-
```ts
|
|
66
|
-
false
|
|
67
|
-
```
|
|
29
|
+
The id of the document id we are trying to find.
|
|
68
30
|
|
|
69
31
|
#### cursor?
|
|
70
32
|
|
|
71
33
|
> `optional` **cursor**: `string`
|
|
72
34
|
|
|
73
35
|
The cursor to get the next chunk of documents.
|
|
36
|
+
|
|
37
|
+
#### pageSize?
|
|
38
|
+
|
|
39
|
+
> `optional` **pageSize**: `string` \| `number`
|
|
40
|
+
|
|
41
|
+
The number of documents to return.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Interface: IDocumentManagementRemoveRequest
|
|
2
2
|
|
|
3
|
-
Request to remove a document from an auditable item graph.
|
|
3
|
+
Request to remove a document revision from an auditable item graph.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -10,34 +10,14 @@ Request to remove a document from an auditable item graph.
|
|
|
10
10
|
|
|
11
11
|
The path parameters.
|
|
12
12
|
|
|
13
|
-
####
|
|
13
|
+
#### auditableItemGraphDocumentId
|
|
14
14
|
|
|
15
|
-
> **
|
|
15
|
+
> **auditableItemGraphDocumentId**: `string`
|
|
16
16
|
|
|
17
|
-
The id of the auditable item graph vertex to remove the
|
|
17
|
+
The id of the auditable item graph vertex to remove the revision from.
|
|
18
18
|
|
|
19
|
-
####
|
|
19
|
+
#### revision
|
|
20
20
|
|
|
21
|
-
> **
|
|
21
|
+
> **revision**: `string`
|
|
22
22
|
|
|
23
|
-
The
|
|
24
|
-
|
|
25
|
-
***
|
|
26
|
-
|
|
27
|
-
### query?
|
|
28
|
-
|
|
29
|
-
> `optional` **query**: `object`
|
|
30
|
-
|
|
31
|
-
The query parameters.
|
|
32
|
-
|
|
33
|
-
#### removeAllRevisions?
|
|
34
|
-
|
|
35
|
-
> `optional` **removeAllRevisions**: `boolean`
|
|
36
|
-
|
|
37
|
-
Flag to remove all revisions of the document.
|
|
38
|
-
|
|
39
|
-
##### Default
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
false
|
|
43
|
-
```
|
|
23
|
+
The revision of the document to remove.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Interface: IDocumentManagementUpdateRequest
|
|
2
|
+
|
|
3
|
+
Request to update a document as an auditable item graph vertex.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### pathParams
|
|
8
|
+
|
|
9
|
+
> **pathParams**: `object`
|
|
10
|
+
|
|
11
|
+
The path parameters.
|
|
12
|
+
|
|
13
|
+
#### auditableItemGraphDocumentId
|
|
14
|
+
|
|
15
|
+
> **auditableItemGraphDocumentId**: `string`
|
|
16
|
+
|
|
17
|
+
The full id of the document to get.
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### body
|
|
22
|
+
|
|
23
|
+
> **body**: `object`
|
|
24
|
+
|
|
25
|
+
The body parameters.
|
|
26
|
+
|
|
27
|
+
#### blob?
|
|
28
|
+
|
|
29
|
+
> `optional` **blob**: `string`
|
|
30
|
+
|
|
31
|
+
The data to create the document with, in base64.
|
|
32
|
+
|
|
33
|
+
#### annotationObject?
|
|
34
|
+
|
|
35
|
+
> `optional` **annotationObject**: `IJsonLdNodeObject`
|
|
36
|
+
|
|
37
|
+
Additional information to associate with the document.
|
|
38
|
+
|
|
39
|
+
#### auditableItemGraphEdges?
|
|
40
|
+
|
|
41
|
+
> `optional` **auditableItemGraphEdges**: `object`[]
|
|
42
|
+
|
|
43
|
+
The auditable item graph vertices to connect the document to.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: DocumentContexts
|
|
2
2
|
|
|
3
|
-
> **DocumentContexts
|
|
3
|
+
> **DocumentContexts** = *typeof* [`DocumentContexts`](../variables/DocumentContexts.md)\[keyof *typeof* [`DocumentContexts`](../variables/DocumentContexts.md)\]
|
|
4
4
|
|
|
5
5
|
The contexts of document management objects.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: DocumentTypes
|
|
2
2
|
|
|
3
|
-
> **DocumentTypes
|
|
3
|
+
> **DocumentTypes** = *typeof* [`DocumentTypes`](../variables/DocumentTypes.md)\[keyof *typeof* [`DocumentTypes`](../variables/DocumentTypes.md)\]
|
|
4
4
|
|
|
5
5
|
The types of document management objects.
|
|
@@ -17,9 +17,3 @@ Represents a document.
|
|
|
17
17
|
> `readonly` **DocumentAttestation**: `"DocumentAttestation"` = `"DocumentAttestation"`
|
|
18
18
|
|
|
19
19
|
Represents a document attestation.
|
|
20
|
-
|
|
21
|
-
### DocumentList
|
|
22
|
-
|
|
23
|
-
> `readonly` **DocumentList**: `"DocumentList"` = `"DocumentList"`
|
|
24
|
-
|
|
25
|
-
Represents a document list.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/document-management-models",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "Models which define the structure of the document management connectors and services",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,13 +14,15 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/attestation-models": "
|
|
18
|
-
"@twin.org/
|
|
19
|
-
"@twin.org/
|
|
20
|
-
"@twin.org/
|
|
21
|
-
"@twin.org/
|
|
22
|
-
"@twin.org/
|
|
23
|
-
"@twin.org/
|
|
17
|
+
"@twin.org/attestation-models": "^0.0.1",
|
|
18
|
+
"@twin.org/auditable-item-graph-models": "^0.0.1",
|
|
19
|
+
"@twin.org/blob-storage-models": "^0.0.1",
|
|
20
|
+
"@twin.org/core": "^0.0.1",
|
|
21
|
+
"@twin.org/data-core": "^0.0.1",
|
|
22
|
+
"@twin.org/data-json-ld": "^0.0.1",
|
|
23
|
+
"@twin.org/nameof": "^0.0.1",
|
|
24
|
+
"@twin.org/standards-schema-org": "^0.0.1",
|
|
25
|
+
"@twin.org/standards-unece": "^0.0.1"
|
|
24
26
|
},
|
|
25
27
|
"main": "./dist/cjs/index.cjs",
|
|
26
28
|
"module": "./dist/esm/index.mjs",
|