@harnessio/react-rmg-service-client 0.23.0 → 0.24.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 (41) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetFreezeDetailsQuery.d.ts +25 -0
  2. package/dist/rmg-service/src/services/hooks/useGetFreezeDetailsQuery.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useGetFreezeListQuery.d.ts +35 -0
  4. package/dist/rmg-service/src/services/hooks/useGetFreezeListQuery.js +14 -0
  5. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputsQuery.d.ts +25 -0
  6. package/dist/rmg-service/src/services/hooks/useGetOrchestrationActivityInputsQuery.js +14 -0
  7. package/dist/rmg-service/src/services/hooks/useStartReleaseExecutionMutation.d.ts +8 -1
  8. package/dist/rmg-service/src/services/index.d.ts +16 -1
  9. package/dist/rmg-service/src/services/index.js +3 -0
  10. package/dist/rmg-service/src/services/responses/ActivityInputsResponseResponse.d.ts +2 -0
  11. package/dist/rmg-service/src/services/responses/ActivityInputsResponseResponse.js +1 -0
  12. package/dist/rmg-service/src/services/responses/FreezeDetailsResponseResponse.d.ts +2 -0
  13. package/dist/rmg-service/src/services/responses/FreezeDetailsResponseResponse.js +1 -0
  14. package/dist/rmg-service/src/services/responses/FreezeListResponseResponse.d.ts +2 -0
  15. package/dist/rmg-service/src/services/responses/FreezeListResponseResponse.js +1 -0
  16. package/dist/rmg-service/src/services/schemas/ActivityInputYaml.d.ts +1 -1
  17. package/dist/rmg-service/src/services/schemas/ActivityInputsResponse.d.ts +9 -0
  18. package/dist/rmg-service/src/services/schemas/ActivityInputsResponse.js +4 -0
  19. package/dist/rmg-service/src/services/schemas/FreezeDetailsDto.d.ts +41 -0
  20. package/dist/rmg-service/src/services/schemas/FreezeDetailsDto.js +1 -0
  21. package/dist/rmg-service/src/services/schemas/FreezeEntitiesDto.d.ts +29 -0
  22. package/dist/rmg-service/src/services/schemas/FreezeEntitiesDto.js +4 -0
  23. package/dist/rmg-service/src/services/schemas/FreezeListItemDto.d.ts +31 -0
  24. package/dist/rmg-service/src/services/schemas/FreezeListItemDto.js +4 -0
  25. package/dist/rmg-service/src/services/schemas/FreezeListResponseDto.d.ts +16 -0
  26. package/dist/rmg-service/src/services/schemas/FreezeListResponseDto.js +1 -0
  27. package/dist/rmg-service/src/services/schemas/GlobalReleaseInputYaml.d.ts +1 -1
  28. package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +4 -12
  29. package/dist/rmg-service/src/services/schemas/InputVariable.js +0 -3
  30. package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +4 -0
  31. package/dist/rmg-service/src/services/schemas/InputVariableType.js +4 -0
  32. package/dist/rmg-service/src/services/schemas/OrchestrationActivityPipelineYaml.d.ts +4 -0
  33. package/dist/rmg-service/src/services/schemas/OrchestrationActivityProcessYaml.d.ts +0 -16
  34. package/dist/rmg-service/src/services/schemas/OrchestrationActivityYaml.d.ts +2 -22
  35. package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +23 -33
  36. package/dist/rmg-service/src/services/schemas/OrchestrationProcessInputYaml.d.ts +17 -3
  37. package/dist/rmg-service/src/services/schemas/OrchestrationReleaseProcessYaml.d.ts +1 -5
  38. package/dist/rmg-service/src/services/schemas/PhaseInputYaml.d.ts +3 -1
  39. package/dist/rmg-service/src/services/schemas/PhaseReleaseInputYaml.d.ts +1 -1
  40. package/dist/rmg-service/src/services/schemas/ProcessInputSummaryDto.d.ts +4 -0
  41. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { FreezeDetailsResponseResponse } from '../responses/FreezeDetailsResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetFreezeDetailsQueryPathParams {
7
+ freeze_identifier: string;
8
+ }
9
+ export interface GetFreezeDetailsQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface GetFreezeDetailsQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetFreezeDetailsOkResponse = ResponseWithPagination<FreezeDetailsResponseResponse>;
17
+ export type GetFreezeDetailsErrorResponse = ErrorResponseResponse;
18
+ export interface GetFreezeDetailsProps extends GetFreezeDetailsQueryPathParams, Omit<FetcherOptions<GetFreezeDetailsQueryQueryParams, unknown, GetFreezeDetailsQueryHeaderParams>, 'url'> {
19
+ queryParams: GetFreezeDetailsQueryQueryParams;
20
+ }
21
+ export declare function getFreezeDetails(props: GetFreezeDetailsProps): Promise<GetFreezeDetailsOkResponse>;
22
+ /**
23
+ * Retrieve detailed freeze information including entity extraction for a specific freeze.
24
+ */
25
+ export declare function useGetFreezeDetailsQuery(props: GetFreezeDetailsProps, options?: Omit<UseQueryOptions<GetFreezeDetailsOkResponse, GetFreezeDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFreezeDetailsOkResponse, 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 getFreezeDetails(props) {
7
+ return fetcher(Object.assign({ url: `/freeze/details/${props.freeze_identifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve detailed freeze information including entity extraction for a specific freeze.
11
+ */
12
+ export function useGetFreezeDetailsQuery(props, options) {
13
+ return useQuery(['getFreezeDetails', props.freeze_identifier, props.queryParams], ({ signal }) => getFreezeDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { FreezeListResponseResponse } from '../responses/FreezeListResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetFreezeListQueryQueryParams {
7
+ orgIdentifier?: string;
8
+ projectIdentifier?: string;
9
+ /**
10
+ * @format int64
11
+ */
12
+ startTime: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ endTime: number;
17
+ cursor?: string;
18
+ /**
19
+ * @default 50
20
+ */
21
+ limit?: number;
22
+ }
23
+ export interface GetFreezeListQueryHeaderParams {
24
+ 'Harness-Account': string;
25
+ }
26
+ export type GetFreezeListOkResponse = ResponseWithPagination<FreezeListResponseResponse>;
27
+ export type GetFreezeListErrorResponse = ErrorResponseResponse;
28
+ export interface GetFreezeListProps extends Omit<FetcherOptions<GetFreezeListQueryQueryParams, unknown, GetFreezeListQueryHeaderParams>, 'url'> {
29
+ queryParams: GetFreezeListQueryQueryParams;
30
+ }
31
+ export declare function getFreezeList(props: GetFreezeListProps): Promise<GetFreezeListOkResponse>;
32
+ /**
33
+ * Retrieve a paginated list of freeze information for all active freezes that overlap with the specified time range (startTime to endTime).
34
+ */
35
+ export declare function useGetFreezeListQuery(props: GetFreezeListProps, options?: Omit<UseQueryOptions<GetFreezeListOkResponse, GetFreezeListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFreezeListOkResponse, 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 getFreezeList(props) {
7
+ return fetcher(Object.assign({ url: `/freeze/list`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a paginated list of freeze information for all active freezes that overlap with the specified time range (startTime to endTime).
11
+ */
12
+ export function useGetFreezeListQuery(props, options) {
13
+ return useQuery(['getFreezeList', props.queryParams], ({ signal }) => getFreezeList(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ActivityInputsResponseResponse } from '../responses/ActivityInputsResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetOrchestrationActivityInputsQueryPathParams {
7
+ activityRef: string;
8
+ }
9
+ export interface GetOrchestrationActivityInputsQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface GetOrchestrationActivityInputsQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetOrchestrationActivityInputsOkResponse = ResponseWithPagination<ActivityInputsResponseResponse>;
17
+ export type GetOrchestrationActivityInputsErrorResponse = ErrorResponseResponse;
18
+ export interface GetOrchestrationActivityInputsProps extends GetOrchestrationActivityInputsQueryPathParams, Omit<FetcherOptions<GetOrchestrationActivityInputsQueryQueryParams, unknown, GetOrchestrationActivityInputsQueryHeaderParams>, 'url'> {
19
+ queryParams: GetOrchestrationActivityInputsQueryQueryParams;
20
+ }
21
+ export declare function getOrchestrationActivityInputs(props: GetOrchestrationActivityInputsProps): Promise<GetOrchestrationActivityInputsOkResponse>;
22
+ /**
23
+ * Retrieve input definitions and values for a specific activity within a process input configuration
24
+ */
25
+ export declare function useGetOrchestrationActivityInputsQuery(props: GetOrchestrationActivityInputsProps, options?: Omit<UseQueryOptions<GetOrchestrationActivityInputsOkResponse, GetOrchestrationActivityInputsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetOrchestrationActivityInputsOkResponse, 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 getOrchestrationActivityInputs(props) {
7
+ return fetcher(Object.assign({ url: `/orchestration/activity/${props.activityRef}/inputs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve input definitions and values for a specific activity within a process input configuration
11
+ */
12
+ export function useGetOrchestrationActivityInputsQuery(props, options) {
13
+ return useQuery(['get-orchestration-activity-inputs', props.activityRef, props.queryParams], ({ signal }) => getOrchestrationActivityInputs(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -12,6 +12,12 @@ export interface StartReleaseExecutionMutationQueryParams {
12
12
  export interface StartReleaseExecutionMutationHeaderParams {
13
13
  'Harness-Account': string;
14
14
  }
15
+ export type StartReleaseExecutionRequestBody = {
16
+ /**
17
+ * YAML configuration for release input
18
+ */
19
+ releaseInputYaml: string;
20
+ };
15
21
  export type StartReleaseExecutionOkResponse = ResponseWithPagination<{
16
22
  /**
17
23
  * Identifier of the started execution
@@ -23,8 +29,9 @@ export type StartReleaseExecutionOkResponse = ResponseWithPagination<{
23
29
  yaml: string;
24
30
  }>;
25
31
  export type StartReleaseExecutionErrorResponse = ErrorResponseResponse;
26
- export interface StartReleaseExecutionProps extends StartReleaseExecutionMutationPathParams, Omit<FetcherOptions<StartReleaseExecutionMutationQueryParams, unknown, StartReleaseExecutionMutationHeaderParams>, 'url'> {
32
+ export interface StartReleaseExecutionProps extends StartReleaseExecutionMutationPathParams, Omit<FetcherOptions<StartReleaseExecutionMutationQueryParams, StartReleaseExecutionRequestBody, StartReleaseExecutionMutationHeaderParams>, 'url'> {
27
33
  queryParams: StartReleaseExecutionMutationQueryParams;
34
+ body: StartReleaseExecutionRequestBody;
28
35
  }
29
36
  export declare function startReleaseExecution(props: StartReleaseExecutionProps): Promise<StartReleaseExecutionOkResponse>;
30
37
  /**
@@ -1,10 +1,16 @@
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 { GetFreezeDetailsErrorResponse, GetFreezeDetailsOkResponse, GetFreezeDetailsProps, GetFreezeDetailsQueryPathParams, GetFreezeDetailsQueryQueryParams, } from './hooks/useGetFreezeDetailsQuery';
5
+ export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
6
+ export type { GetFreezeListErrorResponse, GetFreezeListOkResponse, GetFreezeListProps, GetFreezeListQueryQueryParams, } from './hooks/useGetFreezeListQuery';
7
+ export { getFreezeList, useGetFreezeListQuery } from './hooks/useGetFreezeListQuery';
4
8
  export type { GetOrchestrationActivitiesByAcitivityRefsErrorResponse, GetOrchestrationActivitiesByAcitivityRefsMutationQueryParams, GetOrchestrationActivitiesByAcitivityRefsOkResponse, GetOrchestrationActivitiesByAcitivityRefsProps, GetOrchestrationActivitiesByAcitivityRefsRequestBody, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
5
9
  export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitiesByAcitivityRefsMutation, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
6
10
  export type { GetOrchestrationActivitiesByProcessIdentifierErrorResponse, GetOrchestrationActivitiesByProcessIdentifierOkResponse, GetOrchestrationActivitiesByProcessIdentifierProps, GetOrchestrationActivitiesByProcessIdentifierQueryPathParams, GetOrchestrationActivitiesByProcessIdentifierQueryQueryParams, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
7
11
  export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActivitiesByProcessIdentifierQuery, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
12
+ export type { GetOrchestrationActivityInputsErrorResponse, GetOrchestrationActivityInputsOkResponse, GetOrchestrationActivityInputsProps, GetOrchestrationActivityInputsQueryPathParams, GetOrchestrationActivityInputsQueryQueryParams, } from './hooks/useGetOrchestrationActivityInputsQuery';
13
+ export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
8
14
  export type { GetOrchestrationActivityErrorResponse, GetOrchestrationActivityOkResponse, GetOrchestrationActivityProps, GetOrchestrationActivityQueryPathParams, GetOrchestrationActivityQueryQueryParams, } from './hooks/useGetOrchestrationActivityQuery';
9
15
  export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
10
16
  export type { GetOrchestrationExecutionActivitiesErrorResponse, GetOrchestrationExecutionActivitiesOkResponse, GetOrchestrationExecutionActivitiesProps, GetOrchestrationExecutionActivitiesQueryPathParams, GetOrchestrationExecutionActivitiesQueryQueryParams, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
@@ -61,7 +67,7 @@ export type { PutReleaseGroupErrorResponse, PutReleaseGroupMutationPathParams, P
61
67
  export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
62
68
  export type { PutReleaseReleaseIdErrorResponse, PutReleaseReleaseIdMutationPathParams, PutReleaseReleaseIdOkResponse, PutReleaseReleaseIdProps, PutReleaseReleaseIdRequestBody, } from './hooks/usePutReleaseReleaseIdMutation';
63
69
  export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
64
- export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, } from './hooks/useStartReleaseExecutionMutation';
70
+ export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
65
71
  export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
66
72
  export type { UpdateReleaseConflictErrorResponse, UpdateReleaseConflictMutationPathParams, UpdateReleaseConflictOkResponse, UpdateReleaseConflictProps, UpdateReleaseConflictRequestBody, } from './hooks/useUpdateReleaseConflictMutation';
67
73
  export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
@@ -76,6 +82,7 @@ export type { UpdateOrchestrationProcessInputRequestRequestBody } from './reques
76
82
  export type { UpdateOrchestrationProcessRequestRequestBody } from './requestBodies/UpdateOrchestrationProcessRequestRequestBody';
77
83
  export type { UpdateReleaseGroupRequestRequestBody } from './requestBodies/UpdateReleaseGroupRequestRequestBody';
78
84
  export type { UpdateReleaseRequestRequestBody } from './requestBodies/UpdateReleaseRequestRequestBody';
85
+ export type { ActivityInputsResponseResponse } from './responses/ActivityInputsResponseResponse';
79
86
  export type { CreateOrchestrationActivityResponseResponse } from './responses/CreateOrchestrationActivityResponseResponse';
80
87
  export type { CreateOrchestrationProcessInputResponseResponse } from './responses/CreateOrchestrationProcessInputResponseResponse';
81
88
  export type { CreateOrchestrationProcessResponseResponse } from './responses/CreateOrchestrationProcessResponseResponse';
@@ -84,6 +91,8 @@ export type { DeleteReleaseGroupResponseResponse } from './responses/DeleteRelea
84
91
  export type { EnvironmentDashboardResponseResponse } from './responses/EnvironmentDashboardResponseResponse';
85
92
  export type { EnvironmentListPerReleaseResponseResponse } from './responses/EnvironmentListPerReleaseResponseResponse';
86
93
  export type { ErrorResponseResponse } from './responses/ErrorResponseResponse';
94
+ export type { FreezeDetailsResponseResponse } from './responses/FreezeDetailsResponseResponse';
95
+ export type { FreezeListResponseResponse } from './responses/FreezeListResponseResponse';
87
96
  export type { GetOrchestrationActivityResponseResponse } from './responses/GetOrchestrationActivityResponseResponse';
88
97
  export type { GetOrchestrationProcessInputResponseResponse } from './responses/GetOrchestrationProcessInputResponseResponse';
89
98
  export type { GetOrchestrationProcessResponseResponse } from './responses/GetOrchestrationProcessResponseResponse';
@@ -106,6 +115,7 @@ export type { UpdateReleaseConflictResponseResponse } from './responses/UpdateRe
106
115
  export type { UpdateReleaseGroupResponseResponse } from './responses/UpdateReleaseGroupResponseResponse';
107
116
  export type { UpdateReleaseResponseResponse } from './responses/UpdateReleaseResponseResponse';
108
117
  export type { ActivityInputYaml } from './schemas/ActivityInputYaml';
118
+ export type { ActivityInputsResponse } from './schemas/ActivityInputsResponse';
109
119
  export type { ActivityType } from './schemas/ActivityType';
110
120
  export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
111
121
  export type { ApprovedByDto } from './schemas/ApprovedByDto';
@@ -118,10 +128,15 @@ export type { EnvironmentDto } from './schemas/EnvironmentDto';
118
128
  export type { EnvironmentType } from './schemas/EnvironmentType';
119
129
  export type { Error } from './schemas/Error';
120
130
  export type { ExecutionConflict } from './schemas/ExecutionConflict';
131
+ export type { FreezeDetailsDto } from './schemas/FreezeDetailsDto';
132
+ export type { FreezeEntitiesDto } from './schemas/FreezeEntitiesDto';
133
+ export type { FreezeListItemDto } from './schemas/FreezeListItemDto';
134
+ export type { FreezeListResponseDto } from './schemas/FreezeListResponseDto';
121
135
  export type { Freq } from './schemas/Freq';
122
136
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
123
137
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
124
138
  export type { InputVariable } from './schemas/InputVariable';
139
+ export type { InputVariableType } from './schemas/InputVariableType';
125
140
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
126
141
  export type { NextRequest } from './schemas/NextRequest';
127
142
  export type { OrchestrationActivityPipelineYaml } from './schemas/OrchestrationActivityPipelineYaml';
@@ -1,6 +1,9 @@
1
1
  export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useDeleteReleaseGroupMutation';
2
+ export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
3
+ export { getFreezeList, useGetFreezeListQuery } from './hooks/useGetFreezeListQuery';
2
4
  export { getOrchestrationActivitiesByAcitivityRefs, useGetOrchestrationActivitiesByAcitivityRefsMutation, } from './hooks/useGetOrchestrationActivitiesByAcitivityRefsMutation';
3
5
  export { getOrchestrationActivitiesByProcessIdentifier, useGetOrchestrationActivitiesByProcessIdentifierQuery, } from './hooks/useGetOrchestrationActivitiesByProcessIdentifierQuery';
6
+ export { getOrchestrationActivityInputs, useGetOrchestrationActivityInputsQuery, } from './hooks/useGetOrchestrationActivityInputsQuery';
4
7
  export { getOrchestrationActivity, useGetOrchestrationActivityQuery, } from './hooks/useGetOrchestrationActivityQuery';
5
8
  export { getOrchestrationExecutionActivities, useGetOrchestrationExecutionActivitiesQuery, } from './hooks/useGetOrchestrationExecutionActivitiesQuery';
6
9
  export { getOrchestrationExecutionPhases, useGetOrchestrationExecutionPhasesQuery, } from './hooks/useGetOrchestrationExecutionPhasesQuery';
@@ -0,0 +1,2 @@
1
+ import type { ActivityInputsResponse } from '../schemas/ActivityInputsResponse';
2
+ export type ActivityInputsResponseResponse = ActivityInputsResponse;
@@ -0,0 +1,2 @@
1
+ import type { FreezeDetailsDto } from '../schemas/FreezeDetailsDto';
2
+ export type FreezeDetailsResponseResponse = FreezeDetailsDto;
@@ -0,0 +1,2 @@
1
+ import type { FreezeListResponseDto } from '../schemas/FreezeListResponseDto';
2
+ export type FreezeListResponseResponse = FreezeListResponseDto;
@@ -7,6 +7,6 @@ export interface ActivityInputYaml {
7
7
  * Configuration parameters for the activity
8
8
  */
9
9
  with?: {
10
- [key: string]: any;
10
+ [key: string]: string;
11
11
  };
12
12
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Enhanced response structure for activity inputs
3
+ */
4
+ export interface ActivityInputsResponse {
5
+ /**
6
+ * activityInput Yaml string
7
+ */
8
+ activityInput: string;
9
+ }
@@ -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,41 @@
1
+ import type { FreezeEntitiesDto } from '../schemas/FreezeEntitiesDto';
2
+ /**
3
+ * Detailed freeze information with entity extraction
4
+ */
5
+ export interface FreezeDetailsDto {
6
+ /**
7
+ * Freeze description
8
+ */
9
+ description?: string;
10
+ entities: FreezeEntitiesDto;
11
+ /**
12
+ * Expected end timestamp
13
+ * @format int64
14
+ */
15
+ expectedEndTs: number;
16
+ /**
17
+ * Expected start timestamp
18
+ * @format int64
19
+ */
20
+ expectedStartTs: number;
21
+ /**
22
+ * Freeze identifier
23
+ */
24
+ freeze_identifier: string;
25
+ /**
26
+ * Freeze name
27
+ */
28
+ name: string;
29
+ /**
30
+ * Organization identifier
31
+ */
32
+ orgIdentifier: string;
33
+ /**
34
+ * Project identifier
35
+ */
36
+ projectIdentifier: string;
37
+ /**
38
+ * Freeze status
39
+ */
40
+ status?: 'Disabled' | 'Enabled';
41
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Entity information extracted from freeze YAML configuration
3
+ */
4
+ export interface FreezeEntitiesDto {
5
+ /**
6
+ * Environment type identifiers extracted from YAML. Contains "__ALL__" marker if all environment types are frozen (filterType="All").
7
+ */
8
+ environmentTypes: string[];
9
+ /**
10
+ * Environment identifiers extracted from YAML. Contains "__ALL__" marker if all environments are frozen (filterType="All").
11
+ */
12
+ environments: string[];
13
+ /**
14
+ * Organization identifiers extracted from YAML. Contains "__ALL__" marker if all organizations are frozen (filterType="All").
15
+ */
16
+ organizations: string[];
17
+ /**
18
+ * Pipeline identifiers extracted from YAML. Contains "__ALL__" marker if all pipelines are frozen (filterType="All").
19
+ */
20
+ pipelines: string[];
21
+ /**
22
+ * Project identifiers extracted from YAML. Contains "__ALL__" marker if all projects are frozen (filterType="All").
23
+ */
24
+ projects: string[];
25
+ /**
26
+ * Service identifiers extracted from YAML. Contains "__ALL__" marker if all services are frozen (filterType="All").
27
+ */
28
+ services: string[];
29
+ }
@@ -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,31 @@
1
+ /**
2
+ * Basic freeze information for list view
3
+ */
4
+ export interface FreezeListItemDto {
5
+ /**
6
+ * Expected end timestamp
7
+ * @format int64
8
+ */
9
+ expectedEndTs: number;
10
+ /**
11
+ * Expected start timestamp
12
+ * @format int64
13
+ */
14
+ expectedStartTs: number;
15
+ /**
16
+ * Freeze identifier
17
+ */
18
+ identifier: string;
19
+ /**
20
+ * Freeze name
21
+ */
22
+ name: string;
23
+ /**
24
+ * Organization identifier
25
+ */
26
+ orgIdentifier: string;
27
+ /**
28
+ * Project identifier
29
+ */
30
+ projectIdentifier: string;
31
+ }
@@ -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,16 @@
1
+ import type { FreezeListItemDto } from '../schemas/FreezeListItemDto';
2
+ import type { NextRequest } from '../schemas/NextRequest';
3
+ /**
4
+ * Paginated response containing freeze list items
5
+ */
6
+ export interface FreezeListResponseDto {
7
+ /**
8
+ * List of freeze items
9
+ */
10
+ freezes: FreezeListItemDto[];
11
+ /**
12
+ * Whether this is the last page of results
13
+ */
14
+ last: boolean;
15
+ nextRequest: NextRequest;
16
+ }
@@ -3,6 +3,6 @@ export interface GlobalReleaseInputYaml {
3
3
  * Global input values
4
4
  */
5
5
  with?: {
6
- [key: string]: any;
6
+ [key: string]: string;
7
7
  };
8
8
  }
@@ -1,20 +1,12 @@
1
+ import type { InputVariableType } from '../schemas/InputVariableType';
1
2
  export interface InputVariable {
2
3
  /**
3
- * Default value for the variable (type depends on the variable type)
4
+ * Default value for the variable in string format
4
5
  */
5
- default?: string | number | boolean | {} | {
6
- [key: string]: any;
7
- };
6
+ default?: string;
8
7
  /**
9
8
  * Description of the variable
10
9
  */
11
10
  description?: string;
12
- /**
13
- * Name of the input variable
14
- */
15
- name: string;
16
- /**
17
- * Type of the variable (e.g., string, list, boolean)
18
- */
19
- type: 'boolean' | 'list' | 'number' | 'object' | 'string';
11
+ type: InputVariableType;
20
12
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Type of an input variable for parameters and process inputs.
3
+ */
4
+ export type InputVariableType = 'boolean' | 'list' | 'number' | 'object' | 'string';
@@ -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 {};
@@ -8,4 +8,8 @@ export interface OrchestrationActivityPipelineYaml {
8
8
  inputSet?: {
9
9
  [key: string]: any;
10
10
  };
11
+ /**
12
+ * Pipeline location in format orgIdentifier/projectIdentifier/pipelineIdentifier
13
+ */
14
+ pipeline: string;
11
15
  }
@@ -3,18 +3,10 @@ export interface OrchestrationActivityProcessYaml {
3
3
  * Reference to the activity type (e.g., ReleaseApproval, ReleasePipeline)
4
4
  */
5
5
  activity: string;
6
- /**
7
- * Reference to the activity type (e.g., ReleaseApproval, ReleasePipeline)
8
- */
9
- activity_ref?: string;
10
6
  /**
11
7
  * List of phase identifiers that this phase depends on
12
8
  */
13
9
  'depends-on'?: string[];
14
- /**
15
- * List of phase identifiers that this phase depends on
16
- */
17
- depends_on?: string[];
18
10
  /**
19
11
  * Description of the activity
20
12
  */
@@ -23,16 +15,8 @@ export interface OrchestrationActivityProcessYaml {
23
15
  * Unique identifier for the activity
24
16
  */
25
17
  id: string;
26
- /**
27
- * Unique identifier for the activity
28
- */
29
- identifier: string;
30
18
  /**
31
19
  * Name of the activity
32
20
  */
33
21
  name: string;
34
- /**
35
- * Timeout duration for the activity (e.g., "24h", "2h")
36
- */
37
- timeout: string;
38
22
  }
@@ -1,3 +1,4 @@
1
+ import type { InputVariable } from '../schemas/InputVariable';
1
2
  import type { OrchestrationActivityPipelineYaml } from '../schemas/OrchestrationActivityPipelineYaml';
2
3
  export interface OrchestrationActivityYaml {
3
4
  activity: {
@@ -9,37 +10,16 @@ export interface OrchestrationActivityYaml {
9
10
  * Unique identifier for the activity
10
11
  */
11
12
  id: string;
12
- /**
13
- * Unique identifier for the activity
14
- */
15
- identifier?: string;
16
13
  /**
17
14
  * Input definitions for the activity
18
15
  */
19
16
  inputs: {
20
- [key: string]: {
21
- /**
22
- * Description of the input parameter
23
- */
24
- description: string;
25
- /**
26
- * Whether the input is required
27
- */
28
- required: boolean;
29
- /**
30
- * Type of the input parameter
31
- */
32
- type: 'boolean' | 'list' | 'number' | 'object' | 'string';
33
- };
17
+ [key: string]: InputVariable;
34
18
  };
35
19
  /**
36
20
  * Name of the activity
37
21
  */
38
22
  name: string;
39
23
  pipeline?: OrchestrationActivityPipelineYaml;
40
- /**
41
- * Timeout duration for the activity (e.g., "30m", "8h")
42
- */
43
- timeout: string;
44
24
  };
45
25
  }
@@ -1,36 +1,26 @@
1
1
  import type { OrchestrationActivityProcessYaml } from '../schemas/OrchestrationActivityProcessYaml';
2
2
  export interface OrchestrationPhaseYaml {
3
- activities: OrchestrationActivityProcessYaml[];
4
- /**
5
- * List of phase identifiers that this phase depends on
6
- */
7
- 'depends-on'?: string[];
8
- /**
9
- * List of phase identifiers that this phase depends on
10
- */
11
- depends_on?: string[];
12
- /**
13
- * Description of the phase
14
- */
15
- description?: string;
16
- /**
17
- * Unique identifier for the phase
18
- */
19
- id: string;
20
- /**
21
- * Unique identifier for the phase
22
- */
23
- identifier?: string;
24
- /**
25
- * Name of the phase
26
- */
27
- name: string;
28
- /**
29
- * List of owner groups for the phase
30
- */
31
- owners?: string[];
32
- /**
33
- * Timeout duration for the phase (e.g., "2h", "24h")
34
- */
35
- timeout: string;
3
+ phase: {
4
+ activities: OrchestrationActivityProcessYaml[];
5
+ /**
6
+ * List of phase identifiers that this phase depends on
7
+ */
8
+ 'depends-on'?: string[];
9
+ /**
10
+ * Description of the phase
11
+ */
12
+ description?: string;
13
+ /**
14
+ * Unique identifier for the phase
15
+ */
16
+ id: string;
17
+ /**
18
+ * Name of the phase
19
+ */
20
+ name: string;
21
+ /**
22
+ * List of owner groups for the phase
23
+ */
24
+ owners?: string[];
25
+ };
36
26
  }
@@ -1,17 +1,31 @@
1
1
  import type { InputVariable } from '../schemas/InputVariable';
2
2
  import type { PhaseInputYaml } from '../schemas/PhaseInputYaml';
3
3
  export interface OrchestrationProcessInputYaml {
4
+ /**
5
+ * Description of the orchestration process input
6
+ */
7
+ description?: string;
4
8
  /**
5
9
  * Global input configuration
6
10
  */
7
- global?: {
11
+ global: {
8
12
  /**
9
13
  * Global input variables available across all phases
10
14
  */
11
- variables?: InputVariable[];
15
+ inputs?: {
16
+ [key: string]: InputVariable;
17
+ };
12
18
  };
19
+ /**
20
+ * Unique identifier for the orchestration process input
21
+ */
22
+ id: string;
23
+ /**
24
+ * Name of the orchestration process input
25
+ */
26
+ name: string;
13
27
  /**
14
28
  * Phase-specific input configurations
15
29
  */
16
- phases?: PhaseInputYaml[];
30
+ phases: PhaseInputYaml[];
17
31
  }
@@ -8,11 +8,7 @@ export interface OrchestrationReleaseProcessYaml {
8
8
  /**
9
9
  * Unique identifier for the orchestration process
10
10
  */
11
- id?: string;
12
- /**
13
- * Unique identifier for the orchestration process
14
- */
15
- identifier: string;
11
+ id: string;
16
12
  /**
17
13
  * Name of the orchestration process
18
14
  */
@@ -12,5 +12,7 @@ export interface PhaseInputYaml {
12
12
  /**
13
13
  * Variables specific to this phase
14
14
  */
15
- variables?: InputVariable[];
15
+ inputs?: {
16
+ [key: string]: InputVariable;
17
+ };
16
18
  }
@@ -7,6 +7,6 @@ export interface PhaseReleaseInputYaml {
7
7
  * Input values for this phase (map[string]any)
8
8
  */
9
9
  with?: {
10
- [key: string]: any;
10
+ [key: string]: string;
11
11
  };
12
12
  }
@@ -18,4 +18,8 @@ export interface ProcessInputSummaryDto {
18
18
  * Name of the process input
19
19
  */
20
20
  name: string;
21
+ /**
22
+ * Status of the process input
23
+ */
24
+ status: 'Configured' | 'Incomplete';
21
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",