@harnessio/react-ssca-manager-client 0.7.0 → 0.9.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.
@@ -28,4 +28,7 @@ export type { ArtifactDetailResponse } from './schemas/ArtifactDetailResponse';
28
28
  export type { ArtifactListingRequestBody } from './schemas/ArtifactListingRequestBody';
29
29
  export type { ArtifactListingResponse } from './schemas/ArtifactListingResponse';
30
30
  export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
31
+ export type { ComponentFilter } from './schemas/ComponentFilter';
32
+ export type { LicenseFilter } from './schemas/LicenseFilter';
33
+ export type { Operator } from './schemas/Operator';
31
34
  export type { PolicyViolation } from './schemas/PolicyViolation';
@@ -1,13 +1,8 @@
1
+ import type { ComponentFilter } from '../schemas/ComponentFilter';
2
+ import type { LicenseFilter } from '../schemas/LicenseFilter';
1
3
  export interface ArtifactComponentViewRequestBody {
2
- component_filter?: {
3
- field_name?: string;
4
- operator?: string;
5
- value?: string;
6
- };
7
- license_filter?: {
8
- operator?: string;
9
- value?: string;
10
- };
4
+ component_filter?: ComponentFilter[];
5
+ license_filter?: LicenseFilter;
11
6
  package_manager?: string;
12
7
  package_supplier?: string;
13
8
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,5 +1,5 @@
1
1
  export interface ArtifactDeploymentViewRequestBody {
2
2
  environment?: string;
3
- 'environment_type '?: 'ALL' | 'NONPROD' | 'PROD';
3
+ environment_type?: 'NonProd' | 'Prod';
4
4
  policy_violation?: 'ALLOW' | 'DENY';
5
5
  }
@@ -1,7 +1,7 @@
1
1
  export interface ArtifactDeploymentViewResponse {
2
- allow_list_policy_violation?: string;
2
+ allow_list_violation_count?: string;
3
3
  attested_status?: 'FAIL' | 'PASS';
4
- deny_list_policy_violation?: string;
4
+ deny_list_violation_count?: string;
5
5
  enforcement_id?: string;
6
6
  env_id?: string;
7
7
  env_name?: string;
@@ -1,14 +1,9 @@
1
+ import type { ComponentFilter } from '../schemas/ComponentFilter';
2
+ import type { LicenseFilter } from '../schemas/LicenseFilter';
1
3
  export interface ArtifactListingRequestBody {
2
- component_filter?: Array<{
3
- field_name?: 'ComponentName' | 'ComponentVersion';
4
- operator?: 'Contains' | 'Equals' | 'StartsWith';
5
- value?: string;
6
- }>;
4
+ component_filter?: ComponentFilter[];
7
5
  environment_type?: 'All' | 'NonProd' | 'None' | 'Prod';
8
- license_filter?: {
9
- operator?: 'Equals';
10
- value?: string;
11
- };
6
+ license_filter?: LicenseFilter;
12
7
  policy_violation?: 'ALLOW' | 'DENY';
13
8
  search_term?: string;
14
9
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -1,10 +1,10 @@
1
1
  export interface ArtifactListingResponse {
2
2
  activity?: 'DEPLOYED' | 'GENERATED';
3
- allow_list_violation_count?: number;
3
+ allow_list_violation_count?: string;
4
4
  build_pipeline_execution_id?: string;
5
5
  build_pipeline_id?: string;
6
6
  components_count?: number;
7
- deny_list_violation_count?: number;
7
+ deny_list_violation_count?: string;
8
8
  enforcement_id?: string;
9
9
  id: string;
10
10
  name: string;
@@ -12,5 +12,5 @@ export interface ArtifactListingResponse {
12
12
  orchestration_id?: string;
13
13
  prod_env_count?: number;
14
14
  tag: string;
15
- updated_at?: string;
15
+ updated?: string;
16
16
  }
@@ -0,0 +1,6 @@
1
+ import type { Operator } from '../schemas/Operator';
2
+ export interface ComponentFilter {
3
+ field_name?: 'ComponentName' | 'ComponentVersion';
4
+ operator?: Operator;
5
+ value?: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Operator } from '../schemas/Operator';
2
+ export interface LicenseFilter {
3
+ operator?: Operator;
4
+ value?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ export interface Operator {
2
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",