@harnessio/react-har-service-client 0.50.0 → 0.52.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/useAddVersionTagsV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useDeleteMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useDeletePackageV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useDeleteRegistryV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useDeleteVersionV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetArtifactScanDetailsV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetArtifactScansV3Query.d.ts +4 -1
- package/dist/har-service/src/services/hooks/useGetBulkDownloadRequestStatusV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetFileMetadataV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetPackageMetadataV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetRegistryMetadataV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.d.ts +22 -0
- package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.js +18 -0
- package/dist/har-service/src/services/hooks/useGetVersionMetadataV3Query.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useListFilesV3Query.d.ts +5 -3
- package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.d.ts +30 -0
- package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.d.ts +38 -0
- package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.js +14 -0
- package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -4
- package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useRestorePackageV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useRestoreRegistryV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useRestoreVersionV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useSaveFileMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useSavePackageMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useSaveRegistryMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useSaveVersionMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.d.ts +24 -0
- package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.js +14 -0
- package/dist/har-service/src/services/hooks/useUpsertFileMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useUpsertPackageMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useUpsertRegistryMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/hooks/useUpsertVersionMetadataV3Mutation.d.ts +0 -3
- package/dist/har-service/src/services/index.d.ts +37 -13
- package/dist/har-service/src/services/index.js +8 -6
- package/dist/har-service/src/services/requestBodies/CopyResourcesRequestV3RequestBody.d.ts +2 -2
- package/dist/har-service/src/services/requestBodies/FirewallExceptionApprovalRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.d.ts +2 -0
- package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.js +1 -0
- package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.js +1 -0
- package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.js +1 -0
- package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.js +1 -0
- package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.d.ts +7 -0
- package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.d.ts +1 -0
- package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.js +1 -0
- package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.d.ts +4 -0
- package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/CreatedAtMsV3.d.ts +6 -0
- package/dist/har-service/src/services/schemas/CreatedAtMsV3.js +4 -0
- package/dist/har-service/src/services/schemas/FileMetadataV3.d.ts +6 -1
- package/dist/har-service/src/services/schemas/FileMetadataV3.js +0 -3
- package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.d.ts +11 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.js +1 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.d.ts +31 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.d.ts +35 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.js +4 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.d.ts +94 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.js +1 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.js +4 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.d.ts +22 -0
- package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/FirewallModeV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/FirewallModeV3.js +4 -0
- package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +0 -4
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageV3.d.ts +1 -0
- package/dist/har-service/src/services/schemas/PageInfoV3.d.ts +2 -20
- package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.d.ts +9 -0
- package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.js +4 -0
- package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +0 -4
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +0 -4
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +7 -0
- package/dist/har-service/src/services/schemas/ResourceMetadataV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/SystemInfoV3.d.ts +15 -0
- package/dist/har-service/src/services/schemas/SystemInfoV3.js +4 -0
- package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +0 -4
- package/dist/har-service/src/services/schemas/VersionV3.d.ts +11 -0
- package/package.json +1 -1
- package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +0 -31
- package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +0 -31
- package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +0 -14
- package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +0 -31
- package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +0 -30
- package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +0 -30
- package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +0 -14
- package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +0 -30
- package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +0 -14
- package/dist/har-service/src/services/schemas/CopyResourcesV3.d.ts +0 -2
- /package/dist/har-service/src/services/{schemas/CopyResourcesV3.js → requestBodies/FirewallExceptionApprovalRequestV3RequestBody.js} +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to update a firewall exception. Only allowed when status is PENDING.
|
|
3
|
+
*/
|
|
4
|
+
export interface FirewallExceptionUpdateRequestV3 {
|
|
5
|
+
/**
|
|
6
|
+
* Updated business justification for the exception
|
|
7
|
+
*/
|
|
8
|
+
businessJustification?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Number of days after approval when the exception expires. Null means never expires.
|
|
11
|
+
* @format int32
|
|
12
|
+
*/
|
|
13
|
+
expireAfter?: number | null;
|
|
14
|
+
/**
|
|
15
|
+
* Updated plan for remediation
|
|
16
|
+
*/
|
|
17
|
+
remediationPlan?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Updated list of versions to except. Empty array means all versions.
|
|
20
|
+
*/
|
|
21
|
+
versionList?: string[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FirewallExceptionResponseV3 } from '../schemas/FirewallExceptionResponseV3';
|
|
2
|
+
import type { FirewallExceptionMetaV3 } from '../schemas/FirewallExceptionMetaV3';
|
|
3
|
+
import type { PageInfoV3 } from '../schemas/PageInfoV3';
|
|
4
|
+
export interface ListFirewallExceptionsResponseBodyV3 extends PageInfoV3 {
|
|
5
|
+
items: FirewallExceptionResponseV3[];
|
|
6
|
+
meta?: FirewallExceptionMetaV3;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RPM' | 'SWIFT';
|
|
4
|
+
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART. This field is extensible; clients must handle unknown values.
|
|
2
|
+
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, RAW. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -2,19 +2,7 @@
|
|
|
2
2
|
* Pagination metadata.
|
|
3
3
|
* - `page` selects which page of results to return (0 = first page).
|
|
4
4
|
* - `size` controls how many items are returned per page.
|
|
5
|
-
* - `
|
|
6
|
-
*
|
|
7
|
-
* **`total` semantics (sentinel +1):**
|
|
8
|
-
* - Let `returned = items.length` for the current response.
|
|
9
|
-
* - Let `end = (page * size) + returned` (the count of items returned up to this page).
|
|
10
|
-
* - If there are **no more** items after this page, the server returns: `total = end`.
|
|
11
|
-
* - If there **are more** items after this page, the server returns: `total = end + 1`.
|
|
12
|
-
*
|
|
13
|
-
* Clients can compute:
|
|
14
|
-
* - `hasMore = total > end`
|
|
15
|
-
*
|
|
16
|
-
* Note: `total` is **not** guaranteed to be the total number of matching items in the system.
|
|
17
|
-
* It is intentionally shaped to avoid expensive full counts on large datasets.
|
|
5
|
+
* - `hasMore` is true if more results exist after this page.
|
|
18
6
|
*
|
|
19
7
|
*/
|
|
20
8
|
export interface PageInfoV3 {
|
|
@@ -22,7 +10,7 @@ export interface PageInfoV3 {
|
|
|
22
10
|
* True if more results exist after this page.
|
|
23
11
|
* @example true
|
|
24
12
|
*/
|
|
25
|
-
hasMore
|
|
13
|
+
hasMore: boolean;
|
|
26
14
|
/**
|
|
27
15
|
* The current page (0-indexed)
|
|
28
16
|
* @format int64
|
|
@@ -35,10 +23,4 @@ export interface PageInfoV3 {
|
|
|
35
23
|
* @example 20
|
|
36
24
|
*/
|
|
37
25
|
size: number;
|
|
38
|
-
/**
|
|
39
|
-
* Total number of items
|
|
40
|
-
* @format int64
|
|
41
|
-
* @example 1234
|
|
42
|
-
*/
|
|
43
|
-
total: number;
|
|
44
26
|
}
|
|
@@ -6,7 +6,12 @@ import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
|
6
6
|
* Registry Metadata
|
|
7
7
|
*/
|
|
8
8
|
export interface RegistryV3 {
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
artifactsCount?: number;
|
|
9
13
|
deletedAt?: DeletedAtMsV3;
|
|
14
|
+
description?: string;
|
|
10
15
|
/**
|
|
11
16
|
* @format int64
|
|
12
17
|
*/
|
|
@@ -23,6 +28,8 @@ export interface RegistryV3 {
|
|
|
23
28
|
*/
|
|
24
29
|
packageCount?: number;
|
|
25
30
|
packageType: PackageTypeV3;
|
|
31
|
+
path?: string;
|
|
26
32
|
size?: string;
|
|
27
33
|
type: RegistryTypeV3;
|
|
34
|
+
url: string;
|
|
28
35
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* System-level information for the Harness Artifact Registry
|
|
3
|
+
*/
|
|
4
|
+
export interface SystemInfoV3 {
|
|
5
|
+
/**
|
|
6
|
+
* The hostname of the registry without protocol or port
|
|
7
|
+
* @example "pkg.harness.io"
|
|
8
|
+
*/
|
|
9
|
+
registryHost: string;
|
|
10
|
+
/**
|
|
11
|
+
* The full registry URL including protocol
|
|
12
|
+
* @example "https://pkg.harness.io"
|
|
13
|
+
*/
|
|
14
|
+
registryUrl: string;
|
|
15
|
+
}
|
|
@@ -23,10 +23,6 @@ export interface VersionMetadata {
|
|
|
23
23
|
downloadsCount?: number;
|
|
24
24
|
fileCount?: number;
|
|
25
25
|
firewallMode?: 'ALLOW' | 'BLOCK' | 'WARN';
|
|
26
|
-
/**
|
|
27
|
-
* True if the registry is soft-deleted
|
|
28
|
-
*/
|
|
29
|
-
isDeleted: boolean;
|
|
30
26
|
isQuarantined?: boolean;
|
|
31
27
|
lastModified: string;
|
|
32
28
|
lastScannedAt?: string;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
|
|
2
2
|
import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
|
|
3
|
+
import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
|
|
3
4
|
import type { ResourceMetadataV3 } from '../schemas/ResourceMetadataV3';
|
|
4
5
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
5
6
|
import type { PackageKindV3 } from '../schemas/PackageKindV3';
|
|
6
7
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
8
|
+
import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
9
|
+
import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
|
|
7
10
|
/**
|
|
8
11
|
* Version metadata
|
|
9
12
|
*/
|
|
@@ -15,11 +18,13 @@ export interface VersionV3 {
|
|
|
15
18
|
*/
|
|
16
19
|
downloadCount?: number;
|
|
17
20
|
fileCount?: number;
|
|
21
|
+
firewallMode?: FirewallModeV3;
|
|
18
22
|
/**
|
|
19
23
|
* @format uuid
|
|
20
24
|
*/
|
|
21
25
|
id: string;
|
|
22
26
|
isQuarantined?: boolean;
|
|
27
|
+
lastScannedAt?: string;
|
|
23
28
|
metadata?: ResourceMetadataV3;
|
|
24
29
|
modifiedAt?: ModifiedAtMsV3;
|
|
25
30
|
name: string;
|
|
@@ -37,5 +42,11 @@ export interface VersionV3 {
|
|
|
37
42
|
*/
|
|
38
43
|
registryId: string;
|
|
39
44
|
registryName: string;
|
|
45
|
+
registryType: RegistryTypeV3;
|
|
46
|
+
/**
|
|
47
|
+
* @format uuid
|
|
48
|
+
*/
|
|
49
|
+
scanID?: string;
|
|
50
|
+
scanStatus?: ScanStatusV3;
|
|
40
51
|
size?: string;
|
|
41
52
|
}
|
package/package.json
CHANGED
|
@@ -1,31 +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 DeletePackageMutationPathParams {
|
|
11
|
-
/**
|
|
12
|
-
* @format uuid
|
|
13
|
-
*/
|
|
14
|
-
uuid: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DeletePackageMutationQueryParams {
|
|
17
|
-
account_identifier: string;
|
|
18
|
-
org_identifier?: string;
|
|
19
|
-
project_identifier?: string;
|
|
20
|
-
force?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export type DeletePackageOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
23
|
-
export type DeletePackageErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
24
|
-
export interface DeletePackageProps extends DeletePackageMutationPathParams, Omit<FetcherOptions<DeletePackageMutationQueryParams, unknown>, 'url'> {
|
|
25
|
-
queryParams: DeletePackageMutationQueryParams;
|
|
26
|
-
}
|
|
27
|
-
export declare function deletePackage(props: DeletePackageProps): Promise<DeletePackageOkResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Delete a package/image (soft or hard delete based on deleteType parameter)
|
|
30
|
-
*/
|
|
31
|
-
export declare function useDeletePackageMutation(options?: Omit<UseMutationOptions<DeletePackageOkResponse, DeletePackageErrorResponse, DeletePackageProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeletePackageOkResponse, import("..").Error, DeletePackageProps, 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 deletePackage(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/packages/${props.uuid}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete a package/image (soft or hard delete based on deleteType parameter)
|
|
11
|
-
*/
|
|
12
|
-
export function useDeletePackageMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deletePackage(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,31 +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 DeleteRegistryV2MutationPathParams {
|
|
11
|
-
/**
|
|
12
|
-
* @format uuid
|
|
13
|
-
*/
|
|
14
|
-
uuid: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DeleteRegistryV2MutationQueryParams {
|
|
17
|
-
account_identifier: string;
|
|
18
|
-
org_identifier?: string;
|
|
19
|
-
project_identifier?: string;
|
|
20
|
-
force?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export type DeleteRegistryV2OkResponse = ResponseWithPagination<SuccessResponse>;
|
|
23
|
-
export type DeleteRegistryV2ErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
24
|
-
export interface DeleteRegistryV2Props extends DeleteRegistryV2MutationPathParams, Omit<FetcherOptions<DeleteRegistryV2MutationQueryParams, unknown>, 'url'> {
|
|
25
|
-
queryParams: DeleteRegistryV2MutationQueryParams;
|
|
26
|
-
}
|
|
27
|
-
export declare function deleteRegistryV2(props: DeleteRegistryV2Props): Promise<DeleteRegistryV2OkResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Delete a registry (soft or hard delete based on deleteType parameter)
|
|
30
|
-
*/
|
|
31
|
-
export declare function useDeleteRegistryV2Mutation(options?: Omit<UseMutationOptions<DeleteRegistryV2OkResponse, DeleteRegistryV2ErrorResponse, DeleteRegistryV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRegistryV2OkResponse, import("..").Error, DeleteRegistryV2Props, 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 deleteRegistryV2(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/registries/${props.uuid}`, method: 'DELETE' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Delete a registry (soft or hard delete based on deleteType parameter)
|
|
11
|
-
*/
|
|
12
|
-
export function useDeleteRegistryV2Mutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => deleteRegistryV2(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,31 +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 DeleteVersionMutationPathParams {
|
|
11
|
-
/**
|
|
12
|
-
* @format uuid
|
|
13
|
-
*/
|
|
14
|
-
uuid: string;
|
|
15
|
-
}
|
|
16
|
-
export interface DeleteVersionMutationQueryParams {
|
|
17
|
-
account_identifier: string;
|
|
18
|
-
org_identifier?: string;
|
|
19
|
-
project_identifier?: string;
|
|
20
|
-
force?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export type DeleteVersionOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
23
|
-
export type DeleteVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
24
|
-
export interface DeleteVersionProps extends DeleteVersionMutationPathParams, Omit<FetcherOptions<DeleteVersionMutationQueryParams, unknown>, 'url'> {
|
|
25
|
-
queryParams: DeleteVersionMutationQueryParams;
|
|
26
|
-
}
|
|
27
|
-
export declare function deleteVersion(props: DeleteVersionProps): Promise<DeleteVersionOkResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Delete a version (soft or hard delete based on deleteType parameter)
|
|
30
|
-
*/
|
|
31
|
-
export declare function useDeleteVersionMutation(options?: Omit<UseMutationOptions<DeleteVersionOkResponse, DeleteVersionErrorResponse, DeleteVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteVersionOkResponse, import("..").Error, DeleteVersionProps, 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 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
|
-
}
|