@harnessio/react-sei-panorama-service-client 0.25.17 → 0.25.19

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 (18) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.d.ts +4 -5
  2. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetRawMetricsQuery.js +4 -5
  3. package/dist/sei-panorama-service/src/services/hooks/{useAiInsightsControllerGetReworkSummaryMutation.d.ts → useAiInsightsControllerGetReworkSummaryQuery.d.ts} +5 -5
  4. package/dist/sei-panorama-service/src/services/hooks/{useAiInsightsControllerGetReworkSummaryMutation.js → useAiInsightsControllerGetReworkSummaryQuery.js} +3 -3
  5. package/dist/sei-panorama-service/src/services/hooks/useDeveloperControllerUpsertDeveloperIdentitiesMutation.d.ts +1 -1
  6. package/dist/sei-panorama-service/src/services/index.d.ts +4 -3
  7. package/dist/sei-panorama-service/src/services/index.js +1 -1
  8. package/dist/sei-panorama-service/src/services/schemas/AiMetrics.d.ts +6 -6
  9. package/dist/sei-panorama-service/src/services/schemas/AiRawMetricsRequestDto.d.ts +2 -1
  10. package/dist/sei-panorama-service/src/services/schemas/AiReworkSummaryResponseDto.d.ts +2 -2
  11. package/dist/sei-panorama-service/src/services/schemas/AiprVelocitySummaryResponseDto.d.ts +2 -2
  12. package/dist/sei-panorama-service/src/services/schemas/CursorMetrics.d.ts +8 -9
  13. package/dist/sei-panorama-service/src/services/schemas/OverallPrMetrics.d.ts +15 -0
  14. package/dist/sei-panorama-service/src/services/schemas/{OverallMetrics.d.ts → OverallReworkMetrics.d.ts} +1 -1
  15. package/dist/sei-panorama-service/src/services/schemas/OverallReworkMetrics.js +4 -0
  16. package/dist/sei-panorama-service/src/services/schemas/WindsurfMetrics.d.ts +8 -9
  17. package/package.json +1 -1
  18. /package/dist/sei-panorama-service/src/services/schemas/{OverallMetrics.js → OverallPrMetrics.js} +0 -0
@@ -20,13 +20,12 @@ export declare function aiInsightsControllerGetRawMetrics(props: AiInsightsContr
20
20
  * Retrieves detailed user-level metrics with pagination and sorting support.
21
21
  *
22
22
  * **Type Parameter:**
23
- * - `all` (default when absent): Returns integration + productivity data for all user types
24
- * - `active`: Returns integration + productivity data only for active users (those with AI activity)
25
- * - `inactive`: Returns productivity data only for inactive users (licensed but no AI activity) - cursor/windsurf fields are empty
26
- * - `unassigned`: Returns productivity data only for unassigned users (not licensed for AI tools) - cursor/windsurf fields are empty
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)
27
26
  *
28
27
  * **Productivity Metrics:**
29
- * For all types, includes productivity metrics:
28
+ * For `type=active`, automatically includes productivity metrics:
30
29
  * - prMerged: Number of PRs merged
31
30
  * - defectsResolved: Number of defects resolved
32
31
  * - featuresDelivered: Number of features delivered
@@ -10,13 +10,12 @@ export function aiInsightsControllerGetRawMetrics(props) {
10
10
  * Retrieves detailed user-level metrics with pagination and sorting support.
11
11
  *
12
12
  * **Type Parameter:**
13
- * - `all` (default when absent): Returns integration + productivity data for all user types
14
- * - `active`: Returns integration + productivity data only for active users (those with AI activity)
15
- * - `inactive`: Returns productivity data only for inactive users (licensed but no AI activity) - cursor/windsurf fields are empty
16
- * - `unassigned`: Returns productivity data only for unassigned users (not licensed for AI tools) - cursor/windsurf fields are empty
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)
17
16
  *
18
17
  * **Productivity Metrics:**
19
- * For all types, includes productivity metrics:
18
+ * For `type=active`, automatically includes productivity metrics:
20
19
  * - prMerged: Number of PRs merged
21
20
  * - defectsResolved: Number of defects resolved
22
21
  * - featuresDelivered: Number of features delivered
@@ -1,18 +1,18 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiReworkSummaryResponseDto } from '../schemas/AiReworkSummaryResponseDto';
3
3
  import type { ApiError } from '../schemas/ApiError';
4
4
  import type { AiprVelocitySummaryRequestDto } from '../schemas/AiprVelocitySummaryRequestDto';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface AiInsightsControllerGetReworkSummaryMutationQueryParams {
7
+ export interface AiInsightsControllerGetReworkSummaryQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
11
  export type AiInsightsControllerGetReworkSummaryRequestBody = AiprVelocitySummaryRequestDto;
12
12
  export type AiInsightsControllerGetReworkSummaryOkResponse = ResponseWithPagination<AiReworkSummaryResponseDto>;
13
13
  export type AiInsightsControllerGetReworkSummaryErrorResponse = ApiError;
14
- export interface AiInsightsControllerGetReworkSummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetReworkSummaryMutationQueryParams, AiInsightsControllerGetReworkSummaryRequestBody>, 'url'> {
15
- queryParams: AiInsightsControllerGetReworkSummaryMutationQueryParams;
14
+ export interface AiInsightsControllerGetReworkSummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetReworkSummaryQueryQueryParams, AiInsightsControllerGetReworkSummaryRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetReworkSummaryQueryQueryParams;
16
16
  body: AiInsightsControllerGetReworkSummaryRequestBody;
17
17
  }
18
18
  export declare function aiInsightsControllerGetReworkSummary(props: AiInsightsControllerGetReworkSummaryProps): Promise<AiInsightsControllerGetReworkSummaryOkResponse>;
@@ -39,4 +39,4 @@ export declare function aiInsightsControllerGetReworkSummary(props: AiInsightsCo
39
39
  * Returns metrics breakdown by AI tool adoption status with trend analysis comparing current vs previous period.
40
40
  *
41
41
  */
42
- export declare function useAiInsightsControllerGetReworkSummaryMutation(options?: Omit<UseMutationOptions<AiInsightsControllerGetReworkSummaryOkResponse, AiInsightsControllerGetReworkSummaryErrorResponse, AiInsightsControllerGetReworkSummaryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AiInsightsControllerGetReworkSummaryOkResponse, ApiError, AiInsightsControllerGetReworkSummaryProps, unknown>;
42
+ export declare function useAiInsightsControllerGetReworkSummaryQuery(props: AiInsightsControllerGetReworkSummaryProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetReworkSummaryOkResponse, AiInsightsControllerGetReworkSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetReworkSummaryOkResponse, ApiError>;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
4
+ import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function aiInsightsControllerGetReworkSummary(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/rework/summary`, method: 'POST' }, props));
@@ -29,6 +29,6 @@ export function aiInsightsControllerGetReworkSummary(props) {
29
29
  * Returns metrics breakdown by AI tool adoption status with trend analysis comparing current vs previous period.
30
30
  *
31
31
  */
32
- export function useAiInsightsControllerGetReworkSummaryMutation(options) {
33
- return useMutation((mutateProps) => aiInsightsControllerGetReworkSummary(mutateProps), options);
32
+ export function useAiInsightsControllerGetReworkSummaryQuery(props, options) {
33
+ return useQuery(['AIInsightsControllerGetReworkSummary', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetReworkSummary(Object.assign(Object.assign({}, props), { signal })), options);
34
34
  }
@@ -7,7 +7,7 @@ import type { ResponseWithPagination } from '../helpers';
7
7
  import { FetcherOptions } from '../../../../fetcher/index.js';
8
8
  export type DeveloperControllerUpsertDeveloperIdentitiesRequestBody = DeveloperIdentity[];
9
9
  export type DeveloperControllerUpsertDeveloperIdentitiesOkResponse = ResponseWithPagination<DeveloperIdentityUpsertResponse>;
10
- export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = (DeveloperIdentityUpsertFailureResponse & ErrorResponse) | ErrorResponse;
10
+ export type DeveloperControllerUpsertDeveloperIdentitiesErrorResponse = DeveloperIdentityUpsertFailureResponse | ErrorResponse;
11
11
  export interface DeveloperControllerUpsertDeveloperIdentitiesProps extends Omit<FetcherOptions<unknown, DeveloperControllerUpsertDeveloperIdentitiesRequestBody>, 'url'> {
12
12
  body: DeveloperControllerUpsertDeveloperIdentitiesRequestBody;
13
13
  }
@@ -11,8 +11,8 @@ export type { AiInsightsControllerGetPrVelocitySummaryErrorResponse, AiInsightsC
11
11
  export { aiInsightsControllerGetPrVelocitySummary, useAiInsightsControllerGetPrVelocitySummaryQuery, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryQuery';
12
12
  export type { AiInsightsControllerGetRawMetricsErrorResponse, AiInsightsControllerGetRawMetricsOkResponse, AiInsightsControllerGetRawMetricsProps, AiInsightsControllerGetRawMetricsQueryQueryParams, AiInsightsControllerGetRawMetricsRequestBody, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
13
13
  export { aiInsightsControllerGetRawMetrics, useAiInsightsControllerGetRawMetricsQuery, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
14
- export type { AiInsightsControllerGetReworkSummaryErrorResponse, AiInsightsControllerGetReworkSummaryMutationQueryParams, AiInsightsControllerGetReworkSummaryOkResponse, AiInsightsControllerGetReworkSummaryProps, AiInsightsControllerGetReworkSummaryRequestBody, } from './hooks/useAiInsightsControllerGetReworkSummaryMutation';
15
- export { aiInsightsControllerGetReworkSummary, useAiInsightsControllerGetReworkSummaryMutation, } from './hooks/useAiInsightsControllerGetReworkSummaryMutation';
14
+ export type { AiInsightsControllerGetReworkSummaryErrorResponse, AiInsightsControllerGetReworkSummaryOkResponse, AiInsightsControllerGetReworkSummaryProps, AiInsightsControllerGetReworkSummaryQueryQueryParams, AiInsightsControllerGetReworkSummaryRequestBody, } from './hooks/useAiInsightsControllerGetReworkSummaryQuery';
15
+ export { aiInsightsControllerGetReworkSummary, useAiInsightsControllerGetReworkSummaryQuery, } from './hooks/useAiInsightsControllerGetReworkSummaryQuery';
16
16
  export type { AiInsightsControllerGetTeamBreakdownErrorResponse, AiInsightsControllerGetTeamBreakdownOkResponse, AiInsightsControllerGetTeamBreakdownProps, AiInsightsControllerGetTeamBreakdownQueryQueryParams, AiInsightsControllerGetTeamBreakdownRequestBody, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
17
17
  export { aiInsightsControllerGetTeamBreakdown, useAiInsightsControllerGetTeamBreakdownQuery, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
18
18
  export type { AiInsightsControllerGetToolUsersSummaryErrorResponse, AiInsightsControllerGetToolUsersSummaryOkResponse, AiInsightsControllerGetToolUsersSummaryProps, AiInsightsControllerGetToolUsersSummaryQueryQueryParams, AiInsightsControllerGetToolUsersSummaryRequestBody, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
@@ -578,7 +578,8 @@ export type { OrgTreeProfileDto } from './schemas/OrgTreeProfileDto';
578
578
  export type { OrgTreeResponseDto } from './schemas/OrgTreeResponseDto';
579
579
  export type { OrgTreeSearchParams } from './schemas/OrgTreeSearchParams';
580
580
  export type { OrgTreeUpdateRequestDto } from './schemas/OrgTreeUpdateRequestDto';
581
- export type { OverallMetrics } from './schemas/OverallMetrics';
581
+ export type { OverallPrMetrics } from './schemas/OverallPrMetrics';
582
+ export type { OverallReworkMetrics } from './schemas/OverallReworkMetrics';
582
583
  export type { PaginatedResponseTeamSummary } from './schemas/PaginatedResponseTeamSummary';
583
584
  export type { PaginationInfo } from './schemas/PaginationInfo';
584
585
  export type { PaginationMetadata } from './schemas/PaginationMetadata';
@@ -4,7 +4,7 @@ export { aiInsightsControllerGetAdoptionSummary, useAiInsightsControllerGetAdopt
4
4
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
5
5
  export { aiInsightsControllerGetPrVelocitySummary, useAiInsightsControllerGetPrVelocitySummaryQuery, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryQuery';
6
6
  export { aiInsightsControllerGetRawMetrics, useAiInsightsControllerGetRawMetricsQuery, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
7
- export { aiInsightsControllerGetReworkSummary, useAiInsightsControllerGetReworkSummaryMutation, } from './hooks/useAiInsightsControllerGetReworkSummaryMutation';
7
+ export { aiInsightsControllerGetReworkSummary, useAiInsightsControllerGetReworkSummaryQuery, } from './hooks/useAiInsightsControllerGetReworkSummaryQuery';
8
8
  export { aiInsightsControllerGetTeamBreakdown, useAiInsightsControllerGetTeamBreakdownQuery, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
9
9
  export { aiInsightsControllerGetToolUsersSummary, useAiInsightsControllerGetToolUsersSummaryQuery, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
10
10
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
@@ -3,6 +3,12 @@ import type { ProductivityMetrics } from '../schemas/ProductivityMetrics';
3
3
  * AI metrics data
4
4
  */
5
5
  export interface AiMetrics {
6
+ /**
7
+ * Number of active days in the given duration
8
+ * @format int32
9
+ * @example 11
10
+ */
11
+ activeDays?: number;
6
12
  /**
7
13
  * Last active date (Cursor only)
8
14
  * @format date-time
@@ -36,10 +42,4 @@ export interface AiMetrics {
36
42
  * Productivity metrics
37
43
  */
38
44
  productivity?: ProductivityMetrics;
39
- /**
40
- * Total active days (Cursor only)
41
- * @format int32
42
- * @example 11
43
- */
44
- totalActiveDays?: number;
45
45
  }
@@ -56,7 +56,8 @@ export interface AiRawMetricsRequestDto {
56
56
  */
57
57
  teamRefId: number;
58
58
  /**
59
- * Type of users to retrieve: 'active', 'inactive', 'unassigned', or 'all'. When absent, defaults to 'all'
59
+ * Type of users to retrieve: 'all', 'active', 'inactive', or 'unassigned'
60
+ * @default "active"
60
61
  * @example "active"
61
62
  */
62
63
  type?: string;
@@ -1,5 +1,5 @@
1
1
  import type { ReworkSummaryBreakdown } from '../schemas/ReworkSummaryBreakdown';
2
- import type { OverallMetrics } from '../schemas/OverallMetrics';
2
+ import type { OverallReworkMetrics } from '../schemas/OverallReworkMetrics';
3
3
  /**
4
4
  * AI Rework summary analytics response
5
5
  */
@@ -20,7 +20,7 @@ export interface AiReworkSummaryResponseDto {
20
20
  /**
21
21
  * Overall team rework metrics
22
22
  */
23
- overall?: OverallMetrics;
23
+ overall?: OverallReworkMetrics;
24
24
  /**
25
25
  * Start date of the analysis period
26
26
  * @format date-time
@@ -1,5 +1,5 @@
1
1
  import type { PrVelocitySummaryBreakdown } from '../schemas/PrVelocitySummaryBreakdown';
2
- import type { OverallMetrics } from '../schemas/OverallMetrics';
2
+ import type { OverallPrMetrics } from '../schemas/OverallPrMetrics';
3
3
  /**
4
4
  * AI PR Velocity summary analytics response
5
5
  */
@@ -20,7 +20,7 @@ export interface AiprVelocitySummaryResponseDto {
20
20
  /**
21
21
  * Overall team PR velocity metrics
22
22
  */
23
- overall?: OverallMetrics;
23
+ overall?: OverallPrMetrics;
24
24
  /**
25
25
  * Start date of the analysis period
26
26
  * @format date-time
@@ -3,16 +3,21 @@
3
3
  */
4
4
  export interface CursorMetrics {
5
5
  /**
6
- * Number of active days within the date range
6
+ * Number of active days in the given duration
7
7
  * @format int32
8
- * @example 15
8
+ * @example 28
9
9
  */
10
10
  activeDays?: number;
11
11
  /**
12
- * Whether the user was active during the date range
12
+ * Whether user is active for the given time duration
13
13
  * @example true
14
14
  */
15
15
  isActive?: boolean;
16
+ /**
17
+ * Whether user is licensed (has access)
18
+ * @example true
19
+ */
20
+ isLicensed?: boolean;
16
21
  /**
17
22
  * Last active date
18
23
  * @format date-time
@@ -36,12 +41,6 @@ export interface CursorMetrics {
36
41
  * @example 12088
37
42
  */
38
43
  totalAccepts?: number;
39
- /**
40
- * Total active days
41
- * @format int32
42
- * @example 73
43
- */
44
- totalActiveDays?: number;
45
44
  /**
46
45
  * Total suggestions
47
46
  * @format int64
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Overall PR velocity metrics
3
+ */
4
+ export interface OverallPrMetrics {
5
+ /**
6
+ * Average PR velocity per developer
7
+ * @format double
8
+ */
9
+ prVelocityPerDeveloper?: number;
10
+ /**
11
+ * Trend percentage
12
+ * @format double
13
+ */
14
+ trendPercentage?: number;
15
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Overall rework metrics
3
3
  */
4
- export interface OverallMetrics {
4
+ export interface OverallReworkMetrics {
5
5
  /**
6
6
  * Legacy rework lines of code (≥30 days old)
7
7
  * @format double
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -3,16 +3,21 @@
3
3
  */
4
4
  export interface WindsurfMetrics {
5
5
  /**
6
- * Number of active days within the date range
6
+ * Number of active days in the given duration
7
7
  * @format int32
8
- * @example 12
8
+ * @example 25
9
9
  */
10
10
  activeDays?: number;
11
11
  /**
12
- * Whether the user was active during the date range
12
+ * Whether user is active for the given time duration
13
13
  * @example true
14
14
  */
15
15
  isActive?: boolean;
16
+ /**
17
+ * Whether user is licensed (has access)
18
+ * @example true
19
+ */
20
+ isLicensed?: boolean;
16
21
  /**
17
22
  * Line accept percentage
18
23
  * @format double
@@ -31,10 +36,4 @@ export interface WindsurfMetrics {
31
36
  * @example 6886
32
37
  */
33
38
  linesSuggested?: number;
34
- /**
35
- * Total active days across all time
36
- * @format int32
37
- * @example 45
38
- */
39
- totalActiveDays?: number;
40
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.25.17",
3
+ "version": "0.25.19",
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",