@harnessio/react-rmg-service-client 0.45.0 → 0.46.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.
@@ -195,6 +195,7 @@ export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
195
195
  export type { ApprovedByDto } from './schemas/ApprovedByDto';
196
196
  export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
197
197
  export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
198
+ export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
198
199
  export type { CommentedByDto } from './schemas/CommentedByDto';
199
200
  export type { ConflictStatus } from './schemas/ConflictStatus';
200
201
  export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
@@ -220,6 +221,7 @@ export type { FreezeListResponseDto } from './schemas/FreezeListResponseDto';
220
221
  export type { Freq } from './schemas/Freq';
221
222
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
222
223
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
224
+ export type { InfrastructureDeploymentDto } from './schemas/InfrastructureDeploymentDto';
223
225
  export type { InputVariable } from './schemas/InputVariable';
224
226
  export type { InputVariableType } from './schemas/InputVariableType';
225
227
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
@@ -0,0 +1,26 @@
1
+ import type { ServiceInfoDto } from '../schemas/ServiceInfoDto';
2
+ /**
3
+ * Represents services deployed to a GitOps cluster
4
+ */
5
+ export interface ClusterDeploymentDto {
6
+ /**
7
+ * GitOps agent identifier
8
+ */
9
+ agentIdentifier: string;
10
+ /**
11
+ * Cluster identifier
12
+ */
13
+ clusterIdentifier: string;
14
+ /**
15
+ * Optional infrastructure identifier (if cluster is mapped to infra)
16
+ */
17
+ infraIdentifier?: string;
18
+ /**
19
+ * Optional infrastructure name (if cluster is mapped to infra)
20
+ */
21
+ infraName?: string;
22
+ /**
23
+ * Services deployed to this cluster
24
+ */
25
+ services: ServiceInfoDto[];
26
+ }
@@ -1,14 +1,25 @@
1
+ import type { ClusterDeploymentDto } from '../schemas/ClusterDeploymentDto';
2
+ import type { InfrastructureDeploymentDto } from '../schemas/InfrastructureDeploymentDto';
1
3
  import type { ServiceInfoDto } from '../schemas/ServiceInfoDto';
2
4
  import type { EnvironmentType } from '../schemas/EnvironmentType';
3
5
  export interface EnvironmentDashboardDto {
6
+ /**
7
+ * List of GitOps cluster deployments with their services
8
+ */
9
+ clusters?: ClusterDeploymentDto[];
4
10
  identifier: string;
5
11
  /**
6
- * Holds the information of a given infrastructure
12
+ * DEPRECATED: Use infrastructures and clusters arrays instead for complete deployment information
13
+ * @deprecated
7
14
  */
8
15
  infraInfo: {
9
16
  identifier: string;
10
17
  name: string;
11
18
  };
19
+ /**
20
+ * List of traditional infrastructure deployments with their services
21
+ */
22
+ infrastructures?: InfrastructureDeploymentDto[];
12
23
  name: string;
13
24
  /**
14
25
  * Organization identifier of Environment
@@ -22,6 +33,10 @@ export interface EnvironmentDashboardDto {
22
33
  * @default "account"
23
34
  */
24
35
  scope: 'account' | 'org' | 'project' | 'unknown';
36
+ /**
37
+ * DEPRECATED: Use infrastructures and clusters arrays instead for complete deployment information
38
+ * @deprecated
39
+ */
25
40
  serviceInfo: ServiceInfoDto[];
26
41
  type: EnvironmentType;
27
42
  }
@@ -0,0 +1,18 @@
1
+ import type { ServiceInfoDto } from '../schemas/ServiceInfoDto';
2
+ /**
3
+ * Represents services deployed to a traditional infrastructure
4
+ */
5
+ export interface InfrastructureDeploymentDto {
6
+ /**
7
+ * Infrastructure identifier
8
+ */
9
+ identifier: string;
10
+ /**
11
+ * Infrastructure name
12
+ */
13
+ name: string;
14
+ /**
15
+ * Services deployed to this infrastructure
16
+ */
17
+ services: ServiceInfoDto[];
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",