@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.
- package/CHANGELOG.md +230 -0
- package/dist/api/ai.d.ts +2 -0
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +504 -23
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +217 -0
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/discover.d.ts +294 -0
- package/dist/api/discover.d.ts.map +1 -0
- package/dist/api/discover.js +180 -0
- package/dist/api/discover.js.map +1 -0
- package/dist/api-addresses.d.ts +11 -3
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +22 -2
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +225 -0
- package/dist/apis.json +2 -2
- package/dist/client/code-shift.d.ts +183 -28
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +106 -7
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/data-integration.d.ts +9 -0
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +10 -1
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +64 -0
- package/dist/client/discover.d.ts.map +1 -0
- package/dist/client/discover.js +124 -0
- package/dist/client/discover.js.map +1 -0
- package/dist/client/workspace-manager.d.ts +9 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +11 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/error/dictionary/cloud-platform.d.ts +70 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +74 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +5 -3
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +1 -0
- package/dist/network/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +3 -0
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +2 -0
- package/src/api/codeShift.ts +898 -33
- package/src/api/discover.ts +435 -0
- package/src/api/notification.ts +2 -0
- package/src/api-addresses.ts +26 -3
- package/src/apis-itau.json +225 -0
- package/src/apis.json +2 -2
- package/src/client/ai.ts +1 -0
- package/src/client/code-shift.ts +73 -7
- package/src/client/data-integration.ts +6 -0
- package/src/client/discover.ts +89 -0
- package/src/client/workspace-manager.ts +8 -1
- package/src/error/dictionary/cloud-platform.ts +74 -12
- package/src/index.ts +5 -3
- package/src/network/NetworkClient.ts +7 -4
- package/src/network/types.ts +2 -0
- package/dist/api/discovery.d.ts +0 -494
- package/dist/api/discovery.d.ts.map +0 -1
- package/dist/api/discovery.js +0 -205
- package/dist/api/discovery.js.map +0 -1
- package/dist/client/discovery.d.ts +0 -110
- package/dist/client/discovery.d.ts.map +0 -1
- package/dist/client/discovery.js +0 -133
- package/dist/client/discovery.js.map +0 -1
- package/src/api/discovery.ts +0 -729
- package/src/client/discovery.ts +0 -73
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ai": {
|
|
3
|
+
"url": {
|
|
4
|
+
"stg": "https://genai-code-buddy-api.stackspot.hom.aws.cloud.ihf",
|
|
5
|
+
"dev": "https://genai-code-buddy-api.stackspot.dev.aws.cloud.ihf",
|
|
6
|
+
"prd": "https://genai-code-buddy-api.stackspot.prod.aws.cloud.ihf"
|
|
7
|
+
},
|
|
8
|
+
"docs": "/openapi.json"
|
|
9
|
+
},
|
|
10
|
+
"workspace-ai": {
|
|
11
|
+
"url": {
|
|
12
|
+
"stg": "https://genai-workspace-ai-api.stackspot.hom.aws.cloud.ihf",
|
|
13
|
+
"dev": "https://genai-workspace-ai-api.stackspot.dev.aws.cloud.ihf",
|
|
14
|
+
"prd": "https://genai-workspace-ai-api.stackspot.prod.aws.cloud.ihf"
|
|
15
|
+
},
|
|
16
|
+
"docs": "/openapi.json"
|
|
17
|
+
},
|
|
18
|
+
"agent": {
|
|
19
|
+
"url": {
|
|
20
|
+
"stg": "",
|
|
21
|
+
"dev": "",
|
|
22
|
+
"prd": ""
|
|
23
|
+
},
|
|
24
|
+
"docs": "/q/openapi"
|
|
25
|
+
},
|
|
26
|
+
"agent-tools": {
|
|
27
|
+
"url": {
|
|
28
|
+
"stg": "https://genai-agent-tools-api.stackspot.hom.aws.cloud.ihf",
|
|
29
|
+
"dev": "https://genai-agent-tools-api.stackspot.dev.aws.cloud.ihf",
|
|
30
|
+
"prd": "https://genai-agent-tools-api.stackspot.prod.aws.cloud.ihf"
|
|
31
|
+
},
|
|
32
|
+
"docs": "/openapi.json"
|
|
33
|
+
},
|
|
34
|
+
"dataIntegration": {
|
|
35
|
+
"url": {
|
|
36
|
+
"stg": "https://genai-data-integration.stackspot.hom.aws.cloud.ihf",
|
|
37
|
+
"dev": "https://genai-data-integration.stackspot.dev.aws.cloud.ihf",
|
|
38
|
+
"prd": "https://genai-data-integration.stackspot.prod.aws.cloud.ihf"
|
|
39
|
+
},
|
|
40
|
+
"docs": "/openapi.json"
|
|
41
|
+
},
|
|
42
|
+
"workspace": {
|
|
43
|
+
"url": {
|
|
44
|
+
"stg": "",
|
|
45
|
+
"dev": "",
|
|
46
|
+
"prd": ""
|
|
47
|
+
},
|
|
48
|
+
"docs": "/v3/api-docs"
|
|
49
|
+
},
|
|
50
|
+
"account": {
|
|
51
|
+
"url": {
|
|
52
|
+
"stg": "https://account-account-api.stackspot.hom.aws.cloud.ihf",
|
|
53
|
+
"dev": "https://account-account-api.stackspot.dev.aws.cloud.ihf",
|
|
54
|
+
"prd": "https://account-account-api.stackspot.prod.aws.cloud.ihf"
|
|
55
|
+
},
|
|
56
|
+
"docs": "/v3/api-docs"
|
|
57
|
+
},
|
|
58
|
+
"content": {
|
|
59
|
+
"url": {
|
|
60
|
+
"stg": "",
|
|
61
|
+
"dev": "",
|
|
62
|
+
"prd": ""
|
|
63
|
+
},
|
|
64
|
+
"docs": "/v3/api-docs"
|
|
65
|
+
},
|
|
66
|
+
"eventBus": {
|
|
67
|
+
"url": {
|
|
68
|
+
"stg": "https://idp-event-bus-api.stackspot.hom.aws.cloud.ihf",
|
|
69
|
+
"dev": "https://idp-event-bus-api.stackspot.dev.aws.cloud.ihf",
|
|
70
|
+
"prd": "https://idp-event-bus-api.stackspot.prod.aws.cloud.ihf"
|
|
71
|
+
},
|
|
72
|
+
"docs": "/v3/api-docs"
|
|
73
|
+
},
|
|
74
|
+
"serviceCatalog": {
|
|
75
|
+
"url": {
|
|
76
|
+
"stg": "",
|
|
77
|
+
"dev": "",
|
|
78
|
+
"prd": ""
|
|
79
|
+
},
|
|
80
|
+
"docs": "/v3/api-docs"
|
|
81
|
+
},
|
|
82
|
+
"apiRuntime": {
|
|
83
|
+
"url": {
|
|
84
|
+
"stg": "",
|
|
85
|
+
"dev": "",
|
|
86
|
+
"prd": ""
|
|
87
|
+
},
|
|
88
|
+
"docs": "/v3/api-docs"
|
|
89
|
+
},
|
|
90
|
+
"cloudServices": {
|
|
91
|
+
"url": {
|
|
92
|
+
"stg": "",
|
|
93
|
+
"dev": "",
|
|
94
|
+
"prd": ""
|
|
95
|
+
},
|
|
96
|
+
"docs": "/v3/api-docs"
|
|
97
|
+
},
|
|
98
|
+
"cloudAccount": {
|
|
99
|
+
"url": {
|
|
100
|
+
"stg": "",
|
|
101
|
+
"dev": "",
|
|
102
|
+
"prd": ""
|
|
103
|
+
},
|
|
104
|
+
"docs": "/v3/api-docs"
|
|
105
|
+
},
|
|
106
|
+
"dataPlatform": {
|
|
107
|
+
"url": {
|
|
108
|
+
"stg": "",
|
|
109
|
+
"dev": "",
|
|
110
|
+
"prd": ""
|
|
111
|
+
},
|
|
112
|
+
"docs": "/v3/api-docs"
|
|
113
|
+
},
|
|
114
|
+
"insights": {
|
|
115
|
+
"url": {
|
|
116
|
+
"stg": "",
|
|
117
|
+
"dev": "",
|
|
118
|
+
"prd": ""
|
|
119
|
+
},
|
|
120
|
+
"docs": "/v3/api-docs"
|
|
121
|
+
},
|
|
122
|
+
"workflows": {
|
|
123
|
+
"url": {
|
|
124
|
+
"stg": "",
|
|
125
|
+
"dev": "",
|
|
126
|
+
"prd": ""
|
|
127
|
+
},
|
|
128
|
+
"docs": "/openapi.json"
|
|
129
|
+
},
|
|
130
|
+
"workspaceManager": {
|
|
131
|
+
"url": {
|
|
132
|
+
"stg": "",
|
|
133
|
+
"dev": "",
|
|
134
|
+
"prd": ""
|
|
135
|
+
},
|
|
136
|
+
"docs": "/v3/api-docs"
|
|
137
|
+
},
|
|
138
|
+
"workspaceSearchEngine": {
|
|
139
|
+
"url": {
|
|
140
|
+
"stg": "",
|
|
141
|
+
"dev": "",
|
|
142
|
+
"prd": ""
|
|
143
|
+
},
|
|
144
|
+
"docs": "/v3/api-docs"
|
|
145
|
+
},
|
|
146
|
+
"permissionValidation": {
|
|
147
|
+
"url": {
|
|
148
|
+
"stg": "https://portal-opa-server.stackspot.dev.aws.cloud.ihf/v1/validate",
|
|
149
|
+
"dev": "https://portal-opa-server.stackspot.hom.aws.cloud.ihf/v1/validate",
|
|
150
|
+
"prd": "https://portal-opa-server.stackspot.prod.aws.cloud.ihf/v1/validate"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"apiManagement": {
|
|
154
|
+
"url": {
|
|
155
|
+
"stg": "",
|
|
156
|
+
"dev": "",
|
|
157
|
+
"prd": ""
|
|
158
|
+
},
|
|
159
|
+
"docs": "/v3/api-docs"
|
|
160
|
+
},
|
|
161
|
+
"secrets": {
|
|
162
|
+
"url": {
|
|
163
|
+
"stg": "",
|
|
164
|
+
"dev": "",
|
|
165
|
+
"prd": ""
|
|
166
|
+
},
|
|
167
|
+
"docs": "/v3/api-docs"
|
|
168
|
+
},
|
|
169
|
+
"notification": {
|
|
170
|
+
"url": {
|
|
171
|
+
"stg": "https://account-notification-engine.stackspot.hom.aws.cloud.ihf",
|
|
172
|
+
"dev": "https://account-notification-engine.stackspot.dev.aws.cloud.ihf",
|
|
173
|
+
"prd": "https://account-notification-engine.stackspot.prod.aws.cloud.ihf"
|
|
174
|
+
},
|
|
175
|
+
"docs": "/v3/api-docs"
|
|
176
|
+
},
|
|
177
|
+
"cloudPlatform": {
|
|
178
|
+
"url": {
|
|
179
|
+
"stg": "",
|
|
180
|
+
"dev": "",
|
|
181
|
+
"prd": ""
|
|
182
|
+
},
|
|
183
|
+
"docs": "/v3/api-docs"
|
|
184
|
+
},
|
|
185
|
+
"cloudRuntimes": {
|
|
186
|
+
"url": {
|
|
187
|
+
"stg": "",
|
|
188
|
+
"dev": "",
|
|
189
|
+
"prd": ""
|
|
190
|
+
},
|
|
191
|
+
"docs": "/v3/api-docs"
|
|
192
|
+
},
|
|
193
|
+
"cloudPlatformHorizon": {
|
|
194
|
+
"url": {
|
|
195
|
+
"stg": "",
|
|
196
|
+
"dev": "",
|
|
197
|
+
"prd": ""
|
|
198
|
+
},
|
|
199
|
+
"docs": "/v3/api-docs"
|
|
200
|
+
},
|
|
201
|
+
"codeShift": {
|
|
202
|
+
"url": {
|
|
203
|
+
"stg": "",
|
|
204
|
+
"dev": "",
|
|
205
|
+
"prd": ""
|
|
206
|
+
},
|
|
207
|
+
"docs": "/openapi.json"
|
|
208
|
+
},
|
|
209
|
+
"genAiInference": {
|
|
210
|
+
"url": {
|
|
211
|
+
"stg": "https://genai-inference-app.stackspot.hom.aws.cloud.ihf",
|
|
212
|
+
"dev": "https://genai-inference-app.stackspot.dev.aws.cloud.ihf",
|
|
213
|
+
"prd": "https://genai-inference-app.stackpot.prod.aws.cloud.ihf"
|
|
214
|
+
},
|
|
215
|
+
"docs": "/openapi.json"
|
|
216
|
+
},
|
|
217
|
+
"discover": {
|
|
218
|
+
"url": {
|
|
219
|
+
"stg": "",
|
|
220
|
+
"dev": "",
|
|
221
|
+
"prd": ""
|
|
222
|
+
},
|
|
223
|
+
"docs": "/v3/api-docs"
|
|
224
|
+
}
|
|
225
|
+
}
|
package/src/apis.json
CHANGED
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
},
|
|
215
215
|
"docs": "/openapi.json"
|
|
216
216
|
},
|
|
217
|
-
"
|
|
217
|
+
"discover": {
|
|
218
218
|
"url": {
|
|
219
219
|
"dev": "https://discover-discover-core.dev.stackspot.com",
|
|
220
220
|
"stg": "https://discover-discover-core.stg.stackspot.com",
|
|
221
|
-
"prd": "https://discover-
|
|
221
|
+
"prd": "https://discover-core.stackspot.com"
|
|
222
222
|
},
|
|
223
223
|
"docs": "/v3/api-docs"
|
|
224
224
|
}
|
package/src/client/ai.ts
CHANGED
package/src/client/code-shift.ts
CHANGED
|
@@ -48,6 +48,17 @@ import {
|
|
|
48
48
|
updateRepositoryServiceV1ReposRepositoryIdPut,
|
|
49
49
|
validateScmUrlServiceV1ReposValidateScmUrlPost,
|
|
50
50
|
listUserServiceV1UsersGet,
|
|
51
|
+
analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet,
|
|
52
|
+
analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet,
|
|
53
|
+
getModuleInputsV1ModulesModuleIdInputsGet,
|
|
54
|
+
analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet,
|
|
55
|
+
analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet,
|
|
56
|
+
listRepositoryDownloadServiceV1ReposDownloadGet,
|
|
57
|
+
listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet,
|
|
58
|
+
getModuleV1ModulesModuleIdGet,
|
|
59
|
+
analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
|
|
60
|
+
analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
|
|
61
|
+
searchReposScmServiceV2ReposSearchScmPost,
|
|
51
62
|
} from '../api/codeShift'
|
|
52
63
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
53
64
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
@@ -89,6 +100,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
89
100
|
* Updates a repository
|
|
90
101
|
*/
|
|
91
102
|
updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
|
|
103
|
+
/**
|
|
104
|
+
* List Repository Download Service
|
|
105
|
+
*/
|
|
106
|
+
repositoryDownload = this.query(removeAuthorizationParam(listRepositoryDownloadServiceV1ReposDownloadGet))
|
|
92
107
|
/**
|
|
93
108
|
* Get a report for a pull request by id.
|
|
94
109
|
*/
|
|
@@ -97,6 +112,14 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
97
112
|
* Gets modules.
|
|
98
113
|
*/
|
|
99
114
|
modules = this.query(removeAuthorizationParam(listModulesServiceV1ModulesGet))
|
|
115
|
+
/**
|
|
116
|
+
* Gets module by id.
|
|
117
|
+
*/
|
|
118
|
+
module = this.query(removeAuthorizationParam(getModuleV1ModulesModuleIdGet))
|
|
119
|
+
/**
|
|
120
|
+
* Gets module inputs.
|
|
121
|
+
*/
|
|
122
|
+
modulesInputs = this.query(removeAuthorizationParam(getModuleInputsV1ModulesModuleIdInputsGet))
|
|
100
123
|
/**
|
|
101
124
|
* Creates a module.
|
|
102
125
|
*/
|
|
@@ -137,6 +160,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
137
160
|
* Downloads file with found repositories
|
|
138
161
|
*/
|
|
139
162
|
downloadSearchRepository = this.mutation(removeAuthorizationParam(downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet))
|
|
163
|
+
/**
|
|
164
|
+
* Searches for repositories (v2)
|
|
165
|
+
*/
|
|
166
|
+
searchRepositoryV2 = this.mutation(removeAuthorizationParam(searchReposScmServiceV2ReposSearchScmPost))
|
|
140
167
|
/**
|
|
141
168
|
* Validate if the user has permission.
|
|
142
169
|
* We do not use opa in this api, so this is the fn needed to check permissions.
|
|
@@ -192,6 +219,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
192
219
|
* Deletes a program group.
|
|
193
220
|
*/
|
|
194
221
|
deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
|
|
222
|
+
/**
|
|
223
|
+
* List Program Group Download Service
|
|
224
|
+
*/
|
|
225
|
+
programGroupDownload = this.query(removeAuthorizationParam(listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet))
|
|
195
226
|
/**
|
|
196
227
|
* Gets list of tags.
|
|
197
228
|
*/
|
|
@@ -204,7 +235,6 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
204
235
|
* Get Branches for a Repository
|
|
205
236
|
*/
|
|
206
237
|
getBranches = this.query(removeAuthorizationParam(listBranchesServiceV1ReposBranchesGet))
|
|
207
|
-
|
|
208
238
|
/**
|
|
209
239
|
* General Report Success And Errors
|
|
210
240
|
*/
|
|
@@ -234,9 +264,11 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
234
264
|
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet),
|
|
235
265
|
)
|
|
236
266
|
/**
|
|
237
|
-
* Analytics Program Groups
|
|
267
|
+
* Analytics Program Groups Last Report Status Download
|
|
238
268
|
*/
|
|
239
|
-
|
|
269
|
+
analyticsProgramGroupsLastReportStatusDownload = this.query(
|
|
270
|
+
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet),
|
|
271
|
+
)
|
|
240
272
|
/**
|
|
241
273
|
* Analytics User Usage
|
|
242
274
|
*/
|
|
@@ -252,11 +284,9 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
252
284
|
removeAuthorizationParam(analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet),
|
|
253
285
|
)
|
|
254
286
|
/**
|
|
255
|
-
* Analytics Program Groups
|
|
287
|
+
* Analytics Program Groups Usage
|
|
256
288
|
*/
|
|
257
|
-
|
|
258
|
-
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet),
|
|
259
|
-
)
|
|
289
|
+
analyticsProgramGroupsUsage = this.query(removeAuthorizationParam(analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet))
|
|
260
290
|
/**
|
|
261
291
|
* Analytics Program Groups Usage Download
|
|
262
292
|
*/
|
|
@@ -269,6 +299,42 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
269
299
|
getUsersService = this.query(
|
|
270
300
|
removeAuthorizationParam(listUserServiceV1UsersGet),
|
|
271
301
|
)
|
|
302
|
+
/**
|
|
303
|
+
* Analytics Program Groups Details
|
|
304
|
+
*/
|
|
305
|
+
analyticsProgramGroupsDetails = this.query(
|
|
306
|
+
removeAuthorizationParam(analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet),
|
|
307
|
+
)
|
|
308
|
+
/**
|
|
309
|
+
* Analytics Program Groups Details Download
|
|
310
|
+
*/
|
|
311
|
+
analyticsProgramGroupsDetailsDownload = this.query(
|
|
312
|
+
removeAuthorizationParam(analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet),
|
|
313
|
+
)
|
|
314
|
+
/**
|
|
315
|
+
* Analytics Program Groups Details
|
|
316
|
+
*/
|
|
317
|
+
analyticsRepositoryDetails = this.query(
|
|
318
|
+
removeAuthorizationParam(analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet),
|
|
319
|
+
)
|
|
320
|
+
/**
|
|
321
|
+
* Analytics Program Groups Details Download
|
|
322
|
+
*/
|
|
323
|
+
analyticsRepositoryDetailsDownload = this.query(
|
|
324
|
+
removeAuthorizationParam(analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet),
|
|
325
|
+
)
|
|
326
|
+
/**
|
|
327
|
+
* Analytics Program Groups Target Details
|
|
328
|
+
*/
|
|
329
|
+
analyticsProgramGroupsTargetDetails = this.query(
|
|
330
|
+
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet),
|
|
331
|
+
)
|
|
332
|
+
/**
|
|
333
|
+
* Analytics Program Groups Target Details Download
|
|
334
|
+
*/
|
|
335
|
+
analyticsProgramGroupsTargetDetailsDownload = this.query(
|
|
336
|
+
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet),
|
|
337
|
+
)
|
|
272
338
|
}
|
|
273
339
|
|
|
274
340
|
export const codeShiftClient = new CodeShift()
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
findKsV1KnowledgeSourcesSlugGet,
|
|
11
11
|
forkKsV1KnowledgeSourcesSlugForkPost,
|
|
12
12
|
getFileUploadStatusV1FileUploadFileUploadIdGet,
|
|
13
|
+
getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet,
|
|
13
14
|
getUploadFormV1FileUploadFormPost,
|
|
14
15
|
getUploadFormV2V2FileUploadFormPost,
|
|
15
16
|
listKosV1KnowledgeSourcesKsSlugObjectsGet,
|
|
@@ -180,6 +181,11 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
|
180
181
|
* Delete Knowledge Object from Knowledge Source
|
|
181
182
|
*/
|
|
182
183
|
deleteKnowledgeObjectFromKnowledgeSource = this.mutation(removeAuthorizationParam(deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete))
|
|
184
|
+
/**
|
|
185
|
+
* Get Indexed Files
|
|
186
|
+
*/
|
|
187
|
+
listIndexedProjectFiles = this.query(removeAuthorizationParam(getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet))
|
|
188
|
+
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
export const dataIntegrationClient = new DataIntegrationClient()
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { HttpError } from '@oazapfts/runtime'
|
|
2
|
+
import { getApiAddresses } from '../api-addresses'
|
|
3
|
+
import { ConversationResponse } from '../api/ai'
|
|
4
|
+
import { create, create1, create2, defaults, deleteById, deleteById1, deleteById2, getAll, getAll1, getAll2, getAllByHypothesis, getById, getById1, getById2, GetOpportunityResponse } from '../api/discover'
|
|
5
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
6
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
|
+
import { baseDictionary } from '../error/dictionary/base'
|
|
8
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
9
|
+
import { aiClient } from './ai'
|
|
10
|
+
|
|
11
|
+
export interface ChatConversionDetails extends ConversationResponse {
|
|
12
|
+
opportunityName?: string,
|
|
13
|
+
hypothesisCount?: number,
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class DiscoverClient extends ReactQueryNetworkClient {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(getApiAddresses().discover.url, defaults)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
22
|
+
return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
opportunities = this.query(getAll)
|
|
26
|
+
|
|
27
|
+
opportunity = this.query(getById)
|
|
28
|
+
|
|
29
|
+
hypotheses = this.query(getAll1)
|
|
30
|
+
|
|
31
|
+
hypothesisById = this.query(getById1)
|
|
32
|
+
|
|
33
|
+
documents = this.query(getAllByHypothesis)
|
|
34
|
+
|
|
35
|
+
document = this.query(getById2)
|
|
36
|
+
|
|
37
|
+
artifacts = this.query(getAll2)
|
|
38
|
+
|
|
39
|
+
createOpportunity = this.mutation(create)
|
|
40
|
+
|
|
41
|
+
createHypothesis = this.mutation(create1)
|
|
42
|
+
|
|
43
|
+
createDocument = this.mutation(create2)
|
|
44
|
+
|
|
45
|
+
deleteOpportunity = this.mutation(deleteById)
|
|
46
|
+
|
|
47
|
+
deleteHypothesis = this.mutation(deleteById1)
|
|
48
|
+
|
|
49
|
+
deleteDocument = this.mutation(deleteById2)
|
|
50
|
+
|
|
51
|
+
chats = this.query({
|
|
52
|
+
name: 'chats',
|
|
53
|
+
request: async (_signal, variables: { filter?: string, page?: number, size?: number }) => {
|
|
54
|
+
const opportunities = await this.opportunities.query({})
|
|
55
|
+
|
|
56
|
+
const opportunitiesByChatId: Record<string, any> = opportunities.content.reduce(
|
|
57
|
+
(acc, opp: GetOpportunityResponse) => {
|
|
58
|
+
if (opp.chatId) {
|
|
59
|
+
acc[opp.chatId] = opp
|
|
60
|
+
}
|
|
61
|
+
return acc
|
|
62
|
+
},
|
|
63
|
+
{} as Record<string, any>,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
const chatsHistory = await aiClient.chats.query(
|
|
67
|
+
{ ...variables, page: variables.page, size: variables.size ?? 40 },
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
const filteredItems = variables.filter
|
|
71
|
+
? chatsHistory.filter((chat) => chat.title.toLowerCase().includes(variables.filter!.toLowerCase()))
|
|
72
|
+
: chatsHistory
|
|
73
|
+
|
|
74
|
+
const enrichedChats = filteredItems?.map(chat => {
|
|
75
|
+
const relatedOpportunity = opportunitiesByChatId[chat.id]
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
...chat,
|
|
79
|
+
opportunityName: relatedOpportunity?.title ?? null,
|
|
80
|
+
hypothesisCount: relatedOpportunity?.hypotheses?.length ?? 0,
|
|
81
|
+
}
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
return enrichedChats as ChatConversionDetails[]
|
|
85
|
+
},
|
|
86
|
+
})
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export const discoverClient = new DiscoverClient()
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable max-len */
|
|
2
2
|
import { HttpError } from '@oazapfts/runtime'
|
|
3
|
+
import { getApiAddresses } from '../api-addresses'
|
|
3
4
|
import {
|
|
4
5
|
accountApplicationControllergetAccountApplicationPage,
|
|
5
6
|
accountApplicationControllergetAccountApplicationsFilters,
|
|
@@ -38,6 +39,7 @@ import {
|
|
|
38
39
|
contextControllerupsertWorkspaceActionsInputContext,
|
|
39
40
|
contextWorkflowControllergetAccountWorkflowInputs,
|
|
40
41
|
contextWorkflowControllergetConsolidatedWorkflowInputs,
|
|
42
|
+
contextWorkflowControllergetWorkspaceWorkflowInputs,
|
|
41
43
|
contextgetAccountPluginInputs,
|
|
42
44
|
contextgetConsolidatedPluginInputs,
|
|
43
45
|
contextgetConsolidatedPluginInputsWithConnectionInterfaces,
|
|
@@ -79,7 +81,6 @@ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
|
79
81
|
import { contentClient } from './content'
|
|
80
82
|
import { FixedFullInputContextResponse, FixedPaginatedActivityResponse, FixedPluginForAppCreationV2Response, FixedWorkflowForCreationResponse, ReplaceResult } from './types'
|
|
81
83
|
import { workspaceClient } from './workspace'
|
|
82
|
-
import { getApiAddresses } from '../api-addresses'
|
|
83
84
|
|
|
84
85
|
class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
85
86
|
constructor() {
|
|
@@ -153,6 +154,12 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
|
153
154
|
*/
|
|
154
155
|
workflowDataWithInputsInWorkspace = this.query(contextWorkflowControllergetConsolidatedWorkflowInputs as
|
|
155
156
|
unknown as ReplaceResult<typeof contextWorkflowControllergetConsolidatedWorkflowInputs, FixedWorkflowForCreationResponse>)
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Gets workflow inputs in a workspace stack
|
|
160
|
+
*/
|
|
161
|
+
workflowInputsInWorkspace = this.query(contextWorkflowControllergetWorkspaceWorkflowInputs as unknown as ReplaceResult<typeof contextWorkflowControllergetWorkspaceWorkflowInputs, FixedWorkflowForCreationResponse>)
|
|
162
|
+
|
|
156
163
|
/**
|
|
157
164
|
* Gets workflow inputs in an account stack
|
|
158
165
|
*/
|
|
@@ -2,19 +2,81 @@ import { Dictionary } from '@stack-spot/portal-translate'
|
|
|
2
2
|
|
|
3
3
|
export const scfDictionary = {
|
|
4
4
|
en: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
SCF_CIDR_FOUNDATION_RESERVED: '
|
|
10
|
-
|
|
5
|
+
SCF_CERTIFICATE_ERROR: 'Certificate operation failed.',
|
|
6
|
+
SCF_CERTIFICATE_NOT_FOUND_ERROR: 'Certificate with ID {1} not found.',
|
|
7
|
+
SCF_CIDR_ERROR: 'CIDR operation failed.',
|
|
8
|
+
SCF_CIDR_RANGE_CONFLICT: 'CIDR range {1} conflicts with an existing range.',
|
|
9
|
+
SCF_CIDR_FOUNDATION_RESERVED: 'CIDR range {1} conflicts with the Foundation\'s reserved range.',
|
|
10
|
+
SCF_CIDR_NOT_FOUND_ERROR: 'CIDR with ID {1} not found.',
|
|
11
|
+
SCF_CONTROL_TOWER_BUSY_ERROR: 'Foundations Control Tower is currently busy. Please try again later.',
|
|
12
|
+
SCF_DNS_RECORD_ERROR: 'DNS Record operation failed.',
|
|
13
|
+
SCF_DNS_RECORD_NOT_FOUND_ERROR: 'DNS Record with ID {1} not found.',
|
|
14
|
+
SCF_DNS_ZONE_ERROR: 'DNS Zone operation failed.',
|
|
15
|
+
SCF_DNS_ZONE_NOT_FOUND_ERROR: 'DNS Zone with ID {1} not found.',
|
|
16
|
+
SCF_DNS_ZONE_NOT_READY_ERROR: 'DNS Zone with ID {1} not ready.',
|
|
17
|
+
SCF_FOLDER_ALREADY_EXISTS_ERROR: 'A folder named {1} already exists.',
|
|
18
|
+
SCF_FOLDER_ERROR: 'Folder operation failed.',
|
|
19
|
+
SCF_FOLDER_NOT_FOUND_ERROR: 'Folder with ID {1} not found.',
|
|
20
|
+
SCF_FOLDER_NOT_READY_ERROR: 'Folder with ID {1} not ready.',
|
|
21
|
+
SCF_FOUNDATION_ERROR: 'Foundation operation failed.',
|
|
22
|
+
SCF_FOUNDATION_NOT_FOUND_ERROR: 'Foundation with ID {1} not found.',
|
|
23
|
+
SCF_FOUNDATION_NOT_READY_ERROR: 'Foundation with ID {1} not ready.',
|
|
24
|
+
SCF_INBOUND_ERROR: 'Inbound operation failed.',
|
|
25
|
+
SCF_INVALID_REGEX_ERROR: 'The value {1} is invalid.',
|
|
26
|
+
SCF_MASTER_ACCOUNT_ERROR: 'Master Account operation failed.',
|
|
27
|
+
SCF_MASTER_ACCOUNT_NOT_FOUND_ERROR: 'No Master Account available for Foundation creation.',
|
|
28
|
+
SCF_NAMESPACE_CREATION_ERROR: 'An error occurred while creating the Kubernetes namespace.',
|
|
29
|
+
SCF_NETWORK_CONNECTION_ERROR: 'Network Connection operation failed.',
|
|
30
|
+
SCF_NETWORK_ERROR: 'Network operation failed.',
|
|
31
|
+
SCF_NETWORK_NOT_FOUND_ERROR: 'Network with ID {1} not found.',
|
|
32
|
+
SCF_NETWORK_NOT_READY_ERROR: 'Network with ID {1} not ready.',
|
|
33
|
+
SCF_PARENT_FOLDER_NOT_READY_ERROR: 'Parent Folder with ID {1} not ready.',
|
|
34
|
+
SCF_PROJECT_ERROR: 'Project operation failed.',
|
|
35
|
+
SCF_PROJECT_NOT_FOUND_ERROR: 'Project with ID {1} not found.',
|
|
36
|
+
SCF_PROJECT_NOT_READY_ERROR: 'Project with ID {1} not ready.',
|
|
37
|
+
SCF_UNKNOWN_ERROR: 'An unexpected error has occurred.',
|
|
38
|
+
SCF_VPN_CONFIGURATION_NOT_FOUND_ERROR: 'Configuration for VPN with ID {1} not found.',
|
|
39
|
+
SCF_VPN_ERROR: 'VPN operation failed.',
|
|
40
|
+
SCF_VPN_NOT_FOUND_ERROR: 'VPN with ID {1} not found.',
|
|
41
|
+
SCF_VPN_NOT_READY_ERROR: 'VPN with ID {1} not ready.',
|
|
11
42
|
},
|
|
12
43
|
pt: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
SCF_CIDR_FOUNDATION_RESERVED: 'O
|
|
18
|
-
|
|
44
|
+
SCF_CERTIFICATE_ERROR: 'Falha na operação de Certificado.',
|
|
45
|
+
SCF_CERTIFICATE_NOT_FOUND_ERROR: 'Certificado com ID {1} não encontrado.',
|
|
46
|
+
SCF_CIDR_ERROR: 'Falha na operação de CIDR.',
|
|
47
|
+
SCF_CIDR_RANGE_CONFLICT: 'O intervalo CIDR {1} conflita com um intervalo existente.',
|
|
48
|
+
SCF_CIDR_FOUNDATION_RESERVED: 'O intervalo CIDR {1} conflita com o intervalo reservado da Fundação.',
|
|
49
|
+
SCF_CIDR_NOT_FOUND_ERROR: 'CIDR com ID {1} não encontrado.',
|
|
50
|
+
SCF_CONTROL_TOWER_BUSY_ERROR: 'Control Tower da Fundação está ocupada no momento. Por favor, tente novamente mais tarde.',
|
|
51
|
+
SCF_DNS_RECORD_ERROR: 'Falha na operação de DNS Record.',
|
|
52
|
+
SCF_DNS_RECORD_NOT_FOUND_ERROR: 'DNS Record com ID {1} não encontrado.',
|
|
53
|
+
SCF_DNS_ZONE_ERROR: 'Falha na operação de DNS Zone.',
|
|
54
|
+
SCF_DNS_ZONE_NOT_FOUND_ERROR: 'DNS Zone com ID {1} não encontrada.',
|
|
55
|
+
SCF_DNS_ZONE_NOT_READY_ERROR: 'DNS Zone com ID {1} não está pronta.',
|
|
56
|
+
SCF_FOLDER_ALREADY_EXISTS_ERROR: 'Uma Pasta com o nome {1} já existe.',
|
|
57
|
+
SCF_FOLDER_ERROR: 'Falha na operação de Pasta.',
|
|
58
|
+
SCF_FOLDER_NOT_FOUND_ERROR: 'Pasta com ID {1} não encontrada.',
|
|
59
|
+
SCF_FOLDER_NOT_READY_ERROR: 'Pasta com ID {1} não está pronta.',
|
|
60
|
+
SCF_FOUNDATION_ERROR: 'Falha na operação da Fundação.',
|
|
61
|
+
SCF_FOUNDATION_NOT_FOUND_ERROR: 'Fundação com ID {1} não encontrada.',
|
|
62
|
+
SCF_FOUNDATION_NOT_READY_ERROR: 'Fundação com ID {1} não está pronta.',
|
|
63
|
+
SCF_INBOUND_ERROR: 'Falha na operação de Inbound.',
|
|
64
|
+
SCF_INVALID_REGEX_ERROR: 'O valor {1} é inválido.',
|
|
65
|
+
SCF_MASTER_ACCOUNT_ERROR: 'Falha na operação da Master Account.',
|
|
66
|
+
SCF_MASTER_ACCOUNT_NOT_FOUND_ERROR: 'Nenhuma Master Account disponível para criação da Fundação.',
|
|
67
|
+
SCF_NAMESPACE_CREATION_ERROR: 'Ocorreu um erro ao criar o namespace no Kubernetes.',
|
|
68
|
+
SCF_NETWORK_CONNECTION_ERROR: 'Falha na operação de Network Connection.',
|
|
69
|
+
SCF_NETWORK_ERROR: 'Falha na operação de Network.',
|
|
70
|
+
SCF_NETWORK_NOT_FOUND_ERROR: 'Network com ID {1} não encontrada.',
|
|
71
|
+
SCF_NETWORK_NOT_READY_ERROR: 'Network com ID {1} não está pronta.',
|
|
72
|
+
SCF_PARENT_FOLDER_NOT_READY_ERROR: 'Pasta pai com ID {1} não está pronta.',
|
|
73
|
+
SCF_PROJECT_ERROR: 'Falha na operação do Projeto.',
|
|
74
|
+
SCF_PROJECT_NOT_FOUND_ERROR: 'Projeto com ID {1} não encontrado.',
|
|
75
|
+
SCF_PROJECT_NOT_READY_ERROR: 'Projeto com ID {1} não está pronto.',
|
|
76
|
+
SCF_UNKNOWN_ERROR: 'Ocorreu um erro inesperado.',
|
|
77
|
+
SCF_VPN_CONFIGURATION_NOT_FOUND_ERROR: 'Configuração para VPN com ID {1} não encontrada.',
|
|
78
|
+
SCF_VPN_ERROR: 'Falha na operação de VPN.',
|
|
79
|
+
SCF_VPN_NOT_FOUND_ERROR: 'VPN com ID {1} não encontrada.',
|
|
80
|
+
SCF_VPN_NOT_READY_ERROR: 'VPN com ID {1} não está pronta.',
|
|
19
81
|
},
|
|
20
82
|
} satisfies Dictionary
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CancelledError } from '@tanstack/react-query'
|
|
2
|
-
export { apiAddresses, getApiAddresses, getBaseUrlWithOverride, setApisOverride } from './api-addresses'
|
|
2
|
+
export { apiAddresses, getApiAddresses, getApisByTenant, getBaseUrlWithOverride, setApisOverride } from './api-addresses'
|
|
3
3
|
export { accountClient } from './client/account'
|
|
4
4
|
export { agentClient } from './client/agent'
|
|
5
5
|
export { agentToolsClient } from './client/agent-tools'
|
|
@@ -13,7 +13,8 @@ export { cloudServicesClient } from './client/cloud-services'
|
|
|
13
13
|
export { codeShiftClient } from './client/code-shift'
|
|
14
14
|
export { contentClient } from './client/content'
|
|
15
15
|
export { dataIntegrationClient } from './client/data-integration'
|
|
16
|
-
export
|
|
16
|
+
export * from './client/discover'
|
|
17
|
+
export { discoverClient } from './client/discover'
|
|
17
18
|
export { eventBusClient } from './client/event-bus'
|
|
18
19
|
export { genAiInferenceClient } from './client/gen-ai-inference'
|
|
19
20
|
export { insightsClient } from './client/insights'
|
|
@@ -34,9 +35,10 @@ export { StreamError } from './error/StreamError'
|
|
|
34
35
|
export { StreamJsonError } from './error/StreamJsonError'
|
|
35
36
|
export { NetworkClient } from './network/NetworkClient'
|
|
36
37
|
export { queryClient } from './network/react-query-client'
|
|
37
|
-
export { OperationResult, OperationVariables, UseQueryObjectOptions } from './network/types'
|
|
38
|
+
export { Env, OperationResult, OperationVariables, Tenant, UseQueryObjectOptions } from './network/types'
|
|
38
39
|
export { StreamingStatus } from './types'
|
|
39
40
|
export { StreamedArray } from './utils/StreamedArray'
|
|
40
41
|
export { StreamedJson } from './utils/StreamedJson'
|
|
41
42
|
export { useExtendedList } from './utils/use-extended-list'
|
|
42
43
|
export { useStreamedArray } from './utils/use-streamed-array'
|
|
44
|
+
|