@harnessio/react-har-service-client 0.0.5 → 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 (32) hide show
  1. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +1 -1
  2. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +2 -2
  3. package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +2 -2
  4. package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.d.ts +2 -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 -0
  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 +1 -1
  10. package/dist/har-service/src/services/hooks/useGetLayersQuery.d.ts +26 -0
  11. package/dist/har-service/src/services/hooks/useGetLayersQuery.js +14 -0
  12. package/dist/har-service/src/services/index.d.ts +9 -5
  13. package/dist/har-service/src/services/index.js +2 -1
  14. package/dist/har-service/src/services/responses/LayersResponseResponse.d.ts +6 -0
  15. package/dist/har-service/src/services/responses/ManifestsResponseResponse.d.ts +6 -0
  16. package/dist/har-service/src/services/schemas/CleanupPolicy.d.ts +10 -0
  17. package/dist/har-service/src/services/schemas/LayersSummary.d.ts +9 -0
  18. package/dist/har-service/src/services/schemas/LayersSummary.js +1 -0
  19. package/dist/har-service/src/services/schemas/ManifestDetails.d.ts +0 -3
  20. package/dist/har-service/src/services/schemas/ManifestDetails.js +3 -0
  21. package/dist/har-service/src/services/schemas/{TagSummary.d.ts → Manifests.d.ts} +2 -2
  22. package/dist/har-service/src/services/schemas/Manifests.js +1 -0
  23. package/dist/har-service/src/services/schemas/RepositoryConfig.d.ts +2 -3
  24. package/dist/har-service/src/services/schemas/UpstreamProxyConfig.d.ts +2 -0
  25. package/package.json +1 -1
  26. package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.d.ts +0 -26
  27. package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.js +0 -14
  28. package/dist/har-service/src/services/responses/TagSummaryResponseResponse.d.ts +0 -6
  29. package/dist/har-service/src/services/schemas/RepositoryCleanupPolicy.d.ts +0 -8
  30. /package/dist/har-service/src/services/responses/{TagSummaryResponseResponse.js → LayersResponseResponse.js} +0 -0
  31. /package/dist/har-service/src/services/{schemas/TagSummary.js → responses/ManifestsResponseResponse.js} +0 -0
  32. /package/dist/har-service/src/services/schemas/{RepositoryCleanupPolicy.js → CleanupPolicy.js} +0 -0
@@ -11,7 +11,7 @@ export interface GetAllArtifactVersionsQueryQueryParams {
11
11
  artifact: string;
12
12
  page?: number;
13
13
  size?: number;
14
- sort?: string[];
14
+ sort?: string;
15
15
  searchTerm?: string;
16
16
  }
17
17
  export interface GetAllArtifactVersionsQueryHeaderParams {
@@ -9,11 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllArtifactsQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageTypes?: string[];
12
+ packageTypes?: string;
13
13
  repokey?: string;
14
14
  page?: number;
15
15
  size?: number;
16
- sort?: string[];
16
+ sort?: string;
17
17
  searchTerm?: string;
18
18
  }
19
19
  export interface GetAllArtifactsQueryHeaderParams {
@@ -9,10 +9,10 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllRepositoriesQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageTypes?: string[];
12
+ packageTypes?: string;
13
13
  page?: number;
14
14
  size?: number;
15
- sort?: string[];
15
+ sort?: string;
16
16
  searchTerm?: string;
17
17
  }
18
18
  export interface GetAllRepositoriesQueryHeaderParams {
@@ -9,10 +9,10 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllUpstreamProxiesQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageTypes?: string[];
12
+ packageTypes?: string;
13
13
  page?: number;
14
14
  size?: number;
15
- sort?: string[];
15
+ sort?: string;
16
16
  searchTerm?: string;
17
17
  }
18
18
  export interface GetAllUpstreamProxiesQueryHeaderParams {
@@ -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;
@@ -8,6 +8,7 @@ import type { ResponseWithPagination } from '../helpers';
8
8
  import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetArtifactManifestQueryQueryParams {
10
10
  repokey?: string;
11
+ artifact: string;
11
12
  digest: string;
12
13
  }
13
14
  export interface GetArtifactManifestQueryHeaderParams {
@@ -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
+ }
@@ -7,7 +7,7 @@ import type { InternalServerErrorResponse } from '../responses/InternalServerErr
7
7
  import type { ResponseWithPagination } from '../helpers';
8
8
  import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetClientSetupDetailsQueryQueryParams {
10
- packageType?: string;
10
+ packageTypes?: string;
11
11
  }
12
12
  export interface GetClientSetupDetailsQueryHeaderParams {
13
13
  'Harness-Account'?: string;
@@ -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,14 +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
28
  export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
29
29
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
30
+ export type { GetLayersErrorResponse, GetLayersOkResponse, GetLayersProps, GetLayersQueryQueryParams, } from './hooks/useGetLayersQuery';
31
+ export { getLayers, useGetLayersQuery } from './hooks/useGetLayersQuery';
30
32
  export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
31
33
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
32
34
  export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
@@ -44,14 +46,15 @@ export type { ArtifactVersionSummaryResponseResponse } from './responses/Artifac
44
46
  export type { BadRequestResponse } from './responses/BadRequestResponse';
45
47
  export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
46
48
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
49
+ export type { LayersResponseResponse } from './responses/LayersResponseResponse';
47
50
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
48
51
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
49
52
  export type { ListRepositoryResponseResponse } from './responses/ListRepositoryResponseResponse';
50
53
  export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstreamProxyResponseResponse';
54
+ export type { ManifestsResponseResponse } from './responses/ManifestsResponseResponse';
51
55
  export type { NotFoundResponse } from './responses/NotFoundResponse';
52
56
  export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
53
57
  export type { SuccessResponse } from './responses/SuccessResponse';
54
- export type { TagSummaryResponseResponse } from './responses/TagSummaryResponseResponse';
55
58
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
56
59
  export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
57
60
  export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
@@ -63,25 +66,26 @@ export type { ArtifactSummary } from './schemas/ArtifactSummary';
63
66
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
64
67
  export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
65
68
  export type { AuthType } from './schemas/AuthType';
69
+ export type { CleanupPolicy } from './schemas/CleanupPolicy';
66
70
  export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
67
71
  export type { ClientSetupSection } from './schemas/ClientSetupSection';
68
72
  export type { ClientSetupStep } from './schemas/ClientSetupStep';
69
73
  export type { Error } from './schemas/Error';
70
74
  export type { Label } from './schemas/Label';
71
75
  export type { LayerEntry } from './schemas/LayerEntry';
76
+ export type { LayersSummary } from './schemas/LayersSummary';
72
77
  export type { ListArtifact } from './schemas/ListArtifact';
73
78
  export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
74
79
  export type { ListRepository } from './schemas/ListRepository';
75
80
  export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
76
81
  export type { ManifestDetails } from './schemas/ManifestDetails';
82
+ export type { Manifests } from './schemas/Manifests';
77
83
  export type { PackageType } from './schemas/PackageType';
78
84
  export type { Repository } from './schemas/Repository';
79
- export type { RepositoryCleanupPolicy } from './schemas/RepositoryCleanupPolicy';
80
85
  export type { RepositoryConfig } from './schemas/RepositoryConfig';
81
86
  export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
82
87
  export type { RepositoryRequest } from './schemas/RepositoryRequest';
83
88
  export type { Status } from './schemas/Status';
84
- export type { TagSummary } from './schemas/TagSummary';
85
89
  export type { Type } from './schemas/Type';
86
90
  export type { UpstreamProxy } from './schemas/UpstreamProxy';
87
91
  export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
@@ -8,10 +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
14
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
15
+ export { getLayers, useGetLayersQuery } from './hooks/useGetLayersQuery';
15
16
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
16
17
  export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
17
18
  export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
@@ -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 { 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
  }
@@ -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.5",
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
- }