@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.
@@ -1,5 +1,5 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { attach, createHypothesis, defaults, deleteHypothesisById, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisId, download, findHypothesisById, getAll, getById, list, list1, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery'
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(findHypothesisById)
26
+ getHypothesisById = this.query(findHypothesisByNumber)
27
27
  /**
28
28
  * Get list of hypothesis documents
29
29
  */
30
- listDocumentsByHypothesis = this.query(list1)
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(list)
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(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisId))
62
+ deleteDocument = this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber))
67
63
  /**
68
64
  * Download an document
69
65
  */