@harnessio/react-har-service-client 0.0.15 → 0.0.16
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/useGetAllArtifactsQuery.d.ts +3 -3
- package/dist/har-service/src/services/hooks/useGetAllRegistryArtifactsQuery.d.ts +38 -0
- package/dist/har-service/src/services/hooks/useGetAllRegistryArtifactsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +5 -1
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +7 -1
- package/dist/har-service/src/services/index.d.ts +7 -1
- package/dist/har-service/src/services/index.js +1 -0
- package/dist/har-service/src/services/responses/ListRegistryArtifactResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListRegistryArtifactResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +9 -2
- package/dist/har-service/src/services/schemas/ArtifactScannedMetadata.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ArtifactScannedMetadata.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +4 -0
- package/dist/har-service/src/services/schemas/DockerManifestDetails.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ListRegistryArtifact.d.ts +33 -0
- package/dist/har-service/src/services/schemas/ListRegistryArtifact.js +1 -0
- package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +17 -0
- package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.js +1 -0
- package/package.json +1 -1
|
@@ -11,9 +11,6 @@ export interface GetAllArtifactsQueryPathParams {
|
|
|
11
11
|
space_ref: string;
|
|
12
12
|
}
|
|
13
13
|
export interface GetAllArtifactsQueryQueryParams {
|
|
14
|
-
label?: string[];
|
|
15
|
-
package_type?: string[];
|
|
16
|
-
reg_identifier?: string;
|
|
17
14
|
/**
|
|
18
15
|
* @format int64
|
|
19
16
|
* @default 1
|
|
@@ -27,6 +24,9 @@ export interface GetAllArtifactsQueryQueryParams {
|
|
|
27
24
|
sort_order?: string;
|
|
28
25
|
sort_field?: string;
|
|
29
26
|
search_term?: string;
|
|
27
|
+
latest_version: boolean;
|
|
28
|
+
reg_identifier?: string;
|
|
29
|
+
deployed_artifact?: boolean;
|
|
30
30
|
}
|
|
31
31
|
export type GetAllArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
|
|
32
32
|
export type GetAllArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListRegistryArtifactResponseResponse } from '../responses/ListRegistryArtifactResponseResponse';
|
|
3
|
+
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
|
+
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
|
+
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
7
|
+
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
8
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
9
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
10
|
+
export interface GetAllRegistryArtifactsQueryPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetAllRegistryArtifactsQueryQueryParams {
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 1
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
sort_order?: string;
|
|
25
|
+
sort_field?: string;
|
|
26
|
+
search_term?: string;
|
|
27
|
+
label?: string[];
|
|
28
|
+
}
|
|
29
|
+
export type GetAllRegistryArtifactsOkResponse = ResponseWithPagination<ListRegistryArtifactResponseResponse>;
|
|
30
|
+
export type GetAllRegistryArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
31
|
+
export interface GetAllRegistryArtifactsProps extends GetAllRegistryArtifactsQueryPathParams, Omit<FetcherOptions<GetAllRegistryArtifactsQueryQueryParams, unknown>, 'url'> {
|
|
32
|
+
queryParams: GetAllRegistryArtifactsQueryQueryParams;
|
|
33
|
+
}
|
|
34
|
+
export declare function getAllRegistryArtifacts(props: GetAllRegistryArtifactsProps): Promise<GetAllRegistryArtifactsOkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Lists all the Artifacts.
|
|
37
|
+
*/
|
|
38
|
+
export declare function useGetAllRegistryArtifactsQuery(props: GetAllRegistryArtifactsProps, options?: Omit<UseQueryOptions<GetAllRegistryArtifactsOkResponse, GetAllRegistryArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllRegistryArtifactsOkResponse, 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 getAllRegistryArtifacts(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifacts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the Artifacts.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllRegistryArtifactsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetAllRegistryArtifacts', props.registry_ref, props.queryParams], ({ signal }) => getAllRegistryArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -12,9 +12,13 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
|
+
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
|
+
digest: string;
|
|
17
|
+
}
|
|
15
18
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
16
19
|
export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
-
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<
|
|
20
|
+
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<GetArtifactVersionSummaryQueryQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: GetArtifactVersionSummaryQueryQueryParams;
|
|
18
22
|
}
|
|
19
23
|
export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
|
|
20
24
|
/**
|
|
@@ -10,5 +10,11 @@ export function getArtifactVersionSummary(props) {
|
|
|
10
10
|
* Get Artifact Version Summary.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactVersionSummaryQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetArtifactVersionSummary',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.artifact,
|
|
17
|
+
props.version,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getArtifactVersionSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
20
|
}
|
|
@@ -15,6 +15,8 @@ export type { GetAllArtifactsErrorResponse, GetAllArtifactsOkResponse, GetAllArt
|
|
|
15
15
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
16
16
|
export type { GetAllRegistriesErrorResponse, GetAllRegistriesOkResponse, GetAllRegistriesProps, GetAllRegistriesQueryPathParams, GetAllRegistriesQueryQueryParams, } from './hooks/useGetAllRegistriesQuery';
|
|
17
17
|
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
18
|
+
export type { GetAllRegistryArtifactsErrorResponse, GetAllRegistryArtifactsOkResponse, GetAllRegistryArtifactsProps, GetAllRegistryArtifactsQueryPathParams, GetAllRegistryArtifactsQueryQueryParams, } from './hooks/useGetAllRegistryArtifactsQuery';
|
|
19
|
+
export { getAllRegistryArtifacts, useGetAllRegistryArtifactsQuery, } from './hooks/useGetAllRegistryArtifactsQuery';
|
|
18
20
|
export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
19
21
|
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
20
22
|
export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceProps, GetArtifactStatsForSpaceQueryPathParams, GetArtifactStatsForSpaceQueryQueryParams, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
@@ -23,7 +25,7 @@ export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArti
|
|
|
23
25
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
24
26
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
25
27
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
26
|
-
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
28
|
+
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
27
29
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
28
30
|
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
|
|
29
31
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
@@ -65,6 +67,7 @@ export type { InternalServerErrorResponse } from './responses/InternalServerErro
|
|
|
65
67
|
export type { ListArtifactLabelResponseResponse } from './responses/ListArtifactLabelResponseResponse';
|
|
66
68
|
export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
|
|
67
69
|
export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
|
|
70
|
+
export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
|
|
68
71
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
69
72
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
70
73
|
export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
|
|
@@ -74,6 +77,7 @@ export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
|
74
77
|
export type { Anonymous } from './schemas/Anonymous';
|
|
75
78
|
export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
|
|
76
79
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
80
|
+
export type { ArtifactScannedMetadata } from './schemas/ArtifactScannedMetadata';
|
|
77
81
|
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
78
82
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
79
83
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
@@ -97,8 +101,10 @@ export type { ListArtifact } from './schemas/ListArtifact';
|
|
|
97
101
|
export type { ListArtifactLabel } from './schemas/ListArtifactLabel';
|
|
98
102
|
export type { ListArtifactVersion } from './schemas/ListArtifactVersion';
|
|
99
103
|
export type { ListRegistry } from './schemas/ListRegistry';
|
|
104
|
+
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
100
105
|
export type { PackageType } from './schemas/PackageType';
|
|
101
106
|
export type { Registry } from './schemas/Registry';
|
|
107
|
+
export type { RegistryArtifactMetadata } from './schemas/RegistryArtifactMetadata';
|
|
102
108
|
export type { RegistryConfig } from './schemas/RegistryConfig';
|
|
103
109
|
export type { RegistryMetadata } from './schemas/RegistryMetadata';
|
|
104
110
|
export type { RegistryRequest } from './schemas/RegistryRequest';
|
|
@@ -6,6 +6,7 @@ export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegi
|
|
|
6
6
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
7
7
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|
|
8
8
|
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
9
|
+
export { getAllRegistryArtifacts, useGetAllRegistryArtifactsQuery, } from './hooks/useGetAllRegistryArtifactsQuery';
|
|
9
10
|
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
10
11
|
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
11
12
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
+
import type { ArtifactScannedMetadata } from '../schemas/ArtifactScannedMetadata';
|
|
2
3
|
/**
|
|
3
4
|
* Artifact Metadata
|
|
4
5
|
*/
|
|
@@ -8,10 +9,16 @@ export interface ArtifactMetadata {
|
|
|
8
9
|
*/
|
|
9
10
|
downloadsCount?: number;
|
|
10
11
|
labels?: string[];
|
|
11
|
-
lastModified?: string;
|
|
12
|
-
latestVersion: string;
|
|
13
12
|
name: string;
|
|
13
|
+
nonProdCount?: number;
|
|
14
14
|
packageType?: PackageType;
|
|
15
|
+
prodCount?: number;
|
|
16
|
+
pullCommand?: string;
|
|
15
17
|
registryIdentifier: string;
|
|
16
18
|
registryPath: string;
|
|
19
|
+
scannedDigests?: ArtifactScannedMetadata[];
|
|
20
|
+
totalDigestCount?: number;
|
|
21
|
+
uploadedAt?: string;
|
|
22
|
+
uploadedBy?: string;
|
|
23
|
+
version?: string;
|
|
17
24
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { RegistryArtifactMetadata } from '../schemas/RegistryArtifactMetadata';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Artifacts
|
|
4
|
+
*/
|
|
5
|
+
export interface ListRegistryArtifact {
|
|
6
|
+
/**
|
|
7
|
+
* A list of Artifact
|
|
8
|
+
*/
|
|
9
|
+
artifacts: RegistryArtifactMetadata[];
|
|
10
|
+
/**
|
|
11
|
+
* The total number of items
|
|
12
|
+
* @format int64
|
|
13
|
+
* @example 1
|
|
14
|
+
*/
|
|
15
|
+
itemCount?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The total number of pages
|
|
18
|
+
* @format int64
|
|
19
|
+
* @example 100
|
|
20
|
+
*/
|
|
21
|
+
pageCount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The current page
|
|
24
|
+
* @format int64
|
|
25
|
+
* @example 0
|
|
26
|
+
*/
|
|
27
|
+
pageIndex?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The number of items per page
|
|
30
|
+
* @example 1
|
|
31
|
+
*/
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
+
/**
|
|
3
|
+
* Artifact Metadata
|
|
4
|
+
*/
|
|
5
|
+
export interface RegistryArtifactMetadata {
|
|
6
|
+
/**
|
|
7
|
+
* @format int64
|
|
8
|
+
*/
|
|
9
|
+
downloadsCount?: number;
|
|
10
|
+
labels?: string[];
|
|
11
|
+
lastModified?: string;
|
|
12
|
+
latestVersion: string;
|
|
13
|
+
name: string;
|
|
14
|
+
packageType?: PackageType;
|
|
15
|
+
registryIdentifier: string;
|
|
16
|
+
registryPath: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|