@harnessio/react-har-service-client 0.52.0 → 0.54.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/useListFirewallExceptionsV3Query.d.ts +4 -1
- package/dist/har-service/src/services/hooks/useMigrateRegistryV3Mutation.d.ts +20 -0
- package/dist/har-service/src/services/hooks/useMigrateRegistryV3Mutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +2 -0
- package/dist/har-service/src/services/index.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ArtifactScanV3.d.ts +4 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ArtifactVersionSummary.d.ts +1 -1
- package/dist/har-service/src/services/schemas/FirewallModeV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/UpstreamProxyConfigFirewallMode.d.ts +1 -1
- package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,10 @@ export interface ListFirewallExceptionsV3QueryQueryParams {
|
|
|
13
13
|
status?: 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
|
|
14
14
|
package_name?: string;
|
|
15
15
|
version?: string;
|
|
16
|
-
|
|
16
|
+
package_types?: string[];
|
|
17
|
+
registry_ids?: string[];
|
|
18
|
+
exception_id?: string;
|
|
19
|
+
search_term?: string;
|
|
17
20
|
/**
|
|
18
21
|
* @format int64
|
|
19
22
|
* @default 0
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface MigrateRegistryV3MutationPathParams {
|
|
6
|
+
id: string;
|
|
7
|
+
}
|
|
8
|
+
export interface MigrateRegistryV3MutationQueryParams {
|
|
9
|
+
account_identifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type MigrateRegistryV3OkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type MigrateRegistryV3ErrorResponse = ErrorV3;
|
|
13
|
+
export interface MigrateRegistryV3Props extends MigrateRegistryV3MutationPathParams, Omit<FetcherOptions<MigrateRegistryV3MutationQueryParams, unknown>, 'url'> {
|
|
14
|
+
queryParams: MigrateRegistryV3MutationQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function migrateRegistryV3(props: MigrateRegistryV3Props): Promise<MigrateRegistryV3OkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Migrate a generic registry to raw registry type. This will change the registry type from GENERIC to RAW and delete all images associated with the registry.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useMigrateRegistryV3Mutation(options?: Omit<UseMutationOptions<MigrateRegistryV3OkResponse, MigrateRegistryV3ErrorResponse, MigrateRegistryV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MigrateRegistryV3OkResponse, ErrorV3, MigrateRegistryV3Props, 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 migrateRegistryV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/registries/${props.id}/migrate`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Migrate a generic registry to raw registry type. This will change the registry type from GENERIC to RAW and delete all images associated with the registry.
|
|
11
|
+
*/
|
|
12
|
+
export function useMigrateRegistryV3Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => migrateRegistryV3(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -181,6 +181,8 @@ export type { ListWebhookExecutionsErrorResponse, ListWebhookExecutionsOkRespons
|
|
|
181
181
|
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
182
182
|
export type { ListWebhooksErrorResponse, ListWebhooksOkResponse, ListWebhooksProps, ListWebhooksQueryPathParams, ListWebhooksQueryQueryParams, } from './hooks/useListWebhooksQuery';
|
|
183
183
|
export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
|
|
184
|
+
export type { MigrateRegistryV3ErrorResponse, MigrateRegistryV3MutationPathParams, MigrateRegistryV3MutationQueryParams, MigrateRegistryV3OkResponse, MigrateRegistryV3Props, } from './hooks/useMigrateRegistryV3Mutation';
|
|
185
|
+
export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
|
|
184
186
|
export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
|
|
185
187
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
186
188
|
export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathParams, QuarantineFilePathOkResponse, QuarantineFilePathProps, QuarantineFilePathRequestBody, } from './hooks/useQuarantineFilePathMutation';
|
|
@@ -89,6 +89,7 @@ export { listVersions, useListVersionsQuery } from './hooks/useListVersionsQuery
|
|
|
89
89
|
export { listVersionsV3, useListVersionsV3Query } from './hooks/useListVersionsV3Query';
|
|
90
90
|
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
91
91
|
export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery';
|
|
92
|
+
export { migrateRegistryV3, useMigrateRegistryV3Mutation, } from './hooks/useMigrateRegistryV3Mutation';
|
|
92
93
|
export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
|
|
93
94
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
94
95
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
@@ -19,7 +19,7 @@ export interface ArtifactMetadata {
|
|
|
19
19
|
*/
|
|
20
20
|
downloadsCount?: number;
|
|
21
21
|
fileCount?: number;
|
|
22
|
-
firewallMode?: 'ALLOW' | '
|
|
22
|
+
firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
|
|
23
23
|
isQuarantined?: boolean;
|
|
24
24
|
labels?: string[];
|
|
25
25
|
lastModified?: string;
|
|
@@ -25,7 +25,7 @@ export interface ArtifactVersionMetadata {
|
|
|
25
25
|
* @format int64
|
|
26
26
|
*/
|
|
27
27
|
fileCount?: number;
|
|
28
|
-
firewallMode?: 'ALLOW' | '
|
|
28
|
+
firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
|
|
29
29
|
isQuarantined?: boolean;
|
|
30
30
|
lastModified?: string;
|
|
31
31
|
lastScannedAt?: string;
|
|
@@ -10,7 +10,7 @@ export interface ArtifactVersionSummary {
|
|
|
10
10
|
* Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
|
|
11
11
|
*/
|
|
12
12
|
deletedAt?: string;
|
|
13
|
-
firewallMode?: 'ALLOW' | '
|
|
13
|
+
firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
|
|
14
14
|
imageName: string;
|
|
15
15
|
isQuarantined?: boolean;
|
|
16
16
|
lastScannedAt?: string;
|
|
@@ -22,7 +22,7 @@ export interface VersionMetadata {
|
|
|
22
22
|
*/
|
|
23
23
|
downloadsCount?: number;
|
|
24
24
|
fileCount?: number;
|
|
25
|
-
firewallMode?: 'ALLOW' | '
|
|
25
|
+
firewallMode?: 'ALLOW' | 'ENABLED' | 'QUARANTINE';
|
|
26
26
|
isQuarantined?: boolean;
|
|
27
27
|
lastModified: string;
|
|
28
28
|
lastScannedAt?: string;
|