@harnessio/react-ssca-manager-client 0.83.2 → 0.83.4

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 (21) hide show
  1. package/dist/ssca-manager/src/services/hooks/useCreateComponentTicketMutation.d.ts +28 -0
  2. package/dist/ssca-manager/src/services/hooks/useCreateComponentTicketMutation.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetComponentTicketQuery.d.ts +25 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetComponentTicketQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/index.d.ts +7 -2
  6. package/dist/ssca-manager/src/services/index.js +2 -1
  7. package/dist/ssca-manager/src/services/requestBodies/SbomScoreRequestBodyRequestBody.d.ts +2 -0
  8. package/dist/ssca-manager/src/services/requestBodies/SbomScoreRequestBodyRequestBody.js +1 -0
  9. package/dist/ssca-manager/src/services/responses/TicketResponseBodyResponse.d.ts +2 -0
  10. package/dist/ssca-manager/src/services/responses/TicketResponseBodyResponse.js +1 -0
  11. package/dist/ssca-manager/src/services/schemas/Artifact.d.ts +3 -1
  12. package/dist/ssca-manager/src/services/schemas/ArtifactListingRequestBody.d.ts +2 -0
  13. package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.d.ts +1 -0
  14. package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.d.ts +1 -0
  15. package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingRequest.d.ts +2 -0
  16. package/dist/ssca-manager/src/services/schemas/IntegrityVerification.d.ts +0 -1
  17. package/dist/ssca-manager/src/services/schemas/SbomScoreRequest.d.ts +4 -0
  18. package/dist/ssca-manager/src/services/schemas/SbomScoreRequest.js +1 -0
  19. package/package.json +1 -1
  20. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.d.ts +0 -21
  21. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.js +0 -14
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CreateTicketResponseBodyResponse } from '../responses/CreateTicketResponseBodyResponse';
3
+ import type { CreateTicketRequestBodyRequestBody } from '../requestBodies/CreateTicketRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateComponentTicketMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ artifact: string;
10
+ }
11
+ export interface CreateComponentTicketMutationQueryParams {
12
+ purl: string;
13
+ }
14
+ export interface CreateComponentTicketMutationHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type CreateComponentTicketRequestBody = CreateTicketRequestBodyRequestBody;
18
+ export type CreateComponentTicketOkResponse = ResponseWithPagination<CreateTicketResponseBodyResponse>;
19
+ export type CreateComponentTicketErrorResponse = unknown;
20
+ export interface CreateComponentTicketProps extends CreateComponentTicketMutationPathParams, Omit<FetcherOptions<CreateComponentTicketMutationQueryParams, CreateComponentTicketRequestBody, CreateComponentTicketMutationHeaderParams>, 'url'> {
21
+ queryParams: CreateComponentTicketMutationQueryParams;
22
+ body: CreateComponentTicketRequestBody;
23
+ }
24
+ export declare function createComponentTicket(props: CreateComponentTicketProps): Promise<CreateComponentTicketOkResponse>;
25
+ /**
26
+ * Create Ticket For Components
27
+ */
28
+ export declare function useCreateComponentTicketMutation(options?: Omit<UseMutationOptions<CreateComponentTicketOkResponse, CreateComponentTicketErrorResponse, CreateComponentTicketProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateComponentTicketOkResponse, unknown, CreateComponentTicketProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createComponentTicket(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/ticket`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create Ticket For Components
11
+ */
12
+ export function useCreateComponentTicketMutation(options) {
13
+ return useMutation((mutateProps) => createComponentTicket(mutateProps), options);
14
+ }
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TicketResponseBodyResponse } from '../responses/TicketResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetComponentTicketQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ artifact: string;
9
+ }
10
+ export interface GetComponentTicketQueryQueryParams {
11
+ purl: string;
12
+ }
13
+ export interface GetComponentTicketQueryHeaderParams {
14
+ 'Harness-Account': string;
15
+ }
16
+ export type GetComponentTicketOkResponse = ResponseWithPagination<TicketResponseBodyResponse>;
17
+ export type GetComponentTicketErrorResponse = unknown;
18
+ export interface GetComponentTicketProps extends GetComponentTicketQueryPathParams, Omit<FetcherOptions<GetComponentTicketQueryQueryParams, unknown, GetComponentTicketQueryHeaderParams>, 'url'> {
19
+ queryParams: GetComponentTicketQueryQueryParams;
20
+ }
21
+ export declare function getComponentTicket(props: GetComponentTicketProps): Promise<GetComponentTicketOkResponse>;
22
+ /**
23
+ * Get Ticket For Component
24
+ */
25
+ export declare function useGetComponentTicketQuery(props: GetComponentTicketProps, options?: Omit<UseQueryOptions<GetComponentTicketOkResponse, GetComponentTicketErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetComponentTicketOkResponse, 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 getComponentTicket(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/ticket`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Ticket For Component
11
+ */
12
+ export function useGetComponentTicketQuery(props, options) {
13
+ return useQuery(['getComponentTicket', props.org, props.project, props.artifact, props.queryParams], ({ signal }) => getComponentTicket(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -13,6 +13,8 @@ export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, Con
13
13
  export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
14
14
  export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
15
15
  export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
16
+ export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationPathParams, CreateComponentTicketMutationQueryParams, CreateComponentTicketOkResponse, CreateComponentTicketProps, CreateComponentTicketRequestBody, } from './hooks/useCreateComponentTicketMutation';
17
+ export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
16
18
  export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
17
19
  export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
18
20
  export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMutationPathParams, CreateRemediationTrackerOkResponse, CreateRemediationTrackerProps, CreateRemediationTrackerRequestBody, } from './hooks/useCreateRemediationTrackerMutation';
@@ -43,8 +45,6 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
43
45
  export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
44
46
  export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
45
47
  export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
46
- export type { GetArtifactV2ChainOfCustodyErrorResponse, GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyProps, GetArtifactV2ChainOfCustodyQueryPathParams, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
47
- export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
48
48
  export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
49
49
  export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
50
50
  export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
@@ -75,6 +75,8 @@ export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutatio
75
75
  export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
76
76
  export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
77
77
  export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
78
+ export type { GetComponentTicketErrorResponse, GetComponentTicketOkResponse, GetComponentTicketProps, GetComponentTicketQueryPathParams, GetComponentTicketQueryQueryParams, } from './hooks/useGetComponentTicketQuery';
79
+ export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
78
80
  export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
79
81
  export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
80
82
  export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploymentsListForArtifactInRemediationOkResponse, GetDeploymentsListForArtifactInRemediationProps, GetDeploymentsListForArtifactInRemediationQueryPathParams, GetDeploymentsListForArtifactInRemediationQueryQueryParams, GetDeploymentsListForArtifactInRemediationRequestBody, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
@@ -163,6 +165,7 @@ export type { RemediationTrackerUpdateRequestBodyRequestBody } from './requestBo
163
165
  export type { SaveOrchestrationRequestBodyRequestBody } from './requestBodies/SaveOrchestrationRequestBodyRequestBody';
164
166
  export type { SaveOrchestrationRequestBodyV2RequestBody } from './requestBodies/SaveOrchestrationRequestBodyV2RequestBody';
165
167
  export type { SbomProcessRequestBodyRequestBody } from './requestBodies/SbomProcessRequestBodyRequestBody';
168
+ export type { SbomScoreRequestBodyRequestBody } from './requestBodies/SbomScoreRequestBodyRequestBody';
166
169
  export type { SbomScorecardRequestBodyRequestBody } from './requestBodies/SbomScorecardRequestBodyRequestBody';
167
170
  export type { SlsaVerificationRequestBodyRequestBody } from './requestBodies/SlsaVerificationRequestBodyRequestBody';
168
171
  export type { SlsaVerificationRequestBodyV2RequestBody } from './requestBodies/SlsaVerificationRequestBodyV2RequestBody';
@@ -231,6 +234,7 @@ export type { SaveOrchestrationResponseBodyResponse } from './responses/SaveOrch
231
234
  export type { SaveResponseResponse } from './responses/SaveResponseResponse';
232
235
  export type { SbomProcessResponseBodyResponse } from './responses/SbomProcessResponseBodyResponse';
233
236
  export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
237
+ export type { TicketResponseBodyResponse } from './responses/TicketResponseBodyResponse';
234
238
  export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueResponseBodyResponse';
235
239
  export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
236
240
  export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
@@ -442,6 +446,7 @@ export type { SbomMetadataV2 } from './schemas/SbomMetadataV2';
442
446
  export type { SbomProcess } from './schemas/SbomProcess';
443
447
  export type { SbomProcessRequestBody } from './schemas/SbomProcessRequestBody';
444
448
  export type { SbomProcessResponseBody } from './schemas/SbomProcessResponseBody';
449
+ export type { SbomScoreRequest } from './schemas/SbomScoreRequest';
445
450
  export type { SbomScorecardRequestBody } from './schemas/SbomScorecardRequestBody';
446
451
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
447
452
  export type { Scorecard } from './schemas/Scorecard';
@@ -5,6 +5,7 @@ export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './
5
5
  export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
6
6
  export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
7
7
  export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
8
+ export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
8
9
  export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
9
10
  export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
10
11
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
@@ -20,7 +21,6 @@ export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from '.
20
21
  export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
21
22
  export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
22
23
  export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
23
- export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
24
24
  export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
25
25
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
26
26
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
@@ -36,6 +36,7 @@ export { getComplianceResultStatsByComplianceChecks, useGetComplianceResultStats
36
36
  export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
37
37
  export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
38
38
  export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
39
+ export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
39
40
  export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
40
41
  export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
41
42
  export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
@@ -0,0 +1,2 @@
1
+ import type { SbomScoreRequest } from '../schemas/SbomScoreRequest';
2
+ export type SbomScoreRequestBodyRequestBody = SbomScoreRequest;
@@ -0,0 +1,2 @@
1
+ import type { TicketInfo } from '../schemas/TicketInfo';
2
+ export type TicketResponseBodyResponse = TicketInfo;
@@ -36,7 +36,9 @@ export interface Artifact {
36
36
  * @default "image"
37
37
  * @example "image"
38
38
  */
39
- type: 'image' | 'repository';
39
+ type: 'image' | 'non_container' | 'repository';
40
40
  url?: string;
41
41
  variant?: ArtifactVariant;
42
+ version?: string;
43
+ workspace?: string;
42
44
  }
@@ -5,8 +5,10 @@ import type { VerificationStatus } from '../schemas/VerificationStatus';
5
5
  export interface ArtifactListingRequestBody {
6
6
  artifact_type?: ArtifactType[];
7
7
  component_filter?: ComponentFilter[];
8
+ component_filter_list?: ComponentFilter[];
8
9
  environment_type?: 'All' | 'NonProd' | 'None' | 'Prod';
9
10
  license_filter?: LicenseFilter;
11
+ license_filter_list?: LicenseFilter[];
10
12
  policy_violation?: 'ALLOW' | 'ANY' | 'DENY' | 'NONE';
11
13
  search_term?: string;
12
14
  verification_status?: VerificationStatus;
@@ -81,4 +81,5 @@ export interface ArtifactV2ListingResponse {
81
81
  * Artifact Origin URL
82
82
  */
83
83
  url?: string;
84
+ version?: string;
84
85
  }
@@ -41,5 +41,6 @@ export interface ArtifactV2Overview {
41
41
  * Artifact URL
42
42
  */
43
43
  url: string;
44
+ version?: string;
44
45
  violations?: Violations;
45
46
  }
@@ -2,6 +2,8 @@ import type { ComponentFilter } from '../schemas/ComponentFilter';
2
2
  import type { LicenseFilter } from '../schemas/LicenseFilter';
3
3
  export interface CodeRepositoryListingRequest {
4
4
  dependency_filter?: ComponentFilter[];
5
+ dependency_filter_list?: ComponentFilter[];
5
6
  license_filter?: LicenseFilter;
7
+ license_filter_list?: LicenseFilter[];
6
8
  search_term?: string;
7
9
  }
@@ -8,5 +8,4 @@ export interface IntegrityVerification {
8
8
  project_id?: string;
9
9
  rekor?: RekorLog;
10
10
  status?: VerificationStatus;
11
- version?: string;
12
11
  }
@@ -0,0 +1,4 @@
1
+ import type { ArtifactSpec } from '../schemas/ArtifactSpec';
2
+ export interface SbomScoreRequest<T0 extends ArtifactSpec = ArtifactSpec> {
3
+ spec: T0;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.83.2",
3
+ "version": "0.83.4",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,21 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { ArtifactChainOfCustody } from '../schemas/ArtifactChainOfCustody';
3
- import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from '../../../../fetcher/index.js';
5
- export interface GetArtifactV2ChainOfCustodyQueryPathParams {
6
- org: string;
7
- project: string;
8
- artifact: string;
9
- }
10
- export interface GetArtifactV2ChainOfCustodyQueryHeaderParams {
11
- 'Harness-Account': string;
12
- }
13
- export type GetArtifactV2ChainOfCustodyOkResponse = ResponseWithPagination<ArtifactChainOfCustody[]>;
14
- export type GetArtifactV2ChainOfCustodyErrorResponse = unknown;
15
- export interface GetArtifactV2ChainOfCustodyProps extends GetArtifactV2ChainOfCustodyQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactV2ChainOfCustodyQueryHeaderParams>, 'url'> {
16
- }
17
- export declare function getArtifactV2ChainOfCustody(props: GetArtifactV2ChainOfCustodyProps): Promise<GetArtifactV2ChainOfCustodyOkResponse>;
18
- /**
19
- * get artifactV2 chain of custody
20
- */
21
- export declare function useGetArtifactV2ChainOfCustodyQuery(props: GetArtifactV2ChainOfCustodyProps, options?: Omit<UseQueryOptions<GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2ChainOfCustodyOkResponse, unknown>;
@@ -1,14 +0,0 @@
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 getArtifactV2ChainOfCustody(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/chain-of-custody`, method: 'GET' }, props));
8
- }
9
- /**
10
- * get artifactV2 chain of custody
11
- */
12
- export function useGetArtifactV2ChainOfCustodyQuery(props, options) {
13
- return useQuery(['getArtifactV2ChainOfCustody', props.org, props.project, props.artifact], ({ signal }) => getArtifactV2ChainOfCustody(Object.assign(Object.assign({}, props), { signal })), options);
14
- }