@harnessio/react-rmg-service-client 0.46.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.
@@ -198,11 +198,14 @@ export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnSched
198
198
  export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
199
199
  export type { CommentedByDto } from './schemas/CommentedByDto';
200
200
  export type { ConflictStatus } from './schemas/ConflictStatus';
201
+ export type { ConnectorMetadata } from './schemas/ConnectorMetadata';
201
202
  export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
202
203
  export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
203
204
  export type { CreatedByDto } from './schemas/CreatedByDto';
205
+ export type { DeploymentTypeEnum } from './schemas/DeploymentTypeEnum';
204
206
  export type { EnvironmentDashboardDto } from './schemas/EnvironmentDashboardDto';
205
207
  export type { EnvironmentDto } from './schemas/EnvironmentDto';
208
+ export type { EnvironmentMetadata } from './schemas/EnvironmentMetadata';
206
209
  export type { EnvironmentType } from './schemas/EnvironmentType';
207
210
  export type { Error } from './schemas/Error';
208
211
  export type { EventDto } from './schemas/EventDto';
@@ -222,6 +225,7 @@ export type { Freq } from './schemas/Freq';
222
225
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
223
226
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
224
227
  export type { InfrastructureDeploymentDto } from './schemas/InfrastructureDeploymentDto';
228
+ export type { InfrastructureMetadata } from './schemas/InfrastructureMetadata';
225
229
  export type { InputVariable } from './schemas/InputVariable';
226
230
  export type { InputVariableType } from './schemas/InputVariableType';
227
231
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
@@ -268,6 +272,7 @@ export type { ReleaseParentDto } from './schemas/ReleaseParentDto';
268
272
  export type { ReleaseType } from './schemas/ReleaseType';
269
273
  export type { RepeatUnit } from './schemas/RepeatUnit';
270
274
  export type { ServiceInfoDto } from './schemas/ServiceInfoDto';
275
+ export type { ServiceMetadata } from './schemas/ServiceMetadata';
271
276
  export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
272
277
  export type { StageInfoDto } from './schemas/StageInfoDto';
273
278
  export type { StageInfoType } from './schemas/StageInfoType';
@@ -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 {};
@@ -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,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.46.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",