@harnessio/react-har-service-client 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +1 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useGetAllRepositoriesQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useGetAllUpstreamProxiesQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useGetArtifactManifestQuery.d.ts +1 -2
- package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.d.ts +26 -0
- package/dist/har-service/src/services/hooks/useGetArtifactTagSummaryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +14 -0
- package/dist/har-service/src/services/index.d.ts +12 -4
- package/dist/har-service/src/services/index.js +2 -1
- package/dist/har-service/src/services/responses/ClientSetupDetailsResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/TagSummaryResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/TagSummaryResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/ClientSetupDetails.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ClientSetupDetails.js +1 -0
- package/dist/har-service/src/services/schemas/ClientSetupSection.d.ts +8 -0
- package/dist/har-service/src/services/schemas/ClientSetupSection.js +1 -0
- package/dist/har-service/src/services/schemas/ClientSetupStep.d.ts +7 -0
- package/dist/har-service/src/services/schemas/LayerEntry.d.ts +7 -0
- package/dist/har-service/src/services/schemas/LayerEntry.js +4 -0
- package/dist/har-service/src/services/schemas/ManifestDetails.d.ts +12 -0
- package/dist/har-service/src/services/schemas/ManifestDetails.js +1 -0
- package/dist/har-service/src/services/schemas/RepositoryMetadata.d.ts +2 -0
- package/dist/har-service/src/services/schemas/TagSummary.d.ts +10 -0
- package/dist/har-service/src/services/schemas/TagSummary.js +1 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactLayerQuery.d.ts +0 -26
- package/dist/har-service/src/services/hooks/useGetArtifactLayerQuery.js +0 -14
- package/dist/har-service/src/services/responses/ArtifactLayersResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/schemas/ArtifactLayers.d.ts +0 -14
- /package/dist/har-service/src/services/responses/{ArtifactLayersResponseResponse.js → ClientSetupDetailsResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ArtifactLayers.js → ClientSetupStep.js} +0 -0
|
@@ -9,11 +9,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
9
9
|
export interface GetAllArtifactsQueryQueryParams {
|
|
10
10
|
org?: string;
|
|
11
11
|
project?: string;
|
|
12
|
-
|
|
12
|
+
packageTypes?: string[];
|
|
13
13
|
repokey?: string;
|
|
14
14
|
page?: number;
|
|
15
15
|
size?: number;
|
|
16
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
|
-
|
|
12
|
+
packageTypes?: string[];
|
|
13
13
|
page?: number;
|
|
14
14
|
size?: number;
|
|
15
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
|
-
|
|
12
|
+
packageTypes?: string[];
|
|
13
13
|
page?: number;
|
|
14
14
|
size?: number;
|
|
15
15
|
sort?: string[];
|
|
16
|
+
searchTerm?: string;
|
|
16
17
|
}
|
|
17
18
|
export interface GetAllUpstreamProxiesQueryHeaderParams {
|
|
18
19
|
'Harness-Account'?: string;
|
|
@@ -8,8 +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
|
-
|
|
12
|
-
version: string;
|
|
11
|
+
digest: string;
|
|
13
12
|
}
|
|
14
13
|
export interface GetArtifactManifestQueryHeaderParams {
|
|
15
14
|
'Harness-Account'?: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
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>;
|
|
@@ -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 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
|
+
}
|
|
@@ -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
|
+
packageType?: 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
|
+
}
|
|
@@ -17,14 +17,16 @@ export type { GetAllUpstreamProxiesErrorResponse, GetAllUpstreamProxiesOkRespons
|
|
|
17
17
|
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
18
18
|
export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryQueryParams, } from './hooks/useGetArtifactDetailsQuery';
|
|
19
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
20
|
export type { GetArtifactManifestErrorResponse, GetArtifactManifestOkResponse, GetArtifactManifestProps, GetArtifactManifestQueryQueryParams, } from './hooks/useGetArtifactManifestQuery';
|
|
23
21
|
export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
|
|
24
22
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryQueryParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
25
23
|
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';
|
|
28
30
|
export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
|
|
29
31
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
30
32
|
export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
|
|
@@ -36,11 +38,11 @@ export { modifyUpstreamProxy, useModifyUpstreamProxyMutation, } from './hooks/us
|
|
|
36
38
|
export type { RepositoryRequestRequestBody } from './requestBodies/RepositoryRequestRequestBody';
|
|
37
39
|
export type { UpstreamProxyRequestRequestBody } from './requestBodies/UpstreamProxyRequestRequestBody';
|
|
38
40
|
export type { ArtifactDetailResponseResponse } from './responses/ArtifactDetailResponseResponse';
|
|
39
|
-
export type { ArtifactLayersResponseResponse } from './responses/ArtifactLayersResponseResponse';
|
|
40
41
|
export type { ArtifactManifestResponseResponse } from './responses/ArtifactManifestResponseResponse';
|
|
41
42
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
42
43
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
43
44
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
45
|
+
export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
|
|
44
46
|
export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
|
|
45
47
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
46
48
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
@@ -49,24 +51,29 @@ export type { ListUpstreamProxyResponseResponse } from './responses/ListUpstream
|
|
|
49
51
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
50
52
|
export type { RepositoryResponseResponse } from './responses/RepositoryResponseResponse';
|
|
51
53
|
export type { SuccessResponse } from './responses/SuccessResponse';
|
|
54
|
+
export type { TagSummaryResponseResponse } from './responses/TagSummaryResponseResponse';
|
|
52
55
|
export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
|
|
53
56
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
54
57
|
export type { UpstreamProxyResponseResponse } from './responses/UpstreamProxyResponseResponse';
|
|
55
58
|
export type { Anonymous } from './schemas/Anonymous';
|
|
56
59
|
export type { ArtifactDetail } from './schemas/ArtifactDetail';
|
|
57
|
-
export type { ArtifactLayers } from './schemas/ArtifactLayers';
|
|
58
60
|
export type { ArtifactManifest } from './schemas/ArtifactManifest';
|
|
59
61
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
60
62
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
61
63
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
62
64
|
export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
|
|
63
65
|
export type { AuthType } from './schemas/AuthType';
|
|
66
|
+
export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
|
|
67
|
+
export type { ClientSetupSection } from './schemas/ClientSetupSection';
|
|
68
|
+
export type { ClientSetupStep } from './schemas/ClientSetupStep';
|
|
64
69
|
export type { Error } from './schemas/Error';
|
|
65
70
|
export type { Label } from './schemas/Label';
|
|
71
|
+
export type { LayerEntry } from './schemas/LayerEntry';
|
|
66
72
|
export type { ListArtifact } from './schemas/ListArtifact';
|
|
67
73
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
68
74
|
export type { ListRepository } from './schemas/ListRepository';
|
|
69
75
|
export type { ListUpstreamProxy } from './schemas/ListUpstreamProxy';
|
|
76
|
+
export type { ManifestDetails } from './schemas/ManifestDetails';
|
|
70
77
|
export type { PackageType } from './schemas/PackageType';
|
|
71
78
|
export type { Repository } from './schemas/Repository';
|
|
72
79
|
export type { RepositoryCleanupPolicy } from './schemas/RepositoryCleanupPolicy';
|
|
@@ -74,6 +81,7 @@ export type { RepositoryConfig } from './schemas/RepositoryConfig';
|
|
|
74
81
|
export type { RepositoryMetadata } from './schemas/RepositoryMetadata';
|
|
75
82
|
export type { RepositoryRequest } from './schemas/RepositoryRequest';
|
|
76
83
|
export type { Status } from './schemas/Status';
|
|
84
|
+
export type { TagSummary } from './schemas/TagSummary';
|
|
77
85
|
export type { Type } from './schemas/Type';
|
|
78
86
|
export type { UpstreamProxy } from './schemas/UpstreamProxy';
|
|
79
87
|
export type { UpstreamProxyConfig } from './schemas/UpstreamProxyConfig';
|
|
@@ -7,10 +7,11 @@ export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtif
|
|
|
7
7
|
export { getAllRepositories, useGetAllRepositoriesQuery } from './hooks/useGetAllRepositoriesQuery';
|
|
8
8
|
export { getAllUpstreamProxies, useGetAllUpstreamProxiesQuery, } from './hooks/useGetAllUpstreamProxiesQuery';
|
|
9
9
|
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
10
|
-
export { getArtifactLayer, useGetArtifactLayerQuery } from './hooks/useGetArtifactLayerQuery';
|
|
11
10
|
export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGetArtifactManifestQuery';
|
|
12
11
|
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';
|
|
14
15
|
export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
|
|
15
16
|
export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
|
|
16
17
|
export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { LayerEntry } from '../schemas/LayerEntry';
|
|
2
|
+
/**
|
|
3
|
+
* Harness Artifact Layers
|
|
4
|
+
*/
|
|
5
|
+
export interface ManifestDetails {
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
digest: string;
|
|
8
|
+
layers: LayerEntry[];
|
|
9
|
+
modifiedAt?: string;
|
|
10
|
+
osArch: string;
|
|
11
|
+
size?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|