@stack-spot/portal-network 0.184.0 → 0.185.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/CHANGELOG.md +2419 -2412
- package/dist/api/account.js +1 -1
- package/dist/api/agent-tools.js +1 -1
- package/dist/api/agent.js +1 -1
- package/dist/api/ai.js +1 -1
- package/dist/api/apiManagement.js +1 -1
- package/dist/api/apiRuntime.js +1 -1
- package/dist/api/cloudAccount.js +1 -1
- package/dist/api/cloudPlatform.js +1 -1
- package/dist/api/cloudPlatformHorizon.js +1 -1
- package/dist/api/cloudRuntimes.js +1 -1
- package/dist/api/cloudServices.js +1 -1
- package/dist/api/codeShift.d.ts +63 -4
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +14 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/content.js +1 -1
- package/dist/api/dataIntegration.js +1 -1
- package/dist/api/discover.js +1 -1
- package/dist/api/genAiInference.js +1 -1
- package/dist/api/insights.js +1 -1
- package/dist/api/notification.js +1 -1
- package/dist/api/secrets.js +1 -1
- package/dist/api/serviceCatalog.js +1 -1
- package/dist/api/workspace-ai.js +1 -1
- package/dist/api/workspace.js +1 -1
- package/dist/api/workspaceManager.js +1 -1
- package/dist/api/workspaceSearchEngine.js +1 -1
- package/dist/client/code-shift.d.ts +22 -0
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +28 -1
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +6 -6
- package/scripts/generate-apis.ts +134 -134
- package/src/api/account.ts +8367 -8367
- package/src/api/agent-tools.ts +2169 -2169
- package/src/api/agent.ts +1083 -1083
- package/src/api/ai.ts +3388 -3388
- package/src/api/apiManagement.ts +570 -570
- package/src/api/apiRuntime.ts +2103 -2103
- package/src/api/cloudAccount.ts +1239 -1239
- package/src/api/cloudPlatform.ts +927 -927
- package/src/api/cloudPlatformHorizon.ts +2655 -2655
- package/src/api/cloudRuntimes.ts +2043 -2043
- package/src/api/cloudServices.ts +1445 -1445
- package/src/api/codeShift.ts +3567 -3481
- package/src/api/content.ts +9785 -9785
- package/src/api/dataIntegration.ts +1657 -1657
- package/src/api/discover.ts +435 -435
- package/src/api/eventBus.ts +171 -171
- package/src/api/genAiInference.ts +603 -603
- package/src/api/insights.ts +310 -310
- package/src/api/notification.ts +334 -334
- package/src/api/secrets.ts +342 -342
- package/src/api/serviceCatalog.ts +2908 -2908
- package/src/api/workflows.ts +1669 -1669
- package/src/api/workspace-ai.ts +677 -677
- package/src/api/workspace.ts +5889 -5889
- package/src/api/workspaceManager.ts +2951 -2951
- package/src/api/workspaceSearchEngine.ts +153 -153
- package/src/api-addresses.ts +120 -120
- package/src/apis-itau.json +225 -225
- package/src/apis.json +225 -225
- package/src/client/account.ts +902 -902
- package/src/client/agent-tools.ts +210 -210
- package/src/client/agent.ts +81 -81
- package/src/client/ai.ts +395 -395
- package/src/client/api-management.ts +40 -40
- package/src/client/cloud-account.ts +70 -70
- package/src/client/cloud-platform-horizon.ts +113 -113
- package/src/client/cloud-platform.ts +163 -163
- package/src/client/cloud-runtimes.ts +129 -129
- package/src/client/cloud-services.ts +94 -94
- package/src/client/code-shift.ts +364 -349
- package/src/client/content.ts +538 -538
- package/src/client/data-integration.ts +191 -191
- package/src/client/discover.ts +89 -89
- package/src/client/event-bus.ts +84 -84
- package/src/client/gen-ai-inference.ts +65 -65
- package/src/client/insights.ts +28 -28
- package/src/client/notification.ts +32 -32
- package/src/client/runtime-manager.ts +76 -76
- package/src/client/secrets.ts +60 -60
- package/src/client/types.ts +377 -377
- package/src/client/workflow.ts +83 -83
- package/src/client/workspace-ai.ts +191 -191
- package/src/client/workspace-manager.ts +564 -564
- package/src/client/workspace-search.ts +39 -39
- package/src/client/workspace.ts +480 -480
- package/src/error/DefaultAPIError.ts +151 -151
- package/src/error/FileUploadError.ts +18 -18
- package/src/error/IgnoredErrorCodes.ts +3 -3
- package/src/error/StackspotAPIError.ts +101 -101
- package/src/error/StreamCanceledError.ts +10 -10
- package/src/error/StreamError.ts +7 -7
- package/src/error/StreamJsonError.ts +10 -10
- package/src/error/dictionary/account.ts +58 -58
- package/src/error/dictionary/action-details.ts +20 -20
- package/src/error/dictionary/action.ts +211 -211
- package/src/error/dictionary/agent-tools.ts +75 -75
- package/src/error/dictionary/ai-inference.ts +28 -28
- package/src/error/dictionary/base.ts +22 -22
- package/src/error/dictionary/cloud-platform.ts +82 -82
- package/src/error/dictionary/cnt-fields.ts +14 -14
- package/src/error/dictionary/cnt.ts +103 -103
- package/src/error/dictionary/code-shift.ts +12 -12
- package/src/error/dictionary/rte.ts +24 -24
- package/src/error/dictionary/rtm.ts +10 -10
- package/src/error/dictionary/secrets.ts +14 -14
- package/src/error/dictionary/workspace-ai.ts +10 -10
- package/src/error/dictionary/workspace-details.ts +15 -15
- package/src/error/dictionary/workspace-fields.ts +10 -10
- package/src/error/dictionary/workspace.ts +209 -209
- package/src/error/types.ts +21 -21
- package/src/index.ts +43 -43
- package/src/network/AutoInfiniteQuery.ts +115 -115
- package/src/network/AutoMutation.ts +27 -27
- package/src/network/AutoOperation.ts +73 -73
- package/src/network/AutoQuery.ts +75 -75
- package/src/network/ManualInfiniteQuery.ts +95 -95
- package/src/network/ManualMutation.ts +40 -40
- package/src/network/ManualOperation.ts +52 -52
- package/src/network/ManualQuery.ts +82 -82
- package/src/network/NetworkClient.ts +167 -167
- package/src/network/ReactQueryNetworkClient.ts +312 -312
- package/src/network/react-query-client.ts +14 -14
- package/src/network/types.ts +294 -294
- package/src/types.ts +1 -1
- package/src/utils/StreamedArray.tsx +146 -146
- package/src/utils/StreamedJson.tsx +166 -166
- package/src/utils/remove-authorization-param.ts +6 -6
- package/src/utils/string.ts +19 -19
- package/src/utils/use-extended-list.ts +80 -80
- package/src/utils/use-streamed-array.ts +17 -17
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +10 -10
package/src/client/code-shift.ts
CHANGED
|
@@ -1,349 +1,364 @@
|
|
|
1
|
-
|
|
2
|
-
import { HttpError } from '@oazapfts/runtime'
|
|
3
|
-
import {
|
|
4
|
-
analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet,
|
|
5
|
-
analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet,
|
|
6
|
-
analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet,
|
|
7
|
-
analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet,
|
|
8
|
-
analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet,
|
|
9
|
-
analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet,
|
|
10
|
-
analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet,
|
|
11
|
-
analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet,
|
|
12
|
-
analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet,
|
|
13
|
-
analyticsUserUsageV1AnalyticsUsersUsageGet,
|
|
14
|
-
checkRoleRouteV1RolesRoleGet,
|
|
15
|
-
createAccountSettingsV1SettingsPut,
|
|
16
|
-
createIntegrationServiceV1IntegrationsPost,
|
|
17
|
-
createModuleServiceV1ModulesPost,
|
|
18
|
-
createProgramGroupServiceV1ProgramGroupsPost,
|
|
19
|
-
createReposBatchServiceV1ReposBatchPost,
|
|
20
|
-
createRepositoryServiceV1ReposPost,
|
|
21
|
-
defaults,
|
|
22
|
-
deleteIntegrationServiceV1IntegrationsIntegrationIdDelete,
|
|
23
|
-
deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete,
|
|
24
|
-
deleteRepositoryServiceV1ReposRepositoryIdDelete,
|
|
25
|
-
dispatchModuleServiceV1ModulesDispatchesPost,
|
|
26
|
-
downloadReportV1ReportsReportIdDownloadGet,
|
|
27
|
-
downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet,
|
|
28
|
-
generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet,
|
|
29
|
-
getAccountSettingsV1SettingsGet,
|
|
30
|
-
getIntegrationByIdServiceV1IntegrationsIntegrationIdGet,
|
|
31
|
-
getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet,
|
|
32
|
-
getReportPullRequestContentV1ReportsReportIdPullRequestGet,
|
|
33
|
-
getReportV1ReportsReportIdGet,
|
|
34
|
-
getRepositoryByIdServiceV1ReposRepositoryIdGet,
|
|
35
|
-
getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet,
|
|
36
|
-
listBranchesServiceV1ReposBranchesGet,
|
|
37
|
-
listIntegrationServiceV1IntegrationsGet,
|
|
38
|
-
listModulesServiceV1ModulesGet,
|
|
39
|
-
listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet,
|
|
40
|
-
listProgramGroupServiceV1ProgramGroupsGet,
|
|
41
|
-
listRepositoryReportV1ReposRepositoryIdReportsGet,
|
|
42
|
-
listRepositoryServiceV1ReposGet,
|
|
43
|
-
listTagsServiceV1TagsGet,
|
|
44
|
-
searchReposScmServiceV1ReposSearchScmGet,
|
|
45
|
-
updateIntegrationServiceV1IntegrationsIntegrationIdPut,
|
|
46
|
-
updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut,
|
|
47
|
-
updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
|
|
48
|
-
updateRepositoryServiceV1ReposRepositoryIdPut,
|
|
49
|
-
validateScmUrlServiceV1ReposValidateScmUrlPost,
|
|
50
|
-
listUserServiceV1UsersGet,
|
|
51
|
-
analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet,
|
|
52
|
-
analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet,
|
|
53
|
-
getModuleInputsV1ModulesModuleIdInputsGet,
|
|
54
|
-
analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet,
|
|
55
|
-
analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet,
|
|
56
|
-
listRepositoryDownloadServiceV1ReposDownloadGet,
|
|
57
|
-
listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet,
|
|
58
|
-
getModuleV1ModulesModuleIdGet,
|
|
59
|
-
analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
|
|
60
|
-
analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
1
|
+
|
|
2
|
+
import { HttpError } from '@oazapfts/runtime'
|
|
3
|
+
import {
|
|
4
|
+
analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet,
|
|
5
|
+
analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet,
|
|
6
|
+
analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet,
|
|
7
|
+
analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet,
|
|
8
|
+
analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet,
|
|
9
|
+
analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet,
|
|
10
|
+
analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet,
|
|
11
|
+
analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet,
|
|
12
|
+
analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet,
|
|
13
|
+
analyticsUserUsageV1AnalyticsUsersUsageGet,
|
|
14
|
+
checkRoleRouteV1RolesRoleGet,
|
|
15
|
+
createAccountSettingsV1SettingsPut,
|
|
16
|
+
createIntegrationServiceV1IntegrationsPost,
|
|
17
|
+
createModuleServiceV1ModulesPost,
|
|
18
|
+
createProgramGroupServiceV1ProgramGroupsPost,
|
|
19
|
+
createReposBatchServiceV1ReposBatchPost,
|
|
20
|
+
createRepositoryServiceV1ReposPost,
|
|
21
|
+
defaults,
|
|
22
|
+
deleteIntegrationServiceV1IntegrationsIntegrationIdDelete,
|
|
23
|
+
deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete,
|
|
24
|
+
deleteRepositoryServiceV1ReposRepositoryIdDelete,
|
|
25
|
+
dispatchModuleServiceV1ModulesDispatchesPost,
|
|
26
|
+
downloadReportV1ReportsReportIdDownloadGet,
|
|
27
|
+
downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet,
|
|
28
|
+
generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet,
|
|
29
|
+
getAccountSettingsV1SettingsGet,
|
|
30
|
+
getIntegrationByIdServiceV1IntegrationsIntegrationIdGet,
|
|
31
|
+
getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet,
|
|
32
|
+
getReportPullRequestContentV1ReportsReportIdPullRequestGet,
|
|
33
|
+
getReportV1ReportsReportIdGet,
|
|
34
|
+
getRepositoryByIdServiceV1ReposRepositoryIdGet,
|
|
35
|
+
getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet,
|
|
36
|
+
listBranchesServiceV1ReposBranchesGet,
|
|
37
|
+
listIntegrationServiceV1IntegrationsGet,
|
|
38
|
+
listModulesServiceV1ModulesGet,
|
|
39
|
+
listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet,
|
|
40
|
+
listProgramGroupServiceV1ProgramGroupsGet,
|
|
41
|
+
listRepositoryReportV1ReposRepositoryIdReportsGet,
|
|
42
|
+
listRepositoryServiceV1ReposGet,
|
|
43
|
+
listTagsServiceV1TagsGet,
|
|
44
|
+
searchReposScmServiceV1ReposSearchScmGet,
|
|
45
|
+
updateIntegrationServiceV1IntegrationsIntegrationIdPut,
|
|
46
|
+
updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut,
|
|
47
|
+
updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
|
|
48
|
+
updateRepositoryServiceV1ReposRepositoryIdPut,
|
|
49
|
+
validateScmUrlServiceV1ReposValidateScmUrlPost,
|
|
50
|
+
listUserServiceV1UsersGet,
|
|
51
|
+
analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet,
|
|
52
|
+
analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet,
|
|
53
|
+
getModuleInputsV1ModulesModuleIdInputsGet,
|
|
54
|
+
analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet,
|
|
55
|
+
analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet,
|
|
56
|
+
listRepositoryDownloadServiceV1ReposDownloadGet,
|
|
57
|
+
listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet,
|
|
58
|
+
getModuleV1ModulesModuleIdGet,
|
|
59
|
+
analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
|
|
60
|
+
analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
|
|
61
|
+
searchReposScmServiceV2ReposSearchScmPost,
|
|
62
|
+
importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
|
|
63
|
+
searchReposScmV2V2ReposSearchScmSearchIdGet,
|
|
64
|
+
analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
|
|
65
|
+
analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
|
|
66
|
+
} from '../api/codeShift'
|
|
67
|
+
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
68
|
+
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
69
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
70
|
+
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
71
|
+
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
72
|
+
import { getApiAddresses } from '../api-addresses'
|
|
73
|
+
|
|
74
|
+
class CodeShift extends ReactQueryNetworkClient {
|
|
75
|
+
constructor() {
|
|
76
|
+
super(getApiAddresses().codeShift.url, defaults)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
80
|
+
return new DefaultAPIError(error.data, error.status, codeShiftDictionary, error.headers)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Creates a repository.
|
|
85
|
+
*/
|
|
86
|
+
createRepository = this.mutation(removeAuthorizationParam(createRepositoryServiceV1ReposPost))
|
|
87
|
+
/**
|
|
88
|
+
* Creates repositories in batch.
|
|
89
|
+
*/
|
|
90
|
+
createRepositoriesBatch = this.mutation(removeAuthorizationParam(createReposBatchServiceV1ReposBatchPost))
|
|
91
|
+
/**
|
|
92
|
+
* Gets list of repositories.
|
|
93
|
+
*/
|
|
94
|
+
repositories = this.query(removeAuthorizationParam(listRepositoryServiceV1ReposGet))
|
|
95
|
+
/**
|
|
96
|
+
* Gets a repository
|
|
97
|
+
*/
|
|
98
|
+
repository = this.query(removeAuthorizationParam(getRepositoryByIdServiceV1ReposRepositoryIdGet))
|
|
99
|
+
/**
|
|
100
|
+
* Deletes a repository
|
|
101
|
+
*/
|
|
102
|
+
deleteRepository = this.mutation(removeAuthorizationParam(deleteRepositoryServiceV1ReposRepositoryIdDelete))
|
|
103
|
+
/**
|
|
104
|
+
* Updates a repository
|
|
105
|
+
*/
|
|
106
|
+
updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
|
|
107
|
+
/**
|
|
108
|
+
* List Repository Download Service
|
|
109
|
+
*/
|
|
110
|
+
repositoryDownload = this.query(removeAuthorizationParam(listRepositoryDownloadServiceV1ReposDownloadGet))
|
|
111
|
+
/**
|
|
112
|
+
* Get a report for a pull request by id.
|
|
113
|
+
*/
|
|
114
|
+
getReportPullRequestContent = this.query(removeAuthorizationParam(getReportPullRequestContentV1ReportsReportIdPullRequestGet))
|
|
115
|
+
/**
|
|
116
|
+
* Gets modules.
|
|
117
|
+
*/
|
|
118
|
+
modules = this.query(removeAuthorizationParam(listModulesServiceV1ModulesGet))
|
|
119
|
+
/**
|
|
120
|
+
* Gets module by id.
|
|
121
|
+
*/
|
|
122
|
+
module = this.query(removeAuthorizationParam(getModuleV1ModulesModuleIdGet))
|
|
123
|
+
/**
|
|
124
|
+
* Gets module inputs.
|
|
125
|
+
*/
|
|
126
|
+
modulesInputs = this.query(removeAuthorizationParam(getModuleInputsV1ModulesModuleIdInputsGet))
|
|
127
|
+
/**
|
|
128
|
+
* Creates a module.
|
|
129
|
+
*/
|
|
130
|
+
createModule = this.mutation(removeAuthorizationParam(createModuleServiceV1ModulesPost))
|
|
131
|
+
/**
|
|
132
|
+
* Generates a report.
|
|
133
|
+
*/
|
|
134
|
+
generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
|
|
135
|
+
/**
|
|
136
|
+
* Gets repository reports.
|
|
137
|
+
*/
|
|
138
|
+
repositoryReports = this.query(removeAuthorizationParam(listRepositoryReportV1ReposRepositoryIdReportsGet))
|
|
139
|
+
/**
|
|
140
|
+
* Gets report.
|
|
141
|
+
*/
|
|
142
|
+
report = this.query(removeAuthorizationParam(getReportV1ReportsReportIdGet))
|
|
143
|
+
/**
|
|
144
|
+
* Downloads a report as a csv file.
|
|
145
|
+
*/
|
|
146
|
+
downloadReport = this.query(removeAuthorizationParam(downloadReportV1ReportsReportIdDownloadGet))
|
|
147
|
+
/**
|
|
148
|
+
* Gets code shift settings
|
|
149
|
+
*/
|
|
150
|
+
settings = this.query(removeAuthorizationParam(getAccountSettingsV1SettingsGet))
|
|
151
|
+
/**
|
|
152
|
+
* Updates code shift settings
|
|
153
|
+
*/
|
|
154
|
+
updateSettings = this.mutation(removeAuthorizationParam(createAccountSettingsV1SettingsPut))
|
|
155
|
+
/**
|
|
156
|
+
* Starts a search repository
|
|
157
|
+
*/
|
|
158
|
+
searchRepository = this.query(removeAuthorizationParam(searchReposScmServiceV1ReposSearchScmGet))
|
|
159
|
+
/**
|
|
160
|
+
* Gets the status for a search repository
|
|
161
|
+
*/
|
|
162
|
+
searchRepositoryStatus = this.query(removeAuthorizationParam(getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet))
|
|
163
|
+
/**
|
|
164
|
+
* Downloads file with found repositories
|
|
165
|
+
*/
|
|
166
|
+
downloadSearchRepository = this.mutation(removeAuthorizationParam(downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet))
|
|
167
|
+
/**
|
|
168
|
+
* Searches for repositories (v2)
|
|
169
|
+
*/
|
|
170
|
+
searchRepositoryV2 = this.mutation(removeAuthorizationParam(searchReposScmServiceV2ReposSearchScmPost))
|
|
171
|
+
/**
|
|
172
|
+
* Imports repositories (v2)
|
|
173
|
+
*/
|
|
174
|
+
importRepositories = this.mutation(removeAuthorizationParam(importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost))
|
|
175
|
+
/**
|
|
176
|
+
* Gets repositories search by id (v2)
|
|
177
|
+
*/
|
|
178
|
+
getRepositoriesBySearchId = this.query(removeAuthorizationParam(searchReposScmV2V2ReposSearchScmSearchIdGet))
|
|
179
|
+
/**
|
|
180
|
+
* Validate if the user has permission.
|
|
181
|
+
* We do not use opa in this api, so this is the fn needed to check permissions.
|
|
182
|
+
*/
|
|
183
|
+
validateRolePermissions = this.query(removeAuthorizationParam(checkRoleRouteV1RolesRoleGet))
|
|
184
|
+
/**
|
|
185
|
+
* Creates an integration
|
|
186
|
+
*/
|
|
187
|
+
createIntegration = this.mutation(removeAuthorizationParam(createIntegrationServiceV1IntegrationsPost))
|
|
188
|
+
/**
|
|
189
|
+
* Lists integrations
|
|
190
|
+
*/
|
|
191
|
+
listIntegration = this.query(removeAuthorizationParam(listIntegrationServiceV1IntegrationsGet))
|
|
192
|
+
/**
|
|
193
|
+
* Gets an integration by id
|
|
194
|
+
*/
|
|
195
|
+
getIntegrationById = this.query(removeAuthorizationParam(getIntegrationByIdServiceV1IntegrationsIntegrationIdGet))
|
|
196
|
+
/**
|
|
197
|
+
* Updates an integration
|
|
198
|
+
*/
|
|
199
|
+
updateIntegration = this.mutation(removeAuthorizationParam(updateIntegrationServiceV1IntegrationsIntegrationIdPut))
|
|
200
|
+
/**
|
|
201
|
+
* Deletes an integration
|
|
202
|
+
*/
|
|
203
|
+
deleteIntegration = this.mutation(removeAuthorizationParam(deleteIntegrationServiceV1IntegrationsIntegrationIdDelete))
|
|
204
|
+
/**
|
|
205
|
+
* Creates a program group.
|
|
206
|
+
*/
|
|
207
|
+
createProgramGroup = this.mutation(removeAuthorizationParam(createProgramGroupServiceV1ProgramGroupsPost))
|
|
208
|
+
/**
|
|
209
|
+
* Gets list of program groups.
|
|
210
|
+
*/
|
|
211
|
+
listProgramGroups = this.query(removeAuthorizationParam(listProgramGroupServiceV1ProgramGroupsGet))
|
|
212
|
+
/**
|
|
213
|
+
* Gets a program group by id.
|
|
214
|
+
*/
|
|
215
|
+
getProgramGroupById = this.query(removeAuthorizationParam(getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet))
|
|
216
|
+
/**
|
|
217
|
+
* List Program Group Report Service
|
|
218
|
+
*/
|
|
219
|
+
listProgramGroupReport = this.query(removeAuthorizationParam(listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet))
|
|
220
|
+
/**
|
|
221
|
+
* Updates a program group.
|
|
222
|
+
*/
|
|
223
|
+
updateProgramGroup = this.mutation(removeAuthorizationParam(updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut))
|
|
224
|
+
/**
|
|
225
|
+
* Updates a program group components.
|
|
226
|
+
*/
|
|
227
|
+
updateProgramGroupComponents = this.mutation(
|
|
228
|
+
removeAuthorizationParam(updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut),
|
|
229
|
+
)
|
|
230
|
+
/**
|
|
231
|
+
* Deletes a program group.
|
|
232
|
+
*/
|
|
233
|
+
deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
|
|
234
|
+
/**
|
|
235
|
+
* List Program Group Download Service
|
|
236
|
+
*/
|
|
237
|
+
programGroupDownload = this.query(removeAuthorizationParam(listProgramGroupDownloadServiceV1ProgramGroupsDownloadGet))
|
|
238
|
+
/**
|
|
239
|
+
* Gets list of tags.
|
|
240
|
+
*/
|
|
241
|
+
tags = this.query(removeAuthorizationParam(listTagsServiceV1TagsGet))
|
|
242
|
+
/**
|
|
243
|
+
* Validates a SCM URL.
|
|
244
|
+
*/
|
|
245
|
+
validateSCMUrl = this.mutation(removeAuthorizationParam(validateScmUrlServiceV1ReposValidateScmUrlPost))
|
|
246
|
+
/**
|
|
247
|
+
* Get Branches for a Repository
|
|
248
|
+
*/
|
|
249
|
+
getBranches = this.query(removeAuthorizationParam(listBranchesServiceV1ReposBranchesGet))
|
|
250
|
+
/**
|
|
251
|
+
* General Report Success And Errors
|
|
252
|
+
*/
|
|
253
|
+
generalReportSuccessAndErrors = this.query(
|
|
254
|
+
removeAuthorizationParam(generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet),
|
|
255
|
+
)
|
|
256
|
+
/**
|
|
257
|
+
* Analytics Repository Last Report Status
|
|
258
|
+
*/
|
|
259
|
+
analyticsRepositoryLastReportStatus = this.query(
|
|
260
|
+
removeAuthorizationParam(analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet),
|
|
261
|
+
)
|
|
262
|
+
/**
|
|
263
|
+
* Analytics Repository Last Report Status Download
|
|
264
|
+
*/
|
|
265
|
+
analyticsRepositoryLastReportStatusDownload = this.query(
|
|
266
|
+
removeAuthorizationParam(analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet),
|
|
267
|
+
)
|
|
268
|
+
/**
|
|
269
|
+
* Analytics Repository Usage
|
|
270
|
+
*/
|
|
271
|
+
analyticsRepositoryUsage = this.query(removeAuthorizationParam(analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet))
|
|
272
|
+
/**
|
|
273
|
+
* Analytics Program Groups Last Report Status
|
|
274
|
+
*/
|
|
275
|
+
analyticsProgramGroupsLastReportStatus = this.query(
|
|
276
|
+
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet),
|
|
277
|
+
)
|
|
278
|
+
/**
|
|
279
|
+
* Analytics Program Groups Last Report Status Download
|
|
280
|
+
*/
|
|
281
|
+
analyticsProgramGroupsLastReportStatusDownload = this.query(
|
|
282
|
+
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet),
|
|
283
|
+
)
|
|
284
|
+
/**
|
|
285
|
+
* Analytics User Usage
|
|
286
|
+
*/
|
|
287
|
+
analyticsUserUsage = this.query(removeAuthorizationParam(analyticsUserUsageV1AnalyticsUsersUsageGet))
|
|
288
|
+
/**
|
|
289
|
+
* Analytics User Usage Download
|
|
290
|
+
*/
|
|
291
|
+
analyticsUserUsageDownload = this.query(removeAuthorizationParam(analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet))
|
|
292
|
+
/**
|
|
293
|
+
* Analytics Repository Usage Download
|
|
294
|
+
*/
|
|
295
|
+
analyticsRepositoryUsageDownload = this.query(
|
|
296
|
+
removeAuthorizationParam(analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet),
|
|
297
|
+
)
|
|
298
|
+
/**
|
|
299
|
+
* Analytics Program Groups Usage
|
|
300
|
+
*/
|
|
301
|
+
analyticsProgramGroupsUsage = this.query(removeAuthorizationParam(analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet))
|
|
302
|
+
/**
|
|
303
|
+
* Analytics Program Groups Usage Download
|
|
304
|
+
*/
|
|
305
|
+
analyticsProgramGroupsUsageDownload = this.query(
|
|
306
|
+
removeAuthorizationParam(analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet),
|
|
307
|
+
)
|
|
308
|
+
/**
|
|
309
|
+
* Gets users from the Code Shift service.
|
|
310
|
+
*/
|
|
311
|
+
getUsersService = this.query(
|
|
312
|
+
removeAuthorizationParam(listUserServiceV1UsersGet),
|
|
313
|
+
)
|
|
314
|
+
/**
|
|
315
|
+
* Analytics Program Groups Details
|
|
316
|
+
*/
|
|
317
|
+
analyticsProgramGroupsDetails = this.query(
|
|
318
|
+
removeAuthorizationParam(analyticsProgramGroupsDetailsV1AnalyticsProgramGroupsDetailsGet),
|
|
319
|
+
)
|
|
320
|
+
/**
|
|
321
|
+
* Analytics Program Groups Details Download
|
|
322
|
+
*/
|
|
323
|
+
analyticsProgramGroupsDetailsDownload = this.query(
|
|
324
|
+
removeAuthorizationParam(analyticsProgramGroupsDetailsDownloadV1AnalyticsProgramGroupsDetailsDownloadGet),
|
|
325
|
+
)
|
|
326
|
+
/**
|
|
327
|
+
* Analytics Program Groups Details
|
|
328
|
+
*/
|
|
329
|
+
analyticsRepositoryDetails = this.query(
|
|
330
|
+
removeAuthorizationParam(analyticsRepositoryDetailedReportV1AnalyticsRepositoriesDetailsGet),
|
|
331
|
+
)
|
|
332
|
+
/**
|
|
333
|
+
* Analytics Program Groups Details Download
|
|
334
|
+
*/
|
|
335
|
+
analyticsRepositoryDetailsDownload = this.query(
|
|
336
|
+
removeAuthorizationParam(analyticsRepositoryDetailedReportDownloadV1AnalyticsRepositoriesDetailsDownloadGet),
|
|
337
|
+
)
|
|
338
|
+
/**
|
|
339
|
+
* Analytics Program Groups Target Details
|
|
340
|
+
*/
|
|
341
|
+
analyticsProgramGroupsTargetDetails = this.query(
|
|
342
|
+
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet),
|
|
343
|
+
)
|
|
344
|
+
/**
|
|
345
|
+
* Analytics Program Groups Target Details Download
|
|
346
|
+
*/
|
|
347
|
+
analyticsProgramGroupsTargetDetailsDownload = this.query(
|
|
348
|
+
removeAuthorizationParam(analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet),
|
|
349
|
+
)
|
|
350
|
+
/**
|
|
351
|
+
* Analytics Repository Target Details
|
|
352
|
+
*/
|
|
353
|
+
analyticsRepositoryTargetDetails = this.query(
|
|
354
|
+
removeAuthorizationParam(analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet),
|
|
355
|
+
)
|
|
356
|
+
/**
|
|
357
|
+
* Analytics Repository Target Details Download
|
|
358
|
+
*/
|
|
359
|
+
analyticsRepositoryTargetDetailsDownload = this.query(
|
|
360
|
+
removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
|
|
361
|
+
)
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export const codeShiftClient = new CodeShift()
|