@3sixty/auditable-item-graph-service 0.0.0-stage → 0.20.0-next.0
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/LICENSE +201 -0
- package/README.md +26 -2
- package/dist/es/auditableItemGraphRoutes.js +1136 -0
- package/dist/es/auditableItemGraphRoutes.js.map +1 -0
- package/dist/es/auditableItemGraphService.js +1913 -0
- package/dist/es/auditableItemGraphService.js.map +1 -0
- package/dist/es/entities/auditableItemGraphAlias.js +70 -0
- package/dist/es/entities/auditableItemGraphAlias.js.map +1 -0
- package/dist/es/entities/auditableItemGraphChangeset.js +79 -0
- package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -0
- package/dist/es/entities/auditableItemGraphEdge.js +70 -0
- package/dist/es/entities/auditableItemGraphEdge.js.map +1 -0
- package/dist/es/entities/auditableItemGraphPatch.js +45 -0
- package/dist/es/entities/auditableItemGraphPatch.js.map +1 -0
- package/dist/es/entities/auditableItemGraphResource.js +54 -0
- package/dist/es/entities/auditableItemGraphResource.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertex.js +97 -0
- package/dist/es/entities/auditableItemGraphVertex.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexIndex.js +95 -0
- package/dist/es/entities/auditableItemGraphVertexIndex.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexV0.js +107 -0
- package/dist/es/entities/auditableItemGraphVertexV0.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexV1.js +113 -0
- package/dist/es/entities/auditableItemGraphVertexV1.js.map +1 -0
- package/dist/es/index.js +19 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceConfig.js +4 -0
- package/dist/es/models/IAuditableItemGraphServiceConfig.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js +2 -0
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js +4 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js.map +1 -0
- package/dist/es/restEntryPoints.js +13 -0
- package/dist/es/restEntryPoints.js.map +1 -0
- package/dist/es/schema.js +27 -0
- package/dist/es/schema.js.map +1 -0
- package/dist/es/utils/auditableItemGraphVertexIndexHelper.js +57 -0
- package/dist/es/utils/auditableItemGraphVertexIndexHelper.js.map +1 -0
- package/dist/types/auditableItemGraphRoutes.d.ts +94 -0
- package/dist/types/auditableItemGraphService.d.ts +164 -0
- package/dist/types/entities/auditableItemGraphAlias.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphChangeset.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphEdge.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphPatch.d.ts +21 -0
- package/dist/types/entities/auditableItemGraphResource.d.ts +26 -0
- package/dist/types/entities/auditableItemGraphVertex.d.ts +50 -0
- package/dist/types/entities/auditableItemGraphVertexIndex.d.ts +39 -0
- package/dist/types/entities/auditableItemGraphVertexV0.d.ts +53 -0
- package/dist/types/entities/auditableItemGraphVertexV1.d.ts +58 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/models/IAuditableItemGraphServiceConfig.d.ts +9 -0
- package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +38 -0
- package/dist/types/models/IAuditableItemGraphServiceContext.d.ts +17 -0
- package/dist/types/restEntryPoints.d.ts +5 -0
- package/dist/types/schema.d.ts +4 -0
- package/dist/types/utils/auditableItemGraphVertexIndexHelper.d.ts +25 -0
- package/docs/changelog.md +0 -0
- package/docs/examples.md +273 -0
- package/docs/open-api/spec.json +2190 -0
- package/docs/reference/classes/AuditableItemGraphAlias.md +69 -0
- package/docs/reference/classes/AuditableItemGraphChangeset.md +69 -0
- package/docs/reference/classes/AuditableItemGraphEdge.md +69 -0
- package/docs/reference/classes/AuditableItemGraphPatch.md +45 -0
- package/docs/reference/classes/AuditableItemGraphResource.md +53 -0
- package/docs/reference/classes/AuditableItemGraphService.md +539 -0
- package/docs/reference/classes/AuditableItemGraphVertex.md +93 -0
- package/docs/reference/classes/AuditableItemGraphVertexIndex.md +75 -0
- package/docs/reference/classes/AuditableItemGraphVertexIndexHelper.md +84 -0
- package/docs/reference/classes/AuditableItemGraphVertexV0.md +101 -0
- package/docs/reference/classes/AuditableItemGraphVertexV1.md +109 -0
- package/docs/reference/functions/auditableItemGraphChangesetGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphChangesetList.md +31 -0
- package/docs/reference/functions/auditableItemGraphCreate.md +37 -0
- package/docs/reference/functions/auditableItemGraphGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphList.md +31 -0
- package/docs/reference/functions/auditableItemGraphRemoveProof.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdate.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdatePartial.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionList.md +31 -0
- package/docs/reference/functions/generateRestRoutesAuditableItemGraph.md +25 -0
- package/docs/reference/functions/initSchema.md +9 -0
- package/docs/reference/index.md +40 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConfig.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +83 -0
- package/docs/reference/variables/restEntryPoints.md +5 -0
- package/docs/reference/variables/tagsAuditableItemGraph.md +5 -0
- package/locales/en.json +34 -0
- package/package.json +64 -5
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Class: AuditableItemGraphVertexIndexHelper
|
|
2
|
+
|
|
3
|
+
Helper methods for building auditable item graph vertex index entries.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new AuditableItemGraphVertexIndexHelper**(): `AuditableItemGraphVertexIndexHelper`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`AuditableItemGraphVertexIndexHelper`
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### createIndexEntry() {#createindexentry}
|
|
18
|
+
|
|
19
|
+
> `static` **createIndexEntry**(`vertexId`, `type`, `value`, `dateCreated`, `dateModified?`): [`AuditableItemGraphVertexIndex`](AuditableItemGraphVertexIndex.md)
|
|
20
|
+
|
|
21
|
+
Create the index entry for one type and value of a vertex. The value is case folded and
|
|
22
|
+
hashed, and the id is derived from the content so the same entry always produces the same id.
|
|
23
|
+
The modification date is excluded from the id as it is optional and changes over time.
|
|
24
|
+
|
|
25
|
+
#### Parameters
|
|
26
|
+
|
|
27
|
+
##### vertexId
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The id of the vertex the entry refers to.
|
|
32
|
+
|
|
33
|
+
##### type
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
The index type.
|
|
38
|
+
|
|
39
|
+
##### value
|
|
40
|
+
|
|
41
|
+
`string`
|
|
42
|
+
|
|
43
|
+
The index value.
|
|
44
|
+
|
|
45
|
+
##### dateCreated
|
|
46
|
+
|
|
47
|
+
`string`
|
|
48
|
+
|
|
49
|
+
The creation date of the vertex.
|
|
50
|
+
|
|
51
|
+
##### dateModified?
|
|
52
|
+
|
|
53
|
+
`string`
|
|
54
|
+
|
|
55
|
+
The modification date of the vertex.
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
[`AuditableItemGraphVertexIndex`](AuditableItemGraphVertexIndex.md)
|
|
60
|
+
|
|
61
|
+
The index entry.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### hashValue() {#hashvalue}
|
|
66
|
+
|
|
67
|
+
> `static` **hashValue**(`value?`): `string` \| `undefined`
|
|
68
|
+
|
|
69
|
+
Hash an index value so the composite index key has a fixed size whatever the value length.
|
|
70
|
+
The value is case folded first so lookups are case insensitive.
|
|
71
|
+
|
|
72
|
+
#### Parameters
|
|
73
|
+
|
|
74
|
+
##### value?
|
|
75
|
+
|
|
76
|
+
`string`
|
|
77
|
+
|
|
78
|
+
The value to hash.
|
|
79
|
+
|
|
80
|
+
#### Returns
|
|
81
|
+
|
|
82
|
+
`string` \| `undefined`
|
|
83
|
+
|
|
84
|
+
The base64 url encoded Blake2b-160 hash, or undefined when there is no value.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Class: AuditableItemGraphVertexV0
|
|
2
|
+
|
|
3
|
+
Class describing the auditable item graph vertex, version 0.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new AuditableItemGraphVertexV0**(): `AuditableItemGraphVertexV0`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`AuditableItemGraphVertexV0`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### id {#id}
|
|
18
|
+
|
|
19
|
+
> **id**: `string`
|
|
20
|
+
|
|
21
|
+
The id of the vertex.
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### organizationIdentity {#organizationidentity}
|
|
26
|
+
|
|
27
|
+
> **organizationIdentity**: `string`
|
|
28
|
+
|
|
29
|
+
The identity of the organization which controls the vertex.
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### dateCreated {#datecreated}
|
|
34
|
+
|
|
35
|
+
> **dateCreated**: `string`
|
|
36
|
+
|
|
37
|
+
The date/time of when the vertex was created.
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### dateModified? {#datemodified}
|
|
42
|
+
|
|
43
|
+
> `optional` **dateModified?**: `string`
|
|
44
|
+
|
|
45
|
+
The date/time of when the vertex was last modified.
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### aliasIndex? {#aliasindex}
|
|
50
|
+
|
|
51
|
+
> `optional` **aliasIndex?**: `string`
|
|
52
|
+
|
|
53
|
+
Combined alias index for the vertex used for querying.
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### resourceTypeIndex? {#resourcetypeindex}
|
|
58
|
+
|
|
59
|
+
> `optional` **resourceTypeIndex?**: `string`
|
|
60
|
+
|
|
61
|
+
Combined resource type index for the vertex used for querying.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### annotationObject? {#annotationobject}
|
|
66
|
+
|
|
67
|
+
> `optional` **annotationObject?**: `IJsonLdNodeObject`
|
|
68
|
+
|
|
69
|
+
Object to associate with the vertex as JSON-LD.
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### aliases? {#aliases}
|
|
74
|
+
|
|
75
|
+
> `optional` **aliases?**: [`AuditableItemGraphAlias`](AuditableItemGraphAlias.md)[]
|
|
76
|
+
|
|
77
|
+
Alternative aliases that can be used to identify the vertex.
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### resources? {#resources}
|
|
82
|
+
|
|
83
|
+
> `optional` **resources?**: [`AuditableItemGraphResource`](AuditableItemGraphResource.md)[]
|
|
84
|
+
|
|
85
|
+
The resources attached to the vertex.
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
### edges? {#edges}
|
|
90
|
+
|
|
91
|
+
> `optional` **edges?**: [`AuditableItemGraphEdge`](AuditableItemGraphEdge.md)[]
|
|
92
|
+
|
|
93
|
+
Edges connected to the vertex.
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
### version? {#version}
|
|
98
|
+
|
|
99
|
+
> `optional` **version?**: `number`
|
|
100
|
+
|
|
101
|
+
The current version of the vertex, incremented on each changeset.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Class: AuditableItemGraphVertexV1
|
|
2
|
+
|
|
3
|
+
Class describing the auditable item graph vertex.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new AuditableItemGraphVertexV1**(): `AuditableItemGraphVertexV1`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`AuditableItemGraphVertexV1`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### id {#id}
|
|
18
|
+
|
|
19
|
+
> **id**: `string`
|
|
20
|
+
|
|
21
|
+
The id of the vertex.
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### organizationIdentity {#organizationidentity}
|
|
26
|
+
|
|
27
|
+
> **organizationIdentity**: `string`
|
|
28
|
+
|
|
29
|
+
The identity of the organization which controls the vertex.
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### dateCreated {#datecreated}
|
|
34
|
+
|
|
35
|
+
> **dateCreated**: `string`
|
|
36
|
+
|
|
37
|
+
The date/time of when the vertex was created.
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### dateModified? {#datemodified}
|
|
42
|
+
|
|
43
|
+
> `optional` **dateModified?**: `string`
|
|
44
|
+
|
|
45
|
+
The date/time of when the vertex was last modified.
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### auditMode? {#auditmode}
|
|
50
|
+
|
|
51
|
+
> `optional` **auditMode?**: `AuditableItemGraphAuditMode`
|
|
52
|
+
|
|
53
|
+
How the mutations of the vertex are recorded, when absent the vertex behaves as audited.
|
|
54
|
+
|
|
55
|
+
***
|
|
56
|
+
|
|
57
|
+
### aliasIndex? {#aliasindex}
|
|
58
|
+
|
|
59
|
+
> `optional` **aliasIndex?**: `string`
|
|
60
|
+
|
|
61
|
+
Combined alias index for the vertex used for querying.
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### resourceTypeIndex? {#resourcetypeindex}
|
|
66
|
+
|
|
67
|
+
> `optional` **resourceTypeIndex?**: `string`
|
|
68
|
+
|
|
69
|
+
Combined resource type index for the vertex used for querying.
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### annotationObject? {#annotationobject}
|
|
74
|
+
|
|
75
|
+
> `optional` **annotationObject?**: `IJsonLdNodeObject`
|
|
76
|
+
|
|
77
|
+
Object to associate with the vertex as JSON-LD.
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### aliases? {#aliases}
|
|
82
|
+
|
|
83
|
+
> `optional` **aliases?**: [`AuditableItemGraphAlias`](AuditableItemGraphAlias.md)[]
|
|
84
|
+
|
|
85
|
+
Alternative aliases that can be used to identify the vertex.
|
|
86
|
+
|
|
87
|
+
***
|
|
88
|
+
|
|
89
|
+
### resources? {#resources}
|
|
90
|
+
|
|
91
|
+
> `optional` **resources?**: [`AuditableItemGraphResource`](AuditableItemGraphResource.md)[]
|
|
92
|
+
|
|
93
|
+
The resources attached to the vertex.
|
|
94
|
+
|
|
95
|
+
***
|
|
96
|
+
|
|
97
|
+
### edges? {#edges}
|
|
98
|
+
|
|
99
|
+
> `optional` **edges?**: [`AuditableItemGraphEdge`](AuditableItemGraphEdge.md)[]
|
|
100
|
+
|
|
101
|
+
Edges connected to the vertex.
|
|
102
|
+
|
|
103
|
+
***
|
|
104
|
+
|
|
105
|
+
### version? {#version}
|
|
106
|
+
|
|
107
|
+
> `optional` **version?**: `number`
|
|
108
|
+
|
|
109
|
+
The current version of the vertex, incremented on each changeset.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphChangesetGet()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphChangesetGet**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphChangesetGetResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the graph vertex changeset.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphChangesetGetRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphChangesetGetResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphChangesetList()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphChangesetList**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphChangesetListResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the graph vertex changeset list.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphChangesetListRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphChangesetListResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Function: auditableItemGraphCreate()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphCreate**(`httpRequestContext`, `componentName`, `request`, `baseRouteName`): `Promise`\<`ICreatedResponse`\>
|
|
4
|
+
|
|
5
|
+
Create the graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphCreateRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
### baseRouteName
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The base route name for the API.
|
|
32
|
+
|
|
33
|
+
## Returns
|
|
34
|
+
|
|
35
|
+
`Promise`\<`ICreatedResponse`\>
|
|
36
|
+
|
|
37
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphGet()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphGet**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphGetResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphGetRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphGetResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphList()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphList**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphListResponse`\>
|
|
4
|
+
|
|
5
|
+
Query the graph vertices.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphListRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphListResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphRemoveProof()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphRemoveProof**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Remove the notarization proof from all changesets of a graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphRemoveProofRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphUpdate()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphUpdate**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Update the graph vertex (PUT - full replacement of vertex state).
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphUpdateRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphUpdatePartial()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphUpdatePartial**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`INoContentResponse`\>
|
|
4
|
+
|
|
5
|
+
Partially update the graph vertex (PATCH - optional scalars; list fields use `{ add, remove }`).
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphUpdatePartialRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`INoContentResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphVersionGet()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphVersionGet**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphVersionGetResponse`\>
|
|
4
|
+
|
|
5
|
+
Get the graph vertex at a specific version.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphVersionGetRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphVersionGetResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: auditableItemGraphVersionList()
|
|
2
|
+
|
|
3
|
+
> **auditableItemGraphVersionList**(`httpRequestContext`, `componentName`, `request`): `Promise`\<`IAuditableItemGraphVersionListResponse`\>
|
|
4
|
+
|
|
5
|
+
Get all versions of a graph vertex.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### httpRequestContext
|
|
10
|
+
|
|
11
|
+
`IHttpRequestContext`
|
|
12
|
+
|
|
13
|
+
The request context for the API.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes.
|
|
20
|
+
|
|
21
|
+
### request
|
|
22
|
+
|
|
23
|
+
`IAuditableItemGraphVersionListRequest`
|
|
24
|
+
|
|
25
|
+
The request.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`Promise`\<`IAuditableItemGraphVersionListResponse`\>
|
|
30
|
+
|
|
31
|
+
The response object with additional http response properties.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Function: generateRestRoutesAuditableItemGraph()
|
|
2
|
+
|
|
3
|
+
> **generateRestRoutesAuditableItemGraph**(`baseRouteName`, `componentName`): `IRestRoute`\<`any`, `any`\>[]
|
|
4
|
+
|
|
5
|
+
The REST routes for auditable item graph.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### baseRouteName
|
|
10
|
+
|
|
11
|
+
`string`
|
|
12
|
+
|
|
13
|
+
Prefix to prepend to the paths.
|
|
14
|
+
|
|
15
|
+
### componentName
|
|
16
|
+
|
|
17
|
+
`string`
|
|
18
|
+
|
|
19
|
+
The name of the component to use in the routes stored in the ComponentFactory.
|
|
20
|
+
|
|
21
|
+
## Returns
|
|
22
|
+
|
|
23
|
+
`IRestRoute`\<`any`, `any`\>[]
|
|
24
|
+
|
|
25
|
+
The generated routes.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @3sixty/auditable-item-graph-service
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
- [AuditableItemGraphService](classes/AuditableItemGraphService.md)
|
|
6
|
+
- [AuditableItemGraphAlias](classes/AuditableItemGraphAlias.md)
|
|
7
|
+
- [AuditableItemGraphChangeset](classes/AuditableItemGraphChangeset.md)
|
|
8
|
+
- [AuditableItemGraphEdge](classes/AuditableItemGraphEdge.md)
|
|
9
|
+
- [AuditableItemGraphPatch](classes/AuditableItemGraphPatch.md)
|
|
10
|
+
- [AuditableItemGraphResource](classes/AuditableItemGraphResource.md)
|
|
11
|
+
- [AuditableItemGraphVertex](classes/AuditableItemGraphVertex.md)
|
|
12
|
+
- [AuditableItemGraphVertexIndex](classes/AuditableItemGraphVertexIndex.md)
|
|
13
|
+
- [AuditableItemGraphVertexV0](classes/AuditableItemGraphVertexV0.md)
|
|
14
|
+
- [AuditableItemGraphVertexV1](classes/AuditableItemGraphVertexV1.md)
|
|
15
|
+
- [AuditableItemGraphVertexIndexHelper](classes/AuditableItemGraphVertexIndexHelper.md)
|
|
16
|
+
|
|
17
|
+
## Interfaces
|
|
18
|
+
|
|
19
|
+
- [IAuditableItemGraphServiceConfig](interfaces/IAuditableItemGraphServiceConfig.md)
|
|
20
|
+
- [IAuditableItemGraphServiceConstructorOptions](interfaces/IAuditableItemGraphServiceConstructorOptions.md)
|
|
21
|
+
|
|
22
|
+
## Variables
|
|
23
|
+
|
|
24
|
+
- [tagsAuditableItemGraph](variables/tagsAuditableItemGraph.md)
|
|
25
|
+
- [restEntryPoints](variables/restEntryPoints.md)
|
|
26
|
+
|
|
27
|
+
## Functions
|
|
28
|
+
|
|
29
|
+
- [generateRestRoutesAuditableItemGraph](functions/generateRestRoutesAuditableItemGraph.md)
|
|
30
|
+
- [auditableItemGraphCreate](functions/auditableItemGraphCreate.md)
|
|
31
|
+
- [auditableItemGraphGet](functions/auditableItemGraphGet.md)
|
|
32
|
+
- [auditableItemGraphChangesetList](functions/auditableItemGraphChangesetList.md)
|
|
33
|
+
- [auditableItemGraphChangesetGet](functions/auditableItemGraphChangesetGet.md)
|
|
34
|
+
- [auditableItemGraphUpdate](functions/auditableItemGraphUpdate.md)
|
|
35
|
+
- [auditableItemGraphUpdatePartial](functions/auditableItemGraphUpdatePartial.md)
|
|
36
|
+
- [auditableItemGraphList](functions/auditableItemGraphList.md)
|
|
37
|
+
- [auditableItemGraphVersionGet](functions/auditableItemGraphVersionGet.md)
|
|
38
|
+
- [auditableItemGraphRemoveProof](functions/auditableItemGraphRemoveProof.md)
|
|
39
|
+
- [auditableItemGraphVersionList](functions/auditableItemGraphVersionList.md)
|
|
40
|
+
- [initSchema](functions/initSchema.md)
|