@harnessio/react-ssca-manager-client 0.82.0 → 0.83.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/index.d.ts +2 -21
- package/dist/ssca-manager/src/services/index.js +0 -7
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/DeleteRepositoriesRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/Repositories.d.ts +15 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useArtifactListQuery.d.ts +0 -47
- package/dist/ssca-manager/src/services/hooks/useArtifactListQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailComponentViewQuery.d.ts +0 -44
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailComponentViewQuery.js +0 -22
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailDeploymentViewQuery.d.ts +0 -44
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailDeploymentViewQuery.js +0 -22
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailsQuery.d.ts +0 -22
- package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailsQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useListArtifactsQuery.d.ts +0 -42
- package/dist/ssca-manager/src/services/hooks/useListArtifactsQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useListLatestArtifactsQuery.d.ts +0 -39
- package/dist/ssca-manager/src/services/hooks/useListLatestArtifactsQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useSetBaselineForArtifactMutation.d.ts +0 -24
- package/dist/ssca-manager/src/services/hooks/useSetBaselineForArtifactMutation.js +0 -14
- package/dist/ssca-manager/src/services/responses/ExemptionListResponseDtoResponse.d.ts +0 -2
- package/dist/ssca-manager/src/services/schemas/ExemptionDurationDto.d.ts +0 -4
- package/dist/ssca-manager/src/services/schemas/ExemptionInitiatorDto.d.ts +0 -5
- package/dist/ssca-manager/src/services/schemas/ExemptionInitiatorDto.js +0 -4
- package/dist/ssca-manager/src/services/schemas/ExemptionRequestDto.d.ts +0 -11
- package/dist/ssca-manager/src/services/schemas/ExemptionRequestDto.js +0 -1
- package/dist/ssca-manager/src/services/schemas/ExemptionResponseDto.d.ts +0 -40
- package/dist/ssca-manager/src/services/schemas/ExemptionResponseDto.js +0 -1
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewRequestDto.d.ts +0 -5
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewRequestDto.js +0 -1
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusDto.d.ts +0 -1
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusDto.js +0 -4
- /package/dist/ssca-manager/src/services/{responses/ExemptionListResponseDtoResponse.js → schemas/DeleteRepositoriesRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ExemptionDurationDto.js → Repositories.js} +0 -0
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
|
-
export type { ArtifactListErrorResponse, ArtifactListOkResponse, ArtifactListProps, ArtifactListQueryPathParams, ArtifactListQueryQueryParams, ArtifactListRequestBody, } from './hooks/useArtifactListQuery';
|
|
3
|
-
export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
|
|
4
2
|
export type { ArtifactListV2ErrorResponse, ArtifactListV2OkResponse, ArtifactListV2Props, ArtifactListV2QueryPathParams, ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, } from './hooks/useArtifactListV2Query';
|
|
5
3
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
6
4
|
export type { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
@@ -41,12 +39,6 @@ export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryO
|
|
|
41
39
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
42
40
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
43
41
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
44
|
-
export type { GetArtifactDetailComponentViewErrorResponse, GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewProps, GetArtifactDetailComponentViewQueryPathParams, GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
45
|
-
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
46
|
-
export type { GetArtifactDetailDeploymentViewErrorResponse, GetArtifactDetailDeploymentViewOkResponse, GetArtifactDetailDeploymentViewProps, GetArtifactDetailDeploymentViewQueryPathParams, GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
47
|
-
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
48
|
-
export type { GetArtifactDetailsErrorResponse, GetArtifactDetailsOkResponse, GetArtifactDetailsProps, GetArtifactDetailsQueryPathParams, } from './hooks/useGetArtifactDetailsQuery';
|
|
49
|
-
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
50
42
|
export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemediationDetailsOkResponse, GetArtifactInRemediationDetailsProps, GetArtifactInRemediationDetailsQueryPathParams, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
51
43
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
52
44
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
@@ -115,20 +107,14 @@ export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSumm
|
|
|
115
107
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
116
108
|
export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesQueryPathParams, ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesQuery';
|
|
117
109
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
118
|
-
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryPathParams, ListArtifactsQueryQueryParams, ListArtifactsRequestBody, } from './hooks/useListArtifactsQuery';
|
|
119
|
-
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
120
110
|
export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
|
|
121
111
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
122
|
-
export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, ListLatestArtifactsProps, ListLatestArtifactsQueryPathParams, ListLatestArtifactsQueryQueryParams, } from './hooks/useListLatestArtifactsQuery';
|
|
123
|
-
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
124
112
|
export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
|
|
125
113
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
126
114
|
export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
127
115
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
128
116
|
export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
129
117
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
130
|
-
export type { SetBaselineForArtifactErrorResponse, SetBaselineForArtifactMutationPathParams, SetBaselineForArtifactOkResponse, SetBaselineForArtifactProps, SetBaselineForArtifactRequestBody, } from './hooks/useSetBaselineForArtifactMutation';
|
|
131
|
-
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
132
118
|
export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
|
|
133
119
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
134
120
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
@@ -212,7 +198,6 @@ export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketR
|
|
|
212
198
|
export type { EnforceSbomResponseBodyResponse } from './responses/EnforceSbomResponseBodyResponse';
|
|
213
199
|
export type { EnforcementSummaryResponseBodyResponse } from './responses/EnforcementSummaryResponseBodyResponse';
|
|
214
200
|
export type { ExecutionLimitResponseBodyResponse } from './responses/ExecutionLimitResponseBodyResponse';
|
|
215
|
-
export type { ExemptionListResponseDtoResponse } from './responses/ExemptionListResponseDtoResponse';
|
|
216
201
|
export type { FetchArtifactByComplianceIdResponseResponse } from './responses/FetchArtifactByComplianceIdResponseResponse';
|
|
217
202
|
export type { FetchArtifactsByComplianceIdResponseBodyResponse } from './responses/FetchArtifactsByComplianceIdResponseBodyResponse';
|
|
218
203
|
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
@@ -337,6 +322,7 @@ export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
|
|
|
337
322
|
export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
338
323
|
export type { CveVulnerability } from './schemas/CveVulnerability';
|
|
339
324
|
export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
325
|
+
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
340
326
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
341
327
|
export type { Deployments } from './schemas/Deployments';
|
|
342
328
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
@@ -362,12 +348,6 @@ export type { ExecutionDetail } from './schemas/ExecutionDetail';
|
|
|
362
348
|
export type { ExecutionLimitRequestBody } from './schemas/ExecutionLimitRequestBody';
|
|
363
349
|
export type { ExecutionLimitResponseBody } from './schemas/ExecutionLimitResponseBody';
|
|
364
350
|
export type { ExecutionType } from './schemas/ExecutionType';
|
|
365
|
-
export type { ExemptionDurationDto } from './schemas/ExemptionDurationDto';
|
|
366
|
-
export type { ExemptionInitiatorDto } from './schemas/ExemptionInitiatorDto';
|
|
367
|
-
export type { ExemptionRequestDto } from './schemas/ExemptionRequestDto';
|
|
368
|
-
export type { ExemptionResponseDto } from './schemas/ExemptionResponseDto';
|
|
369
|
-
export type { ExemptionReviewRequestDto } from './schemas/ExemptionReviewRequestDto';
|
|
370
|
-
export type { ExemptionStatusDto } from './schemas/ExemptionStatusDto';
|
|
371
351
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
372
352
|
export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
|
|
373
353
|
export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
|
|
@@ -437,6 +417,7 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
437
417
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
438
418
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
439
419
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
420
|
+
export type { Repositories } from './schemas/Repositories';
|
|
440
421
|
export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
|
|
441
422
|
export type { RepositoryArtifactMetadata } from './schemas/RepositoryArtifactMetadata';
|
|
442
423
|
export type { RepositoryPlatform } from './schemas/RepositoryPlatform';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
|
|
2
1
|
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
3
2
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
4
3
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
@@ -19,9 +18,6 @@ export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hoo
|
|
|
19
18
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
20
19
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
21
20
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
22
|
-
export { getArtifactDetailComponentView, useGetArtifactDetailComponentViewQuery, } from './hooks/useGetArtifactDetailComponentViewQuery';
|
|
23
|
-
export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuery, } from './hooks/useGetArtifactDetailDeploymentViewQuery';
|
|
24
|
-
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
25
21
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
26
22
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
27
23
|
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
@@ -56,12 +52,9 @@ export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } fro
|
|
|
56
52
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
57
53
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
58
54
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
59
|
-
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
60
55
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
61
|
-
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
|
62
56
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
63
57
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
64
58
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
65
|
-
export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
|
|
66
59
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
67
60
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
2
3
|
export interface ArtifactComponentViewResponse {
|
|
4
|
+
exemption_status?: 'FULLY_EXEMPTED' | 'NOT_EXEMPTED' | 'PARTIALLY_EXEMPTED';
|
|
3
5
|
filter_tags?: LayerType[];
|
|
6
|
+
issue_count?: StoIssueCount;
|
|
4
7
|
package_license?: string;
|
|
5
8
|
package_manager?: string;
|
|
6
9
|
package_name?: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Repositories {
|
|
2
|
+
/**
|
|
3
|
+
* Org of the repository to be deleted.
|
|
4
|
+
*/
|
|
5
|
+
org_identifier: string;
|
|
6
|
+
/**
|
|
7
|
+
* Project of the repository to be deleted.
|
|
8
|
+
*/
|
|
9
|
+
project_identifier: string;
|
|
10
|
+
repo_branch?: string;
|
|
11
|
+
/**
|
|
12
|
+
* URL of the repo to be deleted
|
|
13
|
+
*/
|
|
14
|
+
repo_url: string;
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactListingResponseBodyV2Response } from '../responses/ArtifactListingResponseBodyV2Response';
|
|
3
|
-
import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface ArtifactListQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ArtifactListQueryQueryParams {
|
|
11
|
-
/**
|
|
12
|
-
* @default 30
|
|
13
|
-
*/
|
|
14
|
-
limit?: number;
|
|
15
|
-
/**
|
|
16
|
-
* @default "ASC"
|
|
17
|
-
*/
|
|
18
|
-
order?: 'ASC' | 'DESC';
|
|
19
|
-
/**
|
|
20
|
-
* @default 0
|
|
21
|
-
*/
|
|
22
|
-
page?: number;
|
|
23
|
-
/**
|
|
24
|
-
* @default "name"
|
|
25
|
-
*/
|
|
26
|
-
sort?: {};
|
|
27
|
-
type: 'image' | 'repository';
|
|
28
|
-
/**
|
|
29
|
-
* @default "all"
|
|
30
|
-
*/
|
|
31
|
-
view_mode?: 'all' | 'latest';
|
|
32
|
-
}
|
|
33
|
-
export interface ArtifactListQueryHeaderParams {
|
|
34
|
-
'Harness-Account': string;
|
|
35
|
-
}
|
|
36
|
-
export type ArtifactListRequestBody = ArtifactListingRequestBodyRequestBody;
|
|
37
|
-
export type ArtifactListOkResponse = ResponseWithPagination<ArtifactListingResponseBodyV2Response>;
|
|
38
|
-
export type ArtifactListErrorResponse = unknown;
|
|
39
|
-
export interface ArtifactListProps extends ArtifactListQueryPathParams, Omit<FetcherOptions<ArtifactListQueryQueryParams, ArtifactListRequestBody, ArtifactListQueryHeaderParams>, 'url'> {
|
|
40
|
-
queryParams: ArtifactListQueryQueryParams;
|
|
41
|
-
body: ArtifactListRequestBody;
|
|
42
|
-
}
|
|
43
|
-
export declare function artifactList(props: ArtifactListProps): Promise<ArtifactListOkResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* List artifacts
|
|
46
|
-
*/
|
|
47
|
-
export declare function useArtifactListQuery(props: ArtifactListProps, options?: Omit<UseQueryOptions<ArtifactListOkResponse, ArtifactListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ArtifactListOkResponse, 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 artifactList(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* List artifacts
|
|
11
|
-
*/
|
|
12
|
-
export function useArtifactListQuery(props, options) {
|
|
13
|
-
return useQuery(['artifactList', props.org, props.project, props.queryParams, props.body], ({ signal }) => artifactList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactComponentViewResponseBodyResponse } from '../responses/ArtifactComponentViewResponseBodyResponse';
|
|
3
|
-
import type { ArtifactComponentViewRequestBody } from '../schemas/ArtifactComponentViewRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetArtifactDetailComponentViewQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
artifact: string;
|
|
10
|
-
tag: string;
|
|
11
|
-
}
|
|
12
|
-
export interface GetArtifactDetailComponentViewQueryQueryParams {
|
|
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
|
-
/**
|
|
26
|
-
* @default "package_name"
|
|
27
|
-
*/
|
|
28
|
-
sort?: {};
|
|
29
|
-
}
|
|
30
|
-
export interface GetArtifactDetailComponentViewQueryHeaderParams {
|
|
31
|
-
'Harness-Account': string;
|
|
32
|
-
}
|
|
33
|
-
export type GetArtifactDetailComponentViewRequestBody = ArtifactComponentViewRequestBody;
|
|
34
|
-
export type GetArtifactDetailComponentViewOkResponse = ResponseWithPagination<ArtifactComponentViewResponseBodyResponse>;
|
|
35
|
-
export type GetArtifactDetailComponentViewErrorResponse = unknown;
|
|
36
|
-
export interface GetArtifactDetailComponentViewProps extends GetArtifactDetailComponentViewQueryPathParams, Omit<FetcherOptions<GetArtifactDetailComponentViewQueryQueryParams, GetArtifactDetailComponentViewRequestBody, GetArtifactDetailComponentViewQueryHeaderParams>, 'url'> {
|
|
37
|
-
queryParams: GetArtifactDetailComponentViewQueryQueryParams;
|
|
38
|
-
body: GetArtifactDetailComponentViewRequestBody;
|
|
39
|
-
}
|
|
40
|
-
export declare function getArtifactDetailComponentView(props: GetArtifactDetailComponentViewProps): Promise<GetArtifactDetailComponentViewOkResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Get artifact detail component view
|
|
43
|
-
*/
|
|
44
|
-
export declare function useGetArtifactDetailComponentViewQuery(props: GetArtifactDetailComponentViewProps, options?: Omit<UseQueryOptions<GetArtifactDetailComponentViewOkResponse, GetArtifactDetailComponentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailComponentViewOkResponse, unknown>;
|
|
@@ -1,22 +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 getArtifactDetailComponentView(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/artifact/${props.artifact}/tag/${props.tag}/components`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get artifact detail component view
|
|
11
|
-
*/
|
|
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);
|
|
22
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
/**
|
|
26
|
-
* @default "env_name"
|
|
27
|
-
*/
|
|
28
|
-
sort?: {};
|
|
29
|
-
}
|
|
30
|
-
export interface GetArtifactDetailDeploymentViewQueryHeaderParams {
|
|
31
|
-
'Harness-Account': string;
|
|
32
|
-
}
|
|
33
|
-
export type GetArtifactDetailDeploymentViewRequestBody = ArtifactDeploymentViewRequestBody;
|
|
34
|
-
export type GetArtifactDetailDeploymentViewOkResponse = ResponseWithPagination<ArtifactDeploymentViewResponseBodyResponse>;
|
|
35
|
-
export type GetArtifactDetailDeploymentViewErrorResponse = unknown | ArtifactDeploymentViewResponseBodyResponse;
|
|
36
|
-
export interface GetArtifactDetailDeploymentViewProps extends GetArtifactDetailDeploymentViewQueryPathParams, Omit<FetcherOptions<GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, GetArtifactDetailDeploymentViewQueryHeaderParams>, 'url'> {
|
|
37
|
-
queryParams: GetArtifactDetailDeploymentViewQueryQueryParams;
|
|
38
|
-
body: GetArtifactDetailDeploymentViewRequestBody;
|
|
39
|
-
}
|
|
40
|
-
export declare function getArtifactDetailDeploymentView(props: GetArtifactDetailDeploymentViewProps): Promise<GetArtifactDetailDeploymentViewOkResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Get artifact detail deployment view
|
|
43
|
-
*/
|
|
44
|
-
export declare function useGetArtifactDetailDeploymentViewQuery(props: GetArtifactDetailDeploymentViewProps, options?: Omit<UseQueryOptions<GetArtifactDetailDeploymentViewOkResponse, GetArtifactDetailDeploymentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactDetailDeploymentViewOkResponse, unknown>;
|
|
@@ -1,22 +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 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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { ArtifactListingResponseBodyResponse } from '../responses/ArtifactListingResponseBodyResponse';
|
|
3
|
-
import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface ListArtifactsQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ListArtifactsQueryQueryParams {
|
|
11
|
-
/**
|
|
12
|
-
* @default 30
|
|
13
|
-
*/
|
|
14
|
-
limit?: number;
|
|
15
|
-
/**
|
|
16
|
-
* @default "ASC"
|
|
17
|
-
*/
|
|
18
|
-
order?: 'ASC' | 'DESC';
|
|
19
|
-
/**
|
|
20
|
-
* @default 0
|
|
21
|
-
*/
|
|
22
|
-
page?: number;
|
|
23
|
-
/**
|
|
24
|
-
* @default "name"
|
|
25
|
-
*/
|
|
26
|
-
sort?: {};
|
|
27
|
-
}
|
|
28
|
-
export interface ListArtifactsQueryHeaderParams {
|
|
29
|
-
'Harness-Account': string;
|
|
30
|
-
}
|
|
31
|
-
export type ListArtifactsRequestBody = ArtifactListingRequestBodyRequestBody;
|
|
32
|
-
export type ListArtifactsOkResponse = ResponseWithPagination<ArtifactListingResponseBodyResponse>;
|
|
33
|
-
export type ListArtifactsErrorResponse = unknown;
|
|
34
|
-
export interface ListArtifactsProps extends ListArtifactsQueryPathParams, Omit<FetcherOptions<ListArtifactsQueryQueryParams, ListArtifactsRequestBody, ListArtifactsQueryHeaderParams>, 'url'> {
|
|
35
|
-
queryParams: ListArtifactsQueryQueryParams;
|
|
36
|
-
body: ListArtifactsRequestBody;
|
|
37
|
-
}
|
|
38
|
-
export declare function listArtifacts(props: ListArtifactsProps): Promise<ListArtifactsOkResponse>;
|
|
39
|
-
/**
|
|
40
|
-
* List all artifacts
|
|
41
|
-
*/
|
|
42
|
-
export declare function useListArtifactsQuery(props: ListArtifactsProps, options?: Omit<UseQueryOptions<ListArtifactsOkResponse, ListArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactsOkResponse, 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 listArtifacts(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/artifacts`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* List all artifacts
|
|
11
|
-
*/
|
|
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
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
/**
|
|
23
|
-
* @default "name"
|
|
24
|
-
*/
|
|
25
|
-
sort?: {};
|
|
26
|
-
}
|
|
27
|
-
export interface ListLatestArtifactsQueryHeaderParams {
|
|
28
|
-
'Harness-Account': string;
|
|
29
|
-
}
|
|
30
|
-
export type ListLatestArtifactsOkResponse = ResponseWithPagination<ArtifactListingResponseBodyResponse>;
|
|
31
|
-
export type ListLatestArtifactsErrorResponse = unknown;
|
|
32
|
-
export interface ListLatestArtifactsProps extends ListLatestArtifactsQueryPathParams, Omit<FetcherOptions<ListLatestArtifactsQueryQueryParams, unknown, ListLatestArtifactsQueryHeaderParams>, 'url'> {
|
|
33
|
-
queryParams: ListLatestArtifactsQueryQueryParams;
|
|
34
|
-
}
|
|
35
|
-
export declare function listLatestArtifacts(props: ListLatestArtifactsProps): Promise<ListLatestArtifactsOkResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* List latest version of all artifacts
|
|
38
|
-
*/
|
|
39
|
-
export declare function useListLatestArtifactsQuery(props: ListLatestArtifactsProps, options?: Omit<UseQueryOptions<ListLatestArtifactsOkResponse, ListLatestArtifactsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListLatestArtifactsOkResponse, 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 listLatestArtifacts(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/grouped-artifacts`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* List latest version of all artifacts
|
|
11
|
-
*/
|
|
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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { SaveResponseResponse } from '../responses/SaveResponseResponse';
|
|
3
|
-
import type { BaselineRequestBodyRequestBody } from '../requestBodies/BaselineRequestBodyRequestBody';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface SetBaselineForArtifactMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
artifact: string;
|
|
10
|
-
}
|
|
11
|
-
export interface SetBaselineForArtifactMutationHeaderParams {
|
|
12
|
-
'Harness-Account': string;
|
|
13
|
-
}
|
|
14
|
-
export type SetBaselineForArtifactRequestBody = BaselineRequestBodyRequestBody;
|
|
15
|
-
export type SetBaselineForArtifactOkResponse = ResponseWithPagination<SaveResponseResponse>;
|
|
16
|
-
export type SetBaselineForArtifactErrorResponse = unknown;
|
|
17
|
-
export interface SetBaselineForArtifactProps extends SetBaselineForArtifactMutationPathParams, Omit<FetcherOptions<unknown, SetBaselineForArtifactRequestBody, SetBaselineForArtifactMutationHeaderParams>, 'url'> {
|
|
18
|
-
body: SetBaselineForArtifactRequestBody;
|
|
19
|
-
}
|
|
20
|
-
export declare function setBaselineForArtifact(props: SetBaselineForArtifactProps): Promise<SetBaselineForArtifactOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Save the baseline for an artifact
|
|
23
|
-
*/
|
|
24
|
-
export declare function useSetBaselineForArtifactMutation(options?: Omit<UseMutationOptions<SetBaselineForArtifactOkResponse, SetBaselineForArtifactErrorResponse, SetBaselineForArtifactProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetBaselineForArtifactOkResponse, unknown, SetBaselineForArtifactProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function setBaselineForArtifact(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact/${props.artifact}/baseline`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Save the baseline for an artifact
|
|
11
|
-
*/
|
|
12
|
-
export function useSetBaselineForArtifactMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => setBaselineForArtifact(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ExemptionDurationDto } from '../schemas/ExemptionDurationDto';
|
|
2
|
-
import type { ExemptionInitiatorDto } from '../schemas/ExemptionInitiatorDto';
|
|
3
|
-
import type { Operator } from '../schemas/Operator';
|
|
4
|
-
export interface ExemptionRequestDto {
|
|
5
|
-
component_name?: string;
|
|
6
|
-
component_version?: string;
|
|
7
|
-
exemption_duration?: ExemptionDurationDto;
|
|
8
|
-
exemption_initiator?: ExemptionInitiatorDto;
|
|
9
|
-
reason?: string;
|
|
10
|
-
version_operator?: Operator;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ExemptionDurationDto } from '../schemas/ExemptionDurationDto';
|
|
2
|
-
import type { ExemptionInitiatorDto } from '../schemas/ExemptionInitiatorDto';
|
|
3
|
-
import type { ExemptionStatusDto } from '../schemas/ExemptionStatusDto';
|
|
4
|
-
import type { Operator } from '../schemas/Operator';
|
|
5
|
-
export interface ExemptionResponseDto {
|
|
6
|
-
account_id?: string;
|
|
7
|
-
artifact_id?: string;
|
|
8
|
-
component_name?: string;
|
|
9
|
-
component_version?: string;
|
|
10
|
-
/**
|
|
11
|
-
* @format int64
|
|
12
|
-
*/
|
|
13
|
-
created_at?: number;
|
|
14
|
-
created_by_name?: string;
|
|
15
|
-
created_by_user_id?: string;
|
|
16
|
-
exemption_duration?: ExemptionDurationDto;
|
|
17
|
-
exemption_initiator?: ExemptionInitiatorDto;
|
|
18
|
-
exemption_status?: ExemptionStatusDto;
|
|
19
|
-
org_identifier?: string;
|
|
20
|
-
project_identifier?: string;
|
|
21
|
-
reason?: string;
|
|
22
|
-
review_comment?: string;
|
|
23
|
-
/**
|
|
24
|
-
* @format int64
|
|
25
|
-
*/
|
|
26
|
-
reviewed_at?: number;
|
|
27
|
-
reviewed_by_name?: string;
|
|
28
|
-
reviewed_by_user_id?: string;
|
|
29
|
-
/**
|
|
30
|
-
* @format int64
|
|
31
|
-
*/
|
|
32
|
-
updated_at?: number;
|
|
33
|
-
updated_by?: string;
|
|
34
|
-
uuid?: string;
|
|
35
|
-
/**
|
|
36
|
-
* @format int64
|
|
37
|
-
*/
|
|
38
|
-
valid_until?: number;
|
|
39
|
-
version_operator?: Operator;
|
|
40
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ExemptionStatusDto = 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
|
|
File without changes
|
|
File without changes
|