@stack-spot/portal-network 0.198.4 → 0.199.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 +8 -0
- package/dist/api/codeShift.d.ts +209 -26
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +102 -2
- package/dist/api/codeShift.js.map +1 -1
- package/dist/client/code-shift.d.ts +67 -2
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/package.json +1 -1
- package/src/api/codeShift.ts +421 -28
- package/src/client/code-shift.ts +35 -1
package/src/client/code-shift.ts
CHANGED
|
@@ -69,10 +69,16 @@ import {
|
|
|
69
69
|
moduleFavoriteServiceAddV1ModulesModuleIdFavoritesPost,
|
|
70
70
|
moduleFavoriteServiceDeleteV1ModulesModuleIdFavoritesDelete,
|
|
71
71
|
patHealthCheckV1ScmPatHealthCheckGet,
|
|
72
|
+
getModuleDocsV1ModulesModuleIdDocsGet,
|
|
73
|
+
analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet,
|
|
74
|
+
analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet,
|
|
75
|
+
createReposBatchServiceV2ReposBatchPost,
|
|
76
|
+
getImportResultV2ReposBatchImportIdGet,
|
|
77
|
+
downloadImportResultV2ReposBatchImportIdDownloadGet,
|
|
72
78
|
} from '../api/codeShift'
|
|
73
79
|
import { DefaultAPIError } from '../error/DefaultAPIError'
|
|
74
80
|
import { codeShiftDictionary } from '../error/dictionary/code-shift'
|
|
75
|
-
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
81
|
+
import { StackspotAPIError } from '../error/StackspotAPIError'
|
|
76
82
|
import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
|
|
77
83
|
import { removeAuthorizationParam } from '../utils/remove-authorization-param'
|
|
78
84
|
import { getApiAddresses } from '../api-addresses'
|
|
@@ -94,6 +100,18 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
94
100
|
* Creates repositories in batch.
|
|
95
101
|
*/
|
|
96
102
|
createRepositoriesBatch = this.mutation(removeAuthorizationParam(createReposBatchServiceV1ReposBatchPost))
|
|
103
|
+
/**
|
|
104
|
+
* Imports repositories in batch.
|
|
105
|
+
*/
|
|
106
|
+
createRepositoriesBatchV2 = this.mutation(removeAuthorizationParam(createReposBatchServiceV2ReposBatchPost))
|
|
107
|
+
/**
|
|
108
|
+
* Gets the status of a batch import.
|
|
109
|
+
*/
|
|
110
|
+
getImportBatchResultsV2 = this.query(removeAuthorizationParam(getImportResultV2ReposBatchImportIdGet))
|
|
111
|
+
/**
|
|
112
|
+
* Downloads the import result for a batch.
|
|
113
|
+
*/
|
|
114
|
+
downloadImportBatchResultsV2 = this.query(removeAuthorizationParam(downloadImportResultV2ReposBatchImportIdDownloadGet))
|
|
97
115
|
/**
|
|
98
116
|
* Gets list of repositories.
|
|
99
117
|
*/
|
|
@@ -150,6 +168,10 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
150
168
|
* Generates a report.
|
|
151
169
|
*/
|
|
152
170
|
generateReport = this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
|
|
171
|
+
/**
|
|
172
|
+
* Gets module docs.
|
|
173
|
+
*/
|
|
174
|
+
moduleDocs = this.query(removeAuthorizationParam(getModuleDocsV1ModulesModuleIdDocsGet))
|
|
153
175
|
/**
|
|
154
176
|
* Gets repository reports.
|
|
155
177
|
*/
|
|
@@ -394,6 +416,18 @@ class CodeShift extends ReactQueryNetworkClient {
|
|
|
394
416
|
analyticsRepositoryTargetDetailsDownload = this.query(
|
|
395
417
|
removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
|
|
396
418
|
)
|
|
419
|
+
/**
|
|
420
|
+
* Analytics Modules Execution Times
|
|
421
|
+
*/
|
|
422
|
+
analyticsModulesExecutionTimes = this.query(
|
|
423
|
+
removeAuthorizationParam(analyticsModuleExecutionTimesReportV1AnalyticsModulesExecutionTimesGet),
|
|
424
|
+
)
|
|
425
|
+
/**
|
|
426
|
+
* Analytics Modules Execution Times Download
|
|
427
|
+
*/
|
|
428
|
+
analyticsModulesExecutionTimesDownload = this.query(
|
|
429
|
+
removeAuthorizationParam(analyticsModuleExecutionTimesDownloadV1AnalyticsModulesExecutionTimesDownloadGet),
|
|
430
|
+
)
|
|
397
431
|
}
|
|
398
432
|
|
|
399
433
|
export const codeShiftClient = new CodeShift()
|