@harnessio/react-sei-panorama-service-client 0.25.8 → 0.25.11
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/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.d.ts +8 -27
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.js +2 -22
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.d.ts +6 -30
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.js +2 -26
- package/dist/sei-panorama-service/src/services/index.d.ts +18 -39
- package/dist/sei-panorama-service/src/services/index.js +2 -6
- package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownRequestDto.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownResponseDto.d.ts +58 -0
- package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataPoint.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataResponseDto.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/schemas/AiInsightsRequestDto.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionResponseDto.d.ts +35 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionUserDto.d.ts +30 -0
- package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownDataDto.d.ts +27 -0
- package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownOptions.d.ts +12 -0
- package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownUserDto.d.ts +52 -0
- package/dist/sei-panorama-service/src/services/schemas/GroupedTeamFiltersResponseDto.d.ts +1 -0
- package/dist/sei-panorama-service/src/services/schemas/LanguageCount.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownDataDto.d.ts +17 -0
- package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownOptions.d.ts +12 -0
- package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownUserDto.d.ts +60 -0
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.d.ts +0 -57
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.js +0 -49
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.d.ts +0 -52
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.js +0 -44
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.d.ts +0 -51
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.js +0 -43
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +0 -103
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +0 -95
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.d.ts +0 -50
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.js +0 -42
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.d.ts +0 -44
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.js +0 -36
- package/dist/sei-panorama-service/src/services/schemas/AdoptionDataPoint.d.ts +0 -35
- package/dist/sei-panorama-service/src/services/schemas/AdoptionPeriodData.d.ts +0 -35
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownRequestDto.d.ts +0 -38
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownResponseDto.d.ts +0 -30
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsRequestDto.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsResponseDto.d.ts +0 -35
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.d.ts +0 -32
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryResponseDto.d.ts +0 -30
- package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.d.ts +0 -37
- package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +0 -40
- package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +0 -66
- package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsResponseDto.d.ts +0 -30
- package/dist/sei-panorama-service/src/services/schemas/AiSummary.d.ts +0 -14
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.d.ts +0 -31
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.d.ts +0 -16
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.d.ts +0 -14
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.d.ts +0 -28
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.d.ts +0 -31
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.d.ts +0 -28
- package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/ApiError.d.ts +0 -31
- package/dist/sei-panorama-service/src/services/schemas/ApiError.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.d.ts +0 -14
- package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.js +0 -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 +0 -4
- package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.d.ts +0 -46
- package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/ToolSummary.d.ts +0 -53
- package/dist/sei-panorama-service/src/services/schemas/ToolSummary.js +0 -4
- package/dist/sei-panorama-service/src/services/schemas/UserMetrics.d.ts +0 -25
- package/dist/sei-panorama-service/src/services/schemas/UserMetrics.js +0 -1
- package/dist/sei-panorama-service/src/services/schemas/ValidationError.d.ts +0 -19
- package/dist/sei-panorama-service/src/services/schemas/ValidationError.js +0 -4
- /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionBreakdownResponseDto.js → AiDailyActiveUsersDrilldownRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionMetricsResponseDto.js → AiDailyActiveUsersDrilldownResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AdoptionDataPoint.js → AiFeatureDataPoint.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionSummaryResponseDto.js → AiFeatureDataResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AdoptionPeriodData.js → AiInsightsRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiRawMetricsRequestDto.js → AiTeamAdoptionRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiRawMetricsResponseDto.js → AiTeamAdoptionResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionBreakdownRequestDto.js → AiTeamAdoptionUserDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiSummary.js → CursorDrilldownDataDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionMetricsRequestDto.js → CursorDrilldownOptions.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionSummaryRequestDto.js → CursorDrilldownUserDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiTeamBreakdownResponseDto.js → WindsurfDrilldownDataDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiCombinedInsightsRequestDto.js → WindsurfDrilldownOptions.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiMetrics.js → WindsurfDrilldownUserDto.js} +0 -0
package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js
DELETED
|
@@ -1,95 +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 aiInsightsControllerGetRawMetrics(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/raw_metrics`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves detailed user-level metrics with pagination and sorting support.
|
|
11
|
-
*
|
|
12
|
-
* **Type Parameter:**
|
|
13
|
-
* - `active` (default): Returns full metrics for active users
|
|
14
|
-
* - `inactive`: Returns only userName, userEmail, team for inactive users (licensed but not active)
|
|
15
|
-
* - `unassigned`: Returns only userName, userEmail, team for unassigned users (not licensed)
|
|
16
|
-
*
|
|
17
|
-
* **Integration Types:**
|
|
18
|
-
* Specify using an array of enum values:
|
|
19
|
-
* - `cursor` - Cursor AI coding assistant
|
|
20
|
-
* - `windsurf` - Windsurf AI coding platform
|
|
21
|
-
*
|
|
22
|
-
* **Response Structure:**
|
|
23
|
-
* Returns data for each requested integration type:
|
|
24
|
-
* - `cursor` - Cursor integration metrics
|
|
25
|
-
* - `windsurf` - Windsurf integration metrics
|
|
26
|
-
* - `cursorAndWindsurf` - Combined metrics (only when both integrations are requested)
|
|
27
|
-
*
|
|
28
|
-
* Each integration contains:
|
|
29
|
-
* - `users` - Array of user metric objects
|
|
30
|
-
* - `pagination` - Pagination metadata (currentPage, pageSize, totalRecords, totalPages)
|
|
31
|
-
*
|
|
32
|
-
* **Active User Metrics (Cursor):**
|
|
33
|
-
* - userName, userEmail - User identification
|
|
34
|
-
* - team - Team name
|
|
35
|
-
* - ai - Nested AI metrics object containing:
|
|
36
|
-
* - totalActiveDays - Number of days user was active
|
|
37
|
-
* - lastActiveDate - Most recent activity date
|
|
38
|
-
* - primaryLanguage - Most frequently used programming language
|
|
39
|
-
* - linesAccepted - Total lines accepted from AI suggestions
|
|
40
|
-
* - linesSuggested - Total lines suggested by AI
|
|
41
|
-
* - linesAcceptPercent - Acceptance rate percentage
|
|
42
|
-
*
|
|
43
|
-
* **Active User Metrics (Windsurf):**
|
|
44
|
-
* - userName, userEmail - User identification
|
|
45
|
-
* - team - Team name
|
|
46
|
-
* - ai - Nested AI metrics object containing:
|
|
47
|
-
* - totalActiveDays - Number of days user was active
|
|
48
|
-
* - lastActiveDate - Most recent activity date
|
|
49
|
-
* - linesAccepted - Total lines accepted
|
|
50
|
-
* - linesSuggested - Total lines suggested
|
|
51
|
-
* - linesAcceptPercent - Acceptance rate percentage
|
|
52
|
-
*
|
|
53
|
-
* **Inactive User Metrics:**
|
|
54
|
-
* - userName, userEmail - User identification
|
|
55
|
-
* - team - Team name
|
|
56
|
-
*
|
|
57
|
-
* **Unassigned User Metrics:**
|
|
58
|
-
* - userName, userEmail - User identification
|
|
59
|
-
* - team - Team name
|
|
60
|
-
*
|
|
61
|
-
* **Pagination:**
|
|
62
|
-
* - Default page size: 10
|
|
63
|
-
* - Maximum page size: 100
|
|
64
|
-
* - Page numbers are 0-indexed
|
|
65
|
-
*
|
|
66
|
-
* **Sorting:**
|
|
67
|
-
* NOTE: Both camelCase and snake_case are supported (e.g., userName or user_name)
|
|
68
|
-
* CamelCase will be automatically converted to snake_case for database queries.
|
|
69
|
-
*
|
|
70
|
-
* For inactive users:
|
|
71
|
-
* - Default sort: user_name (DESC)
|
|
72
|
-
* - Supported fields: userName/user_name, userEmail/user_email
|
|
73
|
-
*
|
|
74
|
-
* For unassigned users:
|
|
75
|
-
* - Default sort: user_name (DESC)
|
|
76
|
-
* - Supported fields: userName/user_name, userEmail/user_email
|
|
77
|
-
*
|
|
78
|
-
* For active users (Cursor):
|
|
79
|
-
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
80
|
-
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
81
|
-
* lastActiveDate/last_active_date, primaryLanguage/primary_language, linesAccepted/lines_accepted,
|
|
82
|
-
* linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent
|
|
83
|
-
*
|
|
84
|
-
* For active users (Windsurf):
|
|
85
|
-
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
86
|
-
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
87
|
-
* lastActiveDate/last_active_date, linesAccepted/lines_accepted, linesSuggested/lines_suggested,
|
|
88
|
-
* linesAcceptPercent/lines_accept_percent
|
|
89
|
-
*
|
|
90
|
-
* Sort criteria: ASC or DESC (defaults to DESC)
|
|
91
|
-
*
|
|
92
|
-
*/
|
|
93
|
-
export function useAiInsightsControllerGetRawMetricsQuery(props, options) {
|
|
94
|
-
return useQuery(['AIInsightsControllerGetRawMetrics', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetRawMetrics(Object.assign(Object.assign({}, props), { signal })), options);
|
|
95
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AiTeamBreakdownResponseDto } from '../schemas/AiTeamBreakdownResponseDto';
|
|
3
|
-
import type { ApiError } from '../schemas/ApiError';
|
|
4
|
-
import type { AiTeamBreakdownRequestDto } from '../schemas/AiTeamBreakdownRequestDto';
|
|
5
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
-
export interface AiInsightsControllerGetTeamBreakdownQueryQueryParams {
|
|
8
|
-
projectIdentifier: string;
|
|
9
|
-
orgIdentifier: string;
|
|
10
|
-
}
|
|
11
|
-
export type AiInsightsControllerGetTeamBreakdownRequestBody = AiTeamBreakdownRequestDto;
|
|
12
|
-
export type AiInsightsControllerGetTeamBreakdownOkResponse = ResponseWithPagination<AiTeamBreakdownResponseDto>;
|
|
13
|
-
export type AiInsightsControllerGetTeamBreakdownErrorResponse = ApiError;
|
|
14
|
-
export interface AiInsightsControllerGetTeamBreakdownProps extends Omit<FetcherOptions<AiInsightsControllerGetTeamBreakdownQueryQueryParams, AiInsightsControllerGetTeamBreakdownRequestBody>, 'url'> {
|
|
15
|
-
queryParams: AiInsightsControllerGetTeamBreakdownQueryQueryParams;
|
|
16
|
-
body: AiInsightsControllerGetTeamBreakdownRequestBody;
|
|
17
|
-
}
|
|
18
|
-
export declare function aiInsightsControllerGetTeamBreakdown(props: AiInsightsControllerGetTeamBreakdownProps): Promise<AiInsightsControllerGetTeamBreakdownOkResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves metrics broken down by direct child teams with aggregated values across the entire date range.
|
|
21
|
-
*
|
|
22
|
-
* **Important:** This endpoint processes only direct child teams of the specified team and aggregates
|
|
23
|
-
* data across the entire date range (granularity parameter is ignored).
|
|
24
|
-
*
|
|
25
|
-
* **Supported Metrics:**
|
|
26
|
-
* - `linesAddedPerContributor` - Net lines added per contributor by team (both integrations)
|
|
27
|
-
* - `acceptanceRatePercentage` - Acceptance rate by team (both integrations)
|
|
28
|
-
* - `linesSuggested` - Lines suggested by AI by team (Windsurf only)
|
|
29
|
-
* - `linesAccepted` - Lines accepted from AI by team (Windsurf only)
|
|
30
|
-
* - `addedVsDeletedLinesRatio` - Ratio of added vs deleted lines (Cursor only)
|
|
31
|
-
* - `aiSpendPer1KLineOfEdit` - Cost per 1000 lines of code (Cursor only)
|
|
32
|
-
*
|
|
33
|
-
* **Integration Types:**
|
|
34
|
-
* Specify using an array of enum values:
|
|
35
|
-
* - `cursor` - Cursor AI coding assistant
|
|
36
|
-
* - `windsurf` - Windsurf AI coding platform
|
|
37
|
-
*
|
|
38
|
-
* **Response Structure:**
|
|
39
|
-
* Returns data arrays for each requested integration type (cursor and/or windsurf).
|
|
40
|
-
* Each array contains team breakdown data with:
|
|
41
|
-
* - teamId: Direct child team reference ID
|
|
42
|
-
* - teamName: Direct child team name
|
|
43
|
-
* - startDate: Start of the aggregation period
|
|
44
|
-
* - endDate: End of the aggregation period
|
|
45
|
-
* - value: Aggregated metric value for the team across entire date range
|
|
46
|
-
*
|
|
47
|
-
* **Note:** Granularity is not supported - returns single aggregated value per team.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export declare function useAiInsightsControllerGetTeamBreakdownQuery(props: AiInsightsControllerGetTeamBreakdownProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetTeamBreakdownOkResponse, AiInsightsControllerGetTeamBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetTeamBreakdownOkResponse, ApiError>;
|
package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.js
DELETED
|
@@ -1,42 +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 aiInsightsControllerGetTeamBreakdown(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/breakdown`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves metrics broken down by direct child teams with aggregated values across the entire date range.
|
|
11
|
-
*
|
|
12
|
-
* **Important:** This endpoint processes only direct child teams of the specified team and aggregates
|
|
13
|
-
* data across the entire date range (granularity parameter is ignored).
|
|
14
|
-
*
|
|
15
|
-
* **Supported Metrics:**
|
|
16
|
-
* - `linesAddedPerContributor` - Net lines added per contributor by team (both integrations)
|
|
17
|
-
* - `acceptanceRatePercentage` - Acceptance rate by team (both integrations)
|
|
18
|
-
* - `linesSuggested` - Lines suggested by AI by team (Windsurf only)
|
|
19
|
-
* - `linesAccepted` - Lines accepted from AI by team (Windsurf only)
|
|
20
|
-
* - `addedVsDeletedLinesRatio` - Ratio of added vs deleted lines (Cursor only)
|
|
21
|
-
* - `aiSpendPer1KLineOfEdit` - Cost per 1000 lines of code (Cursor only)
|
|
22
|
-
*
|
|
23
|
-
* **Integration Types:**
|
|
24
|
-
* Specify using an array of enum values:
|
|
25
|
-
* - `cursor` - Cursor AI coding assistant
|
|
26
|
-
* - `windsurf` - Windsurf AI coding platform
|
|
27
|
-
*
|
|
28
|
-
* **Response Structure:**
|
|
29
|
-
* Returns data arrays for each requested integration type (cursor and/or windsurf).
|
|
30
|
-
* Each array contains team breakdown data with:
|
|
31
|
-
* - teamId: Direct child team reference ID
|
|
32
|
-
* - teamName: Direct child team name
|
|
33
|
-
* - startDate: Start of the aggregation period
|
|
34
|
-
* - endDate: End of the aggregation period
|
|
35
|
-
* - value: Aggregated metric value for the team across entire date range
|
|
36
|
-
*
|
|
37
|
-
* **Note:** Granularity is not supported - returns single aggregated value per team.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export function useAiInsightsControllerGetTeamBreakdownQuery(props, options) {
|
|
41
|
-
return useQuery(['AIInsightsControllerGetTeamBreakdown', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetTeamBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
42
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AiToolUsersSummaryResponseDto } from '../schemas/AiToolUsersSummaryResponseDto';
|
|
3
|
-
import type { ApiError } from '../schemas/ApiError';
|
|
4
|
-
import type { AiToolUsersSummaryRequestDto } from '../schemas/AiToolUsersSummaryRequestDto';
|
|
5
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
-
export interface AiInsightsControllerGetToolUsersSummaryQueryQueryParams {
|
|
8
|
-
projectIdentifier: string;
|
|
9
|
-
orgIdentifier: string;
|
|
10
|
-
}
|
|
11
|
-
export type AiInsightsControllerGetToolUsersSummaryRequestBody = AiToolUsersSummaryRequestDto;
|
|
12
|
-
export type AiInsightsControllerGetToolUsersSummaryOkResponse = ResponseWithPagination<AiToolUsersSummaryResponseDto>;
|
|
13
|
-
export type AiInsightsControllerGetToolUsersSummaryErrorResponse = ApiError;
|
|
14
|
-
export interface AiInsightsControllerGetToolUsersSummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetToolUsersSummaryQueryQueryParams, AiInsightsControllerGetToolUsersSummaryRequestBody>, 'url'> {
|
|
15
|
-
queryParams: AiInsightsControllerGetToolUsersSummaryQueryQueryParams;
|
|
16
|
-
body: AiInsightsControllerGetToolUsersSummaryRequestBody;
|
|
17
|
-
}
|
|
18
|
-
export declare function aiInsightsControllerGetToolUsersSummary(props: AiInsightsControllerGetToolUsersSummaryProps): Promise<AiInsightsControllerGetToolUsersSummaryOkResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves high-level summary statistics for AI coding assistant usage.
|
|
21
|
-
*
|
|
22
|
-
* **Integration Types:**
|
|
23
|
-
* Specify using an array of enum values:
|
|
24
|
-
* - `cursor` - Cursor AI coding assistant
|
|
25
|
-
* - `windsurf` - Windsurf AI coding platform
|
|
26
|
-
*
|
|
27
|
-
* **Response Structure:**
|
|
28
|
-
* Returns data for each requested integration type (cursor and/or windsurf), each containing:
|
|
29
|
-
*
|
|
30
|
-
* **Current Period Metrics:**
|
|
31
|
-
* - **linesAccepted** - Total lines added (accepted) across all team members
|
|
32
|
-
* - **linesSuggested** - Total lines suggested across all team members
|
|
33
|
-
* - **acceptanceRate** - Acceptance rate percentage (linesAccepted / linesSuggested * 100)
|
|
34
|
-
* - **activeUsers** - Number of active users in this period
|
|
35
|
-
* - **inactiveUsers** - Number of inactive users (licensed but not active)
|
|
36
|
-
* - **unAssigned** - Number of unassigned users (not licensed)
|
|
37
|
-
*
|
|
38
|
-
* **Previous Period Metrics:**
|
|
39
|
-
* Same metrics as current period for trend comparison.
|
|
40
|
-
*
|
|
41
|
-
* Useful for executive dashboards and high-level adoption tracking.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export declare function useAiInsightsControllerGetToolUsersSummaryQuery(props: AiInsightsControllerGetToolUsersSummaryProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetToolUsersSummaryOkResponse, AiInsightsControllerGetToolUsersSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetToolUsersSummaryOkResponse, ApiError>;
|
|
@@ -1,36 +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 aiInsightsControllerGetToolUsersSummary(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/summary`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves high-level summary statistics for AI coding assistant usage.
|
|
11
|
-
*
|
|
12
|
-
* **Integration Types:**
|
|
13
|
-
* Specify using an array of enum values:
|
|
14
|
-
* - `cursor` - Cursor AI coding assistant
|
|
15
|
-
* - `windsurf` - Windsurf AI coding platform
|
|
16
|
-
*
|
|
17
|
-
* **Response Structure:**
|
|
18
|
-
* Returns data for each requested integration type (cursor and/or windsurf), each containing:
|
|
19
|
-
*
|
|
20
|
-
* **Current Period Metrics:**
|
|
21
|
-
* - **linesAccepted** - Total lines added (accepted) across all team members
|
|
22
|
-
* - **linesSuggested** - Total lines suggested across all team members
|
|
23
|
-
* - **acceptanceRate** - Acceptance rate percentage (linesAccepted / linesSuggested * 100)
|
|
24
|
-
* - **activeUsers** - Number of active users in this period
|
|
25
|
-
* - **inactiveUsers** - Number of inactive users (licensed but not active)
|
|
26
|
-
* - **unAssigned** - Number of unassigned users (not licensed)
|
|
27
|
-
*
|
|
28
|
-
* **Previous Period Metrics:**
|
|
29
|
-
* Same metrics as current period for trend comparison.
|
|
30
|
-
*
|
|
31
|
-
* Useful for executive dashboards and high-level adoption tracking.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export function useAiInsightsControllerGetToolUsersSummaryQuery(props, options) {
|
|
35
|
-
return useQuery(['AIInsightsControllerGetToolUsersSummary', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetToolUsersSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
36
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adoption metrics for a specific time period
|
|
3
|
-
*/
|
|
4
|
-
export interface AdoptionDataPoint {
|
|
5
|
-
/**
|
|
6
|
-
* Number of active users in this period
|
|
7
|
-
* @format int32
|
|
8
|
-
* @example 42
|
|
9
|
-
*/
|
|
10
|
-
activeUsers?: number;
|
|
11
|
-
/**
|
|
12
|
-
* End date of this data point period
|
|
13
|
-
* @format date-time
|
|
14
|
-
* @example "2025-11-16"
|
|
15
|
-
*/
|
|
16
|
-
endDate?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Number of inactive users (licensed but not active)
|
|
19
|
-
* @format int32
|
|
20
|
-
* @example 8
|
|
21
|
-
*/
|
|
22
|
-
inactiveUsers?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Start date of this data point period
|
|
25
|
-
* @format date-time
|
|
26
|
-
* @example "2025-11-10"
|
|
27
|
-
*/
|
|
28
|
-
startDate?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Number of users not licensed for this integration
|
|
31
|
-
* @format int32
|
|
32
|
-
* @example 15
|
|
33
|
-
*/
|
|
34
|
-
unAssigned?: number;
|
|
35
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adoption statistics for a single period
|
|
3
|
-
*/
|
|
4
|
-
export interface AdoptionPeriodData {
|
|
5
|
-
/**
|
|
6
|
-
* Number of active users in this period
|
|
7
|
-
* @format int32
|
|
8
|
-
* @example 42
|
|
9
|
-
*/
|
|
10
|
-
activeUsers?: number;
|
|
11
|
-
/**
|
|
12
|
-
* End date of this period
|
|
13
|
-
* @format date-time
|
|
14
|
-
* @example "2025-11-16"
|
|
15
|
-
*/
|
|
16
|
-
endDate?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Number of inactive licensed users in this period
|
|
19
|
-
* @format int32
|
|
20
|
-
* @example 8
|
|
21
|
-
*/
|
|
22
|
-
inactiveUsers?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Start date of this period
|
|
25
|
-
* @format date-time
|
|
26
|
-
* @example "2025-11-10"
|
|
27
|
-
*/
|
|
28
|
-
startDate?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Number of users without license in this period
|
|
31
|
-
* @format int32
|
|
32
|
-
* @example 15
|
|
33
|
-
*/
|
|
34
|
-
unAssigned?: number;
|
|
35
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request for AI adoption breakdown by child teams
|
|
3
|
-
*/
|
|
4
|
-
export interface AiAdoptionBreakdownRequestDto {
|
|
5
|
-
bothRequested?: boolean;
|
|
6
|
-
cursorRequested?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* End date of the analysis period
|
|
9
|
-
* @format date-time
|
|
10
|
-
* @example "2025-12-07"
|
|
11
|
-
*/
|
|
12
|
-
endDate: string;
|
|
13
|
-
/**
|
|
14
|
-
* Time granularity for breakdown
|
|
15
|
-
* @example "WEEKLY"
|
|
16
|
-
*/
|
|
17
|
-
granularity?: 'DAILY' | 'MONTHLY' | 'WEEKLY';
|
|
18
|
-
/**
|
|
19
|
-
* List of integration types to include
|
|
20
|
-
* @example ["cursor","windsurf"]
|
|
21
|
-
*/
|
|
22
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
23
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
24
|
-
/**
|
|
25
|
-
* Start date of the analysis period
|
|
26
|
-
* @format date-time
|
|
27
|
-
* @example "2025-11-10"
|
|
28
|
-
*/
|
|
29
|
-
startDate: string;
|
|
30
|
-
/**
|
|
31
|
-
* Team reference ID (parent team)
|
|
32
|
-
* @format int32
|
|
33
|
-
* @example 203128
|
|
34
|
-
*/
|
|
35
|
-
teamRefId: number;
|
|
36
|
-
validatedGranularity?: string;
|
|
37
|
-
windsurfRequested?: boolean;
|
|
38
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { TeamPeriodData } from '../schemas/TeamPeriodData';
|
|
2
|
-
/**
|
|
3
|
-
* AI adoption breakdown by child teams over time
|
|
4
|
-
*/
|
|
5
|
-
export interface AiAdoptionBreakdownResponseDto {
|
|
6
|
-
/**
|
|
7
|
-
* Cursor adoption breakdown by teams and periods
|
|
8
|
-
*/
|
|
9
|
-
cursor?: TeamPeriodData[];
|
|
10
|
-
/**
|
|
11
|
-
* Both Cursor and Windsurf adoption breakdown by teams and periods
|
|
12
|
-
*/
|
|
13
|
-
cursorAndWindsurf?: TeamPeriodData[];
|
|
14
|
-
/**
|
|
15
|
-
* End date of the analysis period
|
|
16
|
-
* @format date-time
|
|
17
|
-
* @example "2025-12-07"
|
|
18
|
-
*/
|
|
19
|
-
endDate?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Start date of the analysis period
|
|
22
|
-
* @format date-time
|
|
23
|
-
* @example "2025-11-10"
|
|
24
|
-
*/
|
|
25
|
-
startDate?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Windsurf adoption breakdown by teams and periods
|
|
28
|
-
*/
|
|
29
|
-
windsurf?: TeamPeriodData[];
|
|
30
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request for AI adoption metrics with time-series data
|
|
3
|
-
*/
|
|
4
|
-
export interface AiAdoptionMetricsRequestDto {
|
|
5
|
-
/**
|
|
6
|
-
* End date for the metrics period (ISO 8601 format)
|
|
7
|
-
* @format date-time
|
|
8
|
-
* @example "2025-12-07"
|
|
9
|
-
*/
|
|
10
|
-
endDate: string;
|
|
11
|
-
/**
|
|
12
|
-
* Time granularity for data points
|
|
13
|
-
* @example "WEEKLY"
|
|
14
|
-
*/
|
|
15
|
-
granularity: 'DAILY' | 'MONTHLY' | 'WEEKLY';
|
|
16
|
-
/**
|
|
17
|
-
* List of AI integration types to include in the response
|
|
18
|
-
* @example ["cursor","windsurf"]
|
|
19
|
-
*/
|
|
20
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
21
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
22
|
-
/**
|
|
23
|
-
* Start date for the metrics period (ISO 8601 format)
|
|
24
|
-
* @format date-time
|
|
25
|
-
* @example "2025-11-10"
|
|
26
|
-
*/
|
|
27
|
-
startDate: string;
|
|
28
|
-
/**
|
|
29
|
-
* Team reference ID
|
|
30
|
-
* @format int32
|
|
31
|
-
* @example 203128
|
|
32
|
-
*/
|
|
33
|
-
teamRefId: number;
|
|
34
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { AdoptionDataPoint } from '../schemas/AdoptionDataPoint';
|
|
2
|
-
/**
|
|
3
|
-
* AI adoption metrics response with time-series data per integration
|
|
4
|
-
*/
|
|
5
|
-
export interface AiAdoptionMetricsResponseDto {
|
|
6
|
-
/**
|
|
7
|
-
* Time-series adoption data for Cursor integration
|
|
8
|
-
*/
|
|
9
|
-
cursor?: AdoptionDataPoint[];
|
|
10
|
-
/**
|
|
11
|
-
* Time-series adoption data for users active in both Cursor and Windsurf
|
|
12
|
-
*/
|
|
13
|
-
cursorAndWindsurf?: AdoptionDataPoint[];
|
|
14
|
-
/**
|
|
15
|
-
* End date of the metrics period
|
|
16
|
-
* @format date-time
|
|
17
|
-
* @example "2025-12-07"
|
|
18
|
-
*/
|
|
19
|
-
endDate?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Time granularity of data points
|
|
22
|
-
* @example "WEEKLY"
|
|
23
|
-
*/
|
|
24
|
-
granularity?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Start date of the metrics period
|
|
27
|
-
* @format date-time
|
|
28
|
-
* @example "2025-11-10"
|
|
29
|
-
*/
|
|
30
|
-
startDate?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Time-series adoption data for Windsurf integration
|
|
33
|
-
*/
|
|
34
|
-
windsurf?: AdoptionDataPoint[];
|
|
35
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request for AI adoption summary with period comparison
|
|
3
|
-
*/
|
|
4
|
-
export interface AiAdoptionSummaryRequestDto {
|
|
5
|
-
bothRequested?: boolean;
|
|
6
|
-
cursorRequested?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* End date of the analysis period
|
|
9
|
-
* @format date-time
|
|
10
|
-
* @example "2025-12-10"
|
|
11
|
-
*/
|
|
12
|
-
endDate: string;
|
|
13
|
-
/**
|
|
14
|
-
* List of integration types to include
|
|
15
|
-
* @example ["cursor","windsurf"]
|
|
16
|
-
*/
|
|
17
|
-
integrationType: Array<'cursor' | 'windsurf'>;
|
|
18
|
-
integrationTypeList?: Array<'cursor' | 'windsurf'>;
|
|
19
|
-
/**
|
|
20
|
-
* Start date of the analysis period
|
|
21
|
-
* @format date-time
|
|
22
|
-
* @example "2025-10-10"
|
|
23
|
-
*/
|
|
24
|
-
startDate: string;
|
|
25
|
-
/**
|
|
26
|
-
* Team reference ID
|
|
27
|
-
* @format int32
|
|
28
|
-
* @example 203128
|
|
29
|
-
*/
|
|
30
|
-
teamRefId: number;
|
|
31
|
-
windsurfRequested?: boolean;
|
|
32
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { IntegrationAdoptionSummary } from '../schemas/IntegrationAdoptionSummary';
|
|
2
|
-
/**
|
|
3
|
-
* AI adoption summary with current and previous period comparison
|
|
4
|
-
*/
|
|
5
|
-
export interface AiAdoptionSummaryResponseDto {
|
|
6
|
-
/**
|
|
7
|
-
* Cursor adoption summary with current and previous period data
|
|
8
|
-
*/
|
|
9
|
-
cursor?: IntegrationAdoptionSummary;
|
|
10
|
-
/**
|
|
11
|
-
* Combined Cursor and Windsurf adoption summary
|
|
12
|
-
*/
|
|
13
|
-
cursorAndWindsurf?: IntegrationAdoptionSummary;
|
|
14
|
-
/**
|
|
15
|
-
* End date of the current analysis period
|
|
16
|
-
* @format date-time
|
|
17
|
-
* @example "2025-12-07"
|
|
18
|
-
*/
|
|
19
|
-
endDate?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Start date of the current analysis period
|
|
22
|
-
* @format date-time
|
|
23
|
-
* @example "2025-11-10"
|
|
24
|
-
*/
|
|
25
|
-
startDate?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Windsurf adoption summary with current and previous period data
|
|
28
|
-
*/
|
|
29
|
-
windsurf?: IntegrationAdoptionSummary;
|
|
30
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export interface AiCombinedInsightsRequestDto {
|
|
2
|
-
/**
|
|
3
|
-
* End date for the metrics
|
|
4
|
-
* @format date-time
|
|
5
|
-
* @example "2025-12-07"
|
|
6
|
-
*/
|
|
7
|
-
endDate: string;
|
|
8
|
-
/**
|
|
9
|
-
* Granularity for data aggregation (DAILY, WEEKLY, MONTHLY)
|
|
10
|
-
* @example "WEEKLY"
|
|
11
|
-
*/
|
|
12
|
-
granularity: 'DAILY' | 'MONTHLY' | 'WEEKLY';
|
|
13
|
-
/**
|
|
14
|
-
* Array of integration types or comma-separated string (e.g., ['windsurf','cursor'] or 'windsurf,cursor' or 'all')
|
|
15
|
-
* @example ["windsurf","cursor"]
|
|
16
|
-
*/
|
|
17
|
-
integrationType: {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Metric type to fetch
|
|
22
|
-
* @example "DAILY_ACTIVE_USERS"
|
|
23
|
-
*/
|
|
24
|
-
metricType: 'acceptanceRatePercentage' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'aiSpendPer1KLineOfEdit' | 'linesAccepted' | 'linesAddedPerContributor' | 'linesSuggested';
|
|
25
|
-
/**
|
|
26
|
-
* Start date for the metrics
|
|
27
|
-
* @format date-time
|
|
28
|
-
* @example "2025-11-10"
|
|
29
|
-
*/
|
|
30
|
-
startDate: string;
|
|
31
|
-
/**
|
|
32
|
-
* Team reference ID
|
|
33
|
-
* @format int32
|
|
34
|
-
* @example 203128
|
|
35
|
-
*/
|
|
36
|
-
teamRefId: number;
|
|
37
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AI metrics data
|
|
3
|
-
*/
|
|
4
|
-
export interface AiMetrics {
|
|
5
|
-
/**
|
|
6
|
-
* Last active date (Cursor only)
|
|
7
|
-
* @format date-time
|
|
8
|
-
* @example "2025-11-21"
|
|
9
|
-
*/
|
|
10
|
-
lastActiveDate?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Line accept percentage
|
|
13
|
-
* @format double
|
|
14
|
-
* @example 74.7
|
|
15
|
-
*/
|
|
16
|
-
linesAcceptPercent?: number;
|
|
17
|
-
/**
|
|
18
|
-
* Lines accepted
|
|
19
|
-
* @format int64
|
|
20
|
-
* @example 40248
|
|
21
|
-
*/
|
|
22
|
-
linesAccepted?: number;
|
|
23
|
-
/**
|
|
24
|
-
* Lines suggested
|
|
25
|
-
* @format int64
|
|
26
|
-
* @example 53844
|
|
27
|
-
*/
|
|
28
|
-
linesSuggested?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Primary programming language (Cursor only)
|
|
31
|
-
* @example "Java"
|
|
32
|
-
*/
|
|
33
|
-
primaryLanguage?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Total active days (Cursor only)
|
|
36
|
-
* @format int32
|
|
37
|
-
* @example 11
|
|
38
|
-
*/
|
|
39
|
-
totalActiveDays?: number;
|
|
40
|
-
}
|