@stack-spot/portal-network 0.184.0-beta.1 → 0.185.0-beta.1

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.
@@ -535,6 +535,16 @@ export type ApplicationDestroyRequest = {
535
535
  /** Destroy status. */
536
536
  status: "SUCCESS" | "FAILED";
537
537
  };
538
+ export type WorkspaceResponse = {
539
+ /** Workspace id. */
540
+ id: string;
541
+ /** Workspace name */
542
+ name: string;
543
+ /** Workspace description */
544
+ description?: string;
545
+ /** Workspace image */
546
+ imageUrl?: string;
547
+ };
538
548
  export type ImportContextRequest = {
539
549
  stackVersionId: string;
540
550
  stackVersionReference: string;
@@ -762,16 +772,6 @@ export type PluginForAppCreationV2Response = {
762
772
  requiredConnectionInterfacesByType: PluginForAppCreationV2ResponseRequiredConnectionInterfaceByType[];
763
773
  generatesConnectionInterfacesByType: PluginForAppCreationV2ResponseGeneratesConnectionInterfaceByType[];
764
774
  };
765
- export type WorkspaceResponse = {
766
- /** Workspace id. */
767
- id: string;
768
- /** Workspace name */
769
- name: string;
770
- /** Workspace description */
771
- description?: string;
772
- /** Workspace image */
773
- imageUrl?: string;
774
- };
775
775
  export type WorkspacePageResponse = {
776
776
  currentPage: number;
777
777
  pageSize: number;
@@ -1922,6 +1922,21 @@ export function updateInfrastructureControllerupdateInfraPluginsAndCreatePullReq
1922
1922
  body: updatePluginAndCreatePrRequest
1923
1923
  })));
1924
1924
  }
1925
+ /**
1926
+ * Get workspaces summary
1927
+ */
1928
+ export function workspaceControllergetWorkspacesSummary({ body }: {
1929
+ body: string[];
1930
+ }, opts?: Oazapfts.RequestOpts) {
1931
+ return oazapfts.ok(oazapfts.fetchJson<{
1932
+ status: 200;
1933
+ data: WorkspaceResponse[];
1934
+ }>("/v1/workspaces/summary", oazapfts.json({
1935
+ ...opts,
1936
+ method: "POST",
1937
+ body
1938
+ })));
1939
+ }
1925
1940
  /**
1926
1941
  * Import stack context in workspace
1927
1942
  */
@@ -58,12 +58,12 @@ import {
58
58
  getModuleV1ModulesModuleIdGet,
59
59
  analyticsProgramGroupsTargetDetailsV1AnalyticsProgramGroupsTargetDetailsGet,
60
60
  analyticsProgramGroupsTargetDetailsDownloadV1AnalyticsProgramGroupsTargetDetailsDownloadGet,
61
- analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
62
- analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
61
+ putCustomerRatingReportV1ReportsReportIdCustomerRatingPut,
63
62
  searchReposScmServiceV2ReposSearchScmPost,
64
63
  importReposWithTagsScmServiceV2ReposSearchScmSearchIdPost,
65
64
  searchReposScmV2V2ReposSearchScmSearchIdGet,
66
- putCustomerRatingReportV1ReportsReportIdCustomerRatingPut,
65
+ analyticsRepositoryTargetDetailsV1AnalyticsRepositoriesTargetDetailsGet,
66
+ analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet,
67
67
  } from '../api/codeShift'
68
68
  import { DefaultAPIError } from '../error/DefaultAPIError'
69
69
  import { codeShiftDictionary } from '../error/dictionary/code-shift'
@@ -145,6 +145,12 @@ class CodeShift extends ReactQueryNetworkClient {
145
145
  * Downloads a report as a csv file.
146
146
  */
147
147
  downloadReport = this.query(removeAuthorizationParam(downloadReportV1ReportsReportIdDownloadGet))
148
+ /**
149
+ * Put Customer Rating Report
150
+ */
151
+ updateReportRating = this.mutation(
152
+ removeAuthorizationParam(putCustomerRatingReportV1ReportsReportIdCustomerRatingPut),
153
+ )
148
154
  /**
149
155
  * Gets code shift settings
150
156
  */
@@ -360,12 +366,6 @@ class CodeShift extends ReactQueryNetworkClient {
360
366
  analyticsRepositoryTargetDetailsDownload = this.query(
361
367
  removeAuthorizationParam(analyticsRepositoryTargetDetailsDownloadV1AnalyticsRepositoriesTargetDetailsDownloadGet),
362
368
  )
363
- /**
364
- * Put Customer Rating Report
365
- */
366
- updateReportRating = this.mutation(
367
- removeAuthorizationParam(putCustomerRatingReportV1ReportsReportIdCustomerRatingPut),
368
- )
369
369
  }
370
370
 
371
371
  export const codeShiftClient = new CodeShift()
@@ -65,6 +65,7 @@ import {
65
65
  workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType,
66
66
  workspaceControllerdelete,
67
67
  workspaceControllergetWorkspaces,
68
+ workspaceControllergetWorkspacesSummary,
68
69
  workspaceStackControlleraddStacksInWorkspace,
69
70
  workspaceStackControllerdeleteStacksInWorkspace,
70
71
  workspaceStackControllerlistStacks,
@@ -159,7 +160,7 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
159
160
  * Gets workflow inputs in a workspace stack
160
161
  */
161
162
  workflowInputsInWorkspace = this.query(contextWorkflowControllergetWorkspaceWorkflowInputs as unknown as ReplaceResult<typeof contextWorkflowControllergetWorkspaceWorkflowInputs, FixedWorkflowForCreationResponse>)
162
-
163
+
163
164
  /**
164
165
  * Gets workflow inputs in an account stack
165
166
  */
@@ -554,7 +555,10 @@ class WorkspaceManagerClient extends ReactQueryNetworkClient {
554
555
  * Get list of versions with context of stack
555
556
  */
556
557
  getStacksVersionWithContext = this.query(accountStackControllerlistVersionsWithContext)
557
-
558
+ /**
559
+ * Receives a list of workspace id's and returns that workspaces detailed
560
+ */
561
+ workspacesFilterById = this.mutation(workspaceControllergetWorkspacesSummary)
558
562
  }
559
563
 
560
564
  export const workspaceManagerClient = new WorkspaceManagerClient()
@@ -1,3 +0,0 @@
1
- ### STK - STEP-START - step_id_1 ###
2
- Eu irei falhar, adeus mundo cruel
3
- ### STK - STEP-END - step_id_1 ###
@@ -1,5 +0,0 @@
1
- ### STK - STEP-START - step_id_1 ###
2
- Ola estou planejando algo
3
- ### STK - STEP-END - step_id_1 ###
4
- ### STK - STEP-START - step_id_2 ###
5
- ### STK - STEP-END - step_id_2 ###