@harnessio/react-rmg-service-client 0.59.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 +1 -1
- 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/index.d.ts +6 -0
- package/dist/rmg-service/src/services/index.js +1 -0
- 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/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface GetYamlSchemaQueryQueryParams {
|
|
6
6
|
orgIdentifier?: string;
|
|
7
7
|
projectIdentifier?: string;
|
|
8
|
-
entityType: 'PROCESS';
|
|
8
|
+
entityType: 'ACTIVITY' | 'PROCESS';
|
|
9
9
|
}
|
|
10
10
|
export interface GetYamlSchemaQueryHeaderParams {
|
|
11
11
|
'Harness-Account': string;
|
|
@@ -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
|
+
}
|
|
@@ -109,6 +109,8 @@ 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';
|
|
@@ -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';
|
|
@@ -53,6 +53,7 @@ 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';
|
|
@@ -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
|
*/
|