@stack-spot/portal-network 0.160.0 → 0.161.0-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 +172 -0
- package/dist/api/agent-tools.d.ts +71 -5
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +88 -6
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/ai.d.ts +4 -0
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js.map +1 -1
- package/dist/api/codeShift.d.ts +372 -207
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +200 -95
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/content.d.ts +140 -308
- package/dist/api/content.d.ts.map +1 -1
- package/dist/api/content.js +79 -217
- package/dist/api/content.js.map +1 -1
- package/dist/api-addresses.d.ts +30 -0
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +57 -3
- package/dist/api-addresses.js.map +1 -1
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +2 -2
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +101 -3
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +135 -4
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +5 -49
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +2 -65
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +7 -0
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +12 -3
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +2 -2
- package/dist/client/api-management.js.map +1 -1
- package/dist/client/cloud-account.d.ts.map +1 -1
- package/dist/client/cloud-account.js +2 -2
- package/dist/client/cloud-account.js.map +1 -1
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +2 -2
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +2 -2
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts.map +1 -1
- package/dist/client/cloud-runtimes.js +2 -2
- package/dist/client/cloud-runtimes.js.map +1 -1
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/cloud-services.js +2 -2
- package/dist/client/cloud-services.js.map +1 -1
- package/dist/client/code-shift.d.ts +122 -67
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +140 -75
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +10 -4
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +12 -3
- package/dist/client/content.js.map +1 -1
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +2 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +2 -2
- package/dist/client/discovery.js.map +1 -1
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/event-bus.js +2 -2
- package/dist/client/event-bus.js.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +9 -0
- package/dist/client/gen-ai-inference.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.js +12 -3
- package/dist/client/gen-ai-inference.js.map +1 -1
- package/dist/client/insights.d.ts.map +1 -1
- package/dist/client/insights.js +2 -2
- package/dist/client/insights.js.map +1 -1
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +2 -2
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts.map +1 -1
- package/dist/client/runtime-manager.js +2 -2
- package/dist/client/runtime-manager.js.map +1 -1
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +2 -2
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +5 -4
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts.map +1 -1
- package/dist/client/workflow.js +2 -2
- package/dist/client/workflow.js.map +1 -1
- package/dist/client/workspace-ai.d.ts +1 -4
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +2 -2
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +2 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace-search.d.ts.map +1 -1
- package/dist/client/workspace-search.js +2 -2
- package/dist/client/workspace-search.js.map +1 -1
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +2 -2
- package/dist/client/workspace.js.map +1 -1
- package/dist/error/DefaultAPIError.d.ts +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js +27 -12
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/types.d.ts +19 -0
- package/dist/error/types.d.ts.map +1 -0
- package/dist/error/types.js +2 -0
- package/dist/error/types.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +6 -0
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +10 -1
- package/dist/network/NetworkClient.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +173 -11
- package/src/api/agent.ts +2 -0
- package/src/api/ai.ts +4 -0
- package/src/api/codeShift.ts +918 -537
- package/src/api/content.ts +343 -795
- package/src/api/notification.ts +2 -0
- package/src/api-addresses.ts +75 -5
- package/src/client/account.ts +2 -2
- package/src/client/agent-tools.ts +104 -5
- package/src/client/agent.ts +2 -68
- package/src/client/ai.ts +8 -2
- package/src/client/api-management.ts +2 -2
- package/src/client/cloud-account.ts +2 -2
- package/src/client/cloud-platform-horizon.ts +2 -2
- package/src/client/cloud-platform.ts +2 -2
- package/src/client/cloud-runtimes.ts +2 -2
- package/src/client/cloud-services.ts +2 -2
- package/src/client/code-shift.ts +95 -58
- package/src/client/content.ts +7 -2
- package/src/client/data-integration.ts +2 -2
- package/src/client/discovery.ts +2 -2
- package/src/client/event-bus.ts +2 -2
- package/src/client/gen-ai-inference.ts +8 -3
- package/src/client/insights.ts +2 -2
- package/src/client/notification.ts +2 -2
- package/src/client/runtime-manager.ts +2 -2
- package/src/client/secrets.ts +2 -2
- package/src/client/types.ts +7 -5
- package/src/client/workflow.ts +2 -2
- package/src/client/workspace-ai.ts +2 -2
- package/src/client/workspace-manager.ts +2 -2
- package/src/client/workspace-search.ts +2 -2
- package/src/client/workspace.ts +2 -2
- package/src/error/DefaultAPIError.ts +35 -12
- package/src/error/types.ts +21 -0
- package/src/index.ts +1 -1
- package/src/network/NetworkClient.ts +11 -1
package/src/client/code-shift.ts
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
|
|
2
2
|
import { HttpError } from '@oazapfts/runtime'
|
|
3
3
|
import {
|
|
4
|
+
analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet,
|
|
5
|
+
analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet,
|
|
6
|
+
analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet,
|
|
7
|
+
analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet,
|
|
8
|
+
analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet,
|
|
9
|
+
analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet,
|
|
10
|
+
analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet,
|
|
11
|
+
analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet,
|
|
12
|
+
analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet,
|
|
13
|
+
analyticsUserUsageV1AnalyticsUsersUsageGet,
|
|
4
14
|
checkRoleRouteV1RolesRoleGet,
|
|
5
15
|
createAccountSettingsV1SettingsPut,
|
|
6
|
-
createApplicationsBatchServiceV1ApplicationsBatchPost,
|
|
7
|
-
createApplicationServiceV1ApplicationsPost,
|
|
8
16
|
createIntegrationServiceV1IntegrationsPost,
|
|
9
17
|
createModuleServiceV1ModulesPost,
|
|
10
18
|
createProgramGroupServiceV1ProgramGroupsPost,
|
|
11
19
|
createReposBatchServiceV1ReposBatchPost,
|
|
12
20
|
createRepositoryServiceV1ReposPost,
|
|
13
21
|
defaults,
|
|
14
|
-
deleteApplicationServiceV1ApplicationsApplicationIdDelete,
|
|
15
22
|
deleteIntegrationServiceV1IntegrationsIntegrationIdDelete,
|
|
16
23
|
deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete,
|
|
17
24
|
deleteRepositoryServiceV1ReposRepositoryIdDelete,
|
|
18
25
|
dispatchModuleServiceV1ModulesDispatchesPost,
|
|
19
26
|
downloadReportV1ReportsReportIdDownloadGet,
|
|
20
27
|
downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet,
|
|
28
|
+
generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet,
|
|
21
29
|
getAccountSettingsV1SettingsGet,
|
|
22
|
-
getApplicationByIdServiceV1ApplicationsApplicationIdGet,
|
|
23
30
|
getIntegrationByIdServiceV1IntegrationsIntegrationIdGet,
|
|
24
31
|
getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet,
|
|
32
|
+
getReportPullRequestContentV1ReportsReportIdPullRequestGet,
|
|
25
33
|
getReportV1ReportsReportIdGet,
|
|
26
34
|
getRepositoryByIdServiceV1ReposRepositoryIdGet,
|
|
27
35
|
getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet,
|
|
28
|
-
|
|
29
|
-
listApplicationServiceV1ApplicationsGet,
|
|
36
|
+
listBranchesServiceV1ReposBranchesGet,
|
|
30
37
|
listIntegrationServiceV1IntegrationsGet,
|
|
31
38
|
listModulesServiceV1ModulesGet,
|
|
32
39
|
listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet,
|
|
@@ -35,57 +42,28 @@ import {
|
|
|
35
42
|
listRepositoryServiceV1ReposGet,
|
|
36
43
|
listTagsServiceV1TagsGet,
|
|
37
44
|
searchReposScmServiceV1ReposSearchScmGet,
|
|
38
|
-
updateApplicationServiceV1ApplicationsApplicationIdPut,
|
|
39
45
|
updateIntegrationServiceV1IntegrationsIntegrationIdPut,
|
|
46
|
+
updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut,
|
|
40
47
|
updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
|
|
41
48
|
updateRepositoryServiceV1ReposRepositoryIdPut,
|
|
49
|
+
validateScmUrlServiceV1ReposValidateScmUrlPost,
|
|
42
50
|
} from '../api/codeShift'
|
|
43
|
-
import apis from '../apis.json'
|
|
44
51
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
45
52
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
46
53
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
47
54
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
48
55
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
56
|
+
import { getApiAddresses } from '../api-addresses'
|
|
49
57
|
|
|
50
58
|
class CodeShift extends ReactQueryNetworkClient {
|
|
51
59
|
constructor() {
|
|
52
|
-
super(
|
|
60
|
+
super(getApiAddresses().codeShift.url, defaults)
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
56
64
|
return new DefaultAPIError(error.data, error.status, codeShiftDictionary, error.headers)
|
|
57
65
|
}
|
|
58
66
|
|
|
59
|
-
/**
|
|
60
|
-
* @deprecated use createRepository instead
|
|
61
|
-
* Creates a code shift application.
|
|
62
|
-
*/
|
|
63
|
-
createApplication = this.mutation(removeAuthorizationParam(createApplicationServiceV1ApplicationsPost))
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated use createRepositoriesBatch instead
|
|
66
|
-
* Creates a code shift application in batch.
|
|
67
|
-
*/
|
|
68
|
-
createApplicationBatch = this.mutation(removeAuthorizationParam(createApplicationsBatchServiceV1ApplicationsBatchPost))
|
|
69
|
-
/**
|
|
70
|
-
* @deprecated use repositories instead
|
|
71
|
-
* Gets code shift applications.
|
|
72
|
-
*/
|
|
73
|
-
applications = this.query(removeAuthorizationParam(listApplicationServiceV1ApplicationsGet))
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated use repository instead
|
|
76
|
-
* Gets code shift application
|
|
77
|
-
*/
|
|
78
|
-
application = this.query(removeAuthorizationParam(getApplicationByIdServiceV1ApplicationsApplicationIdGet))
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated use updateRepository instead
|
|
81
|
-
* Updates a code shift application
|
|
82
|
-
*/
|
|
83
|
-
updateApplication = this.mutation(removeAuthorizationParam(updateApplicationServiceV1ApplicationsApplicationIdPut))
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated use deleteRepository instead
|
|
86
|
-
* Deletes a code shift application.
|
|
87
|
-
*/
|
|
88
|
-
deleteImportedApp = this.mutation(removeAuthorizationParam(deleteApplicationServiceV1ApplicationsApplicationIdDelete))
|
|
89
67
|
/**
|
|
90
68
|
* Creates a repository.
|
|
91
69
|
*/
|
|
@@ -110,6 +88,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
110
88
|
* Updates a repository
|
|
111
89
|
*/
|
|
112
90
|
updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
|
|
91
|
+
/**
|
|
92
|
+
* Get a report for a pull request by id.
|
|
93
|
+
*/
|
|
94
|
+
getReportPullRequestContent = this.query(removeAuthorizationParam(getReportPullRequestContentV1ReportsReportIdPullRequestGet))
|
|
113
95
|
/**
|
|
114
96
|
* Gets modules.
|
|
115
97
|
*/
|
|
@@ -122,11 +104,6 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
122
104
|
* Generates a report.
|
|
123
105
|
*/
|
|
124
106
|
generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
|
|
125
|
-
/**
|
|
126
|
-
* @deprecated use repositoryReports instead
|
|
127
|
-
* Gets reports.
|
|
128
|
-
*/
|
|
129
|
-
reports = this.query(removeAuthorizationParam(listApplicationReportV1ApplicationsApplicationIdReportsGet))
|
|
130
107
|
/**
|
|
131
108
|
* Gets repository reports.
|
|
132
109
|
*/
|
|
@@ -164,67 +141,127 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
164
141
|
* We do not use opa in this api, so this is the fn needed to check permissions.
|
|
165
142
|
*/
|
|
166
143
|
validateRolePermissions = this.query(removeAuthorizationParam(checkRoleRouteV1RolesRoleGet))
|
|
167
|
-
|
|
168
144
|
/**
|
|
169
145
|
* Creates an integration
|
|
170
146
|
*/
|
|
171
147
|
createIntegration = this.mutation(removeAuthorizationParam(createIntegrationServiceV1IntegrationsPost))
|
|
172
|
-
|
|
173
148
|
/**
|
|
174
149
|
* Lists integrations
|
|
175
150
|
*/
|
|
176
151
|
listIntegration = this.query(removeAuthorizationParam(listIntegrationServiceV1IntegrationsGet))
|
|
177
|
-
|
|
178
152
|
/**
|
|
179
153
|
* Gets an integration by id
|
|
180
154
|
*/
|
|
181
155
|
getIntegrationById = this.query(removeAuthorizationParam(getIntegrationByIdServiceV1IntegrationsIntegrationIdGet))
|
|
182
|
-
|
|
183
156
|
/**
|
|
184
157
|
* Updates an integration
|
|
185
158
|
*/
|
|
186
159
|
updateIntegration = this.mutation(removeAuthorizationParam(updateIntegrationServiceV1IntegrationsIntegrationIdPut))
|
|
187
|
-
|
|
188
160
|
/**
|
|
189
161
|
* Deletes an integration
|
|
190
162
|
*/
|
|
191
163
|
deleteIntegration = this.mutation(removeAuthorizationParam(deleteIntegrationServiceV1IntegrationsIntegrationIdDelete))
|
|
192
|
-
|
|
193
164
|
/**
|
|
194
165
|
* Creates a program group.
|
|
195
166
|
*/
|
|
196
167
|
createProgramGroup = this.mutation(removeAuthorizationParam(createProgramGroupServiceV1ProgramGroupsPost))
|
|
197
|
-
|
|
198
168
|
/**
|
|
199
169
|
* Gets list of program groups.
|
|
200
170
|
*/
|
|
201
171
|
listProgramGroups = this.query(removeAuthorizationParam(listProgramGroupServiceV1ProgramGroupsGet))
|
|
202
|
-
|
|
203
172
|
/**
|
|
204
173
|
* Gets a program group by id.
|
|
205
174
|
*/
|
|
206
175
|
getProgramGroupById = this.query(removeAuthorizationParam(getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet))
|
|
207
|
-
|
|
208
176
|
/**
|
|
209
|
-
|
|
210
|
-
|
|
177
|
+
* List Program Group Report Service
|
|
178
|
+
*/
|
|
211
179
|
listProgramGroupReport = this.query(removeAuthorizationParam(listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet))
|
|
212
|
-
|
|
213
180
|
/**
|
|
214
181
|
* Updates a program group.
|
|
215
182
|
*/
|
|
216
183
|
updateProgramGroup = this.mutation(removeAuthorizationParam(updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut))
|
|
217
|
-
|
|
184
|
+
/**
|
|
185
|
+
* Updates a program group components.
|
|
186
|
+
*/
|
|
187
|
+
updateProgramGroupComponents = this.mutation(
|
|
188
|
+
removeAuthorizationParam(updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut),
|
|
189
|
+
)
|
|
218
190
|
/**
|
|
219
191
|
* Deletes a program group.
|
|
220
192
|
*/
|
|
221
193
|
deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
|
|
222
|
-
|
|
223
194
|
/**
|
|
224
195
|
* Gets list of tags.
|
|
225
196
|
*/
|
|
226
197
|
tags = this.query(removeAuthorizationParam(listTagsServiceV1TagsGet))
|
|
198
|
+
/**
|
|
199
|
+
* Validates a SCM URL.
|
|
200
|
+
*/
|
|
201
|
+
validateSCMUrl = this.mutation(removeAuthorizationParam(validateScmUrlServiceV1ReposValidateScmUrlPost))
|
|
202
|
+
/**
|
|
203
|
+
* Get Branches for a Repository
|
|
204
|
+
*/
|
|
205
|
+
getBranches = this.query(removeAuthorizationParam(listBranchesServiceV1ReposBranchesGet))
|
|
227
206
|
|
|
207
|
+
/**
|
|
208
|
+
* General Report Success And Errors
|
|
209
|
+
*/
|
|
210
|
+
generalReportSuccessAndErrors = this.query(
|
|
211
|
+
removeAuthorizationParam(generalReportSuccessAndErrorsV1AnalyticsReportsGeneralSuccessAndErrorsGet),
|
|
212
|
+
)
|
|
213
|
+
/**
|
|
214
|
+
* Analytics Repository Last Report Status
|
|
215
|
+
*/
|
|
216
|
+
analyticsRepositoryLastReportStatus = this.query(
|
|
217
|
+
removeAuthorizationParam(analyticsRepositoryLastReportStatusV1AnalyticsRepositoriesLastReportStatusGet),
|
|
218
|
+
)
|
|
219
|
+
/**
|
|
220
|
+
* Analytics Repository Last Report Status Download
|
|
221
|
+
*/
|
|
222
|
+
analyticsRepositoryLastReportStatusDownload = this.query(
|
|
223
|
+
removeAuthorizationParam(analyticsRepositoryLastReportStatusDownloadV1AnalyticsRepositoriesLastReportStatusDownloadGet),
|
|
224
|
+
)
|
|
225
|
+
/**
|
|
226
|
+
* Analytics Repository Usage
|
|
227
|
+
*/
|
|
228
|
+
analyticsRepositoryUsage = this.query(removeAuthorizationParam(analyticsRepositoryUsageV1AnalyticsRepositoriesUsageGet))
|
|
229
|
+
/**
|
|
230
|
+
* Analytics Program Groups Last Report Status
|
|
231
|
+
*/
|
|
232
|
+
analyticsProgramGroupsLastReportStatus = this.query(
|
|
233
|
+
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusV1AnalyticsProgramGroupsLastReportStatusGet),
|
|
234
|
+
)
|
|
235
|
+
/**
|
|
236
|
+
* Analytics Program Groups Usage
|
|
237
|
+
*/
|
|
238
|
+
analyticsProgramGroupsUsage = this.query(removeAuthorizationParam(analyticsProgramGroupsUsageV1AnalyticsProgramGroupsUsageGet))
|
|
239
|
+
/**
|
|
240
|
+
* Analytics User Usage
|
|
241
|
+
*/
|
|
242
|
+
analyticsUserUsage = this.query(removeAuthorizationParam(analyticsUserUsageV1AnalyticsUsersUsageGet))
|
|
243
|
+
/**
|
|
244
|
+
* Analytics User Usage Download
|
|
245
|
+
*/
|
|
246
|
+
analyticsUserUsageDownload = this.query(removeAuthorizationParam(analyticsUserUsageDownloadV1AnalyticsUsersUsageDownloadGet))
|
|
247
|
+
/**
|
|
248
|
+
* Analytics Repository Usage Download
|
|
249
|
+
*/
|
|
250
|
+
analyticsRepositoryUsageDownload = this.query(
|
|
251
|
+
removeAuthorizationParam(analyticsRepositoryUsageDownloadV1AnalyticsRepositoriesUsageDownloadGet),
|
|
252
|
+
)
|
|
253
|
+
/**
|
|
254
|
+
* Analytics Program Groups Last Report Status Download
|
|
255
|
+
*/
|
|
256
|
+
analyticsProgramGroupsLastReportStatusDownload = this.query(
|
|
257
|
+
removeAuthorizationParam(analyticsProgramGroupsLastReportStatusDownloadV1AnalyticsProgramGroupsLastReportStatusDownloadGet),
|
|
258
|
+
)
|
|
259
|
+
/**
|
|
260
|
+
* Analytics Program Groups Usage Download
|
|
261
|
+
*/
|
|
262
|
+
analyticsProgramGroupsUsageDownload = this.query(
|
|
263
|
+
removeAuthorizationParam(analyticsProgramGroupsUsageDownloadV1AnalyticsProgramGroupsUsageDownloadGet),
|
|
264
|
+
)
|
|
228
265
|
}
|
|
229
266
|
|
|
230
267
|
export const codeShiftClient = new CodeShift()
|
package/src/client/content.ts
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
getDependentWorkflowVersions,
|
|
34
34
|
getGetPluginView,
|
|
35
35
|
getInfrastructureEnvironmentsUsesPlugin,
|
|
36
|
+
getInputs1,
|
|
36
37
|
getListOfInputs,
|
|
37
38
|
getPlugin,
|
|
38
39
|
getPluginInfrastructureView,
|
|
@@ -96,19 +97,19 @@ import {
|
|
|
96
97
|
updateStudio,
|
|
97
98
|
updateStudioTabs,
|
|
98
99
|
} from '../api/content'
|
|
99
|
-
import apis from '../apis.json'
|
|
100
100
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
101
101
|
import { cntDictionary } from '../error/dictionary/cnt'
|
|
102
102
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
103
103
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
104
104
|
import { OperationObject } from '../network/types'
|
|
105
105
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
106
|
+
import { getApiAddresses } from '../api-addresses'
|
|
106
107
|
|
|
107
108
|
const getStudiosWithoutAuthorization = removeAuthorizationParam(getStudios)
|
|
108
109
|
|
|
109
110
|
class ContentClient extends ReactQueryNetworkClient {
|
|
110
111
|
constructor() {
|
|
111
|
-
super(
|
|
112
|
+
super(getApiAddresses().content.url, defaults)
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -528,6 +529,10 @@ class ContentClient extends ReactQueryNetworkClient {
|
|
|
528
529
|
* Get usage summary of workflow version
|
|
529
530
|
*/
|
|
530
531
|
workflowVersionUsageSummary = this.query(getWorkflowVersionUsageSummary)
|
|
532
|
+
/**
|
|
533
|
+
* Get list of inputs of a workflow
|
|
534
|
+
*/
|
|
535
|
+
workflowInputs = this.query(getInputs1)
|
|
531
536
|
}
|
|
532
537
|
|
|
533
538
|
export const contentClient = new ContentClient()
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
splitUploadedFileV1FileUploadFileUploadIdSplitPost,
|
|
26
26
|
updateKsV1KnowledgeSourcesSlugPatch,
|
|
27
27
|
} from '../api/dataIntegration'
|
|
28
|
-
import apis from '../apis.json'
|
|
29
28
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
30
29
|
import { baseDictionary } from '../error/dictionary/base'
|
|
31
30
|
import { FileUploadError } from '../error/FileUploadError'
|
|
32
31
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
33
32
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
34
33
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
34
|
+
import { getApiAddresses } from '../api-addresses'
|
|
35
35
|
|
|
36
36
|
class DataIntegrationClient extends ReactQueryNetworkClient {
|
|
37
37
|
constructor() {
|
|
38
|
-
super(
|
|
38
|
+
super(getApiAddresses().dataIntegration.url, defaults)
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
package/src/client/discovery.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { attach, createHypothesis, defaults, deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber, download, findHypothesisByNumber, getAll, getById, list1, list2, listAllDocumentsWithHypotheses, listHypothesis, listVersions, upload } from '../api/discovery'
|
|
3
|
-
import apis from '../apis.json'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { baseDictionary } from '../error/dictionary/base'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
8
7
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
+
import { getApiAddresses } from '../api-addresses'
|
|
9
9
|
|
|
10
10
|
class DiscoveryClient extends ReactQueryNetworkClient {
|
|
11
11
|
|
|
12
12
|
constructor() {
|
|
13
|
-
super(
|
|
13
|
+
super(getApiAddresses().discovery.url, defaults)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
package/src/client/event-bus.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { HttpError } from '@oazapfts/runtime'
|
|
|
2
2
|
import { CompletablePromise } from '@stack-spot/opa'
|
|
3
3
|
import { cloneDeep } from 'lodash'
|
|
4
4
|
import { defaults, EventProcessingResponse, Event as EventType, sendEvents } from '../api/eventBus'
|
|
5
|
-
import apis from '../apis.json'
|
|
6
5
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
7
6
|
import { baseDictionary } from '../error/dictionary/base'
|
|
8
7
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
9
8
|
import { NetworkClient } from '../network/NetworkClient'
|
|
9
|
+
import { getApiAddresses } from '../api-addresses'
|
|
10
10
|
|
|
11
11
|
export const EVENTS_STORAGE_IDENTIFIER = 'eventsError'
|
|
12
12
|
const DEFER_MS = 5000
|
|
@@ -17,7 +17,7 @@ class EventBusClient extends NetworkClient {
|
|
|
17
17
|
private lock = false
|
|
18
18
|
|
|
19
19
|
constructor() {
|
|
20
|
-
super(
|
|
20
|
+
super(getApiAddresses().eventBus.url)
|
|
21
21
|
defaults.baseUrl = ''
|
|
22
22
|
defaults.fetch = (...args) => this.fetch(...args)
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { HttpError } from '@oazapfts/runtime'
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { getApiAddresses } from '../api-addresses'
|
|
4
|
+
import { addSelfHostedModelV1LlmModelsPost, agentChatV1AgentAgentIdChatPost, defaults, deleteModelResourcesV1LlmResourcesResourceIdDelete, deleteV1LlmModelsModelIdDelete, getModelV1LlmModelsModelIdGet, listLlmProvidersV1LlmProvidersGet, listModelsV1LlmModelsGet, saveOrUpdateModelResourcesV1LlmModelsModelIdResourcesPut, toggleModelStatusV1LlmModelsModelIdPatch, updateV1LlmModelsModelIdPut } from '../api/genAiInference'
|
|
5
5
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
6
6
|
import { inferenceDictionary } from '../error/dictionary/ai-inference'
|
|
7
7
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
@@ -10,7 +10,7 @@ import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
|
10
10
|
|
|
11
11
|
class GenAiInference extends ReactQueryNetworkClient {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(
|
|
13
|
+
super(getApiAddresses().genAiInference.url, defaults)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -55,6 +55,11 @@ class GenAiInference extends ReactQueryNetworkClient {
|
|
|
55
55
|
* Deletes a specific model resource by resource ID.
|
|
56
56
|
*/
|
|
57
57
|
deleteModelResource = this.mutation(removeAuthorizationParam(deleteModelResourcesV1LlmResourcesResourceIdDelete))
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Interaction with a specific AI agent
|
|
61
|
+
*/
|
|
62
|
+
sendAgentMessage = this.mutation(removeAuthorizationParam(agentChatV1AgentAgentIdChatPost))
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
export const genAiInferenceClient = new GenAiInference()
|
package/src/client/insights.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { defaults, downloadAccountData, getDashboardAccount } from '../api/insights'
|
|
3
|
-
import apis from '../apis.json'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { baseDictionary } from '../error/dictionary/base'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
+
import { getApiAddresses } from '../api-addresses'
|
|
8
8
|
|
|
9
9
|
class InsightsClient extends ReactQueryNetworkClient {
|
|
10
10
|
|
|
11
11
|
constructor() {
|
|
12
|
-
super(
|
|
12
|
+
super(getApiAddresses().insights.url, defaults)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { commit, committedNotifications, defaults, findAll } from '../api/notification'
|
|
3
|
-
import apis from '../apis.json'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { baseDictionary } from '../error/dictionary/base'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
+
import { getApiAddresses } from '../api-addresses'
|
|
8
8
|
|
|
9
9
|
class NotificationClient extends ReactQueryNetworkClient {
|
|
10
10
|
|
|
11
11
|
constructor() {
|
|
12
|
-
super(
|
|
12
|
+
super(getApiAddresses().notification.url, defaults)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { defaults, getAppInfo, getAppsInRealm, getPluginDeployments, getRunByUlid, getRunsOnAllEnvs, getRunsOnEnv, getRunsRunning, getRunTaskPlugins, getRunTasks, runRollbackApp1, runRollbackInfra1 } from '../api/apiRuntime'
|
|
3
|
-
import apis from '../apis.json'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { rteDictionary } from '../error/dictionary/rte'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
+
import { getApiAddresses } from '../api-addresses'
|
|
8
8
|
|
|
9
9
|
class RuntimeManagerClient extends ReactQueryNetworkClient {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(
|
|
11
|
+
super(getApiAddresses().apiRuntime.url, defaults)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
package/src/client/secrets.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
|
|
3
3
|
import { createKey, defaults, deleteKey, deleteSecretValue, editKey, encrypt, getAll1, getAvailability, updateSecretValue } from '../api/secrets'
|
|
4
|
-
import apis from '../apis.json'
|
|
5
4
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
6
5
|
import { secretsDictionary } from '../error/dictionary/secrets'
|
|
7
6
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
8
7
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
8
|
+
import { getApiAddresses } from '../api-addresses'
|
|
9
9
|
|
|
10
10
|
class SecretClient extends ReactQueryNetworkClient {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(
|
|
12
|
+
super(getApiAddresses().secrets.url, defaults)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
package/src/client/types.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RequestOpts } from '@oazapfts/runtime'
|
|
2
2
|
import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse, GroupsFromResourceResponse, MembersFromResourceResponse } from '../api/account'
|
|
3
|
-
import {
|
|
4
|
-
import { HttpMethod } from '../api/agent-tools'
|
|
3
|
+
import { AgentVisibilityLevelEnum, HttpMethod, ListAgentResponse, VisibilityLevelEnum } from '../api/agent-tools'
|
|
5
4
|
import { ChatRequest, ChatResponse3, ContentDependencyResponse, ConversationHistoryResponse, ConversationResponse, DependencyResponse } from '../api/ai'
|
|
6
5
|
import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount'
|
|
7
6
|
import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices'
|
|
@@ -220,6 +219,7 @@ export interface WorkspaceAiMembersPermissions {
|
|
|
220
219
|
totalPages: number,
|
|
221
220
|
}
|
|
222
221
|
|
|
222
|
+
|
|
223
223
|
export interface WorkspaceAiGroupsPermissions extends GroupsFromResourceResponse {
|
|
224
224
|
actions: Action[],
|
|
225
225
|
}
|
|
@@ -358,12 +358,14 @@ export type FixVariables<
|
|
|
358
358
|
|
|
359
359
|
export type ReplaceResult<T extends (...args: any[]) => Promise<any>, Fix> = (...args: Parameters<T>) => Promise<Fix>
|
|
360
360
|
|
|
361
|
-
export interface AgentResponseWithBuiltIn extends
|
|
361
|
+
export interface AgentResponseWithBuiltIn extends Omit<ListAgentResponse, 'conversation_starter' | 'avatar'> {
|
|
362
362
|
builtIn?: boolean,
|
|
363
363
|
spaceName?: string,
|
|
364
|
-
|
|
364
|
+
conversation_starter?: string[] | null,
|
|
365
|
+
avatar?: string | null | undefined,
|
|
366
|
+
}
|
|
365
367
|
|
|
366
|
-
export type AgentVisibilityLevel =
|
|
368
|
+
export type AgentVisibilityLevel = AgentVisibilityLevelEnum | VisibilityLevelEnum
|
|
367
369
|
|
|
368
370
|
export interface AgentToolsOpenAPIPreview {
|
|
369
371
|
name: string,
|
package/src/client/workflow.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { createApiServiceWorkflowsCreateApiDispatchPost, defaults, getExecutionDispatchRequestServiceWorkflowsExecutionIdRequestGet, getExecutionStatusServiceWorkflowsExecutionStatusExecutionIdGet, healthCheckServiceWorkflowsHealthCheckDispatchPost, runActionServiceWorkflowsRunActionDispatchPost, v1AcceptWorkflowExecutionJobSuspendedServiceV1ExecutionsExecutionIdJobsJobIdAcceptPost, v1GetWorkflowExecutionAttemptsV1ExecutionsExecutionIdAttemptsGet, v1GetWorkflowExecutionJobDetailServiceV1ExecutionsExecutionIdJobsJobIdGet, v1GetWorkflowExecutionJobGraphServiceV1ExecutionsExecutionIdGet, v1RefuseWorkflowExecutionJobSuspendedServiceV1ExecutionsExecutionIdJobsJobIdRefusePost, v1RetryWorkflowExecutionV1ExecutionsExecutionIdRetryPost } from '../api/workflows'
|
|
3
|
-
import apis from '../apis.json'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { actionDictionary } from '../error/dictionary/action'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
8
7
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
8
|
+
import { getApiAddresses } from '../api-addresses'
|
|
9
9
|
|
|
10
10
|
class WorkflowClient extends ReactQueryNetworkClient {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(
|
|
12
|
+
super(getApiAddresses().workflows.url, defaults)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
updateWorkspaceV1WorkspacesWorkspaceIdPatch,
|
|
23
23
|
useShareableLinkV1ShareShareIdPatch,
|
|
24
24
|
} from '../api/workspace-ai'
|
|
25
|
-
import apis from '../apis.json'
|
|
26
25
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
27
26
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
28
27
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
29
28
|
import { FixedAddResourceToWorkspaceAi, FixedWorkspaceAiPermissions, ReplaceResult } from './types'
|
|
29
|
+
import { getApiAddresses } from '../api-addresses'
|
|
30
30
|
|
|
31
31
|
class WorkspaceAiClient extends ReactQueryNetworkClient {
|
|
32
32
|
constructor() {
|
|
33
|
-
super(
|
|
33
|
+
super(getApiAddresses()['workspace-ai'].url, defaults)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -72,7 +72,6 @@ import {
|
|
|
72
72
|
workspaceVariableControllerfindByName,
|
|
73
73
|
workspaceVariableControllerupsert,
|
|
74
74
|
} from '../api/workspaceManager'
|
|
75
|
-
import apis from '../apis.json'
|
|
76
75
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
77
76
|
import { workspaceDictionary } from '../error/dictionary/workspace'
|
|
78
77
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
@@ -80,10 +79,11 @@ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
|
80
79
|
import { contentClient } from './content'
|
|
81
80
|
import { FixedFullInputContextResponse, FixedPaginatedActivityResponse, FixedPluginForAppCreationV2Response, FixedWorkflowForCreationResponse, ReplaceResult } from './types'
|
|
82
81
|
import { workspaceClient } from './workspace'
|
|
82
|
+
import { getApiAddresses } from '../api-addresses'
|
|
83
83
|
|
|
84
84
|
class WorkspaceManagerClient extends ReactQueryNetworkClient {
|
|
85
85
|
constructor() {
|
|
86
|
-
super(
|
|
86
|
+
super(getApiAddresses().workspaceManager.url, defaults)
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { HttpError } from '@oazapfts/runtime'
|
|
2
2
|
import { clearUserHistory, defaults, deleteUserHistoryItem, getUserHistory, search } from '../api/workspaceSearchEngine'
|
|
3
|
-
import apis from '../apis.json'
|
|
4
3
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
5
4
|
import { baseDictionary } from '../error/dictionary/base'
|
|
6
5
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
7
6
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
7
|
+
import { getApiAddresses } from '../api-addresses'
|
|
8
8
|
|
|
9
9
|
class WorkspaceSearchClient extends ReactQueryNetworkClient {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(
|
|
11
|
+
super(getApiAddresses().workspaceSearchEngine.url, defaults)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|
package/src/client/workspace.ts
CHANGED
|
@@ -82,16 +82,16 @@ import {
|
|
|
82
82
|
workspaceVariableV2Controllerupsert,
|
|
83
83
|
} from '../api/workspace'
|
|
84
84
|
|
|
85
|
-
import apis from '../apis.json'
|
|
86
85
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
87
86
|
import { workspaceDictionary } from '../error/dictionary/workspace'
|
|
88
87
|
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
89
88
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
90
89
|
import { OperationObject } from '../network/types'
|
|
90
|
+
import { getApiAddresses } from '../api-addresses'
|
|
91
91
|
|
|
92
92
|
class WorkspaceClient extends ReactQueryNetworkClient {
|
|
93
93
|
constructor() {
|
|
94
|
-
super(
|
|
94
|
+
super(getApiAddresses().workspace.url, defaults)
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
protected buildStackSpotError(error: HttpError): StackspotAPIError {
|