@harnessio/react-rmg-service-client 0.58.0 → 0.60.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.
- package/dist/rmg-service/src/services/hooks/useGetYamlSchemaQuery.d.ts +5 -3
- package/dist/rmg-service/src/services/hooks/usePostReleaseListMutation.d.ts +33 -0
- package/dist/rmg-service/src/services/hooks/usePostReleaseListMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useServeUploadQuery.d.ts +2 -1
- package/dist/rmg-service/src/services/hooks/useServeUploadQuery.js +3 -3
- package/dist/rmg-service/src/services/hooks/useStreamUploadMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useStreamUploadMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +9 -4
- package/dist/rmg-service/src/services/index.js +2 -1
- package/dist/rmg-service/src/services/requestBodies/ReleaseListRequestRequestBody.d.ts +7 -0
- package/dist/rmg-service/src/services/requestBodies/ReleaseListRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/responses/ReleaseListResponseResponse.d.ts +41 -0
- package/dist/rmg-service/src/services/responses/ReleaseListResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagInputVariable.d.ts +22 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagInputVariable.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.js +1 -0
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +2 -1
- package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityPipelineYaml.d.ts +20 -0
- package/dist/rmg-service/src/services/schemas/UploadResponse.d.ts +6 -0
- package/package.json +1 -1
- package/dist/rmg-service/src/services/hooks/usePresignUploadMutation.d.ts +0 -25
- package/dist/rmg-service/src/services/hooks/usePresignUploadMutation.js +0 -14
- package/dist/rmg-service/src/services/schemas/PresignUploadRequest.d.ts +0 -15
- package/dist/rmg-service/src/services/schemas/PresignUploadResponse.d.ts +0 -10
- package/dist/rmg-service/src/services/schemas/PresignUploadResponse.js +0 -4
- /package/dist/rmg-service/src/services/schemas/{PresignUploadRequest.js → UploadResponse.js} +0 -0
|
@@ -3,16 +3,18 @@ import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetYamlSchemaQueryQueryParams {
|
|
6
|
-
accountIdentifier: string;
|
|
7
6
|
orgIdentifier?: string;
|
|
8
7
|
projectIdentifier?: string;
|
|
9
|
-
entityType: 'PROCESS';
|
|
8
|
+
entityType: 'ACTIVITY' | 'PROCESS';
|
|
9
|
+
}
|
|
10
|
+
export interface GetYamlSchemaQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
10
12
|
}
|
|
11
13
|
export type GetYamlSchemaOkResponse = ResponseWithPagination<{
|
|
12
14
|
[key: string]: any;
|
|
13
15
|
}>;
|
|
14
16
|
export type GetYamlSchemaErrorResponse = ErrorResponseResponse;
|
|
15
|
-
export interface GetYamlSchemaProps extends Omit<FetcherOptions<GetYamlSchemaQueryQueryParams, unknown>, 'url'> {
|
|
17
|
+
export interface GetYamlSchemaProps extends Omit<FetcherOptions<GetYamlSchemaQueryQueryParams, unknown, GetYamlSchemaQueryHeaderParams>, 'url'> {
|
|
16
18
|
queryParams: GetYamlSchemaQueryQueryParams;
|
|
17
19
|
}
|
|
18
20
|
export declare function getYamlSchema(props: GetYamlSchemaProps): Promise<GetYamlSchemaOkResponse>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ReleaseListResponseResponse } from '../responses/ReleaseListResponseResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ReleaseListRequestRequestBody } from '../requestBodies/ReleaseListRequestRequestBody';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface PostReleaseListMutationQueryParams {
|
|
8
|
+
page?: number;
|
|
9
|
+
size?: number;
|
|
10
|
+
sort?: string[];
|
|
11
|
+
expectedStartTs: number;
|
|
12
|
+
expectedEndTs: number;
|
|
13
|
+
searchTerm?: string;
|
|
14
|
+
releaseGroupIds?: string[];
|
|
15
|
+
type?: 'Orchestration' | 'Tracking';
|
|
16
|
+
source?: 'ADHOC' | 'RECURRING';
|
|
17
|
+
status?: Array<'Aborted' | 'Failed' | 'InputWaiting' | 'Paused' | 'Running' | 'Scheduled' | 'Success'>;
|
|
18
|
+
}
|
|
19
|
+
export interface PostReleaseListMutationHeaderParams {
|
|
20
|
+
'Harness-Account': string;
|
|
21
|
+
}
|
|
22
|
+
export type PostReleaseListRequestBody = ReleaseListRequestRequestBody;
|
|
23
|
+
export type PostReleaseListOkResponse = ResponseWithPagination<ReleaseListResponseResponse>;
|
|
24
|
+
export type PostReleaseListErrorResponse = ErrorResponseResponse;
|
|
25
|
+
export interface PostReleaseListProps extends Omit<FetcherOptions<PostReleaseListMutationQueryParams, PostReleaseListRequestBody, PostReleaseListMutationHeaderParams>, 'url'> {
|
|
26
|
+
queryParams: PostReleaseListMutationQueryParams;
|
|
27
|
+
body: PostReleaseListRequestBody;
|
|
28
|
+
}
|
|
29
|
+
export declare function postReleaseList(props: PostReleaseListProps): Promise<PostReleaseListOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Fetch paginated list of releases with sorting support. Uses standard page/size pagination instead of cursor-based.
|
|
32
|
+
*/
|
|
33
|
+
export declare function usePostReleaseListMutation(options?: Omit<UseMutationOptions<PostReleaseListOkResponse, PostReleaseListErrorResponse, PostReleaseListProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PostReleaseListOkResponse, import("..").Error, PostReleaseListProps, 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 postReleaseList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/release/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Fetch paginated list of releases with sorting support. Uses standard page/size pagination instead of cursor-based.
|
|
11
|
+
*/
|
|
12
|
+
export function usePostReleaseListMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => postReleaseList(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -5,6 +5,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface ServeUploadQueryPathParams {
|
|
6
6
|
accountId: string;
|
|
7
7
|
releaseId: string;
|
|
8
|
+
activityExecutionId: string;
|
|
8
9
|
filename: string;
|
|
9
10
|
}
|
|
10
11
|
export type ServeUploadOkResponse = ResponseWithPagination<unknown>;
|
|
@@ -13,6 +14,6 @@ export interface ServeUploadProps extends ServeUploadQueryPathParams, Omit<Fetch
|
|
|
13
14
|
}
|
|
14
15
|
export declare function serveUpload(props: ServeUploadProps): Promise<ServeUploadOkResponse>;
|
|
15
16
|
/**
|
|
16
|
-
* Serve an uploaded file via a 307 redirect to a signed GCS URL.
|
|
17
|
+
* Serve an uploaded file via a 307 redirect to a signed GCS URL.
|
|
17
18
|
*/
|
|
18
19
|
export declare function useServeUploadQuery(props: ServeUploadProps, options?: Omit<UseQueryOptions<ServeUploadOkResponse, ServeUploadErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ServeUploadOkResponse, unknown>;
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function serveUpload(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/uploads/${props.accountId}/${props.releaseId}/${props.filename}`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/uploads/${props.accountId}/${props.releaseId}/${props.activityExecutionId}/${props.filename}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Serve an uploaded file via a 307 redirect to a signed GCS URL.
|
|
10
|
+
* Serve an uploaded file via a 307 redirect to a signed GCS URL.
|
|
11
11
|
*/
|
|
12
12
|
export function useServeUploadQuery(props, options) {
|
|
13
|
-
return useQuery(['serveUpload', props.accountId, props.releaseId, props.filename], ({ signal }) => serveUpload(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['serveUpload', props.accountId, props.releaseId, props.activityExecutionId, props.filename], ({ signal }) => serveUpload(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { UploadResponse } from '../schemas/UploadResponse';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface StreamUploadMutationQueryParams {
|
|
7
|
+
releaseId: string;
|
|
8
|
+
activityExecutionId: string;
|
|
9
|
+
fileContentType: string;
|
|
10
|
+
}
|
|
11
|
+
export interface StreamUploadMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type StreamUploadRequestBody = string;
|
|
15
|
+
export type StreamUploadOkResponse = ResponseWithPagination<UploadResponse>;
|
|
16
|
+
export type StreamUploadErrorResponse = ErrorResponseResponse;
|
|
17
|
+
export interface StreamUploadProps extends Omit<FetcherOptions<StreamUploadMutationQueryParams, StreamUploadRequestBody, StreamUploadMutationHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: StreamUploadMutationQueryParams;
|
|
19
|
+
body: StreamUploadRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function streamUpload(props: StreamUploadProps): Promise<StreamUploadOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Upload an image or video file by streaming the binary body through the backend to cloud storage. Returns the serve URL for retrieval. Clients must send a valid HTTP `Content-Length` header for the request body (browsers do this automatically when posting a `File` or `Blob`); the server uses it with `fileContentType` to validate size before streaming. The upload is scoped to a MANUAL activity execution.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useStreamUploadMutation(options?: Omit<UseMutationOptions<StreamUploadOkResponse, StreamUploadErrorResponse, StreamUploadProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StreamUploadOkResponse, import("..").Error, StreamUploadProps, 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 streamUpload(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/uploads`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Upload an image or video file by streaming the binary body through the backend to cloud storage. Returns the serve URL for retrieval. Clients must send a valid HTTP `Content-Length` header for the request body (browsers do this automatically when posting a `File` or `Blob`); the server uses it with `fileContentType` to validate size before streaming. The upload is scoped to a MANUAL activity execution.
|
|
11
|
+
*/
|
|
12
|
+
export function useStreamUploadMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => streamUpload(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -109,14 +109,14 @@ export type { PostReleaseGroupErrorResponse, PostReleaseGroupMutationQueryParams
|
|
|
109
109
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
110
110
|
export type { PostReleaseGroupReportGenerateErrorResponse, PostReleaseGroupReportGenerateMutationPathParams, PostReleaseGroupReportGenerateMutationQueryParams, PostReleaseGroupReportGenerateOkResponse, PostReleaseGroupReportGenerateProps, PostReleaseGroupReportGenerateRequestBody, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
111
111
|
export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
112
|
+
export type { PostReleaseListErrorResponse, PostReleaseListMutationQueryParams, PostReleaseListOkResponse, PostReleaseListProps, PostReleaseListRequestBody, } from './hooks/usePostReleaseListMutation';
|
|
113
|
+
export { postReleaseList, usePostReleaseListMutation } from './hooks/usePostReleaseListMutation';
|
|
112
114
|
export type { PostReleaseReportGenerateErrorResponse, PostReleaseReportGenerateMutationPathParams, PostReleaseReportGenerateMutationQueryParams, PostReleaseReportGenerateOkResponse, PostReleaseReportGenerateProps, PostReleaseReportGenerateRequestBody, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
113
115
|
export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
114
116
|
export type { PostReleaseSubprocessTriggerErrorResponse, PostReleaseSubprocessTriggerMutationPathParams, PostReleaseSubprocessTriggerMutationQueryParams, PostReleaseSubprocessTriggerOkResponse, PostReleaseSubprocessTriggerProps, PostReleaseSubprocessTriggerRequestBody, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
115
117
|
export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
116
118
|
export type { PostReleaseSummaryErrorResponse, PostReleaseSummaryMutationQueryParams, PostReleaseSummaryOkResponse, PostReleaseSummaryProps, PostReleaseSummaryRequestBody, } from './hooks/usePostReleaseSummaryMutation';
|
|
117
119
|
export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
|
|
118
|
-
export type { PresignUploadErrorResponse, PresignUploadMutationQueryParams, PresignUploadOkResponse, PresignUploadProps, PresignUploadRequestBody, } from './hooks/usePresignUploadMutation';
|
|
119
|
-
export { presignUpload, usePresignUploadMutation } from './hooks/usePresignUploadMutation';
|
|
120
120
|
export type { PutOrchestrationActivityErrorResponse, PutOrchestrationActivityMutationPathParams, PutOrchestrationActivityMutationQueryParams, PutOrchestrationActivityOkResponse, PutOrchestrationActivityProps, PutOrchestrationActivityRequestBody, } from './hooks/usePutOrchestrationActivityMutation';
|
|
121
121
|
export { putOrchestrationActivity, usePutOrchestrationActivityMutation, } from './hooks/usePutOrchestrationActivityMutation';
|
|
122
122
|
export type { PutOrchestrationProcessInputErrorResponse, PutOrchestrationProcessInputMutationPathParams, PutOrchestrationProcessInputMutationQueryParams, PutOrchestrationProcessInputOkResponse, PutOrchestrationProcessInputProps, PutOrchestrationProcessInputRequestBody, } from './hooks/usePutOrchestrationProcessInputMutation';
|
|
@@ -133,6 +133,8 @@ export type { ServeUploadErrorResponse, ServeUploadOkResponse, ServeUploadProps,
|
|
|
133
133
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
134
134
|
export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
|
|
135
135
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
136
|
+
export type { StreamUploadErrorResponse, StreamUploadMutationQueryParams, StreamUploadOkResponse, StreamUploadProps, StreamUploadRequestBody, } from './hooks/useStreamUploadMutation';
|
|
137
|
+
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
|
136
138
|
export type { UpdateExecutionTaskMetadataErrorResponse, UpdateExecutionTaskMetadataMutationPathParams, UpdateExecutionTaskMetadataMutationQueryParams, UpdateExecutionTaskMetadataOkResponse, UpdateExecutionTaskMetadataProps, UpdateExecutionTaskMetadataRequestBody, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
137
139
|
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
138
140
|
export type { UpdateExecutionTaskStatusErrorResponse, UpdateExecutionTaskStatusMutationPathParams, UpdateExecutionTaskStatusMutationQueryParams, UpdateExecutionTaskStatusOkResponse, UpdateExecutionTaskStatusProps, UpdateExecutionTaskStatusRequestBody, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
@@ -149,6 +151,7 @@ export type { CreateReleaseGroupRequestRequestBody } from './requestBodies/Creat
|
|
|
149
151
|
export type { OnHoldActivityActionRequestRequestBody } from './requestBodies/OnHoldActivityActionRequestRequestBody';
|
|
150
152
|
export type { OrchestrationProcessAttachedReleaseGroupsRequestRequestBody } from './requestBodies/OrchestrationProcessAttachedReleaseGroupsRequestRequestBody';
|
|
151
153
|
export type { PatchReleaseGroupRequestRequestBody } from './requestBodies/PatchReleaseGroupRequestRequestBody';
|
|
154
|
+
export type { ReleaseListRequestRequestBody } from './requestBodies/ReleaseListRequestRequestBody';
|
|
152
155
|
export type { ReleaseSummaryRequestRequestBody } from './requestBodies/ReleaseSummaryRequestRequestBody';
|
|
153
156
|
export type { UpdateOrchestrationActivityRequestRequestBody } from './requestBodies/UpdateOrchestrationActivityRequestRequestBody';
|
|
154
157
|
export type { UpdateOrchestrationProcessInputRequestRequestBody } from './requestBodies/UpdateOrchestrationProcessInputRequestRequestBody';
|
|
@@ -191,6 +194,7 @@ export type { ReleaseConflictListResponseResponse } from './responses/ReleaseCon
|
|
|
191
194
|
export type { ReleaseDetailsResponseResponse } from './responses/ReleaseDetailsResponseResponse';
|
|
192
195
|
export type { ReleaseGroupComponentResponseResponse } from './responses/ReleaseGroupComponentResponseResponse';
|
|
193
196
|
export type { ReleaseGroupSummaryResponseResponse } from './responses/ReleaseGroupSummaryResponseResponse';
|
|
197
|
+
export type { ReleaseListResponseResponse } from './responses/ReleaseListResponseResponse';
|
|
194
198
|
export type { ReleaseSummaryResponseResponse } from './responses/ReleaseSummaryResponseResponse';
|
|
195
199
|
export type { ReleaseTasksResponseResponse } from './responses/ReleaseTasksResponseResponse';
|
|
196
200
|
export type { ReportGenerationResponseResponse } from './responses/ReportGenerationResponseResponse';
|
|
@@ -220,6 +224,8 @@ export type { AdHocReleaseResponse } from './schemas/AdHocReleaseResponse';
|
|
|
220
224
|
export type { AnyValue } from './schemas/AnyValue';
|
|
221
225
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
222
226
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
227
|
+
export type { ArtifactTagInputVariable } from './schemas/ArtifactTagInputVariable';
|
|
228
|
+
export type { ArtifactTagMetadata } from './schemas/ArtifactTagMetadata';
|
|
223
229
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
224
230
|
export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
|
|
225
231
|
export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
|
|
@@ -289,8 +295,6 @@ export type { PageableSort } from './schemas/PageableSort';
|
|
|
289
295
|
export type { PhaseInputYaml } from './schemas/PhaseInputYaml';
|
|
290
296
|
export type { PhaseReleaseInputYaml } from './schemas/PhaseReleaseInputYaml';
|
|
291
297
|
export type { PipelineActivityInfo } from './schemas/PipelineActivityInfo';
|
|
292
|
-
export type { PresignUploadRequest } from './schemas/PresignUploadRequest';
|
|
293
|
-
export type { PresignUploadResponse } from './schemas/PresignUploadResponse';
|
|
294
298
|
export type { PrimitiveInputVariable } from './schemas/PrimitiveInputVariable';
|
|
295
299
|
export type { ProcessInputSummaryDto } from './schemas/ProcessInputSummaryDto';
|
|
296
300
|
export type { ReleaseActionRequest } from './schemas/ReleaseActionRequest';
|
|
@@ -334,6 +338,7 @@ export type { TaskCommentsListResponseDto } from './schemas/TaskCommentsListResp
|
|
|
334
338
|
export type { TimeRangeDto } from './schemas/TimeRangeDto';
|
|
335
339
|
export type { TriggerType } from './schemas/TriggerType';
|
|
336
340
|
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
341
|
+
export type { UploadResponse } from './schemas/UploadResponse';
|
|
337
342
|
export type { User } from './schemas/User';
|
|
338
343
|
export type { WebhookPipeline } from './schemas/WebhookPipeline';
|
|
339
344
|
export type { WebhookSignalRequest } from './schemas/WebhookSignalRequest';
|
|
@@ -53,10 +53,10 @@ export { postReleaseAction, usePostReleaseActionMutation, } from './hooks/usePos
|
|
|
53
53
|
export { postReleaseAdhoc, usePostReleaseAdhocMutation } from './hooks/usePostReleaseAdhocMutation';
|
|
54
54
|
export { postReleaseGroup, usePostReleaseGroupMutation } from './hooks/usePostReleaseGroupMutation';
|
|
55
55
|
export { postReleaseGroupReportGenerate, usePostReleaseGroupReportGenerateMutation, } from './hooks/usePostReleaseGroupReportGenerateMutation';
|
|
56
|
+
export { postReleaseList, usePostReleaseListMutation } from './hooks/usePostReleaseListMutation';
|
|
56
57
|
export { postReleaseReportGenerate, usePostReleaseReportGenerateMutation, } from './hooks/usePostReleaseReportGenerateMutation';
|
|
57
58
|
export { postReleaseSubprocessTrigger, usePostReleaseSubprocessTriggerMutation, } from './hooks/usePostReleaseSubprocessTriggerMutation';
|
|
58
59
|
export { postReleaseSummary, usePostReleaseSummaryMutation, } from './hooks/usePostReleaseSummaryMutation';
|
|
59
|
-
export { presignUpload, usePresignUploadMutation } from './hooks/usePresignUploadMutation';
|
|
60
60
|
export { putOrchestrationActivity, usePutOrchestrationActivityMutation, } from './hooks/usePutOrchestrationActivityMutation';
|
|
61
61
|
export { putOrchestrationProcessInput, usePutOrchestrationProcessInputMutation, } from './hooks/usePutOrchestrationProcessInputMutation';
|
|
62
62
|
export { putOrchestrationProcess, usePutOrchestrationProcessMutation, } from './hooks/usePutOrchestrationProcessMutation';
|
|
@@ -65,6 +65,7 @@ export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/us
|
|
|
65
65
|
export { receiveWebhookSignal, useReceiveWebhookSignalMutation, } from './hooks/useReceiveWebhookSignalMutation';
|
|
66
66
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
67
67
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
68
|
+
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
|
68
69
|
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
69
70
|
export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
70
71
|
export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReleaseDto } from '../schemas/ReleaseDto';
|
|
2
|
+
import type { Pageable } from '../schemas/Pageable';
|
|
3
|
+
import type { PageableSort } from '../schemas/PageableSort';
|
|
4
|
+
export interface ReleaseListResponseResponse {
|
|
5
|
+
content: ReleaseDto[];
|
|
6
|
+
/**
|
|
7
|
+
* Whether the page is empty
|
|
8
|
+
*/
|
|
9
|
+
empty: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this is the first page
|
|
12
|
+
*/
|
|
13
|
+
first: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this is the last page
|
|
16
|
+
*/
|
|
17
|
+
last: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Current page number (zero-indexed)
|
|
20
|
+
*/
|
|
21
|
+
number: number;
|
|
22
|
+
/**
|
|
23
|
+
* Number of elements in current page
|
|
24
|
+
*/
|
|
25
|
+
numberOfElements: number;
|
|
26
|
+
pageable: Pageable;
|
|
27
|
+
/**
|
|
28
|
+
* Page size
|
|
29
|
+
*/
|
|
30
|
+
size: number;
|
|
31
|
+
sort: PageableSort;
|
|
32
|
+
/**
|
|
33
|
+
* Total number of releases
|
|
34
|
+
* @format int64
|
|
35
|
+
*/
|
|
36
|
+
totalElements: number;
|
|
37
|
+
/**
|
|
38
|
+
* Total number of pages
|
|
39
|
+
*/
|
|
40
|
+
totalPages: number;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ArtifactTagMetadata } from '../schemas/ArtifactTagMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* Input variable for artifact tag type. Value is the tag string.
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactTagInputVariable {
|
|
6
|
+
/**
|
|
7
|
+
* Default tag value (e.g., "latest", "v1.2.3")
|
|
8
|
+
*/
|
|
9
|
+
default?: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Description of the variable
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Artifact metadata with deployment type, artifact type, connector, and image path
|
|
16
|
+
*/
|
|
17
|
+
metadata?: ArtifactTagMetadata;
|
|
18
|
+
/**
|
|
19
|
+
* Type of the input variable
|
|
20
|
+
*/
|
|
21
|
+
type: 'artifactTag';
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeploymentTypeEnum } from '../schemas/DeploymentTypeEnum';
|
|
2
|
+
export interface ArtifactTagMetadata {
|
|
3
|
+
/**
|
|
4
|
+
* Artifact source type (e.g., DockerRegistry, Gcr, Ecr)
|
|
5
|
+
*/
|
|
6
|
+
artifactType: string;
|
|
7
|
+
/**
|
|
8
|
+
* Connector reference for the artifact source
|
|
9
|
+
*/
|
|
10
|
+
connectorRef?: string;
|
|
11
|
+
deploymentType: DeploymentTypeEnum;
|
|
12
|
+
/**
|
|
13
|
+
* Image path for the artifact (e.g., library/nginx)
|
|
14
|
+
*/
|
|
15
|
+
imagePath?: string;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,6 +6,7 @@ import type { MultiEnvironmentInputVariable } from '../schemas/MultiEnvironmentI
|
|
|
6
6
|
import type { InfrastructureInputVariable } from '../schemas/InfrastructureInputVariable';
|
|
7
7
|
import type { MultiInfrastructureInputVariable } from '../schemas/MultiInfrastructureInputVariable';
|
|
8
8
|
import type { ConnectorInputVariable } from '../schemas/ConnectorInputVariable';
|
|
9
|
-
|
|
9
|
+
import type { ArtifactTagInputVariable } from '../schemas/ArtifactTagInputVariable';
|
|
10
|
+
export type InputVariable = (PrimitiveInputVariable | ServiceInputVariable | MultiServiceInputVariable | EnvironmentInputVariable | MultiEnvironmentInputVariable | InfrastructureInputVariable | MultiInfrastructureInputVariable | ConnectorInputVariable | ArtifactTagInputVariable) & {
|
|
10
11
|
[key: string]: any;
|
|
11
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Type of an input variable for parameters and process inputs.
|
|
3
3
|
*/
|
|
4
|
-
export type InputVariableType = 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
|
|
4
|
+
export type InputVariableType = 'artifactTag' | 'boolean' | 'connector' | 'environment' | 'infrastructure' | 'list' | 'multiEnvironment' | 'multiInfrastructure' | 'multiService' | 'number' | 'object' | 'service' | 'string';
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* Pipeline configuration for orchestration activities
|
|
3
3
|
*/
|
|
4
4
|
export interface OrchestrationActivityPipelineYaml {
|
|
5
|
+
/**
|
|
6
|
+
* Git branch for the pipeline
|
|
7
|
+
*/
|
|
8
|
+
branch?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Connector reference for the git repository
|
|
11
|
+
*/
|
|
12
|
+
connectorRef?: string;
|
|
5
13
|
/**
|
|
6
14
|
* Optional key-value map for expression resolution
|
|
7
15
|
*/
|
|
@@ -14,10 +22,22 @@ export interface OrchestrationActivityPipelineYaml {
|
|
|
14
22
|
inputSet?: {
|
|
15
23
|
[key: string]: any;
|
|
16
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Parent entity connector reference for the git repository
|
|
27
|
+
*/
|
|
28
|
+
parentEntityConnectorRef?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Parent entity repository name
|
|
31
|
+
*/
|
|
32
|
+
parentEntityRepoName?: string;
|
|
17
33
|
/**
|
|
18
34
|
* Pipeline location in format orgIdentifier/projectIdentifier/pipelineIdentifier
|
|
19
35
|
*/
|
|
20
36
|
pipeline: string;
|
|
37
|
+
/**
|
|
38
|
+
* Repository identifier
|
|
39
|
+
*/
|
|
40
|
+
repoIdentifier?: string;
|
|
21
41
|
/**
|
|
22
42
|
* Optional list of stage identifiers to execute (supports expressions)
|
|
23
43
|
*/
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { PresignUploadResponse } from '../schemas/PresignUploadResponse';
|
|
3
|
-
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
-
import type { PresignUploadRequest } from '../schemas/PresignUploadRequest';
|
|
5
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
-
export interface PresignUploadMutationQueryParams {
|
|
8
|
-
orgIdentifier?: string;
|
|
9
|
-
projectIdentifier?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface PresignUploadMutationHeaderParams {
|
|
12
|
-
'Harness-Account': string;
|
|
13
|
-
}
|
|
14
|
-
export type PresignUploadRequestBody = PresignUploadRequest;
|
|
15
|
-
export type PresignUploadOkResponse = ResponseWithPagination<PresignUploadResponse>;
|
|
16
|
-
export type PresignUploadErrorResponse = ErrorResponseResponse;
|
|
17
|
-
export interface PresignUploadProps extends Omit<FetcherOptions<PresignUploadMutationQueryParams, PresignUploadRequestBody, PresignUploadMutationHeaderParams>, 'url'> {
|
|
18
|
-
queryParams: PresignUploadMutationQueryParams;
|
|
19
|
-
body: PresignUploadRequestBody;
|
|
20
|
-
}
|
|
21
|
-
export declare function presignUpload(props: PresignUploadProps): Promise<PresignUploadOkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Generate a presigned GCS URL for uploading an image or video file. Returns both the upload URL (for PUT) and the serve URL (for retrieval).
|
|
24
|
-
*/
|
|
25
|
-
export declare function usePresignUploadMutation(options?: Omit<UseMutationOptions<PresignUploadOkResponse, PresignUploadErrorResponse, PresignUploadProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PresignUploadOkResponse, import("..").Error, PresignUploadProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 presignUpload(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/uploads/presign`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Generate a presigned GCS URL for uploading an image or video file. Returns both the upload URL (for PUT) and the serve URL (for retrieval).
|
|
11
|
-
*/
|
|
12
|
-
export function usePresignUploadMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => presignUpload(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface PresignUploadRequest {
|
|
2
|
-
/**
|
|
3
|
-
* Size of the file in bytes
|
|
4
|
-
* @format int64
|
|
5
|
-
*/
|
|
6
|
-
contentLength: number;
|
|
7
|
-
/**
|
|
8
|
-
* MIME type of the file to upload (e.g., image/png, video/mp4)
|
|
9
|
-
*/
|
|
10
|
-
contentType: string;
|
|
11
|
-
/**
|
|
12
|
-
* ID of the release this upload is associated with
|
|
13
|
-
*/
|
|
14
|
-
releaseId: string;
|
|
15
|
-
}
|
/package/dist/rmg-service/src/services/schemas/{PresignUploadRequest.js → UploadResponse.js}
RENAMED
|
File without changes
|