@harnessio/react-rmg-service-client 0.21.0 → 0.22.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.
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.d.ts +2 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.js +2 -2
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhasesQuery.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +10 -2
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.d.ts +3 -3
- package/package.json +1 -1
package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.d.ts
CHANGED
|
@@ -5,9 +5,10 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface GetOrchestrationExecutionActivitiesQueryPathParams {
|
|
7
7
|
releaseId: string;
|
|
8
|
-
|
|
8
|
+
phaseIdentifier: string;
|
|
9
9
|
}
|
|
10
10
|
export interface GetOrchestrationExecutionActivitiesQueryQueryParams {
|
|
11
|
+
phaseExecutionId?: string;
|
|
11
12
|
orgIdentifier?: string;
|
|
12
13
|
projectIdentifier?: string;
|
|
13
14
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getOrchestrationExecutionActivities(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/phase/${props.
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/phase/${props.phaseIdentifier}/activities`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Retrieve all activities for a specific release and phase execution. If no activities exist in the database, it will fetch them from the phase YAML configuration.
|
|
@@ -13,7 +13,7 @@ export function useGetOrchestrationExecutionActivitiesQuery(props, options) {
|
|
|
13
13
|
return useQuery([
|
|
14
14
|
'get-orchestration-execution-activities',
|
|
15
15
|
props.releaseId,
|
|
16
|
-
props.
|
|
16
|
+
props.phaseIdentifier,
|
|
17
17
|
props.queryParams,
|
|
18
18
|
], ({ signal }) => getOrchestrationExecutionActivities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
19
|
}
|
|
@@ -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
|
+
* List of activity identifiers this activity depends on
|
|
8
|
+
*/
|
|
9
|
+
depends_on: string[];
|
|
6
10
|
/**
|
|
7
11
|
* Description of the activity
|
|
8
12
|
*/
|
|
@@ -11,7 +15,7 @@ export interface OrchestrationExecutionActivity {
|
|
|
11
15
|
* End timestamp in milliseconds
|
|
12
16
|
* @format int64
|
|
13
17
|
*/
|
|
14
|
-
end_ts
|
|
18
|
+
end_ts?: number;
|
|
15
19
|
/**
|
|
16
20
|
* Identifier of the activity
|
|
17
21
|
*/
|
|
@@ -24,6 +28,10 @@ export interface OrchestrationExecutionActivity {
|
|
|
24
28
|
* Start timestamp in milliseconds
|
|
25
29
|
* @format int64
|
|
26
30
|
*/
|
|
27
|
-
start_ts
|
|
31
|
+
start_ts?: number;
|
|
28
32
|
status: Status;
|
|
33
|
+
/**
|
|
34
|
+
* YAML configuration of the activity
|
|
35
|
+
*/
|
|
36
|
+
yaml: string;
|
|
29
37
|
}
|
|
@@ -19,7 +19,7 @@ export interface OrchestrationExecutionPhase {
|
|
|
19
19
|
* End timestamp in milliseconds
|
|
20
20
|
* @format int64
|
|
21
21
|
*/
|
|
22
|
-
end_ts
|
|
22
|
+
end_ts?: number;
|
|
23
23
|
/**
|
|
24
24
|
* Unique identifier of the phase
|
|
25
25
|
*/
|
|
@@ -35,12 +35,12 @@ export interface OrchestrationExecutionPhase {
|
|
|
35
35
|
/**
|
|
36
36
|
* ID of the phase execution
|
|
37
37
|
*/
|
|
38
|
-
phase_execution_id
|
|
38
|
+
phase_execution_id?: string;
|
|
39
39
|
/**
|
|
40
40
|
* Start timestamp in milliseconds
|
|
41
41
|
* @format int64
|
|
42
42
|
*/
|
|
43
|
-
start_ts
|
|
43
|
+
start_ts?: number;
|
|
44
44
|
status: Status;
|
|
45
45
|
/**
|
|
46
46
|
* Total number of activities in the phase
|