@harnessio/react-har-service-client 0.51.0 → 0.53.0

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.
Files changed (74) hide show
  1. package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.d.ts +21 -0
  2. package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.d.ts +20 -0
  4. package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.d.ts +22 -0
  6. package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.js +18 -0
  7. package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.d.ts +30 -0
  8. package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.js +14 -0
  9. package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.d.ts +39 -0
  10. package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.js +14 -0
  11. package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -1
  12. package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.d.ts +21 -0
  13. package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.js +14 -0
  14. package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.d.ts +24 -0
  15. package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.js +14 -0
  16. package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.d.ts +24 -0
  17. package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.js +14 -0
  18. package/dist/har-service/src/services/index.d.ts +35 -12
  19. package/dist/har-service/src/services/index.js +8 -6
  20. package/dist/har-service/src/services/requestBodies/FirewallExceptionApprovalRequestV3RequestBody.d.ts +2 -0
  21. package/dist/har-service/src/services/requestBodies/FirewallExceptionApprovalRequestV3RequestBody.js +1 -0
  22. package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.d.ts +2 -0
  23. package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.js +1 -0
  24. package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.d.ts +2 -0
  25. package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.js +1 -0
  26. package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.d.ts +2 -0
  27. package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.js +1 -0
  28. package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.d.ts +2 -0
  29. package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.js +1 -0
  30. package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.d.ts +2 -0
  31. package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.js +1 -0
  32. package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.d.ts +2 -0
  33. package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.js +1 -0
  34. package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.d.ts +7 -0
  35. package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.js +1 -0
  36. package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.d.ts +1 -0
  37. package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.js +1 -0
  38. package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.d.ts +4 -0
  39. package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.js +1 -0
  40. package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.d.ts +11 -0
  41. package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.js +1 -0
  42. package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.d.ts +31 -0
  43. package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.js +4 -0
  44. package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.d.ts +35 -0
  45. package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.js +4 -0
  46. package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.d.ts +94 -0
  47. package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.js +1 -0
  48. package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.d.ts +4 -0
  49. package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.js +4 -0
  50. package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.d.ts +22 -0
  51. package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.js +4 -0
  52. package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.d.ts +7 -0
  53. package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.js +1 -0
  54. package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +0 -4
  55. package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.d.ts +9 -0
  56. package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.js +4 -0
  57. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +0 -4
  58. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +0 -4
  59. package/dist/har-service/src/services/schemas/SystemInfoV3.d.ts +15 -0
  60. package/dist/har-service/src/services/schemas/SystemInfoV3.js +4 -0
  61. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +0 -4
  62. package/package.json +1 -1
  63. package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +0 -31
  64. package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +0 -14
  65. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +0 -31
  66. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +0 -14
  67. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +0 -31
  68. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +0 -14
  69. package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +0 -30
  70. package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +0 -14
  71. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +0 -30
  72. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +0 -14
  73. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +0 -30
  74. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +0 -14
@@ -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 deleteVersion(props) {
7
- return fetcher(Object.assign({ url: `/v2/versions/${props.uuid}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete a version (soft or hard delete based on deleteType parameter)
11
- */
12
- export function useDeleteVersionMutation(options) {
13
- return useMutation((mutateProps) => deleteVersion(mutateProps), options);
14
- }
@@ -1,30 +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 RestorePackageMutationPathParams {
11
- /**
12
- * @format uuid
13
- */
14
- uuid: string;
15
- }
16
- export interface RestorePackageMutationQueryParams {
17
- account_identifier: string;
18
- org_identifier?: string;
19
- project_identifier?: string;
20
- }
21
- export type RestorePackageOkResponse = ResponseWithPagination<SuccessResponse>;
22
- export type RestorePackageErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
- export interface RestorePackageProps extends RestorePackageMutationPathParams, Omit<FetcherOptions<RestorePackageMutationQueryParams, unknown>, 'url'> {
24
- queryParams: RestorePackageMutationQueryParams;
25
- }
26
- export declare function restorePackage(props: RestorePackageProps): Promise<RestorePackageOkResponse>;
27
- /**
28
- * Restore a previously soft-deleted package/image by UUID
29
- */
30
- export declare function useRestorePackageMutation(options?: Omit<UseMutationOptions<RestorePackageOkResponse, RestorePackageErrorResponse, RestorePackageProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RestorePackageOkResponse, import("..").Error, RestorePackageProps, 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 restorePackage(props) {
7
- return fetcher(Object.assign({ url: `/v2/packages/${props.uuid}/restore`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Restore a previously soft-deleted package/image by UUID
11
- */
12
- export function useRestorePackageMutation(options) {
13
- return useMutation((mutateProps) => restorePackage(mutateProps), options);
14
- }
@@ -1,30 +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 RestoreRegistryMutationPathParams {
11
- /**
12
- * @format uuid
13
- */
14
- uuid: string;
15
- }
16
- export interface RestoreRegistryMutationQueryParams {
17
- account_identifier: string;
18
- org_identifier?: string;
19
- project_identifier?: string;
20
- }
21
- export type RestoreRegistryOkResponse = ResponseWithPagination<SuccessResponse>;
22
- export type RestoreRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
- export interface RestoreRegistryProps extends RestoreRegistryMutationPathParams, Omit<FetcherOptions<RestoreRegistryMutationQueryParams, unknown>, 'url'> {
24
- queryParams: RestoreRegistryMutationQueryParams;
25
- }
26
- export declare function restoreRegistry(props: RestoreRegistryProps): Promise<RestoreRegistryOkResponse>;
27
- /**
28
- * Restore a previously soft-deleted registry by UUID
29
- */
30
- export declare function useRestoreRegistryMutation(options?: Omit<UseMutationOptions<RestoreRegistryOkResponse, RestoreRegistryErrorResponse, RestoreRegistryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RestoreRegistryOkResponse, import("..").Error, RestoreRegistryProps, 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 restoreRegistry(props) {
7
- return fetcher(Object.assign({ url: `/v2/registries/${props.uuid}/restore`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Restore a previously soft-deleted registry by UUID
11
- */
12
- export function useRestoreRegistryMutation(options) {
13
- return useMutation((mutateProps) => restoreRegistry(mutateProps), options);
14
- }
@@ -1,30 +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 RestoreVersionMutationPathParams {
11
- /**
12
- * @format uuid
13
- */
14
- uuid: string;
15
- }
16
- export interface RestoreVersionMutationQueryParams {
17
- account_identifier: string;
18
- org_identifier?: string;
19
- project_identifier?: string;
20
- }
21
- export type RestoreVersionOkResponse = ResponseWithPagination<SuccessResponse>;
22
- export type RestoreVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
23
- export interface RestoreVersionProps extends RestoreVersionMutationPathParams, Omit<FetcherOptions<RestoreVersionMutationQueryParams, unknown>, 'url'> {
24
- queryParams: RestoreVersionMutationQueryParams;
25
- }
26
- export declare function restoreVersion(props: RestoreVersionProps): Promise<RestoreVersionOkResponse>;
27
- /**
28
- * Restore a previously soft-deleted version by UUID
29
- */
30
- export declare function useRestoreVersionMutation(options?: Omit<UseMutationOptions<RestoreVersionOkResponse, RestoreVersionErrorResponse, RestoreVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RestoreVersionOkResponse, import("..").Error, RestoreVersionProps, 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 restoreVersion(props) {
7
- return fetcher(Object.assign({ url: `/v2/versions/${props.uuid}/restore`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Restore a previously soft-deleted version by UUID
11
- */
12
- export function useRestoreVersionMutation(options) {
13
- return useMutation((mutateProps) => restoreVersion(mutateProps), options);
14
- }