@stack-spot/portal-network 0.173.1 → 0.174.0-beta.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/dist/api/ai.d.ts +2 -0
  3. package/dist/api/ai.d.ts.map +1 -1
  4. package/dist/api/ai.js.map +1 -1
  5. package/dist/api/codeShift.d.ts +504 -23
  6. package/dist/api/codeShift.d.ts.map +1 -1
  7. package/dist/api/codeShift.js +217 -0
  8. package/dist/api/codeShift.js.map +1 -1
  9. package/dist/api/discover.d.ts +294 -0
  10. package/dist/api/discover.d.ts.map +1 -0
  11. package/dist/api/discover.js +180 -0
  12. package/dist/api/discover.js.map +1 -0
  13. package/dist/api-addresses.d.ts +11 -3
  14. package/dist/api-addresses.d.ts.map +1 -1
  15. package/dist/api-addresses.js +22 -2
  16. package/dist/api-addresses.js.map +1 -1
  17. package/dist/apis-itau.json +225 -0
  18. package/dist/apis.json +2 -2
  19. package/dist/client/code-shift.d.ts +183 -28
  20. package/dist/client/code-shift.d.ts.map +1 -1
  21. package/dist/client/code-shift.js +106 -7
  22. package/dist/client/code-shift.js.map +1 -1
  23. package/dist/client/data-integration.d.ts +9 -0
  24. package/dist/client/data-integration.d.ts.map +1 -1
  25. package/dist/client/data-integration.js +10 -1
  26. package/dist/client/data-integration.js.map +1 -1
  27. package/dist/client/discover.d.ts +64 -0
  28. package/dist/client/discover.d.ts.map +1 -0
  29. package/dist/client/discover.js +124 -0
  30. package/dist/client/discover.js.map +1 -0
  31. package/dist/client/workspace-manager.d.ts +9 -0
  32. package/dist/client/workspace-manager.d.ts.map +1 -1
  33. package/dist/client/workspace-manager.js +11 -2
  34. package/dist/client/workspace-manager.js.map +1 -1
  35. package/dist/error/dictionary/cloud-platform.d.ts +70 -8
  36. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  37. package/dist/error/dictionary/cloud-platform.js +74 -12
  38. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  39. package/dist/index.d.ts +4 -3
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +3 -2
  42. package/dist/index.js.map +1 -1
  43. package/dist/network/NetworkClient.d.ts +4 -2
  44. package/dist/network/NetworkClient.d.ts.map +1 -1
  45. package/dist/network/NetworkClient.js +5 -3
  46. package/dist/network/NetworkClient.js.map +1 -1
  47. package/dist/network/types.d.ts +1 -0
  48. package/dist/network/types.d.ts.map +1 -1
  49. package/package.json +2 -2
  50. package/readme.md +1 -1
  51. package/src/api/account.ts +1 -0
  52. package/src/api/agent-tools.ts +3 -0
  53. package/src/api/agent.ts +2 -0
  54. package/src/api/ai.ts +2 -0
  55. package/src/api/codeShift.ts +898 -33
  56. package/src/api/discover.ts +435 -0
  57. package/src/api/notification.ts +2 -0
  58. package/src/api-addresses.ts +26 -3
  59. package/src/apis-itau.json +225 -0
  60. package/src/apis.json +2 -2
  61. package/src/client/ai.ts +1 -0
  62. package/src/client/code-shift.ts +73 -7
  63. package/src/client/data-integration.ts +6 -0
  64. package/src/client/discover.ts +89 -0
  65. package/src/client/workspace-manager.ts +8 -1
  66. package/src/error/dictionary/cloud-platform.ts +74 -12
  67. package/src/index.ts +5 -3
  68. package/src/network/NetworkClient.ts +7 -4
  69. package/src/network/types.ts +2 -0
  70. package/dist/api/discovery.d.ts +0 -494
  71. package/dist/api/discovery.d.ts.map +0 -1
  72. package/dist/api/discovery.js +0 -205
  73. package/dist/api/discovery.js.map +0 -1
  74. package/dist/client/discovery.d.ts +0 -110
  75. package/dist/client/discovery.d.ts.map +0 -1
  76. package/dist/client/discovery.js +0 -133
  77. package/dist/client/discovery.js.map +0 -1
  78. package/src/api/discovery.ts +0 -729
  79. package/src/client/discovery.ts +0 -73
@@ -1,73 +0,0 @@
1
- import { HttpError } from '@oazapfts/runtime'
2
- import { attach, createHypothesis, defaults, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber, download, findHypothesisByNumber, getAll, getById, list1, list2, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery'
3
- import { DefaultAPIError } from '../error/DefaultAPIError'
4
- import { baseDictionary } from '../error/dictionary/base'
5
- import { StackspotAPIError } from '../error/StackspotAPIError'
6
- import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
7
- import { removeAuthorizationParam } from '../utils/remove-authorization-param'
8
- import { getApiAddresses } from '../api-addresses'
9
-
10
- class DiscoveryClient extends ReactQueryNetworkClient {
11
-
12
- constructor() {
13
- super(getApiAddresses().discovery.url, defaults)
14
- }
15
-
16
- protected buildStackSpotError(error: HttpError): StackspotAPIError {
17
- return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers)
18
- }
19
- /**
20
- * Get list of hypotheses
21
- */
22
- listHypotheses = this.query(listHypothesis)
23
- /**
24
- * Get details of an hypothesis by id
25
- */
26
- getHypothesisById = this.query(findHypothesisByNumber)
27
- /**
28
- * Get list of hypothesis documents
29
- */
30
- listDocumentsByHypothesis = this.query(list2)
31
- /**
32
- * Get list of all documents
33
- */
34
- listAllDocuments = this.query(listAllDocumentsWithHypotheses)
35
- /**
36
- * Get document details by id
37
- */
38
- getDocumentById = this.query(getById)
39
- /**
40
- * Get list of opportunities
41
- */
42
- listOpportunities = this.query(list1)
43
- /**
44
- * Get list of document types
45
- */
46
- listDocumentTypes = this.query(getAll)
47
- /**
48
- * Create an hypothesis
49
- */
50
- createHypothesis = this.mutation(removeAuthorizationParam(createHypothesis))
51
- /**
52
- * Create an document
53
- */
54
- createDocument = this.mutation(removeAuthorizationParam(upload))
55
- /**
56
- * Attach a existing document in an hypothesis
57
- */
58
- attachExistingDocument = this.mutation(removeAuthorizationParam(attach))
59
- /**
60
- * Delete an document
61
- */
62
- deleteDocument = this.mutation(removeAuthorizationParam(deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber))
63
- /**
64
- * Download an document
65
- */
66
- downloadDocument = this.query(removeAuthorizationParam(download))
67
- /**
68
- * List versions of a document
69
- */
70
- listDocumentVersions = this.query(removeAuthorizationParam(listVersions))
71
- }
72
-
73
- export const discoveryClient = new DiscoveryClient()