@stack-spot/portal-network 0.38.0 → 0.39.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.
@@ -20,6 +20,7 @@ import {
20
20
  listRepositories,
21
21
  listRuntimes,
22
22
  } from '../api/cloudPlatform'
23
+ import { removeAuthorizationParam } from '../utils/remove-authorization-param'
23
24
 
24
25
  class CloudPlatformClient extends ReactQueryNetworkClient {
25
26
  constructor() {
@@ -32,55 +33,55 @@ class CloudPlatformClient extends ReactQueryNetworkClient {
32
33
  /**
33
34
  * Get list of applications
34
35
  */
35
- listApplications = this.query(listApplications)
36
+ listApplications = this.query(removeAuthorizationParam(listApplications))
36
37
  /**
37
38
  * Get an application by id
38
39
  */
39
- application = this.query(getApplication)
40
+ application = this.query(removeAuthorizationParam(getApplication))
40
41
  /**
41
42
  * Get an application history
42
43
  */
43
- applicationHistory = this.query(getApplicationHistory)
44
+ applicationHistory = this.query(removeAuthorizationParam(getApplicationHistory))
44
45
  /**
45
46
  * Get list of application deployments
46
47
  */
47
- listApplicationDeployments = this.query(listDeployments)
48
+ listApplicationDeployments = this.query(removeAuthorizationParam(listDeployments))
48
49
  /**
49
50
  * Get an application deployment by id
50
51
  */
51
- applicationDeployment = this.query(getDeployment)
52
+ applicationDeployment = this.query(removeAuthorizationParam(getDeployment))
52
53
  /**
53
54
  * Get an application deployment status
54
55
  */
55
- applicationDeploymentStatus = this.query(getDeploymentStatus)
56
+ applicationDeploymentStatus = this.query(removeAuthorizationParam(getDeploymentStatus))
56
57
  /**
57
58
  * Get an application deployment health
58
59
  */
59
- applicationDeploymentHealth = this.query(getDeploymentHealth)
60
+ applicationDeploymentHealth = this.query(removeAuthorizationParam(getDeploymentHealth))
60
61
  /**
61
62
  * Get an application deployment logs
62
63
  */
63
- applicationDeploymentLogs = this.query(getDeploymentLogs)
64
+ applicationDeploymentLogs = this.query(removeAuthorizationParam(getDeploymentLogs))
64
65
  /**
65
66
  * Get an application runtimes
66
67
  */
67
- listApplicationRuntimes = this.query(listRuntimes)
68
+ listApplicationRuntimes = this.query(removeAuthorizationParam(listRuntimes))
68
69
  /**
69
70
  * Get list of repositories
70
71
  */
71
- listRepositories = this.query(listRepositories)
72
+ listRepositories = this.query(removeAuthorizationParam(listRepositories))
72
73
  /**
73
74
  * Get list of images from a repository
74
75
  */
75
- listRepositoryImages = this.query(getRepositoryImages)
76
+ listRepositoryImages = this.query(removeAuthorizationParam(getRepositoryImages))
76
77
  /**
77
78
  * Create a deploy of the application
78
79
  */
79
- createDeployment = this.mutation(createDeployment)
80
+ createDeployment = this.mutation(removeAuthorizationParam(createDeployment))
80
81
  /**
81
82
  * Create an application
82
83
  */
83
- createApplication = this.mutation(createApplication)
84
+ createApplication = this.mutation(removeAuthorizationParam(createApplication))
84
85
  }
85
86
 
86
87
  export const cloudPlatformClient = new CloudPlatformClient()
@@ -3,7 +3,7 @@ import { addAction, addLink, addWorkspace, associateActionToPlugin, changeVisibi
3
3
  deleteAction, deleteActionVersion, deleteLink, deletePluginVersion, deleteStudio, deleteV1StacksVersionsByStackVersionId,
4
4
  delWorkspace, deprecateActionVersion, deprecatePluginVersion, deprecateStackVersionBy, downloadAction, getActionBySlug,
5
5
  getActionsVersions, getActionVersionById, getAllActionVersions, getApplicationDetailsView, getApplicationsUsesPlugin,
6
- getAvailableActionVersionsByActionSlug, getAvailableWorkflowVersionsByWorkflowSlug, getDependentPluginsVersions,
6
+ getAvailableActionVersionsByActionSlug, getDependentPluginsVersions,
7
7
  getGetPluginView, getInfrastructureEnvironmentsUsesPlugin,
8
8
  getListOfInputs, getPluginInfrastructureView, getPluginModalView, getPluginVersions, getPluginVersionsNotInUse,
9
9
  getPluginVersionUsageSummary, getStackUsesPlugin, getStackVersionById, getStackVersionListByIds, getStackWorkspaceDetailView,
@@ -11,7 +11,8 @@ import { addAction, addLink, addWorkspace, associateActionToPlugin, changeVisibi
11
11
  getStudiosToCreateButton, getStudioTabs, getUnusedStackVersions, getWorkflow, getWorkflowByStudioSlug, getWorkflowDoc,
12
12
  listActions, listActions1,
13
13
  listActionsByFilters1, listConnectionInterfaceTypes, listLinksByStackVersion, listPlugins, listPluginVersionByIdsController,
14
- listReasons, listStacksByFilters, listStarters, listWorkspaces, patchStarterV2, removeActionFromPlugin, stackModalViewSummary,
14
+ listReasons, listStacksByFilters, listStarters, listWorkflowVersion,
15
+ listWorkspaces, patchStarterV2, removeActionFromPlugin, stackModalViewSummary,
15
16
  stackVersionUsageSummary, updateStudio, updateStudioTabs } from '../api/content'
16
17
  import apis from '../apis.json'
17
18
  import { DefaultAPIError } from '../error/DefaultAPIError'
@@ -116,9 +117,9 @@ class ContentClient extends ReactQueryNetworkClient {
116
117
  */
117
118
  workflow = this.query(getWorkflow)
118
119
  /**
119
- * Gets a workflow by slug
120
+ * Gets all the versions of a workflow
120
121
  */
121
- workflowVersionsByRange = this.query(getAvailableWorkflowVersionsByWorkflowSlug)
122
+ workflowVersions = this.query(listWorkflowVersion)
122
123
  /**
123
124
  * Gets usage summary of stack
124
125
  */