@harnessio/react-sei-panorama-service-client 0.25.4 → 0.25.6
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/useAiInsightsControllerGetAdoptionBreakdownQuery.d.ts +57 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.js +49 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.d.ts +52 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.js +44 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.d.ts +51 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.js +43 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.d.ts +27 -8
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.js +22 -2
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +103 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +95 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.d.ts +50 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.js +42 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.d.ts +44 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.js +36 -0
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.d.ts +30 -6
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.js +26 -2
- package/dist/sei-panorama-service/src/services/index.d.ts +38 -18
- package/dist/sei-panorama-service/src/services/index.js +6 -2
- package/dist/sei-panorama-service/src/services/schemas/AdoptionDataPoint.d.ts +35 -0
- package/dist/sei-panorama-service/src/services/schemas/AdoptionPeriodData.d.ts +35 -0
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownRequestDto.d.ts +38 -0
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownResponseDto.d.ts +30 -0
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsRequestDto.d.ts +34 -0
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsResponseDto.d.ts +35 -0
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.d.ts +32 -0
- package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryResponseDto.d.ts +30 -0
- package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.d.ts +37 -0
- package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +40 -0
- package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +66 -0
- package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsResponseDto.d.ts +30 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiError.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/schemas/ApiError.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.d.ts +14 -0
- package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/IntegrationSummary.d.ts +10 -4
- package/dist/sei-panorama-service/src/services/schemas/IntegrationSummary.js +0 -3
- package/dist/sei-panorama-service/src/services/schemas/LanguageCount.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/PaginationInfo.d.ts +14 -4
- package/dist/sei-panorama-service/src/services/schemas/PaginationParams.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/schemas/PaginationParams.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.d.ts +46 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/ToolSummary.d.ts +53 -0
- package/dist/sei-panorama-service/src/services/schemas/ToolSummary.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/UserMetrics.d.ts +25 -0
- package/dist/sei-panorama-service/src/services/schemas/UserMetrics.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/ValidationError.d.ts +19 -0
- package/dist/sei-panorama-service/src/services/schemas/ValidationError.js +4 -0
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.d.ts +0 -22
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.d.ts +0 -22
- package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.js +0 -14
- package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownRequestDto.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownResponseDto.d.ts +0 -58
- package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataPoint.d.ts +0 -14
- package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataResponseDto.d.ts +0 -22
- package/dist/sei-panorama-service/src/services/schemas/AiInsightsRequestDto.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.d.ts +0 -34
- package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionResponseDto.d.ts +0 -35
- package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionUserDto.d.ts +0 -30
- package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownDataDto.d.ts +0 -27
- package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownOptions.d.ts +0 -12
- package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownUserDto.d.ts +0 -52
- package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownDataDto.d.ts +0 -17
- package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownOptions.d.ts +0 -12
- package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownUserDto.d.ts +0 -60
- /package/dist/sei-panorama-service/src/services/schemas/{AiFeatureDataPoint.js → AdoptionDataPoint.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiInsightsRequestDto.js → AdoptionPeriodData.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionUserDto.js → AiAdoptionBreakdownRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiDailyActiveUsersDrilldownRequestDto.js → AiAdoptionBreakdownResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownOptions.js → AiAdoptionMetricsRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiDailyActiveUsersDrilldownResponseDto.js → AiAdoptionMetricsResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownUserDto.js → AiAdoptionSummaryRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiFeatureDataResponseDto.js → AiAdoptionSummaryResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownOptions.js → AiCombinedInsightsRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownUserDto.js → AiMetrics.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionRequestDto.js → AiRawMetricsRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{AiTeamAdoptionResponseDto.js → AiRawMetricsResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{CursorDrilldownDataDto.js → AiTeamBreakdownResponseDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{WindsurfDrilldownDataDto.js → AiToolUsersSummaryResponseDto.js} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiAdoptionBreakdownResponseDto } from '../schemas/AiAdoptionBreakdownResponseDto';
|
|
3
|
+
import type { ApiError } from '../schemas/ApiError';
|
|
4
|
+
import type { AiAdoptionBreakdownRequestDto } from '../schemas/AiAdoptionBreakdownRequestDto';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface AiInsightsControllerGetAdoptionBreakdownQueryQueryParams {
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AiInsightsControllerGetAdoptionBreakdownRequestBody = AiAdoptionBreakdownRequestDto;
|
|
12
|
+
export type AiInsightsControllerGetAdoptionBreakdownOkResponse = ResponseWithPagination<AiAdoptionBreakdownResponseDto>;
|
|
13
|
+
export type AiInsightsControllerGetAdoptionBreakdownErrorResponse = ApiError;
|
|
14
|
+
export interface AiInsightsControllerGetAdoptionBreakdownProps extends Omit<FetcherOptions<AiInsightsControllerGetAdoptionBreakdownQueryQueryParams, AiInsightsControllerGetAdoptionBreakdownRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AiInsightsControllerGetAdoptionBreakdownQueryQueryParams;
|
|
16
|
+
body: AiInsightsControllerGetAdoptionBreakdownRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function aiInsightsControllerGetAdoptionBreakdown(props: AiInsightsControllerGetAdoptionBreakdownProps): Promise<AiInsightsControllerGetAdoptionBreakdownOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves time-series adoption metrics broken down by direct child teams.
|
|
21
|
+
*
|
|
22
|
+
* **Granularity Options:**
|
|
23
|
+
* - `DAILY` - One data point per day
|
|
24
|
+
* - `WEEKLY` - One data point per week
|
|
25
|
+
* - `MONTHLY` - One data point per month
|
|
26
|
+
*
|
|
27
|
+
* **Integration Types:**
|
|
28
|
+
* Specify using an array of enum values:
|
|
29
|
+
* - `cursor` - Cursor AI coding assistant
|
|
30
|
+
* - `windsurf` - Windsurf AI coding platform
|
|
31
|
+
*
|
|
32
|
+
* **Response Structure:**
|
|
33
|
+
* Returns data arrays for each integration type based on request:
|
|
34
|
+
* - `cursor` - Adoption breakdown for Cursor integration by child team
|
|
35
|
+
* - `windsurf` - Adoption breakdown for Windsurf integration by child team
|
|
36
|
+
* - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
|
|
37
|
+
*
|
|
38
|
+
* Each integration array contains team objects with:
|
|
39
|
+
* - `teamId` - Child team reference ID
|
|
40
|
+
* - `teamName` - Child team name
|
|
41
|
+
* - `data` - Array of time-series data points
|
|
42
|
+
*
|
|
43
|
+
* **Metrics per Data Point:**
|
|
44
|
+
* - `startDate` - Period start date
|
|
45
|
+
* - `endDate` - Period end date
|
|
46
|
+
* - `activeUsers` - Users who actively used the tool in this period
|
|
47
|
+
* - `inactiveUsers` - Licensed users who did not use the tool
|
|
48
|
+
* - `unAssigned` - Team members without a license for this tool
|
|
49
|
+
*
|
|
50
|
+
* **Use Cases:**
|
|
51
|
+
* - Track adoption trends by team over time
|
|
52
|
+
* - Compare team performance and engagement
|
|
53
|
+
* - Identify teams needing support or training
|
|
54
|
+
* - Monitor license utilization per team
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
export declare function useAiInsightsControllerGetAdoptionBreakdownQuery(props: AiInsightsControllerGetAdoptionBreakdownProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetAdoptionBreakdownOkResponse, AiInsightsControllerGetAdoptionBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetAdoptionBreakdownOkResponse, ApiError>;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 aiInsightsControllerGetAdoptionBreakdown(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/adoptions/breakdown`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves time-series adoption metrics broken down by direct child teams.
|
|
11
|
+
*
|
|
12
|
+
* **Granularity Options:**
|
|
13
|
+
* - `DAILY` - One data point per day
|
|
14
|
+
* - `WEEKLY` - One data point per week
|
|
15
|
+
* - `MONTHLY` - One data point per month
|
|
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 arrays for each integration type based on request:
|
|
24
|
+
* - `cursor` - Adoption breakdown for Cursor integration by child team
|
|
25
|
+
* - `windsurf` - Adoption breakdown for Windsurf integration by child team
|
|
26
|
+
* - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
|
|
27
|
+
*
|
|
28
|
+
* Each integration array contains team objects with:
|
|
29
|
+
* - `teamId` - Child team reference ID
|
|
30
|
+
* - `teamName` - Child team name
|
|
31
|
+
* - `data` - Array of time-series data points
|
|
32
|
+
*
|
|
33
|
+
* **Metrics per Data Point:**
|
|
34
|
+
* - `startDate` - Period start date
|
|
35
|
+
* - `endDate` - Period end date
|
|
36
|
+
* - `activeUsers` - Users who actively used the tool in this period
|
|
37
|
+
* - `inactiveUsers` - Licensed users who did not use the tool
|
|
38
|
+
* - `unAssigned` - Team members without a license for this tool
|
|
39
|
+
*
|
|
40
|
+
* **Use Cases:**
|
|
41
|
+
* - Track adoption trends by team over time
|
|
42
|
+
* - Compare team performance and engagement
|
|
43
|
+
* - Identify teams needing support or training
|
|
44
|
+
* - Monitor license utilization per team
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export function useAiInsightsControllerGetAdoptionBreakdownQuery(props, options) {
|
|
48
|
+
return useQuery(['AIInsightsControllerGetAdoptionBreakdown', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetAdoptionBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
|
49
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiAdoptionMetricsResponseDto } from '../schemas/AiAdoptionMetricsResponseDto';
|
|
3
|
+
import type { ApiError } from '../schemas/ApiError';
|
|
4
|
+
import type { AiAdoptionMetricsRequestDto } from '../schemas/AiAdoptionMetricsRequestDto';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface AiInsightsControllerGetAdoptionMetricsQueryQueryParams {
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AiInsightsControllerGetAdoptionMetricsRequestBody = AiAdoptionMetricsRequestDto;
|
|
12
|
+
export type AiInsightsControllerGetAdoptionMetricsOkResponse = ResponseWithPagination<AiAdoptionMetricsResponseDto>;
|
|
13
|
+
export type AiInsightsControllerGetAdoptionMetricsErrorResponse = ApiError;
|
|
14
|
+
export interface AiInsightsControllerGetAdoptionMetricsProps extends Omit<FetcherOptions<AiInsightsControllerGetAdoptionMetricsQueryQueryParams, AiInsightsControllerGetAdoptionMetricsRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AiInsightsControllerGetAdoptionMetricsQueryQueryParams;
|
|
16
|
+
body: AiInsightsControllerGetAdoptionMetricsRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function aiInsightsControllerGetAdoptionMetrics(props: AiInsightsControllerGetAdoptionMetricsProps): Promise<AiInsightsControllerGetAdoptionMetricsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves adoption metrics over time showing active, inactive, and unlicensed user counts.
|
|
21
|
+
*
|
|
22
|
+
* **Granularity Options:**
|
|
23
|
+
* - `DAILY` - One data point per day
|
|
24
|
+
* - `WEEKLY` - One data point per week
|
|
25
|
+
* - `MONTHLY` - One data point per month
|
|
26
|
+
*
|
|
27
|
+
* **Integration Types:**
|
|
28
|
+
* Specify using an array of enum values:
|
|
29
|
+
* - `cursor` - Cursor AI coding assistant
|
|
30
|
+
* - `windsurf` - Windsurf AI coding platform
|
|
31
|
+
*
|
|
32
|
+
* **Response Structure:**
|
|
33
|
+
* Returns time-series data arrays for each integration type based on request:
|
|
34
|
+
* - `cursor` - Adoption data for Cursor integration
|
|
35
|
+
* - `windsurf` - Adoption data for Windsurf integration
|
|
36
|
+
* - `CursorAndWindsurf` - Users active in both integrations (only when both are requested)
|
|
37
|
+
*
|
|
38
|
+
* **Metrics per Data Point:**
|
|
39
|
+
* - `startDate` - Start date of the period
|
|
40
|
+
* - `endDate` - End date of the period
|
|
41
|
+
* - `activeUsers` - Users who actively used the tool in this period
|
|
42
|
+
* - `inactiveUsers` - Licensed users who did not use the tool
|
|
43
|
+
* - `unAssigned` - Team members without a license for this tool
|
|
44
|
+
*
|
|
45
|
+
* **Use Cases:**
|
|
46
|
+
* - Track adoption trends over time
|
|
47
|
+
* - Identify periods of high/low engagement
|
|
48
|
+
* - Monitor license utilization
|
|
49
|
+
* - Compare adoption across different AI tools
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
export declare function useAiInsightsControllerGetAdoptionMetricsQuery(props: AiInsightsControllerGetAdoptionMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetAdoptionMetricsOkResponse, AiInsightsControllerGetAdoptionMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetAdoptionMetricsOkResponse, ApiError>;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 aiInsightsControllerGetAdoptionMetrics(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/adoptions`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves adoption metrics over time showing active, inactive, and unlicensed user counts.
|
|
11
|
+
*
|
|
12
|
+
* **Granularity Options:**
|
|
13
|
+
* - `DAILY` - One data point per day
|
|
14
|
+
* - `WEEKLY` - One data point per week
|
|
15
|
+
* - `MONTHLY` - One data point per month
|
|
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 time-series data arrays for each integration type based on request:
|
|
24
|
+
* - `cursor` - Adoption data for Cursor integration
|
|
25
|
+
* - `windsurf` - Adoption data for Windsurf integration
|
|
26
|
+
* - `CursorAndWindsurf` - Users active in both integrations (only when both are requested)
|
|
27
|
+
*
|
|
28
|
+
* **Metrics per Data Point:**
|
|
29
|
+
* - `startDate` - Start date of the period
|
|
30
|
+
* - `endDate` - End date of the period
|
|
31
|
+
* - `activeUsers` - Users who actively used the tool in this period
|
|
32
|
+
* - `inactiveUsers` - Licensed users who did not use the tool
|
|
33
|
+
* - `unAssigned` - Team members without a license for this tool
|
|
34
|
+
*
|
|
35
|
+
* **Use Cases:**
|
|
36
|
+
* - Track adoption trends over time
|
|
37
|
+
* - Identify periods of high/low engagement
|
|
38
|
+
* - Monitor license utilization
|
|
39
|
+
* - Compare adoption across different AI tools
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
export function useAiInsightsControllerGetAdoptionMetricsQuery(props, options) {
|
|
43
|
+
return useQuery(['AIInsightsControllerGetAdoptionMetrics', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetAdoptionMetrics(Object.assign(Object.assign({}, props), { signal })), options);
|
|
44
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiAdoptionSummaryResponseDto } from '../schemas/AiAdoptionSummaryResponseDto';
|
|
3
|
+
import type { ApiError } from '../schemas/ApiError';
|
|
4
|
+
import type { AiAdoptionSummaryRequestDto } from '../schemas/AiAdoptionSummaryRequestDto';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface AiInsightsControllerGetAdoptionSummaryQueryQueryParams {
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AiInsightsControllerGetAdoptionSummaryRequestBody = AiAdoptionSummaryRequestDto;
|
|
12
|
+
export type AiInsightsControllerGetAdoptionSummaryOkResponse = ResponseWithPagination<AiAdoptionSummaryResponseDto>;
|
|
13
|
+
export type AiInsightsControllerGetAdoptionSummaryErrorResponse = ApiError;
|
|
14
|
+
export interface AiInsightsControllerGetAdoptionSummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetAdoptionSummaryQueryQueryParams, AiInsightsControllerGetAdoptionSummaryRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AiInsightsControllerGetAdoptionSummaryQueryQueryParams;
|
|
16
|
+
body: AiInsightsControllerGetAdoptionSummaryRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function aiInsightsControllerGetAdoptionSummary(props: AiInsightsControllerGetAdoptionSummaryProps): Promise<AiInsightsControllerGetAdoptionSummaryOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves aggregate adoption summary statistics with current and previous period comparison.
|
|
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:
|
|
29
|
+
* - `cursor` - Adoption data for Cursor integration only
|
|
30
|
+
* - `windsurf` - Adoption data for Windsurf integration only
|
|
31
|
+
* - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
|
|
32
|
+
*
|
|
33
|
+
* Each integration contains:
|
|
34
|
+
* - `currentPeriod` - Metrics for the requested date range
|
|
35
|
+
* - `previousPeriod` - Metrics for the previous period (automatically calculated)
|
|
36
|
+
*
|
|
37
|
+
* **Metrics per Period:**
|
|
38
|
+
* - `startDate` - Start date of the period
|
|
39
|
+
* - `endDate` - End date of the period
|
|
40
|
+
* - `activeUsers` - Users who actively used the tool
|
|
41
|
+
* - `inactiveUsers` - Licensed users who did not use the tool
|
|
42
|
+
* - `unAssigned` - Team members without a license for this tool
|
|
43
|
+
*
|
|
44
|
+
* **Use Cases:**
|
|
45
|
+
* - Executive dashboards showing overall adoption
|
|
46
|
+
* - Period-over-period adoption trend analysis
|
|
47
|
+
* - License utilization tracking
|
|
48
|
+
* - ROI analysis for AI tools
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare function useAiInsightsControllerGetAdoptionSummaryQuery(props: AiInsightsControllerGetAdoptionSummaryProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetAdoptionSummaryOkResponse, AiInsightsControllerGetAdoptionSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetAdoptionSummaryOkResponse, ApiError>;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 aiInsightsControllerGetAdoptionSummary(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/adoptions/summary`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves aggregate adoption summary statistics with current and previous period comparison.
|
|
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:
|
|
19
|
+
* - `cursor` - Adoption data for Cursor integration only
|
|
20
|
+
* - `windsurf` - Adoption data for Windsurf integration only
|
|
21
|
+
* - `cursorAndWindsurf` - Users active in both integrations (only when both are requested)
|
|
22
|
+
*
|
|
23
|
+
* Each integration contains:
|
|
24
|
+
* - `currentPeriod` - Metrics for the requested date range
|
|
25
|
+
* - `previousPeriod` - Metrics for the previous period (automatically calculated)
|
|
26
|
+
*
|
|
27
|
+
* **Metrics per Period:**
|
|
28
|
+
* - `startDate` - Start date of the period
|
|
29
|
+
* - `endDate` - End date of the period
|
|
30
|
+
* - `activeUsers` - Users who actively used the tool
|
|
31
|
+
* - `inactiveUsers` - Licensed users who did not use the tool
|
|
32
|
+
* - `unAssigned` - Team members without a license for this tool
|
|
33
|
+
*
|
|
34
|
+
* **Use Cases:**
|
|
35
|
+
* - Executive dashboards showing overall adoption
|
|
36
|
+
* - Period-over-period adoption trend analysis
|
|
37
|
+
* - License utilization tracking
|
|
38
|
+
* - ROI analysis for AI tools
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export function useAiInsightsControllerGetAdoptionSummaryQuery(props, options) {
|
|
42
|
+
return useQuery(['AIInsightsControllerGetAdoptionSummary', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetAdoptionSummary(Object.assign(Object.assign({}, props), { signal })), options);
|
|
43
|
+
}
|
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { ApiError } from '../schemas/ApiError';
|
|
3
|
+
import type { AiCombinedInsightsRequestDto } from '../schemas/AiCombinedInsightsRequestDto';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface AiInsightsControllerGetFeatureMetricsQueryQueryParams {
|
|
7
|
-
account: string;
|
|
8
7
|
projectIdentifier: string;
|
|
9
8
|
orgIdentifier: string;
|
|
10
9
|
}
|
|
11
|
-
export type AiInsightsControllerGetFeatureMetricsRequestBody =
|
|
12
|
-
export type AiInsightsControllerGetFeatureMetricsOkResponse = ResponseWithPagination<
|
|
13
|
-
export type AiInsightsControllerGetFeatureMetricsErrorResponse =
|
|
10
|
+
export type AiInsightsControllerGetFeatureMetricsRequestBody = AiCombinedInsightsRequestDto;
|
|
11
|
+
export type AiInsightsControllerGetFeatureMetricsOkResponse = ResponseWithPagination<string>;
|
|
12
|
+
export type AiInsightsControllerGetFeatureMetricsErrorResponse = ApiError;
|
|
14
13
|
export interface AiInsightsControllerGetFeatureMetricsProps extends Omit<FetcherOptions<AiInsightsControllerGetFeatureMetricsQueryQueryParams, AiInsightsControllerGetFeatureMetricsRequestBody>, 'url'> {
|
|
15
14
|
queryParams: AiInsightsControllerGetFeatureMetricsQueryQueryParams;
|
|
16
15
|
body: AiInsightsControllerGetFeatureMetricsRequestBody;
|
|
17
16
|
}
|
|
18
17
|
export declare function aiInsightsControllerGetFeatureMetrics(props: AiInsightsControllerGetFeatureMetricsProps): Promise<AiInsightsControllerGetFeatureMetricsOkResponse>;
|
|
19
18
|
/**
|
|
20
|
-
* Retrieves feature metrics for
|
|
19
|
+
* Retrieves time-series feature metrics for AI coding assistants with period-over-period comparisons.
|
|
20
|
+
*
|
|
21
|
+
* **Supported Metrics:**
|
|
22
|
+
* - `linesAddedPerContributor` - Average net lines added per contributor
|
|
23
|
+
* - `linesSuggested` - Total lines suggested by AI (Windsurf only)
|
|
24
|
+
* - `linesAccepted` - Total lines accepted from AI suggestions (Windsurf only)
|
|
25
|
+
* - `acceptanceRatePercentage` - Percentage of AI suggestions accepted (both integrations)
|
|
26
|
+
*
|
|
27
|
+
* **Granularity Options:**
|
|
28
|
+
* - `DAILY` - Daily time series data points
|
|
29
|
+
* - `WEEKLY` - Weekly aggregated data points
|
|
30
|
+
* - `MONTHLY` - Monthly aggregated data points
|
|
31
|
+
*
|
|
32
|
+
* **Integration Types:**
|
|
33
|
+
* - `cursor` - Cursor AI coding assistant
|
|
34
|
+
* - `windsurf` - Windsurf AI coding platform
|
|
35
|
+
*
|
|
36
|
+
* **Response Structure:**
|
|
37
|
+
* Returns time-series data arrays for each requested integration type (cursor and/or windsurf).
|
|
38
|
+
* Each data point contains startDate, endDate, and value for the specified metric.
|
|
39
|
+
*
|
|
21
40
|
*/
|
|
22
|
-
export declare function useAiInsightsControllerGetFeatureMetricsQuery(props: AiInsightsControllerGetFeatureMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetFeatureMetricsOkResponse,
|
|
41
|
+
export declare function useAiInsightsControllerGetFeatureMetricsQuery(props: AiInsightsControllerGetFeatureMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetFeatureMetricsOkResponse, ApiError>;
|
|
@@ -4,10 +4,30 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function aiInsightsControllerGetFeatureMetrics(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v2/insights/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/usage/metrics`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Retrieves feature metrics for
|
|
10
|
+
* Retrieves time-series feature metrics for AI coding assistants with period-over-period comparisons.
|
|
11
|
+
*
|
|
12
|
+
* **Supported Metrics:**
|
|
13
|
+
* - `linesAddedPerContributor` - Average net lines added per contributor
|
|
14
|
+
* - `linesSuggested` - Total lines suggested by AI (Windsurf only)
|
|
15
|
+
* - `linesAccepted` - Total lines accepted from AI suggestions (Windsurf only)
|
|
16
|
+
* - `acceptanceRatePercentage` - Percentage of AI suggestions accepted (both integrations)
|
|
17
|
+
*
|
|
18
|
+
* **Granularity Options:**
|
|
19
|
+
* - `DAILY` - Daily time series data points
|
|
20
|
+
* - `WEEKLY` - Weekly aggregated data points
|
|
21
|
+
* - `MONTHLY` - Monthly aggregated data points
|
|
22
|
+
*
|
|
23
|
+
* **Integration Types:**
|
|
24
|
+
* - `cursor` - Cursor AI coding assistant
|
|
25
|
+
* - `windsurf` - Windsurf AI coding platform
|
|
26
|
+
*
|
|
27
|
+
* **Response Structure:**
|
|
28
|
+
* Returns time-series data arrays for each requested integration type (cursor and/or windsurf).
|
|
29
|
+
* Each data point contains startDate, endDate, and value for the specified metric.
|
|
30
|
+
*
|
|
11
31
|
*/
|
|
12
32
|
export function useAiInsightsControllerGetFeatureMetricsQuery(props, options) {
|
|
13
33
|
return useQuery(['AIInsightsControllerGetFeatureMetrics', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetFeatureMetrics(Object.assign(Object.assign({}, props), { signal })), options);
|
package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiRawMetricsResponseDto } from '../schemas/AiRawMetricsResponseDto';
|
|
3
|
+
import type { ApiError } from '../schemas/ApiError';
|
|
4
|
+
import type { AiRawMetricsRequestDto } from '../schemas/AiRawMetricsRequestDto';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface AiInsightsControllerGetRawMetricsQueryQueryParams {
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type AiInsightsControllerGetRawMetricsRequestBody = AiRawMetricsRequestDto;
|
|
12
|
+
export type AiInsightsControllerGetRawMetricsOkResponse = ResponseWithPagination<AiRawMetricsResponseDto>;
|
|
13
|
+
export type AiInsightsControllerGetRawMetricsErrorResponse = ApiError;
|
|
14
|
+
export interface AiInsightsControllerGetRawMetricsProps extends Omit<FetcherOptions<AiInsightsControllerGetRawMetricsQueryQueryParams, AiInsightsControllerGetRawMetricsRequestBody>, 'url'> {
|
|
15
|
+
queryParams: AiInsightsControllerGetRawMetricsQueryQueryParams;
|
|
16
|
+
body: AiInsightsControllerGetRawMetricsRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function aiInsightsControllerGetRawMetrics(props: AiInsightsControllerGetRawMetricsProps): Promise<AiInsightsControllerGetRawMetricsOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves detailed user-level metrics with pagination and sorting support.
|
|
21
|
+
*
|
|
22
|
+
* **Type Parameter:**
|
|
23
|
+
* - `active` (default): Returns full metrics for active users
|
|
24
|
+
* - `inactive`: Returns only userName, userEmail, team for inactive users (licensed but not active)
|
|
25
|
+
* - `unassigned`: Returns only userName, userEmail, team for unassigned users (not licensed)
|
|
26
|
+
*
|
|
27
|
+
* **Integration Types:**
|
|
28
|
+
* Specify using an array of enum values:
|
|
29
|
+
* - `cursor` - Cursor AI coding assistant
|
|
30
|
+
* - `windsurf` - Windsurf AI coding platform
|
|
31
|
+
*
|
|
32
|
+
* **Response Structure:**
|
|
33
|
+
* Returns data for each requested integration type:
|
|
34
|
+
* - `cursor` - Cursor integration metrics
|
|
35
|
+
* - `windsurf` - Windsurf integration metrics
|
|
36
|
+
* - `cursorAndWindsurf` - Combined metrics (only when both integrations are requested)
|
|
37
|
+
*
|
|
38
|
+
* Each integration contains:
|
|
39
|
+
* - `users` - Array of user metric objects
|
|
40
|
+
* - `pagination` - Pagination metadata (currentPage, pageSize, totalRecords, totalPages)
|
|
41
|
+
*
|
|
42
|
+
* **Active User Metrics (Cursor):**
|
|
43
|
+
* - userName, userEmail - User identification
|
|
44
|
+
* - team - Team name
|
|
45
|
+
* - ai - Nested AI metrics object containing:
|
|
46
|
+
* - totalActiveDays - Number of days user was active
|
|
47
|
+
* - lastActiveDate - Most recent activity date
|
|
48
|
+
* - primaryLanguage - Most frequently used programming language
|
|
49
|
+
* - linesAccepted - Total lines accepted from AI suggestions
|
|
50
|
+
* - linesSuggested - Total lines suggested by AI
|
|
51
|
+
* - linesAcceptPercent - Acceptance rate percentage
|
|
52
|
+
*
|
|
53
|
+
* **Active User Metrics (Windsurf):**
|
|
54
|
+
* - userName, userEmail - User identification
|
|
55
|
+
* - team - Team name
|
|
56
|
+
* - ai - Nested AI metrics object containing:
|
|
57
|
+
* - totalActiveDays - Number of days user was active
|
|
58
|
+
* - lastActiveDate - Most recent activity date
|
|
59
|
+
* - linesAccepted - Total lines accepted
|
|
60
|
+
* - linesSuggested - Total lines suggested
|
|
61
|
+
* - linesAcceptPercent - Acceptance rate percentage
|
|
62
|
+
*
|
|
63
|
+
* **Inactive User Metrics:**
|
|
64
|
+
* - userName, userEmail - User identification
|
|
65
|
+
* - team - Team name
|
|
66
|
+
*
|
|
67
|
+
* **Unassigned User Metrics:**
|
|
68
|
+
* - userName, userEmail - User identification
|
|
69
|
+
* - team - Team name
|
|
70
|
+
*
|
|
71
|
+
* **Pagination:**
|
|
72
|
+
* - Default page size: 10
|
|
73
|
+
* - Maximum page size: 100
|
|
74
|
+
* - Page numbers are 0-indexed
|
|
75
|
+
*
|
|
76
|
+
* **Sorting:**
|
|
77
|
+
* NOTE: Both camelCase and snake_case are supported (e.g., userName or user_name)
|
|
78
|
+
* CamelCase will be automatically converted to snake_case for database queries.
|
|
79
|
+
*
|
|
80
|
+
* For inactive users:
|
|
81
|
+
* - Default sort: user_name (DESC)
|
|
82
|
+
* - Supported fields: userName/user_name, userEmail/user_email
|
|
83
|
+
*
|
|
84
|
+
* For unassigned users:
|
|
85
|
+
* - Default sort: user_name (DESC)
|
|
86
|
+
* - Supported fields: userName/user_name, userEmail/user_email
|
|
87
|
+
*
|
|
88
|
+
* For active users (Cursor):
|
|
89
|
+
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
90
|
+
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
91
|
+
* lastActiveDate/last_active_date, primaryLanguage/primary_language, linesAccepted/lines_accepted,
|
|
92
|
+
* linesSuggested/lines_suggested, linesAcceptPercent/lines_accept_percent
|
|
93
|
+
*
|
|
94
|
+
* For active users (Windsurf):
|
|
95
|
+
* - Default sort: lines_accept_percent (DESC) - shows top performers first
|
|
96
|
+
* - Supported fields: userName/user_name, userEmail/user_email, totalActiveDays/total_active_days,
|
|
97
|
+
* lastActiveDate/last_active_date, linesAccepted/lines_accepted, linesSuggested/lines_suggested,
|
|
98
|
+
* linesAcceptPercent/lines_accept_percent
|
|
99
|
+
*
|
|
100
|
+
* Sort criteria: ASC or DESC (defaults to DESC)
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
export declare function useAiInsightsControllerGetRawMetricsQuery(props: AiInsightsControllerGetRawMetricsProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetRawMetricsOkResponse, AiInsightsControllerGetRawMetricsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetRawMetricsOkResponse, ApiError>;
|
package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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>;
|