@harnessio/react-sei-panorama-service-client 0.25.13 → 0.25.15
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/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetPrVelocitySummaryMutation.d.ts +21 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetPrVelocitySummaryMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +16 -2
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +16 -2
- package/dist/sei-panorama-service/src/services/index.d.ts +13 -44
- package/dist/sei-panorama-service/src/services/index.js +1 -10
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownRequestDto.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsRequestDto.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/AiMetrics.js +0 -3
- package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +4 -4
- package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsResponseDto.d.ts +8 -11
- package/dist/sei-panorama-service/src/services/schemas/AiSummaryRequestDto.d.ts +1 -0
- package/dist/sei-panorama-service/src/services/schemas/AiSummaryResponseDto.d.ts +2 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/AiprVelocitySummaryRequestDto.d.ts +26 -0
- package/dist/sei-panorama-service/src/services/schemas/AiprVelocitySummaryResponseDto.d.ts +39 -0
- package/dist/sei-panorama-service/src/services/schemas/CursorMetrics.d.ts +40 -0
- package/dist/sei-panorama-service/src/services/schemas/FilterValuesRequestDto.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/IntegrationPrVelocitySummary.d.ts +10 -0
- package/dist/sei-panorama-service/src/services/schemas/OverallMetrics.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/PrVelocitySummaryBreakdown.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/PrVelocitySummaryMetrics.d.ts +25 -0
- package/dist/sei-panorama-service/src/services/schemas/ProductivityMetrics.d.ts +53 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryMetadata.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFilter.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TrendDataPoint.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/schemas/UserMetrics.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/WindsurfMetrics.d.ts +23 -0
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.d.ts +0 -33
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetAgedVulnerabilitiesQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.d.ts +0 -33
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrBreakdownQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.d.ts +0 -33
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenCloseRateQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.d.ts +0 -33
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.d.ts +0 -46
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityDrilldownQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetSecurityFilterValuesQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetTotalOpenVulnerabilitiesQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownItemDto.d.ts +0 -40
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesBreakdownResponseDto.d.ts +0 -27
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesDataPointDto.d.ts +0 -41
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesResponseDto.d.ts +0 -32
- package/dist/sei-panorama-service/src/services/schemas/AgedVulnerabilitiesSummaryDto.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.d.ts +0 -15
- package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownItemDto.d.ts +0 -22
- package/dist/sei-panorama-service/src/services/schemas/MttrBreakdownResponseDto.d.ts +0 -27
- package/dist/sei-panorama-service/src/services/schemas/MttrDataPointDto.d.ts +0 -23
- package/dist/sei-panorama-service/src/services/schemas/MttrResponseDto.d.ts +0 -32
- package/dist/sei-panorama-service/src/services/schemas/MttrResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/MttrSummaryDto.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownItemDto.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.d.ts +0 -27
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateBreakdownResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.d.ts +0 -35
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateDataPointDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.d.ts +0 -32
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/schemas/OpenCloseRateSummaryDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.d.ts +0 -46
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownItemDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.d.ts +0 -27
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesBreakdownResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.d.ts +0 -47
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesDataPointDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.d.ts +0 -31
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/schemas/OpenVulnerabilitiesSummaryDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/PaginationParams.d.ts +0 -19
- package/dist/sei-panorama-service/src/services/schemas/PaginationParams.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.d.ts +0 -6
- package/dist/sei-panorama-service/src/services/schemas/SecurityDrilldownResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.d.ts +0 -48
- package/dist/sei-panorama-service/src/services/schemas/VulnerabilityDetail.js +0 -4
- /package/dist/sei-panorama-service/src/services/schemas/{AgedVulnerabilitiesBreakdownItemDto.js → AiprVelocitySummaryRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AgedVulnerabilitiesBreakdownResponseDto.js → AiprVelocitySummaryResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AgedVulnerabilitiesDataPointDto.js → CursorMetrics.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AgedVulnerabilitiesResponseDto.js → IntegrationPrVelocitySummary.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AgedVulnerabilitiesSummaryDto.js → OverallMetrics.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{IntegrationRawMetrics.js → PrVelocitySummaryBreakdown.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{MttrBreakdownResponseDto.js → PrVelocitySummaryMetrics.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{MttrBreakdownItemDto.js → ProductivityMetrics.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{MttrDataPointDto.js → SummaryMetadata.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{MttrSummaryDto.js → TrendDataPoint.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{OpenCloseRateBreakdownItemDto.js → WindsurfMetrics.js} +0 -0
|
@@ -11,7 +11,7 @@ export interface FilterValuesRequestDto {
|
|
|
11
11
|
/**
|
|
12
12
|
* Filter key to get values for (used when isCustom = false)
|
|
13
13
|
*/
|
|
14
|
-
filterKey?: 'CODE_AREA' | 'COMPONENTS' | 'CUSTOM' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'ORGANIZATION' | 'PARENT_KEY' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SNYK_BRANCH' | 'SNYK_ENVIRONMENT' | 'SNYK_FILE_PATH' | 'SNYK_MONOREPO_PATH' | 'SNYK_ORG_ID' | 'SNYK_PROJECT_TAG' | 'SNYK_REPOSITORY' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM' | 'WIZ_CLOUD_ACCOUNT_ID' | 'WIZ_LANDING_ZONE_NAME' | 'WIZ_PROJECT_ID' | 'WIZ_REGION' | 'WIZ_RESOURCE_TAG' | 'WIZ_RESOURCE_TYPE';
|
|
14
|
+
filterKey?: 'CODE_AREA' | 'COMPONENTS' | 'CUSTOM' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'ORGANIZATION' | 'PARENT_KEY' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SNYK_BRANCH' | 'SNYK_ENVIRONMENT' | 'SNYK_FILE_PATH' | 'SNYK_MONOREPO_PATH' | 'SNYK_ORG_ID' | 'SNYK_ORG_NAME' | 'SNYK_PROJECT_TAG' | 'SNYK_REPOSITORY' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM' | 'WIZ_CLOUD_ACCOUNT_ID' | 'WIZ_LANDING_ZONE_NAME' | 'WIZ_PROJECT_ID' | 'WIZ_REGION' | 'WIZ_RESOURCE_TAG' | 'WIZ_RESOURCE_TYPE';
|
|
15
15
|
/**
|
|
16
16
|
* Integration ID
|
|
17
17
|
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PrVelocitySummaryMetrics } from '../schemas/PrVelocitySummaryMetrics';
|
|
2
|
+
/**
|
|
3
|
+
* Integration-specific PR velocity summary
|
|
4
|
+
*/
|
|
5
|
+
export interface IntegrationPrVelocitySummary {
|
|
6
|
+
/**
|
|
7
|
+
* Active users metrics
|
|
8
|
+
*/
|
|
9
|
+
active?: PrVelocitySummaryMetrics;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Overall PR velocity metrics
|
|
3
|
+
*/
|
|
4
|
+
export interface OverallMetrics {
|
|
5
|
+
/**
|
|
6
|
+
* Average PR velocity per developer
|
|
7
|
+
* @format double
|
|
8
|
+
*/
|
|
9
|
+
prVelocityPerDeveloper?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Trend percentage
|
|
12
|
+
* @format double
|
|
13
|
+
*/
|
|
14
|
+
trendPercentage?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PrVelocitySummaryMetrics } from '../schemas/PrVelocitySummaryMetrics';
|
|
2
|
+
import type { IntegrationPrVelocitySummary } from '../schemas/IntegrationPrVelocitySummary';
|
|
3
|
+
/**
|
|
4
|
+
* Breakdown by AI tool usage categories
|
|
5
|
+
*/
|
|
6
|
+
export interface PrVelocitySummaryBreakdown {
|
|
7
|
+
/**
|
|
8
|
+
* Active users metrics (single integration)
|
|
9
|
+
*/
|
|
10
|
+
active?: PrVelocitySummaryMetrics;
|
|
11
|
+
/**
|
|
12
|
+
* Combined active users metrics (multiple integration)
|
|
13
|
+
*/
|
|
14
|
+
combined?: IntegrationPrVelocitySummary;
|
|
15
|
+
/**
|
|
16
|
+
* Cursor integration metrics (multiple integration)
|
|
17
|
+
*/
|
|
18
|
+
cursor?: IntegrationPrVelocitySummary;
|
|
19
|
+
/**
|
|
20
|
+
* Inactive users metrics (single integration)
|
|
21
|
+
*/
|
|
22
|
+
inactive?: PrVelocitySummaryMetrics;
|
|
23
|
+
/**
|
|
24
|
+
* Unassigned users metrics
|
|
25
|
+
*/
|
|
26
|
+
unassigned?: PrVelocitySummaryMetrics;
|
|
27
|
+
/**
|
|
28
|
+
* Windsurf integration metrics (multiple integration)
|
|
29
|
+
*/
|
|
30
|
+
windsurf?: IntegrationPrVelocitySummary;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { TrendDataPoint } from '../schemas/TrendDataPoint';
|
|
2
|
+
/**
|
|
3
|
+
* PR velocity metrics for a category
|
|
4
|
+
*/
|
|
5
|
+
export interface PrVelocitySummaryMetrics {
|
|
6
|
+
/**
|
|
7
|
+
* Number of developers
|
|
8
|
+
* @format int32
|
|
9
|
+
*/
|
|
10
|
+
developerCount?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Average PR velocity per developer
|
|
13
|
+
* @format double
|
|
14
|
+
*/
|
|
15
|
+
prVelocityPerDeveloper?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Trend data points with time series
|
|
18
|
+
*/
|
|
19
|
+
trendData?: TrendDataPoint[];
|
|
20
|
+
/**
|
|
21
|
+
* Trend percentage
|
|
22
|
+
* @format double
|
|
23
|
+
*/
|
|
24
|
+
trendPercentage?: number;
|
|
25
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Productivity metrics data
|
|
3
|
+
*/
|
|
4
|
+
export interface ProductivityMetrics {
|
|
5
|
+
/**
|
|
6
|
+
* Average PR cycle time in seconds
|
|
7
|
+
* @format double
|
|
8
|
+
* @example 172800
|
|
9
|
+
*/
|
|
10
|
+
avgPRCycleTime?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Number of coding days
|
|
13
|
+
* @format int32
|
|
14
|
+
* @example 22
|
|
15
|
+
*/
|
|
16
|
+
codingDays?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Number of defects resolved
|
|
19
|
+
* @format double
|
|
20
|
+
* @example 8
|
|
21
|
+
*/
|
|
22
|
+
defectsResolved?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Number of features delivered
|
|
25
|
+
* @format double
|
|
26
|
+
* @example 6
|
|
27
|
+
*/
|
|
28
|
+
featuresDelivered?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Legacy rework percentage (lines modified after 30+ days)
|
|
31
|
+
* @format double
|
|
32
|
+
* @example 9.3
|
|
33
|
+
*/
|
|
34
|
+
legacyRework?: number;
|
|
35
|
+
/**
|
|
36
|
+
* New work percentage (net new lines of code)
|
|
37
|
+
* @format double
|
|
38
|
+
* @example 75.5
|
|
39
|
+
*/
|
|
40
|
+
newWork?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Number of PRs merged
|
|
43
|
+
* @format double
|
|
44
|
+
* @example 15
|
|
45
|
+
*/
|
|
46
|
+
prMerged?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Recent rework percentage (lines modified within 30 days)
|
|
49
|
+
* @format double
|
|
50
|
+
* @example 15.2
|
|
51
|
+
*/
|
|
52
|
+
recentRework?: number;
|
|
53
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface TeamFilter {
|
|
|
7
7
|
applicableMetrics?: Array<'AVG_TIME_TO_FIRST_COMMENT' | 'BA' | 'CFR' | 'CODING_DAYS' | 'DF' | 'LINES_OF_CODE' | 'LTTC' | 'MTTR' | 'NUMBER_OF_COMMENTS_PER_PR' | 'PR_CYCLE_TIME' | 'PR_VELOCITY' | 'SPRINT_INSIGHTS' | 'WORK_COMPLETED'>;
|
|
8
8
|
customFilterId?: string;
|
|
9
9
|
customFilterKey?: string;
|
|
10
|
-
filterKey?: 'CODE_AREA' | 'COMPONENTS' | 'CUSTOM' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'ORGANIZATION' | 'PARENT_KEY' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SNYK_BRANCH' | 'SNYK_ENVIRONMENT' | 'SNYK_FILE_PATH' | 'SNYK_MONOREPO_PATH' | 'SNYK_ORG_ID' | 'SNYK_PROJECT_TAG' | 'SNYK_REPOSITORY' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM' | 'WIZ_CLOUD_ACCOUNT_ID' | 'WIZ_LANDING_ZONE_NAME' | 'WIZ_PROJECT_ID' | 'WIZ_REGION' | 'WIZ_RESOURCE_TAG' | 'WIZ_RESOURCE_TYPE';
|
|
10
|
+
filterKey?: 'CODE_AREA' | 'COMPONENTS' | 'CUSTOM' | 'DEPLOYMENT_TYPE' | 'ENV_ID' | 'INFRA_ID' | 'ISSUE_PRIORITY' | 'ISSUE_STATUS' | 'ISSUE_TYPE' | 'LABEL' | 'LABELS' | 'ORGANIZATION' | 'PARENT_KEY' | 'PIPELINE_NAME' | 'PIPELINE_STATUS' | 'PRIORITY' | 'PROJECT' | 'REPO' | 'ROLLBACK' | 'SERVICE_NAME' | 'SNYK_BRANCH' | 'SNYK_ENVIRONMENT' | 'SNYK_FILE_PATH' | 'SNYK_MONOREPO_PATH' | 'SNYK_ORG_ID' | 'SNYK_ORG_NAME' | 'SNYK_PROJECT_TAG' | 'SNYK_REPOSITORY' | 'SOURCE_BRANCH' | 'SPRINT_NAME' | 'STAGE_NAME' | 'STATUS' | 'TAGS' | 'TARGET_BRANCH' | 'TEAM' | 'WIZ_CLOUD_ACCOUNT_ID' | 'WIZ_LANDING_ZONE_NAME' | 'WIZ_PROJECT_ID' | 'WIZ_REGION' | 'WIZ_RESOURCE_TAG' | 'WIZ_RESOURCE_TYPE';
|
|
11
11
|
/**
|
|
12
12
|
* @format int32
|
|
13
13
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Trend data point
|
|
3
|
+
*/
|
|
4
|
+
export interface TrendDataPoint {
|
|
5
|
+
/**
|
|
6
|
+
* End date of the period
|
|
7
|
+
* @format date-time
|
|
8
|
+
*/
|
|
9
|
+
endDate?: string;
|
|
10
|
+
/**
|
|
11
|
+
* PR velocity per developer for this period
|
|
12
|
+
* @format double
|
|
13
|
+
*/
|
|
14
|
+
prVelocityPerDeveloper?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Start date of the period
|
|
17
|
+
* @format date-time
|
|
18
|
+
*/
|
|
19
|
+
startDate?: string;
|
|
20
|
+
}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
import type { AiMetrics } from '../schemas/AiMetrics';
|
|
2
|
+
import type { CursorMetrics } from '../schemas/CursorMetrics';
|
|
3
|
+
import type { ProductivityMetrics } from '../schemas/ProductivityMetrics';
|
|
4
|
+
import type { WindsurfMetrics } from '../schemas/WindsurfMetrics';
|
|
2
5
|
/**
|
|
3
6
|
* User metrics data
|
|
4
7
|
*/
|
|
5
8
|
export interface UserMetrics {
|
|
6
9
|
/**
|
|
7
10
|
* AI metrics data
|
|
11
|
+
* @deprecated
|
|
8
12
|
*/
|
|
9
13
|
ai?: AiMetrics;
|
|
14
|
+
/**
|
|
15
|
+
* Cursor AI metrics
|
|
16
|
+
*/
|
|
17
|
+
cursor?: CursorMetrics;
|
|
18
|
+
/**
|
|
19
|
+
* Productivity metrics
|
|
20
|
+
*/
|
|
21
|
+
productivity?: ProductivityMetrics;
|
|
10
22
|
/**
|
|
11
23
|
* Team name
|
|
12
24
|
* @example "Engineering Team"
|
|
@@ -22,4 +34,8 @@ export interface UserMetrics {
|
|
|
22
34
|
* @example "sunil gattupalle"
|
|
23
35
|
*/
|
|
24
36
|
userName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Windsurf AI metrics
|
|
39
|
+
*/
|
|
40
|
+
windsurf?: WindsurfMetrics;
|
|
25
41
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Windsurf AI metrics data
|
|
3
|
+
*/
|
|
4
|
+
export interface WindsurfMetrics {
|
|
5
|
+
/**
|
|
6
|
+
* Line accept percentage
|
|
7
|
+
* @format double
|
|
8
|
+
* @example 99.8
|
|
9
|
+
*/
|
|
10
|
+
linesAcceptPercent?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Lines accepted
|
|
13
|
+
* @format int64
|
|
14
|
+
* @example 6875
|
|
15
|
+
*/
|
|
16
|
+
linesAccepted?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Lines suggested
|
|
19
|
+
* @format int64
|
|
20
|
+
* @example 6886
|
|
21
|
+
*/
|
|
22
|
+
linesSuggested?: number;
|
|
23
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.15",
|
|
4
4
|
"description": "Harness React sei panorama service client - SEI Panorama APIs integrated with react hooks for Panorama project",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AgedVulnerabilitiesBreakdownResponseDto } from '../schemas/AgedVulnerabilitiesBreakdownResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
-
}
|
|
24
|
-
export type SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse = ResponseWithPagination<AgedVulnerabilitiesBreakdownResponseDto>;
|
|
25
|
-
export type SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownErrorResponse = string;
|
|
26
|
-
export interface SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
-
queryParams: SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQueryQueryParams;
|
|
28
|
-
}
|
|
29
|
-
export declare function securityInsightsControllerGetAgedVulnerabilitiesBreakdown(props: SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps): Promise<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Groups aged vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery(props: SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse, SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetAgedVulnerabilitiesBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetAgedVulnerabilitiesBreakdown(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/aged-vulnerabilities/breakdown`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Groups aged vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetAgedVulnerabilitiesBreakdownQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetAgedVulnerabilitiesBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetAgedVulnerabilitiesBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AgedVulnerabilitiesResponseDto } from '../schemas/AgedVulnerabilitiesResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
granularity: string;
|
|
22
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
-
}
|
|
25
|
-
export type SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse = ResponseWithPagination<AgedVulnerabilitiesResponseDto>;
|
|
26
|
-
export type SecurityInsightsControllerGetAgedVulnerabilitiesErrorResponse = string;
|
|
27
|
-
export interface SecurityInsightsControllerGetAgedVulnerabilitiesProps extends Omit<FetcherOptions<SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams, unknown>, 'url'> {
|
|
28
|
-
queryParams: SecurityInsightsControllerGetAgedVulnerabilitiesQueryQueryParams;
|
|
29
|
-
}
|
|
30
|
-
export declare function securityInsightsControllerGetAgedVulnerabilities(props: SecurityInsightsControllerGetAgedVulnerabilitiesProps): Promise<SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves count of vulnerabilities exceeding SLA thresholds
|
|
33
|
-
*/
|
|
34
|
-
export declare function useSecurityInsightsControllerGetAgedVulnerabilitiesQuery(props: SecurityInsightsControllerGetAgedVulnerabilitiesProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse, SecurityInsightsControllerGetAgedVulnerabilitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetAgedVulnerabilitiesOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetAgedVulnerabilities(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/aged-vulnerabilities`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves count of vulnerabilities exceeding SLA thresholds
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetAgedVulnerabilitiesQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetAgedVulnerabilities', props.queryParams], ({ signal }) => securityInsightsControllerGetAgedVulnerabilities(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { MttrBreakdownResponseDto } from '../schemas/MttrBreakdownResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetMttrBreakdownQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
-
}
|
|
24
|
-
export type SecurityInsightsControllerGetMttrBreakdownOkResponse = ResponseWithPagination<MttrBreakdownResponseDto>;
|
|
25
|
-
export type SecurityInsightsControllerGetMttrBreakdownErrorResponse = string;
|
|
26
|
-
export interface SecurityInsightsControllerGetMttrBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetMttrBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
-
queryParams: SecurityInsightsControllerGetMttrBreakdownQueryQueryParams;
|
|
28
|
-
}
|
|
29
|
-
export declare function securityInsightsControllerGetMttrBreakdown(props: SecurityInsightsControllerGetMttrBreakdownProps): Promise<SecurityInsightsControllerGetMttrBreakdownOkResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Groups MTTR by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useSecurityInsightsControllerGetMttrBreakdownQuery(props: SecurityInsightsControllerGetMttrBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetMttrBreakdownOkResponse, SecurityInsightsControllerGetMttrBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetMttrBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetMttrBreakdown(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/mttr/breakdown`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Groups MTTR by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetMttrBreakdownQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetMttrBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetMttrBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { MttrResponseDto } from '../schemas/MttrResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetMttrQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
granularity: string;
|
|
22
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
-
}
|
|
25
|
-
export type SecurityInsightsControllerGetMttrOkResponse = ResponseWithPagination<MttrResponseDto>;
|
|
26
|
-
export type SecurityInsightsControllerGetMttrErrorResponse = string;
|
|
27
|
-
export interface SecurityInsightsControllerGetMttrProps extends Omit<FetcherOptions<SecurityInsightsControllerGetMttrQueryQueryParams, unknown>, 'url'> {
|
|
28
|
-
queryParams: SecurityInsightsControllerGetMttrQueryQueryParams;
|
|
29
|
-
}
|
|
30
|
-
export declare function securityInsightsControllerGetMttr(props: SecurityInsightsControllerGetMttrProps): Promise<SecurityInsightsControllerGetMttrOkResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves average time to remediate security vulnerabilities
|
|
33
|
-
*/
|
|
34
|
-
export declare function useSecurityInsightsControllerGetMttrQuery(props: SecurityInsightsControllerGetMttrProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetMttrOkResponse, SecurityInsightsControllerGetMttrErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetMttrOkResponse, string>;
|
package/dist/sei-panorama-service/src/services/hooks/useSecurityInsightsControllerGetMttrQuery.js
DELETED
|
@@ -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 securityInsightsControllerGetMttr(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/mttr`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves average time to remediate security vulnerabilities
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetMttrQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetMttr', props.queryParams], ({ signal }) => securityInsightsControllerGetMttr(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OpenCloseRateBreakdownResponseDto } from '../schemas/OpenCloseRateBreakdownResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
-
}
|
|
24
|
-
export type SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse = ResponseWithPagination<OpenCloseRateBreakdownResponseDto>;
|
|
25
|
-
export type SecurityInsightsControllerGetOpenCloseRateBreakdownErrorResponse = string;
|
|
26
|
-
export interface SecurityInsightsControllerGetOpenCloseRateBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
-
queryParams: SecurityInsightsControllerGetOpenCloseRateBreakdownQueryQueryParams;
|
|
28
|
-
}
|
|
29
|
-
export declare function securityInsightsControllerGetOpenCloseRateBreakdown(props: SecurityInsightsControllerGetOpenCloseRateBreakdownProps): Promise<SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Groups open/close rate by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery(props: SecurityInsightsControllerGetOpenCloseRateBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse, SecurityInsightsControllerGetOpenCloseRateBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetOpenCloseRateBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetOpenCloseRateBreakdown(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/open-close-rate/breakdown`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Groups open/close rate by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetOpenCloseRateBreakdownQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetOpenCloseRateBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetOpenCloseRateBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OpenCloseRateResponseDto } from '../schemas/OpenCloseRateResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetOpenCloseRateQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
granularity: string;
|
|
22
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
23
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
24
|
-
}
|
|
25
|
-
export type SecurityInsightsControllerGetOpenCloseRateOkResponse = ResponseWithPagination<OpenCloseRateResponseDto>;
|
|
26
|
-
export type SecurityInsightsControllerGetOpenCloseRateErrorResponse = string;
|
|
27
|
-
export interface SecurityInsightsControllerGetOpenCloseRateProps extends Omit<FetcherOptions<SecurityInsightsControllerGetOpenCloseRateQueryQueryParams, unknown>, 'url'> {
|
|
28
|
-
queryParams: SecurityInsightsControllerGetOpenCloseRateQueryQueryParams;
|
|
29
|
-
}
|
|
30
|
-
export declare function securityInsightsControllerGetOpenCloseRate(props: SecurityInsightsControllerGetOpenCloseRateProps): Promise<SecurityInsightsControllerGetOpenCloseRateOkResponse>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves the rate of vulnerabilities being closed vs opened
|
|
33
|
-
*/
|
|
34
|
-
export declare function useSecurityInsightsControllerGetOpenCloseRateQuery(props: SecurityInsightsControllerGetOpenCloseRateProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetOpenCloseRateOkResponse, SecurityInsightsControllerGetOpenCloseRateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetOpenCloseRateOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetOpenCloseRate(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/open-close-rate`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves the rate of vulnerabilities being closed vs opened
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetOpenCloseRateQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetOpenCloseRate', props.queryParams], ({ signal }) => securityInsightsControllerGetOpenCloseRate(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OpenVulnerabilitiesBreakdownResponseDto } from '../schemas/OpenVulnerabilitiesBreakdownResponseDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams {
|
|
6
|
-
account: string;
|
|
7
|
-
projectIdentifier: string;
|
|
8
|
-
orgIdentifier: string;
|
|
9
|
-
/**
|
|
10
|
-
* @format int32
|
|
11
|
-
*/
|
|
12
|
-
teamRefId: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format date-time
|
|
15
|
-
*/
|
|
16
|
-
startDate: string;
|
|
17
|
-
/**
|
|
18
|
-
* @format date-time
|
|
19
|
-
*/
|
|
20
|
-
endDate: string;
|
|
21
|
-
severity?: 'ALL' | 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
22
|
-
assetType?: 'ALL' | 'CLI' | 'CONTAINER' | 'INFRASTRUCTURE' | 'REPOSITORY';
|
|
23
|
-
}
|
|
24
|
-
export type SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse = ResponseWithPagination<OpenVulnerabilitiesBreakdownResponseDto>;
|
|
25
|
-
export type SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownErrorResponse = string;
|
|
26
|
-
export interface SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps extends Omit<FetcherOptions<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams, unknown>, 'url'> {
|
|
27
|
-
queryParams: SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQueryQueryParams;
|
|
28
|
-
}
|
|
29
|
-
export declare function securityInsightsControllerGetOpenVulnerabilitiesBreakdown(props: SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps): Promise<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Groups open vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery(props: SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownProps, options?: Omit<UseQueryOptions<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse, SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<SecurityInsightsControllerGetOpenVulnerabilitiesBreakdownOkResponse, string>;
|
|
@@ -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 securityInsightsControllerGetOpenVulnerabilitiesBreakdown(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/security/open-vulnerabilities/breakdown`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Groups open vulnerabilities by team. Returns aggregated values for each team for the entire duration.
|
|
11
|
-
*/
|
|
12
|
-
export function useSecurityInsightsControllerGetOpenVulnerabilitiesBreakdownQuery(props, options) {
|
|
13
|
-
return useQuery(['SecurityInsightsControllerGetOpenVulnerabilitiesBreakdown', props.queryParams], ({ signal }) => securityInsightsControllerGetOpenVulnerabilitiesBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|