@stack-spot/portal-network 0.152.0-beta.2 → 0.153.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.
@@ -3,15 +3,12 @@ import { HttpError } from '@oazapfts/runtime'
3
3
  import {
4
4
  checkRoleRouteV1RolesRoleGet,
5
5
  createAccountSettingsV1SettingsPut,
6
- createApplicationsBatchServiceV1ApplicationsBatchPost,
7
- createApplicationServiceV1ApplicationsPost,
8
6
  createIntegrationServiceV1IntegrationsPost,
9
7
  createModuleServiceV1ModulesPost,
10
8
  createProgramGroupServiceV1ProgramGroupsPost,
11
9
  createReposBatchServiceV1ReposBatchPost,
12
10
  createRepositoryServiceV1ReposPost,
13
11
  defaults,
14
- deleteApplicationServiceV1ApplicationsApplicationIdDelete,
15
12
  deleteIntegrationServiceV1IntegrationsIntegrationIdDelete,
16
13
  deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete,
17
14
  deleteRepositoryServiceV1ReposRepositoryIdDelete,
@@ -19,14 +16,12 @@ import {
19
16
  downloadReportV1ReportsReportIdDownloadGet,
20
17
  downloadSearchReposScmServiceV1ReposSearchScmSearchRepoIdDownloadGet,
21
18
  getAccountSettingsV1SettingsGet,
22
- getApplicationByIdServiceV1ApplicationsApplicationIdGet,
23
19
  getIntegrationByIdServiceV1IntegrationsIntegrationIdGet,
24
20
  getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet,
21
+ getReportPullRequestContentV1ReportsReportIdPullRequestGet,
25
22
  getReportV1ReportsReportIdGet,
26
23
  getRepositoryByIdServiceV1ReposRepositoryIdGet,
27
24
  getStatusSearchReposScmServiceV1ReposSearchScmSearchRepoIdStatusGet,
28
- listApplicationReportV1ApplicationsApplicationIdReportsGet,
29
- listApplicationServiceV1ApplicationsGet,
30
25
  listIntegrationServiceV1IntegrationsGet,
31
26
  listModulesServiceV1ModulesGet,
32
27
  listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet,
@@ -35,10 +30,11 @@ import {
35
30
  listRepositoryServiceV1ReposGet,
36
31
  listTagsServiceV1TagsGet,
37
32
  searchReposScmServiceV1ReposSearchScmGet,
38
- updateApplicationServiceV1ApplicationsApplicationIdPut,
39
33
  updateIntegrationServiceV1IntegrationsIntegrationIdPut,
34
+ updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut,
40
35
  updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut,
41
36
  updateRepositoryServiceV1ReposRepositoryIdPut,
37
+ validateScmUrlServiceV1ReposValidateScmUrlPost,
42
38
  } from '../api/codeShift'
43
39
  import apis from '../apis.json'
44
40
  import { DefaultAPIError } from '../error/DefaultAPIError'
@@ -56,36 +52,6 @@ class CodeShift extends ReactQueryNetworkClient {
56
52
  return new DefaultAPIError(error.data, error.status, codeShiftDictionary, error.headers)
57
53
  }
58
54
 
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
55
  /**
90
56
  * Creates a repository.
91
57
  */
@@ -110,6 +76,10 @@ class CodeShift extends ReactQueryNetworkClient {
110
76
  * Updates a repository
111
77
  */
112
78
  updateRepository = this.mutation(removeAuthorizationParam(updateRepositoryServiceV1ReposRepositoryIdPut))
79
+ /**
80
+ * Get a report for a pull request by id.
81
+ */
82
+ getReportPullRequestContent = this.query(removeAuthorizationParam(getReportPullRequestContentV1ReportsReportIdPullRequestGet))
113
83
  /**
114
84
  * Gets modules.
115
85
  */
@@ -122,11 +92,6 @@ class CodeShift extends ReactQueryNetworkClient {
122
92
  * Generates a report.
123
93
  */
124
94
  generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
125
- /**
126
- * @deprecated use repositoryReports instead
127
- * Gets reports.
128
- */
129
- reports = this.query(removeAuthorizationParam(listApplicationReportV1ApplicationsApplicationIdReportsGet))
130
95
  /**
131
96
  * Gets repository reports.
132
97
  */
@@ -164,67 +129,64 @@ class CodeShift extends ReactQueryNetworkClient {
164
129
  * We do not use opa in this api, so this is the fn needed to check permissions.
165
130
  */
166
131
  validateRolePermissions = this.query(removeAuthorizationParam(checkRoleRouteV1RolesRoleGet))
167
-
168
132
  /**
169
133
  * Creates an integration
170
134
  */
171
135
  createIntegration = this.mutation(removeAuthorizationParam(createIntegrationServiceV1IntegrationsPost))
172
-
173
136
  /**
174
137
  * Lists integrations
175
138
  */
176
139
  listIntegration = this.query(removeAuthorizationParam(listIntegrationServiceV1IntegrationsGet))
177
-
178
140
  /**
179
141
  * Gets an integration by id
180
142
  */
181
143
  getIntegrationById = this.query(removeAuthorizationParam(getIntegrationByIdServiceV1IntegrationsIntegrationIdGet))
182
-
183
144
  /**
184
145
  * Updates an integration
185
146
  */
186
147
  updateIntegration = this.mutation(removeAuthorizationParam(updateIntegrationServiceV1IntegrationsIntegrationIdPut))
187
-
188
148
  /**
189
149
  * Deletes an integration
190
150
  */
191
151
  deleteIntegration = this.mutation(removeAuthorizationParam(deleteIntegrationServiceV1IntegrationsIntegrationIdDelete))
192
-
193
152
  /**
194
153
  * Creates a program group.
195
154
  */
196
155
  createProgramGroup = this.mutation(removeAuthorizationParam(createProgramGroupServiceV1ProgramGroupsPost))
197
-
198
156
  /**
199
157
  * Gets list of program groups.
200
158
  */
201
159
  listProgramGroups = this.query(removeAuthorizationParam(listProgramGroupServiceV1ProgramGroupsGet))
202
-
203
160
  /**
204
161
  * Gets a program group by id.
205
162
  */
206
163
  getProgramGroupById = this.query(removeAuthorizationParam(getProgramGroupByIdServiceV1ProgramGroupsProgramGroupIdGet))
207
-
208
164
  /**
209
- * List Program Group Report Service
210
- */
165
+ * List Program Group Report Service
166
+ */
211
167
  listProgramGroupReport = this.query(removeAuthorizationParam(listProgramGroupReportServiceV1ProgramGroupsProgramGroupIdReportsGet))
212
-
213
168
  /**
214
169
  * Updates a program group.
215
170
  */
216
171
  updateProgramGroup = this.mutation(removeAuthorizationParam(updateProgramGroupServiceV1ProgramGroupsProgramGroupIdPut))
217
-
172
+ /**
173
+ * Updates a program group components.
174
+ */
175
+ updateProgramGroupComponents = this.mutation(
176
+ removeAuthorizationParam(updateProgramGroupComponentsServiceV1ProgramGroupsProgramGroupIdComponentsPut),
177
+ )
218
178
  /**
219
179
  * Deletes a program group.
220
180
  */
221
181
  deleteProgramGroup = this.mutation(removeAuthorizationParam(deleteProgramGroupServiceV1ProgramGroupsProgramGroupIdDelete))
222
-
223
182
  /**
224
183
  * Gets list of tags.
225
184
  */
226
185
  tags = this.query(removeAuthorizationParam(listTagsServiceV1TagsGet))
227
-
186
+ /**
187
+ * Validates a SCM URL.
188
+ */
189
+ validateSCMUrl = this.mutation(removeAuthorizationParam(validateScmUrlServiceV1ReposValidateScmUrlPost))
228
190
  }
229
191
 
230
192
  export const codeShiftClient = new CodeShift()