@harnessio/react-rmg-service-client 0.48.0 → 0.50.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.
Files changed (27) hide show
  1. package/dist/rmg-service/src/services/index.d.ts +9 -0
  2. package/dist/rmg-service/src/services/schemas/ActivityExecutionInputDto.d.ts +3 -2
  3. package/dist/rmg-service/src/services/schemas/AnyValue.d.ts +8 -0
  4. package/dist/rmg-service/src/services/schemas/AnyValue.js +4 -0
  5. package/dist/rmg-service/src/services/schemas/ConnectorInputVariable.d.ts +22 -0
  6. package/dist/rmg-service/src/services/schemas/ConnectorInputVariable.js +1 -0
  7. package/dist/rmg-service/src/services/schemas/EnvironmentInputVariable.d.ts +24 -0
  8. package/dist/rmg-service/src/services/schemas/EnvironmentInputVariable.js +1 -0
  9. package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.d.ts +3 -2
  10. package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.js +0 -3
  11. package/dist/rmg-service/src/services/schemas/GlobalReleaseInputYaml.d.ts +1 -1
  12. package/dist/rmg-service/src/services/schemas/InfrastructureInputVariable.d.ts +22 -0
  13. package/dist/rmg-service/src/services/schemas/InfrastructureInputVariable.js +1 -0
  14. package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +11 -23
  15. package/dist/rmg-service/src/services/schemas/MultiEnvironmentInputVariable.d.ts +24 -0
  16. package/dist/rmg-service/src/services/schemas/MultiEnvironmentInputVariable.js +1 -0
  17. package/dist/rmg-service/src/services/schemas/MultiInfrastructureInputVariable.d.ts +24 -0
  18. package/dist/rmg-service/src/services/schemas/MultiInfrastructureInputVariable.js +1 -0
  19. package/dist/rmg-service/src/services/schemas/MultiServiceInputVariable.d.ts +24 -0
  20. package/dist/rmg-service/src/services/schemas/MultiServiceInputVariable.js +1 -0
  21. package/dist/rmg-service/src/services/schemas/OnHoldActivityActionRequest.d.ts +5 -0
  22. package/dist/rmg-service/src/services/schemas/PhaseReleaseInputYaml.d.ts +1 -1
  23. package/dist/rmg-service/src/services/schemas/PrimitiveInputVariable.d.ts +17 -0
  24. package/dist/rmg-service/src/services/schemas/PrimitiveInputVariable.js +4 -0
  25. package/dist/rmg-service/src/services/schemas/ServiceInputVariable.d.ts +24 -0
  26. package/dist/rmg-service/src/services/schemas/ServiceInputVariable.js +1 -0
  27. package/package.json +1 -1
@@ -201,6 +201,7 @@ export type { ActivityRetryInfo } from './schemas/ActivityRetryInfo';
201
201
  export type { ActivityTriggerInfo } from './schemas/ActivityTriggerInfo';
202
202
  export type { ActivityType } from './schemas/ActivityType';
203
203
  export type { ActivityTypeCounts } from './schemas/ActivityTypeCounts';
204
+ export type { AnyValue } from './schemas/AnyValue';
204
205
  export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
205
206
  export type { ApprovedByDto } from './schemas/ApprovedByDto';
206
207
  export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
@@ -208,6 +209,7 @@ export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnSched
208
209
  export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
209
210
  export type { CommentedByDto } from './schemas/CommentedByDto';
210
211
  export type { ConflictStatus } from './schemas/ConflictStatus';
212
+ export type { ConnectorInputVariable } from './schemas/ConnectorInputVariable';
211
213
  export type { ConnectorMetadata } from './schemas/ConnectorMetadata';
212
214
  export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
213
215
  export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
@@ -215,6 +217,7 @@ export type { CreatedByDto } from './schemas/CreatedByDto';
215
217
  export type { DeploymentTypeEnum } from './schemas/DeploymentTypeEnum';
216
218
  export type { EnvironmentDashboardDto } from './schemas/EnvironmentDashboardDto';
217
219
  export type { EnvironmentDto } from './schemas/EnvironmentDto';
220
+ export type { EnvironmentInputVariable } from './schemas/EnvironmentInputVariable';
218
221
  export type { EnvironmentMetadata } from './schemas/EnvironmentMetadata';
219
222
  export type { EnvironmentType } from './schemas/EnvironmentType';
220
223
  export type { Error } from './schemas/Error';
@@ -235,12 +238,16 @@ export type { Freq } from './schemas/Freq';
235
238
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
236
239
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
237
240
  export type { InfrastructureDeploymentDto } from './schemas/InfrastructureDeploymentDto';
241
+ export type { InfrastructureInputVariable } from './schemas/InfrastructureInputVariable';
238
242
  export type { InfrastructureMetadata } from './schemas/InfrastructureMetadata';
239
243
  export type { InputVariable } from './schemas/InputVariable';
240
244
  export type { InputVariableType } from './schemas/InputVariableType';
241
245
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
242
246
  export type { ManualActivityInfo } from './schemas/ManualActivityInfo';
243
247
  export type { ManualTaskYaml } from './schemas/ManualTaskYaml';
248
+ export type { MultiEnvironmentInputVariable } from './schemas/MultiEnvironmentInputVariable';
249
+ export type { MultiInfrastructureInputVariable } from './schemas/MultiInfrastructureInputVariable';
250
+ export type { MultiServiceInputVariable } from './schemas/MultiServiceInputVariable';
244
251
  export type { NextRequest } from './schemas/NextRequest';
245
252
  export type { OnHoldActivityActionRequest } from './schemas/OnHoldActivityActionRequest';
246
253
  export type { OnHoldActivityActionResponse } from './schemas/OnHoldActivityActionResponse';
@@ -265,6 +272,7 @@ export type { PageableSort } from './schemas/PageableSort';
265
272
  export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
266
273
  export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
267
274
  export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
275
+ export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
268
276
  export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
269
277
  export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
270
278
  export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
@@ -286,6 +294,7 @@ export type { ReportGenerationRequest } from './schemas/ReportGenerationRequest'
286
294
  export type { ReportGenerationResponse } from './schemas/ReportGenerationResponse';
287
295
  export type { ReportStatusResponse } from './schemas/ReportStatusResponse';
288
296
  export type { ServiceInfoDto } from './schemas/ServiceInfoDto';
297
+ export type { ServiceInputVariable } from './schemas/ServiceInputVariable';
289
298
  export type { ServiceMetadata } from './schemas/ServiceMetadata';
290
299
  export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
291
300
  export type { StageInfoDto } from './schemas/StageInfoDto';
@@ -1,4 +1,5 @@
1
1
  import type { InputVariableType } from '../schemas/InputVariableType';
2
+ import type { AnyValue } from '../schemas/AnyValue';
2
3
  /**
3
4
  * Input value for an activity execution
4
5
  */
@@ -12,7 +13,7 @@ export interface ActivityExecutionInputDto {
12
13
  */
13
14
  type: InputVariableType;
14
15
  /**
15
- * Value of the input parameter
16
+ * Value of the input parameter (can be string, number, boolean, object, array, etc.)
16
17
  */
17
- value: string;
18
+ value: AnyValue;
18
19
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Flexible type that accepts any JSON value (string, number, boolean, object, or array)
3
+ */
4
+ export type AnyValue = string | number | boolean | {
5
+ [key: string]: any;
6
+ } | Array<{
7
+ [key: string]: any;
8
+ }>;
@@ -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,22 @@
1
+ import type { ConnectorMetadata } from '../schemas/ConnectorMetadata';
2
+ /**
3
+ * Input variable for connector type
4
+ */
5
+ export interface ConnectorInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: string | null;
10
+ /**
11
+ * Description of the variable
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Connector metadata with required type
16
+ */
17
+ metadata: ConnectorMetadata;
18
+ /**
19
+ * Type of the input variable
20
+ */
21
+ type: 'connector';
22
+ }
@@ -0,0 +1,24 @@
1
+ import type { EnvironmentMetadata } from '../schemas/EnvironmentMetadata';
2
+ /**
3
+ * Input variable for environment type
4
+ */
5
+ export interface EnvironmentInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: {
10
+ [key: string]: any;
11
+ } | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Environment metadata with required deploymentType
18
+ */
19
+ metadata?: EnvironmentMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'environment';
24
+ }
@@ -1,3 +1,4 @@
1
+ import type { AnyValue } from '../schemas/AnyValue';
1
2
  /**
2
3
  * Output value for a phase execution
3
4
  */
@@ -7,7 +8,7 @@ export interface ExecutionOutputDto {
7
8
  */
8
9
  name: string;
9
10
  /**
10
- * Value of the output parameter
11
+ * Value of the output parameter (can be string, number, boolean, object, array, etc.)
11
12
  */
12
- value: string;
13
+ value: AnyValue;
13
14
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -3,6 +3,6 @@ export interface GlobalReleaseInputYaml {
3
3
  * Global input values
4
4
  */
5
5
  with?: {
6
- [key: string]: string;
6
+ [key: string]: any;
7
7
  };
8
8
  }
@@ -0,0 +1,22 @@
1
+ import type { InfrastructureMetadata } from '../schemas/InfrastructureMetadata';
2
+ /**
3
+ * Input variable for infrastructure type
4
+ */
5
+ export interface InfrastructureInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: string[] | null;
10
+ /**
11
+ * Description of the variable
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Infrastructure metadata with optional deploymentType and environmentRef
16
+ */
17
+ metadata?: InfrastructureMetadata;
18
+ /**
19
+ * Type of the input variable
20
+ */
21
+ type: 'infrastructure';
22
+ }
@@ -1,23 +1,11 @@
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';
5
- import type { InputVariableType } from '../schemas/InputVariableType';
6
- export interface InputVariable {
7
- /**
8
- * Default value for the variable in string format
9
- */
10
- default?: string | null;
11
- /**
12
- * Description of the variable
13
- */
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;
22
- type: InputVariableType;
23
- }
1
+ import type { PrimitiveInputVariable } from '../schemas/PrimitiveInputVariable';
2
+ import type { ServiceInputVariable } from '../schemas/ServiceInputVariable';
3
+ import type { MultiServiceInputVariable } from '../schemas/MultiServiceInputVariable';
4
+ import type { EnvironmentInputVariable } from '../schemas/EnvironmentInputVariable';
5
+ import type { MultiEnvironmentInputVariable } from '../schemas/MultiEnvironmentInputVariable';
6
+ import type { InfrastructureInputVariable } from '../schemas/InfrastructureInputVariable';
7
+ import type { MultiInfrastructureInputVariable } from '../schemas/MultiInfrastructureInputVariable';
8
+ import type { ConnectorInputVariable } from '../schemas/ConnectorInputVariable';
9
+ export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable) & {
10
+ [key: string]: any;
11
+ };
@@ -0,0 +1,24 @@
1
+ import type { EnvironmentMetadata } from '../schemas/EnvironmentMetadata';
2
+ /**
3
+ * Input variable for multiEnvironment type
4
+ */
5
+ export interface MultiEnvironmentInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: Array<{
10
+ [key: string]: any;
11
+ }> | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Environment metadata with required deploymentType
18
+ */
19
+ metadata?: EnvironmentMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'multiEnvironment';
24
+ }
@@ -0,0 +1,24 @@
1
+ import type { InfrastructureMetadata } from '../schemas/InfrastructureMetadata';
2
+ /**
3
+ * Input variable for multiInfrastructure type
4
+ */
5
+ export interface MultiInfrastructureInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: Array<{
10
+ [key: string]: any;
11
+ }> | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Infrastructure metadata with optional deploymentType and environmentRef
18
+ */
19
+ metadata?: InfrastructureMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'multiInfrastructure';
24
+ }
@@ -0,0 +1,24 @@
1
+ import type { ServiceMetadata } from '../schemas/ServiceMetadata';
2
+ /**
3
+ * Input variable for multiService type
4
+ */
5
+ export interface MultiServiceInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: Array<{
10
+ [key: string]: any;
11
+ }> | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Service metadata with required deploymentType
18
+ */
19
+ metadata?: ServiceMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'multiService';
24
+ }
@@ -1,4 +1,5 @@
1
1
  import type { ActivityExecutionInputDto } from '../schemas/ActivityExecutionInputDto';
2
+ import type { ExecutionOutputDto } from '../schemas/ExecutionOutputDto';
2
3
  import type { SubprocessInfo } from '../schemas/SubprocessInfo';
3
4
  export interface OnHoldActivityActionRequest {
4
5
  /**
@@ -9,6 +10,10 @@ export interface OnHoldActivityActionRequest {
9
10
  * Optional list of input values for retrying the on-hold activity. Only valid when action is 'retry'.
10
11
  */
11
12
  inputs?: ActivityExecutionInputDto[];
13
+ /**
14
+ * Optional list of output values for ignoring the on-hold activity. Only valid when action is 'ignore'.
15
+ */
16
+ outputs?: ExecutionOutputDto[];
12
17
  /**
13
18
  * Specifies the retry mechanism. If present, action must be 'retry'. Currently only SUBPROCESS is supported.
14
19
  */
@@ -7,6 +7,6 @@ export interface PhaseReleaseInputYaml {
7
7
  * Input values for this phase (map[string]any)
8
8
  */
9
9
  with?: {
10
- [key: string]: string;
10
+ [key: string]: any;
11
11
  };
12
12
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Input variable for primitive types (string, list, boolean, number, object)
3
+ */
4
+ export interface PrimitiveInputVariable {
5
+ /**
6
+ * Default value for the variable in string format
7
+ */
8
+ default?: string | null;
9
+ /**
10
+ * Description of the variable
11
+ */
12
+ description?: string;
13
+ /**
14
+ * Type of the primitive input variable
15
+ */
16
+ type: 'boolean' | 'list' | 'number' | 'object' | 'string';
17
+ }
@@ -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,24 @@
1
+ import type { ServiceMetadata } from '../schemas/ServiceMetadata';
2
+ /**
3
+ * Input variable for service type
4
+ */
5
+ export interface ServiceInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: {
10
+ [key: string]: any;
11
+ } | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Service metadata with required deploymentType
18
+ */
19
+ metadata?: ServiceMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'service';
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",