@harnessio/react-rmg-service-client 0.69.0 → 0.69.1-beta.1
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/useGetArtifactFacetsQuery.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/useGetArtifactFacetsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useGetChangesetFacetsQuery.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/useGetChangesetFacetsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactsByServiceQuery.d.ts +34 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactsByServiceQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactsQuery.d.ts +36 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListChangesetCommitsQuery.d.ts +33 -0
- package/dist/rmg-service/src/services/hooks/useListChangesetCommitsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListChangesetsQuery.d.ts +37 -0
- package/dist/rmg-service/src/services/hooks/useListChangesetsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useRetryChangesetMutation.d.ts +25 -0
- package/dist/rmg-service/src/services/hooks/useRetryChangesetMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpdateChangesetTagsMutation.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/useUpdateChangesetTagsMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +33 -0
- package/dist/rmg-service/src/services/index.js +8 -0
- package/dist/rmg-service/src/services/schemas/ActivityInputYaml.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/AnyValue.d.ts +2 -2
- package/dist/rmg-service/src/services/schemas/ArtifactBuild.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/ArtifactBuild.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactFacets.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/ArtifactFacets.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactServiceGroupList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactServiceGroupList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactServiceItem.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/ArtifactServiceItem.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagMetadata.d.ts +1 -3
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMapping.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettings.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactVersion.d.ts +30 -0
- package/dist/rmg-service/src/services/schemas/ArtifactVersion.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactVersionList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactVersionList.js +1 -0
- package/dist/rmg-service/src/services/schemas/Changeset.d.ts +20 -0
- package/dist/rmg-service/src/services/schemas/Changeset.js +4 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommit.d.ts +22 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommit.js +1 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitTicket.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitTicket.js +4 -0
- package/dist/rmg-service/src/services/schemas/ChangesetFacets.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/ChangesetFacets.js +4 -0
- package/dist/rmg-service/src/services/schemas/ChangesetList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ChangesetList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ChangesetRef.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ChangesetRef.js +4 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerSettingsRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +1 -3
- package/dist/rmg-service/src/services/schemas/ManualTaskYaml.d.ts +3 -3
- package/dist/rmg-service/src/services/schemas/OrchestrationActivityWebhookYaml.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OutputVariable.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/ReleaseRef.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/ReleaseRef.js +4 -0
- package/dist/rmg-service/src/services/schemas/StringOrBool.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/StringOrStringArray.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/TaskExecuteConfig.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/UpdateChangesetTagsRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/UpdateChangesetTagsRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/UpsertArtifactTrackerSettingsRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalArtifacts.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalArtifacts.js +1 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalImage.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalImage.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalRequest.d.ts +2 -0
- package/package.json +1 -4
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactFacets } from '../schemas/ArtifactFacets';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetArtifactFacetsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
registry?: string;
|
|
10
|
+
artifactPath?: string;
|
|
11
|
+
tag?: string;
|
|
12
|
+
service?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetArtifactFacetsQueryHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactFacetsOkResponse = ResponseWithPagination<ArtifactFacets>;
|
|
18
|
+
export type GetArtifactFacetsErrorResponse = ErrorResponseResponse;
|
|
19
|
+
export interface GetArtifactFacetsProps extends Omit<FetcherOptions<GetArtifactFacetsQueryQueryParams, unknown, GetArtifactFacetsQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactFacetsQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactFacets(props: GetArtifactFacetsProps): Promise<GetArtifactFacetsOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Distinct filter options (facets) for a scope's artifacts
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactFacetsQuery(props: GetArtifactFacetsProps, options?: Omit<UseQueryOptions<GetArtifactFacetsOkResponse, GetArtifactFacetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactFacetsOkResponse, 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 getArtifactFacets(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifacts/facets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Distinct filter options (facets) for a scope's artifacts
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactFacetsQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactFacets', props.queryParams], ({ signal }) => getArtifactFacets(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChangesetFacets } from '../schemas/ChangesetFacets';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetChangesetFacetsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
releaseId?: string;
|
|
10
|
+
service?: string;
|
|
11
|
+
tag?: string;
|
|
12
|
+
artifactPath?: string;
|
|
13
|
+
artifactRegistry?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetChangesetFacetsQueryHeaderParams {
|
|
16
|
+
'Harness-Account': string;
|
|
17
|
+
}
|
|
18
|
+
export type GetChangesetFacetsOkResponse = ResponseWithPagination<ChangesetFacets>;
|
|
19
|
+
export type GetChangesetFacetsErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface GetChangesetFacetsProps extends Omit<FetcherOptions<GetChangesetFacetsQueryQueryParams, unknown, GetChangesetFacetsQueryHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: GetChangesetFacetsQueryQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function getChangesetFacets(props: GetChangesetFacetsProps): Promise<GetChangesetFacetsOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Distinct filter options (facets) for changesets
|
|
26
|
+
*/
|
|
27
|
+
export declare function useGetChangesetFacetsQuery(props: GetChangesetFacetsProps, options?: Omit<UseQueryOptions<GetChangesetFacetsOkResponse, GetChangesetFacetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChangesetFacetsOkResponse, 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 getChangesetFacets(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/changesets/facets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Distinct filter options (facets) for changesets
|
|
11
|
+
*/
|
|
12
|
+
export function useGetChangesetFacetsQuery(props, options) {
|
|
13
|
+
return useQuery(['getChangesetFacets', props.queryParams], ({ signal }) => getChangesetFacets(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactServiceGroupList } from '../schemas/ArtifactServiceGroupList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactsByServiceQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
serviceRef?: string;
|
|
18
|
+
artifactRegistry?: string;
|
|
19
|
+
artifactPath?: string;
|
|
20
|
+
settingsIdentifier?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ListArtifactsByServiceQueryHeaderParams {
|
|
23
|
+
'Harness-Account': string;
|
|
24
|
+
}
|
|
25
|
+
export type ListArtifactsByServiceOkResponse = ResponseWithPagination<ArtifactServiceGroupList>;
|
|
26
|
+
export type ListArtifactsByServiceErrorResponse = ErrorResponseResponse;
|
|
27
|
+
export interface ListArtifactsByServiceProps extends Omit<FetcherOptions<ListArtifactsByServiceQueryQueryParams, unknown, ListArtifactsByServiceQueryHeaderParams>, 'url'> {
|
|
28
|
+
queryParams: ListArtifactsByServiceQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function listArtifactsByService(props: ListArtifactsByServiceProps): Promise<ListArtifactsByServiceOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List service mappings (with artifacts) each enriched with its latest artifact
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListArtifactsByServiceQuery(props: ListArtifactsByServiceProps, options?: Omit<UseQueryOptions<ListArtifactsByServiceOkResponse, ListArtifactsByServiceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactsByServiceOkResponse, 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 listArtifactsByService(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifacts/by-service`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List service mappings (with artifacts) each enriched with its latest artifact
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactsByServiceQuery(props, options) {
|
|
13
|
+
return useQuery(['listArtifactsByService', props.queryParams], ({ signal }) => listArtifactsByService(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactVersionList } from '../schemas/ArtifactVersionList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListArtifactsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @default 20
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
registry?: string;
|
|
18
|
+
artifactPath?: string;
|
|
19
|
+
tag?: string;
|
|
20
|
+
service?: string;
|
|
21
|
+
commitSha?: string;
|
|
22
|
+
serviceMappingId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface ListArtifactsQueryHeaderParams {
|
|
25
|
+
'Harness-Account': string;
|
|
26
|
+
}
|
|
27
|
+
export type ListArtifactsOkResponse = ResponseWithPagination<ArtifactVersionList>;
|
|
28
|
+
export type ListArtifactsErrorResponse = ErrorResponseResponse;
|
|
29
|
+
export interface ListArtifactsProps extends Omit<FetcherOptions<ListArtifactsQueryQueryParams, unknown, ListArtifactsQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: ListArtifactsQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function listArtifacts(props: ListArtifactsProps): Promise<ListArtifactsOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* List artifacts for a scope
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListArtifactsQuery(props: ListArtifactsProps, options?: Omit<UseQueryOptions<ListArtifactsOkResponse, ListArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactsOkResponse, 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 listArtifacts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/artifacts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List artifacts for a scope
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactsQuery(props, options) {
|
|
13
|
+
return useQuery(['listArtifacts', props.queryParams], ({ signal }) => listArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChangesetCommitList } from '../schemas/ChangesetCommitList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListChangesetCommitsQueryPathParams {
|
|
7
|
+
changesetId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListChangesetCommitsQueryQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @default 0
|
|
14
|
+
*/
|
|
15
|
+
page?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default 20
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ListChangesetCommitsQueryHeaderParams {
|
|
22
|
+
'Harness-Account': string;
|
|
23
|
+
}
|
|
24
|
+
export type ListChangesetCommitsOkResponse = ResponseWithPagination<ChangesetCommitList>;
|
|
25
|
+
export type ListChangesetCommitsErrorResponse = ErrorResponseResponse;
|
|
26
|
+
export interface ListChangesetCommitsProps extends ListChangesetCommitsQueryPathParams, Omit<FetcherOptions<ListChangesetCommitsQueryQueryParams, unknown, ListChangesetCommitsQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: ListChangesetCommitsQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function listChangesetCommits(props: ListChangesetCommitsProps): Promise<ListChangesetCommitsOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* List commits (with tickets) for a changeset
|
|
32
|
+
*/
|
|
33
|
+
export declare function useListChangesetCommitsQuery(props: ListChangesetCommitsProps, options?: Omit<UseQueryOptions<ListChangesetCommitsOkResponse, ListChangesetCommitsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChangesetCommitsOkResponse, 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 listChangesetCommits(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/changesets/${props.changesetId}/commits`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List commits (with tickets) for a changeset
|
|
11
|
+
*/
|
|
12
|
+
export function useListChangesetCommitsQuery(props, options) {
|
|
13
|
+
return useQuery(['listChangesetCommits', props.changesetId, props.queryParams], ({ signal }) => listChangesetCommits(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ChangesetList } from '../schemas/ChangesetList';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListChangesetsQueryQueryParams {
|
|
7
|
+
orgIdentifier?: string;
|
|
8
|
+
projectIdentifier?: string;
|
|
9
|
+
releaseId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default 20
|
|
16
|
+
*/
|
|
17
|
+
size?: number;
|
|
18
|
+
artifactPath?: string;
|
|
19
|
+
artifactRegistry?: string;
|
|
20
|
+
sha?: string;
|
|
21
|
+
ticketKey?: string;
|
|
22
|
+
service?: string;
|
|
23
|
+
tag?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ListChangesetsQueryHeaderParams {
|
|
26
|
+
'Harness-Account': string;
|
|
27
|
+
}
|
|
28
|
+
export type ListChangesetsOkResponse = ResponseWithPagination<ChangesetList>;
|
|
29
|
+
export type ListChangesetsErrorResponse = ErrorResponseResponse;
|
|
30
|
+
export interface ListChangesetsProps extends Omit<FetcherOptions<ListChangesetsQueryQueryParams, unknown, ListChangesetsQueryHeaderParams>, 'url'> {
|
|
31
|
+
queryParams: ListChangesetsQueryQueryParams;
|
|
32
|
+
}
|
|
33
|
+
export declare function listChangesets(props: ListChangesetsProps): Promise<ListChangesetsOkResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* List changesets
|
|
36
|
+
*/
|
|
37
|
+
export declare function useListChangesetsQuery(props: ListChangesetsProps, options?: Omit<UseQueryOptions<ListChangesetsOkResponse, ListChangesetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChangesetsOkResponse, 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 listChangesets(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/changesets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List changesets
|
|
11
|
+
*/
|
|
12
|
+
export function useListChangesetsQuery(props, options) {
|
|
13
|
+
return useQuery(['listChangesets', props.queryParams], ({ signal }) => listChangesets(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Changeset } from '../schemas/Changeset';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface RetryChangesetMutationPathParams {
|
|
7
|
+
changesetId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface RetryChangesetMutationQueryParams {
|
|
10
|
+
orgIdentifier?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RetryChangesetMutationHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type RetryChangesetOkResponse = ResponseWithPagination<Changeset>;
|
|
17
|
+
export type RetryChangesetErrorResponse = ErrorResponseResponse;
|
|
18
|
+
export interface RetryChangesetProps extends RetryChangesetMutationPathParams, Omit<FetcherOptions<RetryChangesetMutationQueryParams, unknown, RetryChangesetMutationHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: RetryChangesetMutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function retryChangeset(props: RetryChangesetProps): Promise<RetryChangesetOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Retry a changeset's pipeline
|
|
24
|
+
*/
|
|
25
|
+
export declare function useRetryChangesetMutation(options?: Omit<UseMutationOptions<RetryChangesetOkResponse, RetryChangesetErrorResponse, RetryChangesetProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RetryChangesetOkResponse, import("..").Error, RetryChangesetProps, 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 retryChangeset(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/changesets/${props.changesetId}/retry`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retry a changeset's pipeline
|
|
11
|
+
*/
|
|
12
|
+
export function useRetryChangesetMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => retryChangeset(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { Changeset } from '../schemas/Changeset';
|
|
3
|
+
import type { ErrorResponseResponse } from '../responses/ErrorResponseResponse';
|
|
4
|
+
import type { UpdateChangesetTagsRequest } from '../schemas/UpdateChangesetTagsRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateChangesetTagsMutationPathParams {
|
|
8
|
+
changesetId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateChangesetTagsMutationQueryParams {
|
|
11
|
+
orgIdentifier?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UpdateChangesetTagsMutationHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type UpdateChangesetTagsRequestBody = UpdateChangesetTagsRequest;
|
|
18
|
+
export type UpdateChangesetTagsOkResponse = ResponseWithPagination<Changeset>;
|
|
19
|
+
export type UpdateChangesetTagsErrorResponse = ErrorResponseResponse;
|
|
20
|
+
export interface UpdateChangesetTagsProps extends UpdateChangesetTagsMutationPathParams, Omit<FetcherOptions<UpdateChangesetTagsMutationQueryParams, UpdateChangesetTagsRequestBody, UpdateChangesetTagsMutationHeaderParams>, 'url'> {
|
|
21
|
+
queryParams: UpdateChangesetTagsMutationQueryParams;
|
|
22
|
+
body: UpdateChangesetTagsRequestBody;
|
|
23
|
+
}
|
|
24
|
+
export declare function updateChangesetTags(props: UpdateChangesetTagsProps): Promise<UpdateChangesetTagsOkResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Edit a changeset's from/to tags
|
|
27
|
+
*/
|
|
28
|
+
export declare function useUpdateChangesetTagsMutation(options?: Omit<UseMutationOptions<UpdateChangesetTagsOkResponse, UpdateChangesetTagsErrorResponse, UpdateChangesetTagsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateChangesetTagsOkResponse, import("..").Error, UpdateChangesetTagsProps, 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 updateChangesetTags(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/changesets/${props.changesetId}`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Edit a changeset's from/to tags
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateChangesetTagsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateChangesetTags(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -23,10 +23,14 @@ export type { DeleteTaskCommentErrorResponse, DeleteTaskCommentMutationPathParam
|
|
|
23
23
|
export { deleteTaskComment, useDeleteTaskCommentMutation, } from './hooks/useDeleteTaskCommentMutation';
|
|
24
24
|
export type { GetActivityRetryHistoryByIdentifiersErrorResponse, GetActivityRetryHistoryByIdentifiersOkResponse, GetActivityRetryHistoryByIdentifiersProps, GetActivityRetryHistoryByIdentifiersQueryPathParams, GetActivityRetryHistoryByIdentifiersQueryQueryParams, } from './hooks/useGetActivityRetryHistoryByIdentifiersQuery';
|
|
25
25
|
export { getActivityRetryHistoryByIdentifiers, useGetActivityRetryHistoryByIdentifiersQuery, } from './hooks/useGetActivityRetryHistoryByIdentifiersQuery';
|
|
26
|
+
export type { GetArtifactFacetsErrorResponse, GetArtifactFacetsOkResponse, GetArtifactFacetsProps, GetArtifactFacetsQueryQueryParams, } from './hooks/useGetArtifactFacetsQuery';
|
|
27
|
+
export { getArtifactFacets, useGetArtifactFacetsQuery } from './hooks/useGetArtifactFacetsQuery';
|
|
26
28
|
export type { GetArtifactTrackerServiceMappingErrorResponse, GetArtifactTrackerServiceMappingOkResponse, GetArtifactTrackerServiceMappingProps, GetArtifactTrackerServiceMappingQueryPathParams, GetArtifactTrackerServiceMappingQueryQueryParams, } from './hooks/useGetArtifactTrackerServiceMappingQuery';
|
|
27
29
|
export { getArtifactTrackerServiceMapping, useGetArtifactTrackerServiceMappingQuery, } from './hooks/useGetArtifactTrackerServiceMappingQuery';
|
|
28
30
|
export type { GetArtifactTrackerSettingsErrorResponse, GetArtifactTrackerSettingsOkResponse, GetArtifactTrackerSettingsProps, GetArtifactTrackerSettingsQueryPathParams, GetArtifactTrackerSettingsQueryQueryParams, } from './hooks/useGetArtifactTrackerSettingsQuery';
|
|
29
31
|
export { getArtifactTrackerSettings, useGetArtifactTrackerSettingsQuery, } from './hooks/useGetArtifactTrackerSettingsQuery';
|
|
32
|
+
export type { GetChangesetFacetsErrorResponse, GetChangesetFacetsOkResponse, GetChangesetFacetsProps, GetChangesetFacetsQueryQueryParams, } from './hooks/useGetChangesetFacetsQuery';
|
|
33
|
+
export { getChangesetFacets, useGetChangesetFacetsQuery } from './hooks/useGetChangesetFacetsQuery';
|
|
30
34
|
export type { GetEventsByEntityTypeAndIdErrorResponse, GetEventsByEntityTypeAndIdOkResponse, GetEventsByEntityTypeAndIdProps, GetEventsByEntityTypeAndIdQueryPathParams, GetEventsByEntityTypeAndIdQueryQueryParams, } from './hooks/useGetEventsByEntityTypeAndIdQuery';
|
|
31
35
|
export { getEventsByEntityTypeAndId, useGetEventsByEntityTypeAndIdQuery, } from './hooks/useGetEventsByEntityTypeAndIdQuery';
|
|
32
36
|
export type { GetFreezeDetailsErrorResponse, GetFreezeDetailsOkResponse, GetFreezeDetailsProps, GetFreezeDetailsQueryPathParams, GetFreezeDetailsQueryQueryParams, } from './hooks/useGetFreezeDetailsQuery';
|
|
@@ -127,6 +131,14 @@ export type { ListArtifactTrackerServiceMappingsErrorResponse, ListArtifactTrack
|
|
|
127
131
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
128
132
|
export type { ListArtifactTrackerSettingsErrorResponse, ListArtifactTrackerSettingsOkResponse, ListArtifactTrackerSettingsProps, ListArtifactTrackerSettingsQueryQueryParams, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
129
133
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
134
|
+
export type { ListArtifactsByServiceErrorResponse, ListArtifactsByServiceOkResponse, ListArtifactsByServiceProps, ListArtifactsByServiceQueryQueryParams, } from './hooks/useListArtifactsByServiceQuery';
|
|
135
|
+
export { listArtifactsByService, useListArtifactsByServiceQuery, } from './hooks/useListArtifactsByServiceQuery';
|
|
136
|
+
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryQueryParams, } from './hooks/useListArtifactsQuery';
|
|
137
|
+
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
138
|
+
export type { ListChangesetCommitsErrorResponse, ListChangesetCommitsOkResponse, ListChangesetCommitsProps, ListChangesetCommitsQueryPathParams, ListChangesetCommitsQueryQueryParams, } from './hooks/useListChangesetCommitsQuery';
|
|
139
|
+
export { listChangesetCommits, useListChangesetCommitsQuery, } from './hooks/useListChangesetCommitsQuery';
|
|
140
|
+
export type { ListChangesetsErrorResponse, ListChangesetsOkResponse, ListChangesetsProps, ListChangesetsQueryQueryParams, } from './hooks/useListChangesetsQuery';
|
|
141
|
+
export { listChangesets, useListChangesetsQuery } from './hooks/useListChangesetsQuery';
|
|
130
142
|
export type { ListIntegrationExecutionsErrorResponse, ListIntegrationExecutionsOkResponse, ListIntegrationExecutionsProps, ListIntegrationExecutionsQueryQueryParams, } from './hooks/useListIntegrationExecutionsQuery';
|
|
131
143
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
132
144
|
export type { PatchReleaseGroupErrorResponse, PatchReleaseGroupMutationPathParams, PatchReleaseGroupMutationQueryParams, PatchReleaseGroupOkResponse, PatchReleaseGroupProps, PatchReleaseGroupRequestBody, } from './hooks/usePatchReleaseGroupMutation';
|
|
@@ -177,6 +189,8 @@ export type { PutReleaseGroupErrorResponse, PutReleaseGroupMutationPathParams, P
|
|
|
177
189
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
178
190
|
export type { PutReleaseReleaseIdErrorResponse, PutReleaseReleaseIdMutationPathParams, PutReleaseReleaseIdOkResponse, PutReleaseReleaseIdProps, PutReleaseReleaseIdRequestBody, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
179
191
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
192
|
+
export type { RetryChangesetErrorResponse, RetryChangesetMutationPathParams, RetryChangesetMutationQueryParams, RetryChangesetOkResponse, RetryChangesetProps, } from './hooks/useRetryChangesetMutation';
|
|
193
|
+
export { retryChangeset, useRetryChangesetMutation } from './hooks/useRetryChangesetMutation';
|
|
180
194
|
export type { ServeUploadErrorResponse, ServeUploadOkResponse, ServeUploadProps, ServeUploadQueryPathParams, } from './hooks/useServeUploadQuery';
|
|
181
195
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
182
196
|
export type { StartReleaseExecutionErrorResponse, StartReleaseExecutionMutationPathParams, StartReleaseExecutionMutationQueryParams, StartReleaseExecutionOkResponse, StartReleaseExecutionProps, StartReleaseExecutionRequestBody, } from './hooks/useStartReleaseExecutionMutation';
|
|
@@ -187,6 +201,8 @@ export type { TriggerIntegrationExecutionErrorResponse, TriggerIntegrationExecut
|
|
|
187
201
|
export { triggerIntegrationExecution, useTriggerIntegrationExecutionMutation, } from './hooks/useTriggerIntegrationExecutionMutation';
|
|
188
202
|
export type { UpdateArtifactTrackerServiceMappingErrorResponse, UpdateArtifactTrackerServiceMappingMutationPathParams, UpdateArtifactTrackerServiceMappingMutationQueryParams, UpdateArtifactTrackerServiceMappingOkResponse, UpdateArtifactTrackerServiceMappingProps, UpdateArtifactTrackerServiceMappingRequestBody, } from './hooks/useUpdateArtifactTrackerServiceMappingMutation';
|
|
189
203
|
export { updateArtifactTrackerServiceMapping, useUpdateArtifactTrackerServiceMappingMutation, } from './hooks/useUpdateArtifactTrackerServiceMappingMutation';
|
|
204
|
+
export type { UpdateChangesetTagsErrorResponse, UpdateChangesetTagsMutationPathParams, UpdateChangesetTagsMutationQueryParams, UpdateChangesetTagsOkResponse, UpdateChangesetTagsProps, UpdateChangesetTagsRequestBody, } from './hooks/useUpdateChangesetTagsMutation';
|
|
205
|
+
export { updateChangesetTags, useUpdateChangesetTagsMutation, } from './hooks/useUpdateChangesetTagsMutation';
|
|
190
206
|
export type { UpdateExecutionTaskMetadataErrorResponse, UpdateExecutionTaskMetadataMutationPathParams, UpdateExecutionTaskMetadataMutationQueryParams, UpdateExecutionTaskMetadataOkResponse, UpdateExecutionTaskMetadataProps, UpdateExecutionTaskMetadataRequestBody, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
191
207
|
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
192
208
|
export type { UpdateExecutionTaskStatusErrorResponse, UpdateExecutionTaskStatusMutationPathParams, UpdateExecutionTaskStatusMutationQueryParams, UpdateExecutionTaskStatusOkResponse, UpdateExecutionTaskStatusProps, UpdateExecutionTaskStatusRequestBody, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
@@ -289,16 +305,29 @@ export type { AdHocReleaseResponse } from './schemas/AdHocReleaseResponse';
|
|
|
289
305
|
export type { AnyValue } from './schemas/AnyValue';
|
|
290
306
|
export type { ApprovalInfoDto } from './schemas/ApprovalInfoDto';
|
|
291
307
|
export type { ApprovedByDto } from './schemas/ApprovedByDto';
|
|
308
|
+
export type { ArtifactBuild } from './schemas/ArtifactBuild';
|
|
309
|
+
export type { ArtifactFacets } from './schemas/ArtifactFacets';
|
|
310
|
+
export type { ArtifactServiceGroupList } from './schemas/ArtifactServiceGroupList';
|
|
311
|
+
export type { ArtifactServiceItem } from './schemas/ArtifactServiceItem';
|
|
292
312
|
export type { ArtifactTagInputVariable } from './schemas/ArtifactTagInputVariable';
|
|
293
313
|
export type { ArtifactTagMetadata } from './schemas/ArtifactTagMetadata';
|
|
294
314
|
export type { ArtifactTrackerServiceMapping } from './schemas/ArtifactTrackerServiceMapping';
|
|
295
315
|
export type { ArtifactTrackerServiceMappingList } from './schemas/ArtifactTrackerServiceMappingList';
|
|
296
316
|
export type { ArtifactTrackerSettings } from './schemas/ArtifactTrackerSettings';
|
|
297
317
|
export type { ArtifactTrackerSettingsList } from './schemas/ArtifactTrackerSettingsList';
|
|
318
|
+
export type { ArtifactVersion } from './schemas/ArtifactVersion';
|
|
319
|
+
export type { ArtifactVersionList } from './schemas/ArtifactVersionList';
|
|
298
320
|
export type { ArtifactoryRegistryMetadata } from './schemas/ArtifactoryRegistryMetadata';
|
|
299
321
|
export type { AttachedReleaseGroupDto } from './schemas/AttachedReleaseGroupDto';
|
|
300
322
|
export type { AutoExecuteOnScheduleProperty } from './schemas/AutoExecuteOnScheduleProperty';
|
|
301
323
|
export type { BuildInfo } from './schemas/BuildInfo';
|
|
324
|
+
export type { Changeset } from './schemas/Changeset';
|
|
325
|
+
export type { ChangesetCommit } from './schemas/ChangesetCommit';
|
|
326
|
+
export type { ChangesetCommitList } from './schemas/ChangesetCommitList';
|
|
327
|
+
export type { ChangesetCommitTicket } from './schemas/ChangesetCommitTicket';
|
|
328
|
+
export type { ChangesetFacets } from './schemas/ChangesetFacets';
|
|
329
|
+
export type { ChangesetList } from './schemas/ChangesetList';
|
|
330
|
+
export type { ChangesetRef } from './schemas/ChangesetRef';
|
|
302
331
|
export type { ClusterDeploymentDto } from './schemas/ClusterDeploymentDto';
|
|
303
332
|
export type { CommentedByDto } from './schemas/CommentedByDto';
|
|
304
333
|
export type { ConflictStatus } from './schemas/ConflictStatus';
|
|
@@ -420,6 +449,7 @@ export type { ReleaseGroupYaml } from './schemas/ReleaseGroupYaml';
|
|
|
420
449
|
export type { ReleaseInfo } from './schemas/ReleaseInfo';
|
|
421
450
|
export type { ReleaseInputYaml } from './schemas/ReleaseInputYaml';
|
|
422
451
|
export type { ReleaseParentDto } from './schemas/ReleaseParentDto';
|
|
452
|
+
export type { ReleaseRef } from './schemas/ReleaseRef';
|
|
423
453
|
export type { ReleaseType } from './schemas/ReleaseType';
|
|
424
454
|
export type { RepeatUnit } from './schemas/RepeatUnit';
|
|
425
455
|
export type { ReportGenerationRequest } from './schemas/ReportGenerationRequest';
|
|
@@ -456,6 +486,7 @@ export type { TriggerType } from './schemas/TriggerType';
|
|
|
456
486
|
export type { TriggeredBy } from './schemas/TriggeredBy';
|
|
457
487
|
export type { TriggeredByDto } from './schemas/TriggeredByDto';
|
|
458
488
|
export type { UpdateArtifactTrackerServiceMappingRequest } from './schemas/UpdateArtifactTrackerServiceMappingRequest';
|
|
489
|
+
export type { UpdateChangesetTagsRequest } from './schemas/UpdateChangesetTagsRequest';
|
|
459
490
|
export type { UploadResponse } from './schemas/UploadResponse';
|
|
460
491
|
export type { UpsertArtifactTrackerSettingsRequest } from './schemas/UpsertArtifactTrackerSettingsRequest';
|
|
461
492
|
export type { User } from './schemas/User';
|
|
@@ -464,6 +495,8 @@ export type { WebhookEventType } from './schemas/WebhookEventType';
|
|
|
464
495
|
export type { WebhookMetadataResponse } from './schemas/WebhookMetadataResponse';
|
|
465
496
|
export type { WebhookQueueActionRequest } from './schemas/WebhookQueueActionRequest';
|
|
466
497
|
export type { WebhookQueueActionResponse } from './schemas/WebhookQueueActionResponse';
|
|
498
|
+
export type { WebhookSignalArtifacts } from './schemas/WebhookSignalArtifacts';
|
|
499
|
+
export type { WebhookSignalImage } from './schemas/WebhookSignalImage';
|
|
467
500
|
export type { WebhookSignalPipeline } from './schemas/WebhookSignalPipeline';
|
|
468
501
|
export type { WebhookSignalRequest } from './schemas/WebhookSignalRequest';
|
|
469
502
|
export type { WebhookSignalResponse } from './schemas/WebhookSignalResponse';
|
|
@@ -10,8 +10,10 @@ export { deleteReleaseGroup, useDeleteReleaseGroupMutation, } from './hooks/useD
|
|
|
10
10
|
export { deleteRelease, useDeleteReleaseMutation } from './hooks/useDeleteReleaseMutation';
|
|
11
11
|
export { deleteTaskComment, useDeleteTaskCommentMutation, } from './hooks/useDeleteTaskCommentMutation';
|
|
12
12
|
export { getActivityRetryHistoryByIdentifiers, useGetActivityRetryHistoryByIdentifiersQuery, } from './hooks/useGetActivityRetryHistoryByIdentifiersQuery';
|
|
13
|
+
export { getArtifactFacets, useGetArtifactFacetsQuery } from './hooks/useGetArtifactFacetsQuery';
|
|
13
14
|
export { getArtifactTrackerServiceMapping, useGetArtifactTrackerServiceMappingQuery, } from './hooks/useGetArtifactTrackerServiceMappingQuery';
|
|
14
15
|
export { getArtifactTrackerSettings, useGetArtifactTrackerSettingsQuery, } from './hooks/useGetArtifactTrackerSettingsQuery';
|
|
16
|
+
export { getChangesetFacets, useGetChangesetFacetsQuery } from './hooks/useGetChangesetFacetsQuery';
|
|
15
17
|
export { getEventsByEntityTypeAndId, useGetEventsByEntityTypeAndIdQuery, } from './hooks/useGetEventsByEntityTypeAndIdQuery';
|
|
16
18
|
export { getFreezeDetails, useGetFreezeDetailsQuery } from './hooks/useGetFreezeDetailsQuery';
|
|
17
19
|
export { getFreezeList, useGetFreezeListQuery } from './hooks/useGetFreezeListQuery';
|
|
@@ -62,6 +64,10 @@ export { getYamlSchema, useGetYamlSchemaQuery } from './hooks/useGetYamlSchemaQu
|
|
|
62
64
|
export { ingestWebhookSignal, useIngestWebhookSignalMutation, } from './hooks/useIngestWebhookSignalMutation';
|
|
63
65
|
export { listArtifactTrackerServiceMappings, useListArtifactTrackerServiceMappingsQuery, } from './hooks/useListArtifactTrackerServiceMappingsQuery';
|
|
64
66
|
export { listArtifactTrackerSettings, useListArtifactTrackerSettingsQuery, } from './hooks/useListArtifactTrackerSettingsQuery';
|
|
67
|
+
export { listArtifactsByService, useListArtifactsByServiceQuery, } from './hooks/useListArtifactsByServiceQuery';
|
|
68
|
+
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
69
|
+
export { listChangesetCommits, useListChangesetCommitsQuery, } from './hooks/useListChangesetCommitsQuery';
|
|
70
|
+
export { listChangesets, useListChangesetsQuery } from './hooks/useListChangesetsQuery';
|
|
65
71
|
export { listIntegrationExecutions, useListIntegrationExecutionsQuery, } from './hooks/useListIntegrationExecutionsQuery';
|
|
66
72
|
export { patchReleaseGroup, usePatchReleaseGroupMutation, } from './hooks/usePatchReleaseGroupMutation';
|
|
67
73
|
export { postActivityExecutionOutput, usePostActivityExecutionOutputMutation, } from './hooks/usePostActivityExecutionOutputMutation';
|
|
@@ -87,11 +93,13 @@ export { putOrchestrationProcessInput, usePutOrchestrationProcessInputMutation,
|
|
|
87
93
|
export { putOrchestrationProcess, usePutOrchestrationProcessMutation, } from './hooks/usePutOrchestrationProcessMutation';
|
|
88
94
|
export { putReleaseGroup, usePutReleaseGroupMutation } from './hooks/usePutReleaseGroupMutation';
|
|
89
95
|
export { putReleaseReleaseId, usePutReleaseReleaseIdMutation, } from './hooks/usePutReleaseReleaseIdMutation';
|
|
96
|
+
export { retryChangeset, useRetryChangesetMutation } from './hooks/useRetryChangesetMutation';
|
|
90
97
|
export { serveUpload, useServeUploadQuery } from './hooks/useServeUploadQuery';
|
|
91
98
|
export { startReleaseExecution, useStartReleaseExecutionMutation, } from './hooks/useStartReleaseExecutionMutation';
|
|
92
99
|
export { streamUpload, useStreamUploadMutation } from './hooks/useStreamUploadMutation';
|
|
93
100
|
export { triggerIntegrationExecution, useTriggerIntegrationExecutionMutation, } from './hooks/useTriggerIntegrationExecutionMutation';
|
|
94
101
|
export { updateArtifactTrackerServiceMapping, useUpdateArtifactTrackerServiceMappingMutation, } from './hooks/useUpdateArtifactTrackerServiceMappingMutation';
|
|
102
|
+
export { updateChangesetTags, useUpdateChangesetTagsMutation, } from './hooks/useUpdateChangesetTagsMutation';
|
|
95
103
|
export { updateExecutionTaskMetadata, useUpdateExecutionTaskMetadataMutation, } from './hooks/useUpdateExecutionTaskMetadataMutation';
|
|
96
104
|
export { updateExecutionTaskStatus, useUpdateExecutionTaskStatusMutation, } from './hooks/useUpdateExecutionTaskStatusMutation';
|
|
97
105
|
export { updateReleaseConflict, useUpdateReleaseConflictMutation, } from './hooks/useUpdateReleaseConflictMutation';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Flexible type that accepts any JSON value (string, number, boolean, object, or array)
|
|
3
3
|
*/
|
|
4
|
-
export type AnyValue = string
|
|
4
|
+
export type AnyValue = string & number & boolean & {
|
|
5
5
|
[key: string]: any;
|
|
6
|
-
}
|
|
6
|
+
} & Array<{
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ArtifactBuild {
|
|
2
|
+
/**
|
|
3
|
+
* timestamp (ms) when this artifact was ingested into the system
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
artifactIngestedAt?: number;
|
|
7
|
+
branch?: string;
|
|
8
|
+
/**
|
|
9
|
+
* org/project/pipeline identifier of the pipeline that built this artifact
|
|
10
|
+
*/
|
|
11
|
+
buildPipelineRef?: string;
|
|
12
|
+
/**
|
|
13
|
+
* plan execution (run) of the build pipeline that produced this artifact
|
|
14
|
+
*/
|
|
15
|
+
buildPlanExecutionId?: string;
|
|
16
|
+
commitSha?: string;
|
|
17
|
+
repoName?: string;
|
|
18
|
+
tag?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ChangesetRef } from '../schemas/ChangesetRef';
|
|
2
|
+
import type { ArtifactBuild } from '../schemas/ArtifactBuild';
|
|
3
|
+
import type { ReleaseRef } from '../schemas/ReleaseRef';
|
|
4
|
+
export interface ArtifactServiceItem {
|
|
5
|
+
artifactPath: string;
|
|
6
|
+
changesets?: ChangesetRef[];
|
|
7
|
+
id: string;
|
|
8
|
+
latestBuild?: ArtifactBuild;
|
|
9
|
+
registry: string;
|
|
10
|
+
releases?: ReleaseRef[];
|
|
11
|
+
serviceMappingId?: string;
|
|
12
|
+
serviceRef?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,6 +12,4 @@ import type { CustomArtifactMetadata } from '../schemas/CustomArtifactMetadata';
|
|
|
12
12
|
* Use the discriminated schemas below to determine which fields are needed per type.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
export type ArtifactTagMetadata =
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
15
|
+
export type ArtifactTagMetadata = DockerRegistryArtifactMetadata & EcrArtifactMetadata & GcrArtifactMetadata & AcrArtifactMetadata & GoogleArtifactRegistryMetadata & Nexus3RegistryArtifactMetadata & ArtifactoryRegistryMetadata & GithubPackageRegistryMetadata & CustomArtifactMetadata;
|
|
@@ -5,6 +5,10 @@ export interface ArtifactTrackerServiceMapping {
|
|
|
5
5
|
* @format int64
|
|
6
6
|
*/
|
|
7
7
|
createdAt?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Docker/container registry connector reference.
|
|
10
|
+
*/
|
|
11
|
+
dockerConnectorRefOverride?: string;
|
|
8
12
|
gitConnectorRefOverride?: string;
|
|
9
13
|
identifier: string;
|
|
10
14
|
k8sConnectorRefOverride?: string;
|
|
@@ -3,6 +3,10 @@ export interface ArtifactTrackerSettings {
|
|
|
3
3
|
* @format int64
|
|
4
4
|
*/
|
|
5
5
|
createdAt?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Docker/container registry connector reference.
|
|
8
|
+
*/
|
|
9
|
+
defaultDockerConnectorRef?: string;
|
|
6
10
|
defaultGitConnectorRef?: string;
|
|
7
11
|
defaultK8sConnectorRef?: string;
|
|
8
12
|
defaultK8sNamespace?: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ChangesetRef } from '../schemas/ChangesetRef';
|
|
2
|
+
import type { ReleaseRef } from '../schemas/ReleaseRef';
|
|
3
|
+
export interface ArtifactVersion {
|
|
4
|
+
artifactPath: string;
|
|
5
|
+
branch?: string;
|
|
6
|
+
/**
|
|
7
|
+
* org/project/pipeline identifier of the pipeline that built this artifact
|
|
8
|
+
*/
|
|
9
|
+
buildPipelineRef?: string;
|
|
10
|
+
/**
|
|
11
|
+
* plan execution (run) of the build pipeline that produced this artifact
|
|
12
|
+
*/
|
|
13
|
+
buildPlanExecutionId?: string;
|
|
14
|
+
changesets?: ChangesetRef[];
|
|
15
|
+
commitSha?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @format int64
|
|
18
|
+
*/
|
|
19
|
+
createdAt?: number;
|
|
20
|
+
id: string;
|
|
21
|
+
registry: string;
|
|
22
|
+
releases?: ReleaseRef[];
|
|
23
|
+
repoName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Identifier of the service mapping this artifact belongs to (populated by the by-service endpoint)
|
|
26
|
+
*/
|
|
27
|
+
serviceMappingId?: string;
|
|
28
|
+
serviceRef?: string;
|
|
29
|
+
tag: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Changeset {
|
|
2
|
+
artifactPath: string;
|
|
3
|
+
commitCount?: number;
|
|
4
|
+
/**
|
|
5
|
+
* @format int64
|
|
6
|
+
*/
|
|
7
|
+
createdAt?: number;
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
fromArtifactTag: string;
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
lastUpdatedAt?: number;
|
|
15
|
+
pipelineExecutionId?: string;
|
|
16
|
+
registry?: string;
|
|
17
|
+
serviceRef?: string;
|
|
18
|
+
status: 'COMPLETED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING';
|
|
19
|
+
toArtifactTag: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ChangesetCommitTicket } from '../schemas/ChangesetCommitTicket';
|
|
2
|
+
export interface ChangesetCommit {
|
|
3
|
+
/**
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
authorDate?: number;
|
|
7
|
+
authorEmail?: string;
|
|
8
|
+
authorName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
committerDate?: number;
|
|
13
|
+
committerEmail?: string;
|
|
14
|
+
committerName?: string;
|
|
15
|
+
id: string;
|
|
16
|
+
message: string;
|
|
17
|
+
parentShas?: string[];
|
|
18
|
+
repoName?: string;
|
|
19
|
+
sha: string;
|
|
20
|
+
tickets?: ChangesetCommitTicket[];
|
|
21
|
+
url?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface CreateArtifactTrackerServiceMappingRequest {
|
|
2
2
|
artifactPath: string;
|
|
3
3
|
artifactRegistry?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Docker/container registry connector reference.
|
|
6
|
+
*/
|
|
7
|
+
dockerConnectorRefOverride?: string;
|
|
4
8
|
/**
|
|
5
9
|
* Optional override for the linked settings' default git connector. Required only when the linked settings has no defaultGitConnectorRef.
|
|
6
10
|
*/
|
|
@@ -7,6 +7,4 @@ import type { InfrastructureInputVariable } from '../schemas/InfrastructureInput
|
|
|
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 =
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
10
|
+
export type InputVariable = PrimitiveInputVariable & ServiceInputVariable & MultiServiceInputVariable & EnvironmentInputVariable & MultiEnvironmentInputVariable & InfrastructureInputVariable & MultiInfrastructureInputVariable & ConnectorInputVariable & ArtifactTagInputVariable;
|
|
@@ -23,13 +23,13 @@ export interface ManualTaskYaml {
|
|
|
23
23
|
/**
|
|
24
24
|
* Whether this task is required, it can be boolean or string as we support expressions
|
|
25
25
|
*/
|
|
26
|
-
required: boolean
|
|
26
|
+
required: boolean & string;
|
|
27
27
|
/**
|
|
28
28
|
* List of user groups or references, it can be string or array of strings as we support expressions
|
|
29
29
|
*/
|
|
30
|
-
userGroups: string
|
|
30
|
+
userGroups: string & string[];
|
|
31
31
|
/**
|
|
32
32
|
* List of user emails or references, it can be string or array of strings as we support expressions
|
|
33
33
|
*/
|
|
34
|
-
users: string
|
|
34
|
+
users: string & string[];
|
|
35
35
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and an optional `description` (new format).
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
export type OutputVariable = string
|
|
5
|
+
export type OutputVariable = string & {
|
|
6
6
|
/**
|
|
7
7
|
* Human-readable description of the output variable.
|
|
8
8
|
*/
|
|
@@ -6,5 +6,5 @@ export interface TaskExecuteConfig {
|
|
|
6
6
|
* Either the literal string "all" (any process can be triggered), the literal string "none" (no process can be triggered), or an array of whitelisted process identifiers.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
processes: 'all' | 'none'
|
|
9
|
+
processes: 'all' | ('none' & string[]);
|
|
10
10
|
}
|
package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface UpdateArtifactTrackerServiceMappingRequest {
|
|
2
2
|
artifactPath?: string;
|
|
3
3
|
artifactRegistry?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Docker/container registry connector reference.
|
|
6
|
+
*/
|
|
7
|
+
dockerConnectorRefOverride?: string;
|
|
4
8
|
/**
|
|
5
9
|
* Optional override for the linked settings' default git connector. Required only when the linked settings has no defaultGitConnectorRef.
|
|
6
10
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WebhookSignalImage } from '../schemas/WebhookSignalImage';
|
|
2
|
+
/**
|
|
3
|
+
* Pre-resolved artifacts attached by the RO Notify step (auto-discovered from CI).
|
|
4
|
+
* Present iff eventType == "ARTIFACT_TRACKER_SIGNAL"; the handler treats absence
|
|
5
|
+
* as a no-op for any other event type.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface WebhookSignalArtifacts {
|
|
9
|
+
files?: Array<{
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
images?: WebhookSignalImage[];
|
|
13
|
+
sbom?: Array<{
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { WebhookSignalArtifacts } from '../schemas/WebhookSignalArtifacts';
|
|
1
2
|
import type { WebhookEventType } from '../schemas/WebhookEventType';
|
|
2
3
|
import type { WebhookSignalPipeline } from '../schemas/WebhookSignalPipeline';
|
|
3
4
|
export interface WebhookSignalRequest {
|
|
5
|
+
artifacts?: WebhookSignalArtifacts;
|
|
4
6
|
eventType: WebhookEventType;
|
|
5
7
|
/**
|
|
6
8
|
* Event metadata. Maximum size 10 KiB.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-rmg-service-client",
|
|
3
|
-
"version": "0.69.
|
|
3
|
+
"version": "0.69.1-beta.1",
|
|
4
4
|
"description": "Harness Release Management Service APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,8 +27,5 @@
|
|
|
27
27
|
"build": "yarn generate && tsc",
|
|
28
28
|
"generate": "oats import --config='./oats.config.ts'",
|
|
29
29
|
"fmt": "prettier --write ./index.ts"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"@harnessio/oats-cli": "^3.0.0"
|
|
33
30
|
}
|
|
34
31
|
}
|