@harnessio/react-rmg-service-client 0.47.0 → 0.49.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 (50) hide show
  1. package/dist/rmg-service/src/services/hooks/useGetReportDownloadQuery.d.ts +24 -0
  2. package/dist/rmg-service/src/services/hooks/useGetReportDownloadQuery.js +14 -0
  3. package/dist/rmg-service/src/services/hooks/useGetReportStatusQuery.d.ts +25 -0
  4. package/dist/rmg-service/src/services/hooks/useGetReportStatusQuery.js +14 -0
  5. package/dist/rmg-service/src/services/hooks/usePostReleaseGroupReportGenerateMutation.d.ts +28 -0
  6. package/dist/rmg-service/src/services/hooks/usePostReleaseGroupReportGenerateMutation.js +14 -0
  7. package/dist/rmg-service/src/services/hooks/usePostReleaseReportGenerateMutation.d.ts +28 -0
  8. package/dist/rmg-service/src/services/hooks/usePostReleaseReportGenerateMutation.js +14 -0
  9. package/dist/rmg-service/src/services/index.d.ts +23 -0
  10. package/dist/rmg-service/src/services/index.js +4 -0
  11. package/dist/rmg-service/src/services/responses/ReportGenerationResponseResponse.d.ts +2 -0
  12. package/dist/rmg-service/src/services/responses/ReportGenerationResponseResponse.js +1 -0
  13. package/dist/rmg-service/src/services/responses/ReportStatusResponseResponse.d.ts +2 -0
  14. package/dist/rmg-service/src/services/responses/ReportStatusResponseResponse.js +1 -0
  15. package/dist/rmg-service/src/services/schemas/ActivityExecutionInputDto.d.ts +3 -2
  16. package/dist/rmg-service/src/services/schemas/AnyValue.d.ts +8 -0
  17. package/dist/rmg-service/src/services/schemas/AnyValue.js +4 -0
  18. package/dist/rmg-service/src/services/schemas/ConnectorInputVariable.d.ts +22 -0
  19. package/dist/rmg-service/src/services/schemas/ConnectorInputVariable.js +1 -0
  20. package/dist/rmg-service/src/services/schemas/EnvironmentInputVariable.d.ts +24 -0
  21. package/dist/rmg-service/src/services/schemas/EnvironmentInputVariable.js +1 -0
  22. package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.d.ts +3 -2
  23. package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.js +0 -3
  24. package/dist/rmg-service/src/services/schemas/GlobalReleaseInputYaml.d.ts +1 -1
  25. package/dist/rmg-service/src/services/schemas/InfrastructureInputVariable.d.ts +22 -0
  26. package/dist/rmg-service/src/services/schemas/InfrastructureInputVariable.js +1 -0
  27. package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +11 -23
  28. package/dist/rmg-service/src/services/schemas/ManualActivityInfo.d.ts +10 -0
  29. package/dist/rmg-service/src/services/schemas/ManualActivityInfo.js +4 -0
  30. package/dist/rmg-service/src/services/schemas/MultiEnvironmentInputVariable.d.ts +24 -0
  31. package/dist/rmg-service/src/services/schemas/MultiEnvironmentInputVariable.js +1 -0
  32. package/dist/rmg-service/src/services/schemas/MultiInfrastructureInputVariable.d.ts +24 -0
  33. package/dist/rmg-service/src/services/schemas/MultiInfrastructureInputVariable.js +1 -0
  34. package/dist/rmg-service/src/services/schemas/MultiServiceInputVariable.d.ts +24 -0
  35. package/dist/rmg-service/src/services/schemas/MultiServiceInputVariable.js +1 -0
  36. package/dist/rmg-service/src/services/schemas/OrchestrationExecutionActivityPaginated.d.ts +5 -0
  37. package/dist/rmg-service/src/services/schemas/PhaseReleaseInputYaml.d.ts +1 -1
  38. package/dist/rmg-service/src/services/schemas/PipelineActivityInfo.d.ts +4 -0
  39. package/dist/rmg-service/src/services/schemas/PrimitiveInputVariable.d.ts +17 -0
  40. package/dist/rmg-service/src/services/schemas/PrimitiveInputVariable.js +4 -0
  41. package/dist/rmg-service/src/services/schemas/ReportGenerationRequest.d.ts +12 -0
  42. package/dist/rmg-service/src/services/schemas/ReportGenerationRequest.js +4 -0
  43. package/dist/rmg-service/src/services/schemas/ReportGenerationResponse.d.ts +4 -0
  44. package/dist/rmg-service/src/services/schemas/ReportGenerationResponse.js +4 -0
  45. package/dist/rmg-service/src/services/schemas/ReportStatusResponse.d.ts +14 -0
  46. package/dist/rmg-service/src/services/schemas/ReportStatusResponse.js +4 -0
  47. package/dist/rmg-service/src/services/schemas/ServiceInputVariable.d.ts +24 -0
  48. package/dist/rmg-service/src/services/schemas/ServiceInputVariable.js +1 -0
  49. package/dist/rmg-service/src/services/schemas/SubprocessActivityInfo.d.ts +4 -0
  50. package/package.json +1 -1
@@ -0,0 +1,24 @@
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 GetReportDownloadQueryPathParams {
6
+ reportId: string;
7
+ }
8
+ export interface GetReportDownloadQueryQueryParams {
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export interface GetReportDownloadQueryHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type GetReportDownloadOkResponse = ResponseWithPagination<unknown>;
16
+ export type GetReportDownloadErrorResponse = ErrorResponseResponse;
17
+ export interface GetReportDownloadProps extends GetReportDownloadQueryPathParams, Omit<FetcherOptions<GetReportDownloadQueryQueryParams, unknown, GetReportDownloadQueryHeaderParams>, 'url'> {
18
+ queryParams: GetReportDownloadQueryQueryParams;
19
+ }
20
+ export declare function getReportDownload(props: GetReportDownloadProps): Promise<GetReportDownloadOkResponse>;
21
+ /**
22
+ * Download the generated CSV report. The report must be in COMPLETED status. Returns the CSV file as a binary download.
23
+ */
24
+ export declare function useGetReportDownloadQuery(props: GetReportDownloadProps, options?: Omit<UseQueryOptions<GetReportDownloadOkResponse, GetReportDownloadErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReportDownloadOkResponse, 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 getReportDownload(props) {
7
+ return fetcher(Object.assign({ url: `/release/report/${props.reportId}/download`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Download the generated CSV report. The report must be in COMPLETED status. Returns the CSV file as a binary download.
11
+ */
12
+ export function useGetReportDownloadQuery(props, options) {
13
+ return useQuery(['getReportDownload', props.reportId, props.queryParams], ({ signal }) => getReportDownload(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ReportStatusResponseResponse } from '../responses/ReportStatusResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetReportStatusQueryPathParams {
7
+ reportId: string;
8
+ }
9
+ export interface GetReportStatusQueryQueryParams {
10
+ orgIdentifier?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export interface GetReportStatusQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetReportStatusOkResponse = ResponseWithPagination<ReportStatusResponseResponse>;
17
+ export type GetReportStatusErrorResponse = ErrorResponseResponse;
18
+ export interface GetReportStatusProps extends GetReportStatusQueryPathParams, Omit<FetcherOptions<GetReportStatusQueryQueryParams, unknown, GetReportStatusQueryHeaderParams>, 'url'> {
19
+ queryParams: GetReportStatusQueryQueryParams;
20
+ }
21
+ export declare function getReportStatus(props: GetReportStatusProps): Promise<GetReportStatusOkResponse>;
22
+ /**
23
+ * Get the status of a report generation job. Returns the current status, timestamps, and error information if the job failed.
24
+ */
25
+ export declare function useGetReportStatusQuery(props: GetReportStatusProps, options?: Omit<UseQueryOptions<GetReportStatusOkResponse, GetReportStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetReportStatusOkResponse, 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 getReportStatus(props) {
7
+ return fetcher(Object.assign({ url: `/release/report/${props.reportId}/status`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the status of a report generation job. Returns the current status, timestamps, and error information if the job failed.
11
+ */
12
+ export function useGetReportStatusQuery(props, options) {
13
+ return useQuery(['getReportStatus', props.reportId, props.queryParams], ({ signal }) => getReportStatus(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ReportGenerationResponseResponse } from '../responses/ReportGenerationResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ReportGenerationRequest } from '../schemas/ReportGenerationRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PostReleaseGroupReportGenerateMutationPathParams {
8
+ releaseGroupId: string;
9
+ }
10
+ export interface PostReleaseGroupReportGenerateMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface PostReleaseGroupReportGenerateMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type PostReleaseGroupReportGenerateRequestBody = ReportGenerationRequest;
18
+ export type PostReleaseGroupReportGenerateOkResponse = ResponseWithPagination<ReportGenerationResponseResponse>;
19
+ export type PostReleaseGroupReportGenerateErrorResponse = ErrorResponseResponse;
20
+ export interface PostReleaseGroupReportGenerateProps extends PostReleaseGroupReportGenerateMutationPathParams, Omit<FetcherOptions<PostReleaseGroupReportGenerateMutationQueryParams, PostReleaseGroupReportGenerateRequestBody, PostReleaseGroupReportGenerateMutationHeaderParams>, 'url'> {
21
+ queryParams: PostReleaseGroupReportGenerateMutationQueryParams;
22
+ body: PostReleaseGroupReportGenerateRequestBody;
23
+ }
24
+ export declare function postReleaseGroupReportGenerate(props: PostReleaseGroupReportGenerateProps): Promise<PostReleaseGroupReportGenerateOkResponse>;
25
+ /**
26
+ * Generate a CSV report for all releases in a release group within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.
27
+ */
28
+ export declare function usePostReleaseGroupReportGenerateMutation(options?: Omit<UseMutationOptions<PostReleaseGroupReportGenerateOkResponse, PostReleaseGroupReportGenerateErrorResponse, PostReleaseGroupReportGenerateProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseGroupReportGenerateOkResponse, import("..").Error, PostReleaseGroupReportGenerateProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function postReleaseGroupReportGenerate(props) {
7
+ return fetcher(Object.assign({ url: `/releaseGroup/${props.releaseGroupId}/report/generate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Generate a CSV report for all releases in a release group within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.
11
+ */
12
+ export function usePostReleaseGroupReportGenerateMutation(options) {
13
+ return useMutation((mutateProps) => postReleaseGroupReportGenerate(mutateProps), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ReportGenerationResponseResponse } from '../responses/ReportGenerationResponseResponse';
3
+ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
4
+ import type { ReportGenerationRequest } from '../schemas/ReportGenerationRequest';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface PostReleaseReportGenerateMutationPathParams {
8
+ releaseId: string;
9
+ }
10
+ export interface PostReleaseReportGenerateMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface PostReleaseReportGenerateMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type PostReleaseReportGenerateRequestBody = ReportGenerationRequest;
18
+ export type PostReleaseReportGenerateOkResponse = ResponseWithPagination<ReportGenerationResponseResponse>;
19
+ export type PostReleaseReportGenerateErrorResponse = ErrorResponseResponse;
20
+ export interface PostReleaseReportGenerateProps extends PostReleaseReportGenerateMutationPathParams, Omit<FetcherOptions<PostReleaseReportGenerateMutationQueryParams, PostReleaseReportGenerateRequestBody, PostReleaseReportGenerateMutationHeaderParams>, 'url'> {
21
+ queryParams: PostReleaseReportGenerateMutationQueryParams;
22
+ body: PostReleaseReportGenerateRequestBody;
23
+ }
24
+ export declare function postReleaseReportGenerate(props: PostReleaseReportGenerateProps): Promise<PostReleaseReportGenerateOkResponse>;
25
+ /**
26
+ * Generate a CSV report for a specific release within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.
27
+ */
28
+ export declare function usePostReleaseReportGenerateMutation(options?: Omit<UseMutationOptions<PostReleaseReportGenerateOkResponse, PostReleaseReportGenerateErrorResponse, PostReleaseReportGenerateProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseReportGenerateOkResponse, import("..").Error, PostReleaseReportGenerateProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function postReleaseReportGenerate(props) {
7
+ return fetcher(Object.assign({ url: `/release/${props.releaseId}/report/generate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Generate a CSV report for a specific release within a time period. The report generation is asynchronous and returns a report job ID that can be used to track status and download the report.
11
+ */
12
+ export function usePostReleaseReportGenerateMutation(options) {
13
+ return useMutation((mutateProps) => postReleaseReportGenerate(mutateProps), options);
14
+ }
@@ -77,6 +77,10 @@ export type { GetReleaseReleaseIdEnvironmentsErrorResponse, GetReleaseReleaseIdE
77
77
  export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
78
78
  export type { GetReleaseTasksErrorResponse, GetReleaseTasksOkResponse, GetReleaseTasksProps, GetReleaseTasksQueryPathParams, GetReleaseTasksQueryQueryParams, } from './hooks/useGetReleaseTasksQuery';
79
79
  export { getReleaseTasks, useGetReleaseTasksQuery } from './hooks/useGetReleaseTasksQuery';
80
+ export type { GetReportDownloadErrorResponse, GetReportDownloadOkResponse, GetReportDownloadProps, GetReportDownloadQueryPathParams, GetReportDownloadQueryQueryParams, } from './hooks/useGetReportDownloadQuery';
81
+ export { getReportDownload, useGetReportDownloadQuery } from './hooks/useGetReportDownloadQuery';
82
+ export type { GetReportStatusErrorResponse, GetReportStatusOkResponse, GetReportStatusProps, GetReportStatusQueryPathParams, GetReportStatusQueryQueryParams, } from './hooks/useGetReportStatusQuery';
83
+ export { getReportStatus, useGetReportStatusQuery } from './hooks/useGetReportStatusQuery';
80
84
  export type { GetTaskCommentsSummaryErrorResponse, GetTaskCommentsSummaryOkResponse, GetTaskCommentsSummaryProps, GetTaskCommentsSummaryQueryPathParams, GetTaskCommentsSummaryQueryQueryParams, } from './hooks/useGetTaskCommentsSummaryQuery';
81
85
  export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
82
86
  export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
@@ -97,6 +101,10 @@ export type { PostReleaseActionErrorResponse, PostReleaseActionMutationPathParam
97
101
  export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
98
102
  export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams, PostReleaseGroupOkResponse, PostReleaseGroupProps, PostReleaseGroupRequestBody, } from './hooks/usePostReleaseGroupMutation';
99
103
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
104
+ export type { PostReleaseGroupReportGenerateErrorResponse, PostReleaseGroupReportGenerateMutationPathParams, PostReleaseGroupReportGenerateMutationQueryParams, PostReleaseGroupReportGenerateOkResponse, PostReleaseGroupReportGenerateProps, PostReleaseGroupReportGenerateRequestBody, } from './hooks/usePostReleaseGroupReportGenerateMutation';
105
+ export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
106
+ export type { PostReleaseReportGenerateErrorResponse, PostReleaseReportGenerateMutationPathParams, PostReleaseReportGenerateMutationQueryParams, PostReleaseReportGenerateOkResponse, PostReleaseReportGenerateProps, PostReleaseReportGenerateRequestBody, } from './hooks/usePostReleaseReportGenerateMutation';
107
+ export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
100
108
  export type { PostReleaseSubprocessTriggerErrorResponse, PostReleaseSubprocessTriggerMutationPathParams, PostReleaseSubprocessTriggerMutationQueryParams, PostReleaseSubprocessTriggerOkResponse, PostReleaseSubprocessTriggerProps, PostReleaseSubprocessTriggerRequestBody, } from './hooks/usePostReleaseSubprocessTriggerMutation';
101
109
  export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
102
110
  export type { PostReleaseSummaryErrorResponse, PostReleaseSummaryMutationQueryParams, PostReleaseSummaryOkResponse, PostReleaseSummaryProps, PostReleaseSummaryRequestBody, } from './hooks/usePostReleaseSummaryMutation';
@@ -171,6 +179,8 @@ export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseG
171
179
  export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
172
180
  export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
173
181
  export type { ReleaseTasksResponseResponse } from './responses/ReleaseTasksResponseResponse';
182
+ export type { ReportGenerationResponseResponse } from './responses/ReportGenerationResponseResponse';
183
+ export type { ReportStatusResponseResponse } from './responses/ReportStatusResponseResponse';
174
184
  export type { SubprocessTriggerResponseResponse } from './responses/SubprocessTriggerResponseResponse';
175
185
  export type { TaskCommentsListResponseResponse } from './responses/TaskCommentsListResponseResponse';
176
186
  export type { UpdateExecutionTaskMetadataResponseResponse } from './responses/UpdateExecutionTaskMetadataResponseResponse';
@@ -191,6 +201,7 @@ export type { ActivityRetryInfo } from './schemas/ActivityRetryInfo';
191
201
  export type { ActivityTriggerInfo } from './schemas/ActivityTriggerInfo';
192
202
  export type { ActivityType } from './schemas/ActivityType';
193
203
  export type { ActivityTypeCounts } from './schemas/ActivityTypeCounts';
204
+ export type { AnyValue } from './schemas/AnyValue';
194
205
  export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
195
206
  export type { ApprovedByDto } from './schemas/ApprovedByDto';
196
207
  export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
@@ -198,6 +209,7 @@ export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnSched
198
209
  export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
199
210
  export type { CommentedByDto } from './schemas/CommentedByDto';
200
211
  export type { ConflictStatus } from './schemas/ConflictStatus';
212
+ export type { ConnectorInputVariable } from './schemas/ConnectorInputVariable';
201
213
  export type { ConnectorMetadata } from './schemas/ConnectorMetadata';
202
214
  export type { CreateOrchestrationActivityInputSetRequestType } from './schemas/CreateOrchestrationActivityInputSetRequestType';
203
215
  export type { CreateOrchestrationActivityRequestType } from './schemas/CreateOrchestrationActivityRequestType';
@@ -205,6 +217,7 @@ export type { CreatedByDto } from './schemas/CreatedByDto';
205
217
  export type { DeploymentTypeEnum } from './schemas/DeploymentTypeEnum';
206
218
  export type { EnvironmentDashboardDto } from './schemas/EnvironmentDashboardDto';
207
219
  export type { EnvironmentDto } from './schemas/EnvironmentDto';
220
+ export type { EnvironmentInputVariable } from './schemas/EnvironmentInputVariable';
208
221
  export type { EnvironmentMetadata } from './schemas/EnvironmentMetadata';
209
222
  export type { EnvironmentType } from './schemas/EnvironmentType';
210
223
  export type { Error } from './schemas/Error';
@@ -225,11 +238,16 @@ export type { Freq } from './schemas/Freq';
225
238
  export type { GetReleaseGroupResponse } from './schemas/GetReleaseGroupResponse';
226
239
  export type { GlobalReleaseInputYaml } from './schemas/GlobalReleaseInputYaml';
227
240
  export type { InfrastructureDeploymentDto } from './schemas/InfrastructureDeploymentDto';
241
+ export type { InfrastructureInputVariable } from './schemas/InfrastructureInputVariable';
228
242
  export type { InfrastructureMetadata } from './schemas/InfrastructureMetadata';
229
243
  export type { InputVariable } from './schemas/InputVariable';
230
244
  export type { InputVariableType } from './schemas/InputVariableType';
231
245
  export type { LastUpdatedByDto } from './schemas/LastUpdatedByDto';
246
+ export type { ManualActivityInfo } from './schemas/ManualActivityInfo';
232
247
  export type { ManualTaskYaml } from './schemas/ManualTaskYaml';
248
+ export type { MultiEnvironmentInputVariable } from './schemas/MultiEnvironmentInputVariable';
249
+ export type { MultiInfrastructureInputVariable } from './schemas/MultiInfrastructureInputVariable';
250
+ export type { MultiServiceInputVariable } from './schemas/MultiServiceInputVariable';
233
251
  export type { NextRequest } from './schemas/NextRequest';
234
252
  export type { OnHoldActivityActionRequest } from './schemas/OnHoldActivityActionRequest';
235
253
  export type { OnHoldActivityActionResponse } from './schemas/OnHoldActivityActionResponse';
@@ -254,6 +272,7 @@ export type { PageableSort } from './schemas/PageableSort';
254
272
  export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
255
273
  export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
256
274
  export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
275
+ export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
257
276
  export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
258
277
  export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
259
278
  export type { ReleaseActionResponse } from './schemas/ReleaseActionResponse';
@@ -271,7 +290,11 @@ export type { ReleaseInputYaml } from './schemas/ReleaseInputYaml';
271
290
  export type { ReleaseParentDto } from './schemas/ReleaseParentDto';
272
291
  export type { ReleaseType } from './schemas/ReleaseType';
273
292
  export type { RepeatUnit } from './schemas/RepeatUnit';
293
+ export type { ReportGenerationRequest } from './schemas/ReportGenerationRequest';
294
+ export type { ReportGenerationResponse } from './schemas/ReportGenerationResponse';
295
+ export type { ReportStatusResponse } from './schemas/ReportStatusResponse';
274
296
  export type { ServiceInfoDto } from './schemas/ServiceInfoDto';
297
+ export type { ServiceInputVariable } from './schemas/ServiceInputVariable';
275
298
  export type { ServiceMetadata } from './schemas/ServiceMetadata';
276
299
  export type { StageInfoDetailsDto } from './schemas/StageInfoDetailsDto';
277
300
  export type { StageInfoDto } from './schemas/StageInfoDto';
@@ -37,6 +37,8 @@ export { getReleaseReleaseIdApprovals, useGetReleaseReleaseIdApprovalsQuery, } f
37
37
  export { getReleaseReleaseIdEnvironmentDashboard, useGetReleaseReleaseIdEnvironmentDashboardQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentDashboardQuery';
38
38
  export { getReleaseReleaseIdEnvironments, useGetReleaseReleaseIdEnvironmentsQuery, } from './hooks/useGetReleaseReleaseIdEnvironmentsQuery';
39
39
  export { getReleaseTasks, useGetReleaseTasksQuery } from './hooks/useGetReleaseTasksQuery';
40
+ export { getReportDownload, useGetReportDownloadQuery } from './hooks/useGetReportDownloadQuery';
41
+ export { getReportStatus, useGetReportStatusQuery } from './hooks/useGetReportStatusQuery';
40
42
  export { getTaskCommentsSummary, useGetTaskCommentsSummaryQuery, } from './hooks/useGetTaskCommentsSummaryQuery';
41
43
  export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
42
44
  export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
@@ -47,6 +49,8 @@ export { postOrchestrationProcessInput, usePostOrchestrationProcessInputMutation
47
49
  export { postOrchestrationProcess, usePostOrchestrationProcessMutation, } from './hooks/usePostOrchestrationProcessMutation';
48
50
  export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePostReleaseActionMutation';
49
51
  export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
52
+ export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
53
+ export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
50
54
  export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
51
55
  export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
52
56
  export { putOrchestrationActivity, usePutOrchestrationActivityMutation, } from './hooks/usePutOrchestrationActivityMutation';
@@ -0,0 +1,2 @@
1
+ import type { ReportGenerationResponse } from '../schemas/ReportGenerationResponse';
2
+ export type ReportGenerationResponseResponse = ReportGenerationResponse;
@@ -0,0 +1,2 @@
1
+ import type { ReportStatusResponse } from '../schemas/ReportStatusResponse';
2
+ export type ReportStatusResponseResponse = ReportStatusResponse;
@@ -1,4 +1,5 @@
1
1
  import type { InputVariableType } from '../schemas/InputVariableType';
2
+ import type { AnyValue } from '../schemas/AnyValue';
2
3
  /**
3
4
  * Input value for an activity execution
4
5
  */
@@ -12,7 +13,7 @@ export interface ActivityExecutionInputDto {
12
13
  */
13
14
  type: InputVariableType;
14
15
  /**
15
- * Value of the input parameter
16
+ * Value of the input parameter (can be string, number, boolean, object, array, etc.)
16
17
  */
17
- value: string;
18
+ value: AnyValue;
18
19
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Flexible type that accepts any JSON value (string, number, boolean, object, or array)
3
+ */
4
+ export type AnyValue = string | number | boolean | {
5
+ [key: string]: any;
6
+ } | Array<{
7
+ [key: string]: any;
8
+ }>;
@@ -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,22 @@
1
+ import type { ConnectorMetadata } from '../schemas/ConnectorMetadata';
2
+ /**
3
+ * Input variable for connector type
4
+ */
5
+ export interface ConnectorInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: string | null;
10
+ /**
11
+ * Description of the variable
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Connector metadata with required type
16
+ */
17
+ metadata: ConnectorMetadata;
18
+ /**
19
+ * Type of the input variable
20
+ */
21
+ type: 'connector';
22
+ }
@@ -0,0 +1,24 @@
1
+ import type { EnvironmentMetadata } from '../schemas/EnvironmentMetadata';
2
+ /**
3
+ * Input variable for environment type
4
+ */
5
+ export interface EnvironmentInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: {
10
+ [key: string]: any;
11
+ } | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Environment metadata with required deploymentType
18
+ */
19
+ metadata?: EnvironmentMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'environment';
24
+ }
@@ -1,3 +1,4 @@
1
+ import type { AnyValue } from '../schemas/AnyValue';
1
2
  /**
2
3
  * Output value for a phase execution
3
4
  */
@@ -7,7 +8,7 @@ export interface ExecutionOutputDto {
7
8
  */
8
9
  name: string;
9
10
  /**
10
- * Value of the output parameter
11
+ * Value of the output parameter (can be string, number, boolean, object, array, etc.)
11
12
  */
12
- value: string;
13
+ value: AnyValue;
13
14
  }
@@ -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 {};
@@ -3,6 +3,6 @@ export interface GlobalReleaseInputYaml {
3
3
  * Global input values
4
4
  */
5
5
  with?: {
6
- [key: string]: string;
6
+ [key: string]: any;
7
7
  };
8
8
  }
@@ -0,0 +1,22 @@
1
+ import type { InfrastructureMetadata } from '../schemas/InfrastructureMetadata';
2
+ /**
3
+ * Input variable for infrastructure type
4
+ */
5
+ export interface InfrastructureInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: string[] | null;
10
+ /**
11
+ * Description of the variable
12
+ */
13
+ description?: string;
14
+ /**
15
+ * Infrastructure metadata with optional deploymentType and environmentRef
16
+ */
17
+ metadata?: InfrastructureMetadata;
18
+ /**
19
+ * Type of the input variable
20
+ */
21
+ type: 'infrastructure';
22
+ }
@@ -1,23 +1,11 @@
1
- import type { ServiceMetadata } from '../schemas/ServiceMetadata';
2
- import type { EnvironmentMetadata } from '../schemas/EnvironmentMetadata';
3
- import type { InfrastructureMetadata } from '../schemas/InfrastructureMetadata';
4
- import type { ConnectorMetadata } from '../schemas/ConnectorMetadata';
5
- import type { InputVariableType } from '../schemas/InputVariableType';
6
- export interface InputVariable {
7
- /**
8
- * Default value for the variable in string format
9
- */
10
- default?: string | null;
11
- /**
12
- * Description of the variable
13
- */
14
- description?: string;
15
- /**
16
- * Type-specific metadata required for entity input types. For service/multiService: ServiceMetadata (requires deploymentType). For environment/multiEnvironment: EnvironmentMetadata (requires deploymentType). For infrastructure/multiInfrastructure: InfrastructureMetadata (optional deploymentType and environmentRef). For connector: ConnectorMetadata (requires type). For primitive types: no metadata required.
17
- *
18
- */
19
- metadata?: (ServiceMetadata | EnvironmentMetadata | InfrastructureMetadata | ConnectorMetadata | {
20
- [key: string]: any;
21
- }) | null;
22
- type: InputVariableType;
23
- }
1
+ import type { PrimitiveInputVariable } from '../schemas/PrimitiveInputVariable';
2
+ import type { ServiceInputVariable } from '../schemas/ServiceInputVariable';
3
+ import type { MultiServiceInputVariable } from '../schemas/MultiServiceInputVariable';
4
+ import type { EnvironmentInputVariable } from '../schemas/EnvironmentInputVariable';
5
+ import type { MultiEnvironmentInputVariable } from '../schemas/MultiEnvironmentInputVariable';
6
+ import type { InfrastructureInputVariable } from '../schemas/InfrastructureInputVariable';
7
+ import type { MultiInfrastructureInputVariable } from '../schemas/MultiInfrastructureInputVariable';
8
+ import type { ConnectorInputVariable } from '../schemas/ConnectorInputVariable';
9
+ export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable) & {
10
+ [key: string]: any;
11
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Manual activity execution information
3
+ */
4
+ export interface ManualActivityInfo {
5
+ /**
6
+ * Total number of tasks in this manual activity
7
+ * @format int32
8
+ */
9
+ taskCount?: number | null;
10
+ }
@@ -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,24 @@
1
+ import type { EnvironmentMetadata } from '../schemas/EnvironmentMetadata';
2
+ /**
3
+ * Input variable for multiEnvironment type
4
+ */
5
+ export interface MultiEnvironmentInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: Array<{
10
+ [key: string]: any;
11
+ }> | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Environment metadata with required deploymentType
18
+ */
19
+ metadata?: EnvironmentMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'multiEnvironment';
24
+ }
@@ -0,0 +1,24 @@
1
+ import type { InfrastructureMetadata } from '../schemas/InfrastructureMetadata';
2
+ /**
3
+ * Input variable for multiInfrastructure type
4
+ */
5
+ export interface MultiInfrastructureInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: Array<{
10
+ [key: string]: any;
11
+ }> | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Infrastructure metadata with optional deploymentType and environmentRef
18
+ */
19
+ metadata?: InfrastructureMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'multiInfrastructure';
24
+ }
@@ -0,0 +1,24 @@
1
+ import type { ServiceMetadata } from '../schemas/ServiceMetadata';
2
+ /**
3
+ * Input variable for multiService type
4
+ */
5
+ export interface MultiServiceInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: Array<{
10
+ [key: string]: any;
11
+ }> | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Service metadata with required deploymentType
18
+ */
19
+ metadata?: ServiceMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'multiService';
24
+ }
@@ -1,4 +1,5 @@
1
1
  import type { FailureInfo } from '../schemas/FailureInfo';
2
+ import type { ManualActivityInfo } from '../schemas/ManualActivityInfo';
2
3
  import type { PipelineActivityInfo } from '../schemas/PipelineActivityInfo';
3
4
  import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
4
5
  import type { SubprocessActivityInfo } from '../schemas/SubprocessActivityInfo';
@@ -24,6 +25,10 @@ export interface OrchestrationExecutionActivityPaginated {
24
25
  * Unique identifier of the activity
25
26
  */
26
27
  identifier: string;
28
+ /**
29
+ * Manual activity execution information
30
+ */
31
+ manual?: ManualActivityInfo;
27
32
  /**
28
33
  * Name of the activity
29
34
  */
@@ -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]: string;
10
+ [key: string]: any;
11
11
  };
12
12
  }
@@ -6,4 +6,8 @@ export interface PipelineActivityInfo {
6
6
  * ID of the pipeline execution
7
7
  */
8
8
  executionId: string;
9
+ /**
10
+ * Pipeline identifier for PIPELINE type activities in format org/project/pipelineIdentifier
11
+ */
12
+ identifier: string;
9
13
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Input variable for primitive types (string, list, boolean, number, object)
3
+ */
4
+ export interface PrimitiveInputVariable {
5
+ /**
6
+ * Default value for the variable in string format
7
+ */
8
+ default?: string | null;
9
+ /**
10
+ * Description of the variable
11
+ */
12
+ description?: string;
13
+ /**
14
+ * Type of the primitive input variable
15
+ */
16
+ type: 'boolean' | 'list' | 'number' | 'object' | 'string';
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,12 @@
1
+ export interface ReportGenerationRequest {
2
+ /**
3
+ * End timestamp in milliseconds (Unix epoch)
4
+ * @format int64
5
+ */
6
+ endTs: number;
7
+ /**
8
+ * Start timestamp in milliseconds (Unix epoch)
9
+ * @format int64
10
+ */
11
+ startTs: number;
12
+ }
@@ -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,4 @@
1
+ export interface ReportGenerationResponse {
2
+ reportId: string;
3
+ status: 'COMPLETED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING';
4
+ }
@@ -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,14 @@
1
+ export interface ReportStatusResponse {
2
+ /**
3
+ * @format int64
4
+ */
5
+ completedAt?: number | null;
6
+ /**
7
+ * @format int64
8
+ */
9
+ createdAt?: number;
10
+ errorMessage?: string | null;
11
+ reportId: string;
12
+ status: 'COMPLETED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING';
13
+ totalReleases?: number | null;
14
+ }
@@ -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,24 @@
1
+ import type { ServiceMetadata } from '../schemas/ServiceMetadata';
2
+ /**
3
+ * Input variable for service type
4
+ */
5
+ export interface ServiceInputVariable {
6
+ /**
7
+ * Default value for the variable in string format
8
+ */
9
+ default?: {
10
+ [key: string]: any;
11
+ } | null;
12
+ /**
13
+ * Description of the variable
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Service metadata with required deploymentType
18
+ */
19
+ metadata?: ServiceMetadata;
20
+ /**
21
+ * Type of the input variable
22
+ */
23
+ type: 'service';
24
+ }
@@ -2,6 +2,10 @@
2
2
  * Subprocess execution information for activities
3
3
  */
4
4
  export interface SubprocessActivityInfo {
5
+ /**
6
+ * Process identifier for SUBPROCESS type activities
7
+ */
8
+ identifier: string;
5
9
  /**
6
10
  * ID of the subprocess release
7
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-rmg-service-client",
3
- "version": "0.47.0",
3
+ "version": "0.49.0",
4
4
  "description": "Harness Release Management Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",