@harnessio/react-sei-panorama-service-client 0.25.12 → 0.25.14
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/useAiInsightsControllerGetRawMetricsQuery.d.ts +16 -2
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +16 -2
- package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/index.d.ts +4 -2
- 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/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/ProductivityMetrics.d.ts +53 -0
- package/dist/sei-panorama-service/src/services/schemas/ProductivityMetrics.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryMetadata.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryMetadata.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamFilter.d.ts +1 -1
- 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/dist/sei-panorama-service/src/services/schemas/WindsurfMetrics.js +4 -0
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.d.ts +0 -15
- package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/PaginationParams.d.ts +0 -19
- /package/dist/sei-panorama-service/src/services/schemas/{PaginationParams.js → CursorMetrics.js} +0 -0
package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts
CHANGED
|
@@ -24,6 +24,16 @@ export declare function aiInsightsControllerGetRawMetrics(props: AiInsightsContr
|
|
|
24
24
|
* - `inactive`: Returns only userName, userEmail, team for inactive users (licensed but not active)
|
|
25
25
|
* - `unassigned`: Returns only userName, userEmail, team for unassigned users (not licensed)
|
|
26
26
|
*
|
|
27
|
+
* **Productivity Metrics:**
|
|
28
|
+
* For `type=active`, automatically includes productivity metrics:
|
|
29
|
+
* - prMerged: Number of PRs merged
|
|
30
|
+
* - defectsResolved: Number of defects resolved
|
|
31
|
+
* - featuresDelivered: Number of features delivered
|
|
32
|
+
* - codingDays: Number of active coding days
|
|
33
|
+
* - recentRework: Recent code rework volume
|
|
34
|
+
* - legacyRework: Legacy code rework volume
|
|
35
|
+
* - avgPRCycleTime: PR cycle time statistics (mean, median, p90, p95)
|
|
36
|
+
*
|
|
27
37
|
* **Integration Types:**
|
|
28
38
|
* Specify using an array of enum values:
|
|
29
39
|
* - `cursor` - Cursor AI coding assistant
|
|
@@ -89,13 +99,17 @@ export declare function aiInsightsControllerGetRawMetrics(props: AiInsightsContr
|
|
|
89
99
|
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
90
100
|
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
91
101
|
* lastActiveDate/last_active_date, primaryLanguage/primary_language, linesAccepted/lines_accepted,
|
|
92
|
-
* linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent
|
|
102
|
+
* linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent,
|
|
103
|
+
* prMerged/pr_merged, defectsResolved/defects_resolved, featuresDelivered/features_delivered,
|
|
104
|
+
* codingDays/coding_days, recentRework/recent_rework, legacyRework/legacy_rework
|
|
93
105
|
*
|
|
94
106
|
* For active users (Windsurf):
|
|
95
107
|
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
96
108
|
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
97
109
|
* lastActiveDate/last_active_date, linesAccepted/lines_accepted, linesSuggested/lines_suggested,
|
|
98
|
-
* linesAcceptPercent/lines_accept_percent
|
|
110
|
+
* linesAcceptPercent/lines_accept_percent,
|
|
111
|
+
* prMerged/pr_merged, defectsResolved/defects_resolved, featuresDelivered/features_delivered,
|
|
112
|
+
* codingDays/coding_days, recentRework/recent_rework, legacyRework/legacy_rework
|
|
99
113
|
*
|
|
100
114
|
* Sort criteria: ASC or DESC (defaults to DESC)
|
|
101
115
|
*
|
package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js
CHANGED
|
@@ -14,6 +14,16 @@ export function aiInsightsControllerGetRawMetrics(props) {
|
|
|
14
14
|
* - `inactive`: Returns only userName, userEmail, team for inactive users (licensed but not active)
|
|
15
15
|
* - `unassigned`: Returns only userName, userEmail, team for unassigned users (not licensed)
|
|
16
16
|
*
|
|
17
|
+
* **Productivity Metrics:**
|
|
18
|
+
* For `type=active`, automatically includes productivity metrics:
|
|
19
|
+
* - prMerged: Number of PRs merged
|
|
20
|
+
* - defectsResolved: Number of defects resolved
|
|
21
|
+
* - featuresDelivered: Number of features delivered
|
|
22
|
+
* - codingDays: Number of active coding days
|
|
23
|
+
* - recentRework: Recent code rework volume
|
|
24
|
+
* - legacyRework: Legacy code rework volume
|
|
25
|
+
* - avgPRCycleTime: PR cycle time statistics (mean, median, p90, p95)
|
|
26
|
+
*
|
|
17
27
|
* **Integration Types:**
|
|
18
28
|
* Specify using an array of enum values:
|
|
19
29
|
* - `cursor` - Cursor AI coding assistant
|
|
@@ -79,13 +89,17 @@ export function aiInsightsControllerGetRawMetrics(props) {
|
|
|
79
89
|
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
80
90
|
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
81
91
|
* lastActiveDate/last_active_date, primaryLanguage/primary_language, linesAccepted/lines_accepted,
|
|
82
|
-
* linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent
|
|
92
|
+
* linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent,
|
|
93
|
+
* prMerged/pr_merged, defectsResolved/defects_resolved, featuresDelivered/features_delivered,
|
|
94
|
+
* codingDays/coding_days, recentRework/recent_rework, legacyRework/legacy_rework
|
|
83
95
|
*
|
|
84
96
|
* For active users (Windsurf):
|
|
85
97
|
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
86
98
|
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
87
99
|
* lastActiveDate/last_active_date, linesAccepted/lines_accepted, linesSuggested/lines_suggested,
|
|
88
|
-
* linesAcceptPercent/lines_accept_percent
|
|
100
|
+
* linesAcceptPercent/lines_accept_percent,
|
|
101
|
+
* prMerged/pr_merged, defectsResolved/defects_resolved, featuresDelivered/features_delivered,
|
|
102
|
+
* codingDays/coding_days, recentRework/recent_rework, legacyRework/legacy_rework
|
|
89
103
|
*
|
|
90
104
|
* Sort criteria: ASC or DESC (defaults to DESC)
|
|
91
105
|
*
|
|
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
|
|
|
7
7
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
8
|
export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
|
|
9
9
|
export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
|
|
10
|
-
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse =
|
|
10
|
+
export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
|
|
11
11
|
export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
|
|
12
12
|
body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
|
|
13
13
|
}
|
|
@@ -429,6 +429,7 @@ export type { CollectionEnriched } from './schemas/CollectionEnriched';
|
|
|
429
429
|
export type { CollectionFilter } from './schemas/CollectionFilter';
|
|
430
430
|
export type { CollectionTree } from './schemas/CollectionTree';
|
|
431
431
|
export type { CommitInfo } from './schemas/CommitInfo';
|
|
432
|
+
export type { CursorMetrics } from './schemas/CursorMetrics';
|
|
432
433
|
export type { DailyCountDataPoint } from './schemas/DailyCountDataPoint';
|
|
433
434
|
export type { DailyLicenseUsageResponseDto } from './schemas/DailyLicenseUsageResponseDto';
|
|
434
435
|
export type { DataPoint } from './schemas/DataPoint';
|
|
@@ -522,7 +523,6 @@ export type { IntegrationHealthDrillDownDto } from './schemas/IntegrationHealthD
|
|
|
522
523
|
export type { IntegrationHealthStatusDto } from './schemas/IntegrationHealthStatusDto';
|
|
523
524
|
export type { IntegrationIdsDto } from './schemas/IntegrationIdsDto';
|
|
524
525
|
export type { IntegrationObject } from './schemas/IntegrationObject';
|
|
525
|
-
export type { IntegrationRawMetrics } from './schemas/IntegrationRawMetrics';
|
|
526
526
|
export type { IntegrationResponseDto } from './schemas/IntegrationResponseDto';
|
|
527
527
|
export type { IntegrationStatsDto } from './schemas/IntegrationStatsDto';
|
|
528
528
|
export type { IntegrationSummary } from './schemas/IntegrationSummary';
|
|
@@ -572,7 +572,6 @@ export type { OrgTreeUpdateRequestDto } from './schemas/OrgTreeUpdateRequestDto'
|
|
|
572
572
|
export type { PaginatedResponseTeamSummary } from './schemas/PaginatedResponseTeamSummary';
|
|
573
573
|
export type { PaginationInfo } from './schemas/PaginationInfo';
|
|
574
574
|
export type { PaginationMetadata } from './schemas/PaginationMetadata';
|
|
575
|
-
export type { PaginationParams } from './schemas/PaginationParams';
|
|
576
575
|
export type { PaginationRequest } from './schemas/PaginationRequest';
|
|
577
576
|
export type { PrCommitsRequest } from './schemas/PrCommitsRequest';
|
|
578
577
|
export type { PrCommitsResponse } from './schemas/PrCommitsResponse';
|
|
@@ -595,6 +594,7 @@ export type { ProductivityFeatureDrilldownResponseDto } from './schemas/Producti
|
|
|
595
594
|
export type { ProductivityFeatureIndividualDrilldownResponseDto } from './schemas/ProductivityFeatureIndividualDrilldownResponseDto';
|
|
596
595
|
export type { ProductivityFeatureRequestDto } from './schemas/ProductivityFeatureRequestDto';
|
|
597
596
|
export type { ProductivityFeatureResponseDto } from './schemas/ProductivityFeatureResponseDto';
|
|
597
|
+
export type { ProductivityMetrics } from './schemas/ProductivityMetrics';
|
|
598
598
|
export type { ProductivityProfileCreateRequestDto } from './schemas/ProductivityProfileCreateRequestDto';
|
|
599
599
|
export type { ProductivityProfileResponseDto } from './schemas/ProductivityProfileResponseDto';
|
|
600
600
|
export type { ProductivityRequestDto } from './schemas/ProductivityRequestDto';
|
|
@@ -643,6 +643,7 @@ export type { SprintTicketsResponseDto } from './schemas/SprintTicketsResponseDt
|
|
|
643
643
|
export type { SprintWorkBreakdownDto } from './schemas/SprintWorkBreakdownDto';
|
|
644
644
|
export type { Stage } from './schemas/Stage';
|
|
645
645
|
export type { SummaryCard } from './schemas/SummaryCard';
|
|
646
|
+
export type { SummaryMetadata } from './schemas/SummaryMetadata';
|
|
646
647
|
export type { SummarySection } from './schemas/SummarySection';
|
|
647
648
|
export type { SummaryValue } from './schemas/SummaryValue';
|
|
648
649
|
export type { SummaryValueChange } from './schemas/SummaryValueChange';
|
|
@@ -666,6 +667,7 @@ export type { TotalStatisticCount } from './schemas/TotalStatisticCount';
|
|
|
666
667
|
export type { UserMetrics } from './schemas/UserMetrics';
|
|
667
668
|
export type { ValidationError } from './schemas/ValidationError';
|
|
668
669
|
export type { VersionReleaseRequest } from './schemas/VersionReleaseRequest';
|
|
670
|
+
export type { WindsurfMetrics } from './schemas/WindsurfMetrics';
|
|
669
671
|
export type { WorkCompletedDrilldownResponseDataPoint } from './schemas/WorkCompletedDrilldownResponseDataPoint';
|
|
670
672
|
export type { WorkCompletedDrilldownResponseDataPointV3 } from './schemas/WorkCompletedDrilldownResponseDataPointV3';
|
|
671
673
|
export type { WorkCompletedIndividualDrilldownResponseDataPoint } from './schemas/WorkCompletedIndividualDrilldownResponseDataPoint';
|
|
@@ -19,8 +19,8 @@ export interface AiAdoptionBreakdownRequestDto {
|
|
|
19
19
|
* List of integration types to include
|
|
20
20
|
* @example ["cursor","windsurf"]
|
|
21
21
|
*/
|
|
22
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
23
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
22
|
+
integrationType: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
23
|
+
integrationTypeList?: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
24
24
|
/**
|
|
25
25
|
* Start date of the analysis period
|
|
26
26
|
* @format date-time
|
|
@@ -17,8 +17,8 @@ export interface AiAdoptionMetricsRequestDto {
|
|
|
17
17
|
* List of AI integration types to include in the response
|
|
18
18
|
* @example ["cursor","windsurf"]
|
|
19
19
|
*/
|
|
20
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
21
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
20
|
+
integrationType: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
21
|
+
integrationTypeList?: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
22
22
|
/**
|
|
23
23
|
* Start date for the metrics period (ISO 8601 format)
|
|
24
24
|
* @format date-time
|
|
@@ -14,8 +14,8 @@ export interface AiAdoptionSummaryRequestDto {
|
|
|
14
14
|
* List of integration types to include
|
|
15
15
|
* @example ["cursor","windsurf"]
|
|
16
16
|
*/
|
|
17
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
18
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
17
|
+
integrationType: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
18
|
+
integrationTypeList?: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
19
19
|
/**
|
|
20
20
|
* Start date of the analysis period
|
|
21
21
|
* @format date-time
|
|
@@ -21,7 +21,7 @@ export interface AiCombinedInsightsRequestDto {
|
|
|
21
21
|
* Metric type to fetch
|
|
22
22
|
* @example "DAILY_ACTIVE_USERS"
|
|
23
23
|
*/
|
|
24
|
-
metricType: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested';
|
|
24
|
+
metricType: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'dailyActiveUsers' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested' | 'netLinesAddedPerContributor';
|
|
25
25
|
/**
|
|
26
26
|
* Start date for the metrics
|
|
27
27
|
* @format date-time
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ProductivityMetrics } from '../schemas/ProductivityMetrics';
|
|
1
2
|
/**
|
|
2
3
|
* AI metrics data
|
|
3
4
|
*/
|
|
@@ -31,6 +32,10 @@ export interface AiMetrics {
|
|
|
31
32
|
* @example "Java"
|
|
32
33
|
*/
|
|
33
34
|
primaryLanguage?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Productivity metrics
|
|
37
|
+
*/
|
|
38
|
+
productivity?: ProductivityMetrics;
|
|
34
39
|
/**
|
|
35
40
|
* Total active days (Cursor only)
|
|
36
41
|
* @format int32
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PaginationRequest } from '../schemas/PaginationRequest';
|
|
2
2
|
/**
|
|
3
3
|
* Request for AI raw metrics with pagination
|
|
4
4
|
*/
|
|
@@ -16,8 +16,8 @@ export interface AiRawMetricsRequestDto {
|
|
|
16
16
|
* List of integration types to include
|
|
17
17
|
* @example ["cursor","windsurf"]
|
|
18
18
|
*/
|
|
19
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
20
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
19
|
+
integrationType: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
20
|
+
integrationTypeList?: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
21
21
|
/**
|
|
22
22
|
* @format int32
|
|
23
23
|
*/
|
|
@@ -29,7 +29,7 @@ export interface AiRawMetricsRequestDto {
|
|
|
29
29
|
/**
|
|
30
30
|
* Pagination parameters
|
|
31
31
|
*/
|
|
32
|
-
pagination?:
|
|
32
|
+
pagination?: PaginationRequest;
|
|
33
33
|
/**
|
|
34
34
|
* Field to sort by (camelCase will be auto-converted to snake_case). For inactive: defaults to user_name. For active: defaults to lines_accept_percent. Supported fields vary by type - see endpoint documentation for details.
|
|
35
35
|
* @example "linesAcceptPercent"
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { PaginationInfo } from '../schemas/PaginationInfo';
|
|
2
|
+
import type { UserMetrics } from '../schemas/UserMetrics';
|
|
2
3
|
/**
|
|
3
4
|
* AI raw metrics with pagination
|
|
4
5
|
*/
|
|
5
6
|
export interface AiRawMetricsResponseDto {
|
|
6
|
-
/**
|
|
7
|
-
* Cursor raw metrics data
|
|
8
|
-
*/
|
|
9
|
-
cursor?: IntegrationRawMetrics;
|
|
10
|
-
/**
|
|
11
|
-
* Combined Cursor and Windsurf raw metrics data
|
|
12
|
-
*/
|
|
13
|
-
cursorAndWindsurf?: IntegrationRawMetrics;
|
|
14
7
|
/**
|
|
15
8
|
* End date of the analysis period
|
|
16
9
|
* @format date-time
|
|
17
10
|
* @example "2025-10-12"
|
|
18
11
|
*/
|
|
19
12
|
endDate?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Pagination information
|
|
15
|
+
*/
|
|
16
|
+
pagination?: PaginationInfo;
|
|
20
17
|
/**
|
|
21
18
|
* Start date of the analysis period
|
|
22
19
|
* @format date-time
|
|
@@ -24,7 +21,7 @@ export interface AiRawMetricsResponseDto {
|
|
|
24
21
|
*/
|
|
25
22
|
startDate?: string;
|
|
26
23
|
/**
|
|
27
|
-
*
|
|
24
|
+
* List of user metrics combining all integrations
|
|
28
25
|
*/
|
|
29
|
-
|
|
26
|
+
users?: UserMetrics[];
|
|
30
27
|
}
|
|
@@ -3,8 +3,8 @@ export interface AiTeamBreakdownRequestDto {
|
|
|
3
3
|
* @format date-time
|
|
4
4
|
*/
|
|
5
5
|
endDate?: string;
|
|
6
|
-
integrationType?: Array<'cursor' | 'windsurf'>;
|
|
7
|
-
metricType?: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested';
|
|
6
|
+
integrationType?: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
7
|
+
metricType?: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'dailyActiveUsers' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested' | 'netLinesAddedPerContributor';
|
|
8
8
|
/**
|
|
9
9
|
* @format date-time
|
|
10
10
|
*/
|
|
@@ -5,7 +5,7 @@ export interface AiTeamBreakdownResponseDto {
|
|
|
5
5
|
* @format date-time
|
|
6
6
|
*/
|
|
7
7
|
endDate?: string;
|
|
8
|
-
metricType?: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested';
|
|
8
|
+
metricType?: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'dailyActiveUsers' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested' | 'netLinesAddedPerContributor';
|
|
9
9
|
/**
|
|
10
10
|
* @format date-time
|
|
11
11
|
*/
|
|
@@ -12,7 +12,7 @@ export interface AiToolUsersSummaryRequestDto {
|
|
|
12
12
|
* List of AI integration types to include in the summary
|
|
13
13
|
* @example ["windsurf","cursor"]
|
|
14
14
|
*/
|
|
15
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
15
|
+
integrationType: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
16
16
|
/**
|
|
17
17
|
* Start date of the analysis period
|
|
18
18
|
* @format date-time
|
|
@@ -12,7 +12,7 @@ export interface AiTopLanguagesRequestDto {
|
|
|
12
12
|
* Integration type (cursor or windsurf)
|
|
13
13
|
* @example ["cursor"]
|
|
14
14
|
*/
|
|
15
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
15
|
+
integrationType: Array<'all_assistants' | 'cursor' | 'windsurf'>;
|
|
16
16
|
/**
|
|
17
17
|
* Start date for the query period
|
|
18
18
|
* @format date-time
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cursor AI metrics data
|
|
3
|
+
*/
|
|
4
|
+
export interface CursorMetrics {
|
|
5
|
+
/**
|
|
6
|
+
* Last active date
|
|
7
|
+
* @format date-time
|
|
8
|
+
* @example "2025-11-21"
|
|
9
|
+
*/
|
|
10
|
+
lastActiveDate?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Primary programming language
|
|
13
|
+
* @example "TypeScript"
|
|
14
|
+
*/
|
|
15
|
+
primaryLanguage?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Total accept rate
|
|
18
|
+
* @format double
|
|
19
|
+
* @example 51.2
|
|
20
|
+
*/
|
|
21
|
+
totalAcceptRate?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Total accepts
|
|
24
|
+
* @format int64
|
|
25
|
+
* @example 12088
|
|
26
|
+
*/
|
|
27
|
+
totalAccepts?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total active days
|
|
30
|
+
* @format int32
|
|
31
|
+
* @example 73
|
|
32
|
+
*/
|
|
33
|
+
totalActiveDays?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Total suggestions
|
|
36
|
+
* @format int64
|
|
37
|
+
* @example 23632
|
|
38
|
+
*/
|
|
39
|
+
totalSuggestions?: number;
|
|
40
|
+
}
|
|
@@ -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,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
|
*/
|
|
@@ -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.14",
|
|
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,15 +0,0 @@
|
|
|
1
|
-
import type { PaginationInfo } from '../schemas/PaginationInfo';
|
|
2
|
-
import type { UserMetrics } from '../schemas/UserMetrics';
|
|
3
|
-
/**
|
|
4
|
-
* Integration raw metrics with pagination
|
|
5
|
-
*/
|
|
6
|
-
export interface IntegrationRawMetrics {
|
|
7
|
-
/**
|
|
8
|
-
* Pagination information
|
|
9
|
-
*/
|
|
10
|
-
pagination?: PaginationInfo;
|
|
11
|
-
/**
|
|
12
|
-
* List of user metrics
|
|
13
|
-
*/
|
|
14
|
-
users?: UserMetrics[];
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pagination parameters
|
|
3
|
-
*/
|
|
4
|
-
export interface PaginationParams {
|
|
5
|
-
/**
|
|
6
|
-
* Maximum page size (1-100)
|
|
7
|
-
* @format int32
|
|
8
|
-
* @default "10"
|
|
9
|
-
* @example 10
|
|
10
|
-
*/
|
|
11
|
-
maxPageSize?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Page number (0-indexed)
|
|
14
|
-
* @format int32
|
|
15
|
-
* @default "0"
|
|
16
|
-
* @example 0
|
|
17
|
-
*/
|
|
18
|
-
pageNumber?: number;
|
|
19
|
-
}
|
/package/dist/sei-panorama-service/src/services/schemas/{PaginationParams.js → CursorMetrics.js}
RENAMED
|
File without changes
|