@harnessio/react-rmg-service-client 0.45.0 → 0.47.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,13 +195,17 @@ 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';
201
+ export type { ConnectorMetadata } from './schemas/ConnectorMetadata';
200
202
  export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
201
203
  export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
202
204
  export type { CreatedByDto } from './schemas/CreatedByDto';
205
+ export type { DeploymentTypeEnum } from './schemas/DeploymentTypeEnum';
203
206
  export type { EnvironmentDashboardDto } from './schemas/EnvironmentDashboardDto';
204
207
  export type { EnvironmentDto } from './schemas/EnvironmentDto';
208
+ export type { EnvironmentMetadata } from './schemas/EnvironmentMetadata';
205
209
  export type { EnvironmentType } from './schemas/EnvironmentType';
206
210
  export type { Error } from './schemas/Error';
207
211
  export type { EventDto } from './schemas/EventDto';
@@ -220,6 +224,8 @@ export type { FreezeListResponseDto } from './schemas/FreezeListResponseDto';
220
224
  export type { Freq } from './schemas/Freq';
221
225
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
222
226
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
227
+ export type { InfrastructureDeploymentDto } from './schemas/InfrastructureDeploymentDto';
228
+ export type { InfrastructureMetadata } from './schemas/InfrastructureMetadata';
223
229
  export type { InputVariable } from './schemas/InputVariable';
224
230
  export type { InputVariableType } from './schemas/InputVariableType';
225
231
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
@@ -266,6 +272,7 @@ export type { ReleaseParentDto } from './schemas/ReleaseParentDto';
266
272
  export type { ReleaseType } from './schemas/ReleaseType';
267
273
  export type { RepeatUnit } from './schemas/RepeatUnit';
268
274
  export type { ServiceInfoDto } from './schemas/ServiceInfoDto';
275
+ export type { ServiceMetadata } from './schemas/ServiceMetadata';
269
276
  export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
270
277
  export type { StageInfoDto } from './schemas/StageInfoDto';
271
278
  export type { StageInfoType } from './schemas/StageInfoType';
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ export interface ConnectorMetadata {
2
+ /**
3
+ * Connector type (e.g., Git, Docker, Kubernetes)
4
+ */
5
+ type: string;
6
+ [key: string]: any;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Deployment type for services, environments, and infrastructure
3
+ */
4
+ export type DeploymentTypeEnum = 'AWS_SAM' | 'Asg' | 'AwsLambda' | 'AzureFunction' | 'AzureWebApp' | 'CustomDeployment' | 'ECS' | 'Elastigroup' | 'GoogleCloudFunctions' | 'GoogleCloudRun' | 'GoogleManagedInstanceGroup' | 'Kubernetes' | 'NativeHelm' | 'SERVICE_YAML_V1_TYPE' | 'Salesforce' | 'ServerlessAwsLambda' | 'Ssh' | 'TAS' | 'WinRm';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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,5 @@
1
+ import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
2
+ export interface EnvironmentMetadata {
3
+ deploymentType: DeploymentTypeEnum;
4
+ [key: string]: any;
5
+ }
@@ -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
+ }
@@ -0,0 +1,9 @@
1
+ import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
2
+ export interface InfrastructureMetadata {
3
+ deploymentType?: DeploymentTypeEnum;
4
+ /**
5
+ * Optional environment reference for the infrastructure
6
+ */
7
+ environmentRef?: string;
8
+ [key: string]: any;
9
+ }
@@ -1,3 +1,7 @@
1
+ import type { ServiceMetadata } from '../schemas/ServiceMetadata';
2
+ import type { EnvironmentMetadata } from '../schemas/EnvironmentMetadata';
3
+ import type { InfrastructureMetadata } from '../schemas/InfrastructureMetadata';
4
+ import type { ConnectorMetadata } from '../schemas/ConnectorMetadata';
1
5
  import type { InputVariableType } from '../schemas/InputVariableType';
2
6
  export interface InputVariable {
3
7
  /**
@@ -8,5 +12,12 @@ export interface InputVariable {
8
12
  * Description of the variable
9
13
  */
10
14
  description?: string;
15
+ /**
16
+ * Type-specific metadata required for entity input types. For service/multiService: ServiceMetadata (requires deploymentType). For environment/multiEnvironment: EnvironmentMetadata (requires deploymentType). For infrastructure/multiInfrastructure: InfrastructureMetadata (optional deploymentType and environmentRef). For connector: ConnectorMetadata (requires type). For primitive types: no metadata required.
17
+ *
18
+ */
19
+ metadata?: (ServiceMetadata | EnvironmentMetadata | InfrastructureMetadata | ConnectorMetadata | {
20
+ [key: string]: any;
21
+ }) | null;
11
22
  type: InputVariableType;
12
23
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type of an input variable for parameters and process inputs.
3
3
  */
4
- export type InputVariableType = 'boolean' | 'list' | 'number' | 'object' | 'string';
4
+ export type InputVariableType = 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
@@ -0,0 +1,5 @@
1
+ import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
2
+ export interface ServiceMetadata {
3
+ deploymentType: DeploymentTypeEnum;
4
+ [key: string]: any;
5
+ }
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.47.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",