@harnessio/react-ssca-manager-client 0.84.3 → 0.84.4

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 (35) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.d.ts +20 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.d.ts +23 -0
  4. package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.js +14 -0
  5. package/dist/ssca-manager/src/services/index.d.ts +18 -0
  6. package/dist/ssca-manager/src/services/index.js +2 -0
  7. package/dist/ssca-manager/src/services/requestBodies/AutoPrConfigRequestBodyRequestBody.d.ts +2 -0
  8. package/dist/ssca-manager/src/services/requestBodies/AutoPrConfigRequestBodyRequestBody.js +1 -0
  9. package/dist/ssca-manager/src/services/responses/AutoPrConfigResponseBodyResponse.d.ts +2 -0
  10. package/dist/ssca-manager/src/services/responses/AutoPrConfigResponseBodyResponse.js +1 -0
  11. package/dist/ssca-manager/src/services/schemas/AutoPrAdvancedRule.d.ts +12 -0
  12. package/dist/ssca-manager/src/services/schemas/AutoPrAdvancedRule.js +1 -0
  13. package/dist/ssca-manager/src/services/schemas/AutoPrCheckInterval.d.ts +4 -0
  14. package/dist/ssca-manager/src/services/schemas/AutoPrCheckInterval.js +4 -0
  15. package/dist/ssca-manager/src/services/schemas/AutoPrComplianceRule.d.ts +14 -0
  16. package/dist/ssca-manager/src/services/schemas/AutoPrComplianceRule.js +4 -0
  17. package/dist/ssca-manager/src/services/schemas/AutoPrConfigRequestBody.d.ts +6 -0
  18. package/dist/ssca-manager/src/services/schemas/AutoPrConfigRequestBody.js +1 -0
  19. package/dist/ssca-manager/src/services/schemas/AutoPrConfigResponseBody.d.ts +50 -0
  20. package/dist/ssca-manager/src/services/schemas/AutoPrConfigResponseBody.js +1 -0
  21. package/dist/ssca-manager/src/services/schemas/AutoPrConfigUpdates.d.ts +25 -0
  22. package/dist/ssca-manager/src/services/schemas/AutoPrConfigUpdates.js +1 -0
  23. package/dist/ssca-manager/src/services/schemas/AutoPrDependencySafetyRule.d.ts +6 -0
  24. package/dist/ssca-manager/src/services/schemas/AutoPrDependencySafetyRule.js +4 -0
  25. package/dist/ssca-manager/src/services/schemas/AutoPrPreset.d.ts +4 -0
  26. package/dist/ssca-manager/src/services/schemas/AutoPrPreset.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/AutoPrSchedule.d.ts +20 -0
  28. package/dist/ssca-manager/src/services/schemas/AutoPrSchedule.js +1 -0
  29. package/dist/ssca-manager/src/services/schemas/AutoPrScheduleType.d.ts +4 -0
  30. package/dist/ssca-manager/src/services/schemas/AutoPrScheduleType.js +4 -0
  31. package/dist/ssca-manager/src/services/schemas/AutoPrSecurityRule.d.ts +22 -0
  32. package/dist/ssca-manager/src/services/schemas/AutoPrSecurityRule.js +4 -0
  33. package/dist/ssca-manager/src/services/schemas/AutoPrVersioningRule.d.ts +18 -0
  34. package/dist/ssca-manager/src/services/schemas/AutoPrVersioningRule.js +4 -0
  35. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfigResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAutoPrConfigQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface GetAutoPrConfigQueryHeaderParams {
10
+ 'Harness-Account': string;
11
+ }
12
+ export type GetAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
13
+ export type GetAutoPrConfigErrorResponse = unknown;
14
+ export interface GetAutoPrConfigProps extends GetAutoPrConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAutoPrConfigQueryHeaderParams>, 'url'> {
15
+ }
16
+ export declare function getAutoPrConfig(props: GetAutoPrConfigProps): Promise<GetAutoPrConfigOkResponse>;
17
+ /**
18
+ * Get Auto PR Config for the project
19
+ */
20
+ export declare function useGetAutoPrConfigQuery(props: GetAutoPrConfigProps, options?: Omit<UseQueryOptions<GetAutoPrConfigOkResponse, GetAutoPrConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAutoPrConfigOkResponse, unknown>;
@@ -0,0 +1,14 @@
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 getAutoPrConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/ssca-config/auto-pr-config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Auto PR Config for the project
11
+ */
12
+ export function useGetAutoPrConfigQuery(props, options) {
13
+ return useQuery(['getAutoPrConfig', props.org, props.project], ({ signal }) => getAutoPrConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfigResponseBodyResponse';
3
+ import type { AutoPrConfigRequestBodyRequestBody } from '../requestBodies/AutoPrConfigRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface SaveAutoPrConfigMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface SaveAutoPrConfigMutationHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type SaveAutoPrConfigRequestBody = AutoPrConfigRequestBodyRequestBody;
14
+ export type SaveAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
15
+ export type SaveAutoPrConfigErrorResponse = unknown;
16
+ export interface SaveAutoPrConfigProps extends SaveAutoPrConfigMutationPathParams, Omit<FetcherOptions<unknown, SaveAutoPrConfigRequestBody, SaveAutoPrConfigMutationHeaderParams>, 'url'> {
17
+ body: SaveAutoPrConfigRequestBody;
18
+ }
19
+ export declare function saveAutoPrConfig(props: SaveAutoPrConfigProps): Promise<SaveAutoPrConfigOkResponse>;
20
+ /**
21
+ * Create or update Auto PR Config for the project
22
+ */
23
+ export declare function useSaveAutoPrConfigMutation(options?: Omit<UseMutationOptions<SaveAutoPrConfigOkResponse, SaveAutoPrConfigErrorResponse, SaveAutoPrConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAutoPrConfigOkResponse, unknown, SaveAutoPrConfigProps, unknown>;
@@ -0,0 +1,14 @@
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 saveAutoPrConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/org/${props.org}/project/${props.project}/ssca-config/auto-pr-config`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Create or update Auto PR Config for the project
11
+ */
12
+ export function useSaveAutoPrConfigMutation(options) {
13
+ return useMutation((mutateProps) => saveAutoPrConfig(mutateProps), options);
14
+ }
@@ -61,6 +61,8 @@ export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2Detai
61
61
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
62
62
  export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewProps, GetArtifactV2OverviewQueryPathParams, } from './hooks/useGetArtifactV2OverviewQuery';
63
63
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
64
+ export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps, GetAutoPrConfigQueryPathParams, } from './hooks/useGetAutoPrConfigQuery';
65
+ export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
64
66
  export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
65
67
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
66
68
  export type { GetCicdOverviewErrorResponse, GetCicdOverviewOkResponse, GetCicdOverviewProps, GetCicdOverviewQueryPathParams, } from './hooks/useGetCicdOverviewQuery';
@@ -129,6 +131,8 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
129
131
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
130
132
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
131
133
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
134
+ export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigMutationPathParams, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
135
+ export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
132
136
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
133
137
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
134
138
  export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
@@ -144,6 +148,7 @@ export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/Arti
144
148
  export type { ArtifactSbomDriftRequestBodyRequestBody } from './requestBodies/ArtifactSbomDriftRequestBodyRequestBody';
145
149
  export type { AttestationQueryRequestBodyRequestBody } from './requestBodies/AttestationQueryRequestBodyRequestBody';
146
150
  export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/AttestationUploadRequestBodyRequestBody';
151
+ export type { AutoPrConfigRequestBodyRequestBody } from './requestBodies/AutoPrConfigRequestBodyRequestBody';
147
152
  export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
148
153
  export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
149
154
  export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
@@ -203,6 +208,7 @@ export type { ArtifactV2ListingResponseBodyResponse } from './responses/Artifact
203
208
  export type { AttestationDownloadResponseResponse } from './responses/AttestationDownloadResponseResponse';
204
209
  export type { AttestationQueryResponseResponse } from './responses/AttestationQueryResponseResponse';
205
210
  export type { AttestationUploadResponseResponse } from './responses/AttestationUploadResponseResponse';
211
+ export type { AutoPrConfigResponseBodyResponse } from './responses/AutoPrConfigResponseBodyResponse';
206
212
  export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
207
213
  export type { CicdHarnessPipelineResponseBodyResponse } from './responses/CicdHarnessPipelineResponseBodyResponse';
208
214
  export type { CicdOverviewResponseBodyResponse } from './responses/CicdOverviewResponseBodyResponse';
@@ -304,6 +310,18 @@ export type { Attestation } from './schemas/Attestation';
304
310
  export type { AttestationLinks } from './schemas/AttestationLinks';
305
311
  export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
306
312
  export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
313
+ export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
314
+ export type { AutoPrCheckInterval } from './schemas/AutoPrCheckInterval';
315
+ export type { AutoPrComplianceRule } from './schemas/AutoPrComplianceRule';
316
+ export type { AutoPrConfigRequestBody } from './schemas/AutoPrConfigRequestBody';
317
+ export type { AutoPrConfigResponseBody } from './schemas/AutoPrConfigResponseBody';
318
+ export type { AutoPrConfigUpdates } from './schemas/AutoPrConfigUpdates';
319
+ export type { AutoPrDependencySafetyRule } from './schemas/AutoPrDependencySafetyRule';
320
+ export type { AutoPrPreset } from './schemas/AutoPrPreset';
321
+ export type { AutoPrSchedule } from './schemas/AutoPrSchedule';
322
+ export type { AutoPrScheduleType } from './schemas/AutoPrScheduleType';
323
+ export type { AutoPrSecurityRule } from './schemas/AutoPrSecurityRule';
324
+ export type { AutoPrVersioningRule } from './schemas/AutoPrVersioningRule';
307
325
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
308
326
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
309
327
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
@@ -29,6 +29,7 @@ export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2Componen
29
29
  export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
30
30
  export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
31
31
  export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
32
+ export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
32
33
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
33
34
  export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
34
35
  export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
@@ -63,6 +64,7 @@ export { listIntegrations, useListIntegrationsQuery } from './hooks/useListInteg
63
64
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
64
65
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
65
66
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
67
+ export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
66
68
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
67
69
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
68
70
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
@@ -0,0 +1,2 @@
1
+ import type { AutoPrConfigRequestBody } from '../schemas/AutoPrConfigRequestBody';
2
+ export type AutoPrConfigRequestBodyRequestBody = AutoPrConfigRequestBody;
@@ -0,0 +1,2 @@
1
+ import type { AutoPrConfigResponseBody } from '../schemas/AutoPrConfigResponseBody';
2
+ export type AutoPrConfigResponseBodyResponse = AutoPrConfigResponseBody;
@@ -0,0 +1,12 @@
1
+ import type { AutoPrCheckInterval } from '../schemas/AutoPrCheckInterval';
2
+ export interface AutoPrAdvancedRule {
3
+ /**
4
+ * List of components to exclude (PURL format)
5
+ */
6
+ exclude_components?: string[];
7
+ /**
8
+ * Maximum number of PRs to create
9
+ */
10
+ maximum_no_of_prs?: number;
11
+ pr_check_interval?: AutoPrCheckInterval;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Interval for PR check
3
+ */
4
+ export type AutoPrCheckInterval = 'DAILY' | 'HOURLY' | 'MONTHLY' | 'WEEKLY';
@@ -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 {};
@@ -0,0 +1,14 @@
1
+ export interface AutoPrComplianceRule {
2
+ /**
3
+ * Create PR for end-of-life components
4
+ */
5
+ create_for_eol_components?: boolean;
6
+ /**
7
+ * Create PR for unmaintained components
8
+ */
9
+ create_for_unmaintained_components?: boolean;
10
+ /**
11
+ * Create PR when license changes
12
+ */
13
+ create_on_license_change?: boolean;
14
+ }
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ import type { AutoPrPreset } from '../schemas/AutoPrPreset';
2
+ import type { AutoPrConfigUpdates } from '../schemas/AutoPrConfigUpdates';
3
+ export interface AutoPrConfigRequestBody {
4
+ preset: AutoPrPreset;
5
+ updates?: AutoPrConfigUpdates;
6
+ }
@@ -0,0 +1,50 @@
1
+ import type { AutoPrAdvancedRule } from '../schemas/AutoPrAdvancedRule';
2
+ import type { AutoPrSchedule } from '../schemas/AutoPrSchedule';
3
+ import type { AutoPrComplianceRule } from '../schemas/AutoPrComplianceRule';
4
+ import type { AutoPrDependencySafetyRule } from '../schemas/AutoPrDependencySafetyRule';
5
+ import type { AutoPrPreset } from '../schemas/AutoPrPreset';
6
+ import type { AutoPrSecurityRule } from '../schemas/AutoPrSecurityRule';
7
+ import type { AutoPrVersioningRule } from '../schemas/AutoPrVersioningRule';
8
+ export interface AutoPrConfigResponseBody {
9
+ /**
10
+ * Account identifier
11
+ */
12
+ account_id?: string;
13
+ advanced_rule?: AutoPrAdvancedRule;
14
+ /**
15
+ * Allow override of config at lower levels
16
+ */
17
+ allow_override?: boolean;
18
+ auto_pr_schedule?: AutoPrSchedule;
19
+ compliance_rule?: AutoPrComplianceRule;
20
+ /**
21
+ * Auto PR Config identifier
22
+ */
23
+ config_id?: string;
24
+ /**
25
+ * Creation timestamp
26
+ * @format int64
27
+ */
28
+ created_at?: number;
29
+ dependency_safety_rule?: AutoPrDependencySafetyRule;
30
+ /**
31
+ * Enable or disable Auto PR
32
+ */
33
+ enabled?: boolean;
34
+ /**
35
+ * Organization identifier
36
+ */
37
+ org_id?: string;
38
+ preset?: AutoPrPreset;
39
+ /**
40
+ * Project identifier
41
+ */
42
+ project_id?: string;
43
+ security_rule?: AutoPrSecurityRule;
44
+ /**
45
+ * Last update timestamp
46
+ * @format int64
47
+ */
48
+ updated_at?: number;
49
+ versioning_rule?: AutoPrVersioningRule;
50
+ }
@@ -0,0 +1,25 @@
1
+ import type { AutoPrAdvancedRule } from '../schemas/AutoPrAdvancedRule';
2
+ import type { AutoPrSchedule } from '../schemas/AutoPrSchedule';
3
+ import type { AutoPrComplianceRule } from '../schemas/AutoPrComplianceRule';
4
+ import type { AutoPrDependencySafetyRule } from '../schemas/AutoPrDependencySafetyRule';
5
+ import type { AutoPrSecurityRule } from '../schemas/AutoPrSecurityRule';
6
+ import type { AutoPrVersioningRule } from '../schemas/AutoPrVersioningRule';
7
+ /**
8
+ * Updates to apply to the Auto PR Config. If null, config is created with preset defaults.
9
+ */
10
+ export interface AutoPrConfigUpdates {
11
+ advanced_rule?: AutoPrAdvancedRule;
12
+ /**
13
+ * Allow override of config at lower levels
14
+ */
15
+ allow_override?: boolean;
16
+ auto_pr_schedule?: AutoPrSchedule;
17
+ compliance_rule?: AutoPrComplianceRule;
18
+ dependency_safety_rule?: AutoPrDependencySafetyRule;
19
+ /**
20
+ * Enable or disable Auto PR
21
+ */
22
+ enabled?: boolean;
23
+ security_rule?: AutoPrSecurityRule;
24
+ versioning_rule?: AutoPrVersioningRule;
25
+ }
@@ -0,0 +1,6 @@
1
+ export interface AutoPrDependencySafetyRule {
2
+ /**
3
+ * Create PR when there are no transitive dependency conflicts
4
+ */
5
+ create_on_no_transitive_conflict?: boolean;
6
+ }
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Auto PR Config preset type
3
+ */
4
+ export type AutoPrPreset = 'CUSTOM' | 'STRICT';
@@ -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 {};
@@ -0,0 +1,20 @@
1
+ import type { AutoPrScheduleType } from '../schemas/AutoPrScheduleType';
2
+ export interface AutoPrSchedule {
3
+ /**
4
+ * Day of month for MONTHLY schedules (1-31)
5
+ */
6
+ day_of_month?: number;
7
+ /**
8
+ * Day of week for WEEKLY/BIWEEKLY schedules
9
+ */
10
+ day_of_week?: 'FRIDAY' | 'MONDAY' | 'SATURDAY' | 'SUNDAY' | 'THURSDAY' | 'TUESDAY' | 'WEDNESDAY';
11
+ /**
12
+ * Hour of day to run (0-23)
13
+ */
14
+ hour?: number;
15
+ /**
16
+ * Minute of hour to run (0-59)
17
+ */
18
+ minute?: number;
19
+ schedule_type?: AutoPrScheduleType;
20
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Schedule type for Auto PR
3
+ */
4
+ export type AutoPrScheduleType = 'BIWEEKLY' | 'DAILY' | 'MONTHLY' | 'WEEKLY';
@@ -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 {};
@@ -0,0 +1,22 @@
1
+ export interface AutoPrSecurityRule {
2
+ /**
3
+ * Create PR when critical vulnerabilities are fixed
4
+ */
5
+ create_on_critical_fixed?: boolean;
6
+ /**
7
+ * Create PR when high vulnerabilities are fixed
8
+ */
9
+ create_on_high_fixed?: boolean;
10
+ /**
11
+ * Create PR when low vulnerabilities are fixed
12
+ */
13
+ create_on_low_fixed?: boolean;
14
+ /**
15
+ * Create PR when medium vulnerabilities are fixed
16
+ */
17
+ create_on_medium_fixed?: boolean;
18
+ /**
19
+ * Create PR when no new vulnerabilities are introduced
20
+ */
21
+ create_on_no_new_vulnerabilities?: boolean;
22
+ }
@@ -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 {};
@@ -0,0 +1,18 @@
1
+ export interface AutoPrVersioningRule {
2
+ /**
3
+ * Allow major version upgrades
4
+ */
5
+ allow_major_version_upgrade?: boolean;
6
+ /**
7
+ * Allow minor version upgrades
8
+ */
9
+ allow_minor_version_upgrade?: boolean;
10
+ /**
11
+ * Allow patch version upgrades
12
+ */
13
+ allow_patch_version_upgrade?: boolean;
14
+ /**
15
+ * Allow pre-release version upgrades
16
+ */
17
+ allow_pre_release_version_upgrade?: boolean;
18
+ }
@@ -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.84.3",
3
+ "version": "0.84.4",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",