@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.
@@ -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()