@harnessio/react-sei-panorama-service-client 0.25.9 → 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.
Files changed (92) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.d.ts +22 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.d.ts +8 -27
  4. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetFeatureMetricsQuery.js +2 -22
  5. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.d.ts +22 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.js +14 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.d.ts +6 -30
  8. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTopLanguagesQuery.js +2 -26
  9. package/dist/sei-panorama-service/src/services/index.d.ts +18 -39
  10. package/dist/sei-panorama-service/src/services/index.js +2 -6
  11. package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownRequestDto.d.ts +34 -0
  12. package/dist/sei-panorama-service/src/services/schemas/AiDailyActiveUsersDrilldownResponseDto.d.ts +58 -0
  13. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataPoint.d.ts +14 -0
  14. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataResponseDto.d.ts +22 -0
  15. package/dist/sei-panorama-service/src/services/schemas/AiInsightsRequestDto.d.ts +17 -0
  16. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.d.ts +34 -0
  17. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionResponseDto.d.ts +35 -0
  18. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionUserDto.d.ts +30 -0
  19. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownDataDto.d.ts +27 -0
  20. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownOptions.d.ts +12 -0
  21. package/dist/sei-panorama-service/src/services/schemas/CursorDrilldownUserDto.d.ts +52 -0
  22. package/dist/sei-panorama-service/src/services/schemas/LanguageCount.d.ts +1 -1
  23. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownDataDto.d.ts +17 -0
  24. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownOptions.d.ts +12 -0
  25. package/dist/sei-panorama-service/src/services/schemas/WindsurfDrilldownUserDto.d.ts +60 -0
  26. package/package.json +1 -1
  27. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.d.ts +0 -57
  28. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionBreakdownQuery.js +0 -49
  29. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.d.ts +0 -52
  30. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionMetricsQuery.js +0 -44
  31. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.d.ts +0 -51
  32. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetAdoptionSummaryQuery.js +0 -43
  33. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +0 -103
  34. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +0 -95
  35. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.d.ts +0 -50
  36. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamBreakdownQuery.js +0 -42
  37. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.d.ts +0 -44
  38. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetToolUsersSummaryQuery.js +0 -36
  39. package/dist/sei-panorama-service/src/services/schemas/AdoptionDataPoint.d.ts +0 -35
  40. package/dist/sei-panorama-service/src/services/schemas/AdoptionPeriodData.d.ts +0 -35
  41. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownRequestDto.d.ts +0 -38
  42. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionBreakdownResponseDto.d.ts +0 -30
  43. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsRequestDto.d.ts +0 -34
  44. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionMetricsResponseDto.d.ts +0 -35
  45. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryRequestDto.d.ts +0 -32
  46. package/dist/sei-panorama-service/src/services/schemas/AiAdoptionSummaryResponseDto.d.ts +0 -30
  47. package/dist/sei-panorama-service/src/services/schemas/AiCombinedInsightsRequestDto.d.ts +0 -37
  48. package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +0 -40
  49. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +0 -66
  50. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsResponseDto.d.ts +0 -30
  51. package/dist/sei-panorama-service/src/services/schemas/AiSummary.d.ts +0 -14
  52. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.d.ts +0 -31
  53. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownDataPoint.js +0 -4
  54. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.d.ts +0 -16
  55. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownRequestDto.js +0 -4
  56. package/dist/sei-panorama-service/src/services/schemas/AiTeamBreakdownResponseDto.d.ts +0 -14
  57. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.d.ts +0 -28
  58. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryRequestDto.js +0 -4
  59. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.d.ts +0 -31
  60. package/dist/sei-panorama-service/src/services/schemas/AiToolUsersSummaryResponseDto.js +0 -1
  61. package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.d.ts +0 -28
  62. package/dist/sei-panorama-service/src/services/schemas/AiTopLanguagesRequestDto.js +0 -4
  63. package/dist/sei-panorama-service/src/services/schemas/ApiError.d.ts +0 -31
  64. package/dist/sei-panorama-service/src/services/schemas/ApiError.js +0 -1
  65. package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.d.ts +0 -14
  66. package/dist/sei-panorama-service/src/services/schemas/IntegrationAdoptionSummary.js +0 -1
  67. package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.d.ts +0 -15
  68. package/dist/sei-panorama-service/src/services/schemas/IntegrationRawMetrics.js +0 -1
  69. package/dist/sei-panorama-service/src/services/schemas/PaginationParams.d.ts +0 -19
  70. package/dist/sei-panorama-service/src/services/schemas/PaginationParams.js +0 -4
  71. package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.d.ts +0 -46
  72. package/dist/sei-panorama-service/src/services/schemas/TeamPeriodData.js +0 -4
  73. package/dist/sei-panorama-service/src/services/schemas/ToolSummary.d.ts +0 -53
  74. package/dist/sei-panorama-service/src/services/schemas/ToolSummary.js +0 -4
  75. package/dist/sei-panorama-service/src/services/schemas/UserMetrics.d.ts +0 -25
  76. package/dist/sei-panorama-service/src/services/schemas/UserMetrics.js +0 -1
  77. package/dist/sei-panorama-service/src/services/schemas/ValidationError.d.ts +0 -19
  78. package/dist/sei-panorama-service/src/services/schemas/ValidationError.js +0 -4
  79. /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionBreakdownResponseDto.js → AiDailyActiveUsersDrilldownRequestDto.js} +0 -0
  80. /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionMetricsResponseDto.js → AiDailyActiveUsersDrilldownResponseDto.js} +0 -0
  81. /package/dist/sei-panorama-service/src/services/schemas/{AdoptionDataPoint.js → AiFeatureDataPoint.js} +0 -0
  82. /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionSummaryResponseDto.js → AiFeatureDataResponseDto.js} +0 -0
  83. /package/dist/sei-panorama-service/src/services/schemas/{AdoptionPeriodData.js → AiInsightsRequestDto.js} +0 -0
  84. /package/dist/sei-panorama-service/src/services/schemas/{AiRawMetricsRequestDto.js → AiTeamAdoptionRequestDto.js} +0 -0
  85. /package/dist/sei-panorama-service/src/services/schemas/{AiRawMetricsResponseDto.js → AiTeamAdoptionResponseDto.js} +0 -0
  86. /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionBreakdownRequestDto.js → AiTeamAdoptionUserDto.js} +0 -0
  87. /package/dist/sei-panorama-service/src/services/schemas/{AiSummary.js → CursorDrilldownDataDto.js} +0 -0
  88. /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionMetricsRequestDto.js → CursorDrilldownOptions.js} +0 -0
  89. /package/dist/sei-panorama-service/src/services/schemas/{AiAdoptionSummaryRequestDto.js → CursorDrilldownUserDto.js} +0 -0
  90. /package/dist/sei-panorama-service/src/services/schemas/{AiTeamBreakdownResponseDto.js → WindsurfDrilldownDataDto.js} +0 -0
  91. /package/dist/sei-panorama-service/src/services/schemas/{AiCombinedInsightsRequestDto.js → WindsurfDrilldownOptions.js} +0 -0
  92. /package/dist/sei-panorama-service/src/services/schemas/{AiMetrics.js → WindsurfDrilldownUserDto.js} +0 -0
@@ -0,0 +1,30 @@
1
+ export interface AiTeamAdoptionUserDto {
2
+ /**
3
+ * @format double
4
+ */
5
+ acceptPercent?: number;
6
+ /**
7
+ * @format double
8
+ */
9
+ lineAcceptPercent?: number;
10
+ /**
11
+ * @format int64
12
+ */
13
+ linesAccepted?: number;
14
+ /**
15
+ * @format int64
16
+ */
17
+ linesSuggested?: number;
18
+ primaryLanguage?: string;
19
+ /**
20
+ * @format int32
21
+ */
22
+ rank?: number;
23
+ /**
24
+ * @format int64
25
+ */
26
+ totalAccepts?: number;
27
+ trend?: string;
28
+ userEmail?: string;
29
+ username?: string;
30
+ }
@@ -0,0 +1,27 @@
1
+ import type { CursorDrilldownUserDto } from '../schemas/CursorDrilldownUserDto';
2
+ export interface CursorDrilldownDataDto {
3
+ /**
4
+ * Column used for sorting
5
+ * @example "TOTAL_ACCEPTS"
6
+ */
7
+ sortBy?: 'email' | 'line_accept_percent' | 'lines_accepted' | 'lines_suggested' | 'primary_language' | 'rank' | 'total_accepts' | 'username';
8
+ /**
9
+ * Sort order (ASC/DESC)
10
+ * @example "DESC"
11
+ */
12
+ sortByCriteria?: 'ASC' | 'DESC';
13
+ /**
14
+ * Total number of active users
15
+ * @format int32
16
+ */
17
+ totalActiveUsers?: number;
18
+ /**
19
+ * Total number of users in the team
20
+ * @format int32
21
+ */
22
+ totalUsers?: number;
23
+ /**
24
+ * List of users with their metrics
25
+ */
26
+ users?: CursorDrilldownUserDto[];
27
+ }
@@ -0,0 +1,12 @@
1
+ export interface CursorDrilldownOptions {
2
+ /**
3
+ * Column to sort by (case-insensitive)
4
+ * @example "total_accepts"
5
+ */
6
+ sortBy?: 'email' | 'line_accept_percent' | 'lines_accepted' | 'lines_suggested' | 'primary_language' | 'rank' | 'total_accepts' | 'username';
7
+ /**
8
+ * Sort order (ASC/DESC, case-insensitive)
9
+ * @example "DESC"
10
+ */
11
+ sortByCriteria?: 'ASC' | 'DESC';
12
+ }
@@ -0,0 +1,52 @@
1
+ export interface CursorDrilldownUserDto {
2
+ /**
3
+ * Acceptance rate percentage
4
+ * @format double
5
+ * @example 75
6
+ */
7
+ acceptanceRate?: number;
8
+ /**
9
+ * Last active date
10
+ * @format date-time
11
+ */
12
+ lastActiveDate?: string;
13
+ /**
14
+ * Primary programming language
15
+ * @example "Java"
16
+ */
17
+ primaryLanguage?: string;
18
+ /**
19
+ * User's rank
20
+ * @format int32
21
+ * @example 1
22
+ */
23
+ rank?: number;
24
+ /**
25
+ * Total accepts
26
+ * @format int64
27
+ * @example 150
28
+ */
29
+ totalAccepts?: number;
30
+ /**
31
+ * Total number of active days
32
+ * @format int64
33
+ * @example 20
34
+ */
35
+ totalActiveDays?: number;
36
+ /**
37
+ * Total suggestions
38
+ * @format int64
39
+ * @example 200
40
+ */
41
+ totalSuggestions?: number;
42
+ /**
43
+ * User email
44
+ * @example "john.doe@example.com"
45
+ */
46
+ userEmail?: string;
47
+ /**
48
+ * Username
49
+ * @example "john.doe"
50
+ */
51
+ username?: string;
52
+ }
@@ -2,6 +2,6 @@ export interface LanguageCount {
2
2
  /**
3
3
  * @format int64
4
4
  */
5
- file_changes_count?: number;
5
+ count?: number;
6
6
  language?: string;
7
7
  }
@@ -0,0 +1,17 @@
1
+ import type { WindsurfDrilldownUserDto } from '../schemas/WindsurfDrilldownUserDto';
2
+ export interface WindsurfDrilldownDataDto {
3
+ /**
4
+ * Column used for sorting
5
+ * @example "user_name"
6
+ */
7
+ sortBy?: string;
8
+ /**
9
+ * Sort order (ASC/DESC)
10
+ * @example "ASC"
11
+ */
12
+ sortByCriteria?: string;
13
+ /**
14
+ * List of users with their metrics
15
+ */
16
+ users?: WindsurfDrilldownUserDto[];
17
+ }
@@ -0,0 +1,12 @@
1
+ export interface WindsurfDrilldownOptions {
2
+ /**
3
+ * Column to sort by
4
+ * @example "user_name"
5
+ */
6
+ sortBy?: string;
7
+ /**
8
+ * Sort order (ASC/DESC)
9
+ * @example "ASC"
10
+ */
11
+ sortByCriteria?: string;
12
+ }
@@ -0,0 +1,60 @@
1
+ export interface WindsurfDrilldownUserDto {
2
+ /**
3
+ * Cascade line accept percentage
4
+ * @format double
5
+ * @example 98.94
6
+ */
7
+ cascadeLineAcceptPercent?: number;
8
+ /**
9
+ * Total chat LOC used
10
+ * @format int64
11
+ * @example 0
12
+ */
13
+ chatLocUsed?: number;
14
+ /**
15
+ * Total lines accepted by autocomplete
16
+ * @format int64
17
+ * @example 0
18
+ */
19
+ linesAcceptedByAutocomplete?: number;
20
+ /**
21
+ * Total lines accepted by cascade
22
+ * @format int64
23
+ * @example 372
24
+ */
25
+ linesAcceptedByCascade?: number;
26
+ /**
27
+ * Total lines added by command
28
+ * @format int64
29
+ * @example 0
30
+ */
31
+ linesAddedByCommand?: number;
32
+ /**
33
+ * Total lines removed by command
34
+ * @format int64
35
+ * @example 0
36
+ */
37
+ linesRemovedByCommand?: number;
38
+ /**
39
+ * Total lines suggested by cascade
40
+ * @format int64
41
+ * @example 376
42
+ */
43
+ linesSuggestedByCascade?: number;
44
+ /**
45
+ * User rank based on cascade line accept percent
46
+ * @format int32
47
+ * @example 1
48
+ */
49
+ rank?: number;
50
+ /**
51
+ * Email of the user
52
+ * @example "akshit.agrawal@harness.io"
53
+ */
54
+ userEmail?: string;
55
+ /**
56
+ * Username of the user
57
+ * @example "Akshit Agrawal"
58
+ */
59
+ userName?: string;
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.25.9",
3
+ "version": "0.25.11",
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,57 +0,0 @@
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>;
@@ -1,49 +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 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
- }
@@ -1,52 +0,0 @@
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>;
@@ -1,44 +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 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
- }
@@ -1,51 +0,0 @@
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>;
@@ -1,43 +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 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,103 +0,0 @@
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>;