@harnessio/react-har-service-client 0.33.0 → 0.35.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.
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CreateBulkDownloadRequestResponseResponse } from '../responses/CreateBulkDownloadRequestResponseResponse';
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 CreateBulkDownloadRequestV1QueryPathParams {
11
+ registry_ref: string;
12
+ artifact: string;
13
+ version: string;
14
+ }
15
+ export type CreateBulkDownloadRequestV1OkResponse = ResponseWithPagination<CreateBulkDownloadRequestResponseResponse>;
16
+ export type CreateBulkDownloadRequestV1ErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface CreateBulkDownloadRequestV1Props extends CreateBulkDownloadRequestV1QueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
18
+ }
19
+ export declare function createBulkDownloadRequestV1(props: CreateBulkDownloadRequestV1Props): Promise<CreateBulkDownloadRequestV1OkResponse>;
20
+ /**
21
+ * Create a bulk download request
22
+ */
23
+ export declare function useCreateBulkDownloadRequestV1Query(props: CreateBulkDownloadRequestV1Props, options?: Omit<UseQueryOptions<CreateBulkDownloadRequestV1OkResponse, CreateBulkDownloadRequestV1ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CreateBulkDownloadRequestV1OkResponse, 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 createBulkDownloadRequestV1(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_ref}/artifact/${props.artifact}/version/${props.version}/bulk-download`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Create a bulk download request
11
+ */
12
+ export function useCreateBulkDownloadRequestV1Query(props, options) {
13
+ return useQuery(['CreateBulkDownloadRequestV1', props.registry_ref, props.artifact, props.version], ({ signal }) => createBulkDownloadRequestV1(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,4 +1,6 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
+ export type { CreateBulkDownloadRequestV1ErrorResponse, CreateBulkDownloadRequestV1OkResponse, CreateBulkDownloadRequestV1Props, CreateBulkDownloadRequestV1QueryPathParams, } from './hooks/useCreateBulkDownloadRequestV1Query';
3
+ export { createBulkDownloadRequestV1, useCreateBulkDownloadRequestV1Query, } from './hooks/useCreateBulkDownloadRequestV1Query';
2
4
  export type { CreateRegistryErrorResponse, CreateRegistryMutationQueryParams, CreateRegistryOkResponse, CreateRegistryProps, CreateRegistryRequestBody, } from './hooks/useCreateRegistryMutation';
3
5
  export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
4
6
  export type { CreateReplicationRuleErrorResponse, CreateReplicationRuleMutationQueryParams, CreateReplicationRuleOkResponse, CreateReplicationRuleProps, CreateReplicationRuleRequestBody, } from './hooks/useCreateReplicationRuleMutation';
@@ -135,6 +137,7 @@ export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummar
135
137
  export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
136
138
  export type { BadRequestResponse } from './responses/BadRequestResponse';
137
139
  export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
140
+ export type { CreateBulkDownloadRequestResponseResponse } from './responses/CreateBulkDownloadRequestResponseResponse';
138
141
  export type { DockerArtifactDetailIntegrationResponseResponse } from './responses/DockerArtifactDetailIntegrationResponseResponse';
139
142
  export type { DockerArtifactDetailResponseResponse } from './responses/DockerArtifactDetailResponseResponse';
140
143
  export type { DockerArtifactManifestResponseResponse } from './responses/DockerArtifactManifestResponseResponse';
@@ -192,6 +195,7 @@ export type { ClientSetupStepConfig } from './schemas/ClientSetupStepConfig';
192
195
  export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
193
196
  export type { ComposerArtifactDetailConfig } from './schemas/ComposerArtifactDetailConfig';
194
197
  export type { CondaArtifactDetailConfig } from './schemas/CondaArtifactDetailConfig';
198
+ export type { CreateBulkDownloadRequestResponseOutput } from './schemas/CreateBulkDownloadRequestResponseOutput';
195
199
  export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
196
200
  export type { DeploymentDetails } from './schemas/DeploymentDetails';
197
201
  export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
@@ -1,3 +1,4 @@
1
+ export { createBulkDownloadRequestV1, useCreateBulkDownloadRequestV1Query, } from './hooks/useCreateBulkDownloadRequestV1Query';
1
2
  export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
2
3
  export { createReplicationRule, useCreateReplicationRuleMutation, } from './hooks/useCreateReplicationRuleMutation';
3
4
  export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
@@ -0,0 +1,6 @@
1
+ import type { CreateBulkDownloadRequestResponseOutput } from '../schemas/CreateBulkDownloadRequestResponseOutput';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface CreateBulkDownloadRequestResponseResponse {
4
+ data: CreateBulkDownloadRequestResponseOutput;
5
+ status: Status;
6
+ }
@@ -32,5 +32,7 @@ export interface ArtifactMetadata {
32
32
  quarantineReason?: string;
33
33
  registryIdentifier: string;
34
34
  registryPath: string;
35
+ registryUUID: string;
36
+ uuid: string;
35
37
  version: string;
36
38
  }
@@ -23,4 +23,6 @@ export interface ArtifactSummary {
23
23
  labels?: string[];
24
24
  modifiedAt?: string;
25
25
  packageType: PackageType;
26
+ registryUUID: string;
27
+ uuid: string;
26
28
  }
@@ -29,5 +29,7 @@ export interface ArtifactVersionMetadata {
29
29
  quarantineReason?: string;
30
30
  registryIdentifier: string;
31
31
  registryPath: string;
32
+ registryUUID: string;
32
33
  size?: string;
34
+ uuid: string;
33
35
  }
@@ -18,9 +18,11 @@ export interface ArtifactVersionSummary {
18
18
  isQuarantined?: boolean;
19
19
  packageType: PackageType;
20
20
  quarantineReason?: string;
21
+ registryUUID: string;
21
22
  sscaArtifactId?: string;
22
23
  sscaArtifactSourceId?: string;
23
24
  stoExecutionId?: string;
24
25
  stoPipelineId?: string;
26
+ uuid: string;
25
27
  version: string;
26
28
  }
@@ -0,0 +1,7 @@
1
+ export interface CreateBulkDownloadRequestResponseOutput {
2
+ /**
3
+ * Unique identifier for the download request
4
+ * @example "12345678-1234-1234-1234-123456789012"
5
+ */
6
+ downloadId: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -29,4 +29,5 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
29
29
  policyRefs?: string[];
30
30
  scanners?: Scanner[];
31
31
  url: string;
32
+ uuid: string;
32
33
  }
@@ -28,4 +28,6 @@ export interface RegistryArtifactMetadata {
28
28
  quarantineReason?: string;
29
29
  registryIdentifier: string;
30
30
  registryPath: string;
31
+ registryUUID: string;
32
+ uuid: string;
31
33
  }
@@ -31,4 +31,5 @@ export interface RegistryMetadata {
31
31
  registrySize?: string;
32
32
  type: RegistryType;
33
33
  url: string;
34
+ uuid: string;
34
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",