@stack-spot/portal-network 0.198.4 → 0.200.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.
@@ -4,7 +4,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
4
4
  import { StackspotAPIError } from '../error/StackspotAPIError'
5
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
6
6
  import { removeAuthorizationParam } from '../utils/remove-authorization-param'
7
- import { associateWithWorkspaceEnvironment, createAddon, createDeployTemplate, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getAssociationWorkspaceEnvironmentByRuntimeId, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listAddon, listApplicationDeployments, listAssociations, listDeployTemplate, listRuntimes, listRuntimes1, listTenants, listTenants1 } from '../api/cloudPlatformHorizon'
7
+ import { associateWithWorkspaceEnvironment, createAddon, createDeployTemplate, createOrganization, createRuntime1, createTenant1, defaults, deploy, findApplicationDeploymentById, getApplicationDeploymentHealth, getApplicationDeploymentLogs, getAssociationWorkspaceEnvironmentByRuntimeId, getOrganizationById, getOrganizations, getRuntime1, getTenant1, listAddon, listApplicationDeploymentRollouts, listApplicationDeployments, listAssociations, listDeployTemplate, listRuntimes, listRuntimes1, listTenants, listTenants1, postApplicationDeploymentRolloutAction } from '../api/cloudPlatformHorizon'
8
8
  import { baseDictionary } from '../error/dictionary/base'
9
9
  import { getApiAddresses } from '../api-addresses'
10
10
 
@@ -19,7 +19,7 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
19
19
  /**
20
20
  * Get a list of organizations
21
21
  */
22
- listOrganizations= this.query(removeAuthorizationParam(getOrganizations))
22
+ listOrganizations = this.query(removeAuthorizationParam(getOrganizations))
23
23
  /**
24
24
  * Get organization by id
25
25
  */
@@ -27,11 +27,11 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
27
27
  /**
28
28
  * Get details of an tenant
29
29
  */
30
- getTenantById= this.query(removeAuthorizationParam(getTenant1))
30
+ getTenantById = this.query(removeAuthorizationParam(getTenant1))
31
31
  /**
32
32
  * Get details of an runtime
33
33
  */
34
- getRuntimeById= this.query(removeAuthorizationParam(getRuntime1))
34
+ getRuntimeById = this.query(removeAuthorizationParam(getRuntime1))
35
35
  /**
36
36
  * Create an tenant
37
37
  */
@@ -108,6 +108,14 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
108
108
  * List runtime associations to workspace's environment
109
109
  */
110
110
  listRuntimeAssociationsToEnv = this.query(removeAuthorizationParam(listAssociations))
111
+ /**
112
+ * List of application deployments rollout
113
+ */
114
+ listApplicationDeploymentRollouts = this.query(removeAuthorizationParam(listApplicationDeploymentRollouts))
115
+ /**
116
+ * Set an action to application deployment rollout
117
+ */
118
+ deployApplicationRolloutAction = this.mutation(removeAuthorizationParam(postApplicationDeploymentRolloutAction))
111
119
  }
112
120
 
113
121
  export const cloudPlatformHorizonClient = new CloudPlatformHorizonClient()
@@ -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()