@harnessio/react-har-service-client 0.0.10 → 0.0.12

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.
Files changed (37) hide show
  1. package/dist/har-service/src/services/hooks/useDeleteRegistryMutation.d.ts +2 -1
  2. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +6 -4
  3. package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +8 -8
  4. package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.d.ts +7 -11
  5. package/dist/har-service/src/services/hooks/useGetArtifactStatsForRegistryQuery.d.ts +2 -1
  6. package/dist/har-service/src/services/hooks/useGetArtifactStatsForSpaceQuery.d.ts +2 -1
  7. package/dist/har-service/src/services/hooks/useGetArtifactStatsQuery.d.ts +2 -1
  8. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +2 -1
  9. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +2 -1
  10. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.d.ts +8 -2
  11. package/dist/har-service/src/services/hooks/useGetClientSetupDetailsQuery.js +1 -1
  12. package/dist/har-service/src/services/hooks/useGetDockerArtifactDetailsQuery.d.ts +2 -1
  13. package/dist/har-service/src/services/hooks/useGetDockerArtifactLayersQuery.d.ts +2 -1
  14. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestQuery.d.ts +2 -1
  15. package/dist/har-service/src/services/hooks/useGetDockerArtifactManifestsQuery.d.ts +2 -1
  16. package/dist/har-service/src/services/hooks/useGetHelmArtifactDetailsQuery.d.ts +2 -1
  17. package/dist/har-service/src/services/hooks/useGetHelmArtifactManifestQuery.d.ts +2 -1
  18. package/dist/har-service/src/services/hooks/useGetRegistryQuery.d.ts +2 -1
  19. package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.d.ts +4 -3
  20. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +2 -1
  21. package/dist/har-service/src/services/index.d.ts +2 -1
  22. package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +4 -1
  23. package/dist/har-service/src/services/schemas/ArtifactStats.d.ts +12 -0
  24. package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +4 -1
  25. package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +6 -0
  26. package/dist/har-service/src/services/schemas/ClientSetupStep.d.ts +2 -0
  27. package/dist/har-service/src/services/schemas/ClientSetupStep.js +0 -3
  28. package/dist/har-service/src/services/schemas/ClientSetupStepType.d.ts +4 -0
  29. package/dist/har-service/src/services/schemas/ClientSetupStepType.js +4 -0
  30. package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +3 -0
  31. package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +3 -0
  32. package/dist/har-service/src/services/schemas/ListArtifact.d.ts +3 -0
  33. package/dist/har-service/src/services/schemas/ListArtifactLabel.d.ts +3 -0
  34. package/dist/har-service/src/services/schemas/ListArtifactVersion.d.ts +3 -0
  35. package/dist/har-service/src/services/schemas/ListRegistry.d.ts +3 -0
  36. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +6 -0
  37. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { SuccessResponse } from '../responses/SuccessResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -10,7 +11,7 @@ export interface DeleteRegistryMutationPathParams {
10
11
  registry_ref: string;
11
12
  }
12
13
  export type DeleteRegistryOkResponse = ResponseWithPagination<SuccessResponse>;
13
- export type DeleteRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
14
+ export type DeleteRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
14
15
  export interface DeleteRegistryProps extends DeleteRegistryMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
15
16
  }
16
17
  export declare function deleteRegistry(props: DeleteRegistryProps): Promise<DeleteRegistryOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ListArtifactVersionResponseResponse } from '../responses/ListArtifactVersionResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -12,20 +13,21 @@ export interface GetAllArtifactVersionsQueryPathParams {
12
13
  }
13
14
  export interface GetAllArtifactVersionsQueryQueryParams {
14
15
  /**
15
- * @format int32
16
+ * @format int64
16
17
  * @default 1
17
18
  */
18
19
  page?: number;
19
20
  /**
20
- * @format int32
21
+ * @format int64
21
22
  * @default 20
22
23
  */
23
24
  size?: number;
24
- sort?: string;
25
+ sort_order?: string;
26
+ sort_field?: string;
25
27
  search_term?: string;
26
28
  }
27
29
  export type GetAllArtifactVersionsOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
28
- export type GetAllArtifactVersionsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
30
+ export type GetAllArtifactVersionsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
29
31
  export interface GetAllArtifactVersionsProps extends GetAllArtifactVersionsQueryPathParams, Omit<FetcherOptions<GetAllArtifactVersionsQueryQueryParams, unknown>, 'url'> {
30
32
  queryParams: GetAllArtifactVersionsQueryQueryParams;
31
33
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ListArtifactResponseResponse } from '../responses/ListArtifactResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -10,26 +11,25 @@ export interface GetAllArtifactsQueryPathParams {
10
11
  space_ref: string;
11
12
  }
12
13
  export interface GetAllArtifactsQueryQueryParams {
13
- /**
14
- * refers to package
15
- */
16
- package_types?: 'DOCKER' | 'GENERIC' | 'HELM' | 'MAVEN';
14
+ label?: string[];
15
+ package_type?: string[];
17
16
  reg_identifier?: string;
18
17
  /**
19
- * @format int32
18
+ * @format int64
20
19
  * @default 1
21
20
  */
22
21
  page?: number;
23
22
  /**
24
- * @format int32
23
+ * @format int64
25
24
  * @default 20
26
25
  */
27
26
  size?: number;
28
- sort?: string;
27
+ sort_order?: string;
28
+ sort_field?: string;
29
29
  search_term?: string;
30
30
  }
31
31
  export type GetAllArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
32
- export type GetAllArtifactsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
32
+ export type GetAllArtifactsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
33
33
  export interface GetAllArtifactsProps extends GetAllArtifactsQueryPathParams, Omit<FetcherOptions<GetAllArtifactsQueryQueryParams, unknown>, 'url'> {
34
34
  queryParams: GetAllArtifactsQueryQueryParams;
35
35
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ListRegistryResponseResponse } from '../responses/ListRegistryResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -10,29 +11,24 @@ export interface GetAllRegistriesQueryPathParams {
10
11
  space_ref: string;
11
12
  }
12
13
  export interface GetAllRegistriesQueryQueryParams {
13
- /**
14
- * refers to package
15
- */
16
- package_types?: 'DOCKER' | 'GENERIC' | 'HELM' | 'MAVEN';
17
- /**
18
- * refers to type of registry i.e virtual or upstream
19
- */
14
+ package_type?: string[];
20
15
  type?: 'UPSTREAM' | 'VIRTUAL';
21
16
  /**
22
- * @format int32
17
+ * @format int64
23
18
  * @default 1
24
19
  */
25
20
  page?: number;
26
21
  /**
27
- * @format int32
22
+ * @format int64
28
23
  * @default 20
29
24
  */
30
25
  size?: number;
31
- sort?: string;
26
+ sort_order?: string;
27
+ sort_field?: string;
32
28
  search_term?: string;
33
29
  }
34
30
  export type GetAllRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
35
- export type GetAllRegistriesErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
31
+ export type GetAllRegistriesErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
36
32
  export interface GetAllRegistriesProps extends GetAllRegistriesQueryPathParams, Omit<FetcherOptions<GetAllRegistriesQueryQueryParams, unknown>, 'url'> {
37
33
  queryParams: GetAllRegistriesQueryQueryParams;
38
34
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactStatsResponseResponse } from '../responses/ArtifactStatsResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -14,7 +15,7 @@ export interface GetArtifactStatsForRegistryQueryQueryParams {
14
15
  to?: string;
15
16
  }
16
17
  export type GetArtifactStatsForRegistryOkResponse = ResponseWithPagination<ArtifactStatsResponseResponse>;
17
- export type GetArtifactStatsForRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
18
+ export type GetArtifactStatsForRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
18
19
  export interface GetArtifactStatsForRegistryProps extends GetArtifactStatsForRegistryQueryPathParams, Omit<FetcherOptions<GetArtifactStatsForRegistryQueryQueryParams, unknown>, 'url'> {
19
20
  queryParams: GetArtifactStatsForRegistryQueryQueryParams;
20
21
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactStatsResponseResponse } from '../responses/ArtifactStatsResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -14,7 +15,7 @@ export interface GetArtifactStatsForSpaceQueryQueryParams {
14
15
  to?: string;
15
16
  }
16
17
  export type GetArtifactStatsForSpaceOkResponse = ResponseWithPagination<ArtifactStatsResponseResponse>;
17
- export type GetArtifactStatsForSpaceErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
18
+ export type GetArtifactStatsForSpaceErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
18
19
  export interface GetArtifactStatsForSpaceProps extends GetArtifactStatsForSpaceQueryPathParams, Omit<FetcherOptions<GetArtifactStatsForSpaceQueryQueryParams, unknown>, 'url'> {
19
20
  queryParams: GetArtifactStatsForSpaceQueryQueryParams;
20
21
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactStatsResponseResponse } from '../responses/ArtifactStatsResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -15,7 +16,7 @@ export interface GetArtifactStatsQueryQueryParams {
15
16
  to?: string;
16
17
  }
17
18
  export type GetArtifactStatsOkResponse = ResponseWithPagination<ArtifactStatsResponseResponse>;
18
- export type GetArtifactStatsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export type GetArtifactStatsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
20
  export interface GetArtifactStatsProps extends GetArtifactStatsQueryPathParams, Omit<FetcherOptions<GetArtifactStatsQueryQueryParams, unknown>, 'url'> {
20
21
  queryParams: GetArtifactStatsQueryQueryParams;
21
22
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactSummaryResponseResponse } from '../responses/ArtifactSummaryResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -11,7 +12,7 @@ export interface GetArtifactSummaryQueryPathParams {
11
12
  artifact: string;
12
13
  }
13
14
  export type GetArtifactSummaryOkResponse = ResponseWithPagination<ArtifactSummaryResponseResponse>;
14
- export type GetArtifactSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
15
+ export type GetArtifactSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
15
16
  export interface GetArtifactSummaryProps extends GetArtifactSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
16
17
  }
17
18
  export declare function getArtifactSummary(props: GetArtifactSummaryProps): Promise<GetArtifactSummaryOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactVersionSummaryResponseResponse } from '../responses/ArtifactVersionSummaryResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -12,7 +13,7 @@ export interface GetArtifactVersionSummaryQueryPathParams {
12
13
  version: string;
13
14
  }
14
15
  export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
15
- export type GetArtifactVersionSummaryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
+ export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
17
  export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
17
18
  }
18
19
  export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ClientSetupDetailsResponseResponse } from '../responses/ClientSetupDetailsResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -9,9 +10,14 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
9
10
  export interface GetClientSetupDetailsQueryPathParams {
10
11
  registry_ref: string;
11
12
  }
13
+ export interface GetClientSetupDetailsQueryQueryParams {
14
+ artifact?: string;
15
+ version?: string;
16
+ }
12
17
  export type GetClientSetupDetailsOkResponse = ResponseWithPagination<ClientSetupDetailsResponseResponse>;
13
- export type GetClientSetupDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
14
- export interface GetClientSetupDetailsProps extends GetClientSetupDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
18
+ export type GetClientSetupDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export interface GetClientSetupDetailsProps extends GetClientSetupDetailsQueryPathParams, Omit<FetcherOptions<GetClientSetupDetailsQueryQueryParams, unknown>, 'url'> {
20
+ queryParams: GetClientSetupDetailsQueryQueryParams;
15
21
  }
16
22
  export declare function getClientSetupDetails(props: GetClientSetupDetailsProps): Promise<GetClientSetupDetailsOkResponse>;
17
23
  /**
@@ -10,5 +10,5 @@ export function getClientSetupDetails(props) {
10
10
  * Returns CLI Client Setup Details based on package type
11
11
  */
12
12
  export function useGetClientSetupDetailsQuery(props, options) {
13
- return useQuery(['GetClientSetupDetails', props.registry_ref], ({ signal }) => getClientSetupDetails(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['GetClientSetupDetails', props.registry_ref, props.queryParams], ({ signal }) => getClientSetupDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DockerArtifactDetailResponseResponse } from '../responses/DockerArtifactDetailResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -15,7 +16,7 @@ export interface GetDockerArtifactDetailsQueryQueryParams {
15
16
  digest: string;
16
17
  }
17
18
  export type GetDockerArtifactDetailsOkResponse = ResponseWithPagination<DockerArtifactDetailResponseResponse>;
18
- export type GetDockerArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export type GetDockerArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
20
  export interface GetDockerArtifactDetailsProps extends GetDockerArtifactDetailsQueryPathParams, Omit<FetcherOptions<GetDockerArtifactDetailsQueryQueryParams, unknown>, 'url'> {
20
21
  queryParams: GetDockerArtifactDetailsQueryQueryParams;
21
22
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DockerLayersResponseResponse } from '../responses/DockerLayersResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -15,7 +16,7 @@ export interface GetDockerArtifactLayersQueryQueryParams {
15
16
  digest: string;
16
17
  }
17
18
  export type GetDockerArtifactLayersOkResponse = ResponseWithPagination<DockerLayersResponseResponse>;
18
- export type GetDockerArtifactLayersErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export type GetDockerArtifactLayersErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
20
  export interface GetDockerArtifactLayersProps extends GetDockerArtifactLayersQueryPathParams, Omit<FetcherOptions<GetDockerArtifactLayersQueryQueryParams, unknown>, 'url'> {
20
21
  queryParams: GetDockerArtifactLayersQueryQueryParams;
21
22
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DockerArtifactManifestResponseResponse } from '../responses/DockerArtifactManifestResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -15,7 +16,7 @@ export interface GetDockerArtifactManifestQueryQueryParams {
15
16
  digest: string;
16
17
  }
17
18
  export type GetDockerArtifactManifestOkResponse = ResponseWithPagination<DockerArtifactManifestResponseResponse>;
18
- export type GetDockerArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
+ export type GetDockerArtifactManifestErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
19
20
  export interface GetDockerArtifactManifestProps extends GetDockerArtifactManifestQueryPathParams, Omit<FetcherOptions<GetDockerArtifactManifestQueryQueryParams, unknown>, 'url'> {
20
21
  queryParams: GetDockerArtifactManifestQueryQueryParams;
21
22
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DockerManifestsResponseResponse } from '../responses/DockerManifestsResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -12,7 +13,7 @@ export interface GetDockerArtifactManifestsQueryPathParams {
12
13
  version: string;
13
14
  }
14
15
  export type GetDockerArtifactManifestsOkResponse = ResponseWithPagination<DockerManifestsResponseResponse>;
15
- export type GetDockerArtifactManifestsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
+ export type GetDockerArtifactManifestsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
17
  export interface GetDockerArtifactManifestsProps extends GetDockerArtifactManifestsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
17
18
  }
18
19
  export declare function getDockerArtifactManifests(props: GetDockerArtifactManifestsProps): Promise<GetDockerArtifactManifestsOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { HelmArtifactDetailResponseResponse } from '../responses/HelmArtifactDetailResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -12,7 +13,7 @@ export interface GetHelmArtifactDetailsQueryPathParams {
12
13
  version: string;
13
14
  }
14
15
  export type GetHelmArtifactDetailsOkResponse = ResponseWithPagination<HelmArtifactDetailResponseResponse>;
15
- export type GetHelmArtifactDetailsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
+ export type GetHelmArtifactDetailsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
17
  export interface GetHelmArtifactDetailsProps extends GetHelmArtifactDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
17
18
  }
18
19
  export declare function getHelmArtifactDetails(props: GetHelmArtifactDetailsProps): Promise<GetHelmArtifactDetailsOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { HelmArtifactManifestResponseResponse } from '../responses/HelmArtifactManifestResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -12,7 +13,7 @@ export interface GetHelmArtifactManifestQueryPathParams {
12
13
  version: string;
13
14
  }
14
15
  export type GetHelmArtifactManifestOkResponse = ResponseWithPagination<HelmArtifactManifestResponseResponse>;
15
- export type GetHelmArtifactManifestErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
+ export type GetHelmArtifactManifestErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
16
17
  export interface GetHelmArtifactManifestProps extends GetHelmArtifactManifestQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
17
18
  }
18
19
  export declare function getHelmArtifactManifest(props: GetHelmArtifactManifestProps): Promise<GetHelmArtifactManifestOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { RegistryResponseResponse } from '../responses/RegistryResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -10,7 +11,7 @@ export interface GetRegistryQueryPathParams {
10
11
  registry_ref: string;
11
12
  }
12
13
  export type GetRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
13
- export type GetRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
14
+ export type GetRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
14
15
  export interface GetRegistryProps extends GetRegistryQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
15
16
  }
16
17
  export declare function getRegistry(props: GetRegistryProps): Promise<GetRegistryOkResponse>;
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ListArtifactLabelResponseResponse } from '../responses/ListArtifactLabelResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -11,19 +12,19 @@ export interface ListArtifactLabelsQueryPathParams {
11
12
  }
12
13
  export interface ListArtifactLabelsQueryQueryParams {
13
14
  /**
14
- * @format int32
15
+ * @format int64
15
16
  * @default 1
16
17
  */
17
18
  page?: number;
18
19
  /**
19
- * @format int32
20
+ * @format int64
20
21
  * @default 20
21
22
  */
22
23
  size?: number;
23
24
  search_term?: string;
24
25
  }
25
26
  export type ListArtifactLabelsOkResponse = ResponseWithPagination<ListArtifactLabelResponseResponse>;
26
- export type ListArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
27
+ export type ListArtifactLabelsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
27
28
  export interface ListArtifactLabelsProps extends ListArtifactLabelsQueryPathParams, Omit<FetcherOptions<ListArtifactLabelsQueryQueryParams, unknown>, 'url'> {
28
29
  queryParams: ListArtifactLabelsQueryQueryParams;
29
30
  }
@@ -1,5 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactLabelResponseResponse } from '../responses/ArtifactLabelResponseResponse';
3
+ import type { BadRequestResponse } from '../responses/BadRequestResponse';
3
4
  import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
4
5
  import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
5
6
  import type { NotFoundResponse } from '../responses/NotFoundResponse';
@@ -13,7 +14,7 @@ export interface UpdateArtifactLabelsMutationPathParams {
13
14
  }
14
15
  export type UpdateArtifactLabelsRequestBody = ArtifactLabelRequestRequestBody;
15
16
  export type UpdateArtifactLabelsOkResponse = ResponseWithPagination<ArtifactLabelResponseResponse>;
16
- export type UpdateArtifactLabelsErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
+ export type UpdateArtifactLabelsErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
17
18
  export interface UpdateArtifactLabelsProps extends UpdateArtifactLabelsMutationPathParams, Omit<FetcherOptions<unknown, UpdateArtifactLabelsRequestBody>, 'url'> {
18
19
  body: UpdateArtifactLabelsRequestBody;
19
20
  }
@@ -19,7 +19,7 @@ export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, Get
19
19
  export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
20
20
  export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
21
21
  export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
22
- export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, } from './hooks/useGetClientSetupDetailsQuery';
22
+ export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
23
23
  export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
24
24
  export type { GetDockerArtifactDetailsErrorResponse, GetDockerArtifactDetailsOkResponse, GetDockerArtifactDetailsProps, GetDockerArtifactDetailsQueryPathParams, GetDockerArtifactDetailsQueryQueryParams, } from './hooks/useGetDockerArtifactDetailsQuery';
25
25
  export { getDockerArtifactDetails, useGetDockerArtifactDetailsQuery, } from './hooks/useGetDockerArtifactDetailsQuery';
@@ -77,6 +77,7 @@ export type { CleanupPolicy } from './schemas/CleanupPolicy';
77
77
  export type { ClientSetupDetails } from './schemas/ClientSetupDetails';
78
78
  export type { ClientSetupSection } from './schemas/ClientSetupSection';
79
79
  export type { ClientSetupStep } from './schemas/ClientSetupStep';
80
+ export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
80
81
  export type { DockerArtifactDetail } from './schemas/DockerArtifactDetail';
81
82
  export type { DockerArtifactManifest } from './schemas/DockerArtifactManifest';
82
83
  export type { DockerLayerEntry } from './schemas/DockerLayerEntry';
@@ -3,12 +3,15 @@ import type { PackageType } from '../schemas/PackageType';
3
3
  * Artifact Metadata
4
4
  */
5
5
  export interface ArtifactMetadata {
6
+ /**
7
+ * @format int64
8
+ */
6
9
  downloadsCount?: number;
10
+ labels?: string[];
7
11
  lastModified?: string;
8
12
  latestVersion: string;
9
13
  name: string;
10
14
  packageType?: PackageType;
11
15
  registryIdentifier: string;
12
16
  registryPath: string;
13
- tags?: string[];
14
17
  }
@@ -2,8 +2,20 @@
2
2
  * Harness Artifact Stats
3
3
  */
4
4
  export interface ArtifactStats {
5
+ /**
6
+ * @format int64
7
+ */
5
8
  downloadCount?: number;
9
+ /**
10
+ * @format int64
11
+ */
6
12
  downloadSize?: number;
13
+ /**
14
+ * @format int64
15
+ */
7
16
  totalStorageSize?: number;
17
+ /**
18
+ * @format int64
19
+ */
8
20
  uploadSize?: number;
9
21
  }
@@ -4,9 +4,12 @@ import type { PackageType } from '../schemas/PackageType';
4
4
  */
5
5
  export interface ArtifactSummary {
6
6
  createdAt?: string;
7
+ /**
8
+ * @format int64
9
+ */
7
10
  downloadsCount?: number;
8
11
  imageName: string;
12
+ labels?: string[];
9
13
  modifiedAt?: string;
10
14
  packageType: PackageType;
11
- tags?: string[];
12
15
  }
@@ -3,7 +3,13 @@ import type { PackageType } from '../schemas/PackageType';
3
3
  * Artifact Version Metadata
4
4
  */
5
5
  export interface ArtifactVersionMetadata {
6
+ /**
7
+ * @format int64
8
+ */
6
9
  digestCount?: number;
10
+ /**
11
+ * @format int64
12
+ */
7
13
  downloadsCount?: number;
8
14
  islatestVersion?: boolean;
9
15
  lastModified?: string;
@@ -1,7 +1,9 @@
1
+ import type { ClientSetupStepType } from '../schemas/ClientSetupStepType';
1
2
  /**
2
3
  * Client Setup Step
3
4
  */
4
5
  export interface ClientSetupStep {
5
6
  commands?: string[];
6
7
  header?: string;
8
+ type?: ClientSetupStepType;
7
9
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * ClientSetupStepType type
3
+ */
4
+ export type ClientSetupStepType = 'GenerateToken' | 'Static';
@@ -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 {};
@@ -4,6 +4,9 @@ import type { PackageType } from '../schemas/PackageType';
4
4
  */
5
5
  export interface DockerArtifactDetail {
6
6
  createdAt?: string;
7
+ /**
8
+ * @format int64
9
+ */
7
10
  downloadsCount?: number;
8
11
  imageName: string;
9
12
  isLatestVersion?: boolean;
@@ -5,6 +5,9 @@ import type { PackageType } from '../schemas/PackageType';
5
5
  export interface HelmArtifactDetail {
6
6
  artifact?: string;
7
7
  createdAt?: string;
8
+ /**
9
+ * @format int64
10
+ */
8
11
  downloadsCount?: number;
9
12
  isLatestVersion?: boolean;
10
13
  modifiedAt?: string;
@@ -9,16 +9,19 @@ export interface ListArtifact {
9
9
  artifacts: ArtifactMetadata[];
10
10
  /**
11
11
  * The total number of items
12
+ * @format int64
12
13
  * @example 1
13
14
  */
14
15
  itemCount?: number;
15
16
  /**
16
17
  * The total number of pages
18
+ * @format int64
17
19
  * @example 100
18
20
  */
19
21
  pageCount?: number;
20
22
  /**
21
23
  * The current page
24
+ * @format int64
22
25
  * @example 0
23
26
  */
24
27
  pageIndex?: number;
@@ -4,17 +4,20 @@
4
4
  export interface ListArtifactLabel {
5
5
  /**
6
6
  * The total number of items
7
+ * @format int64
7
8
  * @example 1
8
9
  */
9
10
  itemCount?: number;
10
11
  labels: string[];
11
12
  /**
12
13
  * The total number of pages
14
+ * @format int64
13
15
  * @example 100
14
16
  */
15
17
  pageCount?: number;
16
18
  /**
17
19
  * The current page
20
+ * @format int64
18
21
  * @example 0
19
22
  */
20
23
  pageIndex?: number;
@@ -9,16 +9,19 @@ export interface ListArtifactVersion {
9
9
  artifactVersions?: ArtifactVersionMetadata[];
10
10
  /**
11
11
  * The total number of items
12
+ * @format int64
12
13
  * @example 1
13
14
  */
14
15
  itemCount?: number;
15
16
  /**
16
17
  * The total number of pages
18
+ * @format int64
17
19
  * @example 100
18
20
  */
19
21
  pageCount?: number;
20
22
  /**
21
23
  * The current page
24
+ * @format int64
22
25
  * @example 0
23
26
  */
24
27
  pageIndex?: number;
@@ -5,16 +5,19 @@ import type { RegistryMetadata } from '../schemas/RegistryMetadata';
5
5
  export interface ListRegistry {
6
6
  /**
7
7
  * The total number of items
8
+ * @format int64
8
9
  * @example 1
9
10
  */
10
11
  itemCount?: number;
11
12
  /**
12
13
  * The total number of pages
14
+ * @format int64
13
15
  * @example 100
14
16
  */
15
17
  pageCount?: number;
16
18
  /**
17
19
  * The current page
20
+ * @format int64
18
21
  * @example 0
19
22
  */
20
23
  pageIndex?: number;
@@ -4,8 +4,14 @@ import type { RegistryType } from '../schemas/RegistryType';
4
4
  * Harness Artifact Registry Metadata
5
5
  */
6
6
  export interface RegistryMetadata {
7
+ /**
8
+ * @format int64
9
+ */
7
10
  artifactsCount?: number;
8
11
  description?: string;
12
+ /**
13
+ * @format int64
14
+ */
9
15
  downloadsCount?: number;
10
16
  identifier: string;
11
17
  labels?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",