@harnessio/react-ssca-manager-client 0.81.0 → 0.82.1
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 +10 -21
- package/dist/ssca-manager/src/services/index.js +0 -7
- package/dist/ssca-manager/src/services/requestBodies/IntegrationStepConfigRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/PipelineStoreConfigRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/IntegrationStepConfigResponseBodyResponse.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/DeleteRepositoriesRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/InfraLayout.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationConfigRequestBody.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationStepConfig.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationStepConfig.js +1 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationStepConfigRequestBody.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationStepConfigRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/PipelineStoreConfigRequestBody.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/PipelineStoreConfigRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RepoDetailsDto.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/Repositories.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/SlsaVerificationRequestBodyV2.d.ts +1 -1
- 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/ExemptionRequestDto.d.ts +0 -11
- package/dist/ssca-manager/src/services/schemas/ExemptionResponseDto.d.ts +0 -40
- package/dist/ssca-manager/src/services/schemas/ExemptionReviewRequestDto.d.ts +0 -5
- package/dist/ssca-manager/src/services/schemas/ExemptionStatusDto.d.ts +0 -1
- /package/dist/ssca-manager/src/services/{responses/ExemptionListResponseDtoResponse.js → requestBodies/IntegrationStepConfigRequestBodyRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/{schemas/ExemptionRequestDto.js → requestBodies/PipelineStoreConfigRequestBodyRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/{schemas/ExemptionResponseDto.js → responses/IntegrationStepConfigResponseBodyResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ExemptionReviewRequestDto.js → DeleteRepositoriesRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ExemptionDurationDto.js → InfraLayout.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ExemptionInitiatorDto.js → IntegrationConfigRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ExemptionStatusDto.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';
|
|
@@ -158,10 +144,12 @@ export type { ExecutionLimitRequestBodyRequestBody } from './requestBodies/Execu
|
|
|
158
144
|
export type { FetchComplianceResultByArtifactRequestBodyRequestBody } from './requestBodies/FetchComplianceResultByArtifactRequestBodyRequestBody';
|
|
159
145
|
export type { FetchComplianceResultRequestBodyRequestBody } from './requestBodies/FetchComplianceResultRequestBodyRequestBody';
|
|
160
146
|
export type { FetchComplianeResultChecksStatsRequestBodyRequestBody } from './requestBodies/FetchComplianeResultChecksStatsRequestBodyRequestBody';
|
|
147
|
+
export type { IntegrationStepConfigRequestBodyRequestBody } from './requestBodies/IntegrationStepConfigRequestBodyRequestBody';
|
|
161
148
|
export type { NormalisedSbomComponentRequestBodyRequestBody } from './requestBodies/NormalisedSbomComponentRequestBodyRequestBody';
|
|
162
149
|
export type { OrchestrationStepDriftRequestBodyRequestBody } from './requestBodies/OrchestrationStepDriftRequestBodyRequestBody';
|
|
163
150
|
export type { PipelineConfigUpdateRequestBodyRequestBody } from './requestBodies/PipelineConfigUpdateRequestBodyRequestBody';
|
|
164
151
|
export type { PipelineInfraConfigRequestBodyRequestBody } from './requestBodies/PipelineInfraConfigRequestBodyRequestBody';
|
|
152
|
+
export type { PipelineStoreConfigRequestBodyRequestBody } from './requestBodies/PipelineStoreConfigRequestBodyRequestBody';
|
|
165
153
|
export type { PolicyViolationRequestBodyRequestBody } from './requestBodies/PolicyViolationRequestBodyRequestBody';
|
|
166
154
|
export type { ProvenanceRequestBodyRequestBody } from './requestBodies/ProvenanceRequestBodyRequestBody';
|
|
167
155
|
export type { ProvenanceRequestBodyV2RequestBody } from './requestBodies/ProvenanceRequestBodyV2RequestBody';
|
|
@@ -210,7 +198,6 @@ export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketR
|
|
|
210
198
|
export type { EnforceSbomResponseBodyResponse } from './responses/EnforceSbomResponseBodyResponse';
|
|
211
199
|
export type { EnforcementSummaryResponseBodyResponse } from './responses/EnforcementSummaryResponseBodyResponse';
|
|
212
200
|
export type { ExecutionLimitResponseBodyResponse } from './responses/ExecutionLimitResponseBodyResponse';
|
|
213
|
-
export type { ExemptionListResponseDtoResponse } from './responses/ExemptionListResponseDtoResponse';
|
|
214
201
|
export type { FetchArtifactByComplianceIdResponseResponse } from './responses/FetchArtifactByComplianceIdResponseResponse';
|
|
215
202
|
export type { FetchArtifactsByComplianceIdResponseBodyResponse } from './responses/FetchArtifactsByComplianceIdResponseBodyResponse';
|
|
216
203
|
export type { FetchComplianceResultByArtifactResponseResponse } from './responses/FetchComplianceResultByArtifactResponseResponse';
|
|
@@ -218,6 +205,7 @@ export type { FetchComplianceResultResponseBodyResponse } from './responses/Fetc
|
|
|
218
205
|
export type { FetchIntegrationReposResponseBodyResponse } from './responses/FetchIntegrationReposResponseBodyResponse';
|
|
219
206
|
export type { HarnessPipelineIntegrationResponseBodyResponse } from './responses/HarnessPipelineIntegrationResponseBodyResponse';
|
|
220
207
|
export type { IntegrationListingResponseBodyResponse } from './responses/IntegrationListingResponseBodyResponse';
|
|
208
|
+
export type { IntegrationStepConfigResponseBodyResponse } from './responses/IntegrationStepConfigResponseBodyResponse';
|
|
221
209
|
export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
|
|
222
210
|
export type { ListConfigsResponseBodyResponse } from './responses/ListConfigsResponseBodyResponse';
|
|
223
211
|
export type { ListIntegrationReposResponseBodyResponse } from './responses/ListIntegrationReposResponseBodyResponse';
|
|
@@ -334,6 +322,7 @@ export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
|
|
|
334
322
|
export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
335
323
|
export type { CveVulnerability } from './schemas/CveVulnerability';
|
|
336
324
|
export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
325
|
+
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
337
326
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
338
327
|
export type { Deployments } from './schemas/Deployments';
|
|
339
328
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
@@ -359,12 +348,6 @@ export type { ExecutionDetail } from './schemas/ExecutionDetail';
|
|
|
359
348
|
export type { ExecutionLimitRequestBody } from './schemas/ExecutionLimitRequestBody';
|
|
360
349
|
export type { ExecutionLimitResponseBody } from './schemas/ExecutionLimitResponseBody';
|
|
361
350
|
export type { ExecutionType } from './schemas/ExecutionType';
|
|
362
|
-
export type { ExemptionDurationDto } from './schemas/ExemptionDurationDto';
|
|
363
|
-
export type { ExemptionInitiatorDto } from './schemas/ExemptionInitiatorDto';
|
|
364
|
-
export type { ExemptionRequestDto } from './schemas/ExemptionRequestDto';
|
|
365
|
-
export type { ExemptionResponseDto } from './schemas/ExemptionResponseDto';
|
|
366
|
-
export type { ExemptionReviewRequestDto } from './schemas/ExemptionReviewRequestDto';
|
|
367
|
-
export type { ExemptionStatusDto } from './schemas/ExemptionStatusDto';
|
|
368
351
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
369
352
|
export type { GithubExecutionContext } from './schemas/GithubExecutionContext';
|
|
370
353
|
export type { GithubExecutionDetail } from './schemas/GithubExecutionDetail';
|
|
@@ -377,8 +360,12 @@ export type { HarnessPipelineSettings } from './schemas/HarnessPipelineSettings'
|
|
|
377
360
|
export type { HarnessRunner } from './schemas/HarnessRunner';
|
|
378
361
|
export type { HarnessRunnerDetail } from './schemas/HarnessRunnerDetail';
|
|
379
362
|
export type { ImageSpec } from './schemas/ImageSpec';
|
|
363
|
+
export type { InfraLayout } from './schemas/InfraLayout';
|
|
380
364
|
export type { Integration } from './schemas/Integration';
|
|
381
365
|
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
366
|
+
export type { IntegrationConfigRequestBody } from './schemas/IntegrationConfigRequestBody';
|
|
367
|
+
export type { IntegrationStepConfig } from './schemas/IntegrationStepConfig';
|
|
368
|
+
export type { IntegrationStepConfigRequestBody } from './schemas/IntegrationStepConfigRequestBody';
|
|
382
369
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
383
370
|
export type { IntegrityVerification } from './schemas/IntegrityVerification';
|
|
384
371
|
export type { IntegrityVerificationActivity } from './schemas/IntegrityVerificationActivity';
|
|
@@ -403,6 +390,7 @@ export type { PipelineConfigUpdateRequest } from './schemas/PipelineConfigUpdate
|
|
|
403
390
|
export type { PipelineDetails } from './schemas/PipelineDetails';
|
|
404
391
|
export type { PipelineInfo } from './schemas/PipelineInfo';
|
|
405
392
|
export type { PipelineInfraConfigRequestBody } from './schemas/PipelineInfraConfigRequestBody';
|
|
393
|
+
export type { PipelineStoreConfigRequestBody } from './schemas/PipelineStoreConfigRequestBody';
|
|
406
394
|
export type { PluginDto } from './schemas/PluginDto';
|
|
407
395
|
export type { PluginResponseBody } from './schemas/PluginResponseBody';
|
|
408
396
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
@@ -429,6 +417,7 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
429
417
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
430
418
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
431
419
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
420
|
+
export type { Repositories } from './schemas/Repositories';
|
|
432
421
|
export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
|
|
433
422
|
export type { RepositoryArtifactMetadata } from './schemas/RepositoryArtifactMetadata';
|
|
434
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';
|
package/dist/ssca-manager/src/services/responses/IntegrationStepConfigResponseBodyResponse.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IntegrationStepConfigResponseBodyResponse = unknown;
|
|
@@ -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;
|
|
@@ -4,6 +4,7 @@ import type { RepositoryPlatform } from '../schemas/RepositoryPlatform';
|
|
|
4
4
|
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
5
5
|
import type { Scorecard } from '../schemas/Scorecard';
|
|
6
6
|
import type { ArtifactVariant } from '../schemas/ArtifactVariant';
|
|
7
|
+
import type { Violations } from '../schemas/Violations';
|
|
7
8
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
8
9
|
export interface CodeRepositoryOverview {
|
|
9
10
|
compliance_summary?: ComplianceEvaluationSummary;
|
|
@@ -20,5 +21,6 @@ export interface CodeRepositoryOverview {
|
|
|
20
21
|
scorecard?: Scorecard;
|
|
21
22
|
url: string;
|
|
22
23
|
variant?: ArtifactVariant;
|
|
24
|
+
violations?: Violations;
|
|
23
25
|
vulnerabilities?: StoIssueCount;
|
|
24
26
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InfraLayout } from '../schemas/InfraLayout';
|
|
2
|
+
export interface IntegrationStepConfig {
|
|
3
|
+
auto_infra?: InfraLayout[];
|
|
4
|
+
enable: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
parallel: boolean;
|
|
7
|
+
parameters?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
resource?: string;
|
|
11
|
+
settings?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComplianceScanType } from '../schemas/ComplianceScanType';
|
|
2
|
+
/**
|
|
3
|
+
* Remote Config Details of Pipeline
|
|
4
|
+
*/
|
|
5
|
+
export interface PipelineStoreConfigRequestBody {
|
|
6
|
+
base_branch: string;
|
|
7
|
+
connector_id?: string;
|
|
8
|
+
repo: string;
|
|
9
|
+
scan_type: ComplianceScanType;
|
|
10
|
+
yaml_path?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -3,6 +3,6 @@ import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
|
3
3
|
export interface SlsaVerificationRequestBodyV2 {
|
|
4
4
|
artifact?: ArtifactModelPipeline;
|
|
5
5
|
execution_context?: ExecutionDetail;
|
|
6
|
-
provenance_data
|
|
6
|
+
provenance_data?: string;
|
|
7
7
|
verification_status?: 'failed' | 'passed';
|
|
8
8
|
}
|
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,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 type ExemptionStatusDto = 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|