@stack-spot/portal-network 0.157.1-beta.2 → 0.157.2-beta.2
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/CHANGELOG.md +7 -0
- package/dist/api/discovery.d.ts +222 -33
- package/dist/api/discovery.d.ts.map +1 -1
- package/dist/api/discovery.js +78 -27
- package/dist/api/discovery.js.map +1 -1
- package/dist/client/discovery.d.ts +6 -12
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +5 -14
- package/dist/client/discovery.js.map +1 -1
- package/package.json +1 -1
- package/src/api/discovery.ts +309 -49
- package/src/client/discovery.ts +5 -9
package/src/client/discovery.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
-
import { attach, createHypothesis, defaults,
|
|
2
|
+
import { attach, createHypothesis, defaults, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber, download, findHypothesisByNumber, getAll, getById, list1, list2, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery'
|
|
3
3
|
import apis from '../apis.json'
|
|
4
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
5
|
import { baseDictionary } from '../error/dictionary/base'
|
|
@@ -23,11 +23,11 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
23
23
|
/**
|
|
24
24
|
* Get details of an hypothesis by id
|
|
25
25
|
*/
|
|
26
|
-
getHypothesisById = this.query(
|
|
26
|
+
getHypothesisById = this.query(findHypothesisByNumber)
|
|
27
27
|
/**
|
|
28
28
|
* Get list of hypothesis documents
|
|
29
29
|
*/
|
|
30
|
-
listDocumentsByHypothesis = this.query(
|
|
30
|
+
listDocumentsByHypothesis = this.query(list2)
|
|
31
31
|
/**
|
|
32
32
|
* Get list of all documents
|
|
33
33
|
*/
|
|
@@ -39,7 +39,7 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
39
39
|
/**
|
|
40
40
|
* Get list of opportunities
|
|
41
41
|
*/
|
|
42
|
-
listOpportunities = this.query(
|
|
42
|
+
listOpportunities = this.query(list1)
|
|
43
43
|
/**
|
|
44
44
|
* Get list of document types
|
|
45
45
|
*/
|
|
@@ -56,14 +56,10 @@ class DiscoveryClient extends ReactQueryNetworkClient {
|
|
|
56
56
|
* Attach a existing document in an hypothesis
|
|
57
57
|
*/
|
|
58
58
|
attachExistingDocument = this.mutation(removeAuthorizationParam(attach))
|
|
59
|
-
/**
|
|
60
|
-
* Delete an hypothesis
|
|
61
|
-
*/
|
|
62
|
-
deleteHypothesis = this.mutation(removeAuthorizationParam(deleteHypothesisById))
|
|
63
59
|
/**
|
|
64
60
|
* Delete an document
|
|
65
61
|
*/
|
|
66
|
-
deleteDocument = this.mutation(removeAuthorizationParam(
|
|
62
|
+
deleteDocument = this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber))
|
|
67
63
|
/**
|
|
68
64
|
* Download an document
|
|
69
65
|
*/
|