@harnessio/react-rmg-service-client 0.39.0 → 0.40.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' | '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,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
  */
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of orchestration execution activities
3
+ */
4
+ export type OrchestrationStatus = 'ABORTED' | 'FAILED' | 'IGNORED' | 'ON_HOLD' | 'OUTPUT_WAITING' | '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.40.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",