@harnessio/react-har-service-client 0.0.13 → 0.0.14
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/useDeleteDockerArtifactManifestMutation.d.ts +27 -0
- package/dist/har-service/src/services/hooks/useDeleteDockerArtifactManifestMutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +6 -0
- package/dist/har-service/src/services/index.js +3 -0
- package/dist/har-service/src/services/schemas/UserPassword.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
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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>;
|
|
@@ -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 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,6 +1,12 @@
|
|
|
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';
|
|
4
10
|
export type { DeleteRegistryErrorResponse, DeleteRegistryMutationPathParams, DeleteRegistryOkResponse, DeleteRegistryProps, } from './hooks/useDeleteRegistryMutation';
|
|
5
11
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
6
12
|
export type { GetAllArtifactVersionsErrorResponse, GetAllArtifactVersionsOkResponse, GetAllArtifactVersionsProps, GetAllArtifactVersionsQueryPathParams, GetAllArtifactVersionsQueryQueryParams, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
@@ -1,4 +1,7 @@
|
|
|
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';
|
|
2
5
|
export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
|
|
3
6
|
export { getAllArtifactVersions, useGetAllArtifactVersionsQuery, } from './hooks/useGetAllArtifactVersionsQuery';
|
|
4
7
|
export { getAllArtifacts, useGetAllArtifactsQuery } from './hooks/useGetAllArtifactsQuery';
|