@harnessio/react-har-service-client 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +28 -0
  2. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +14 -0
  3. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +1 -0
  4. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +26 -0
  5. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +14 -0
  6. package/dist/har-service/src/services/hooks/useGetArtifactLayerQuery.d.ts +26 -0
  7. package/dist/har-service/src/services/hooks/useGetArtifactLayerQuery.js +14 -0
  8. package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.d.ts +26 -0
  9. package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.js +14 -0
  10. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +25 -0
  11. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +14 -0
  12. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +26 -0
  13. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +14 -0
  14. package/dist/har-service/src/services/index.d.ts +22 -4
  15. package/dist/har-service/src/services/index.js +6 -2
  16. package/dist/har-service/src/services/responses/ArtifactDetailResponseResponse.d.ts +6 -0
  17. package/dist/har-service/src/services/responses/ArtifactDetailResponseResponse.js +1 -0
  18. package/dist/har-service/src/services/responses/ArtifactLayersResponseResponse.d.ts +6 -0
  19. package/dist/har-service/src/services/responses/ArtifactLayersResponseResponse.js +1 -0
  20. package/dist/har-service/src/services/responses/ArtifactManifestResponseResponse.d.ts +6 -0
  21. package/dist/har-service/src/services/responses/ArtifactManifestResponseResponse.js +1 -0
  22. package/dist/har-service/src/services/responses/ArtifactSummaryResponseResponse.d.ts +6 -0
  23. package/dist/har-service/src/services/responses/ArtifactSummaryResponseResponse.js +1 -0
  24. package/dist/har-service/src/services/responses/ArtifactVersionSummaryResponseResponse.d.ts +6 -0
  25. package/dist/har-service/src/services/responses/ArtifactVersionSummaryResponseResponse.js +1 -0
  26. package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +18 -0
  27. package/dist/har-service/src/services/schemas/ArtifactDetail.js +1 -0
  28. package/dist/har-service/src/services/schemas/ArtifactLayers.d.ts +14 -0
  29. package/dist/har-service/src/services/schemas/ArtifactLayers.js +4 -0
  30. package/dist/har-service/src/services/schemas/ArtifactManifest.d.ts +6 -0
  31. package/dist/har-service/src/services/schemas/ArtifactManifest.js +4 -0
  32. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +2 -0
  33. package/dist/har-service/src/services/schemas/ArtifactMetadata.js +0 -3
  34. package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +12 -0
  35. package/dist/har-service/src/services/schemas/ArtifactSummary.js +1 -0
  36. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +3 -3
  37. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.js +0 -3
  38. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +10 -0
  39. package/dist/har-service/src/services/schemas/ArtifactVersionSummary.js +1 -0
  40. package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +0 -1
  41. package/package.json +1 -1
  42. package/dist/har-service/src/services/hooks/useGetAllArtifactsForRepositoryQuery.d.ts +0 -32
  43. package/dist/har-service/src/services/hooks/useGetAllArtifactsForRepositoryQuery.js +0 -14
  44. package/dist/har-service/src/services/hooks/useGetAllVersionsForArtifactQuery.d.ts +0 -27
  45. package/dist/har-service/src/services/hooks/useGetAllVersionsForArtifactQuery.js +0 -14
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ListArtifactVersionResponseResponse } from '../responses/ListArtifactVersionResponseResponse';
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 GetAllArtifactVersionsQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ page?: number;
13
+ size?: number;
14
+ sort?: string[];
15
+ }
16
+ export interface GetAllArtifactVersionsQueryHeaderParams {
17
+ 'Harness-Account'?: string;
18
+ }
19
+ export type GetAllArtifactVersionsOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
20
+ export type GetAllArtifactVersionsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
21
+ export interface GetAllArtifactVersionsProps extends Omit<FetcherOptions<GetAllArtifactVersionsQueryQueryParams, unknown, GetAllArtifactVersionsQueryHeaderParams>, 'url'> {
22
+ queryParams: GetAllArtifactVersionsQueryQueryParams;
23
+ }
24
+ export declare function getAllArtifactVersions(props: GetAllArtifactVersionsProps): Promise<GetAllArtifactVersionsOkResponse>;
25
+ /**
26
+ * Lists all the Artifact Versions.
27
+ */
28
+ export declare function useGetAllArtifactVersionsQuery(props: GetAllArtifactVersionsProps, options?: Omit<UseQueryOptions<GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactVersionsOkResponse, 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 getAllArtifactVersions(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the Artifact Versions.
11
+ */
12
+ export function useGetAllArtifactVersionsQuery(props, options) {
13
+ return useQuery(['GetAllArtifactVersions', props.queryParams], ({ signal }) => getAllArtifactVersions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -10,6 +10,7 @@ export interface GetAllArtifactsQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
12
  packageType?: string[];
13
+ repokey?: string;
13
14
  page?: number;
14
15
  size?: number;
15
16
  sort?: string[];
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactDetailResponseResponse } from '../responses/ArtifactDetailResponseResponse';
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 GetArtifactDetailsQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ version: string;
13
+ }
14
+ export interface GetArtifactDetailsQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseResponse>;
18
+ export type GetArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetArtifactDetailsProps extends Omit<FetcherOptions<GetArtifactDetailsQueryQueryParams, unknown, GetArtifactDetailsQueryHeaderParams>, 'url'> {
20
+ queryParams: GetArtifactDetailsQueryQueryParams;
21
+ }
22
+ export declare function getArtifactDetails(props: GetArtifactDetailsProps): Promise<GetArtifactDetailsOkResponse>;
23
+ /**
24
+ * Get Artifact Details
25
+ */
26
+ export declare function useGetArtifactDetailsQuery(props: GetArtifactDetailsProps, options?: Omit<UseQueryOptions<GetArtifactDetailsOkResponse, GetArtifactDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailsOkResponse, 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 getArtifactDetails(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions/detail`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact Details
11
+ */
12
+ export function useGetArtifactDetailsQuery(props, options) {
13
+ return useQuery(['GetArtifactDetails', props.queryParams], ({ signal }) => getArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactLayersResponseResponse } from '../responses/ArtifactLayersResponseResponse';
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 GetArtifactLayerQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ version: string;
13
+ }
14
+ export interface GetArtifactLayerQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetArtifactLayerOkResponse = ResponseWithPagination<ArtifactLayersResponseResponse>;
18
+ export type GetArtifactLayerErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetArtifactLayerProps extends Omit<FetcherOptions<GetArtifactLayerQueryQueryParams, unknown, GetArtifactLayerQueryHeaderParams>, 'url'> {
20
+ queryParams: GetArtifactLayerQueryQueryParams;
21
+ }
22
+ export declare function getArtifactLayer(props: GetArtifactLayerProps): Promise<GetArtifactLayerOkResponse>;
23
+ /**
24
+ * Get Artifact Layer
25
+ */
26
+ export declare function useGetArtifactLayerQuery(props: GetArtifactLayerProps, options?: Omit<UseQueryOptions<GetArtifactLayerOkResponse, GetArtifactLayerErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactLayerOkResponse, 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 getArtifactLayer(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions/layers`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact Layer
11
+ */
12
+ export function useGetArtifactLayerQuery(props, options) {
13
+ return useQuery(['GetArtifactLayer', props.queryParams], ({ signal }) => getArtifactLayer(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactManifestResponseResponse } from '../responses/ArtifactManifestResponseResponse';
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 GetArtifactManifestQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ version: string;
13
+ }
14
+ export interface GetArtifactManifestQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetArtifactManifestOkResponse = ResponseWithPagination<ArtifactManifestResponseResponse>;
18
+ export type GetArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetArtifactManifestProps extends Omit<FetcherOptions<GetArtifactManifestQueryQueryParams, unknown, GetArtifactManifestQueryHeaderParams>, 'url'> {
20
+ queryParams: GetArtifactManifestQueryQueryParams;
21
+ }
22
+ export declare function getArtifactManifest(props: GetArtifactManifestProps): Promise<GetArtifactManifestOkResponse>;
23
+ /**
24
+ * Get Artifact Manifest
25
+ */
26
+ export declare function useGetArtifactManifestQuery(props: GetArtifactManifestProps, options?: Omit<UseQueryOptions<GetArtifactManifestOkResponse, GetArtifactManifestErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactManifestOkResponse, 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 getArtifactManifest(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions/manifest`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact Manifest
11
+ */
12
+ export function useGetArtifactManifestQuery(props, options) {
13
+ return useQuery(['GetArtifactManifest', props.queryParams], ({ signal }) => getArtifactManifest(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactSummaryResponseResponse } from '../responses/ArtifactSummaryResponseResponse';
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 GetArtifactSummaryQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ }
13
+ export interface GetArtifactSummaryQueryHeaderParams {
14
+ 'Harness-Account'?: string;
15
+ }
16
+ export type GetArtifactSummaryOkResponse = ResponseWithPagination<ArtifactSummaryResponseResponse>;
17
+ export type GetArtifactSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
18
+ export interface GetArtifactSummaryProps extends Omit<FetcherOptions<GetArtifactSummaryQueryQueryParams, unknown, GetArtifactSummaryQueryHeaderParams>, 'url'> {
19
+ queryParams: GetArtifactSummaryQueryQueryParams;
20
+ }
21
+ export declare function getArtifactSummary(props: GetArtifactSummaryProps): Promise<GetArtifactSummaryOkResponse>;
22
+ /**
23
+ * Get Artifact Summary.
24
+ */
25
+ export declare function useGetArtifactSummaryQuery(props: GetArtifactSummaryProps, options?: Omit<UseQueryOptions<GetArtifactSummaryOkResponse, GetArtifactSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactSummaryOkResponse, 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 getArtifactSummary(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact Summary.
11
+ */
12
+ export function useGetArtifactSummaryQuery(props, options) {
13
+ return useQuery(['GetArtifactSummary', props.queryParams], ({ signal }) => getArtifactSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactVersionSummaryResponseResponse } from '../responses/ArtifactVersionSummaryResponseResponse';
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 GetArtifactVersionSummaryQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ version: string;
13
+ }
14
+ export interface GetArtifactVersionSummaryQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
18
+ export type GetArtifactVersionSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetArtifactVersionSummaryProps extends Omit<FetcherOptions<GetArtifactVersionSummaryQueryQueryParams, unknown, GetArtifactVersionSummaryQueryHeaderParams>, 'url'> {
20
+ queryParams: GetArtifactVersionSummaryQueryQueryParams;
21
+ }
22
+ export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
23
+ /**
24
+ * Get Artifact Version Summary.
25
+ */
26
+ export declare function useGetArtifactVersionSummaryQuery(props: GetArtifactVersionSummaryProps, options?: Omit<UseQueryOptions<GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactVersionSummaryOkResponse, 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 getArtifactVersionSummary(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions/summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact Version Summary.
11
+ */
12
+ export function useGetArtifactVersionSummaryQuery(props, options) {
13
+ return useQuery(['GetArtifactVersionSummary', props.queryParams], ({ signal }) => getArtifactVersionSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,16 +7,24 @@ export type { DeleteRepositoryErrorResponse, DeleteRepositoryMutationPathParams,
7
7
  export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
8
8
  export type { DeleteUpstreamProxyErrorResponse, DeleteUpstreamProxyMutationPathParams, DeleteUpstreamProxyMutationQueryParams, DeleteUpstreamProxyOkResponse, DeleteUpstreamProxyProps, } from './hooks/useDeleteUpstreamProxyMutation';
9
9
  export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
10
- export type { GetAllArtifactsForRepositoryErrorResponse, GetAllArtifactsForRepositoryOkResponse, GetAllArtifactsForRepositoryProps, GetAllArtifactsForRepositoryQueryPathParams, GetAllArtifactsForRepositoryQueryQueryParams, } from './hooks/useGetAllArtifactsForRepositoryQuery';
11
- export { getAllArtifactsForRepository, useGetAllArtifactsForRepositoryQuery, } from './hooks/useGetAllArtifactsForRepositoryQuery';
10
+ export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
11
+ export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
12
12
  export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArtifactsProps, GetAllArtifactsQueryQueryParams, } from './hooks/useGetAllArtifactsQuery';
13
13
  export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
14
14
  export type { GetAllRepositoriesErrorResponse, GetAllRepositoriesOkResponse, GetAllRepositoriesProps, GetAllRepositoriesQueryQueryParams, } from './hooks/useGetAllRepositoriesQuery';
15
15
  export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
16
16
  export type { GetAllUpstreamProxiesErrorResponse, GetAllUpstreamProxiesOkResponse, GetAllUpstreamProxiesProps, GetAllUpstreamProxiesQueryQueryParams, } from './hooks/useGetAllUpstreamProxiesQuery';
17
17
  export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
18
- export type { GetAllVersionsForArtifactErrorResponse, GetAllVersionsForArtifactOkResponse, GetAllVersionsForArtifactProps, GetAllVersionsForArtifactQueryQueryParams, } from './hooks/useGetAllVersionsForArtifactQuery';
19
- export { getAllVersionsForArtifact, useGetAllVersionsForArtifactQuery, } from './hooks/useGetAllVersionsForArtifactQuery';
18
+ export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryQueryParams, } from './hooks/useGetArtifactDetailsQuery';
19
+ export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
20
+ export type { GetArtifactLayerErrorResponse, GetArtifactLayerOkResponse, GetArtifactLayerProps, GetArtifactLayerQueryQueryParams, } from './hooks/useGetArtifactLayerQuery';
21
+ export { getArtifactLayer, useGetArtifactLayerQuery } from './hooks/useGetArtifactLayerQuery';
22
+ export type { GetArtifactManifestErrorResponse, GetArtifactManifestOkResponse, GetArtifactManifestProps, GetArtifactManifestQueryQueryParams, } from './hooks/useGetArtifactManifestQuery';
23
+ export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
24
+ export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
25
+ export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
26
+ export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
27
+ export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
20
28
  export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
21
29
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
22
30
  export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
@@ -27,6 +35,11 @@ export type { ModifyUpstreamProxyErrorResponse, ModifyUpstreamProxyMutationPathP
27
35
  export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/useModifyUpstreamProxyMutation';
28
36
  export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
29
37
  export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
38
+ export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
39
+ export type { ArtifactLayersResponseResponse } from './responses/ArtifactLayersResponseResponse';
40
+ export type { ArtifactManifestResponseResponse } from './responses/ArtifactManifestResponseResponse';
41
+ export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
42
+ export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
30
43
  export type { BadRequestResponse } from './responses/BadRequestResponse';
31
44
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
32
45
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
@@ -40,8 +53,13 @@ export type { UnauthenticatedResponse } from './responses/UnauthenticatedRespons
40
53
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
41
54
  export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
42
55
  export type { Anonymous } from './schemas/Anonymous';
56
+ export type { ArtifactDetail } from './schemas/ArtifactDetail';
57
+ export type { ArtifactLayers } from './schemas/ArtifactLayers';
58
+ export type { ArtifactManifest } from './schemas/ArtifactManifest';
43
59
  export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
60
+ export type { ArtifactSummary } from './schemas/ArtifactSummary';
44
61
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
62
+ export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
45
63
  export type { AuthType } from './schemas/AuthType';
46
64
  export type { Error } from './schemas/Error';
47
65
  export type { Label } from './schemas/Label';
@@ -2,11 +2,15 @@ export { createRepository, useCreateRepositoryMutation } from './hooks/useCreate
2
2
  export { createUpstreamProxy, useCreateUpstreamProxyMutation, } from './hooks/useCreateUpstreamProxyMutation';
3
3
  export { deleteRepository, useDeleteRepositoryMutation } from './hooks/useDeleteRepositoryMutation';
4
4
  export { deleteUpstreamProxy, useDeleteUpstreamProxyMutation, } from './hooks/useDeleteUpstreamProxyMutation';
5
- export { getAllArtifactsForRepository, useGetAllArtifactsForRepositoryQuery, } from './hooks/useGetAllArtifactsForRepositoryQuery';
5
+ export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
6
6
  export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
7
7
  export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
8
8
  export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
9
- export { getAllVersionsForArtifact, useGetAllVersionsForArtifactQuery, } from './hooks/useGetAllVersionsForArtifactQuery';
9
+ export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
10
+ export { getArtifactLayer, useGetArtifactLayerQuery } from './hooks/useGetArtifactLayerQuery';
11
+ export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
12
+ export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
13
+ export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
10
14
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
11
15
  export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
12
16
  export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
@@ -0,0 +1,6 @@
1
+ import type { ArtifactDetail } from '../schemas/ArtifactDetail';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactDetailResponseResponse {
4
+ data: ArtifactDetail;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ArtifactLayers } from '../schemas/ArtifactLayers';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactLayersResponseResponse {
4
+ data: ArtifactLayers;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ArtifactManifest } from '../schemas/ArtifactManifest';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactManifestResponseResponse {
4
+ data: ArtifactManifest;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ArtifactSummary } from '../schemas/ArtifactSummary';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactSummaryResponseResponse {
4
+ data: ArtifactSummary;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ArtifactVersionSummary } from '../schemas/ArtifactVersionSummary';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ArtifactVersionSummaryResponseResponse {
4
+ data: ArtifactVersionSummary;
5
+ status: Status;
6
+ }
@@ -0,0 +1,18 @@
1
+ import type { PackageType } from '../schemas/PackageType';
2
+ /**
3
+ * Harness Artifact Detail
4
+ */
5
+ export interface ArtifactDetail {
6
+ createdAt?: string;
7
+ description?: string;
8
+ downloadsCount?: number;
9
+ imageName: string;
10
+ isLatestVersion?: boolean;
11
+ modifiedAt?: string;
12
+ packageType: PackageType;
13
+ pullCommand?: string;
14
+ repoPath: string;
15
+ size?: string;
16
+ url: string;
17
+ version: string;
18
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Harness Artifact Layers
3
+ */
4
+ export interface ArtifactLayers {
5
+ createdAt?: string;
6
+ digest: string;
7
+ imageName: string;
8
+ isLatestVersion?: boolean;
9
+ layers: string;
10
+ modifiedAt?: string;
11
+ osArch?: string;
12
+ size?: string;
13
+ version: string;
14
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Harness Artifact Manifest
3
+ */
4
+ export interface ArtifactManifest {
5
+ manifest: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { PackageType } from '../schemas/PackageType';
1
2
  /**
2
3
  * Artifact Metadata
3
4
  */
@@ -6,6 +7,7 @@ export interface ArtifactMetadata {
6
7
  lastModified?: string;
7
8
  latestVersion: string;
8
9
  name: string;
10
+ packageType?: PackageType;
9
11
  repoKey: string;
10
12
  tags?: string[];
11
13
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,12 @@
1
+ import type { PackageType } from '../schemas/PackageType';
2
+ /**
3
+ * Harness Artifact Summary
4
+ */
5
+ export interface ArtifactSummary {
6
+ createdAt?: string;
7
+ downloadsCount?: number;
8
+ imageName: string;
9
+ modifiedAt?: string;
10
+ packageType: PackageType;
11
+ tags?: string[];
12
+ }
@@ -1,14 +1,14 @@
1
+ import type { PackageType } from '../schemas/PackageType';
1
2
  /**
2
3
  * Artifact Version Metadata
3
4
  */
4
5
  export interface ArtifactVersionMetadata {
5
6
  digestCount?: number;
6
7
  downloadsCount?: number;
8
+ islatestVersion?: boolean;
7
9
  lastModified?: string;
8
- latestVersion: string;
9
10
  name: string;
11
+ packageType?: PackageType;
10
12
  pullCommand?: string;
11
- repoKey: string;
12
13
  size?: string;
13
- tags?: string[];
14
14
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,10 @@
1
+ import type { PackageType } from '../schemas/PackageType';
2
+ /**
3
+ * Harness Artifact Version Summary
4
+ */
5
+ export interface ArtifactVersionSummary {
6
+ imageName: string;
7
+ isLatestVersion?: boolean;
8
+ packageType: PackageType;
9
+ version: string;
10
+ }
@@ -14,5 +14,4 @@ export interface RepositoryMetadata {
14
14
  repoSize?: string;
15
15
  type: Type;
16
16
  upstreamProxiesCount?: number;
17
- url: string;
18
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,32 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ListArtifactResponseResponse } from '../responses/ListArtifactResponseResponse';
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 GetAllArtifactsForRepositoryQueryPathParams {
10
- repokey: string;
11
- }
12
- export interface GetAllArtifactsForRepositoryQueryQueryParams {
13
- org?: string;
14
- project?: string;
15
- packageType?: string[];
16
- page?: number;
17
- size?: number;
18
- sort?: string[];
19
- }
20
- export interface GetAllArtifactsForRepositoryQueryHeaderParams {
21
- 'Harness-Account'?: string;
22
- }
23
- export type GetAllArtifactsForRepositoryOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
24
- export type GetAllArtifactsForRepositoryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
25
- export interface GetAllArtifactsForRepositoryProps extends GetAllArtifactsForRepositoryQueryPathParams, Omit<FetcherOptions<GetAllArtifactsForRepositoryQueryQueryParams, unknown, GetAllArtifactsForRepositoryQueryHeaderParams>, 'url'> {
26
- queryParams: GetAllArtifactsForRepositoryQueryQueryParams;
27
- }
28
- export declare function getAllArtifactsForRepository(props: GetAllArtifactsForRepositoryProps): Promise<GetAllArtifactsForRepositoryOkResponse>;
29
- /**
30
- * Lists all the Artifacts for Repository.
31
- */
32
- export declare function useGetAllArtifactsForRepositoryQuery(props: GetAllArtifactsForRepositoryProps, options?: Omit<UseQueryOptions<GetAllArtifactsForRepositoryOkResponse, GetAllArtifactsForRepositoryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactsForRepositoryOkResponse, import("..").Error>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getAllArtifactsForRepository(props) {
7
- return fetcher(Object.assign({ url: `/repos/${props.repokey}/artifacts`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists all the Artifacts for Repository.
11
- */
12
- export function useGetAllArtifactsForRepositoryQuery(props, options) {
13
- return useQuery(['GetAllArtifactsForRepository', props.repokey, props.queryParams], ({ signal }) => getAllArtifactsForRepository(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,27 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ListArtifactVersionResponseResponse } from '../responses/ListArtifactVersionResponseResponse';
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 GetAllVersionsForArtifactQueryQueryParams {
10
- repokey: string;
11
- page?: number;
12
- size?: number;
13
- sort?: string[];
14
- }
15
- export interface GetAllVersionsForArtifactQueryHeaderParams {
16
- 'Harness-Account'?: string;
17
- }
18
- export type GetAllVersionsForArtifactOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
19
- export type GetAllVersionsForArtifactErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
20
- export interface GetAllVersionsForArtifactProps extends Omit<FetcherOptions<GetAllVersionsForArtifactQueryQueryParams, unknown, GetAllVersionsForArtifactQueryHeaderParams>, 'url'> {
21
- queryParams: GetAllVersionsForArtifactQueryQueryParams;
22
- }
23
- export declare function getAllVersionsForArtifact(props: GetAllVersionsForArtifactProps): Promise<GetAllVersionsForArtifactOkResponse>;
24
- /**
25
- * Lists all the Versions for Artifact.
26
- */
27
- export declare function useGetAllVersionsForArtifactQuery(props: GetAllVersionsForArtifactProps, options?: Omit<UseQueryOptions<GetAllVersionsForArtifactOkResponse, GetAllVersionsForArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllVersionsForArtifactOkResponse, import("..").Error>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useQuery } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function getAllVersionsForArtifact(props) {
7
- return fetcher(Object.assign({ url: `/artifacts/versions`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Lists all the Versions for Artifact.
11
- */
12
- export function useGetAllVersionsForArtifactQuery(props, options) {
13
- return useQuery(['GetAllVersionsForArtifact', props.queryParams], ({ signal }) => getAllVersionsForArtifact(Object.assign(Object.assign({}, props), { signal })), options);
14
- }