@harnessio/react-ssca-manager-client 0.6.0 → 0.8.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.
Files changed (21) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailComponentViewQuery.d.ts +3 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailDeploymentViewQuery.d.ts +3 -0
  3. package/dist/ssca-manager/src/services/hooks/useListArtifactsQuery.d.ts +3 -0
  4. package/dist/ssca-manager/src/services/hooks/useListLatestArtifactsQuery.d.ts +3 -0
  5. package/dist/ssca-manager/src/services/index.d.ts +3 -0
  6. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.d.ts +5 -10
  7. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewRequestBody.js +0 -3
  8. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +4 -4
  9. package/dist/ssca-manager/src/services/schemas/ArtifactDeploymentViewRequestBody.d.ts +1 -1
  10. package/dist/ssca-manager/src/services/schemas/ArtifactDeploymentViewResponse.d.ts +3 -3
  11. package/dist/ssca-manager/src/services/schemas/ArtifactDetailResponse.d.ts +2 -2
  12. package/dist/ssca-manager/src/services/schemas/ArtifactListingRequestBody.d.ts +4 -9
  13. package/dist/ssca-manager/src/services/schemas/ArtifactListingRequestBody.js +0 -3
  14. package/dist/ssca-manager/src/services/schemas/ArtifactListingResponse.d.ts +4 -5
  15. package/dist/ssca-manager/src/services/schemas/ComponentFilter.d.ts +6 -0
  16. package/dist/ssca-manager/src/services/schemas/ComponentFilter.js +1 -0
  17. package/dist/ssca-manager/src/services/schemas/LicenseFilter.d.ts +5 -0
  18. package/dist/ssca-manager/src/services/schemas/LicenseFilter.js +1 -0
  19. package/dist/ssca-manager/src/services/schemas/Operator.d.ts +2 -0
  20. package/dist/ssca-manager/src/services/schemas/Operator.js +4 -0
  21. package/package.json +1 -1
@@ -22,6 +22,9 @@ export interface GetArtifactDetailComponentViewQueryQueryParams {
22
22
  * @default 0
23
23
  */
24
24
  page?: number;
25
+ /**
26
+ * @default "package_name"
27
+ */
25
28
  sort?: {};
26
29
  }
27
30
  export interface GetArtifactDetailComponentViewQueryHeaderParams {
@@ -22,6 +22,9 @@ export interface GetArtifactDetailDeploymentViewQueryQueryParams {
22
22
  * @default 0
23
23
  */
24
24
  page?: number;
25
+ /**
26
+ * @default "env_name"
27
+ */
25
28
  sort?: {};
26
29
  }
27
30
  export interface GetArtifactDetailDeploymentViewQueryHeaderParams {
@@ -20,6 +20,9 @@ export interface ListArtifactsQueryQueryParams {
20
20
  * @default 0
21
21
  */
22
22
  page?: number;
23
+ /**
24
+ * @default "name"
25
+ */
23
26
  sort?: {};
24
27
  }
25
28
  export interface ListArtifactsQueryHeaderParams {
@@ -19,6 +19,9 @@ export interface ListLatestArtifactsQueryQueryParams {
19
19
  * @default 0
20
20
  */
21
21
  page?: number;
22
+ /**
23
+ * @default "name"
24
+ */
22
25
  sort?: {};
23
26
  }
24
27
  export interface ListLatestArtifactsQueryHeaderParams {
@@ -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
- supplier?: string;
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,8 +1,8 @@
1
1
  export interface ArtifactComponentViewResponse {
2
- license?: string;
3
- name?: string;
2
+ package_license?: string;
4
3
  package_manager?: string;
4
+ package_name?: string;
5
+ package_supplier?: string;
6
+ package_version?: string;
5
7
  purl?: string;
6
- supplier?: string;
7
- version?: string;
8
8
  }
@@ -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
  }
@@ -3,12 +3,12 @@ export interface ArtifactDeploymentViewResponse {
3
3
  attested_status?: 'FAIL' | 'PASS';
4
4
  deny_list_policy_violation?: string;
5
5
  enforcement_id?: string;
6
- id?: string;
7
- name?: string;
6
+ env_id?: string;
7
+ env_name?: string;
8
+ env_type?: 'NONPROD' | 'PROD';
8
9
  pipeline_execution_id?: string;
9
10
  pipeline_id?: string;
10
11
  triggered_at?: string;
11
12
  triggered_by?: string;
12
13
  triggered_by_id?: string;
13
- type?: 'NONPROD' | 'PROD';
14
14
  }
@@ -1,9 +1,9 @@
1
1
  export interface ArtifactDetailResponse {
2
- artifact_id: string;
3
- artifact_name: string;
4
2
  build_pipeline_execution_id?: string;
5
3
  build_pipeline_id?: string;
6
4
  components_count?: number;
5
+ id: string;
6
+ name: string;
7
7
  non_prod_env_count?: number;
8
8
  orchestration_id?: string;
9
9
  prod_env_count?: number;
@@ -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,17 +1,16 @@
1
1
  export interface ArtifactListingResponse {
2
2
  activity?: 'DEPLOYED' | 'GENERATED';
3
- allow_list_violation_count?: number;
4
- artifact_id: string;
5
- artifact_name: string;
3
+ allow_list_violation_count?: string;
6
4
  build_pipeline_execution_id?: string;
7
5
  build_pipeline_id?: string;
8
6
  components_count?: number;
9
- deny_list_violation_count?: number;
7
+ deny_list_violation_count?: string;
10
8
  enforcement_id?: string;
9
+ id: string;
10
+ name: string;
11
11
  non_prod_env_count?: number;
12
12
  orchestration_id?: string;
13
13
  prod_env_count?: number;
14
- sbom_url?: string;
15
14
  tag: string;
16
15
  updated_at?: string;
17
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.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",