@harnessio/react-har-service-client 0.0.19 → 0.0.20
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/fetcher/index.js +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.d.ts +38 -0
- package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetAllHarnessArtifactsQuery.d.ts +40 -0
- package/dist/har-service/src/services/hooks/{useGetAllArtifactsQuery.js → useGetAllHarnessArtifactsQuery.js} +4 -4
- package/dist/har-service/src/services/hooks/useGetArtifactDeploymentsQuery.d.ts +43 -0
- package/dist/har-service/src/services/hooks/{useGetDockerArtifactDeploymentsQuery.js → useGetArtifactDeploymentsQuery.js} +6 -6
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -5
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +1 -7
- package/dist/har-service/src/services/index.d.ts +15 -23
- package/dist/har-service/src/services/index.js +3 -6
- package/dist/har-service/src/services/responses/ArtifactDeploymentsResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/schemas/ArtifactDeploymentsDetail.d.ts +18 -9
- package/dist/har-service/src/services/schemas/ArtifactDeploymentsDetails.d.ts +9 -0
- package/dist/har-service/src/services/schemas/ArtifactDeploymentsList.d.ts +33 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +5 -13
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +0 -3
- package/dist/har-service/src/services/schemas/{DeploymentsDetails.d.ts → DeploymentDetails.d.ts} +1 -1
- package/dist/har-service/src/services/schemas/DeploymentMetadata.d.ts +10 -0
- package/dist/har-service/src/services/schemas/DeploymentStats.d.ts +7 -0
- package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +0 -8
- package/dist/har-service/src/services/schemas/DockerArtifactIntegrationDetail.d.ts +2 -2
- package/dist/har-service/src/services/schemas/EnvironmentType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/StoDigestMetadata.d.ts +6 -0
- package/dist/har-service/src/services/schemas/StoMetadata.d.ts +12 -0
- package/dist/har-service/src/services/schemas/StoMetadata.js +1 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.d.ts +0 -22
- package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +0 -23
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteDockerArtifactManifestMutation.d.ts +0 -27
- package/dist/har-service/src/services/hooks/useDeleteDockerArtifactManifestMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +0 -40
- package/dist/har-service/src/services/hooks/useGetAllRegistryArtifactsQuery.d.ts +0 -38
- package/dist/har-service/src/services/hooks/useGetAllRegistryArtifactsQuery.js +0 -14
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDeploymentsQuery.d.ts +0 -27
- package/dist/har-service/src/services/responses/DockerArtifactDeploymentsResponseResponse.d.ts +0 -6
- package/dist/har-service/src/services/schemas/ArtifactScannedMetadata.d.ts +0 -9
- package/dist/har-service/src/services/schemas/DeploymentArtifactDetails.d.ts +0 -8
- package/dist/har-service/src/services/schemas/DeploymentPipeline.d.ts +0 -8
- package/dist/har-service/src/services/schemas/DeploymentsStats.d.ts +0 -7
- package/dist/har-service/src/services/schemas/DeploymentsStats.js +0 -4
- package/dist/har-service/src/services/schemas/DockerArtifactDeploymentsDetails.d.ts +0 -11
- package/dist/har-service/src/services/schemas/Environment.d.ts +0 -9
- package/dist/har-service/src/services/schemas/Service.d.ts +0 -7
- package/dist/har-service/src/services/schemas/Service.js +0 -4
- package/dist/har-service/src/services/schemas/TriggerDetails.d.ts +0 -7
- package/dist/har-service/src/services/schemas/TriggerDetails.js +0 -4
- /package/dist/har-service/src/services/responses/{DockerArtifactDeploymentsResponseResponse.js → ArtifactDeploymentsResponseResponse.js} +0 -0
- /package/dist/har-service/src/services/schemas/{DockerArtifactDeploymentsDetails.js → ArtifactDeploymentsDetails.js} +0 -0
- /package/dist/har-service/src/services/schemas/{Environment.js → ArtifactDeploymentsList.js} +0 -0
- /package/dist/har-service/src/services/schemas/{ArtifactScannedMetadata.js → DeploymentDetails.js} +0 -0
- /package/dist/har-service/src/services/schemas/{DeploymentArtifactDetails.js → DeploymentMetadata.js} +0 -0
- /package/dist/har-service/src/services/schemas/{DeploymentPipeline.js → DeploymentStats.js} +0 -0
- /package/dist/har-service/src/services/schemas/{DeploymentsDetails.js → StoDigestMetadata.js} +0 -0
package/dist/fetcher/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export function fetcher(options) {
|
|
|
58
58
|
const asJson = contentType && JSON_CONTENT_TYPES.some((h) => contentType.startsWith(h));
|
|
59
59
|
const data = yield (asJson ? response.json() : response.text());
|
|
60
60
|
if (response.ok) {
|
|
61
|
-
return Object.assign({
|
|
61
|
+
return Object.assign({ data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
|
|
62
62
|
}
|
|
63
63
|
throw data;
|
|
64
64
|
});
|
|
@@ -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 GetAllArtifactsByRegistryQueryPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetAllArtifactsByRegistryQueryQueryParams {
|
|
14
|
+
label?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
* @default 1
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @format int64
|
|
22
|
+
* @default 20
|
|
23
|
+
*/
|
|
24
|
+
size?: number;
|
|
25
|
+
sort_order?: string;
|
|
26
|
+
sort_field?: string;
|
|
27
|
+
search_term?: string;
|
|
28
|
+
}
|
|
29
|
+
export type GetAllArtifactsByRegistryOkResponse = ResponseWithPagination<ListRegistryArtifactResponseResponse>;
|
|
30
|
+
export type GetAllArtifactsByRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
31
|
+
export interface GetAllArtifactsByRegistryProps extends GetAllArtifactsByRegistryQueryPathParams, Omit<FetcherOptions<GetAllArtifactsByRegistryQueryQueryParams, unknown>, 'url'> {
|
|
32
|
+
queryParams: GetAllArtifactsByRegistryQueryQueryParams;
|
|
33
|
+
}
|
|
34
|
+
export declare function getAllArtifactsByRegistry(props: GetAllArtifactsByRegistryProps): Promise<GetAllArtifactsByRegistryOkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Lists all the Artifacts for Registry
|
|
37
|
+
*/
|
|
38
|
+
export declare function useGetAllArtifactsByRegistryQuery(props: GetAllArtifactsByRegistryProps, options?: Omit<UseQueryOptions<GetAllArtifactsByRegistryOkResponse, GetAllArtifactsByRegistryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactsByRegistryOkResponse, 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 getAllArtifactsByRegistry(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifacts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the Artifacts for Registry
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllArtifactsByRegistryQuery(props, options) {
|
|
13
|
+
return useQuery(['GetAllArtifactsByRegistry', props.registry_ref, props.queryParams], ({ signal }) => getAllArtifactsByRegistry(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListArtifactResponseResponse } from '../responses/ListArtifactResponseResponse';
|
|
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 GetAllHarnessArtifactsQueryPathParams {
|
|
11
|
+
space_ref: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetAllHarnessArtifactsQueryQueryParams {
|
|
14
|
+
reg_identifier?: string[];
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
* @default 1
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
/**
|
|
21
|
+
* @format int64
|
|
22
|
+
* @default 20
|
|
23
|
+
*/
|
|
24
|
+
size?: number;
|
|
25
|
+
sort_order?: string;
|
|
26
|
+
sort_field?: string;
|
|
27
|
+
search_term?: string;
|
|
28
|
+
latest_version?: boolean;
|
|
29
|
+
deployed_artifact?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export type GetAllHarnessArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
|
|
32
|
+
export type GetAllHarnessArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
33
|
+
export interface GetAllHarnessArtifactsProps extends GetAllHarnessArtifactsQueryPathParams, Omit<FetcherOptions<GetAllHarnessArtifactsQueryQueryParams, unknown>, 'url'> {
|
|
34
|
+
queryParams: GetAllHarnessArtifactsQueryQueryParams;
|
|
35
|
+
}
|
|
36
|
+
export declare function getAllHarnessArtifacts(props: GetAllHarnessArtifactsProps): Promise<GetAllHarnessArtifactsOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Lists all the Harness Artifacts.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useGetAllHarnessArtifactsQuery(props: GetAllHarnessArtifactsProps, options?: Omit<UseQueryOptions<GetAllHarnessArtifactsOkResponse, GetAllHarnessArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllHarnessArtifactsOkResponse, import("..").Error>;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function
|
|
6
|
+
export function getAllHarnessArtifacts(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/artifacts`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Lists all the Artifacts.
|
|
10
|
+
* Lists all the Harness Artifacts.
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return useQuery(['
|
|
12
|
+
export function useGetAllHarnessArtifactsQuery(props, options) {
|
|
13
|
+
return useQuery(['GetAllHarnessArtifacts', props.space_ref, props.queryParams], ({ signal }) => getAllHarnessArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactDeploymentsResponseResponse } from '../responses/ArtifactDeploymentsResponseResponse';
|
|
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 GetArtifactDeploymentsQueryPathParams {
|
|
11
|
+
registry_ref: string;
|
|
12
|
+
artifact: string;
|
|
13
|
+
version: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetArtifactDeploymentsQueryQueryParams {
|
|
16
|
+
/**
|
|
17
|
+
* Environment Type
|
|
18
|
+
*/
|
|
19
|
+
env_type?: 'PreProduction' | 'Production';
|
|
20
|
+
/**
|
|
21
|
+
* @format int64
|
|
22
|
+
* @default 1
|
|
23
|
+
*/
|
|
24
|
+
page?: number;
|
|
25
|
+
/**
|
|
26
|
+
* @format int64
|
|
27
|
+
* @default 20
|
|
28
|
+
*/
|
|
29
|
+
size?: number;
|
|
30
|
+
sort_order?: string;
|
|
31
|
+
sort_field?: string;
|
|
32
|
+
search_term?: string;
|
|
33
|
+
}
|
|
34
|
+
export type GetArtifactDeploymentsOkResponse = ResponseWithPagination<ArtifactDeploymentsResponseResponse>;
|
|
35
|
+
export type GetArtifactDeploymentsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
36
|
+
export interface GetArtifactDeploymentsProps extends GetArtifactDeploymentsQueryPathParams, Omit<FetcherOptions<GetArtifactDeploymentsQueryQueryParams, unknown>, 'url'> {
|
|
37
|
+
queryParams: GetArtifactDeploymentsQueryQueryParams;
|
|
38
|
+
}
|
|
39
|
+
export declare function getArtifactDeployments(props: GetArtifactDeploymentsProps): Promise<GetArtifactDeploymentsOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Get Artifact Deployments
|
|
42
|
+
*/
|
|
43
|
+
export declare function useGetArtifactDeploymentsQuery(props: GetArtifactDeploymentsProps, options?: Omit<UseQueryOptions<GetArtifactDeploymentsOkResponse, GetArtifactDeploymentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDeploymentsOkResponse, import("..").Error>;
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/
|
|
6
|
+
export function getArtifactDeployments(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/deploymentdetails`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get
|
|
10
|
+
* Get Artifact Deployments
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
12
|
+
export function useGetArtifactDeploymentsQuery(props, options) {
|
|
13
13
|
return useQuery([
|
|
14
|
-
'
|
|
14
|
+
'GetArtifactDeployments',
|
|
15
15
|
props.registry_ref,
|
|
16
16
|
props.artifact,
|
|
17
17
|
props.version,
|
|
18
18
|
props.queryParams,
|
|
19
|
-
], ({ signal }) =>
|
|
19
|
+
], ({ signal }) => getArtifactDeployments(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
20
|
}
|
|
@@ -12,13 +12,9 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
|
-
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
|
-
digest: string;
|
|
17
|
-
}
|
|
18
15
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
19
16
|
export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
-
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<
|
|
21
|
-
queryParams: GetArtifactVersionSummaryQueryQueryParams;
|
|
17
|
+
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
22
18
|
}
|
|
23
19
|
export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
|
|
24
20
|
/**
|
|
@@ -10,11 +10,5 @@ export function getArtifactVersionSummary(props) {
|
|
|
10
10
|
* Get Artifact Version Summary.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactVersionSummaryQuery(props, options) {
|
|
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);
|
|
13
|
+
return useQuery(['GetArtifactVersionSummary', props.registry_ref, props.artifact, props.version], ({ signal }) => getArtifactVersionSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
14
|
}
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
|
|
3
3
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
4
|
-
export type { DeleteArtifactErrorResponse, DeleteArtifactMutationPathParams, DeleteArtifactOkResponse, DeleteArtifactProps, } from './hooks/useDeleteArtifactMutation';
|
|
5
|
-
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
6
|
-
export type { DeleteArtifactVersionErrorResponse, DeleteArtifactVersionMutationPathParams, DeleteArtifactVersionOkResponse, DeleteArtifactVersionProps, } from './hooks/useDeleteArtifactVersionMutation';
|
|
7
|
-
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
8
|
-
export type { DeleteDockerArtifactManifestErrorResponse, DeleteDockerArtifactManifestMutationPathParams, DeleteDockerArtifactManifestMutationQueryParams, DeleteDockerArtifactManifestOkResponse, DeleteDockerArtifactManifestProps, } from './hooks/useDeleteDockerArtifactManifestMutation';
|
|
9
|
-
export { deleteDockerArtifactManifest, useDeleteDockerArtifactManifestMutation, } from './hooks/useDeleteDockerArtifactManifestMutation';
|
|
10
4
|
export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
|
|
11
5
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
12
6
|
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
13
7
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
14
|
-
export type {
|
|
15
|
-
export {
|
|
8
|
+
export type { GetAllArtifactsByRegistryErrorResponse, GetAllArtifactsByRegistryOkResponse, GetAllArtifactsByRegistryProps, GetAllArtifactsByRegistryQueryPathParams, GetAllArtifactsByRegistryQueryQueryParams, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
9
|
+
export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
10
|
+
export type { GetAllHarnessArtifactsErrorResponse, GetAllHarnessArtifactsOkResponse, GetAllHarnessArtifactsProps, GetAllHarnessArtifactsQueryPathParams, GetAllHarnessArtifactsQueryQueryParams, } from './hooks/useGetAllHarnessArtifactsQuery';
|
|
11
|
+
export { getAllHarnessArtifacts, useGetAllHarnessArtifactsQuery, } from './hooks/useGetAllHarnessArtifactsQuery';
|
|
16
12
|
export type { GetAllRegistriesErrorResponse, GetAllRegistriesOkResponse, GetAllRegistriesProps, GetAllRegistriesQueryPathParams, GetAllRegistriesQueryQueryParams, } from './hooks/useGetAllRegistriesQuery';
|
|
17
13
|
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
18
|
-
export type {
|
|
19
|
-
export {
|
|
14
|
+
export type { GetArtifactDeploymentsErrorResponse, GetArtifactDeploymentsOkResponse, GetArtifactDeploymentsProps, GetArtifactDeploymentsQueryPathParams, GetArtifactDeploymentsQueryQueryParams, } from './hooks/useGetArtifactDeploymentsQuery';
|
|
15
|
+
export { getArtifactDeployments, useGetArtifactDeploymentsQuery, } from './hooks/useGetArtifactDeploymentsQuery';
|
|
20
16
|
export type { GetArtifactStatsForRegistryErrorResponse, GetArtifactStatsForRegistryOkResponse, GetArtifactStatsForRegistryProps, GetArtifactStatsForRegistryQueryPathParams, GetArtifactStatsForRegistryQueryQueryParams, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
21
17
|
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
22
18
|
export type { GetArtifactStatsForSpaceErrorResponse, GetArtifactStatsForSpaceOkResponse, GetArtifactStatsForSpaceProps, GetArtifactStatsForSpaceQueryPathParams, GetArtifactStatsForSpaceQueryQueryParams, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
@@ -25,12 +21,10 @@ export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArti
|
|
|
25
21
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
26
22
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
27
23
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
28
|
-
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams,
|
|
24
|
+
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
29
25
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
30
26
|
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
|
|
31
27
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
32
|
-
export type { GetDockerArtifactDeploymentsErrorResponse, GetDockerArtifactDeploymentsOkResponse, GetDockerArtifactDeploymentsProps, GetDockerArtifactDeploymentsQueryPathParams, GetDockerArtifactDeploymentsQueryQueryParams, } from './hooks/useGetDockerArtifactDeploymentsQuery';
|
|
33
|
-
export { getDockerArtifactDeployments, useGetDockerArtifactDeploymentsQuery, } from './hooks/useGetDockerArtifactDeploymentsQuery';
|
|
34
28
|
export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
35
29
|
export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
36
30
|
export type { GetDockerArtifactIntegrationDetailsErrorResponse, GetDockerArtifactIntegrationDetailsOkResponse, GetDockerArtifactIntegrationDetailsProps, GetDockerArtifactIntegrationDetailsQueryPathParams, GetDockerArtifactIntegrationDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
|
|
@@ -55,13 +49,13 @@ export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPat
|
|
|
55
49
|
export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
|
|
56
50
|
export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
|
|
57
51
|
export type { RegistryRequestRequestBody } from './requestBodies/RegistryRequestRequestBody';
|
|
52
|
+
export type { ArtifactDeploymentsResponseResponse } from './responses/ArtifactDeploymentsResponseResponse';
|
|
58
53
|
export type { ArtifactLabelResponseResponse } from './responses/ArtifactLabelResponseResponse';
|
|
59
54
|
export type { ArtifactStatsResponseResponse } from './responses/ArtifactStatsResponseResponse';
|
|
60
55
|
export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
|
|
61
56
|
export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
|
|
62
57
|
export type { BadRequestResponse } from './responses/BadRequestResponse';
|
|
63
58
|
export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
|
|
64
|
-
export type { DockerArtifactDeploymentsResponseResponse } from './responses/DockerArtifactDeploymentsResponseResponse';
|
|
65
59
|
export type { DockerArtifactDetailIntegrationResponseResponse } from './responses/DockerArtifactDetailIntegrationResponseResponse';
|
|
66
60
|
export type { DockerArtifactDetailResponseResponse } from './responses/DockerArtifactDetailResponseResponse';
|
|
67
61
|
export type { DockerArtifactManifestResponseResponse } from './responses/DockerArtifactManifestResponseResponse';
|
|
@@ -82,9 +76,10 @@ export type { UnauthenticatedResponse } from './responses/UnauthenticatedRespons
|
|
|
82
76
|
export type { UnauthorizedResponse } from './responses/UnauthorizedResponse';
|
|
83
77
|
export type { Anonymous } from './schemas/Anonymous';
|
|
84
78
|
export type { ArtifactDeploymentsDetail } from './schemas/ArtifactDeploymentsDetail';
|
|
79
|
+
export type { ArtifactDeploymentsDetails } from './schemas/ArtifactDeploymentsDetails';
|
|
80
|
+
export type { ArtifactDeploymentsList } from './schemas/ArtifactDeploymentsList';
|
|
85
81
|
export type { ArtifactLabelRequest } from './schemas/ArtifactLabelRequest';
|
|
86
82
|
export type { ArtifactMetadata } from './schemas/ArtifactMetadata';
|
|
87
|
-
export type { ArtifactScannedMetadata } from './schemas/ArtifactScannedMetadata';
|
|
88
83
|
export type { ArtifactStats } from './schemas/ArtifactStats';
|
|
89
84
|
export type { ArtifactSummary } from './schemas/ArtifactSummary';
|
|
90
85
|
export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
|
|
@@ -96,11 +91,9 @@ export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
|
|
|
96
91
|
export type { ClientSetupSection } from './schemas/ClientSetupSection';
|
|
97
92
|
export type { ClientSetupStep } from './schemas/ClientSetupStep';
|
|
98
93
|
export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
|
|
99
|
-
export type {
|
|
100
|
-
export type {
|
|
101
|
-
export type {
|
|
102
|
-
export type { DeploymentsStats } from './schemas/DeploymentsStats';
|
|
103
|
-
export type { DockerArtifactDeploymentsDetails } from './schemas/DockerArtifactDeploymentsDetails';
|
|
94
|
+
export type { DeploymentDetails } from './schemas/DeploymentDetails';
|
|
95
|
+
export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
|
|
96
|
+
export type { DeploymentStats } from './schemas/DeploymentStats';
|
|
104
97
|
export type { DockerArtifactDetail } from './schemas/DockerArtifactDetail';
|
|
105
98
|
export type { DockerArtifactIntegrationDetail } from './schemas/DockerArtifactIntegrationDetail';
|
|
106
99
|
export type { DockerArtifactManifest } from './schemas/DockerArtifactManifest';
|
|
@@ -108,7 +101,6 @@ export type { DockerLayerEntry } from './schemas/DockerLayerEntry';
|
|
|
108
101
|
export type { DockerLayersSummary } from './schemas/DockerLayersSummary';
|
|
109
102
|
export type { DockerManifestDetails } from './schemas/DockerManifestDetails';
|
|
110
103
|
export type { DockerManifests } from './schemas/DockerManifests';
|
|
111
|
-
export type { Environment } from './schemas/Environment';
|
|
112
104
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
113
105
|
export type { Error } from './schemas/Error';
|
|
114
106
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
@@ -126,10 +118,10 @@ export type { RegistryMetadata } from './schemas/RegistryMetadata';
|
|
|
126
118
|
export type { RegistryRequest } from './schemas/RegistryRequest';
|
|
127
119
|
export type { RegistryType } from './schemas/RegistryType';
|
|
128
120
|
export type { SbomDetails } from './schemas/SbomDetails';
|
|
129
|
-
export type { Service } from './schemas/Service';
|
|
130
121
|
export type { Status } from './schemas/Status';
|
|
131
122
|
export type { StoDetails } from './schemas/StoDetails';
|
|
132
|
-
export type {
|
|
123
|
+
export type { StoDigestMetadata } from './schemas/StoDigestMetadata';
|
|
124
|
+
export type { StoMetadata } from './schemas/StoMetadata';
|
|
133
125
|
export type { UpstreamConfig } from './schemas/UpstreamConfig';
|
|
134
126
|
export type { UserPassword } from './schemas/UserPassword';
|
|
135
127
|
export type { VirtualConfig } from './schemas/VirtualConfig';
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
2
|
-
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
3
|
-
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
4
|
-
export { deleteDockerArtifactManifest, useDeleteDockerArtifactManifestMutation, } from './hooks/useDeleteDockerArtifactManifestMutation';
|
|
5
2
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
6
3
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
7
|
-
export {
|
|
4
|
+
export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
5
|
+
export { getAllHarnessArtifacts, useGetAllHarnessArtifactsQuery, } from './hooks/useGetAllHarnessArtifactsQuery';
|
|
8
6
|
export { getAllRegistries, useGetAllRegistriesQuery } from './hooks/useGetAllRegistriesQuery';
|
|
9
|
-
export {
|
|
7
|
+
export { getArtifactDeployments, useGetArtifactDeploymentsQuery, } from './hooks/useGetArtifactDeploymentsQuery';
|
|
10
8
|
export { getArtifactStatsForRegistry, useGetArtifactStatsForRegistryQuery, } from './hooks/useGetArtifactStatsForRegistryQuery';
|
|
11
9
|
export { getArtifactStatsForSpace, useGetArtifactStatsForSpaceQuery, } from './hooks/useGetArtifactStatsForSpaceQuery';
|
|
12
10
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
13
11
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
14
12
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
15
13
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
16
|
-
export { getDockerArtifactDeployments, useGetDockerArtifactDeploymentsQuery, } from './hooks/useGetDockerArtifactDeploymentsQuery';
|
|
17
14
|
export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
|
|
18
15
|
export { getDockerArtifactIntegrationDetails, useGetDockerArtifactIntegrationDetailsQuery, } from './hooks/useGetDockerArtifactIntegrationDetailsQuery';
|
|
19
16
|
export { getDockerArtifactLayers, useGetDockerArtifactLayersQuery, } from './hooks/useGetDockerArtifactLayersQuery';
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Environment } from '../schemas/Environment';
|
|
3
|
-
import type { Service } from '../schemas/Service';
|
|
4
|
-
import type { TriggerDetails } from '../schemas/TriggerDetails';
|
|
1
|
+
import type { EnvironmentType } from '../schemas/EnvironmentType';
|
|
5
2
|
/**
|
|
6
|
-
* Artifact
|
|
3
|
+
* Artifact deployments Detail
|
|
7
4
|
*/
|
|
8
5
|
export interface ArtifactDeploymentsDetail {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
count?: number;
|
|
7
|
+
envIdentifier?: string;
|
|
8
|
+
envName?: string;
|
|
9
|
+
envType?: EnvironmentType;
|
|
10
|
+
infraIdentifier?: string;
|
|
11
|
+
infraName?: string;
|
|
12
|
+
lastDeployedAt?: string;
|
|
13
|
+
lastDeployedById?: string;
|
|
14
|
+
lastDeployedByName?: string;
|
|
15
|
+
lastPipelineExecutionId?: string;
|
|
16
|
+
lastPipelineExecutionName?: string;
|
|
17
|
+
orgIdentifier?: string;
|
|
18
|
+
pipelineId?: string;
|
|
19
|
+
projectIdentifier?: string;
|
|
20
|
+
serviceIdentifier?: string;
|
|
21
|
+
serviceName?: string;
|
|
13
22
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ArtifactDeploymentsList } from '../schemas/ArtifactDeploymentsList';
|
|
2
|
+
import type { DeploymentStats } from '../schemas/DeploymentStats';
|
|
3
|
+
/**
|
|
4
|
+
* Docker Artifact deployments Details
|
|
5
|
+
*/
|
|
6
|
+
export interface ArtifactDeploymentsDetails {
|
|
7
|
+
deployments: ArtifactDeploymentsList;
|
|
8
|
+
deploymentsStats?: DeploymentStats;
|
|
9
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ArtifactDeploymentsDetail } from '../schemas/ArtifactDeploymentsDetail';
|
|
2
|
+
/**
|
|
3
|
+
* A list of Artifact Deployments
|
|
4
|
+
*/
|
|
5
|
+
export interface ArtifactDeploymentsList {
|
|
6
|
+
/**
|
|
7
|
+
* A list of Artifact
|
|
8
|
+
*/
|
|
9
|
+
deployments?: ArtifactDeploymentsDetail[];
|
|
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
|
+
}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
+
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
1
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
|
-
import type {
|
|
3
|
+
import type { StoMetadata } from '../schemas/StoMetadata';
|
|
3
4
|
/**
|
|
4
5
|
* Artifact Metadata
|
|
5
6
|
*/
|
|
6
7
|
export interface ArtifactMetadata {
|
|
8
|
+
deploymentMetadata?: DeploymentMetadata;
|
|
7
9
|
/**
|
|
8
10
|
* @format int64
|
|
9
11
|
*/
|
|
10
12
|
downloadsCount?: number;
|
|
11
13
|
labels?: string[];
|
|
14
|
+
lastModified?: string;
|
|
12
15
|
name: string;
|
|
13
|
-
/**
|
|
14
|
-
* @format int64
|
|
15
|
-
*/
|
|
16
|
-
nonProdDeployCount?: number;
|
|
17
16
|
packageType?: PackageType;
|
|
18
|
-
/**
|
|
19
|
-
* @format int64
|
|
20
|
-
*/
|
|
21
|
-
prodDeployCount?: number;
|
|
22
17
|
pullCommand?: string;
|
|
23
18
|
registryIdentifier: string;
|
|
24
19
|
registryPath: string;
|
|
25
|
-
|
|
26
|
-
totalDigestCount?: number;
|
|
27
|
-
uploadedAt?: string;
|
|
28
|
-
uploadedBy?: string;
|
|
20
|
+
stoMetadata?: StoMetadata;
|
|
29
21
|
version?: string;
|
|
30
22
|
}
|
|
@@ -11,15 +11,7 @@ export interface DockerArtifactDetail {
|
|
|
11
11
|
imageName: string;
|
|
12
12
|
isLatestVersion?: boolean;
|
|
13
13
|
modifiedAt?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @format int64
|
|
16
|
-
*/
|
|
17
|
-
nonProdDeployCount?: number;
|
|
18
14
|
packageType: PackageType;
|
|
19
|
-
/**
|
|
20
|
-
* @format int64
|
|
21
|
-
*/
|
|
22
|
-
prodDeployCount?: number;
|
|
23
15
|
pullCommand?: string;
|
|
24
16
|
registryPath: string;
|
|
25
17
|
size?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BuildDetails } from '../schemas/BuildDetails';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DeploymentDetails } from '../schemas/DeploymentDetails';
|
|
3
3
|
import type { SbomDetails } from '../schemas/SbomDetails';
|
|
4
4
|
import type { StoDetails } from '../schemas/StoDetails';
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ import type { StoDetails } from '../schemas/StoDetails';
|
|
|
7
7
|
*/
|
|
8
8
|
export interface DockerArtifactIntegrationDetail {
|
|
9
9
|
buildDetails?: BuildDetails;
|
|
10
|
-
deploymentsDetails?:
|
|
10
|
+
deploymentsDetails?: DeploymentDetails;
|
|
11
11
|
sbomDetails?: SbomDetails;
|
|
12
12
|
stoDetails?: StoDetails;
|
|
13
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 DeleteArtifactMutationPathParams {
|
|
11
|
-
registry_ref: string;
|
|
12
|
-
artifact: string;
|
|
13
|
-
}
|
|
14
|
-
export type DeleteArtifactOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
15
|
-
export type DeleteArtifactErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
16
|
-
export interface DeleteArtifactProps extends DeleteArtifactMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
17
|
-
}
|
|
18
|
-
export declare function deleteArtifact(props: DeleteArtifactProps): Promise<DeleteArtifactOkResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Delete Artifact.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useDeleteArtifactMutation(options?: Omit<UseMutationOptions<DeleteArtifactOkResponse, DeleteArtifactErrorResponse, DeleteArtifactProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteArtifactOkResponse, import("..").Error, DeleteArtifactProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function deleteArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete Artifact.
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteArtifactMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteArtifact(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 DeleteArtifactVersionMutationPathParams {
|
|
11
|
-
registry_ref: string;
|
|
12
|
-
artifact: string;
|
|
13
|
-
version: string;
|
|
14
|
-
}
|
|
15
|
-
export type DeleteArtifactVersionOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
16
|
-
export type DeleteArtifactVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
-
export interface DeleteArtifactVersionProps extends DeleteArtifactVersionMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
18
|
-
}
|
|
19
|
-
export declare function deleteArtifactVersion(props: DeleteArtifactVersionProps): Promise<DeleteArtifactVersionOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Delete Artifact Version.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useDeleteArtifactVersionMutation(options?: Omit<UseMutationOptions<DeleteArtifactVersionOkResponse, DeleteArtifactVersionErrorResponse, DeleteArtifactVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteArtifactVersionOkResponse, import("..").Error, DeleteArtifactVersionProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function deleteArtifactVersion(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete Artifact Version.
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteArtifactVersionMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteArtifactVersion(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { SuccessResponse } from '../responses/SuccessResponse';
|
|
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 DeleteDockerArtifactManifestMutationPathParams {
|
|
11
|
-
registry_ref: string;
|
|
12
|
-
artifact: string;
|
|
13
|
-
version: string;
|
|
14
|
-
}
|
|
15
|
-
export interface DeleteDockerArtifactManifestMutationQueryParams {
|
|
16
|
-
digest: string;
|
|
17
|
-
}
|
|
18
|
-
export type DeleteDockerArtifactManifestOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
19
|
-
export type DeleteDockerArtifactManifestErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
-
export interface DeleteDockerArtifactManifestProps extends DeleteDockerArtifactManifestMutationPathParams, Omit<FetcherOptions<DeleteDockerArtifactManifestMutationQueryParams, unknown>, 'url'> {
|
|
21
|
-
queryParams: DeleteDockerArtifactManifestMutationQueryParams;
|
|
22
|
-
}
|
|
23
|
-
export declare function deleteDockerArtifactManifest(props: DeleteDockerArtifactManifestProps): Promise<DeleteDockerArtifactManifestOkResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete Docker Artifact Manifest
|
|
26
|
-
*/
|
|
27
|
-
export declare function useDeleteDockerArtifactManifestMutation(options?: Omit<UseMutationOptions<DeleteDockerArtifactManifestOkResponse, DeleteDockerArtifactManifestErrorResponse, DeleteDockerArtifactManifestProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteDockerArtifactManifestOkResponse, import("..").Error, DeleteDockerArtifactManifestProps, unknown>;
|
|
@@ -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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function deleteDockerArtifactManifest(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/docker/manifest`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete Docker Artifact Manifest
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteDockerArtifactManifestMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteDockerArtifactManifest(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ListArtifactResponseResponse } from '../responses/ListArtifactResponseResponse';
|
|
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 GetAllArtifactsQueryPathParams {
|
|
11
|
-
space_ref: string;
|
|
12
|
-
}
|
|
13
|
-
export interface GetAllArtifactsQueryQueryParams {
|
|
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
|
-
latest_version: boolean;
|
|
28
|
-
reg_identifier?: string;
|
|
29
|
-
deployed_artifact?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export type GetAllArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
|
|
32
|
-
export type GetAllArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
33
|
-
export interface GetAllArtifactsProps extends GetAllArtifactsQueryPathParams, Omit<FetcherOptions<GetAllArtifactsQueryQueryParams, unknown>, 'url'> {
|
|
34
|
-
queryParams: GetAllArtifactsQueryQueryParams;
|
|
35
|
-
}
|
|
36
|
-
export declare function getAllArtifacts(props: GetAllArtifactsProps): Promise<GetAllArtifactsOkResponse>;
|
|
37
|
-
/**
|
|
38
|
-
* Lists all the Artifacts.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useGetAllArtifactsQuery(props: GetAllArtifactsProps, options?: Omit<UseQueryOptions<GetAllArtifactsOkResponse, GetAllArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllArtifactsOkResponse, import("..").Error>;
|
|
@@ -1,38 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { DockerArtifactDeploymentsResponseResponse } from '../responses/DockerArtifactDeploymentsResponseResponse';
|
|
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 GetDockerArtifactDeploymentsQueryPathParams {
|
|
11
|
-
registry_ref: string;
|
|
12
|
-
artifact: string;
|
|
13
|
-
version: string;
|
|
14
|
-
}
|
|
15
|
-
export interface GetDockerArtifactDeploymentsQueryQueryParams {
|
|
16
|
-
digest: string;
|
|
17
|
-
}
|
|
18
|
-
export type GetDockerArtifactDeploymentsOkResponse = ResponseWithPagination<DockerArtifactDeploymentsResponseResponse>;
|
|
19
|
-
export type GetDockerArtifactDeploymentsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
20
|
-
export interface GetDockerArtifactDeploymentsProps extends GetDockerArtifactDeploymentsQueryPathParams, Omit<FetcherOptions<GetDockerArtifactDeploymentsQueryQueryParams, unknown>, 'url'> {
|
|
21
|
-
queryParams: GetDockerArtifactDeploymentsQueryQueryParams;
|
|
22
|
-
}
|
|
23
|
-
export declare function getDockerArtifactDeployments(props: GetDockerArtifactDeploymentsProps): Promise<GetDockerArtifactDeploymentsOkResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Get Docker Artifact Deployments
|
|
26
|
-
*/
|
|
27
|
-
export declare function useGetDockerArtifactDeploymentsQuery(props: GetDockerArtifactDeploymentsProps, options?: Omit<UseQueryOptions<GetDockerArtifactDeploymentsOkResponse, GetDockerArtifactDeploymentsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDockerArtifactDeploymentsOkResponse, import("..").Error>;
|
package/dist/har-service/src/services/responses/DockerArtifactDeploymentsResponseResponse.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DockerArtifactDeploymentsDetails } from '../schemas/DockerArtifactDeploymentsDetails';
|
|
2
|
-
import type { Status } from '../schemas/Status';
|
|
3
|
-
export interface DockerArtifactDeploymentsResponseResponse {
|
|
4
|
-
data: DockerArtifactDeploymentsDetails;
|
|
5
|
-
status: Status;
|
|
6
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DeploymentArtifactDetails } from '../schemas/DeploymentArtifactDetails';
|
|
2
|
-
import type { ArtifactDeploymentsDetail } from '../schemas/ArtifactDeploymentsDetail';
|
|
3
|
-
import type { DeploymentsStats } from '../schemas/DeploymentsStats';
|
|
4
|
-
/**
|
|
5
|
-
* Docker Artifact deploymens Details
|
|
6
|
-
*/
|
|
7
|
-
export interface DockerArtifactDeploymentsDetails {
|
|
8
|
-
artifactDetails?: DeploymentArtifactDetails;
|
|
9
|
-
deployments: ArtifactDeploymentsDetail[];
|
|
10
|
-
deploymentsStats?: DeploymentsStats;
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{Environment.js → ArtifactDeploymentsList.js}
RENAMED
|
File without changes
|
/package/dist/har-service/src/services/schemas/{ArtifactScannedMetadata.js → DeploymentDetails.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/har-service/src/services/schemas/{DeploymentsDetails.js → StoDigestMetadata.js}
RENAMED
|
File without changes
|