@harnessio/react-ssca-manager-client 0.51.0 → 0.52.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.
@@ -21,7 +21,7 @@ export interface ArtifactListV2QueryQueryParams {
21
21
  /**
22
22
  * @default "DESC"
23
23
  */
24
- order?: {};
24
+ order?: 'ASC' | 'DESC';
25
25
  }
26
26
  export interface ArtifactListV2QueryHeaderParams {
27
27
  'Harness-Account': string;
@@ -200,7 +200,6 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
200
200
  export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
201
201
  export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
202
202
  export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
203
- export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
204
203
  export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
205
204
  export type { ComplianceCheck } from './schemas/ComplianceCheck';
206
205
  export type { ComplianceCheckEntityType } from './schemas/ComplianceCheckEntityType';
@@ -211,7 +210,6 @@ export type { ComplianceEvaluationHistory } from './schemas/ComplianceEvaluation
211
210
  export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluationSummary';
212
211
  export type { ComplianceExecutionByType } from './schemas/ComplianceExecutionByType';
213
212
  export type { ComplianceFilter } from './schemas/ComplianceFilter';
214
- export type { ComplianceResult } from './schemas/ComplianceResult';
215
213
  export type { ComplianceResultAggregationByType } from './schemas/ComplianceResultAggregationByType';
216
214
  export type { ComplianceResultFilter } from './schemas/ComplianceResultFilter';
217
215
  export type { ComplianceResultStatus } from './schemas/ComplianceResultStatus';
@@ -1,29 +1,19 @@
1
- import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
1
+ import type { ComplianceEvaluationHistory } from '../schemas/ComplianceEvaluationHistory';
2
2
  import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
3
3
  import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
4
- import type { ComplianceResult } from '../schemas/ComplianceResult';
5
- import type { ComplianceArtifactType } from '../schemas/ComplianceArtifactType';
6
- /**
7
- *
8
- */
4
+ import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
9
5
  export interface ComplianceArtifactWithExecution {
10
6
  compliance_id: string;
11
7
  description?: string;
12
- executions?: {
13
- pipeline_excution_id: string;
14
- pipeline_id: string;
15
- stage_execution_id: string;
16
- status?: ComplianceResultStatus;
17
- step_execution_id: string;
18
- };
8
+ executions?: ComplianceEvaluationHistory[];
19
9
  name: string;
20
10
  reason?: string;
21
11
  remediation?: string;
22
12
  severity: ComplianceCheckSeverity;
23
13
  standards: ComplianceStandardType[];
24
- status?: ComplianceResult;
14
+ status?: ComplianceResultStatus;
25
15
  tags: string[];
26
16
  title?: string;
27
- type: ComplianceArtifactType;
17
+ type: string;
28
18
  updatedAt?: string;
29
19
  }
@@ -2,5 +2,7 @@ import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
2
2
  export interface ComplianceEvaluationHistory {
3
3
  pipeline_execution_id?: string;
4
4
  pipeline_id?: string;
5
+ stage_execution_id?: string;
5
6
  status?: ComplianceResultStatus;
7
+ step_execution_id?: string;
6
8
  }
@@ -12,5 +12,4 @@ export interface ComplianceResultAggregationByType {
12
12
  standards: ComplianceStandardType[];
13
13
  tags: string[];
14
14
  title: string;
15
- type: string;
16
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,3 +0,0 @@
1
- export interface ComplianceArtifactType {
2
- id?: {};
3
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,21 +0,0 @@
1
- import type { ComplianceCheckEntityType } from '../schemas/ComplianceCheckEntityType';
2
- import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
3
- import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
4
- import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
5
- export interface ComplianceResult {
6
- category: string;
7
- category_id: string;
8
- compliance_id: string;
9
- description?: string;
10
- entity: ComplianceCheckEntityType;
11
- reason: string;
12
- remediation: string;
13
- severity: ComplianceCheckSeverity;
14
- standards: ComplianceStandardType[];
15
- status: ComplianceResultStatus;
16
- sub_category: string;
17
- sub_category_id: string;
18
- tags?: string[];
19
- title?: string;
20
- url?: string;
21
- }