@harnessio/react-har-service-client 0.0.20 → 0.0.22
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/fetcher/index.js +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +5 -1
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.js +7 -1
- package/dist/har-service/src/services/index.d.ts +1 -1
- package/dist/har-service/src/services/schemas/ArtifactMetadata.d.ts +19 -0
- package/dist/har-service/src/services/schemas/ArtifactVersionMetadata.d.ts +5 -0
- package/dist/har-service/src/services/schemas/BuildDetails.d.ts +5 -1
- package/dist/har-service/src/services/schemas/StoDigestMetadata.d.ts +2 -2
- package/package.json +1 -1
package/dist/fetcher/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export function fetcher(options) {
|
|
|
58
58
|
const asJson = contentType && JSON_CONTENT_TYPES.some((h) => contentType.startsWith(h));
|
|
59
59
|
const data = yield (asJson ? response.json() : response.text());
|
|
60
60
|
if (response.ok) {
|
|
61
|
-
return Object.assign({ data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
|
|
61
|
+
return Object.assign({ content: data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
|
|
62
62
|
}
|
|
63
63
|
throw data;
|
|
64
64
|
});
|
|
@@ -12,9 +12,13 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
|
+
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
|
+
digest: string;
|
|
17
|
+
}
|
|
15
18
|
export type GetArtifactVersionSummaryOkResponse = ResponseWithPagination<ArtifactVersionSummaryResponseResponse>;
|
|
16
19
|
export type GetArtifactVersionSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
17
|
-
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<
|
|
20
|
+
export interface GetArtifactVersionSummaryProps extends GetArtifactVersionSummaryQueryPathParams, Omit<FetcherOptions<GetArtifactVersionSummaryQueryQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: GetArtifactVersionSummaryQueryQueryParams;
|
|
18
22
|
}
|
|
19
23
|
export declare function getArtifactVersionSummary(props: GetArtifactVersionSummaryProps): Promise<GetArtifactVersionSummaryOkResponse>;
|
|
20
24
|
/**
|
|
@@ -10,5 +10,11 @@ export function getArtifactVersionSummary(props) {
|
|
|
10
10
|
* Get Artifact Version Summary.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetArtifactVersionSummaryQuery(props, options) {
|
|
13
|
-
return useQuery([
|
|
13
|
+
return useQuery([
|
|
14
|
+
'GetArtifactVersionSummary',
|
|
15
|
+
props.registry_ref,
|
|
16
|
+
props.artifact,
|
|
17
|
+
props.version,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getArtifactVersionSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
20
|
}
|
|
@@ -21,7 +21,7 @@ export type { GetArtifactStatsErrorResponse, GetArtifactStatsOkResponse, GetArti
|
|
|
21
21
|
export { getArtifactStats, useGetArtifactStatsQuery } from './hooks/useGetArtifactStatsQuery';
|
|
22
22
|
export type { GetArtifactSummaryErrorResponse, GetArtifactSummaryOkResponse, GetArtifactSummaryProps, GetArtifactSummaryQueryPathParams, } from './hooks/useGetArtifactSummaryQuery';
|
|
23
23
|
export { getArtifactSummary, useGetArtifactSummaryQuery } from './hooks/useGetArtifactSummaryQuery';
|
|
24
|
-
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
24
|
+
export type { GetArtifactVersionSummaryErrorResponse, GetArtifactVersionSummaryOkResponse, GetArtifactVersionSummaryProps, GetArtifactVersionSummaryQueryPathParams, GetArtifactVersionSummaryQueryQueryParams, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
25
25
|
export { getArtifactVersionSummary, useGetArtifactVersionSummaryQuery, } from './hooks/useGetArtifactVersionSummaryQuery';
|
|
26
26
|
export type { GetClientSetupDetailsErrorResponse, GetClientSetupDetailsOkResponse, GetClientSetupDetailsProps, GetClientSetupDetailsQueryPathParams, GetClientSetupDetailsQueryQueryParams, } from './hooks/useGetClientSetupDetailsQuery';
|
|
27
27
|
export { getClientSetupDetails, useGetClientSetupDetailsQuery, } from './hooks/useGetClientSetupDetailsQuery';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
2
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
3
|
+
import type { StoDigestMetadata } from '../schemas/StoDigestMetadata';
|
|
3
4
|
import type { StoMetadata } from '../schemas/StoMetadata';
|
|
4
5
|
/**
|
|
5
6
|
* Artifact Metadata
|
|
@@ -12,11 +13,29 @@ export interface ArtifactMetadata {
|
|
|
12
13
|
downloadsCount?: number;
|
|
13
14
|
labels?: string[];
|
|
14
15
|
lastModified?: string;
|
|
16
|
+
latestVersion: string;
|
|
15
17
|
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* @format int64
|
|
20
|
+
*/
|
|
21
|
+
nonProdEnvCount?: number;
|
|
16
22
|
packageType?: PackageType;
|
|
23
|
+
/**
|
|
24
|
+
* @format int64
|
|
25
|
+
*/
|
|
26
|
+
prodEnvCount?: number;
|
|
17
27
|
pullCommand?: string;
|
|
18
28
|
registryIdentifier: string;
|
|
19
29
|
registryPath: string;
|
|
30
|
+
scannedDigest?: StoDigestMetadata[];
|
|
31
|
+
/**
|
|
32
|
+
* @format int64
|
|
33
|
+
*/
|
|
34
|
+
scannedDigestCount?: number;
|
|
20
35
|
stoMetadata?: StoMetadata;
|
|
36
|
+
/**
|
|
37
|
+
* @format int64
|
|
38
|
+
*/
|
|
39
|
+
totalDigestCount?: number;
|
|
21
40
|
version?: string;
|
|
22
41
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import type { DeploymentMetadata } from '../schemas/DeploymentMetadata';
|
|
1
2
|
import type { PackageType } from '../schemas/PackageType';
|
|
2
3
|
/**
|
|
3
4
|
* Artifact Version Metadata
|
|
4
5
|
*/
|
|
5
6
|
export interface ArtifactVersionMetadata {
|
|
7
|
+
deploymentMetadata?: DeploymentMetadata;
|
|
8
|
+
/**
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
6
11
|
digestCount?: number;
|
|
7
12
|
/**
|
|
8
13
|
* @format int64
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface BuildDetails {
|
|
2
|
-
|
|
2
|
+
orgIdentifier?: string;
|
|
3
3
|
pipelineDisplayName?: string;
|
|
4
|
+
pipelineExecutionId?: string;
|
|
4
5
|
pipelineIdentifier?: string;
|
|
6
|
+
projectIdentifier?: string;
|
|
7
|
+
stageExecutionId?: string;
|
|
8
|
+
stepExecutionId?: string;
|
|
5
9
|
}
|