@stack-spot/portal-network 0.99.3 → 0.99.5

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.
@@ -422,6 +422,11 @@ export type SummaryResponse = {
422
422
  title: string;
423
423
  message: string;
424
424
  };
425
+ export type ExternalProvider = {
426
+ externalWorkflowLink?: string | null;
427
+ orgName?: string | null;
428
+ externalWorkflowBaseLink?: string | null;
429
+ };
425
430
  export type WorkflowSetup = "scm_runner" | "install_stk_cli";
426
431
  export type GetWorkflowExecutionJobGraphResponse = {
427
432
  id: string;
@@ -434,6 +439,7 @@ export type GetWorkflowExecutionJobGraphResponse = {
434
439
  completedAt?: string | null;
435
440
  errors: ErrorLogResponse[];
436
441
  summary: SummaryResponse[];
442
+ externalProvider?: ExternalProvider | null;
437
443
  waiting?: WorkflowSetup | null;
438
444
  };
439
445
  export type StepTypeEnum = "action" | "workflow" | "plugin" | "suspend" | "run";
@@ -521,6 +527,9 @@ export type PutWorkflowExecutionSummaryRequest = {
521
527
  title: string;
522
528
  message: string;
523
529
  };
530
+ export type PutWorkflowScmExecutionRequest = {
531
+ scmWorkflowExecutionId: string;
532
+ };
524
533
  export type WorkflowRequest2 = {
525
534
  name: string;
526
535
  label: string;
@@ -1448,6 +1457,43 @@ export function v1PutWorkflowExecutionSummaryServiceV1ExecutionsExecutionIdSumma
1448
1457
  })
1449
1458
  })));
1450
1459
  }
1460
+ /**
1461
+ * V1 Put Workflow Scm Execution Id
1462
+ */
1463
+ export function v1PutWorkflowScmExecutionIdV1ExecutionsExecutionIdBindScmPut({ executionId, authorization, putWorkflowScmExecutionRequest }: {
1464
+ executionId: string;
1465
+ authorization: string;
1466
+ putWorkflowScmExecutionRequest: PutWorkflowScmExecutionRequest;
1467
+ }, opts?: Oazapfts.RequestOpts) {
1468
+ return oazapfts.ok(oazapfts.fetchJson<{
1469
+ status: 200;
1470
+ data: any;
1471
+ } | {
1472
+ status: 400;
1473
+ data: HttpErrorResponse;
1474
+ } | {
1475
+ status: 401;
1476
+ data: HttpErrorResponse;
1477
+ } | {
1478
+ status: 404;
1479
+ data: HttpErrorResponse;
1480
+ } | {
1481
+ status: 422;
1482
+ } | {
1483
+ status: 500;
1484
+ data: HttpErrorResponse;
1485
+ } | {
1486
+ status: 503;
1487
+ data: HttpErrorResponse;
1488
+ }>(`/v1/executions/${encodeURIComponent(executionId)}/bind-scm`, oazapfts.json({
1489
+ ...opts,
1490
+ method: "PUT",
1491
+ body: putWorkflowScmExecutionRequest,
1492
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1493
+ authorization
1494
+ })
1495
+ })));
1496
+ }
1451
1497
  /**
1452
1498
  * V2 Dispatch Workflow Execution Service
1453
1499
  */
@@ -5,7 +5,7 @@ import { DefaultAPIError } from '../error/DefaultAPIError'
5
5
  import { StackspotAPIError } from '../error/StackspotAPIError'
6
6
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
7
7
  import { removeAuthorizationParam } from '../utils/remove-authorization-param'
8
- import { apply, createOrganization, createRuntime, createTenant, defaults, deploy, getOrganization, getRuntime, getTenant, listOrganizations, listRuntimes } from '../api/cloudPlatformHorizon'
8
+ import { apply, createOrganization, createRuntime, createTenant, defaults, deploy, getOrganizations, getRuntime, getTenant, listRuntimes } from '../api/cloudPlatformHorizon'
9
9
  import { baseDictionary } from '../error/dictionary/base'
10
10
 
11
11
  class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
@@ -23,11 +23,7 @@ class CloudPlatformHorizonClient extends ReactQueryNetworkClient {
23
23
  /**
24
24
  * Get a list of organizations
25
25
  */
26
- listOrganizations= this.query(removeAuthorizationParam(listOrganizations))
27
- /**
28
- * Get details of an organization
29
- */
30
- getOrganization= this.query(removeAuthorizationParam(getOrganization))
26
+ listOrganizations= this.query(removeAuthorizationParam(getOrganizations))
31
27
  /**
32
28
  * Get details of an tenant
33
29
  */