@harnessio/react-har-service-client 0.35.0 → 0.37.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.
- package/dist/har-service/src/services/hooks/useAddOciArtifactTagsMutation.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useAddOciArtifactTagsMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useCopyMutation.d.ts +31 -0
- package/dist/har-service/src/services/hooks/useCopyMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestMutation.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useCreateBulkDownloadRequestV1Query.js +1 -1
- package/dist/har-service/src/services/hooks/useCreateRegistryMutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useCreateRegistryMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useCreateReplicationRuleMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useCreateWebhookMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDefineSpaceLabelMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDefineSpaceLabelValueMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteMetadataMutation.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useDeleteMetadataMutation.js +17 -0
- package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +31 -0
- package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +31 -0
- package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteReplicationRuleMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteSpaceLabelMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteSpaceLabelValueMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +31 -0
- package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteWebhookMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useEvaluateArtifactScanMutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useEvaluateArtifactScanMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useFindSpaceLabelQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetAllHarnessArtifactsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactDeploymentsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.d.ts +40 -0
- package/dist/har-service/src/services/hooks/useGetArtifactScansQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.d.ts +25 -0
- package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetDockerArtifactIntegrationDetailsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetFileQuery.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetFileQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.d.ts +35 -0
- package/dist/har-service/src/services/hooks/useGetMetadataKeysQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetMetadataQuery.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useGetMetadataQuery.js +16 -0
- package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.d.ts +36 -0
- package/dist/har-service/src/services/hooks/useGetMetadataValuesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useGetMigrationLogsForImageQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetOciArtifactTagsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetRegistryQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetReplicationRuleQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetStorageDetailsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useGetWebhookExecutionQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useGetWebhookQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useGetWebhookQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListMigrationImagesQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListPackagesQuery.d.ts +48 -0
- package/dist/har-service/src/services/hooks/useListPackagesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListRegistriesQuery.d.ts +48 -0
- package/dist/har-service/src/services/hooks/useListRegistriesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListReplicationRulesQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListSpaceLabelValuesQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListSpaceLabelsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListVersionsQuery.d.ts +48 -0
- package/dist/har-service/src/services/hooks/useListVersionsQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useListWebhookExecutionsQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useListWebhooksQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useModifyRegistryMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useQuarantineFilePathMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useReTriggerWebhookExecutionQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useRedirectHarnessArtifactQuery.js +1 -1
- package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +30 -0
- package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +14 -0
- package/dist/har-service/src/services/hooks/useSaveMetadataMutation.d.ts +28 -0
- package/dist/har-service/src/services/hooks/useSaveMetadataMutation.js +17 -0
- package/dist/har-service/src/services/hooks/useSaveSpaceLabelMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useSearchFilesQuery.d.ts +34 -0
- package/dist/har-service/src/services/hooks/useSearchFilesQuery.js +14 -0
- package/dist/har-service/src/services/hooks/useStartMigrationMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useStopMigrationMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.d.ts +29 -0
- package/dist/har-service/src/services/hooks/useUpdateMetadataMutation.js +18 -0
- package/dist/har-service/src/services/hooks/useUpdateReplicationRuleMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useUpdateSpaceLabelMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useUpdateSpaceLabelValueMutation.js +1 -1
- package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useUpdateWebhookMutation.js +1 -1
- package/dist/har-service/src/services/index.d.ts +85 -0
- package/dist/har-service/src/services/index.js +24 -0
- package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/AddTagsRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/BulkDownloadFilesRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/MetadataRequestRequestBody.js +1 -0
- package/dist/har-service/src/services/responses/AddTagsResponseResponse.d.ts +4 -0
- package/dist/har-service/src/services/responses/AddTagsResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.d.ts +8 -0
- package/dist/har-service/src/services/responses/ArtifactScanDetailsResponseResponse.js +4 -0
- package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ArtifactScanEvaluateRequestAcceptedResponse.js +1 -0
- package/dist/har-service/src/services/responses/CopyResponseResponse.d.ts +4 -0
- package/dist/har-service/src/services/responses/CopyResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/DownloadFileResponseResponse.d.ts +4 -0
- package/dist/har-service/src/services/responses/DownloadFileResponseResponse.js +4 -0
- package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/GetBulkDownloadRequestStatusResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListArtifactScanResponseResponse.d.ts +32 -0
- package/dist/har-service/src/services/responses/ListArtifactScanResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListFilesResponseResponse.d.ts +30 -0
- package/dist/har-service/src/services/responses/ListFilesResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListPackageResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListPackageResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/ListVersionResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/ListVersionResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.d.ts +5 -0
- package/dist/har-service/src/services/responses/MetadataKeysResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/MetadataResponseResponse.d.ts +6 -0
- package/dist/har-service/src/services/responses/MetadataResponseResponse.js +1 -0
- package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.d.ts +5 -0
- package/dist/har-service/src/services/responses/MetadataValuesResponseResponse.js +1 -0
- package/dist/har-service/src/services/schemas/AddTags.d.ts +5 -0
- package/dist/har-service/src/services/schemas/AddTags.js +4 -0
- package/dist/har-service/src/services/schemas/ApiErrors.d.ts +18 -0
- package/dist/har-service/src/services/schemas/ApiErrors.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +8 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +5 -4
- package/dist/har-service/src/services/schemas/ArtifactScan.d.ts +39 -0
- package/dist/har-service/src/services/schemas/ArtifactScan.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactScanEvaluateRequestStatus.d.ts +4 -0
- package/dist/har-service/src/services/schemas/ArtifactScanEvaluateRequestStatus.js +4 -0
- package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +3 -4
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +8 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +3 -4
- package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.d.ts +22 -0
- package/dist/har-service/src/services/schemas/BulkDownloadFilesRequestInput.js +4 -0
- package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.d.ts +4 -0
- package/dist/har-service/src/services/schemas/BulkDownloadRequestStatus.js +4 -0
- package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.d.ts +8 -0
- package/dist/har-service/src/services/schemas/BulkDownloadRequestStatusOutput.js +1 -0
- package/dist/har-service/src/services/schemas/Error.d.ts +10 -3
- package/dist/har-service/src/services/schemas/ExtraHeader.d.ts +1 -0
- package/dist/har-service/src/services/schemas/FileMetadata.d.ts +9 -0
- package/dist/har-service/src/services/schemas/FileMetadata.js +4 -0
- package/dist/har-service/src/services/schemas/ListPackage.d.ts +35 -0
- package/dist/har-service/src/services/schemas/ListPackage.js +1 -0
- package/dist/har-service/src/services/schemas/ListRegistry.d.ts +2 -0
- package/dist/har-service/src/services/schemas/ListVersion.d.ts +35 -0
- package/dist/har-service/src/services/schemas/ListVersion.js +1 -0
- package/dist/har-service/src/services/schemas/Meta.d.ts +17 -0
- package/dist/har-service/src/services/schemas/Meta.js +4 -0
- package/dist/har-service/src/services/schemas/MetadataInput.d.ts +45 -0
- package/dist/har-service/src/services/schemas/MetadataInput.js +1 -0
- package/dist/har-service/src/services/schemas/MetadataItemInput.d.ts +15 -0
- package/dist/har-service/src/services/schemas/MetadataItemInput.js +4 -0
- package/dist/har-service/src/services/schemas/MetadataItemOutput.d.ts +22 -0
- package/dist/har-service/src/services/schemas/MetadataItemOutput.js +1 -0
- package/dist/har-service/src/services/schemas/MetadataOutput.d.ts +11 -0
- package/dist/har-service/src/services/schemas/MetadataOutput.js +1 -0
- package/dist/har-service/src/services/schemas/MetadataType.d.ts +5 -0
- package/dist/har-service/src/services/schemas/MetadataType.js +4 -0
- package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +30 -0
- package/dist/har-service/src/services/schemas/PackageMetadata.js +1 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +4 -2
- package/dist/har-service/src/services/schemas/Registry.d.ts +3 -4
- package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +3 -5
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +2 -4
- package/dist/har-service/src/services/schemas/RegistryRequest.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ScanMeta.d.ts +23 -0
- package/dist/har-service/src/services/schemas/ScanMeta.js +4 -0
- package/dist/har-service/src/services/schemas/Status.d.ts +1 -1
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +2 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.d.ts +4 -0
- package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.js +4 -0
- package/dist/har-service/src/services/schemas/V3Error.d.ts +7 -0
- package/dist/har-service/src/services/schemas/V3Error.js +1 -0
- package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +40 -0
- package/dist/har-service/src/services/schemas/VersionMetadata.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListPackageResponseResponse } from '../responses/ListPackageResponseResponse';
|
|
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 ListPackagesQueryQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
org_identifier?: string;
|
|
13
|
+
project_identifier?: string;
|
|
14
|
+
registry_identifier?: string[];
|
|
15
|
+
metadata?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* @format int64
|
|
18
|
+
* @default 0
|
|
19
|
+
*/
|
|
20
|
+
page?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @format int64
|
|
23
|
+
* @default 20
|
|
24
|
+
*/
|
|
25
|
+
size?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @default "ASC"
|
|
28
|
+
*/
|
|
29
|
+
sort_order?: 'ASC' | 'DESC';
|
|
30
|
+
sort_field?: string;
|
|
31
|
+
search_term?: string;
|
|
32
|
+
artifact_type?: 'dataset' | 'model';
|
|
33
|
+
package_type?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* @default "EXCLUDE"
|
|
36
|
+
*/
|
|
37
|
+
deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY';
|
|
38
|
+
}
|
|
39
|
+
export type ListPackagesOkResponse = ResponseWithPagination<ListPackageResponseResponse>;
|
|
40
|
+
export type ListPackagesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
41
|
+
export interface ListPackagesProps extends Omit<FetcherOptions<ListPackagesQueryQueryParams, unknown>, 'url'> {
|
|
42
|
+
queryParams: ListPackagesQueryQueryParams;
|
|
43
|
+
}
|
|
44
|
+
export declare function listPackages(props: ListPackagesProps): Promise<ListPackagesOkResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Lists all the Image/Package
|
|
47
|
+
*/
|
|
48
|
+
export declare function useListPackagesQuery(props: ListPackagesProps, options?: Omit<UseQueryOptions<ListPackagesOkResponse, ListPackagesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPackagesOkResponse, 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 listPackages(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/packages`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the Image/Package
|
|
11
|
+
*/
|
|
12
|
+
export function useListPackagesQuery(props, options) {
|
|
13
|
+
return useQuery(['ListPackages', props.queryParams], ({ signal }) => listPackages(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListRegistryResponseResponse } from '../responses/ListRegistryResponseResponse';
|
|
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 ListRegistriesQueryQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
org_identifier?: string;
|
|
13
|
+
project_identifier?: string;
|
|
14
|
+
package_type?: string[];
|
|
15
|
+
type?: 'UPSTREAM' | 'VIRTUAL';
|
|
16
|
+
metadata?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @format int64
|
|
24
|
+
* @default 20
|
|
25
|
+
*/
|
|
26
|
+
size?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @default "ASC"
|
|
29
|
+
*/
|
|
30
|
+
sort_order?: 'ASC' | 'DESC';
|
|
31
|
+
sort_field?: string;
|
|
32
|
+
search_term?: string;
|
|
33
|
+
scope?: 'ancestors' | 'descendants' | 'none';
|
|
34
|
+
/**
|
|
35
|
+
* @default "EXCLUDE"
|
|
36
|
+
*/
|
|
37
|
+
deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY';
|
|
38
|
+
}
|
|
39
|
+
export type ListRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
|
|
40
|
+
export type ListRegistriesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
41
|
+
export interface ListRegistriesProps extends Omit<FetcherOptions<ListRegistriesQueryQueryParams, unknown>, 'url'> {
|
|
42
|
+
queryParams: ListRegistriesQueryQueryParams;
|
|
43
|
+
}
|
|
44
|
+
export declare function listRegistries(props: ListRegistriesProps): Promise<ListRegistriesOkResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Lists all the registries.
|
|
47
|
+
*/
|
|
48
|
+
export declare function useListRegistriesQuery(props: ListRegistriesProps, options?: Omit<UseQueryOptions<ListRegistriesOkResponse, ListRegistriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRegistriesOkResponse, 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 listRegistries(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/registries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the registries.
|
|
11
|
+
*/
|
|
12
|
+
export function useListRegistriesQuery(props, options) {
|
|
13
|
+
return useQuery(['ListRegistries', props.queryParams], ({ signal }) => listRegistries(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listReplicationRules(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/replication/rules`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/replication/rules`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* List all replication rules
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listSpaceLabelValues(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels/${props.key}/values`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels/${props.key}/values`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
export function useListSpaceLabelValuesQuery(props, options) {
|
|
10
10
|
return useQuery(['listSpaceLabelValues', props.space_ref, props.key], ({ signal }) => listSpaceLabelValues(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listSpaceLabels(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
export function useListSpaceLabelsQuery(props, options) {
|
|
10
10
|
return useQuery(['listSpaceLabels', props.space_ref, props.queryParams], ({ signal }) => listSpaceLabels(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListVersionResponseResponse } from '../responses/ListVersionResponseResponse';
|
|
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 ListVersionsQueryQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
org_identifier?: string;
|
|
13
|
+
project_identifier?: string;
|
|
14
|
+
registry_identifier?: string[];
|
|
15
|
+
package?: string;
|
|
16
|
+
metadata?: string[];
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @format int64
|
|
24
|
+
* @default 20
|
|
25
|
+
*/
|
|
26
|
+
size?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @default "ASC"
|
|
29
|
+
*/
|
|
30
|
+
sort_order?: 'ASC' | 'DESC';
|
|
31
|
+
sort_field?: string;
|
|
32
|
+
search_term?: string;
|
|
33
|
+
package_type?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* @default "EXCLUDE"
|
|
36
|
+
*/
|
|
37
|
+
deleted?: 'EXCLUDE' | 'INCLUDE' | 'ONLY';
|
|
38
|
+
}
|
|
39
|
+
export type ListVersionsOkResponse = ResponseWithPagination<ListVersionResponseResponse>;
|
|
40
|
+
export type ListVersionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
41
|
+
export interface ListVersionsProps extends Omit<FetcherOptions<ListVersionsQueryQueryParams, unknown>, 'url'> {
|
|
42
|
+
queryParams: ListVersionsQueryQueryParams;
|
|
43
|
+
}
|
|
44
|
+
export declare function listVersions(props: ListVersionsProps): Promise<ListVersionsOkResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Lists all the Versions.
|
|
47
|
+
*/
|
|
48
|
+
export declare function useListVersionsQuery(props: ListVersionsProps, options?: Omit<UseQueryOptions<ListVersionsOkResponse, ListVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVersionsOkResponse, 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 listVersions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/artifacts`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists all the Versions.
|
|
11
|
+
*/
|
|
12
|
+
export function useListVersionsQuery(props, options) {
|
|
13
|
+
return useQuery(['ListVersions', props.queryParams], ({ signal }) => listVersions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -3,6 +3,7 @@ import type { ListWebhooksExecutionResponseResponse } from '../responses/ListWeb
|
|
|
3
3
|
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
4
|
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
5
|
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
7
|
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
8
|
import type { ResponseWithPagination } from '../helpers';
|
|
8
9
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -23,7 +24,7 @@ export interface ListWebhookExecutionsQueryQueryParams {
|
|
|
23
24
|
size?: number;
|
|
24
25
|
}
|
|
25
26
|
export type ListWebhookExecutionsOkResponse = ResponseWithPagination<ListWebhooksExecutionResponseResponse>;
|
|
26
|
-
export type ListWebhookExecutionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
27
|
+
export type ListWebhookExecutionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
27
28
|
export interface ListWebhookExecutionsProps extends ListWebhookExecutionsQueryPathParams, Omit<FetcherOptions<ListWebhookExecutionsQueryQueryParams, unknown>, 'url'> {
|
|
28
29
|
queryParams: ListWebhookExecutionsQueryQueryParams;
|
|
29
30
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listWebhookExecutions(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Returns Webhook Execution Details List
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listWebhooks(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Returns List of Webhook Details
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function modifyRegistry(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}`, method: 'PUT' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Updates a Registry in the account for the given key
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function quarantineFilePath(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/quarantine`, method: 'PUT' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/quarantine`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* quarantine file path
|
|
@@ -3,6 +3,7 @@ import type { WebhookExecutionResponseResponse } from '../responses/WebhookExecu
|
|
|
3
3
|
import type { BadRequestResponse } from '../responses/BadRequestResponse';
|
|
4
4
|
import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
|
|
5
5
|
import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
|
|
6
|
+
import type { NotFoundResponse } from '../responses/NotFoundResponse';
|
|
6
7
|
import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
7
8
|
import type { ResponseWithPagination } from '../helpers';
|
|
8
9
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -12,7 +13,7 @@ export interface ReTriggerWebhookExecutionQueryPathParams {
|
|
|
12
13
|
webhook_execution_id: string;
|
|
13
14
|
}
|
|
14
15
|
export type ReTriggerWebhookExecutionOkResponse = ResponseWithPagination<WebhookExecutionResponseResponse>;
|
|
15
|
-
export type ReTriggerWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
16
|
+
export type ReTriggerWebhookExecutionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
16
17
|
export interface ReTriggerWebhookExecutionProps extends ReTriggerWebhookExecutionQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
17
18
|
}
|
|
18
19
|
export declare function reTriggerWebhookExecution(props: ReTriggerWebhookExecutionProps): Promise<ReTriggerWebhookExecutionOkResponse>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function reTriggerWebhookExecution(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}/retrigger`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/webhooks/${props.webhook_identifier}/executions/${props.webhook_execution_id}/retrigger`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Retrigger Webhook Execution
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function redirectHarnessArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_identifier}/artifact/${props.artifact}/redirect`, method: 'GET' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_identifier}/artifact/${props.artifact}/redirect`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Redirect to Harness Artifact Page
|
|
@@ -0,0 +1,30 @@
|
|
|
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>;
|
|
@@ -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 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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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>;
|
|
@@ -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 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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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>;
|
|
@@ -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 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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { MetadataResponseResponse } from '../responses/MetadataResponseResponse';
|
|
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 { MetadataRequestRequestBody } from '../requestBodies/MetadataRequestRequestBody';
|
|
9
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
10
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
11
|
+
export interface SaveMetadataMutationQueryParams {
|
|
12
|
+
account_identifier: string;
|
|
13
|
+
}
|
|
14
|
+
export type SaveMetadataRequestBody = MetadataRequestRequestBody;
|
|
15
|
+
export type SaveMetadataOkResponse = ResponseWithPagination<MetadataResponseResponse>;
|
|
16
|
+
export type SaveMetadataErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
+
export interface SaveMetadataProps extends Omit<FetcherOptions<SaveMetadataMutationQueryParams, SaveMetadataRequestBody>, 'url'> {
|
|
18
|
+
queryParams: SaveMetadataMutationQueryParams;
|
|
19
|
+
body: SaveMetadataRequestBody;
|
|
20
|
+
}
|
|
21
|
+
export declare function saveMetadata(props: SaveMetadataProps): Promise<SaveMetadataOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Saves metadata key-value pairs for a specific entity.
|
|
24
|
+
* This endpoint allows you to save metadata for packages, versions, or registry-level entities.
|
|
25
|
+
* This operation will remove existing metadata and save the new metadata. It is an idempotent operation.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare function useSaveMetadataMutation(options?: Omit<UseMutationOptions<SaveMetadataOkResponse, SaveMetadataErrorResponse, SaveMetadataProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveMetadataOkResponse, import("..").Error, SaveMetadataProps, unknown>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 saveMetadata(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/metadata`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Saves metadata key-value pairs for a specific entity.
|
|
11
|
+
* This endpoint allows you to save metadata for packages, versions, or registry-level entities.
|
|
12
|
+
* This operation will remove existing metadata and save the new metadata. It is an idempotent operation.
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export function useSaveMetadataMutation(options) {
|
|
16
|
+
return useMutation((mutateProps) => saveMetadata(mutateProps), options);
|
|
17
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function saveSpaceLabel(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/spaces/${props.space_ref}/labels`, method: 'PUT' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/spaces/${props.space_ref}/labels`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
export function useSaveSpaceLabelMutation(options) {
|
|
10
10
|
return useMutation((mutateProps) => saveSpaceLabel(mutateProps), options);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListFilesResponseResponse } from '../responses/ListFilesResponseResponse';
|
|
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 SearchFilesQueryQueryParams {
|
|
11
|
+
account_identifier: string;
|
|
12
|
+
registry_identifier: string;
|
|
13
|
+
query: string;
|
|
14
|
+
/**
|
|
15
|
+
* @format int64
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @format int64
|
|
21
|
+
* @default 20
|
|
22
|
+
*/
|
|
23
|
+
size?: number;
|
|
24
|
+
}
|
|
25
|
+
export type SearchFilesOkResponse = ResponseWithPagination<ListFilesResponseResponse>;
|
|
26
|
+
export type SearchFilesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
27
|
+
export interface SearchFilesProps extends Omit<FetcherOptions<SearchFilesQueryQueryParams, unknown>, 'url'> {
|
|
28
|
+
queryParams: SearchFilesQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function searchFiles(props: SearchFilesProps): Promise<SearchFilesOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Search all the files.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useSearchFilesQuery(props: SearchFilesProps, options?: Omit<UseQueryOptions<SearchFilesOkResponse, SearchFilesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SearchFilesOkResponse, 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 searchFiles(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/files/search`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Search all the files.
|
|
11
|
+
*/
|
|
12
|
+
export function useSearchFilesQuery(props, options) {
|
|
13
|
+
return useQuery(['SearchFiles', props.queryParams], ({ signal }) => searchFiles(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function startMigration(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/start`, method: 'POST' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}/migration/start`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Start migration given an id
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function stopMigration(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/replication/rules/${props.id}/migration/stop`, method: 'POST' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/replication/rules/${props.id}/migration/stop`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Stop migration given an id
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function updateArtifactLabels(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/registry/${props.registry_ref}/artifact/${props.artifact}/labels`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Update Artifact Labels.
|