@harnessio/react-rmg-service-client 0.18.0 → 0.20.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/useGetOrchestrationActivitiesByAcitivityRefsMutation.d.ts +1 -5
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.js +1 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.d.ts +39 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesQuery.js +19 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhasesQuery.d.ts +38 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhasesQuery.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +7 -1
- package/dist/rmg-service/src/services/index.js +2 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.d.ts +25 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivity.js +1 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.d.ts +45 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.js +1 -0
- package/package.json +1 -1
|
@@ -3,13 +3,9 @@ import type { OrchestrationActivityListByProcessIdentifierResponseResponse } fro
|
|
|
3
3
|
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetOrchestrationActivitiesByAcitivityRefsMutationPathParams {
|
|
7
|
-
identifier: string;
|
|
8
|
-
}
|
|
9
6
|
export interface GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams {
|
|
10
7
|
orgIdentifier?: string;
|
|
11
8
|
projectIdentifier?: string;
|
|
12
|
-
phaseIdentifier?: string;
|
|
13
9
|
cursor?: string;
|
|
14
10
|
/**
|
|
15
11
|
* @default 500
|
|
@@ -27,7 +23,7 @@ export type GetOrchestrationActivitiesByAcitivityRefsRequestBody = {
|
|
|
27
23
|
};
|
|
28
24
|
export type GetOrchestrationActivitiesByAcitivityRefsOkResponse = ResponseWithPagination<OrchestrationActivityListByProcessIdentifierResponseResponse>;
|
|
29
25
|
export type GetOrchestrationActivitiesByAcitivityRefsErrorResponse = ErrorResponseResponse;
|
|
30
|
-
export interface GetOrchestrationActivitiesByAcitivityRefsProps extends
|
|
26
|
+
export interface GetOrchestrationActivitiesByAcitivityRefsProps extends Omit<FetcherOptions<GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams, GetOrchestrationActivitiesByAcitivityRefsRequestBody, GetOrchestrationActivitiesByAcitivityRefsMutationHeaderParams>, 'url'> {
|
|
31
27
|
queryParams: GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams;
|
|
32
28
|
body: GetOrchestrationActivitiesByAcitivityRefsRequestBody;
|
|
33
29
|
}
|
package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getOrchestrationActivitiesByAcitivityRefs(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/orchestration/activity/
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/activity/list`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get orchestration activities for a specific process identifier
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationExecutionActivity } from '../schemas/OrchestrationExecutionActivity';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationExecutionActivitiesQueryPathParams {
|
|
7
|
+
releaseId: string;
|
|
8
|
+
phaseExecutionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetOrchestrationExecutionActivitiesQueryQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetOrchestrationExecutionActivitiesQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetOrchestrationExecutionActivitiesOkResponse = ResponseWithPagination<{
|
|
17
|
+
activities: OrchestrationExecutionActivity[];
|
|
18
|
+
/**
|
|
19
|
+
* ID of the phase execution
|
|
20
|
+
*/
|
|
21
|
+
phase_execution_id: string;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the process execution
|
|
24
|
+
*/
|
|
25
|
+
process_execution_id: string;
|
|
26
|
+
/**
|
|
27
|
+
* ID of the release
|
|
28
|
+
*/
|
|
29
|
+
release_id: string;
|
|
30
|
+
}>;
|
|
31
|
+
export type GetOrchestrationExecutionActivitiesErrorResponse = ErrorResponseResponse;
|
|
32
|
+
export interface GetOrchestrationExecutionActivitiesProps extends GetOrchestrationExecutionActivitiesQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivitiesQueryQueryParams, unknown, GetOrchestrationExecutionActivitiesQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: GetOrchestrationExecutionActivitiesQueryQueryParams;
|
|
34
|
+
}
|
|
35
|
+
export declare function getOrchestrationExecutionActivities(props: GetOrchestrationExecutionActivitiesProps): Promise<GetOrchestrationExecutionActivitiesOkResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* 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.
|
|
38
|
+
*/
|
|
39
|
+
export declare function useGetOrchestrationExecutionActivitiesQuery(props: GetOrchestrationExecutionActivitiesProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivitiesOkResponse, GetOrchestrationExecutionActivitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivitiesOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrchestrationExecutionActivities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/phase/${props.phaseExecutionId}/activities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
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.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationExecutionActivitiesQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'get-orchestration-execution-activities',
|
|
15
|
+
props.releaseId,
|
|
16
|
+
props.phaseExecutionId,
|
|
17
|
+
props.queryParams,
|
|
18
|
+
], ({ signal }) => getOrchestrationExecutionActivities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
19
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { OrchestrationExecutionPhase } from '../schemas/OrchestrationExecutionPhase';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetOrchestrationExecutionPhasesQueryPathParams {
|
|
7
|
+
releaseId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetOrchestrationExecutionPhasesQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetOrchestrationExecutionPhasesQueryHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type GetOrchestrationExecutionPhasesOkResponse = ResponseWithPagination<{
|
|
16
|
+
phases: OrchestrationExecutionPhase[];
|
|
17
|
+
/**
|
|
18
|
+
* ID of the process execution
|
|
19
|
+
*/
|
|
20
|
+
process_execution_id: string;
|
|
21
|
+
/**
|
|
22
|
+
* ID of the release
|
|
23
|
+
*/
|
|
24
|
+
release_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of running phases
|
|
27
|
+
*/
|
|
28
|
+
total_running_phases: number;
|
|
29
|
+
}>;
|
|
30
|
+
export type GetOrchestrationExecutionPhasesErrorResponse = ErrorResponseResponse;
|
|
31
|
+
export interface GetOrchestrationExecutionPhasesProps extends GetOrchestrationExecutionPhasesQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionPhasesQueryQueryParams, unknown, GetOrchestrationExecutionPhasesQueryHeaderParams>, 'url'> {
|
|
32
|
+
queryParams: GetOrchestrationExecutionPhasesQueryQueryParams;
|
|
33
|
+
}
|
|
34
|
+
export declare function getOrchestrationExecutionPhases(props: GetOrchestrationExecutionPhasesProps): Promise<GetOrchestrationExecutionPhasesOkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve all phases for a specific release. Returns phase details including their YAML configurations.
|
|
37
|
+
*/
|
|
38
|
+
export declare function useGetOrchestrationExecutionPhasesQuery(props: GetOrchestrationExecutionPhasesProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionPhasesOkResponse, import("..").Error>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getOrchestrationExecutionPhases(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/phases`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve all phases for a specific release. Returns phase details including their YAML configurations.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetOrchestrationExecutionPhasesQuery(props, options) {
|
|
13
|
+
return useQuery(['get-orchestration-execution-phases', props.releaseId, props.queryParams], ({ signal }) => getOrchestrationExecutionPhases(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { DeleteReleaseGroupErrorResponse, DeleteReleaseGroupMutationPathParams, DeleteReleaseGroupMutationQueryParams, DeleteReleaseGroupOkResponse, DeleteReleaseGroupProps, } from './hooks/useDeleteReleaseGroupMutation';
|
|
3
3
|
export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
|
|
4
|
-
export type { GetOrchestrationActivitiesByAcitivityRefsErrorResponse,
|
|
4
|
+
export type { GetOrchestrationActivitiesByAcitivityRefsErrorResponse, GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams, GetOrchestrationActivitiesByAcitivityRefsOkResponse, GetOrchestrationActivitiesByAcitivityRefsProps, GetOrchestrationActivitiesByAcitivityRefsRequestBody, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
|
|
5
5
|
export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitiesByAcitivityRefsMutation, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
|
|
6
6
|
export type { GetOrchestrationActivitiesByProcessIdentifierErrorResponse, GetOrchestrationActivitiesByProcessIdentifierOkResponse, GetOrchestrationActivitiesByProcessIdentifierProps, GetOrchestrationActivitiesByProcessIdentifierQueryPathParams, GetOrchestrationActivitiesByProcessIdentifierQueryQueryParams, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
|
|
7
7
|
export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActivitiesByProcessIdentifierQuery, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
|
|
@@ -11,6 +11,10 @@ export type { GetOrchestrationActivityInputStoreSummaryErrorResponse, GetOrchest
|
|
|
11
11
|
export { getOrchestrationActivityInputStoreSummary, useGetOrchestrationActivityInputStoreSummaryQuery, } from './hooks/useGetOrchestrationActivityInputStoreSummaryQuery';
|
|
12
12
|
export type { GetOrchestrationActivityErrorResponse, GetOrchestrationActivityOkResponse, GetOrchestrationActivityProps, GetOrchestrationActivityQueryPathParams, GetOrchestrationActivityQueryQueryParams, } from './hooks/useGetOrchestrationActivityQuery';
|
|
13
13
|
export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
|
|
14
|
+
export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestrationExecutionActivitiesOkResponse, GetOrchestrationExecutionActivitiesProps, GetOrchestrationExecutionActivitiesQueryPathParams, GetOrchestrationExecutionActivitiesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
15
|
+
export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
16
|
+
export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
17
|
+
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
14
18
|
export type { GetOrchestrationProcessInputStoreSummaryErrorResponse, GetOrchestrationProcessInputStoreSummaryOkResponse, GetOrchestrationProcessInputStoreSummaryProps, GetOrchestrationProcessInputStoreSummaryQueryQueryParams, } from './hooks/useGetOrchestrationProcessInputStoreSummaryQuery';
|
|
15
19
|
export { getOrchestrationProcessInputStoreSummary, useGetOrchestrationProcessInputStoreSummaryQuery, } from './hooks/useGetOrchestrationProcessInputStoreSummaryQuery';
|
|
16
20
|
export type { GetOrchestrationProcessErrorResponse, GetOrchestrationProcessOkResponse, GetOrchestrationProcessProps, GetOrchestrationProcessQueryPathParams, GetOrchestrationProcessQueryQueryParams, } from './hooks/useGetOrchestrationProcessQuery';
|
|
@@ -116,6 +120,8 @@ export type { NextRequest } from './schemas/NextRequest';
|
|
|
116
120
|
export type { OrchestrationActivityInputStoreDto } from './schemas/OrchestrationActivityInputStoreDto';
|
|
117
121
|
export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
|
|
118
122
|
export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
|
|
123
|
+
export type { OrchestrationExecutionActivity } from './schemas/OrchestrationExecutionActivity';
|
|
124
|
+
export type { OrchestrationExecutionPhase } from './schemas/OrchestrationExecutionPhase';
|
|
119
125
|
export type { OrchestrationPhaseYaml } from './schemas/OrchestrationPhaseYaml';
|
|
120
126
|
export type { OrchestrationProcessDto } from './schemas/OrchestrationProcessDto';
|
|
121
127
|
export type { OrchestrationProcessInputStoreDto } from './schemas/OrchestrationProcessInputStoreDto';
|
|
@@ -4,6 +4,8 @@ export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActiv
|
|
|
4
4
|
export { getOrchestrationActivityInputStore, useGetOrchestrationActivityInputStoreQuery, } from './hooks/useGetOrchestrationActivityInputStoreQuery';
|
|
5
5
|
export { getOrchestrationActivityInputStoreSummary, useGetOrchestrationActivityInputStoreSummaryQuery, } from './hooks/useGetOrchestrationActivityInputStoreSummaryQuery';
|
|
6
6
|
export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
|
|
7
|
+
export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
|
|
8
|
+
export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
|
|
7
9
|
export { getOrchestrationProcessInputStoreSummary, useGetOrchestrationProcessInputStoreSummaryQuery, } from './hooks/useGetOrchestrationProcessInputStoreSummaryQuery';
|
|
8
10
|
export { getOrchestrationProcess, useGetOrchestrationProcessQuery, } from './hooks/useGetOrchestrationProcessQuery';
|
|
9
11
|
export { getOrchestrationProcessSummary, useGetOrchestrationProcessSummaryQuery, } from './hooks/useGetOrchestrationProcessSummaryQuery';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Status } from '../schemas/Status';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an activity in the orchestration execution
|
|
4
|
+
*/
|
|
5
|
+
export interface OrchestrationExecutionActivity {
|
|
6
|
+
/**
|
|
7
|
+
* End timestamp in milliseconds
|
|
8
|
+
* @format int64
|
|
9
|
+
*/
|
|
10
|
+
end_ts: number;
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the activity
|
|
13
|
+
*/
|
|
14
|
+
identifier: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the activity
|
|
17
|
+
*/
|
|
18
|
+
name: string;
|
|
19
|
+
/**
|
|
20
|
+
* Start timestamp in milliseconds
|
|
21
|
+
* @format int64
|
|
22
|
+
*/
|
|
23
|
+
start_ts: number;
|
|
24
|
+
status: Status;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Status } from '../schemas/Status';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a phase in the orchestration execution
|
|
4
|
+
*/
|
|
5
|
+
export interface OrchestrationExecutionPhase {
|
|
6
|
+
/**
|
|
7
|
+
* Number of completed activities in the phase
|
|
8
|
+
*/
|
|
9
|
+
completed_activities: number;
|
|
10
|
+
/**
|
|
11
|
+
* List of phase identifiers this phase depends on
|
|
12
|
+
*/
|
|
13
|
+
depends_on?: string[];
|
|
14
|
+
/**
|
|
15
|
+
* End timestamp in milliseconds
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
end_ts: number;
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier of the phase
|
|
21
|
+
*/
|
|
22
|
+
identifier: string;
|
|
23
|
+
/**
|
|
24
|
+
* Name of the phase
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* List of owners for the phase
|
|
29
|
+
*/
|
|
30
|
+
owners?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* ID of the phase execution
|
|
33
|
+
*/
|
|
34
|
+
phase_execution_id: string;
|
|
35
|
+
/**
|
|
36
|
+
* Start timestamp in milliseconds
|
|
37
|
+
* @format int64
|
|
38
|
+
*/
|
|
39
|
+
start_ts: number;
|
|
40
|
+
status: Status;
|
|
41
|
+
/**
|
|
42
|
+
* Total number of activities in the phase
|
|
43
|
+
*/
|
|
44
|
+
total_activities: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|