@harnessio/react-har-service-client 0.68.0 → 0.70.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/useRebuildRegistryIndexV3Mutation.d.ts +21 -0
- package/dist/har-service/src/services/hooks/useRebuildRegistryIndexV3Mutation.js +14 -0
- package/dist/har-service/src/services/index.d.ts +4 -0
- package/dist/har-service/src/services/index.js +1 -0
- package/dist/har-service/src/services/responses/RebuildRegistryIndexAcceptedV3Response.d.ts +1 -0
- package/dist/har-service/src/services/responses/RebuildRegistryIndexAcceptedV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +3 -0
- package/dist/har-service/src/services/schemas/HelmHttpArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/HelmHttpArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +3 -0
- 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 +5 -0
- package/dist/har-service/src/services/schemas/RegistryV3.d.ts +2 -0
- package/dist/har-service/src/services/schemas/VersionV3.d.ts +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RebuildRegistryIndexAcceptedV3Response } from '../responses/RebuildRegistryIndexAcceptedV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface RebuildRegistryIndexV3MutationPathParams {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface RebuildRegistryIndexV3MutationQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type RebuildRegistryIndexV3OkResponse = ResponseWithPagination<RebuildRegistryIndexAcceptedV3Response>;
|
|
13
|
+
export type RebuildRegistryIndexV3ErrorResponse = ErrorV3;
|
|
14
|
+
export interface RebuildRegistryIndexV3Props extends RebuildRegistryIndexV3MutationPathParams, Omit<FetcherOptions<RebuildRegistryIndexV3MutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: RebuildRegistryIndexV3MutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export declare function rebuildRegistryIndexV3(props: RebuildRegistryIndexV3Props): Promise<RebuildRegistryIndexV3OkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useRebuildRegistryIndexV3Mutation(options?: Omit<UseMutationOptions<RebuildRegistryIndexV3OkResponse, RebuildRegistryIndexV3ErrorResponse, RebuildRegistryIndexV3Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RebuildRegistryIndexV3OkResponse, ErrorV3, RebuildRegistryIndexV3Props, 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 rebuildRegistryIndexV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/registries/${props.id}/rebuild-index`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Trigger an asynchronous rebuild of the repository index for the given registry. The rebuild runs in the background; this endpoint returns immediately once the request is accepted. Index rebuild is package-type specific — it is currently supported only for HELM_HTTP registries. Registries whose package type does not maintain a rebuildable index return 405.
|
|
11
|
+
*/
|
|
12
|
+
export function useRebuildRegistryIndexV3Mutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => rebuildRegistryIndexV3(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -221,6 +221,8 @@ export type { QuarantineFilePathErrorResponse, QuarantineFilePathMutationPathPar
|
|
|
221
221
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
222
222
|
export type { ReTriggerWebhookExecutionErrorResponse, ReTriggerWebhookExecutionOkResponse, ReTriggerWebhookExecutionProps, ReTriggerWebhookExecutionQueryPathParams, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
223
223
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
224
|
+
export type { RebuildRegistryIndexV3ErrorResponse, RebuildRegistryIndexV3MutationPathParams, RebuildRegistryIndexV3MutationQueryParams, RebuildRegistryIndexV3OkResponse, RebuildRegistryIndexV3Props, } from './hooks/useRebuildRegistryIndexV3Mutation';
|
|
225
|
+
export { rebuildRegistryIndexV3, useRebuildRegistryIndexV3Mutation, } from './hooks/useRebuildRegistryIndexV3Mutation';
|
|
224
226
|
export type { RebuildVersionMetadataV3ErrorResponse, RebuildVersionMetadataV3MutationQueryParams, RebuildVersionMetadataV3OkResponse, RebuildVersionMetadataV3Props, RebuildVersionMetadataV3RequestBody, } from './hooks/useRebuildVersionMetadataV3Mutation';
|
|
225
227
|
export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
|
|
226
228
|
export type { RedirectHarnessArtifactErrorResponse, RedirectHarnessArtifactOkResponse, RedirectHarnessArtifactProps, RedirectHarnessArtifactQueryPathParams, RedirectHarnessArtifactQueryQueryParams, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
@@ -367,6 +369,7 @@ export type { MetadataValuesResponseV3Response } from './responses/MetadataValue
|
|
|
367
369
|
export type { NotFoundResponse } from './responses/NotFoundResponse';
|
|
368
370
|
export type { PlainTextResponseResponse } from './responses/PlainTextResponseResponse';
|
|
369
371
|
export type { QuarantinePathResponseResponse } from './responses/QuarantinePathResponseResponse';
|
|
372
|
+
export type { RebuildRegistryIndexAcceptedV3Response } from './responses/RebuildRegistryIndexAcceptedV3Response';
|
|
370
373
|
export type { RebuildVersionMetadataAcceptedV3Response } from './responses/RebuildVersionMetadataAcceptedV3Response';
|
|
371
374
|
export type { RedirectResponse } from './responses/RedirectResponse';
|
|
372
375
|
export type { RedirectV3Response } from './responses/RedirectV3Response';
|
|
@@ -477,6 +480,7 @@ export type { GoArtifactDetailConfig } from './schemas/GoArtifactDetailConfig';
|
|
|
477
480
|
export type { HelmArtifactDetail } from './schemas/HelmArtifactDetail';
|
|
478
481
|
export type { HelmArtifactDetailConfig } from './schemas/HelmArtifactDetailConfig';
|
|
479
482
|
export type { HelmArtifactManifest } from './schemas/HelmArtifactManifest';
|
|
483
|
+
export type { HelmHttpArtifactDetailConfig } from './schemas/HelmHttpArtifactDetailConfig';
|
|
480
484
|
export type { HuggingFaceArtifactDetailConfig } from './schemas/HuggingFaceArtifactDetailConfig';
|
|
481
485
|
export type { JfrogReplicationRegistry } from './schemas/JfrogReplicationRegistry';
|
|
482
486
|
export type { LicensePolicyFailureDetailConfigV3 } from './schemas/LicensePolicyFailureDetailConfigV3';
|
|
@@ -109,6 +109,7 @@ export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegi
|
|
|
109
109
|
export { patchLifecycleRuleV3, usePatchLifecycleRuleV3Mutation, } from './hooks/usePatchLifecycleRuleV3Mutation';
|
|
110
110
|
export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
|
|
111
111
|
export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
|
|
112
|
+
export { rebuildRegistryIndexV3, useRebuildRegistryIndexV3Mutation, } from './hooks/useRebuildRegistryIndexV3Mutation';
|
|
112
113
|
export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
|
|
113
114
|
export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
|
|
114
115
|
export { restorePackageV3, useRestorePackageV3Mutation } from './hooks/useRestorePackageV3Mutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RebuildRegistryIndexAcceptedV3Response = unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,6 +14,7 @@ import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConf
|
|
|
14
14
|
import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
|
|
15
15
|
import type { SwiftArtifactDetailConfig } from '../schemas/SwiftArtifactDetailConfig';
|
|
16
16
|
import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetailConfig';
|
|
17
|
+
import type { HelmHttpArtifactDetailConfig } from '../schemas/HelmHttpArtifactDetailConfig';
|
|
17
18
|
import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
|
|
18
19
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
19
20
|
import type { UserInfo } from '../schemas/UserInfo';
|
|
@@ -21,7 +22,7 @@ import type { PackageType } from '../schemas/PackageType';
|
|
|
21
22
|
/**
|
|
22
23
|
* Artifact Detail
|
|
23
24
|
*/
|
|
24
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | DebianArtifactDetailConfig) & {
|
|
25
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig) & {
|
|
25
26
|
artifactKey?: {
|
|
26
27
|
[key: string]: string;
|
|
27
28
|
};
|
|
@@ -7,6 +7,9 @@ import type { RegistryType } from '../schemas/RegistryType';
|
|
|
7
7
|
* Artifact Metadata
|
|
8
8
|
*/
|
|
9
9
|
export interface ArtifactMetadata {
|
|
10
|
+
artifactKey?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
10
13
|
artifactType?: ArtifactType;
|
|
11
14
|
/**
|
|
12
15
|
* Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
|
|
@@ -7,6 +7,9 @@ import type { RegistryType } from '../schemas/RegistryType';
|
|
|
7
7
|
* Artifact Version Metadata
|
|
8
8
|
*/
|
|
9
9
|
export interface ArtifactVersionMetadata {
|
|
10
|
+
artifactKey?: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
10
13
|
artifactType?: ArtifactType;
|
|
11
14
|
/**
|
|
12
15
|
* Timestamp in milliseconds when the artifact was soft deleted. Null if not deleted.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'SWIFT';
|
|
4
|
+
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | '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, SWIFT, PUPPET, RAW. This field is extensible; clients must handle unknown values.
|
|
2
|
+
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RAW, DEBIAN, CONAN. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
|
|
2
|
+
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
2
3
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
3
4
|
import type { PackageKindV3 } from '../schemas/PackageKindV3';
|
|
4
5
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
@@ -7,6 +8,7 @@ import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
|
7
8
|
*/
|
|
8
9
|
export interface PackageV3 {
|
|
9
10
|
deletedAt?: DeletedAtMsV3;
|
|
11
|
+
deletedBy?: UserInfoV3;
|
|
10
12
|
/**
|
|
11
13
|
* @format int64
|
|
12
14
|
*/
|
|
@@ -18,6 +20,9 @@ export interface PackageV3 {
|
|
|
18
20
|
isPublic: boolean;
|
|
19
21
|
isQuarantined?: boolean;
|
|
20
22
|
latestVersion: string;
|
|
23
|
+
latestVersionArtifactKey?: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
21
26
|
modifiedAt?: ModifiedAtMsV3;
|
|
22
27
|
name: string;
|
|
23
28
|
packageKind?: PackageKindV3;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
|
|
2
|
+
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
2
3
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
3
4
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
4
5
|
import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
@@ -11,6 +12,7 @@ export interface RegistryV3 {
|
|
|
11
12
|
*/
|
|
12
13
|
artifactsCount?: number;
|
|
13
14
|
deletedAt?: DeletedAtMsV3;
|
|
15
|
+
deletedBy?: UserInfoV3;
|
|
14
16
|
description?: string;
|
|
15
17
|
/**
|
|
16
18
|
* @format int64
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DeletedAtMsV3 } from '../schemas/DeletedAtMsV3';
|
|
2
|
+
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
2
3
|
import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
|
|
3
4
|
import type { FirewallModeV3 } from '../schemas/FirewallModeV3';
|
|
4
5
|
import type { ResourceMetadataV3 } from '../schemas/ResourceMetadataV3';
|
|
5
6
|
import type { ModifiedAtMsV3 } from '../schemas/ModifiedAtMsV3';
|
|
6
7
|
import type { PackageKindV3 } from '../schemas/PackageKindV3';
|
|
7
8
|
import type { PackageTypeV3 } from '../schemas/PackageTypeV3';
|
|
8
|
-
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
9
9
|
import type { RegistryTypeV3 } from '../schemas/RegistryTypeV3';
|
|
10
10
|
import type { ScanStatusV3 } from '../schemas/ScanStatusV3';
|
|
11
11
|
/**
|
|
@@ -16,6 +16,7 @@ export interface VersionV3 {
|
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
};
|
|
18
18
|
deletedAt?: DeletedAtMsV3;
|
|
19
|
+
deletedBy?: UserInfoV3;
|
|
19
20
|
deploymentMetadata?: DeploymentMetadataV3;
|
|
20
21
|
/**
|
|
21
22
|
* @format int64
|