@harnessio/react-har-service-client 0.0.9 → 0.0.10
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/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +17 -1
- package/dist/har-service/src/services/index.js +5 -0
- package/dist/har-service/src/services/requestBodies/ArtifactLabelRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/ArtifactLabelRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/responses/ArtifactLabelResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactLabelResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ArtifactStatsResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactStatsResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListArtifactLabelResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListArtifactLabelResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactLabelRequest.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ArtifactStats.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ArtifactStats.js +4 -0
- package/dist/har-service/src/services/schemas/ListArtifactLabel.d.ts +26 -0
- package/dist/har-service/src/services/schemas/ListArtifactLabel.js +4 -0
- package/dist/har-service/src/services/schemas/Registry.d.ts +1 -2
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +1 -2
- package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -2
- package/package.json +1 -1
- package/dist/har-service/src/services/schemas/Label.d.ts +0 -6
- /package/dist/har-service/src/services/schemas/{Label.js → ArtifactLabelRequest.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactStatsResponseResponse } from '../responses/ArtifactStatsResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactStatsForRegistryQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetArtifactStatsForRegistryQueryQueryParams {
|
|
13
|
+
from?: string;
|
|
14
|
+
to?: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetArtifactStatsForRegistryOkResponse = ResponseWithPagination<ArtifactStatsResponseResponse>;
|
|
17
|
+
export type GetArtifactStatsForRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
+
export interface GetArtifactStatsForRegistryProps extends GetArtifactStatsForRegistryQueryPathParams, Omit<FetcherOptions<GetArtifactStatsForRegistryQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactStatsForRegistryQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getArtifactStatsForRegistry(props: GetArtifactStatsForRegistryProps): Promise<GetArtifactStatsForRegistryOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get Artifact Stats.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetArtifactStatsForRegistryQuery(props: GetArtifactStatsForRegistryProps, options?: Omit<UseQueryOptions<GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactStatsForRegistryOkResponse, 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 getArtifactStatsForRegistry(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/stats`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Stats.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactStatsForRegistryQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactStatsForRegistry', props.registry_ref, props.queryParams], ({ signal }) => getArtifactStatsForRegistry(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactStatsResponseResponse } from '../responses/ArtifactStatsResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactStatsForSpaceQueryPathParams {
|
|
10
|
+
space_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetArtifactStatsForSpaceQueryQueryParams {
|
|
13
|
+
from?: string;
|
|
14
|
+
to?: string;
|
|
15
|
+
}
|
|
16
|
+
export type GetArtifactStatsForSpaceOkResponse = ResponseWithPagination<ArtifactStatsResponseResponse>;
|
|
17
|
+
export type GetArtifactStatsForSpaceErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
18
|
+
export interface GetArtifactStatsForSpaceProps extends GetArtifactStatsForSpaceQueryPathParams, Omit<FetcherOptions<GetArtifactStatsForSpaceQueryQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: GetArtifactStatsForSpaceQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getArtifactStatsForSpace(props: GetArtifactStatsForSpaceProps): Promise<GetArtifactStatsForSpaceOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get Artifact Stats.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetArtifactStatsForSpaceQuery(props: GetArtifactStatsForSpaceProps, options?: Omit<UseQueryOptions<GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactStatsForSpaceOkResponse, 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 getArtifactStatsForSpace(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/artifact/stats`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Stats.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactStatsForSpaceQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactStatsForSpace', props.space_ref, props.queryParams], ({ signal }) => getArtifactStatsForSpace(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactStatsResponseResponse } from '../responses/ArtifactStatsResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface GetArtifactStatsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
artifact: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetArtifactStatsQueryQueryParams {
|
|
14
|
+
from?: string;
|
|
15
|
+
to?: string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactStatsOkResponse = ResponseWithPagination<ArtifactStatsResponseResponse>;
|
|
18
|
+
export type GetArtifactStatsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
19
|
+
export interface GetArtifactStatsProps extends GetArtifactStatsQueryPathParams, Omit<FetcherOptions<GetArtifactStatsQueryQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactStatsQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactStats(props: GetArtifactStatsProps): Promise<GetArtifactStatsOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Get Artifact Stats.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactStatsQuery(props: GetArtifactStatsProps, options?: Omit<UseQueryOptions<GetArtifactStatsOkResponse, GetArtifactStatsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactStatsOkResponse, 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 getArtifactStats(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/stats`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get Artifact Stats.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactStatsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetArtifactStats', props.registry_ref, props.artifact, props.queryParams], ({ signal }) => getArtifactStats(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListArtifactLabelResponseResponse } from '../responses/ListArtifactLabelResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
8
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
9
|
+
export interface ListArtifactLabelsQueryPathParams {
|
|
10
|
+
registry_ref: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ListArtifactLabelsQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @format int32
|
|
15
|
+
* @default 1
|
|
16
|
+
*/
|
|
17
|
+
page?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @format int32
|
|
20
|
+
* @default 20
|
|
21
|
+
*/
|
|
22
|
+
size?: number;
|
|
23
|
+
search_term?: string;
|
|
24
|
+
}
|
|
25
|
+
export type ListArtifactLabelsOkResponse = ResponseWithPagination<ListArtifactLabelResponseResponse>;
|
|
26
|
+
export type ListArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
27
|
+
export interface ListArtifactLabelsProps extends ListArtifactLabelsQueryPathParams, Omit<FetcherOptions<ListArtifactLabelsQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: ListArtifactLabelsQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function listArtifactLabels(props: ListArtifactLabelsProps): Promise<ListArtifactLabelsOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List Artifact Labels.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useListArtifactLabelsQuery(props: ListArtifactLabelsProps, options?: Omit<UseQueryOptions<ListArtifactLabelsOkResponse, ListArtifactLabelsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactLabelsOkResponse, 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 listArtifactLabels(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/labels`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Artifact Labels.
|
|
11
|
+
*/
|
|
12
|
+
export function useListArtifactLabelsQuery(props, options) {
|
|
13
|
+
return useQuery(['ListArtifactLabels', props.registry_ref, props.queryParams], ({ signal }) => listArtifactLabels(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactLabelResponseResponse } from '../responses/ArtifactLabelResponseResponse';
|
|
3
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
4
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
5
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
|
+
import type { ArtifactLabelRequestRequestBody } from '../requestBodies/ArtifactLabelRequestRequestBody';
|
|
8
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface UpdateArtifactLabelsMutationPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
artifact: string;
|
|
13
|
+
}
|
|
14
|
+
export type UpdateArtifactLabelsRequestBody = ArtifactLabelRequestRequestBody;
|
|
15
|
+
export type UpdateArtifactLabelsOkResponse = ResponseWithPagination<ArtifactLabelResponseResponse>;
|
|
16
|
+
export type UpdateArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface UpdateArtifactLabelsProps extends UpdateArtifactLabelsMutationPathParams, Omit<FetcherOptions<unknown, UpdateArtifactLabelsRequestBody>, 'url'> {
|
|
18
|
+
body: UpdateArtifactLabelsRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function updateArtifactLabels(props: UpdateArtifactLabelsProps): Promise<UpdateArtifactLabelsOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update Artifact Labels.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useUpdateArtifactLabelsMutation(options?: Omit<UseMutationOptions<UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateArtifactLabelsOkResponse, import("..").Error, UpdateArtifactLabelsProps, 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 updateArtifactLabels(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update Artifact Labels.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateArtifactLabelsMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateArtifactLabels(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -9,6 +9,12 @@ export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArt
|
|
|
9
9
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
10
10
|
export type { GetAllRegistriesErrorResponse, GetAllRegistriesOkResponse, GetAllRegistriesProps, GetAllRegistriesQueryPathParams, GetAllRegistriesQueryQueryParams, } from './hooks/useGetAllRegistriesQuery';
|
|
11
11
|
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
12
|
+
export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
13
|
+
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
14
|
+
export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceProps, GetArtifactStatsForSpaceQueryPathParams, GetArtifactStatsForSpaceQueryQueryParams, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
15
|
+
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
16
|
+
export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArtifactStatsProps, GetArtifactStatsQueryPathParams, GetArtifactStatsQueryQueryParams, } from './hooks/useGetArtifactStatsQuery';
|
|
17
|
+
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
12
18
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
13
19
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
14
20
|
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
@@ -29,9 +35,16 @@ export type { GetHelmArtifactManifestErrorResponse, GetHelmArtifactManifestOkRes
|
|
|
29
35
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
30
36
|
export type { GetRegistryErrorResponse, GetRegistryOkResponse, GetRegistryProps, GetRegistryQueryPathParams, } from './hooks/useGetRegistryQuery';
|
|
31
37
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
38
|
+
export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, ListArtifactLabelsProps, ListArtifactLabelsQueryPathParams, ListArtifactLabelsQueryQueryParams, } from './hooks/useListArtifactLabelsQuery';
|
|
39
|
+
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
32
40
|
export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
|
|
33
41
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
42
|
+
export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
43
|
+
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
44
|
+
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
34
45
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
46
|
+
export type { ArtifactLabelResponseResponse } from './responses/ArtifactLabelResponseResponse';
|
|
47
|
+
export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsResponseResponse';
|
|
35
48
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
36
49
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
37
50
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
@@ -43,6 +56,7 @@ export type { DockerManifestsResponseResponse } from './responses/DockerManifest
|
|
|
43
56
|
export type { HelmArtifactDetailResponseResponse } from './responses/HelmArtifactDetailResponseResponse';
|
|
44
57
|
export type { HelmArtifactManifestResponseResponse } from './responses/HelmArtifactManifestResponseResponse';
|
|
45
58
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
59
|
+
export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
|
|
46
60
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
47
61
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
48
62
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
@@ -52,7 +66,9 @@ export type { SuccessResponse } from './responses/SuccessResponse';
|
|
|
52
66
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
53
67
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
54
68
|
export type { Anonymous } from './schemas/Anonymous';
|
|
69
|
+
export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
|
|
55
70
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
71
|
+
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
56
72
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
57
73
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
58
74
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
@@ -70,8 +86,8 @@ export type { DockerManifests } from './schemas/DockerManifests';
|
|
|
70
86
|
export type { Error } from './schemas/Error';
|
|
71
87
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
72
88
|
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
73
|
-
export type { Label } from './schemas/Label';
|
|
74
89
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
90
|
+
export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
|
|
75
91
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
76
92
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
77
93
|
export type { PackageType } from './schemas/PackageType';
|
|
@@ -3,6 +3,9 @@ export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegi
|
|
|
3
3
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
4
4
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
5
5
|
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
6
|
+
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
7
|
+
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
8
|
+
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
6
9
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
7
10
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
8
11
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
@@ -13,4 +16,6 @@ export { getDockerArtifactManifests, useGetDockerArtifactManifestsQuery, } from
|
|
|
13
16
|
export { getHelmArtifactDetails, useGetHelmArtifactDetailsQuery, } from './hooks/useGetHelmArtifactDetailsQuery';
|
|
14
17
|
export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hooks/useGetHelmArtifactManifestQuery';
|
|
15
18
|
export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
|
|
19
|
+
export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
|
|
16
20
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
21
|
+
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A list of Harness Artifact Labels
|
|
3
|
+
*/
|
|
4
|
+
export interface ListArtifactLabel {
|
|
5
|
+
/**
|
|
6
|
+
* The total number of items
|
|
7
|
+
* @example 1
|
|
8
|
+
*/
|
|
9
|
+
itemCount?: number;
|
|
10
|
+
labels: string[];
|
|
11
|
+
/**
|
|
12
|
+
* The total number of pages
|
|
13
|
+
* @example 100
|
|
14
|
+
*/
|
|
15
|
+
pageCount?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The current page
|
|
18
|
+
* @example 0
|
|
19
|
+
*/
|
|
20
|
+
pageIndex?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The number of items per page
|
|
23
|
+
* @example 1
|
|
24
|
+
*/
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
2
2
|
import type { RegistryConfig } from '../schemas/RegistryConfig';
|
|
3
|
-
import type { Label } from '../schemas/Label';
|
|
4
3
|
import type { PackageType } from '../schemas/PackageType';
|
|
5
4
|
/**
|
|
6
5
|
* Harness Artifact Registry
|
|
@@ -13,7 +12,7 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
|
|
|
13
12
|
createdAt?: string;
|
|
14
13
|
description?: string;
|
|
15
14
|
identifier: string;
|
|
16
|
-
labels?:
|
|
15
|
+
labels?: string[];
|
|
17
16
|
modifiedAt?: string;
|
|
18
17
|
packageType: PackageType;
|
|
19
18
|
url: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Label } from '../schemas/Label';
|
|
2
1
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
2
|
import type { RegistryType } from '../schemas/RegistryType';
|
|
4
3
|
/**
|
|
@@ -9,7 +8,7 @@ export interface RegistryMetadata {
|
|
|
9
8
|
description?: string;
|
|
10
9
|
downloadsCount?: number;
|
|
11
10
|
identifier: string;
|
|
12
|
-
labels?:
|
|
11
|
+
labels?: string[];
|
|
13
12
|
lastModified?: string;
|
|
14
13
|
packageType: PackageType;
|
|
15
14
|
path?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CleanupPolicy } from '../schemas/CleanupPolicy';
|
|
2
2
|
import type { RegistryConfig } from '../schemas/RegistryConfig';
|
|
3
|
-
import type { Label } from '../schemas/Label';
|
|
4
3
|
import type { PackageType } from '../schemas/PackageType';
|
|
5
4
|
export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
|
|
6
5
|
allowedPattern?: string[];
|
|
@@ -9,6 +8,6 @@ export interface RegistryRequest<T0 extends RegistryConfig = RegistryConfig> {
|
|
|
9
8
|
config?: T0;
|
|
10
9
|
description?: string;
|
|
11
10
|
identifier: string;
|
|
12
|
-
labels?:
|
|
11
|
+
labels?: string[];
|
|
13
12
|
packageType: PackageType;
|
|
14
13
|
}
|
package/package.json
CHANGED
|
File without changes
|