@harnessio/react-har-service-client 0.0.11 → 0.0.13
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/useCreateRegistryMutation.d.ts +2 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +4 -3
- package/dist/har-service/src/services/hooks/useGetAllArtifactsQuery.d.ts +6 -4
- package/dist/har-service/src/services/hooks/useGetAllRegistriesQuery.d.ts +5 -4
- package/dist/har-service/src/services/hooks/useListArtifactLabelsQuery.d.ts +2 -2
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +4 -1
- package/dist/har-service/src/services/schemas/ArtifactStats.d.ts +12 -0
- package/dist/har-service/src/services/schemas/ArtifactSummary.d.ts +4 -1
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +6 -0
- package/dist/har-service/src/services/schemas/DockerArtifactDetail.d.ts +3 -0
- package/dist/har-service/src/services/schemas/HelmArtifactDetail.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ListArtifact.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ListArtifactLabel.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ListArtifactVersion.d.ts +3 -0
- package/dist/har-service/src/services/schemas/ListRegistry.d.ts +3 -0
- package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +6 -0
- package/dist/har-service/src/services/schemas/UserPassword.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } 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 { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
|
|
@@ -11,7 +12,7 @@ export interface CreateRegistryMutationQueryParams {
|
|
|
11
12
|
}
|
|
12
13
|
export type CreateRegistryRequestBody = RegistryRequestRequestBody;
|
|
13
14
|
export type CreateRegistryOkResponse = ResponseWithPagination<RegistryResponseResponse>;
|
|
14
|
-
export type CreateRegistryErrorResponse = UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
15
|
+
export type CreateRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | InternalServerErrorResponse;
|
|
15
16
|
export interface CreateRegistryProps extends Omit<FetcherOptions<CreateRegistryMutationQueryParams, CreateRegistryRequestBody>, 'url'> {
|
|
16
17
|
queryParams: CreateRegistryMutationQueryParams;
|
|
17
18
|
body: CreateRegistryRequestBody;
|
|
@@ -13,16 +13,17 @@ export interface GetAllArtifactVersionsQueryPathParams {
|
|
|
13
13
|
}
|
|
14
14
|
export interface GetAllArtifactVersionsQueryQueryParams {
|
|
15
15
|
/**
|
|
16
|
-
* @format
|
|
16
|
+
* @format int64
|
|
17
17
|
* @default 1
|
|
18
18
|
*/
|
|
19
19
|
page?: number;
|
|
20
20
|
/**
|
|
21
|
-
* @format
|
|
21
|
+
* @format int64
|
|
22
22
|
* @default 20
|
|
23
23
|
*/
|
|
24
24
|
size?: number;
|
|
25
|
-
|
|
25
|
+
sort_order?: string;
|
|
26
|
+
sort_field?: string;
|
|
26
27
|
search_term?: string;
|
|
27
28
|
}
|
|
28
29
|
export type GetAllArtifactVersionsOkResponse = ResponseWithPagination<ListArtifactVersionResponseResponse>;
|
|
@@ -11,19 +11,21 @@ export interface GetAllArtifactsQueryPathParams {
|
|
|
11
11
|
space_ref: string;
|
|
12
12
|
}
|
|
13
13
|
export interface GetAllArtifactsQueryQueryParams {
|
|
14
|
-
|
|
14
|
+
label?: string[];
|
|
15
|
+
package_type?: string[];
|
|
15
16
|
reg_identifier?: string;
|
|
16
17
|
/**
|
|
17
|
-
* @format
|
|
18
|
+
* @format int64
|
|
18
19
|
* @default 1
|
|
19
20
|
*/
|
|
20
21
|
page?: number;
|
|
21
22
|
/**
|
|
22
|
-
* @format
|
|
23
|
+
* @format int64
|
|
23
24
|
* @default 20
|
|
24
25
|
*/
|
|
25
26
|
size?: number;
|
|
26
|
-
|
|
27
|
+
sort_order?: string;
|
|
28
|
+
sort_field?: string;
|
|
27
29
|
search_term?: string;
|
|
28
30
|
}
|
|
29
31
|
export type GetAllArtifactsOkResponse = ResponseWithPagination<ListArtifactResponseResponse>;
|
|
@@ -11,19 +11,20 @@ export interface GetAllRegistriesQueryPathParams {
|
|
|
11
11
|
space_ref: string;
|
|
12
12
|
}
|
|
13
13
|
export interface GetAllRegistriesQueryQueryParams {
|
|
14
|
-
|
|
14
|
+
package_type?: string[];
|
|
15
15
|
type?: 'UPSTREAM' | 'VIRTUAL';
|
|
16
16
|
/**
|
|
17
|
-
* @format
|
|
17
|
+
* @format int64
|
|
18
18
|
* @default 1
|
|
19
19
|
*/
|
|
20
20
|
page?: number;
|
|
21
21
|
/**
|
|
22
|
-
* @format
|
|
22
|
+
* @format int64
|
|
23
23
|
* @default 20
|
|
24
24
|
*/
|
|
25
25
|
size?: number;
|
|
26
|
-
|
|
26
|
+
sort_order?: string;
|
|
27
|
+
sort_field?: string;
|
|
27
28
|
search_term?: string;
|
|
28
29
|
}
|
|
29
30
|
export type GetAllRegistriesOkResponse = ResponseWithPagination<ListRegistryResponseResponse>;
|
|
@@ -12,12 +12,12 @@ export interface ListArtifactLabelsQueryPathParams {
|
|
|
12
12
|
}
|
|
13
13
|
export interface ListArtifactLabelsQueryQueryParams {
|
|
14
14
|
/**
|
|
15
|
-
* @format
|
|
15
|
+
* @format int64
|
|
16
16
|
* @default 1
|
|
17
17
|
*/
|
|
18
18
|
page?: number;
|
|
19
19
|
/**
|
|
20
|
-
* @format
|
|
20
|
+
* @format int64
|
|
21
21
|
* @default 20
|
|
22
22
|
*/
|
|
23
23
|
size?: number;
|
|
@@ -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;
|
|
@@ -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[];
|