@harnessio/react-rmg-service-client 0.79.0 → 0.81.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 (19) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.d.ts +1 -0
  2. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhasesQuery.d.ts +1 -0
  3. package/dist/rmg-service/src/services/index.d.ts +3 -0
  4. package/dist/rmg-service/src/services/schemas/ActivityExecutionInputDto.d.ts +8 -0
  5. package/dist/rmg-service/src/services/schemas/ActivityInputYaml.d.ts +19 -0
  6. package/dist/rmg-service/src/services/schemas/OrchestrationActivityProcessYaml.d.ts +2 -0
  7. package/dist/rmg-service/src/services/schemas/OrchestrationActivityProcessYaml.js +0 -3
  8. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +4 -0
  9. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityDetail.d.ts +4 -0
  10. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityPaginated.d.ts +4 -0
  11. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.d.ts +8 -0
  12. package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +2 -0
  13. package/dist/rmg-service/src/services/schemas/TargetFieldDefinition.d.ts +7 -0
  14. package/dist/rmg-service/src/services/schemas/TargetFieldDefinition.js +1 -0
  15. package/dist/rmg-service/src/services/schemas/TargetVariableValue.d.ts +6 -0
  16. package/dist/rmg-service/src/services/schemas/TargetVariableValue.js +4 -0
  17. package/dist/rmg-service/src/services/schemas/TargetsYaml.d.ts +19 -0
  18. package/dist/rmg-service/src/services/schemas/TargetsYaml.js +1 -0
  19. package/package.json +1 -1
@@ -10,6 +10,7 @@ export interface GetOrchestrationExecutionActivitiesQueryPathParams {
10
10
  export interface GetOrchestrationExecutionActivitiesQueryQueryParams {
11
11
  phaseExecutionId?: string;
12
12
  status?: string[];
13
+ parentExecutionId?: string;
13
14
  orgIdentifier?: string;
14
15
  projectIdentifier?: string;
15
16
  }
@@ -8,6 +8,7 @@ export interface GetOrchestrationExecutionPhasesQueryPathParams {
8
8
  }
9
9
  export interface GetOrchestrationExecutionPhasesQueryQueryParams {
10
10
  status?: string[];
11
+ parentExecutionId?: string;
11
12
  orgIdentifier?: string;
12
13
  projectIdentifier?: string;
13
14
  }
@@ -517,6 +517,9 @@ export type { SubprocessActivityInfo } from './schemas/SubprocessActivityInfo';
517
517
  export type { SubprocessInfo } from './schemas/SubprocessInfo';
518
518
  export type { SubprocessTriggerRequest } from './schemas/SubprocessTriggerRequest';
519
519
  export type { SubprocessTriggerResponse } from './schemas/SubprocessTriggerResponse';
520
+ export type { TargetFieldDefinition } from './schemas/TargetFieldDefinition';
521
+ export type { TargetVariableValue } from './schemas/TargetVariableValue';
522
+ export type { TargetsYaml } from './schemas/TargetsYaml';
520
523
  export type { TaskCommentDto } from './schemas/TaskCommentDto';
521
524
  export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResponseDto';
522
525
  export type { TaskExecuteConfig } from './schemas/TaskExecuteConfig';
@@ -15,6 +15,14 @@ export interface ActivityExecutionInputDto {
15
15
  * Name of the input parameter
16
16
  */
17
17
  name: string;
18
+ /**
19
+ * When true this input may be left blank at retry time; when false it must have a non-blank value
20
+ */
21
+ optional?: boolean;
22
+ /**
23
+ * When true this input cannot be changed at retry time
24
+ */
25
+ readOnly?: boolean;
18
26
  /**
19
27
  * Type of the input parameter
20
28
  */
@@ -8,6 +8,25 @@ export interface ActivityInputYaml {
8
8
  * process input identifier for the subprocess
9
9
  */
10
10
  input?: string;
11
+ /**
12
+ * Governance flags for activity inputs. Keys match the with keys. When present, this map takes precedence over with entirely.
13
+ */
14
+ inputs?: {
15
+ [key: string]: {
16
+ /**
17
+ * When true, the value may be left unset at runtime; when false it must have a non-blank value
18
+ */
19
+ optional?: boolean;
20
+ /**
21
+ * When true, the value is fixed and cannot be overridden at runtime
22
+ */
23
+ readOnly?: boolean;
24
+ /**
25
+ * The value for the parameter
26
+ */
27
+ value?: string;
28
+ };
29
+ };
11
30
  with?: {
12
31
  [key: string]: string;
13
32
  } | ReleaseInputYaml;
@@ -1,3 +1,4 @@
1
+ import type { TargetsYaml } from '../schemas/TargetsYaml';
1
2
  export interface OrchestrationActivityProcessYaml {
2
3
  /**
3
4
  * Reference to the activity type (e.g., ReleaseApproval, ReleasePipeline)
@@ -23,4 +24,5 @@ export interface OrchestrationActivityProcessYaml {
23
24
  * Name of the activity
24
25
  */
25
26
  name: string;
27
+ targets?: TargetsYaml;
26
28
  }
@@ -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 {};
@@ -24,6 +24,10 @@ export interface OrchestrationExecutionActivity {
24
24
  */
25
25
  end_ts?: number;
26
26
  failureInfo?: FailureInfo;
27
+ /**
28
+ * Whether this activity is a single execution or a loop container
29
+ */
30
+ group_type?: 'LOOP' | 'SINGLE';
27
31
  /**
28
32
  * Identifier of the activity
29
33
  */
@@ -17,6 +17,10 @@ export interface OrchestrationExecutionActivityDetail {
17
17
  */
18
18
  end_ts?: number;
19
19
  failureInfo?: FailureInfo;
20
+ /**
21
+ * Whether this activity is a single execution or a loop container
22
+ */
23
+ group_type?: 'LOOP' | 'SINGLE';
20
24
  /**
21
25
  * Identifier of the activity
22
26
  */
@@ -21,6 +21,10 @@ export interface OrchestrationExecutionActivityPaginated {
21
21
  * Failure information if the activity failed
22
22
  */
23
23
  failureInfo?: FailureInfo;
24
+ /**
25
+ * Whether this activity is a single execution or a loop container
26
+ */
27
+ group_type?: 'LOOP' | 'SINGLE';
24
28
  /**
25
29
  * Unique identifier of the activity
26
30
  */
@@ -27,6 +27,10 @@ export interface OrchestrationExecutionPhase {
27
27
  */
28
28
  end_ts?: number;
29
29
  failureInfo?: FailureInfo;
30
+ /**
31
+ * Whether this phase is a single execution or a loop container
32
+ */
33
+ group_type?: 'LOOP' | 'SINGLE';
30
34
  /**
31
35
  * Unique identifier of the phase
32
36
  */
@@ -43,6 +47,10 @@ export interface OrchestrationExecutionPhase {
43
47
  * List of owners for the phase
44
48
  */
45
49
  owners?: string[];
50
+ /**
51
+ * ID of the parent phase execution (set for loop iteration children)
52
+ */
53
+ parent_execution_id?: string;
46
54
  /**
47
55
  * ID of the phase execution
48
56
  */
@@ -1,5 +1,6 @@
1
1
  import type { OrchestrationActivityProcessYaml } from '../schemas/OrchestrationActivityProcessYaml';
2
2
  import type { OutputVariable } from '../schemas/OutputVariable';
3
+ import type { TargetsYaml } from '../schemas/TargetsYaml';
3
4
  export interface OrchestrationPhaseYaml {
4
5
  phase: {
5
6
  activities: OrchestrationActivityProcessYaml[];
@@ -42,5 +43,6 @@ export interface OrchestrationPhaseYaml {
42
43
  */
43
44
  on?: 'user_intervention';
44
45
  };
46
+ targets?: TargetsYaml;
45
47
  };
46
48
  }
@@ -0,0 +1,7 @@
1
+ import type { InputVariableType } from '../schemas/InputVariableType';
2
+ /**
3
+ * Definition of a target field with its variable type
4
+ */
5
+ export interface TargetFieldDefinition {
6
+ type: InputVariableType;
7
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A target variable value. Can be a string or an array of string, boolean, object, or nested string arrays.
3
+ */
4
+ export type TargetVariableValue = string | Array<string | boolean | {
5
+ [key: string]: any;
6
+ } | string[]>;
@@ -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,19 @@
1
+ import type { TargetFieldDefinition } from '../schemas/TargetFieldDefinition';
2
+ import type { TargetVariableValue } from '../schemas/TargetVariableValue';
3
+ /**
4
+ * Target definitions with field type declarations and default values
5
+ */
6
+ export interface TargetsYaml {
7
+ /**
8
+ * Field definitions mapping field name to its type
9
+ */
10
+ fields?: {
11
+ [key: string]: TargetFieldDefinition;
12
+ };
13
+ /**
14
+ * Array of target value records mapping field name to its value, or an expression string
15
+ */
16
+ values?: Array<{
17
+ [key: string]: TargetVariableValue;
18
+ }> | string;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.79.0",
3
+ "version": "0.81.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",