@harnessio/react-har-service-client 0.0.4 → 0.0.6

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 (42) hide show
  1. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +2 -1
  2. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +3 -2
  3. package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +3 -2
  4. package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.d.ts +3 -2
  5. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +1 -0
  6. package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.d.ts +1 -1
  7. package/dist/har-service/src/services/hooks/useGetArtifactManifestsQuery.d.ts +26 -0
  8. package/dist/har-service/src/services/hooks/useGetArtifactManifestsQuery.js +14 -0
  9. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +24 -0
  10. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +14 -0
  11. package/dist/har-service/src/services/hooks/useGetLayersQuery.d.ts +26 -0
  12. package/dist/har-service/src/services/hooks/useGetLayersQuery.js +14 -0
  13. package/dist/har-service/src/services/index.d.ts +15 -5
  14. package/dist/har-service/src/services/index.js +3 -1
  15. package/dist/har-service/src/services/responses/ClientSetupDetailsResponseResponse.d.ts +6 -0
  16. package/dist/har-service/src/services/responses/LayersResponseResponse.d.ts +6 -0
  17. package/dist/har-service/src/services/responses/ManifestsResponseResponse.d.ts +6 -0
  18. package/dist/har-service/src/services/responses/ManifestsResponseResponse.js +1 -0
  19. package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +10 -0
  20. package/dist/har-service/src/services/schemas/ClientSetupDetails.d.ts +9 -0
  21. package/dist/har-service/src/services/schemas/ClientSetupDetails.js +1 -0
  22. package/dist/har-service/src/services/schemas/ClientSetupSection.d.ts +8 -0
  23. package/dist/har-service/src/services/schemas/ClientSetupSection.js +1 -0
  24. package/dist/har-service/src/services/schemas/ClientSetupStep.d.ts +7 -0
  25. package/dist/har-service/src/services/schemas/ClientSetupStep.js +4 -0
  26. package/dist/har-service/src/services/schemas/LayersSummary.d.ts +9 -0
  27. package/dist/har-service/src/services/schemas/LayersSummary.js +1 -0
  28. package/dist/har-service/src/services/schemas/ManifestDetails.d.ts +0 -3
  29. package/dist/har-service/src/services/schemas/ManifestDetails.js +3 -0
  30. package/dist/har-service/src/services/schemas/{TagSummary.d.ts → Manifests.d.ts} +2 -2
  31. package/dist/har-service/src/services/schemas/Manifests.js +1 -0
  32. package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +2 -3
  33. package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +2 -0
  34. package/dist/har-service/src/services/schemas/UpstreamProxyConfig.d.ts +2 -0
  35. package/package.json +1 -1
  36. package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.d.ts +0 -26
  37. package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.js +0 -14
  38. package/dist/har-service/src/services/responses/TagSummaryResponseResponse.d.ts +0 -6
  39. package/dist/har-service/src/services/schemas/RepositoryCleanupPolicy.d.ts +0 -8
  40. /package/dist/har-service/src/services/responses/{TagSummaryResponseResponse.js → ClientSetupDetailsResponseResponse.js} +0 -0
  41. /package/dist/har-service/src/services/{schemas/TagSummary.js → responses/LayersResponseResponse.js} +0 -0
  42. /package/dist/har-service/src/services/schemas/{RepositoryCleanupPolicy.js → CleanupPolicy.js} +0 -0
@@ -11,7 +11,8 @@ export interface GetAllArtifactVersionsQueryQueryParams {
11
11
  artifact: string;
12
12
  page?: number;
13
13
  size?: number;
14
- sort?: string[];
14
+ sort?: string;
15
+ searchTerm?: string;
15
16
  }
16
17
  export interface GetAllArtifactVersionsQueryHeaderParams {
17
18
  'Harness-Account'?: string;
@@ -9,11 +9,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllArtifactsQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageType?: string[];
12
+ packageTypes?: string;
13
13
  repokey?: string;
14
14
  page?: number;
15
15
  size?: number;
16
- sort?: string[];
16
+ sort?: string;
17
+ searchTerm?: string;
17
18
  }
18
19
  export interface GetAllArtifactsQueryHeaderParams {
19
20
  'Harness-Account'?: string;
@@ -9,10 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllRepositoriesQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageType?: string[];
12
+ packageTypes?: string;
13
13
  page?: number;
14
14
  size?: number;
15
- sort?: string[];
15
+ sort?: string;
16
+ searchTerm?: string;
16
17
  }
17
18
  export interface GetAllRepositoriesQueryHeaderParams {
18
19
  'Harness-Account'?: string;
@@ -9,10 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllUpstreamProxiesQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageType?: string[];
12
+ packageTypes?: string;
13
13
  page?: number;
14
14
  size?: number;
15
- sort?: string[];
15
+ sort?: string;
16
+ searchTerm?: string;
16
17
  }
17
18
  export interface GetAllUpstreamProxiesQueryHeaderParams {
18
19
  'Harness-Account'?: string;
@@ -10,6 +10,7 @@ export interface GetArtifactDetailsQueryQueryParams {
10
10
  repokey?: string;
11
11
  artifact: string;
12
12
  version: string;
13
+ digest: string;
13
14
  }
14
15
  export interface GetArtifactDetailsQueryHeaderParams {
15
16
  'Harness-Account'?: string;
@@ -9,7 +9,7 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetArtifactManifestQueryQueryParams {
10
10
  repokey?: string;
11
11
  artifact: string;
12
- version: string;
12
+ digest: string;
13
13
  }
14
14
  export interface GetArtifactManifestQueryHeaderParams {
15
15
  'Harness-Account'?: string;
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ManifestsResponseResponse } from '../responses/ManifestsResponseResponse';
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 GetArtifactManifestsQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ version: string;
13
+ }
14
+ export interface GetArtifactManifestsQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetArtifactManifestsOkResponse = ResponseWithPagination<ManifestsResponseResponse>;
18
+ export type GetArtifactManifestsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetArtifactManifestsProps extends Omit<FetcherOptions<GetArtifactManifestsQueryQueryParams, unknown, GetArtifactManifestsQueryHeaderParams>, 'url'> {
20
+ queryParams: GetArtifactManifestsQueryQueryParams;
21
+ }
22
+ export declare function getArtifactManifests(props: GetArtifactManifestsProps): Promise<GetArtifactManifestsOkResponse>;
23
+ /**
24
+ * Get Artifact Manifests
25
+ */
26
+ export declare function useGetArtifactManifestsQuery(props: GetArtifactManifestsProps, options?: Omit<UseQueryOptions<GetArtifactManifestsOkResponse, GetArtifactManifestsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactManifestsOkResponse, 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 getArtifactManifests(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions/manifests`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact Manifests
11
+ */
12
+ export function useGetArtifactManifestsQuery(props, options) {
13
+ return useQuery(['GetArtifactManifests', props.queryParams], ({ signal }) => getArtifactManifests(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ClientSetupDetailsResponseResponse } from '../responses/ClientSetupDetailsResponseResponse';
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 GetClientSetupDetailsQueryQueryParams {
10
+ packageTypes?: string;
11
+ }
12
+ export interface GetClientSetupDetailsQueryHeaderParams {
13
+ 'Harness-Account'?: string;
14
+ }
15
+ export type GetClientSetupDetailsOkResponse = ResponseWithPagination<ClientSetupDetailsResponseResponse>;
16
+ export type GetClientSetupDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface GetClientSetupDetailsProps extends Omit<FetcherOptions<GetClientSetupDetailsQueryQueryParams, unknown, GetClientSetupDetailsQueryHeaderParams>, 'url'> {
18
+ queryParams: GetClientSetupDetailsQueryQueryParams;
19
+ }
20
+ export declare function getClientSetupDetails(props: GetClientSetupDetailsProps): Promise<GetClientSetupDetailsOkResponse>;
21
+ /**
22
+ * Returns CLI Client Setup Details based on package type
23
+ */
24
+ export declare function useGetClientSetupDetailsQuery(props: GetClientSetupDetailsProps, options?: Omit<UseQueryOptions<GetClientSetupDetailsOkResponse, GetClientSetupDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetClientSetupDetailsOkResponse, 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 getClientSetupDetails(props) {
7
+ return fetcher(Object.assign({ url: `/client-setup-details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns CLI Client Setup Details based on package type
11
+ */
12
+ export function useGetClientSetupDetailsQuery(props, options) {
13
+ return useQuery(['GetClientSetupDetails', props.queryParams], ({ signal }) => getClientSetupDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { LayersResponseResponse } from '../responses/LayersResponseResponse';
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 GetLayersQueryQueryParams {
10
+ repokey?: string;
11
+ artifact: string;
12
+ digest: string;
13
+ }
14
+ export interface GetLayersQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetLayersOkResponse = ResponseWithPagination<LayersResponseResponse>;
18
+ export type GetLayersErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetLayersProps extends Omit<FetcherOptions<GetLayersQueryQueryParams, unknown, GetLayersQueryHeaderParams>, 'url'> {
20
+ queryParams: GetLayersQueryQueryParams;
21
+ }
22
+ export declare function getLayers(props: GetLayersProps): Promise<GetLayersOkResponse>;
23
+ /**
24
+ * Get Layers
25
+ */
26
+ export declare function useGetLayersQuery(props: GetLayersProps, options?: Omit<UseQueryOptions<GetLayersOkResponse, GetLayersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetLayersOkResponse, 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 getLayers(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/versions/layers`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Layers
11
+ */
12
+ export function useGetLayersQuery(props, options) {
13
+ return useQuery(['GetLayers', props.queryParams], ({ signal }) => getLayers(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -19,12 +19,16 @@ export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, Get
19
19
  export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
20
20
  export type { GetArtifactManifestErrorResponse, GetArtifactManifestOkResponse, GetArtifactManifestProps, GetArtifactManifestQueryQueryParams, } from './hooks/useGetArtifactManifestQuery';
21
21
  export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
22
+ export type { GetArtifactManifestsErrorResponse, GetArtifactManifestsOkResponse, GetArtifactManifestsProps, GetArtifactManifestsQueryQueryParams, } from './hooks/useGetArtifactManifestsQuery';
23
+ export { getArtifactManifests, useGetArtifactManifestsQuery, } from './hooks/useGetArtifactManifestsQuery';
22
24
  export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
23
25
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
24
- export type { GetArtifactTagSummaryErrorResponse, GetArtifactTagSummaryOkResponse, GetArtifactTagSummaryProps, GetArtifactTagSummaryQueryQueryParams, } from './hooks/useGetArtifactTagSummaryQuery';
25
- export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
26
26
  export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
27
27
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
28
+ export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
29
+ export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
30
+ export type { GetLayersErrorResponse, GetLayersOkResponse, GetLayersProps, GetLayersQueryQueryParams, } from './hooks/useGetLayersQuery';
31
+ export { getLayers, useGetLayersQuery } from './hooks/useGetLayersQuery';
28
32
  export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
29
33
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
30
34
  export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
@@ -40,15 +44,17 @@ export type { ArtifactManifestResponseResponse } from './responses/ArtifactManif
40
44
  export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
41
45
  export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
42
46
  export type { BadRequestResponse } from './responses/BadRequestResponse';
47
+ export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
43
48
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
49
+ export type { LayersResponseResponse } from './responses/LayersResponseResponse';
44
50
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
45
51
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
46
52
  export type { ListRepositoryResponseResponse } from './responses/ListRepositoryResponseResponse';
47
53
  export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstreamProxyResponseResponse';
54
+ export type { ManifestsResponseResponse } from './responses/ManifestsResponseResponse';
48
55
  export type { NotFoundResponse } from './responses/NotFoundResponse';
49
56
  export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
50
57
  export type { SuccessResponse } from './responses/SuccessResponse';
51
- export type { TagSummaryResponseResponse } from './responses/TagSummaryResponseResponse';
52
58
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
53
59
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
54
60
  export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
@@ -60,22 +66,26 @@ export type { ArtifactSummary } from './schemas/ArtifactSummary';
60
66
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
61
67
  export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
62
68
  export type { AuthType } from './schemas/AuthType';
69
+ export type { CleanupPolicy } from './schemas/CleanupPolicy';
70
+ export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
71
+ export type { ClientSetupSection } from './schemas/ClientSetupSection';
72
+ export type { ClientSetupStep } from './schemas/ClientSetupStep';
63
73
  export type { Error } from './schemas/Error';
64
74
  export type { Label } from './schemas/Label';
65
75
  export type { LayerEntry } from './schemas/LayerEntry';
76
+ export type { LayersSummary } from './schemas/LayersSummary';
66
77
  export type { ListArtifact } from './schemas/ListArtifact';
67
78
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
68
79
  export type { ListRepository } from './schemas/ListRepository';
69
80
  export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
70
81
  export type { ManifestDetails } from './schemas/ManifestDetails';
82
+ export type { Manifests } from './schemas/Manifests';
71
83
  export type { PackageType } from './schemas/PackageType';
72
84
  export type { Repository } from './schemas/Repository';
73
- export type { RepositoryCleanupPolicy } from './schemas/RepositoryCleanupPolicy';
74
85
  export type { RepositoryConfig } from './schemas/RepositoryConfig';
75
86
  export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
76
87
  export type { RepositoryRequest } from './schemas/RepositoryRequest';
77
88
  export type { Status } from './schemas/Status';
78
- export type { TagSummary } from './schemas/TagSummary';
79
89
  export type { Type } from './schemas/Type';
80
90
  export type { UpstreamProxy } from './schemas/UpstreamProxy';
81
91
  export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
@@ -8,9 +8,11 @@ export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAl
8
8
  export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
9
9
  export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
10
10
  export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
11
+ export { getArtifactManifests, useGetArtifactManifestsQuery, } from './hooks/useGetArtifactManifestsQuery';
11
12
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
12
- export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
13
13
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
14
+ export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
15
+ export { getLayers, useGetLayersQuery } from './hooks/useGetLayersQuery';
14
16
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
15
17
  export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
16
18
  export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
@@ -0,0 +1,6 @@
1
+ import type { ClientSetupDetails } from '../schemas/ClientSetupDetails';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ClientSetupDetailsResponseResponse {
4
+ data: ClientSetupDetails;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { LayersSummary } from '../schemas/LayersSummary';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface LayersResponseResponse {
4
+ data: LayersSummary;
5
+ status: Status;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { Manifests } from '../schemas/Manifests';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ManifestsResponseResponse {
4
+ data: Manifests;
5
+ status: Status;
6
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Cleanup Policy for Harness Artifact Repositories
3
+ */
4
+ export interface CleanupPolicy {
5
+ expire?: number;
6
+ filePatterns?: {
7
+ [key: string]: string;
8
+ };
9
+ name?: string;
10
+ }
@@ -0,0 +1,9 @@
1
+ import type { ClientSetupSection } from '../schemas/ClientSetupSection';
2
+ /**
3
+ * Client Setup Details
4
+ */
5
+ export interface ClientSetupDetails {
6
+ mainHeader: string;
7
+ secHeader: string;
8
+ sections: ClientSetupSection[];
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { ClientSetupStep } from '../schemas/ClientSetupStep';
2
+ /**
3
+ * Client Setup Section
4
+ */
5
+ export interface ClientSetupSection {
6
+ header?: string;
7
+ steps?: ClientSetupStep[];
8
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Client Setup Step
3
+ */
4
+ export interface ClientSetupStep {
5
+ commands?: string[];
6
+ header?: string;
7
+ }
@@ -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,9 @@
1
+ import type { LayerEntry } from '../schemas/LayerEntry';
2
+ /**
3
+ * Harness Layers Summary
4
+ */
5
+ export interface LayersSummary {
6
+ digest: string;
7
+ layers?: LayerEntry[];
8
+ osArch?: string;
9
+ }
@@ -1,12 +1,9 @@
1
- import type { LayerEntry } from '../schemas/LayerEntry';
2
1
  /**
3
2
  * Harness Artifact Layers
4
3
  */
5
4
  export interface ManifestDetails {
6
5
  createdAt?: string;
7
6
  digest: string;
8
- layers: LayerEntry[];
9
- modifiedAt?: string;
10
7
  osArch: string;
11
8
  size?: string;
12
9
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -1,8 +1,8 @@
1
1
  import type { ManifestDetails } from '../schemas/ManifestDetails';
2
2
  /**
3
- * Harness Tag Summary
3
+ * Harness Manifests
4
4
  */
5
- export interface TagSummary {
5
+ export interface Manifests {
6
6
  imageName: string;
7
7
  isLatestVersion?: boolean;
8
8
  manifests?: ManifestDetails[];
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,8 @@
1
- import type { RepositoryCleanupPolicy } from '../schemas/RepositoryCleanupPolicy';
1
+ import type { CleanupPolicy } from '../schemas/CleanupPolicy';
2
2
  /**
3
3
  * Configuration for Harness Local Artifact Repositories
4
4
  */
5
5
  export interface RepositoryConfig {
6
- cleanupEnabled?: boolean;
7
- cleanupPolicy?: RepositoryCleanupPolicy;
6
+ cleanupPolicy?: CleanupPolicy[];
8
7
  upstreamProxies?: string[];
9
8
  }
@@ -6,6 +6,7 @@ import type { Type } from '../schemas/Type';
6
6
  */
7
7
  export interface RepositoryMetadata {
8
8
  artifactsCount?: number;
9
+ description?: string;
9
10
  downloadsCount?: number;
10
11
  labels?: Label;
11
12
  lastModified?: string;
@@ -14,4 +15,5 @@ export interface RepositoryMetadata {
14
15
  repoSize?: string;
15
16
  type: Type;
16
17
  upstreamProxiesCount?: number;
18
+ url: string;
17
19
  }
@@ -1,10 +1,12 @@
1
1
  import type { UserPassword } from '../schemas/UserPassword';
2
2
  import type { Anonymous } from '../schemas/Anonymous';
3
3
  import type { AuthType } from '../schemas/AuthType';
4
+ import type { CleanupPolicy } from '../schemas/CleanupPolicy';
4
5
  /**
5
6
  * Configuration for Harness Artifact UpstreamProxies
6
7
  */
7
8
  export interface UpstreamProxyConfig {
8
9
  auth?: UserPassword & Anonymous;
9
10
  authType: AuthType;
11
+ cleanupPolicy?: CleanupPolicy[];
10
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,26 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { TagSummaryResponseResponse } from '../responses/TagSummaryResponseResponse';
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 GetArtifactTagSummaryQueryQueryParams {
10
- repokey?: string;
11
- artifact: string;
12
- version: string;
13
- }
14
- export interface GetArtifactTagSummaryQueryHeaderParams {
15
- 'Harness-Account'?: string;
16
- }
17
- export type GetArtifactTagSummaryOkResponse = ResponseWithPagination<TagSummaryResponseResponse>;
18
- export type GetArtifactTagSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
- export interface GetArtifactTagSummaryProps extends Omit<FetcherOptions<GetArtifactTagSummaryQueryQueryParams, unknown, GetArtifactTagSummaryQueryHeaderParams>, 'url'> {
20
- queryParams: GetArtifactTagSummaryQueryQueryParams;
21
- }
22
- export declare function getArtifactTagSummary(props: GetArtifactTagSummaryProps): Promise<GetArtifactTagSummaryOkResponse>;
23
- /**
24
- * Get Artifact Tag Summary
25
- */
26
- export declare function useGetArtifactTagSummaryQuery(props: GetArtifactTagSummaryProps, options?: Omit<UseQueryOptions<GetArtifactTagSummaryOkResponse, GetArtifactTagSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactTagSummaryOkResponse, 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 getArtifactTagSummary(props) {
7
- return fetcher(Object.assign({ url: `/artifacts/versions/tagsummary`, method: 'GET' }, props));
8
- }
9
- /**
10
- * Get Artifact Tag Summary
11
- */
12
- export function useGetArtifactTagSummaryQuery(props, options) {
13
- return useQuery(['GetArtifactTagSummary', props.queryParams], ({ signal }) => getArtifactTagSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
- }
@@ -1,6 +0,0 @@
1
- import type { TagSummary } from '../schemas/TagSummary';
2
- import type { Status } from '../schemas/Status';
3
- export interface TagSummaryResponseResponse {
4
- data: TagSummary;
5
- status: Status;
6
- }
@@ -1,8 +0,0 @@
1
- /**
2
- * Cleanup Policy for Harness Artifact Repositories
3
- */
4
- export interface RepositoryCleanupPolicy {
5
- count?: number;
6
- days?: number;
7
- patterns?: string[];
8
- }