@harnessio/react-rmg-service-client 0.23.0 → 0.25.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 (86) hide show
  1. package/dist/rmg-service/src/services/hooks/useCreateTaskCommentMutation.d.ts +32 -0
  2. package/dist/rmg-service/src/services/hooks/useCreateTaskCommentMutation.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useDeleteTaskCommentMutation.d.ts +24 -0
  4. package/dist/rmg-service/src/services/hooks/useDeleteTaskCommentMutation.js +14 -0
  5. package/dist/rmg-service/src/services/hooks/useGetFreezeDetailsQuery.d.ts +25 -0
  6. package/dist/rmg-service/src/services/hooks/useGetFreezeDetailsQuery.js +14 -0
  7. package/dist/rmg-service/src/services/hooks/useGetFreezeListQuery.d.ts +35 -0
  8. package/dist/rmg-service/src/services/hooks/useGetFreezeListQuery.js +14 -0
  9. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputsQuery.d.ts +25 -0
  10. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputsQuery.js +14 -0
  11. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionTasksQuery.d.ts +28 -0
  12. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionTasksQuery.js +20 -0
  13. package/dist/rmg-service/src/services/hooks/useGetTaskCommentsSummaryQuery.d.ts +30 -0
  14. package/dist/rmg-service/src/services/hooks/useGetTaskCommentsSummaryQuery.js +14 -0
  15. package/dist/rmg-service/src/services/hooks/useStartReleaseExecutionMutation.d.ts +8 -1
  16. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskMetadataMutation.d.ts +36 -0
  17. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskMetadataMutation.js +14 -0
  18. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskStatusMutation.d.ts +33 -0
  19. package/dist/rmg-service/src/services/hooks/useUpdateExecutionTaskStatusMutation.js +14 -0
  20. package/dist/rmg-service/src/services/hooks/useUpdateTaskCommentMutation.d.ts +32 -0
  21. package/dist/rmg-service/src/services/hooks/useUpdateTaskCommentMutation.js +14 -0
  22. package/dist/rmg-service/src/services/index.d.ts +45 -1
  23. package/dist/rmg-service/src/services/index.js +10 -0
  24. package/dist/rmg-service/src/services/responses/ActivityInputsResponseResponse.d.ts +2 -0
  25. package/dist/rmg-service/src/services/responses/ActivityInputsResponseResponse.js +1 -0
  26. package/dist/rmg-service/src/services/responses/CreateTaskCommentResponseResponse.d.ts +6 -0
  27. package/dist/rmg-service/src/services/responses/CreateTaskCommentResponseResponse.js +4 -0
  28. package/dist/rmg-service/src/services/responses/ExecutionTasksListResponseResponse.d.ts +7 -0
  29. package/dist/rmg-service/src/services/responses/ExecutionTasksListResponseResponse.js +1 -0
  30. package/dist/rmg-service/src/services/responses/FreezeDetailsResponseResponse.d.ts +2 -0
  31. package/dist/rmg-service/src/services/responses/FreezeDetailsResponseResponse.js +1 -0
  32. package/dist/rmg-service/src/services/responses/FreezeListResponseResponse.d.ts +2 -0
  33. package/dist/rmg-service/src/services/responses/FreezeListResponseResponse.js +1 -0
  34. package/dist/rmg-service/src/services/responses/TaskCommentsListResponseResponse.d.ts +2 -0
  35. package/dist/rmg-service/src/services/responses/TaskCommentsListResponseResponse.js +1 -0
  36. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskMetadataResponseResponse.d.ts +6 -0
  37. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskMetadataResponseResponse.js +4 -0
  38. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskStatusResponseResponse.d.ts +8 -0
  39. package/dist/rmg-service/src/services/responses/UpdateExecutionTaskStatusResponseResponse.js +1 -0
  40. package/dist/rmg-service/src/services/responses/UpdateTaskCommentResponseResponse.d.ts +6 -0
  41. package/dist/rmg-service/src/services/responses/UpdateTaskCommentResponseResponse.js +4 -0
  42. package/dist/rmg-service/src/services/schemas/ActivityInputYaml.d.ts +1 -1
  43. package/dist/rmg-service/src/services/schemas/ActivityInputsResponse.d.ts +9 -0
  44. package/dist/rmg-service/src/services/schemas/ActivityInputsResponse.js +4 -0
  45. package/dist/rmg-service/src/services/schemas/CommentedByDto.d.ts +10 -0
  46. package/dist/rmg-service/src/services/schemas/CommentedByDto.js +4 -0
  47. package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.d.ts +55 -0
  48. package/dist/rmg-service/src/services/schemas/ExecutionTaskDto.js +1 -0
  49. package/dist/rmg-service/src/services/schemas/ExecutionTaskStatus.d.ts +4 -0
  50. package/dist/rmg-service/src/services/schemas/ExecutionTaskStatus.js +4 -0
  51. package/dist/rmg-service/src/services/schemas/FreezeDetailsDto.d.ts +41 -0
  52. package/dist/rmg-service/src/services/schemas/FreezeDetailsDto.js +1 -0
  53. package/dist/rmg-service/src/services/schemas/FreezeEntitiesDto.d.ts +29 -0
  54. package/dist/rmg-service/src/services/schemas/FreezeEntitiesDto.js +4 -0
  55. package/dist/rmg-service/src/services/schemas/FreezeListItemDto.d.ts +31 -0
  56. package/dist/rmg-service/src/services/schemas/FreezeListItemDto.js +4 -0
  57. package/dist/rmg-service/src/services/schemas/FreezeListResponseDto.d.ts +16 -0
  58. package/dist/rmg-service/src/services/schemas/FreezeListResponseDto.js +1 -0
  59. package/dist/rmg-service/src/services/schemas/GlobalReleaseInputYaml.d.ts +1 -1
  60. package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +4 -12
  61. package/dist/rmg-service/src/services/schemas/InputVariable.js +0 -3
  62. package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +4 -0
  63. package/dist/rmg-service/src/services/schemas/InputVariableType.js +4 -0
  64. package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +33 -0
  65. package/dist/rmg-service/src/services/schemas/ManualTaskYaml.js +4 -0
  66. package/dist/rmg-service/src/services/schemas/OrchestrationActivityManualYaml.d.ts +10 -0
  67. package/dist/rmg-service/src/services/schemas/OrchestrationActivityManualYaml.js +1 -0
  68. package/dist/rmg-service/src/services/schemas/OrchestrationActivityPipelineYaml.d.ts +4 -0
  69. package/dist/rmg-service/src/services/schemas/OrchestrationActivityProcessYaml.d.ts +0 -16
  70. package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +4 -22
  71. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +4 -0
  72. package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +23 -33
  73. package/dist/rmg-service/src/services/schemas/OrchestrationProcessInputYaml.d.ts +17 -3
  74. package/dist/rmg-service/src/services/schemas/OrchestrationReleaseProcessYaml.d.ts +1 -5
  75. package/dist/rmg-service/src/services/schemas/PhaseInputYaml.d.ts +3 -1
  76. package/dist/rmg-service/src/services/schemas/PhaseReleaseInputYaml.d.ts +1 -1
  77. package/dist/rmg-service/src/services/schemas/ProcessInputSummaryDto.d.ts +4 -0
  78. package/dist/rmg-service/src/services/schemas/StringOrBool.d.ts +4 -0
  79. package/dist/rmg-service/src/services/schemas/StringOrBool.js +4 -0
  80. package/dist/rmg-service/src/services/schemas/StringOrStringArray.d.ts +4 -0
  81. package/dist/rmg-service/src/services/schemas/StringOrStringArray.js +4 -0
  82. package/dist/rmg-service/src/services/schemas/TaskCommentDto.d.ts +32 -0
  83. package/dist/rmg-service/src/services/schemas/TaskCommentDto.js +1 -0
  84. package/dist/rmg-service/src/services/schemas/TaskCommentsListResponseDto.d.ts +16 -0
  85. package/dist/rmg-service/src/services/schemas/TaskCommentsListResponseDto.js +1 -0
  86. package/package.json +1 -1
@@ -0,0 +1,10 @@
1
+ import type { ManualTaskYaml } from '../schemas/ManualTaskYaml';
2
+ /**
3
+ * Manual configuration for orchestration activities
4
+ */
5
+ export interface OrchestrationActivityManualYaml {
6
+ /**
7
+ * List of manual tasks
8
+ */
9
+ tasks: ManualTaskYaml[];
10
+ }
@@ -8,4 +8,8 @@ export interface OrchestrationActivityPipelineYaml {
8
8
  inputSet?: {
9
9
  [key: string]: any;
10
10
  };
11
+ /**
12
+ * Pipeline location in format orgIdentifier/projectIdentifier/pipelineIdentifier
13
+ */
14
+ pipeline: string;
11
15
  }
@@ -3,18 +3,10 @@ export interface OrchestrationActivityProcessYaml {
3
3
  * Reference to the activity type (e.g., ReleaseApproval, ReleasePipeline)
4
4
  */
5
5
  activity: string;
6
- /**
7
- * Reference to the activity type (e.g., ReleaseApproval, ReleasePipeline)
8
- */
9
- activity_ref?: string;
10
6
  /**
11
7
  * List of phase identifiers that this phase depends on
12
8
  */
13
9
  'depends-on'?: string[];
14
- /**
15
- * List of phase identifiers that this phase depends on
16
- */
17
- depends_on?: string[];
18
10
  /**
19
11
  * Description of the activity
20
12
  */
@@ -23,16 +15,8 @@ export interface OrchestrationActivityProcessYaml {
23
15
  * Unique identifier for the activity
24
16
  */
25
17
  id: string;
26
- /**
27
- * Unique identifier for the activity
28
- */
29
- identifier: string;
30
18
  /**
31
19
  * Name of the activity
32
20
  */
33
21
  name: string;
34
- /**
35
- * Timeout duration for the activity (e.g., "24h", "2h")
36
- */
37
- timeout: string;
38
22
  }
@@ -1,3 +1,5 @@
1
+ import type { InputVariable } from '../schemas/InputVariable';
2
+ import type { OrchestrationActivityManualYaml } from '../schemas/OrchestrationActivityManualYaml';
1
3
  import type { OrchestrationActivityPipelineYaml } from '../schemas/OrchestrationActivityPipelineYaml';
2
4
  export interface OrchestrationActivityYaml {
3
5
  activity: {
@@ -9,37 +11,17 @@ export interface OrchestrationActivityYaml {
9
11
  * Unique identifier for the activity
10
12
  */
11
13
  id: string;
12
- /**
13
- * Unique identifier for the activity
14
- */
15
- identifier?: string;
16
14
  /**
17
15
  * Input definitions for the activity
18
16
  */
19
17
  inputs: {
20
- [key: string]: {
21
- /**
22
- * Description of the input parameter
23
- */
24
- description: string;
25
- /**
26
- * Whether the input is required
27
- */
28
- required: boolean;
29
- /**
30
- * Type of the input parameter
31
- */
32
- type: 'boolean' | 'list' | 'number' | 'object' | 'string';
33
- };
18
+ [key: string]: InputVariable;
34
19
  };
20
+ manual?: OrchestrationActivityManualYaml;
35
21
  /**
36
22
  * Name of the activity
37
23
  */
38
24
  name: string;
39
25
  pipeline?: OrchestrationActivityPipelineYaml;
40
- /**
41
- * Timeout duration for the activity (e.g., "30m", "8h")
42
- */
43
- timeout: string;
44
26
  };
45
27
  }
@@ -3,6 +3,10 @@ import type { Status } from '../schemas/Status';
3
3
  * Represents an activity in the orchestration execution
4
4
  */
5
5
  export interface OrchestrationExecutionActivity {
6
+ /**
7
+ * ID of the activity execution
8
+ */
9
+ activity_execution_id?: string;
6
10
  /**
7
11
  * List of activity identifiers this activity depends on
8
12
  */
@@ -1,36 +1,26 @@
1
1
  import type { OrchestrationActivityProcessYaml } from '../schemas/OrchestrationActivityProcessYaml';
2
2
  export interface OrchestrationPhaseYaml {
3
- activities: OrchestrationActivityProcessYaml[];
4
- /**
5
- * List of phase identifiers that this phase depends on
6
- */
7
- 'depends-on'?: string[];
8
- /**
9
- * List of phase identifiers that this phase depends on
10
- */
11
- depends_on?: string[];
12
- /**
13
- * Description of the phase
14
- */
15
- description?: string;
16
- /**
17
- * Unique identifier for the phase
18
- */
19
- id: string;
20
- /**
21
- * Unique identifier for the phase
22
- */
23
- identifier?: string;
24
- /**
25
- * Name of the phase
26
- */
27
- name: string;
28
- /**
29
- * List of owner groups for the phase
30
- */
31
- owners?: string[];
32
- /**
33
- * Timeout duration for the phase (e.g., "2h", "24h")
34
- */
35
- timeout: string;
3
+ phase: {
4
+ activities: OrchestrationActivityProcessYaml[];
5
+ /**
6
+ * List of phase identifiers that this phase depends on
7
+ */
8
+ 'depends-on'?: string[];
9
+ /**
10
+ * Description of the phase
11
+ */
12
+ description?: string;
13
+ /**
14
+ * Unique identifier for the phase
15
+ */
16
+ id: string;
17
+ /**
18
+ * Name of the phase
19
+ */
20
+ name: string;
21
+ /**
22
+ * List of owner groups for the phase
23
+ */
24
+ owners?: string[];
25
+ };
36
26
  }
@@ -1,17 +1,31 @@
1
1
  import type { InputVariable } from '../schemas/InputVariable';
2
2
  import type { PhaseInputYaml } from '../schemas/PhaseInputYaml';
3
3
  export interface OrchestrationProcessInputYaml {
4
+ /**
5
+ * Description of the orchestration process input
6
+ */
7
+ description?: string;
4
8
  /**
5
9
  * Global input configuration
6
10
  */
7
- global?: {
11
+ global: {
8
12
  /**
9
13
  * Global input variables available across all phases
10
14
  */
11
- variables?: InputVariable[];
15
+ inputs?: {
16
+ [key: string]: InputVariable;
17
+ };
12
18
  };
19
+ /**
20
+ * Unique identifier for the orchestration process input
21
+ */
22
+ id: string;
23
+ /**
24
+ * Name of the orchestration process input
25
+ */
26
+ name: string;
13
27
  /**
14
28
  * Phase-specific input configurations
15
29
  */
16
- phases?: PhaseInputYaml[];
30
+ phases: PhaseInputYaml[];
17
31
  }
@@ -8,11 +8,7 @@ export interface OrchestrationReleaseProcessYaml {
8
8
  /**
9
9
  * Unique identifier for the orchestration process
10
10
  */
11
- id?: string;
12
- /**
13
- * Unique identifier for the orchestration process
14
- */
15
- identifier: string;
11
+ id: string;
16
12
  /**
17
13
  * Name of the orchestration process
18
14
  */
@@ -12,5 +12,7 @@ export interface PhaseInputYaml {
12
12
  /**
13
13
  * Variables specific to this phase
14
14
  */
15
- variables?: InputVariable[];
15
+ inputs?: {
16
+ [key: string]: InputVariable;
17
+ };
16
18
  }
@@ -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]: any;
10
+ [key: string]: string;
11
11
  };
12
12
  }
@@ -18,4 +18,8 @@ export interface ProcessInputSummaryDto {
18
18
  * Name of the process input
19
19
  */
20
20
  name: string;
21
+ /**
22
+ * Status of the process input
23
+ */
24
+ status: 'Configured' | 'Incomplete';
21
25
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Flexible type that accepts either a boolean or a string
3
+ */
4
+ export type StringOrBool = boolean | 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,4 @@
1
+ /**
2
+ * Flexible type that accepts either a single string or an array of strings for user references
3
+ */
4
+ export type StringOrStringArray = string | 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,32 @@
1
+ import type { CommentedByDto } from '../schemas/CommentedByDto';
2
+ /**
3
+ * Represents a comment on an execution task
4
+ */
5
+ export interface TaskCommentDto {
6
+ /**
7
+ * The comment text
8
+ */
9
+ comment: string;
10
+ /**
11
+ * UUID of the comment
12
+ */
13
+ commentId: string;
14
+ /**
15
+ * Details of the person who created the comment
16
+ */
17
+ commentedBy: CommentedByDto;
18
+ /**
19
+ * Unix timestamp when the comment was created
20
+ * @format int64
21
+ */
22
+ createdAt: number;
23
+ /**
24
+ * Whether the comment has been edited since creation
25
+ */
26
+ isEdited: boolean;
27
+ /**
28
+ * Unix timestamp when the comment was last updated
29
+ * @format int64
30
+ */
31
+ lastUpdatedAt: number;
32
+ }
@@ -0,0 +1,16 @@
1
+ import type { TaskCommentDto } from '../schemas/TaskCommentDto';
2
+ import type { NextRequest } from '../schemas/NextRequest';
3
+ /**
4
+ * Paginated response containing task comments
5
+ */
6
+ export interface TaskCommentsListResponseDto {
7
+ /**
8
+ * List of task comments
9
+ */
10
+ comments: TaskCommentDto[];
11
+ /**
12
+ * Whether this is the last page of results
13
+ */
14
+ last: boolean;
15
+ nextRequest: NextRequest;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",