@harnessio/react-ssca-manager-client 0.3.0 → 0.5.0
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/ssca-manager/src/services/hooks/{useGetArtifactDetailComponentViewMutation.d.ts → useGetArtifactDetailComponentViewQuery.d.ts} +8 -11
- package/dist/ssca-manager/src/services/hooks/{useGetArtifactDetailComponentViewMutation.js → useGetArtifactDetailComponentViewQuery.js} +11 -3
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailDeploymentViewQuery.d.ts +41 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailDeploymentViewQuery.js +22 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailsQuery.d.ts +22 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetPolicyViolationsQuery.d.ts +1 -4
- package/dist/ssca-manager/src/services/hooks/{useListArtifactsMutation.d.ts → useListArtifactsQuery.d.ts} +8 -11
- package/dist/ssca-manager/src/services/hooks/{useListArtifactsMutation.js → useListArtifactsQuery.js} +3 -3
- package/dist/ssca-manager/src/services/hooks/useListLatestArtifactsQuery.d.ts +36 -0
- package/dist/ssca-manager/src/services/hooks/{useListLatestArtifactsMutation.js → useListLatestArtifactsQuery.js} +3 -3
- package/dist/ssca-manager/src/services/index.d.ts +15 -6
- package/dist/ssca-manager/src/services/index.js +5 -3
- package/dist/ssca-manager/src/services/responses/ArtifactDeploymentViewResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactDeploymentViewResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/ArtifactDetailResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactDetailResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactDeploymentViewRequestBody.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactDeploymentViewRequestBody.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactDeploymentViewResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactDeploymentViewResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactDetailResponse.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactDetailResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactListingResponse.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useListLatestArtifactsMutation.d.ts +0 -39
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ArtifactComponentViewResponseBodyResponse } from '../responses/ArtifactComponentViewResponseBodyResponse';
|
|
3
3
|
import type { ArtifactComponentViewRequestBody } from '../schemas/ArtifactComponentViewRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface GetArtifactDetailComponentViewQueryPathParams {
|
|
7
7
|
org: string;
|
|
8
8
|
project: string;
|
|
9
9
|
artifact: string;
|
|
10
10
|
tag: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface GetArtifactDetailComponentViewQueryQueryParams {
|
|
13
13
|
/**
|
|
14
14
|
* @default 30
|
|
15
15
|
*/
|
|
@@ -22,23 +22,20 @@ export interface GetArtifactDetailComponentViewMutationQueryParams {
|
|
|
22
22
|
* @default 0
|
|
23
23
|
*/
|
|
24
24
|
page?: number;
|
|
25
|
-
|
|
26
|
-
* @default "name"
|
|
27
|
-
*/
|
|
28
|
-
sort?: 'created' | 'identifier' | 'license' | 'name' | 'supplier' | 'updated';
|
|
25
|
+
sort?: {};
|
|
29
26
|
}
|
|
30
|
-
export interface
|
|
27
|
+
export interface GetArtifactDetailComponentViewQueryHeaderParams {
|
|
31
28
|
'Harness-Account'?: string;
|
|
32
29
|
}
|
|
33
30
|
export type GetArtifactDetailComponentViewRequestBody = ArtifactComponentViewRequestBody;
|
|
34
31
|
export type GetArtifactDetailComponentViewOkResponse = ResponseWithPagination<ArtifactComponentViewResponseBodyResponse>;
|
|
35
32
|
export type GetArtifactDetailComponentViewErrorResponse = unknown;
|
|
36
|
-
export interface GetArtifactDetailComponentViewProps extends
|
|
37
|
-
queryParams:
|
|
33
|
+
export interface GetArtifactDetailComponentViewProps extends GetArtifactDetailComponentViewQueryPathParams, Omit<FetcherOptions<GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, GetArtifactDetailComponentViewQueryHeaderParams>, 'url'> {
|
|
34
|
+
queryParams: GetArtifactDetailComponentViewQueryQueryParams;
|
|
38
35
|
body: GetArtifactDetailComponentViewRequestBody;
|
|
39
36
|
}
|
|
40
37
|
export declare function getArtifactDetailComponentView(props: GetArtifactDetailComponentViewProps): Promise<GetArtifactDetailComponentViewOkResponse>;
|
|
41
38
|
/**
|
|
42
39
|
* Get artifact detail component view
|
|
43
40
|
*/
|
|
44
|
-
export declare function
|
|
41
|
+
export declare function useGetArtifactDetailComponentViewQuery(props: GetArtifactDetailComponentViewProps, options?: Omit<UseQueryOptions<GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailComponentViewOkResponse, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
|
-
import {
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactDetailComponentView(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/artifact/${props.artifact}/tag/${props.tag}/components`, method: 'POST' }, props));
|
|
@@ -9,6 +9,14 @@ export function getArtifactDetailComponentView(props) {
|
|
|
9
9
|
/**
|
|
10
10
|
* Get artifact detail component view
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useGetArtifactDetailComponentViewQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactDetailComponentView',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.tag,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
props.body,
|
|
21
|
+
], ({ signal }) => getArtifactDetailComponentView(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
22
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactDeploymentViewResponseBodyResponse } from '../responses/ArtifactDeploymentViewResponseBodyResponse';
|
|
3
|
+
import type { ArtifactDeploymentViewRequestBody } from '../schemas/ArtifactDeploymentViewRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetArtifactDetailDeploymentViewQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
tag: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetArtifactDetailDeploymentViewQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* @default 30
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @default "ASC"
|
|
19
|
+
*/
|
|
20
|
+
order?: 'ASC' | 'DESC';
|
|
21
|
+
/**
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
page?: number;
|
|
25
|
+
sort?: {};
|
|
26
|
+
}
|
|
27
|
+
export interface GetArtifactDetailDeploymentViewQueryHeaderParams {
|
|
28
|
+
'Harness-Account'?: string;
|
|
29
|
+
}
|
|
30
|
+
export type GetArtifactDetailDeploymentViewRequestBody = ArtifactDeploymentViewRequestBody;
|
|
31
|
+
export type GetArtifactDetailDeploymentViewOkResponse = ResponseWithPagination<ArtifactDeploymentViewResponseBodyResponse>;
|
|
32
|
+
export type GetArtifactDetailDeploymentViewErrorResponse = unknown;
|
|
33
|
+
export interface GetArtifactDetailDeploymentViewProps extends GetArtifactDetailDeploymentViewQueryPathParams, Omit<FetcherOptions<GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, GetArtifactDetailDeploymentViewQueryHeaderParams>, 'url'> {
|
|
34
|
+
queryParams: GetArtifactDetailDeploymentViewQueryQueryParams;
|
|
35
|
+
body: GetArtifactDetailDeploymentViewRequestBody;
|
|
36
|
+
}
|
|
37
|
+
export declare function getArtifactDetailDeploymentView(props: GetArtifactDetailDeploymentViewProps): Promise<GetArtifactDetailDeploymentViewOkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Get artifact detail deployment view
|
|
40
|
+
*/
|
|
41
|
+
export declare function useGetArtifactDetailDeploymentViewQuery(props: GetArtifactDetailDeploymentViewProps, options?: Omit<UseQueryOptions<GetArtifactDetailDeploymentViewOkResponse, GetArtifactDetailDeploymentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailDeploymentViewOkResponse, unknown>;
|
|
@@ -0,0 +1,22 @@
|
|
|
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 getArtifactDetailDeploymentView(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/artifact/${props.artifact}/tag/${props.tag}/deployments`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifact detail deployment view
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactDetailDeploymentViewQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactDetailDeploymentView',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.tag,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
props.body,
|
|
21
|
+
], ({ signal }) => getArtifactDetailDeploymentView(Object.assign(Object.assign({}, props), { signal })), options);
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactDetailResponseBodyResponse } from '../responses/ArtifactDetailResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactDetailsQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
tag: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactDetailsQueryHeaderParams {
|
|
12
|
+
'Harness-Account'?: string;
|
|
13
|
+
}
|
|
14
|
+
export type GetArtifactDetailsOkResponse = ResponseWithPagination<ArtifactDetailResponseBodyResponse | unknown>;
|
|
15
|
+
export type GetArtifactDetailsErrorResponse = unknown;
|
|
16
|
+
export interface GetArtifactDetailsProps extends GetArtifactDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactDetailsQueryHeaderParams>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function getArtifactDetails(props: GetArtifactDetailsProps): Promise<GetArtifactDetailsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get artifact details
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetArtifactDetailsQuery(props: GetArtifactDetailsProps, options?: Omit<UseQueryOptions<GetArtifactDetailsOkResponse, GetArtifactDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailsOkResponse, 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 getArtifactDetails(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/artifact/${props.artifact}/tag/${props.tag}/details`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifact details
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactDetailsQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactDetails', props.org, props.project, props.artifact, props.tag], ({ signal }) => getArtifactDetails(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -20,10 +20,7 @@ export interface GetPolicyViolationsQueryQueryParams {
|
|
|
20
20
|
* @default 0
|
|
21
21
|
*/
|
|
22
22
|
page?: number;
|
|
23
|
-
|
|
24
|
-
* @default "name"
|
|
25
|
-
*/
|
|
26
|
-
sort?: 'created' | 'identifier' | 'license' | 'name' | 'supplier' | 'updated';
|
|
23
|
+
sort?: {};
|
|
27
24
|
search_text?: string;
|
|
28
25
|
}
|
|
29
26
|
export interface GetPolicyViolationsQueryHeaderParams {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ArtifactListingResponseBodyResponse } from '../responses/ArtifactListingResponseBodyResponse';
|
|
3
3
|
import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface ListArtifactsQueryPathParams {
|
|
7
7
|
org: string;
|
|
8
8
|
project: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ListArtifactsQueryQueryParams {
|
|
11
11
|
/**
|
|
12
12
|
* @default 30
|
|
13
13
|
*/
|
|
@@ -20,23 +20,20 @@ export interface ListArtifactsMutationQueryParams {
|
|
|
20
20
|
* @default 0
|
|
21
21
|
*/
|
|
22
22
|
page?: number;
|
|
23
|
-
|
|
24
|
-
* @default "name"
|
|
25
|
-
*/
|
|
26
|
-
sort?: 'created' | 'identifier' | 'license' | 'name' | 'supplier' | 'updated';
|
|
23
|
+
sort?: {};
|
|
27
24
|
}
|
|
28
|
-
export interface
|
|
25
|
+
export interface ListArtifactsQueryHeaderParams {
|
|
29
26
|
'Harness-Account'?: string;
|
|
30
27
|
}
|
|
31
28
|
export type ListArtifactsRequestBody = ArtifactListingRequestBodyRequestBody;
|
|
32
29
|
export type ListArtifactsOkResponse = ResponseWithPagination<ArtifactListingResponseBodyResponse>;
|
|
33
30
|
export type ListArtifactsErrorResponse = unknown;
|
|
34
|
-
export interface ListArtifactsProps extends
|
|
35
|
-
queryParams:
|
|
31
|
+
export interface ListArtifactsProps extends ListArtifactsQueryPathParams, Omit<FetcherOptions<ListArtifactsQueryQueryParams, ListArtifactsRequestBody, ListArtifactsQueryHeaderParams>, 'url'> {
|
|
32
|
+
queryParams: ListArtifactsQueryQueryParams;
|
|
36
33
|
body: ListArtifactsRequestBody;
|
|
37
34
|
}
|
|
38
35
|
export declare function listArtifacts(props: ListArtifactsProps): Promise<ListArtifactsOkResponse>;
|
|
39
36
|
/**
|
|
40
37
|
* List all artifacts
|
|
41
38
|
*/
|
|
42
|
-
export declare function
|
|
39
|
+
export declare function useListArtifactsQuery(props: ListArtifactsProps, options?: Omit<UseQueryOptions<ListArtifactsOkResponse, ListArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactsOkResponse, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
|
-
import {
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listArtifacts(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/artifacts`, method: 'POST' }, props));
|
|
@@ -9,6 +9,6 @@ export function listArtifacts(props) {
|
|
|
9
9
|
/**
|
|
10
10
|
* List all artifacts
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useListArtifactsQuery(props, options) {
|
|
13
|
+
return useQuery(['listArtifacts', props.org, props.project, props.queryParams, props.body], ({ signal }) => listArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactListingResponseBodyResponse } from '../responses/ArtifactListingResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListLatestArtifactsQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListLatestArtifactsQueryQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* @default 30
|
|
12
|
+
*/
|
|
13
|
+
limit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default "ASC"
|
|
16
|
+
*/
|
|
17
|
+
order?: 'ASC' | 'DESC';
|
|
18
|
+
/**
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
page?: number;
|
|
22
|
+
sort?: {};
|
|
23
|
+
}
|
|
24
|
+
export interface ListLatestArtifactsQueryHeaderParams {
|
|
25
|
+
'Harness-Account'?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListLatestArtifactsOkResponse = ResponseWithPagination<ArtifactListingResponseBodyResponse>;
|
|
28
|
+
export type ListLatestArtifactsErrorResponse = unknown;
|
|
29
|
+
export interface ListLatestArtifactsProps extends ListLatestArtifactsQueryPathParams, Omit<FetcherOptions<ListLatestArtifactsQueryQueryParams, unknown, ListLatestArtifactsQueryHeaderParams>, 'url'> {
|
|
30
|
+
queryParams: ListLatestArtifactsQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export declare function listLatestArtifacts(props: ListLatestArtifactsProps): Promise<ListLatestArtifactsOkResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* List latest version of all artifacts
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListLatestArtifactsQuery(props: ListLatestArtifactsProps, options?: Omit<UseQueryOptions<ListLatestArtifactsOkResponse, ListLatestArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListLatestArtifactsOkResponse, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
|
-
import {
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function listLatestArtifacts(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/grouped-artifacts`, method: 'POST' }, props));
|
|
@@ -9,6 +9,6 @@ export function listLatestArtifacts(props) {
|
|
|
9
9
|
/**
|
|
10
10
|
* List latest version of all artifacts
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useListLatestArtifactsQuery(props, options) {
|
|
13
|
+
return useQuery(['listLatestArtifacts', props.org, props.project, props.queryParams], ({ signal }) => listLatestArtifacts(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, } from './hooks/useDownloadSbomQuery';
|
|
3
3
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
4
|
-
export type { GetArtifactDetailComponentViewErrorResponse,
|
|
5
|
-
export { getArtifactDetailComponentView,
|
|
4
|
+
export type { GetArtifactDetailComponentViewErrorResponse, GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewProps, GetArtifactDetailComponentViewQueryPathParams, GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
5
|
+
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
6
|
+
export type { GetArtifactDetailDeploymentViewErrorResponse, GetArtifactDetailDeploymentViewOkResponse, GetArtifactDetailDeploymentViewProps, GetArtifactDetailDeploymentViewQueryPathParams, GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
7
|
+
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
8
|
+
export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryPathParams, } from './hooks/useGetArtifactDetailsQuery';
|
|
9
|
+
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
6
10
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
7
11
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
8
|
-
export type { ListArtifactsErrorResponse,
|
|
9
|
-
export { listArtifacts,
|
|
10
|
-
export type { ListLatestArtifactsErrorResponse,
|
|
11
|
-
export { listLatestArtifacts,
|
|
12
|
+
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryPathParams, ListArtifactsQueryQueryParams, ListArtifactsRequestBody, } from './hooks/useListArtifactsQuery';
|
|
13
|
+
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
14
|
+
export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, ListLatestArtifactsProps, ListLatestArtifactsQueryPathParams, ListLatestArtifactsQueryQueryParams, } from './hooks/useListLatestArtifactsQuery';
|
|
15
|
+
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
12
16
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
13
17
|
export type { ArtifactComponentViewResponseBodyResponse } from './responses/ArtifactComponentViewResponseBodyResponse';
|
|
18
|
+
export type { ArtifactDeploymentViewResponseBodyResponse } from './responses/ArtifactDeploymentViewResponseBodyResponse';
|
|
19
|
+
export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDetailResponseBodyResponse';
|
|
14
20
|
export type { ArtifactListingResponseBodyResponse } from './responses/ArtifactListingResponseBodyResponse';
|
|
15
21
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
16
22
|
export type { PolicyViolationResponseResponse } from './responses/PolicyViolationResponseResponse';
|
|
17
23
|
export type { ArtifactComponentViewRequestBody } from './schemas/ArtifactComponentViewRequestBody';
|
|
18
24
|
export type { ArtifactComponentViewResponse } from './schemas/ArtifactComponentViewResponse';
|
|
25
|
+
export type { ArtifactDeploymentViewRequestBody } from './schemas/ArtifactDeploymentViewRequestBody';
|
|
26
|
+
export type { ArtifactDeploymentViewResponse } from './schemas/ArtifactDeploymentViewResponse';
|
|
27
|
+
export type { ArtifactDetailResponse } from './schemas/ArtifactDetailResponse';
|
|
19
28
|
export type { ArtifactListingRequestBody } from './schemas/ArtifactListingRequestBody';
|
|
20
29
|
export type { ArtifactListingResponse } from './schemas/ArtifactListingResponse';
|
|
21
30
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
|
|
2
|
-
export { getArtifactDetailComponentView,
|
|
2
|
+
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
3
|
+
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
4
|
+
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
3
5
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
4
|
-
export { listArtifacts,
|
|
5
|
-
export { listLatestArtifacts,
|
|
6
|
+
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
7
|
+
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
package/dist/ssca-manager/src/services/responses/ArtifactDeploymentViewResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ArtifactDeploymentViewResponse {
|
|
2
|
+
allow_list_policy_violation?: string;
|
|
3
|
+
attested_status?: 'FAIL' | 'PASS';
|
|
4
|
+
deny_list_policy_violation?: string;
|
|
5
|
+
enforcement_id?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
pipeline_execution_id?: string;
|
|
9
|
+
pipeline_id?: string;
|
|
10
|
+
triggered_at?: string;
|
|
11
|
+
triggered_by?: string;
|
|
12
|
+
triggered_by_id?: string;
|
|
13
|
+
type?: 'NONPROD' | 'PROD';
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ArtifactDetailResponse {
|
|
2
|
+
artifact_id: string;
|
|
3
|
+
artifact_name: string;
|
|
4
|
+
build_pipeline_execution_id?: string;
|
|
5
|
+
build_pipeline_id?: string;
|
|
6
|
+
components_count?: number;
|
|
7
|
+
non_prod_env_count?: number;
|
|
8
|
+
prod_env_count?: number;
|
|
9
|
+
tag: string;
|
|
10
|
+
updated?: string;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactListingResponseBodyResponse } from '../responses/ArtifactListingResponseBodyResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface ListLatestArtifactsMutationPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ListLatestArtifactsMutationQueryParams {
|
|
10
|
-
/**
|
|
11
|
-
* @default 30
|
|
12
|
-
*/
|
|
13
|
-
limit?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @default "ASC"
|
|
16
|
-
*/
|
|
17
|
-
order?: 'ASC' | 'DESC';
|
|
18
|
-
/**
|
|
19
|
-
* @default 0
|
|
20
|
-
*/
|
|
21
|
-
page?: number;
|
|
22
|
-
/**
|
|
23
|
-
* @default "name"
|
|
24
|
-
*/
|
|
25
|
-
sort?: 'created' | 'identifier' | 'license' | 'name' | 'supplier' | 'updated';
|
|
26
|
-
}
|
|
27
|
-
export interface ListLatestArtifactsMutationHeaderParams {
|
|
28
|
-
'Harness-Account'?: string;
|
|
29
|
-
}
|
|
30
|
-
export type ListLatestArtifactsOkResponse = ResponseWithPagination<ArtifactListingResponseBodyResponse>;
|
|
31
|
-
export type ListLatestArtifactsErrorResponse = unknown;
|
|
32
|
-
export interface ListLatestArtifactsProps extends ListLatestArtifactsMutationPathParams, Omit<FetcherOptions<ListLatestArtifactsMutationQueryParams, unknown, ListLatestArtifactsMutationHeaderParams>, 'url'> {
|
|
33
|
-
queryParams: ListLatestArtifactsMutationQueryParams;
|
|
34
|
-
}
|
|
35
|
-
export declare function listLatestArtifacts(props: ListLatestArtifactsProps): Promise<ListLatestArtifactsOkResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* List latest version of all artifacts
|
|
38
|
-
*/
|
|
39
|
-
export declare function useListLatestArtifactsMutation(options?: Omit<UseMutationOptions<ListLatestArtifactsOkResponse, ListLatestArtifactsErrorResponse, ListLatestArtifactsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ListLatestArtifactsOkResponse, unknown, ListLatestArtifactsProps, unknown>;
|