@harnessio/react-sei-panorama-service-client 0.24.4 → 0.24.5

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 (20) hide show
  1. package/dist/fetcher/index.js +1 -1
  2. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.d.ts +3 -3
  3. package/dist/sei-panorama-service/src/services/hooks/useAiInsightsControllerGetTeamAdoptionQuery.js +1 -1
  4. package/dist/sei-panorama-service/src/services/hooks/useAiSummaryControllerGenerateSummaryMutation.d.ts +23 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useAiSummaryControllerGenerateSummaryMutation.js +14 -0
  6. package/dist/sei-panorama-service/src/services/index.d.ts +6 -0
  7. package/dist/sei-panorama-service/src/services/index.js +1 -0
  8. package/dist/sei-panorama-service/src/services/schemas/AiFeatureDataResponseDto.d.ts +1 -1
  9. package/dist/sei-panorama-service/src/services/schemas/AiInsightsRequestDto.d.ts +2 -1
  10. package/dist/sei-panorama-service/src/services/schemas/AiSummaryRequestDto.d.ts +16 -0
  11. package/dist/sei-panorama-service/src/services/schemas/AiSummaryRequestDto.js +4 -0
  12. package/dist/sei-panorama-service/src/services/schemas/AiSummaryResponseDto.d.ts +4 -0
  13. package/dist/sei-panorama-service/src/services/schemas/AiSummaryResponseDto.js +1 -0
  14. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.d.ts +34 -0
  15. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionRequestDto.js +1 -0
  16. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionResponseDto.d.ts +15 -0
  17. package/dist/sei-panorama-service/src/services/schemas/AiTeamAdoptionUserDto.d.ts +1 -0
  18. package/dist/sei-panorama-service/src/services/schemas/SummarySection.d.ts +4 -0
  19. package/dist/sei-panorama-service/src/services/schemas/SummarySection.js +4 -0
  20. package/package.json +1 -1
@@ -30,7 +30,7 @@ export function fetcher(options) {
30
30
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
31
31
  finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
32
32
  }
33
- let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
33
+ let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
34
34
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
35
35
  request = fetcherCallbacks.requestInterceptor(request.clone());
36
36
  }
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiTeamAdoptionResponseDto } from '../schemas/AiTeamAdoptionResponseDto';
3
- import type { AiInsightsRequestDto } from '../schemas/AiInsightsRequestDto';
3
+ import type { AiTeamAdoptionRequestDto } from '../schemas/AiTeamAdoptionRequestDto';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface AiInsightsControllerGetTeamAdoptionQueryQueryParams {
@@ -8,7 +8,7 @@ export interface AiInsightsControllerGetTeamAdoptionQueryQueryParams {
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
10
10
  }
11
- export type AiInsightsControllerGetTeamAdoptionRequestBody = AiInsightsRequestDto;
11
+ export type AiInsightsControllerGetTeamAdoptionRequestBody = AiTeamAdoptionRequestDto;
12
12
  export type AiInsightsControllerGetTeamAdoptionOkResponse = ResponseWithPagination<AiTeamAdoptionResponseDto>;
13
13
  export type AiInsightsControllerGetTeamAdoptionErrorResponse = string;
14
14
  export interface AiInsightsControllerGetTeamAdoptionProps extends Omit<FetcherOptions<AiInsightsControllerGetTeamAdoptionQueryQueryParams, AiInsightsControllerGetTeamAdoptionRequestBody>, 'url'> {
@@ -17,6 +17,6 @@ export interface AiInsightsControllerGetTeamAdoptionProps extends Omit<FetcherOp
17
17
  }
18
18
  export declare function aiInsightsControllerGetTeamAdoption(props: AiInsightsControllerGetTeamAdoptionProps): Promise<AiInsightsControllerGetTeamAdoptionOkResponse>;
19
19
  /**
20
- * Retrieves team member adoption data with user details in table format.
20
+ * Retrieves team member adoption data with user details in table format. Supports pagination and sorting.
21
21
  */
22
22
  export declare function useAiInsightsControllerGetTeamAdoptionQuery(props: AiInsightsControllerGetTeamAdoptionProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetTeamAdoptionOkResponse, AiInsightsControllerGetTeamAdoptionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetTeamAdoptionOkResponse, string>;
@@ -7,7 +7,7 @@ export function aiInsightsControllerGetTeamAdoption(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/ai/team_adoption`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Retrieves team member adoption data with user details in table format.
10
+ * Retrieves team member adoption data with user details in table format. Supports pagination and sorting.
11
11
  */
12
12
  export function useAiInsightsControllerGetTeamAdoptionQuery(props, options) {
13
13
  return useQuery(['AIInsightsControllerGetTeamAdoption', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetTeamAdoption(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AiSummaryResponseDto } from '../schemas/AiSummaryResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
4
+ import type { AiSummaryRequestDto } from '../schemas/AiSummaryRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface AiSummaryControllerGenerateSummaryMutationQueryParams {
8
+ account: string;
9
+ projectIdentifier: string;
10
+ orgIdentifier: string;
11
+ }
12
+ export type AiSummaryControllerGenerateSummaryRequestBody = AiSummaryRequestDto;
13
+ export type AiSummaryControllerGenerateSummaryOkResponse = ResponseWithPagination<AiSummaryResponseDto>;
14
+ export type AiSummaryControllerGenerateSummaryErrorResponse = ErrorResponse;
15
+ export interface AiSummaryControllerGenerateSummaryProps extends Omit<FetcherOptions<AiSummaryControllerGenerateSummaryMutationQueryParams, AiSummaryControllerGenerateSummaryRequestBody>, 'url'> {
16
+ queryParams: AiSummaryControllerGenerateSummaryMutationQueryParams;
17
+ body: AiSummaryControllerGenerateSummaryRequestBody;
18
+ }
19
+ export declare function aiSummaryControllerGenerateSummary(props: AiSummaryControllerGenerateSummaryProps): Promise<AiSummaryControllerGenerateSummaryOkResponse>;
20
+ /**
21
+ * Generate an AI-powered summary with insights, root cause analysis, and actionable recommendations based on team metrics for the specified category (Efficiency, Productivity, Business Alignment, or Sprint Insights).
22
+ */
23
+ export declare function useAiSummaryControllerGenerateSummaryMutation(options?: Omit<UseMutationOptions<AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AiSummaryControllerGenerateSummaryOkResponse, ErrorResponse, AiSummaryControllerGenerateSummaryProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function aiSummaryControllerGenerateSummary(props) {
7
+ return fetcher(Object.assign({ url: `/v2/insights/ai-summary`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Generate an AI-powered summary with insights, root cause analysis, and actionable recommendations based on team metrics for the specified category (Efficiency, Productivity, Business Alignment, or Sprint Insights).
11
+ */
12
+ export function useAiSummaryControllerGenerateSummaryMutation(options) {
13
+ return useMutation((mutateProps) => aiSummaryControllerGenerateSummary(mutateProps), options);
14
+ }
@@ -5,6 +5,8 @@ export type { AiInsightsControllerGetTeamAdoptionErrorResponse, AiInsightsContro
5
5
  export { aiInsightsControllerGetTeamAdoption, useAiInsightsControllerGetTeamAdoptionQuery, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
6
6
  export type { AiInsightsControllerGetTopLanguagesErrorResponse, AiInsightsControllerGetTopLanguagesOkResponse, AiInsightsControllerGetTopLanguagesProps, AiInsightsControllerGetTopLanguagesQueryQueryParams, AiInsightsControllerGetTopLanguagesRequestBody, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
7
7
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
8
+ export type { AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryMutationQueryParams, AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryProps, AiSummaryControllerGenerateSummaryRequestBody, } from './hooks/useAiSummaryControllerGenerateSummaryMutation';
9
+ export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryMutation, } from './hooks/useAiSummaryControllerGenerateSummaryMutation';
8
10
  export type { AsyncExportControllerDownloadExportErrorResponse, AsyncExportControllerDownloadExportOkResponse, AsyncExportControllerDownloadExportProps, AsyncExportControllerDownloadExportQueryPathParams, AsyncExportControllerDownloadExportQueryQueryParams, } from './hooks/useAsyncExportControllerDownloadExportQuery';
9
11
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
10
12
  export type { AsyncExportControllerGetJobStatusErrorResponse, AsyncExportControllerGetJobStatusOkResponse, AsyncExportControllerGetJobStatusProps, AsyncExportControllerGetJobStatusQueryPathParams, AsyncExportControllerGetJobStatusQueryQueryParams, } from './hooks/useAsyncExportControllerGetJobStatusQuery';
@@ -348,6 +350,9 @@ export type { ActivityDataDto } from './schemas/ActivityDataDto';
348
350
  export type { AiFeatureDataPoint } from './schemas/AiFeatureDataPoint';
349
351
  export type { AiFeatureDataResponseDto } from './schemas/AiFeatureDataResponseDto';
350
352
  export type { AiInsightsRequestDto } from './schemas/AiInsightsRequestDto';
353
+ export type { AiSummaryRequestDto } from './schemas/AiSummaryRequestDto';
354
+ export type { AiSummaryResponseDto } from './schemas/AiSummaryResponseDto';
355
+ export type { AiTeamAdoptionRequestDto } from './schemas/AiTeamAdoptionRequestDto';
351
356
  export type { AiTeamAdoptionResponseDto } from './schemas/AiTeamAdoptionResponseDto';
352
357
  export type { AiTeamAdoptionUserDto } from './schemas/AiTeamAdoptionUserDto';
353
358
  export type { AiTopLanguagesResponseDto } from './schemas/AiTopLanguagesResponseDto';
@@ -596,6 +601,7 @@ export type { SprintTicketsResponseDto } from './schemas/SprintTicketsResponseDt
596
601
  export type { SprintWorkBreakdownDto } from './schemas/SprintWorkBreakdownDto';
597
602
  export type { Stage } from './schemas/Stage';
598
603
  export type { SummaryCard } from './schemas/SummaryCard';
604
+ export type { SummarySection } from './schemas/SummarySection';
599
605
  export type { SummaryValue } from './schemas/SummaryValue';
600
606
  export type { SummaryValueChange } from './schemas/SummaryValueChange';
601
607
  export type { TeamAccessDto } from './schemas/TeamAccessDto';
@@ -1,6 +1,7 @@
1
1
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
2
2
  export { aiInsightsControllerGetTeamAdoption, useAiInsightsControllerGetTeamAdoptionQuery, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
3
3
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
4
+ export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryMutation, } from './hooks/useAiSummaryControllerGenerateSummaryMutation';
4
5
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
5
6
  export { asyncExportControllerGetJobStatus, useAsyncExportControllerGetJobStatusQuery, } from './hooks/useAsyncExportControllerGetJobStatusQuery';
6
7
  export { asyncExportControllerInitiateExport, useAsyncExportControllerInitiateExportMutation, } from './hooks/useAsyncExportControllerInitiateExportMutation';
@@ -9,7 +9,7 @@ export interface AiFeatureDataResponseDto {
9
9
  * @format date-time
10
10
  */
11
11
  endDate?: string;
12
- metricType?: 'acceptanceRate' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'dailyActiveUsers' | 'netLinesAddedPerContributor' | 'tokensUsedPer1kLinesOfCodeEdits';
12
+ metricType?: 'acceptanceRate' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'dailyActiveUsers' | 'linesAccepted' | 'linesSuggested' | 'netLinesAddedPerContributor' | 'tokensUsedPer1kLinesOfCodeEdits';
13
13
  previousPeriodData?: AiFeatureDataPoint[];
14
14
  /**
15
15
  * @format double
@@ -4,7 +4,8 @@ export interface AiInsightsRequestDto {
4
4
  */
5
5
  endDate?: string;
6
6
  granularity?: string;
7
- metricType?: 'acceptanceRate' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'dailyActiveUsers' | 'netLinesAddedPerContributor' | 'tokensUsedPer1kLinesOfCodeEdits';
7
+ integrationType?: 'cursor' | 'windsurf';
8
+ metricType?: 'acceptanceRate' | 'addedVsDeletedLinesRatio' | 'aiShareOfNewCode' | 'dailyActiveUsers' | 'linesAccepted' | 'linesSuggested' | 'netLinesAddedPerContributor' | 'tokensUsedPer1kLinesOfCodeEdits';
8
9
  /**
9
10
  * @format date-time
10
11
  */
@@ -0,0 +1,16 @@
1
+ export interface AiSummaryRequestDto {
2
+ category: 'BA' | 'EFFICIENCY' | 'PRODUCTIVITY' | 'SPRINT_INSIGHTS';
3
+ /**
4
+ * @format date-time
5
+ */
6
+ endDate: string;
7
+ granularity?: 'DAILY' | 'MONTHLY' | 'QUARTERLY' | 'WEEKLY';
8
+ /**
9
+ * @format date-time
10
+ */
11
+ startDate: string;
12
+ /**
13
+ * @format int32
14
+ */
15
+ teamRefId: number;
16
+ }
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ import type { SummarySection } from '../schemas/SummarySection';
2
+ export interface AiSummaryResponseDto {
3
+ sections?: SummarySection[];
4
+ }
@@ -0,0 +1,34 @@
1
+ import type { PaginationRequest } from '../schemas/PaginationRequest';
2
+ export interface AiTeamAdoptionRequestDto {
3
+ /**
4
+ * End date for the metrics
5
+ * @format date-time
6
+ */
7
+ endDate: string;
8
+ /**
9
+ * Integration type (cursor/windsurf)
10
+ */
11
+ integrationType?: 'cursor' | 'windsurf';
12
+ /**
13
+ * Pagination parameters
14
+ */
15
+ pagination?: PaginationRequest;
16
+ /**
17
+ * Column to sort by
18
+ */
19
+ sortBy?: 'email' | 'line_accept_percent' | 'lines_accepted' | 'lines_suggested' | 'primary_language' | 'rank' | 'total_accepts' | 'username';
20
+ /**
21
+ * Sort order (ASC/DESC)
22
+ */
23
+ sortByCriteria?: 'ASC' | 'DESC';
24
+ /**
25
+ * Start date for the metrics
26
+ * @format date-time
27
+ */
28
+ startDate: string;
29
+ /**
30
+ * Team reference ID
31
+ * @format int32
32
+ */
33
+ teamRefId: number;
34
+ }
@@ -1,9 +1,20 @@
1
1
  import type { AiTeamAdoptionUserDto } from '../schemas/AiTeamAdoptionUserDto';
2
2
  export interface AiTeamAdoptionResponseDto {
3
+ /**
4
+ * @format int32
5
+ */
6
+ currentPage?: number;
3
7
  /**
4
8
  * @format date-time
5
9
  */
6
10
  endDate?: string;
11
+ hasMore?: boolean;
12
+ /**
13
+ * @format int32
14
+ */
15
+ pageSize?: number;
16
+ sortBy?: 'email' | 'line_accept_percent' | 'lines_accepted' | 'lines_suggested' | 'primary_language' | 'rank' | 'total_accepts' | 'username';
17
+ sortByCriteria?: 'ASC' | 'DESC';
7
18
  /**
8
19
  * @format date-time
9
20
  */
@@ -12,6 +23,10 @@ export interface AiTeamAdoptionResponseDto {
12
23
  * @format double
13
24
  */
14
25
  teamAdoptionPercentage?: number;
26
+ /**
27
+ * @format int32
28
+ */
29
+ totalPages?: number;
15
30
  /**
16
31
  * @format int32
17
32
  */
@@ -26,4 +26,5 @@ export interface AiTeamAdoptionUserDto {
26
26
  totalAccepts?: number;
27
27
  trend?: string;
28
28
  userEmail?: string;
29
+ username?: string;
29
30
  }
@@ -0,0 +1,4 @@
1
+ export interface SummarySection {
2
+ name?: 'ALIGNMENT' | 'BOTTLENECKS' | 'CATEGORY_BALANCE' | 'CHANGE_FAILURE_RATE' | 'CODE_QUALITY' | 'CORRELATION' | 'CRITICAL_INTERVENTIONS' | 'CROSS_TEAM_INSIGHTS' | 'CYCLE_TIME' | 'DELIVERY' | 'DELIVERY_CONSISTENCY' | 'DEPLOYMENT_FREQUENCY' | 'DEVELOPER_EXPERIENCE' | 'HEALTHY_TEAMS' | 'LEAD_TIME' | 'METRIC_CORRELATIONS' | 'ORGANIZATION_HEALTH' | 'OVERVIEW' | 'PERFORMANCE_DISTRIBUTION' | 'PERFORMANCE_RANKINGS' | 'PREDICTABILITY' | 'PREDICTABILITY_DRIVERS' | 'RECOMMENDATIONS' | 'RECOMMENDED_ACTIONS' | 'RECOVERY_TIME' | 'SCOPE_MANAGEMENT' | 'STRATEGIC_RECOMMENDATIONS' | 'TEAMS_AT_RISK' | 'TEAMS_NEEDING_SUPPORT' | 'THROUGHPUT' | 'VELOCITY' | 'VELOCITY_LEADERS' | 'VELOCITY_PATTERNS' | 'WORK_DISTRIBUTION';
3
+ summary?: string;
4
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.24.4",
3
+ "version": "0.24.5",
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",