@harnessio/react-har-service-client 0.0.24 → 0.0.25

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,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { RedirectResponse } from '../responses/RedirectResponse';
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 RedirectHarnessArtifactQueryPathParams {
11
+ registry_identifier: string;
12
+ artifact: string;
13
+ }
14
+ export interface RedirectHarnessArtifactQueryQueryParams {
15
+ accountIdentifier?: string;
16
+ version?: string;
17
+ }
18
+ export type RedirectHarnessArtifactOkResponse = ResponseWithPagination<unknown>;
19
+ export type RedirectHarnessArtifactErrorResponse = RedirectResponse | BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
20
+ export interface RedirectHarnessArtifactProps extends RedirectHarnessArtifactQueryPathParams, Omit<FetcherOptions<RedirectHarnessArtifactQueryQueryParams, unknown>, 'url'> {
21
+ queryParams: RedirectHarnessArtifactQueryQueryParams;
22
+ }
23
+ export declare function redirectHarnessArtifact(props: RedirectHarnessArtifactProps): Promise<RedirectHarnessArtifactOkResponse>;
24
+ /**
25
+ * Redirect to Harness Artifact Page
26
+ */
27
+ export declare function useRedirectHarnessArtifactQuery(props: RedirectHarnessArtifactProps, options?: Omit<UseQueryOptions<RedirectHarnessArtifactOkResponse, RedirectHarnessArtifactErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<RedirectHarnessArtifactOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function redirectHarnessArtifact(props) {
7
+ return fetcher(Object.assign({ url: `/registry/${props.registry_identifier}/artifact/${props.artifact}/redirect`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Redirect to Harness Artifact Page
11
+ */
12
+ export function useRedirectHarnessArtifactQuery(props, options) {
13
+ return useQuery(['RedirectHarnessArtifact', props.registry_identifier, props.artifact, props.queryParams], ({ signal }) => redirectHarnessArtifact(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -49,6 +49,8 @@ export type { ListArtifactLabelsErrorResponse, ListArtifactLabelsOkResponse, Lis
49
49
  export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
50
50
  export type { ModifyRegistryErrorResponse, ModifyRegistryMutationPathParams, ModifyRegistryOkResponse, ModifyRegistryProps, ModifyRegistryRequestBody, } from './hooks/useModifyRegistryMutation';
51
51
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
52
+ export type { RedirectHarnessArtifactErrorResponse, RedirectHarnessArtifactOkResponse, RedirectHarnessArtifactProps, RedirectHarnessArtifactQueryPathParams, RedirectHarnessArtifactQueryQueryParams, } from './hooks/useRedirectHarnessArtifactQuery';
53
+ export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
52
54
  export type { UpdateArtifactLabelsErrorResponse, UpdateArtifactLabelsMutationPathParams, UpdateArtifactLabelsOkResponse, UpdateArtifactLabelsProps, UpdateArtifactLabelsRequestBody, } from './hooks/useUpdateArtifactLabelsMutation';
53
55
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
54
56
  export type { ArtifactLabelRequestRequestBody } from './requestBodies/ArtifactLabelRequestRequestBody';
@@ -74,6 +76,7 @@ export type { ListArtifactVersionResponseResponse } from './responses/ListArtifa
74
76
  export type { ListRegistryArtifactResponseResponse } from './responses/ListRegistryArtifactResponseResponse';
75
77
  export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
76
78
  export type { NotFoundResponse } from './responses/NotFoundResponse';
79
+ export type { RedirectResponse } from './responses/RedirectResponse';
77
80
  export type { RegistryResponseResponse } from './responses/RegistryResponseResponse';
78
81
  export type { SuccessResponse } from './responses/SuccessResponse';
79
82
  export type { UnauthenticatedResponse } from './responses/UnauthenticatedResponse';
@@ -94,6 +97,7 @@ export type { CleanupPolicy } from './schemas/CleanupPolicy';
94
97
  export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
95
98
  export type { ClientSetupSection } from './schemas/ClientSetupSection';
96
99
  export type { ClientSetupStep } from './schemas/ClientSetupStep';
100
+ export type { ClientSetupStepCommand } from './schemas/ClientSetupStepCommand';
97
101
  export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
98
102
  export type { DeploymentDetails } from './schemas/DeploymentDetails';
99
103
  export type { DeploymentMetadata } from './schemas/DeploymentMetadata';
@@ -23,4 +23,5 @@ export { getHelmArtifactManifest, useGetHelmArtifactManifestQuery, } from './hoo
23
23
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
24
24
  export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
25
25
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
26
+ export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
26
27
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
@@ -0,0 +1 @@
1
+ export type RedirectResponse = unknown;
@@ -1,9 +1,10 @@
1
+ import type { ClientSetupStepCommand } from '../schemas/ClientSetupStepCommand';
1
2
  import type { ClientSetupStepType } from '../schemas/ClientSetupStepType';
2
3
  /**
3
4
  * Client Setup Step
4
5
  */
5
6
  export interface ClientSetupStep {
6
- commands?: string[];
7
+ commands?: ClientSetupStepCommand[];
7
8
  header?: string;
8
9
  type?: ClientSetupStepType;
9
10
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Client Setup Step Command
3
+ */
4
+ export interface ClientSetupStepCommand {
5
+ label?: string;
6
+ value?: 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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",