@harnessio/react-har-service-client 0.0.23 → 0.0.24
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/useDeleteArtifactMutation.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +23 -0
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -1
- package/dist/har-service/src/services/index.d.ts +4 -0
- package/dist/har-service/src/services/index.js +2 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +1 -9
- package/dist/har-service/src/services/schemas/DeploymentDetails.d.ts +3 -3
- package/dist/har-service/src/services/schemas/DeploymentMetadata.d.ts +2 -8
- package/dist/har-service/src/services/schemas/Error.d.ts +1 -1
- package/dist/har-service/src/services/schemas/SlsaDetails.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
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>;
|
|
@@ -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 { 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
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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>;
|
|
@@ -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 { 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
|
+
}
|
|
@@ -13,7 +13,7 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
15
|
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
|
-
digest
|
|
16
|
+
digest?: string;
|
|
17
17
|
}
|
|
18
18
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
19
19
|
export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -1,6 +1,10 @@
|
|
|
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';
|
|
4
8
|
export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
|
|
5
9
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
6
10
|
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
|
|
2
|
+
export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
|
|
3
|
+
export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
|
|
2
4
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
3
5
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
4
6
|
export { getAllArtifactsByRegistry, useGetAllArtifactsByRegistryQuery, } from './hooks/useGetAllArtifactsByRegistryQuery';
|
|
@@ -15,15 +15,7 @@ export interface ArtifactMetadata {
|
|
|
15
15
|
lastModified?: string;
|
|
16
16
|
latestVersion: string;
|
|
17
17
|
name: string;
|
|
18
|
-
/**
|
|
19
|
-
* @format int64
|
|
20
|
-
*/
|
|
21
|
-
nonProdEnvCount?: number;
|
|
22
18
|
packageType?: PackageType;
|
|
23
|
-
/**
|
|
24
|
-
* @format int64
|
|
25
|
-
*/
|
|
26
|
-
prodEnvCount?: number;
|
|
27
19
|
pullCommand?: string;
|
|
28
20
|
registryIdentifier: string;
|
|
29
21
|
registryPath: string;
|
|
@@ -37,5 +29,5 @@ export interface ArtifactMetadata {
|
|
|
37
29
|
* @format int64
|
|
38
30
|
*/
|
|
39
31
|
totalDigestCount?: number;
|
|
40
|
-
version
|
|
32
|
+
version: string;
|
|
41
33
|
}
|