@harnessio/react-rmg-service-client 0.39.0 → 0.41.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.
@@ -8,7 +8,7 @@ export interface GetEventsByEntityTypeAndIdQueryPathParams {
8
8
  entityId: string;
9
9
  }
10
10
  export interface GetEventsByEntityTypeAndIdQueryQueryParams {
11
- type?: 'Status';
11
+ eventType?: string;
12
12
  orgIdentifier?: string;
13
13
  projectIdentifier?: string;
14
14
  cursor?: string;
@@ -12,9 +12,17 @@ export interface GetOrchestrationExecutionActivitiesPaginatedQueryQueryParams {
12
12
  page?: number;
13
13
  size?: number;
14
14
  sort?: string[];
15
- status?: string[];
15
+ status?: Array<'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED'>;
16
16
  type?: Array<'MANUAL' | 'PIPELINE' | 'SUBPROCESS'>;
17
17
  phaseIdentifier?: string;
18
+ /**
19
+ * @format int64
20
+ */
21
+ startTs?: number;
22
+ /**
23
+ * @format int64
24
+ */
25
+ endTs?: number;
18
26
  }
19
27
  export interface GetOrchestrationExecutionActivitiesPaginatedQueryHeaderParams {
20
28
  'Harness-Account': string;
@@ -26,6 +34,11 @@ export interface GetOrchestrationExecutionActivitiesPaginatedProps extends GetOr
26
34
  }
27
35
  export declare function getOrchestrationExecutionActivitiesPaginated(props: GetOrchestrationExecutionActivitiesPaginatedProps): Promise<GetOrchestrationExecutionActivitiesPaginatedOkResponse>;
28
36
  /**
29
- * Retrieve a paginated list of orchestration execution activities for a specific release with optional filters
37
+ * Retrieve a paginated list of orchestration execution activities for a specific release with optional filters.
38
+ *
39
+ * **Sortable fields:** `start_ts`, `startTs`, `end_ts`, `endTs`, `last_updated_at`, `lastUpdatedAt`, `created_at`, `createdAt`, `name`, `identifier`, `status`, `type`.
40
+ * Sort format: `sort=field_name&sort=direction` where direction is `asc` or `desc`.
41
+ * Examples: `sort=start_ts&sort=desc` or `sort=endTs&sort=asc`.
42
+ *
30
43
  */
31
44
  export declare function useGetOrchestrationExecutionActivitiesPaginatedQuery(props: GetOrchestrationExecutionActivitiesPaginatedProps, options?: Omit<UseQueryOptions<GetOrchestrationExecutionActivitiesPaginatedOkResponse, GetOrchestrationExecutionActivitiesPaginatedErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationExecutionActivitiesPaginatedOkResponse, import("..").Error>;
@@ -4,10 +4,15 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getOrchestrationExecutionActivitiesPaginated(props) {
7
- return fetcher(Object.assign({ url: `/orchestration/execution/${props.releaseId}/activities`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/release/${props.releaseId}/execution/activities`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Retrieve a paginated list of orchestration execution activities for a specific release with optional filters
10
+ * Retrieve a paginated list of orchestration execution activities for a specific release with optional filters.
11
+ *
12
+ * **Sortable fields:** `start_ts`, `startTs`, `end_ts`, `endTs`, `last_updated_at`, `lastUpdatedAt`, `created_at`, `createdAt`, `name`, `identifier`, `status`, `type`.
13
+ * Sort format: `sort=field_name&sort=direction` where direction is `asc` or `desc`.
14
+ * Examples: `sort=start_ts&sort=desc` or `sort=endTs&sort=asc`.
15
+ *
11
16
  */
12
17
  export function useGetOrchestrationExecutionActivitiesPaginatedQuery(props, options) {
13
18
  return useQuery(['get-orchestration-execution-activities-paginated', props.releaseId, props.queryParams], ({ signal }) => getOrchestrationExecutionActivitiesPaginated(Object.assign(Object.assign({}, props), { signal })), options);
@@ -234,6 +234,7 @@ export type { OrchestrationPhaseYaml } from './schemas/OrchestrationPhaseYaml';
234
234
  export type { OrchestrationProcessDto } from './schemas/OrchestrationProcessDto';
235
235
  export type { OrchestrationProcessInputYaml } from './schemas/OrchestrationProcessInputYaml';
236
236
  export type { OrchestrationReleaseProcessYaml } from './schemas/OrchestrationReleaseProcessYaml';
237
+ export type { OrchestrationStatus } from './schemas/OrchestrationStatus';
237
238
  export type { Pageable } from './schemas/Pageable';
238
239
  export type { PageableSort } from './schemas/PageableSort';
239
240
  export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
@@ -1,6 +1,6 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
2
  import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
- import type { Status } from '../schemas/Status';
3
+ import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
4
4
  import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
5
5
  import type { ActivityTriggerInfo } from '../schemas/ActivityTriggerInfo';
6
6
  /**
@@ -58,7 +58,7 @@ export interface ActivityRetryInfo {
58
58
  /**
59
59
  * The status of this retry attempt
60
60
  */
61
- status: Status;
61
+ status: OrchestrationStatus;
62
62
  /**
63
63
  * Subprocess execution information for activities
64
64
  */
@@ -1,9 +1,14 @@
1
+ import type { ActivityExecutionInputDto } from '../schemas/ActivityExecutionInputDto';
1
2
  import type { SubprocessInfo } from '../schemas/SubprocessInfo';
2
3
  export interface OnHoldActivityActionRequest {
3
4
  /**
4
5
  * The action to perform on the on-hold activity. Must be 'retry' if retryWith is present.
5
6
  */
6
7
  action: 'ignore' | 'retry';
8
+ /**
9
+ * Optional list of input values for retrying the on-hold activity. Only valid when action is 'retry'.
10
+ */
11
+ inputs?: ActivityExecutionInputDto[];
7
12
  /**
8
13
  * Specifies the retry mechanism. If present, action must be 'retry'. Currently only SUBPROCESS is supported.
9
14
  */
@@ -3,6 +3,14 @@ export interface OrchestrationActivityYamlDto {
3
3
  * Identifier of the activity
4
4
  */
5
5
  identifier: string;
6
+ /**
7
+ * Organization identifier of the activity
8
+ */
9
+ orgIdentifier?: string;
10
+ /**
11
+ * Project identifier of the activity
12
+ */
13
+ projectIdentifier?: string;
6
14
  /**
7
15
  * YAML configuration of the activity
8
16
  */
@@ -1,6 +1,6 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
2
  import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
- import type { Status } from '../schemas/Status';
3
+ import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
4
4
  import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
5
5
  /**
6
6
  * Represents an activity in the orchestration execution
@@ -46,7 +46,7 @@ export interface OrchestrationExecutionActivity {
46
46
  * @format int64
47
47
  */
48
48
  start_ts?: number;
49
- status: Status;
49
+ status: OrchestrationStatus;
50
50
  /**
51
51
  * Subprocess execution information for activities
52
52
  */
@@ -1,6 +1,6 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
2
  import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
- import type { Status } from '../schemas/Status';
3
+ import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
4
4
  import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
5
5
  import type { ActivityTriggerInfo } from '../schemas/ActivityTriggerInfo';
6
6
  /**
@@ -63,7 +63,7 @@ export interface OrchestrationExecutionActivityDetail {
63
63
  * @format int64
64
64
  */
65
65
  start_ts?: number;
66
- status: Status;
66
+ status: OrchestrationStatus;
67
67
  /**
68
68
  * Subprocess execution information for activities
69
69
  */
@@ -1,5 +1,7 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
- import type { Status } from '../schemas/Status';
2
+ import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
+ import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
4
+ import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
3
5
  import type { ActivityTriggerInfo } from '../schemas/ActivityTriggerInfo';
4
6
  /**
5
7
  * Represents an activity in the paginated orchestration execution activities response
@@ -34,6 +36,10 @@ export interface OrchestrationExecutionActivityPaginated {
34
36
  * Identifier of the phase this activity belongs to
35
37
  */
36
38
  phaseIdentifier: string;
39
+ /**
40
+ * Pipeline execution information for activities
41
+ */
42
+ pipeline?: PipelineActivityInfo;
37
43
  /**
38
44
  * Process execution ID
39
45
  */
@@ -55,7 +61,11 @@ export interface OrchestrationExecutionActivityPaginated {
55
61
  /**
56
62
  * Current status of the activity
57
63
  */
58
- status: Status;
64
+ status: OrchestrationStatus;
65
+ /**
66
+ * Subprocess execution information for activities
67
+ */
68
+ subprocess?: SubprocessActivityInfo;
59
69
  /**
60
70
  * Trigger information for the activity
61
71
  */
@@ -1,6 +1,6 @@
1
1
  import type { ActivityCounts } from '../schemas/ActivityCounts';
2
2
  import type { FailureInfo } from '../schemas/FailureInfo';
3
- import type { Status } from '../schemas/Status';
3
+ import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
4
4
  /**
5
5
  * Represents a phase in the orchestration execution
6
6
  */
@@ -48,7 +48,7 @@ export interface OrchestrationExecutionPhase {
48
48
  * @format int64
49
49
  */
50
50
  start_ts?: number;
51
- status: Status;
51
+ status: OrchestrationStatus;
52
52
  /**
53
53
  * Total number of activities in the phase
54
54
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of orchestration execution activities
3
+ */
4
+ export type OrchestrationStatus = 'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | 'QUEUED' | 'RETRIED' | 'RUNNING' | 'SCHEDULED' | 'SKIPPED' | 'SUCCEEDED';
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",