@harnessio/react-rmg-service-client 0.35.0 → 0.37.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 (25) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery.d.ts +31 -0
  2. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivityQuery.d.ts +32 -0
  4. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivityQuery.js +20 -0
  5. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionReleaseInputQuery.d.ts +37 -0
  6. package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionReleaseInputQuery.js +14 -0
  7. package/dist/rmg-service/src/services/hooks/useGetReleaseGroupSummaryQuery.d.ts +1 -0
  8. package/dist/rmg-service/src/services/index.d.ts +12 -0
  9. package/dist/rmg-service/src/services/index.js +3 -0
  10. package/dist/rmg-service/src/services/responses/OrchestrationExecutionActivitiesPaginatedResponseResponse.d.ts +46 -0
  11. package/dist/rmg-service/src/services/responses/OrchestrationExecutionActivitiesPaginatedResponseResponse.js +1 -0
  12. package/dist/rmg-service/src/services/schemas/ActivitiesCounts.d.ts +18 -0
  13. package/dist/rmg-service/src/services/schemas/ActivitiesCounts.js +1 -0
  14. package/dist/rmg-service/src/services/schemas/ActivityRetryInfo.d.ts +19 -0
  15. package/dist/rmg-service/src/services/schemas/ActivityTriggerInfo.d.ts +17 -0
  16. package/dist/rmg-service/src/services/schemas/ActivityTriggerInfo.js +4 -0
  17. package/dist/rmg-service/src/services/schemas/ActivityTypeCounts.d.ts +15 -0
  18. package/dist/rmg-service/src/services/schemas/ActivityTypeCounts.js +4 -0
  19. package/dist/rmg-service/src/services/schemas/CreateOrchestrationActivityRequestType.d.ts +1 -1
  20. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityDetail.d.ts +79 -0
  21. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityDetail.js +1 -0
  22. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityPaginated.d.ts +67 -0
  23. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityPaginated.js +1 -0
  24. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.d.ts +5 -0
  25. package/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { OrchestrationExecutionActivitiesPaginatedResponseResponse } from '../responses/OrchestrationExecutionActivitiesPaginatedResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionActivitiesPaginatedQueryPathParams {
7
+ releaseId: string;
8
+ }
9
+ export interface GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ page?: number;
13
+ size?: number;
14
+ sort?: string[];
15
+ status?: string[];
16
+ type?: Array<'MANUAL' | 'PIPELINE' | 'SUBPROCESS'>;
17
+ phaseIdentifier?: string;
18
+ }
19
+ export interface GetOrchestrationExecutionActivitiesPaginatedQueryHeaderParams {
20
+ 'Harness-Account': string;
21
+ }
22
+ export type GetOrchestrationExecutionActivitiesPaginatedOkResponse = ResponseWithPagination<OrchestrationExecutionActivitiesPaginatedResponseResponse>;
23
+ export type GetOrchestrationExecutionActivitiesPaginatedErrorResponse = ErrorResponseResponse;
24
+ export interface GetOrchestrationExecutionActivitiesPaginatedProps extends GetOrchestrationExecutionActivitiesPaginatedQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams, unknown, GetOrchestrationExecutionActivitiesPaginatedQueryHeaderParams>, 'url'> {
25
+ queryParams: GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams;
26
+ }
27
+ export declare function getOrchestrationExecutionActivitiesPaginated(props: GetOrchestrationExecutionActivitiesPaginatedProps): Promise<GetOrchestrationExecutionActivitiesPaginatedOkResponse>;
28
+ /**
29
+ * Retrieve a paginated list of orchestration execution activities for a specific release with optional filters
30
+ */
31
+ export declare function useGetOrchestrationExecutionActivitiesPaginatedQuery(props: GetOrchestrationExecutionActivitiesPaginatedProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivitiesPaginatedOkResponse, GetOrchestrationExecutionActivitiesPaginatedErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivitiesPaginatedOkResponse, 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 getOrchestrationExecutionActivitiesPaginated(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/activities`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a paginated list of orchestration execution activities for a specific release with optional filters
11
+ */
12
+ export function useGetOrchestrationExecutionActivitiesPaginatedQuery(props, options) {
13
+ return useQuery(['get-orchestration-execution-activities-paginated', props.releaseId, props.queryParams], ({ signal }) => getOrchestrationExecutionActivitiesPaginated(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { OrchestrationExecutionActivityDetail } from '../schemas/OrchestrationExecutionActivityDetail';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationExecutionActivityQueryPathParams {
7
+ releaseId: string;
8
+ phaseIdentifier: string;
9
+ activityIdentifier: string;
10
+ }
11
+ export interface GetOrchestrationExecutionActivityQueryQueryParams {
12
+ activityExecutionId?: string;
13
+ /**
14
+ * @format int32
15
+ */
16
+ retryIndex?: number;
17
+ orgIdentifier?: string;
18
+ projectIdentifier?: string;
19
+ }
20
+ export interface GetOrchestrationExecutionActivityQueryHeaderParams {
21
+ 'Harness-Account': string;
22
+ }
23
+ export type GetOrchestrationExecutionActivityOkResponse = ResponseWithPagination<OrchestrationExecutionActivityDetail>;
24
+ export type GetOrchestrationExecutionActivityErrorResponse = ErrorResponseResponse;
25
+ export interface GetOrchestrationExecutionActivityProps extends GetOrchestrationExecutionActivityQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionActivityQueryQueryParams, unknown, GetOrchestrationExecutionActivityQueryHeaderParams>, 'url'> {
26
+ queryParams: GetOrchestrationExecutionActivityQueryQueryParams;
27
+ }
28
+ export declare function getOrchestrationExecutionActivity(props: GetOrchestrationExecutionActivityProps): Promise<GetOrchestrationExecutionActivityOkResponse>;
29
+ /**
30
+ * Retrieve detailed information about an activity execution including phase info, yaml, and pipeline/subprocess execution details. If activityExecutionId is provided, filters by it directly. Otherwise, filters by releaseId, phaseIdentifier, activityIdentifier, and retryIndex (defaults to 0 if not provided).
31
+ */
32
+ export declare function useGetOrchestrationExecutionActivityQuery(props: GetOrchestrationExecutionActivityProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivityOkResponse, GetOrchestrationExecutionActivityErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivityOkResponse, import("..").Error>;
@@ -0,0 +1,20 @@
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 getOrchestrationExecutionActivity(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/release/${props.releaseId}/phase/${props.phaseIdentifier}/activity/${props.activityIdentifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve detailed information about an activity execution including phase info, yaml, and pipeline/subprocess execution details. If activityExecutionId is provided, filters by it directly. Otherwise, filters by releaseId, phaseIdentifier, activityIdentifier, and retryIndex (defaults to 0 if not provided).
11
+ */
12
+ export function useGetOrchestrationExecutionActivityQuery(props, options) {
13
+ return useQuery([
14
+ 'get-orchestration-execution-activity',
15
+ props.releaseId,
16
+ props.phaseIdentifier,
17
+ props.activityIdentifier,
18
+ props.queryParams,
19
+ ], ({ signal }) => getOrchestrationExecutionActivity(Object.assign(Object.assign({}, props), { signal })), options);
20
+ }
@@ -0,0 +1,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetOrchestrationExecutionReleaseInputQueryPathParams {
6
+ releaseId: string;
7
+ }
8
+ export interface GetOrchestrationExecutionReleaseInputQueryQueryParams {
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export interface GetOrchestrationExecutionReleaseInputQueryHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type GetOrchestrationExecutionReleaseInputOkResponse = ResponseWithPagination<{
16
+ /**
17
+ * ID of the process execution
18
+ */
19
+ process_execution_id: string;
20
+ /**
21
+ * ID of the release
22
+ */
23
+ release_id: string;
24
+ /**
25
+ * YAML content of the release input
26
+ */
27
+ yaml: string;
28
+ }>;
29
+ export type GetOrchestrationExecutionReleaseInputErrorResponse = ErrorResponseResponse;
30
+ export interface GetOrchestrationExecutionReleaseInputProps extends GetOrchestrationExecutionReleaseInputQueryPathParams, Omit<FetcherOptions<GetOrchestrationExecutionReleaseInputQueryQueryParams, unknown, GetOrchestrationExecutionReleaseInputQueryHeaderParams>, 'url'> {
31
+ queryParams: GetOrchestrationExecutionReleaseInputQueryQueryParams;
32
+ }
33
+ export declare function getOrchestrationExecutionReleaseInput(props: GetOrchestrationExecutionReleaseInputProps): Promise<GetOrchestrationExecutionReleaseInputOkResponse>;
34
+ /**
35
+ * Retrieve the latest release input for a specific release ID
36
+ */
37
+ export declare function useGetOrchestrationExecutionReleaseInputQuery(props: GetOrchestrationExecutionReleaseInputProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionReleaseInputOkResponse, GetOrchestrationExecutionReleaseInputErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionReleaseInputOkResponse, 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 getOrchestrationExecutionReleaseInput(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/execution/releaseInput/${props.releaseId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve the latest release input for a specific release ID
11
+ */
12
+ export function useGetOrchestrationExecutionReleaseInputQuery(props, options) {
13
+ return useQuery(['get-orchestration-execution-release-input', props.releaseId, props.queryParams], ({ signal }) => getOrchestrationExecutionReleaseInput(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,6 +7,7 @@ export interface GetReleaseGroupSummaryQueryQueryParams {
7
7
  orgIdentifier?: string;
8
8
  searchTerm?: string;
9
9
  status?: string[];
10
+ type?: 'Orchestration' | 'Tracking';
10
11
  page?: number;
11
12
  size?: number;
12
13
  sort?: string[];
@@ -27,16 +27,22 @@ export type { GetOrchestrationActivityErrorResponse, GetOrchestrationActivityOkR
27
27
  export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
28
28
  export type { GetOrchestrationActivitySummaryErrorResponse, GetOrchestrationActivitySummaryOkResponse, GetOrchestrationActivitySummaryProps, GetOrchestrationActivitySummaryQueryQueryParams, } from './hooks/useGetOrchestrationActivitySummaryQuery';
29
29
  export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
30
+ export type { GetOrchestrationExecutionActivitiesPaginatedErrorResponse, GetOrchestrationExecutionActivitiesPaginatedOkResponse, GetOrchestrationExecutionActivitiesPaginatedProps, GetOrchestrationExecutionActivitiesPaginatedQueryPathParams, GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery';
31
+ export { getOrchestrationExecutionActivitiesPaginated, useGetOrchestrationExecutionActivitiesPaginatedQuery, } from './hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery';
30
32
  export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestrationExecutionActivitiesOkResponse, GetOrchestrationExecutionActivitiesProps, GetOrchestrationExecutionActivitiesQueryPathParams, GetOrchestrationExecutionActivitiesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
31
33
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
32
34
  export type { GetOrchestrationExecutionActivityInputsErrorResponse, GetOrchestrationExecutionActivityInputsOkResponse, GetOrchestrationExecutionActivityInputsProps, GetOrchestrationExecutionActivityInputsQueryPathParams, GetOrchestrationExecutionActivityInputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
33
35
  export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionActivityInputsQuery, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
34
36
  export type { GetOrchestrationExecutionActivityOutputsErrorResponse, GetOrchestrationExecutionActivityOutputsOkResponse, GetOrchestrationExecutionActivityOutputsProps, GetOrchestrationExecutionActivityOutputsQueryPathParams, GetOrchestrationExecutionActivityOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
35
37
  export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
38
+ export type { GetOrchestrationExecutionActivityErrorResponse, GetOrchestrationExecutionActivityOkResponse, GetOrchestrationExecutionActivityProps, GetOrchestrationExecutionActivityQueryPathParams, GetOrchestrationExecutionActivityQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivityQuery';
39
+ export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
36
40
  export type { GetOrchestrationExecutionPhaseOutputsErrorResponse, GetOrchestrationExecutionPhaseOutputsOkResponse, GetOrchestrationExecutionPhaseOutputsProps, GetOrchestrationExecutionPhaseOutputsQueryPathParams, GetOrchestrationExecutionPhaseOutputsQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
37
41
  export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
38
42
  export type { GetOrchestrationExecutionPhasesErrorResponse, GetOrchestrationExecutionPhasesOkResponse, GetOrchestrationExecutionPhasesProps, GetOrchestrationExecutionPhasesQueryPathParams, GetOrchestrationExecutionPhasesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
39
43
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
44
+ export type { GetOrchestrationExecutionReleaseInputErrorResponse, GetOrchestrationExecutionReleaseInputOkResponse, GetOrchestrationExecutionReleaseInputProps, GetOrchestrationExecutionReleaseInputQueryPathParams, GetOrchestrationExecutionReleaseInputQueryQueryParams, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
45
+ export { getOrchestrationExecutionReleaseInput, useGetOrchestrationExecutionReleaseInputQuery, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
40
46
  export type { GetOrchestrationExecutionTasksErrorResponse, GetOrchestrationExecutionTasksOkResponse, GetOrchestrationExecutionTasksProps, GetOrchestrationExecutionTasksQueryPathParams, GetOrchestrationExecutionTasksQueryQueryParams, } from './hooks/useGetOrchestrationExecutionTasksQuery';
41
47
  export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
42
48
  export type { GetOrchestrationProcessInputErrorResponse, GetOrchestrationProcessInputOkResponse, GetOrchestrationProcessInputProps, GetOrchestrationProcessInputQueryPathParams, GetOrchestrationProcessInputQueryQueryParams, } from './hooks/useGetOrchestrationProcessInputQuery';
@@ -143,6 +149,7 @@ export type { GetReleaseGroupResponseResponse } from './responses/GetReleaseGrou
143
149
  export type { OnHoldActivityActionResponseResponse } from './responses/OnHoldActivityActionResponseResponse';
144
150
  export type { OrchestrationActivityListByProcessIdentifierResponseResponse } from './responses/OrchestrationActivityListByProcessIdentifierResponseResponse';
145
151
  export type { OrchestrationActivitySummaryResponseResponse } from './responses/OrchestrationActivitySummaryResponseResponse';
152
+ export type { OrchestrationExecutionActivitiesPaginatedResponseResponse } from './responses/OrchestrationExecutionActivitiesPaginatedResponseResponse';
146
153
  export type { OrchestrationProcessAttachedReleaseGroupsResponseResponse } from './responses/OrchestrationProcessAttachedReleaseGroupsResponseResponse';
147
154
  export type { OrchestrationProcessInputSummaryResponseResponse } from './responses/OrchestrationProcessInputSummaryResponseResponse';
148
155
  export type { OrchestrationProcessSummaryResponseResponse } from './responses/OrchestrationProcessSummaryResponseResponse';
@@ -165,12 +172,15 @@ export type { UpdateReleaseConflictResponseResponse } from './responses/UpdateRe
165
172
  export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
166
173
  export type { UpdateReleaseResponseResponse } from './responses/UpdateReleaseResponseResponse';
167
174
  export type { UpdateTaskCommentResponseResponse } from './responses/UpdateTaskCommentResponseResponse';
175
+ export type { ActivitiesCounts } from './schemas/ActivitiesCounts';
168
176
  export type { ActivityExecutionInputDto } from './schemas/ActivityExecutionInputDto';
169
177
  export type { ActivityInputYaml } from './schemas/ActivityInputYaml';
170
178
  export type { ActivityInputsResponse } from './schemas/ActivityInputsResponse';
171
179
  export type { ActivityRetryHistoryResponse } from './schemas/ActivityRetryHistoryResponse';
172
180
  export type { ActivityRetryInfo } from './schemas/ActivityRetryInfo';
181
+ export type { ActivityTriggerInfo } from './schemas/ActivityTriggerInfo';
173
182
  export type { ActivityType } from './schemas/ActivityType';
183
+ export type { ActivityTypeCounts } from './schemas/ActivityTypeCounts';
174
184
  export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
175
185
  export type { ApprovedByDto } from './schemas/ApprovedByDto';
176
186
  export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
@@ -209,6 +219,8 @@ export type { OrchestrationActivitySummaryDto } from './schemas/OrchestrationAct
209
219
  export type { OrchestrationActivityYaml } from './schemas/OrchestrationActivityYaml';
210
220
  export type { OrchestrationActivityYamlDto } from './schemas/OrchestrationActivityYamlDto';
211
221
  export type { OrchestrationExecutionActivity } from './schemas/OrchestrationExecutionActivity';
222
+ export type { OrchestrationExecutionActivityDetail } from './schemas/OrchestrationExecutionActivityDetail';
223
+ export type { OrchestrationExecutionActivityPaginated } from './schemas/OrchestrationExecutionActivityPaginated';
212
224
  export type { OrchestrationExecutionPhase } from './schemas/OrchestrationExecutionPhase';
213
225
  export type { OrchestrationPhaseYaml } from './schemas/OrchestrationPhaseYaml';
214
226
  export type { OrchestrationProcessDto } from './schemas/OrchestrationProcessDto';
@@ -12,11 +12,14 @@ export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActiv
12
12
  export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
13
13
  export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
14
14
  export { getOrchestrationActivitySummary, useGetOrchestrationActivitySummaryQuery, } from './hooks/useGetOrchestrationActivitySummaryQuery';
15
+ export { getOrchestrationExecutionActivitiesPaginated, useGetOrchestrationExecutionActivitiesPaginatedQuery, } from './hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery';
15
16
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
16
17
  export { getOrchestrationExecutionActivityInputs, useGetOrchestrationExecutionActivityInputsQuery, } from './hooks/useGetOrchestrationExecutionActivityInputsQuery';
17
18
  export { getOrchestrationExecutionActivityOutputs, useGetOrchestrationExecutionActivityOutputsQuery, } from './hooks/useGetOrchestrationExecutionActivityOutputsQuery';
19
+ export { getOrchestrationExecutionActivity, useGetOrchestrationExecutionActivityQuery, } from './hooks/useGetOrchestrationExecutionActivityQuery';
18
20
  export { getOrchestrationExecutionPhaseOutputs, useGetOrchestrationExecutionPhaseOutputsQuery, } from './hooks/useGetOrchestrationExecutionPhaseOutputsQuery';
19
21
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
22
+ export { getOrchestrationExecutionReleaseInput, useGetOrchestrationExecutionReleaseInputQuery, } from './hooks/useGetOrchestrationExecutionReleaseInputQuery';
20
23
  export { getOrchestrationExecutionTasks, useGetOrchestrationExecutionTasksQuery, } from './hooks/useGetOrchestrationExecutionTasksQuery';
21
24
  export { getOrchestrationProcessInput, useGetOrchestrationProcessInputQuery, } from './hooks/useGetOrchestrationProcessInputQuery';
22
25
  export { getOrchestrationProcessInputSummary, useGetOrchestrationProcessInputSummaryQuery, } from './hooks/useGetOrchestrationProcessInputSummaryQuery';
@@ -0,0 +1,46 @@
1
+ import type { OrchestrationExecutionActivityPaginated } from '../schemas/OrchestrationExecutionActivityPaginated';
2
+ import type { Pageable } from '../schemas/Pageable';
3
+ import type { PageableSort } from '../schemas/PageableSort';
4
+ export interface OrchestrationExecutionActivitiesPaginatedResponseResponse {
5
+ content: OrchestrationExecutionActivityPaginated[];
6
+ /**
7
+ * Whether the current page is empty
8
+ */
9
+ empty: boolean;
10
+ /**
11
+ * Whether this is the first page
12
+ */
13
+ first: boolean;
14
+ /**
15
+ * Whether this is the last page
16
+ */
17
+ last: boolean;
18
+ /**
19
+ * Current page number (0-indexed)
20
+ */
21
+ number: number;
22
+ /**
23
+ * Number of items in the current page
24
+ */
25
+ numberOfElements: number;
26
+ /**
27
+ * Pagination metadata
28
+ */
29
+ pageable?: Pageable;
30
+ /**
31
+ * Number of items per page
32
+ */
33
+ size: number;
34
+ /**
35
+ * Sorting information
36
+ */
37
+ sort?: PageableSort;
38
+ /**
39
+ * Total number of activities across all pages
40
+ */
41
+ totalElements: number;
42
+ /**
43
+ * Total number of pages
44
+ */
45
+ totalPages: number;
46
+ }
@@ -0,0 +1,18 @@
1
+ import type { ActivityTypeCounts } from '../schemas/ActivityTypeCounts';
2
+ /**
3
+ * Activity counts grouped by type and status
4
+ */
5
+ export interface ActivitiesCounts {
6
+ /**
7
+ * Manual activity counts
8
+ */
9
+ manual: ActivityTypeCounts;
10
+ /**
11
+ * Pipeline activity counts
12
+ */
13
+ pipeline: ActivityTypeCounts;
14
+ /**
15
+ * Subprocess activity counts
16
+ */
17
+ subprocess: ActivityTypeCounts;
18
+ }
@@ -1,5 +1,8 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
+ import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
2
3
  import type { Status } from '../schemas/Status';
4
+ import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
5
+ import type { ActivityTriggerInfo } from '../schemas/ActivityTriggerInfo';
3
6
  /**
4
7
  * Information about a single retry attempt
5
8
  */
@@ -38,6 +41,10 @@ export interface ActivityRetryInfo {
38
41
  * The ID of the phase this activity belongs to
39
42
  */
40
43
  phaseId?: string;
44
+ /**
45
+ * Pipeline execution information for activities
46
+ */
47
+ pipeline?: PipelineActivityInfo;
41
48
  /**
42
49
  * The retry index (0 for original, 1+ for retries)
43
50
  * @format int32
@@ -52,4 +59,16 @@ export interface ActivityRetryInfo {
52
59
  * The status of this retry attempt
53
60
  */
54
61
  status: Status;
62
+ /**
63
+ * Subprocess execution information for activities
64
+ */
65
+ subprocess?: SubprocessActivityInfo;
66
+ /**
67
+ * Trigger information for the activity
68
+ */
69
+ triggerInfo?: ActivityTriggerInfo;
70
+ /**
71
+ * YAML representation of the activity
72
+ */
73
+ yaml: string;
55
74
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Trigger information for an activity
3
+ */
4
+ export interface ActivityTriggerInfo {
5
+ /**
6
+ * Email of the person who triggered the activity
7
+ */
8
+ email?: string | null;
9
+ /**
10
+ * Identifier of the person who triggered the activity
11
+ */
12
+ identifier?: string | null;
13
+ /**
14
+ * Name of the person who triggered the activity
15
+ */
16
+ name?: string | null;
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,15 @@
1
+ /**
2
+ * Counts of activities by status for a specific activity type
3
+ */
4
+ export interface ActivityTypeCounts {
5
+ /**
6
+ * Number of running activities of this type
7
+ * @default 0
8
+ */
9
+ running: number;
10
+ /**
11
+ * Number of activities of this type requiring user action
12
+ * @default 0
13
+ */
14
+ userAction: number;
15
+ }
@@ -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 {};
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Type of orchestration activity
3
3
  */
4
- export type CreateOrchestrationActivityRequestType = 'MANUAL' | 'PIPELINE';
4
+ export type CreateOrchestrationActivityRequestType = 'MANUAL' | 'PIPELINE' | 'SUBPROCESS';
@@ -0,0 +1,79 @@
1
+ import type { FailureInfo } from '../schemas/FailureInfo';
2
+ import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
+ import type { Status } from '../schemas/Status';
4
+ import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
5
+ import type { ActivityTriggerInfo } from '../schemas/ActivityTriggerInfo';
6
+ /**
7
+ * Detailed information about an activity execution
8
+ */
9
+ export interface OrchestrationExecutionActivityDetail {
10
+ /**
11
+ * ID of the activity execution
12
+ */
13
+ activity_execution_id: string;
14
+ /**
15
+ * End timestamp in milliseconds
16
+ * @format int64
17
+ */
18
+ end_ts?: number;
19
+ failureInfo?: FailureInfo;
20
+ /**
21
+ * Identifier of the activity
22
+ */
23
+ identifier: string;
24
+ /**
25
+ * Name of the activity
26
+ */
27
+ name: string;
28
+ /**
29
+ * Identifier of the phase
30
+ */
31
+ phaseIdentifier: string;
32
+ /**
33
+ * Name of the phase
34
+ */
35
+ phaseName: string;
36
+ /**
37
+ * ID of the phase execution
38
+ */
39
+ phase_execution_id: string;
40
+ /**
41
+ * Pipeline execution information for activities
42
+ */
43
+ pipeline?: PipelineActivityInfo;
44
+ /**
45
+ * ID of the process execution
46
+ */
47
+ process_execution_id: string;
48
+ /**
49
+ * Retry ID of the activity execution
50
+ */
51
+ retry_id?: string;
52
+ /**
53
+ * Retry index of the activity execution
54
+ * @format int32
55
+ */
56
+ retry_index?: number;
57
+ /**
58
+ * Root retry ID of the activity execution
59
+ */
60
+ root_retry_id?: string;
61
+ /**
62
+ * Start timestamp in milliseconds
63
+ * @format int64
64
+ */
65
+ start_ts?: number;
66
+ status: Status;
67
+ /**
68
+ * Subprocess execution information for activities
69
+ */
70
+ subprocess?: SubprocessActivityInfo;
71
+ /**
72
+ * Trigger information for the activity
73
+ */
74
+ triggerInfo?: ActivityTriggerInfo;
75
+ /**
76
+ * YAML configuration of the activity
77
+ */
78
+ yaml: string;
79
+ }
@@ -0,0 +1,67 @@
1
+ import type { FailureInfo } from '../schemas/FailureInfo';
2
+ import type { Status } from '../schemas/Status';
3
+ import type { ActivityTriggerInfo } from '../schemas/ActivityTriggerInfo';
4
+ /**
5
+ * Represents an activity in the paginated orchestration execution activities response
6
+ */
7
+ export interface OrchestrationExecutionActivityPaginated {
8
+ /**
9
+ * Activity execution ID
10
+ */
11
+ activityExecutionId?: string | null;
12
+ /**
13
+ * End timestamp in milliseconds
14
+ * @format int64
15
+ */
16
+ endTs?: number | null;
17
+ /**
18
+ * Failure information if the activity failed
19
+ */
20
+ failureInfo?: FailureInfo;
21
+ /**
22
+ * Unique identifier of the activity
23
+ */
24
+ identifier: string;
25
+ /**
26
+ * Name of the activity
27
+ */
28
+ name: string;
29
+ /**
30
+ * Phase execution ID
31
+ */
32
+ phaseExecutionId: string;
33
+ /**
34
+ * Identifier of the phase this activity belongs to
35
+ */
36
+ phaseIdentifier: string;
37
+ /**
38
+ * Process execution ID
39
+ */
40
+ processExecutionId: string;
41
+ /**
42
+ * Retry ID
43
+ */
44
+ retryId?: string | null;
45
+ /**
46
+ * Retry index if this is a retry
47
+ * @format int32
48
+ */
49
+ retryIndex?: number | null;
50
+ /**
51
+ * Start timestamp in milliseconds
52
+ * @format int64
53
+ */
54
+ startTs?: number | null;
55
+ /**
56
+ * Current status of the activity
57
+ */
58
+ status: Status;
59
+ /**
60
+ * Trigger information for the activity
61
+ */
62
+ triggerInfo?: ActivityTriggerInfo;
63
+ /**
64
+ * Type of the activity
65
+ */
66
+ type: 'MANUAL' | 'PIPELINE' | 'SUBPROCESS';
67
+ }
@@ -1,9 +1,14 @@
1
+ import type { ActivitiesCounts } from '../schemas/ActivitiesCounts';
1
2
  import type { FailureInfo } from '../schemas/FailureInfo';
2
3
  import type { Status } from '../schemas/Status';
3
4
  /**
4
5
  * Represents a phase in the orchestration execution
5
6
  */
6
7
  export interface OrchestrationExecutionPhase {
8
+ /**
9
+ * Activity counts for this phase grouped by type and status
10
+ */
11
+ activitiesCounts: ActivitiesCounts;
7
12
  /**
8
13
  * Number of completed activities in the phase
9
14
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",