@harnessio/react-har-service-client 0.0.4 → 0.0.5

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.
@@ -12,6 +12,7 @@ export interface GetAllArtifactVersionsQueryQueryParams {
12
12
  page?: number;
13
13
  size?: number;
14
14
  sort?: string[];
15
+ searchTerm?: string;
15
16
  }
16
17
  export interface GetAllArtifactVersionsQueryHeaderParams {
17
18
  'Harness-Account'?: string;
@@ -9,11 +9,12 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllArtifactsQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageType?: string[];
12
+ packageTypes?: string[];
13
13
  repokey?: string;
14
14
  page?: number;
15
15
  size?: number;
16
16
  sort?: string[];
17
+ searchTerm?: string;
17
18
  }
18
19
  export interface GetAllArtifactsQueryHeaderParams {
19
20
  'Harness-Account'?: string;
@@ -9,10 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllRepositoriesQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageType?: string[];
12
+ packageTypes?: string[];
13
13
  page?: number;
14
14
  size?: number;
15
15
  sort?: string[];
16
+ searchTerm?: string;
16
17
  }
17
18
  export interface GetAllRepositoriesQueryHeaderParams {
18
19
  'Harness-Account'?: string;
@@ -9,10 +9,11 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetAllUpstreamProxiesQueryQueryParams {
10
10
  org?: string;
11
11
  project?: string;
12
- packageType?: string[];
12
+ packageTypes?: string[];
13
13
  page?: number;
14
14
  size?: number;
15
15
  sort?: string[];
16
+ searchTerm?: string;
16
17
  }
17
18
  export interface GetAllUpstreamProxiesQueryHeaderParams {
18
19
  'Harness-Account'?: string;
@@ -8,8 +8,7 @@ import type { ResponseWithPagination } from '../helpers';
8
8
  import { FetcherOptions } from '../../../../fetcher/index.js';
9
9
  export interface GetArtifactManifestQueryQueryParams {
10
10
  repokey?: string;
11
- artifact: string;
12
- version: string;
11
+ digest: string;
13
12
  }
14
13
  export interface GetArtifactManifestQueryHeaderParams {
15
14
  'Harness-Account'?: string;
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ClientSetupDetailsResponseResponse } from '../responses/ClientSetupDetailsResponseResponse';
3
+ import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
+ import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
+ import type { NotFoundResponse } from '../responses/NotFoundResponse';
6
+ import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
7
+ import type { ResponseWithPagination } from '../helpers';
8
+ import { FetcherOptions } from '../../../../fetcher/index.js';
9
+ export interface GetClientSetupDetailsQueryQueryParams {
10
+ packageType?: string;
11
+ }
12
+ export interface GetClientSetupDetailsQueryHeaderParams {
13
+ 'Harness-Account'?: string;
14
+ }
15
+ export type GetClientSetupDetailsOkResponse = ResponseWithPagination<ClientSetupDetailsResponseResponse>;
16
+ export type GetClientSetupDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export interface GetClientSetupDetailsProps extends Omit<FetcherOptions<GetClientSetupDetailsQueryQueryParams, unknown, GetClientSetupDetailsQueryHeaderParams>, 'url'> {
18
+ queryParams: GetClientSetupDetailsQueryQueryParams;
19
+ }
20
+ export declare function getClientSetupDetails(props: GetClientSetupDetailsProps): Promise<GetClientSetupDetailsOkResponse>;
21
+ /**
22
+ * Returns CLI Client Setup Details based on package type
23
+ */
24
+ export declare function useGetClientSetupDetailsQuery(props: GetClientSetupDetailsProps, options?: Omit<UseQueryOptions<GetClientSetupDetailsOkResponse, GetClientSetupDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetClientSetupDetailsOkResponse, 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 getClientSetupDetails(props) {
7
+ return fetcher(Object.assign({ url: `/client-setup-details`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns CLI Client Setup Details based on package type
11
+ */
12
+ export function useGetClientSetupDetailsQuery(props, options) {
13
+ return useQuery(['GetClientSetupDetails', props.queryParams], ({ signal }) => getClientSetupDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -25,6 +25,8 @@ export type { GetArtifactTagSummaryErrorResponse, GetArtifactTagSummaryOkRespons
25
25
  export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
26
26
  export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
27
27
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
28
+ export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
29
+ export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
28
30
  export type { GetRepositoryErrorResponse, GetRepositoryOkResponse, GetRepositoryProps, GetRepositoryQueryPathParams, GetRepositoryQueryQueryParams, } from './hooks/useGetRepositoryQuery';
29
31
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
30
32
  export type { GetUpstreamProxyErrorResponse, GetUpstreamProxyOkResponse, GetUpstreamProxyProps, GetUpstreamProxyQueryPathParams, GetUpstreamProxyQueryQueryParams, } from './hooks/useGetUpstreamProxyQuery';
@@ -40,6 +42,7 @@ export type { ArtifactManifestResponseResponse } from './responses/ArtifactManif
40
42
  export type { ArtifactSummaryResponseResponse } from './responses/ArtifactSummaryResponseResponse';
41
43
  export type { ArtifactVersionSummaryResponseResponse } from './responses/ArtifactVersionSummaryResponseResponse';
42
44
  export type { BadRequestResponse } from './responses/BadRequestResponse';
45
+ export type { ClientSetupDetailsResponseResponse } from './responses/ClientSetupDetailsResponseResponse';
43
46
  export type { InternalServerErrorResponse } from './responses/InternalServerErrorResponse';
44
47
  export type { ListArtifactResponseResponse } from './responses/ListArtifactResponseResponse';
45
48
  export type { ListArtifactVersionResponseResponse } from './responses/ListArtifactVersionResponseResponse';
@@ -60,6 +63,9 @@ export type { ArtifactSummary } from './schemas/ArtifactSummary';
60
63
  export type { ArtifactVersionMetadata } from './schemas/ArtifactVersionMetadata';
61
64
  export type { ArtifactVersionSummary } from './schemas/ArtifactVersionSummary';
62
65
  export type { AuthType } from './schemas/AuthType';
66
+ export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
67
+ export type { ClientSetupSection } from './schemas/ClientSetupSection';
68
+ export type { ClientSetupStep } from './schemas/ClientSetupStep';
63
69
  export type { Error } from './schemas/Error';
64
70
  export type { Label } from './schemas/Label';
65
71
  export type { LayerEntry } from './schemas/LayerEntry';
@@ -11,6 +11,7 @@ export { getArtifactManifest, useGetArtifactManifestQuery, } from './hooks/useGe
11
11
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
12
12
  export { getArtifactTagSummary, useGetArtifactTagSummaryQuery, } from './hooks/useGetArtifactTagSummaryQuery';
13
13
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
14
+ export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
14
15
  export { getRepository, useGetRepositoryQuery } from './hooks/useGetRepositoryQuery';
15
16
  export { getUpstreamProxy, useGetUpstreamProxyQuery } from './hooks/useGetUpstreamProxyQuery';
16
17
  export { modifyRepository, useModifyRepositoryMutation } from './hooks/useModifyRepositoryMutation';
@@ -0,0 +1,6 @@
1
+ import type { ClientSetupDetails } from '../schemas/ClientSetupDetails';
2
+ import type { Status } from '../schemas/Status';
3
+ export interface ClientSetupDetailsResponseResponse {
4
+ data: ClientSetupDetails;
5
+ status: Status;
6
+ }
@@ -0,0 +1,9 @@
1
+ import type { ClientSetupSection } from '../schemas/ClientSetupSection';
2
+ /**
3
+ * Client Setup Details
4
+ */
5
+ export interface ClientSetupDetails {
6
+ mainHeader: string;
7
+ secHeader: string;
8
+ sections: ClientSetupSection[];
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { ClientSetupStep } from '../schemas/ClientSetupStep';
2
+ /**
3
+ * Client Setup Section
4
+ */
5
+ export interface ClientSetupSection {
6
+ header?: string;
7
+ steps?: ClientSetupStep[];
8
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Client Setup Step
3
+ */
4
+ export interface ClientSetupStep {
5
+ commands?: string[];
6
+ header?: 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 {};
@@ -6,6 +6,7 @@ import type { Type } from '../schemas/Type';
6
6
  */
7
7
  export interface RepositoryMetadata {
8
8
  artifactsCount?: number;
9
+ description?: string;
9
10
  downloadsCount?: number;
10
11
  labels?: Label;
11
12
  lastModified?: string;
@@ -14,4 +15,5 @@ export interface RepositoryMetadata {
14
15
  repoSize?: string;
15
16
  type: Type;
16
17
  upstreamProxiesCount?: number;
18
+ url: string;
17
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",