@harnessio/react-sei-panorama-service-client 0.29.0 → 0.30.0

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/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetProductivityBreakdownQuery.d.ts +36 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetProductivityBreakdownQuery.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetProductivitySummaryQuery.d.ts +36 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useAiEngineeringControllerGetProductivitySummaryQuery.js +14 -0
  5. package/dist/sei-panorama-service/src/services/index.d.ts +9 -0
  6. package/dist/sei-panorama-service/src/services/index.js +2 -0
  7. package/dist/sei-panorama-service/src/services/schemas/AiEngineeringImpactBreakdownData.d.ts +30 -0
  8. package/dist/sei-panorama-service/src/services/schemas/AiEngineeringImpactBreakdownData.js +1 -0
  9. package/dist/sei-panorama-service/src/services/schemas/AiEngineeringImpactBreakdownItem.d.ts +25 -0
  10. package/dist/sei-panorama-service/src/services/schemas/AiEngineeringImpactBreakdownItem.js +1 -0
  11. package/dist/sei-panorama-service/src/services/schemas/AiEngineeringImpactSummaryData.d.ts +35 -0
  12. package/dist/sei-panorama-service/src/services/schemas/AiEngineeringImpactSummaryData.js +1 -0
  13. package/dist/sei-panorama-service/src/services/schemas/ApiResponseAiEngineeringImpactBreakdownData.d.ts +23 -0
  14. package/dist/sei-panorama-service/src/services/schemas/ApiResponseAiEngineeringImpactBreakdownData.js +1 -0
  15. package/dist/sei-panorama-service/src/services/schemas/ApiResponseAiEngineeringImpactSummaryData.d.ts +23 -0
  16. package/dist/sei-panorama-service/src/services/schemas/ApiResponseAiEngineeringImpactSummaryData.js +1 -0
  17. package/dist/sei-panorama-service/src/services/schemas/BreakdownItem.d.ts +6 -0
  18. package/dist/sei-panorama-service/src/services/schemas/FilterExpression.d.ts +1 -0
  19. package/dist/sei-panorama-service/src/services/schemas/PrSize.d.ts +1 -1
  20. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiResponseAiEngineeringImpactBreakdownData } from '../schemas/ApiResponseAiEngineeringImpactBreakdownData';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface AiEngineeringControllerGetProductivityBreakdownQueryPathParams {
6
+ metric: string;
7
+ }
8
+ export interface AiEngineeringControllerGetProductivityBreakdownQueryQueryParams {
9
+ account: string;
10
+ schema: string;
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ routingId?: string;
14
+ /**
15
+ * @format int32
16
+ */
17
+ orgTreeId?: number;
18
+ teamRefId?: string;
19
+ start_date?: string;
20
+ end_date?: string;
21
+ granularity?: string;
22
+ assistant?: string;
23
+ language?: string;
24
+ role?: string;
25
+ work_type?: string;
26
+ }
27
+ export type AiEngineeringControllerGetProductivityBreakdownOkResponse = ResponseWithPagination<ApiResponseAiEngineeringImpactBreakdownData>;
28
+ export type AiEngineeringControllerGetProductivityBreakdownErrorResponse = unknown;
29
+ export interface AiEngineeringControllerGetProductivityBreakdownProps extends AiEngineeringControllerGetProductivityBreakdownQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetProductivityBreakdownQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: AiEngineeringControllerGetProductivityBreakdownQueryQueryParams;
31
+ }
32
+ export declare function aiEngineeringControllerGetProductivityBreakdown(props: AiEngineeringControllerGetProductivityBreakdownProps): Promise<AiEngineeringControllerGetProductivityBreakdownOkResponse>;
33
+ /**
34
+ * Get productivity metric breakdown by AI tool attribution
35
+ */
36
+ export declare function useAiEngineeringControllerGetProductivityBreakdownQuery(props: AiEngineeringControllerGetProductivityBreakdownProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetProductivityBreakdownOkResponse, AiEngineeringControllerGetProductivityBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetProductivityBreakdownOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function aiEngineeringControllerGetProductivityBreakdown(props) {
7
+ return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/impact/productivity/${props.metric}/breakdown`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get productivity metric breakdown by AI tool attribution
11
+ */
12
+ export function useAiEngineeringControllerGetProductivityBreakdownQuery(props, options) {
13
+ return useQuery(['AiEngineeringControllerGetProductivityBreakdown', props.metric, props.queryParams], ({ signal }) => aiEngineeringControllerGetProductivityBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiResponseAiEngineeringImpactSummaryData } from '../schemas/ApiResponseAiEngineeringImpactSummaryData';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface AiEngineeringControllerGetProductivitySummaryQueryPathParams {
6
+ metric: string;
7
+ }
8
+ export interface AiEngineeringControllerGetProductivitySummaryQueryQueryParams {
9
+ account: string;
10
+ schema: string;
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ routingId?: string;
14
+ /**
15
+ * @format int32
16
+ */
17
+ orgTreeId?: number;
18
+ teamRefId?: string;
19
+ start_date?: string;
20
+ end_date?: string;
21
+ granularity?: string;
22
+ assistant?: string;
23
+ language?: string;
24
+ role?: string;
25
+ work_type?: string;
26
+ }
27
+ export type AiEngineeringControllerGetProductivitySummaryOkResponse = ResponseWithPagination<ApiResponseAiEngineeringImpactSummaryData>;
28
+ export type AiEngineeringControllerGetProductivitySummaryErrorResponse = unknown;
29
+ export interface AiEngineeringControllerGetProductivitySummaryProps extends AiEngineeringControllerGetProductivitySummaryQueryPathParams, Omit<FetcherOptions<AiEngineeringControllerGetProductivitySummaryQueryQueryParams, unknown>, 'url'> {
30
+ queryParams: AiEngineeringControllerGetProductivitySummaryQueryQueryParams;
31
+ }
32
+ export declare function aiEngineeringControllerGetProductivitySummary(props: AiEngineeringControllerGetProductivitySummaryProps): Promise<AiEngineeringControllerGetProductivitySummaryOkResponse>;
33
+ /**
34
+ * Get overall productivity metric summary (no AI tool breakdown)
35
+ */
36
+ export declare function useAiEngineeringControllerGetProductivitySummaryQuery(props: AiEngineeringControllerGetProductivitySummaryProps, options?: Omit<UseQueryOptions<AiEngineeringControllerGetProductivitySummaryOkResponse, AiEngineeringControllerGetProductivitySummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiEngineeringControllerGetProductivitySummaryOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function aiEngineeringControllerGetProductivitySummary(props) {
7
+ return fetcher(Object.assign({ url: `/v2/ai-engineering/insights/impact/productivity/${props.metric}/summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get overall productivity metric summary (no AI tool breakdown)
11
+ */
12
+ export function useAiEngineeringControllerGetProductivitySummaryQuery(props, options) {
13
+ return useQuery(['AiEngineeringControllerGetProductivitySummary', props.metric, props.queryParams], ({ signal }) => aiEngineeringControllerGetProductivitySummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -27,6 +27,10 @@ export type { AiEngineeringControllerGetModelsCatalogErrorResponse, AiEngineerin
27
27
  export { aiEngineeringControllerGetModelsCatalog, useAiEngineeringControllerGetModelsCatalogQuery, } from './hooks/useAiEngineeringControllerGetModelsCatalogQuery';
28
28
  export type { AiEngineeringControllerGetOptimizationByIdErrorResponse, AiEngineeringControllerGetOptimizationByIdOkResponse, AiEngineeringControllerGetOptimizationByIdProps, AiEngineeringControllerGetOptimizationByIdQueryPathParams, AiEngineeringControllerGetOptimizationByIdQueryQueryParams, } from './hooks/useAiEngineeringControllerGetOptimizationByIdQuery';
29
29
  export { aiEngineeringControllerGetOptimizationById, useAiEngineeringControllerGetOptimizationByIdQuery, } from './hooks/useAiEngineeringControllerGetOptimizationByIdQuery';
30
+ export type { AiEngineeringControllerGetProductivityBreakdownErrorResponse, AiEngineeringControllerGetProductivityBreakdownOkResponse, AiEngineeringControllerGetProductivityBreakdownProps, AiEngineeringControllerGetProductivityBreakdownQueryPathParams, AiEngineeringControllerGetProductivityBreakdownQueryQueryParams, } from './hooks/useAiEngineeringControllerGetProductivityBreakdownQuery';
31
+ export { aiEngineeringControllerGetProductivityBreakdown, useAiEngineeringControllerGetProductivityBreakdownQuery, } from './hooks/useAiEngineeringControllerGetProductivityBreakdownQuery';
32
+ export type { AiEngineeringControllerGetProductivitySummaryErrorResponse, AiEngineeringControllerGetProductivitySummaryOkResponse, AiEngineeringControllerGetProductivitySummaryProps, AiEngineeringControllerGetProductivitySummaryQueryPathParams, AiEngineeringControllerGetProductivitySummaryQueryQueryParams, } from './hooks/useAiEngineeringControllerGetProductivitySummaryQuery';
33
+ export { aiEngineeringControllerGetProductivitySummary, useAiEngineeringControllerGetProductivitySummaryQuery, } from './hooks/useAiEngineeringControllerGetProductivitySummaryQuery';
30
34
  export type { AiEngineeringControllerGetRolesCatalogErrorResponse, AiEngineeringControllerGetRolesCatalogOkResponse, AiEngineeringControllerGetRolesCatalogProps, AiEngineeringControllerGetRolesCatalogQueryQueryParams, } from './hooks/useAiEngineeringControllerGetRolesCatalogQuery';
31
35
  export { aiEngineeringControllerGetRolesCatalog, useAiEngineeringControllerGetRolesCatalogQuery, } from './hooks/useAiEngineeringControllerGetRolesCatalogQuery';
32
36
  export type { AiEngineeringControllerGetScorecardsErrorResponse, AiEngineeringControllerGetScorecardsOkResponse, AiEngineeringControllerGetScorecardsProps, AiEngineeringControllerGetScorecardsQueryPathParams, AiEngineeringControllerGetScorecardsQueryQueryParams, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
@@ -630,6 +634,9 @@ export type { AiAdoptionMetricsResponseDto } from './schemas/AiAdoptionMetricsRe
630
634
  export type { AiAdoptionSummaryRequestDto } from './schemas/AiAdoptionSummaryRequestDto';
631
635
  export type { AiAdoptionSummaryResponseDto } from './schemas/AiAdoptionSummaryResponseDto';
632
636
  export type { AiCombinedInsightsRequestDto } from './schemas/AiCombinedInsightsRequestDto';
637
+ export type { AiEngineeringImpactBreakdownData } from './schemas/AiEngineeringImpactBreakdownData';
638
+ export type { AiEngineeringImpactBreakdownItem } from './schemas/AiEngineeringImpactBreakdownItem';
639
+ export type { AiEngineeringImpactSummaryData } from './schemas/AiEngineeringImpactSummaryData';
633
640
  export type { AiMetrics } from './schemas/AiMetrics';
634
641
  export type { AiRawMetricsRequestDto } from './schemas/AiRawMetricsRequestDto';
635
642
  export type { AiRawMetricsResponseDto } from './schemas/AiRawMetricsResponseDto';
@@ -649,6 +656,8 @@ export type { AiprVelocitySummaryRequestDto } from './schemas/AiprVelocitySummar
649
656
  export type { AiprVelocitySummaryResponseDto } from './schemas/AiprVelocitySummaryResponseDto';
650
657
  export type { ApiError } from './schemas/ApiError';
651
658
  export type { ApiErrorResponse } from './schemas/ApiErrorResponse';
659
+ export type { ApiResponseAiEngineeringImpactBreakdownData } from './schemas/ApiResponseAiEngineeringImpactBreakdownData';
660
+ export type { ApiResponseAiEngineeringImpactSummaryData } from './schemas/ApiResponseAiEngineeringImpactSummaryData';
652
661
  export type { ApiResponseAiSummaryData } from './schemas/ApiResponseAiSummaryData';
653
662
  export type { ApiResponseCatalogTemplate } from './schemas/ApiResponseCatalogTemplate';
654
663
  export type { ApiResponseCorrelationData } from './schemas/ApiResponseCorrelationData';
@@ -12,6 +12,8 @@ export { aiEngineeringControllerGetMetrics, useAiEngineeringControllerGetMetrics
12
12
  export { aiEngineeringControllerGetMetricsSummary, useAiEngineeringControllerGetMetricsSummaryQuery, } from './hooks/useAiEngineeringControllerGetMetricsSummaryQuery';
13
13
  export { aiEngineeringControllerGetModelsCatalog, useAiEngineeringControllerGetModelsCatalogQuery, } from './hooks/useAiEngineeringControllerGetModelsCatalogQuery';
14
14
  export { aiEngineeringControllerGetOptimizationById, useAiEngineeringControllerGetOptimizationByIdQuery, } from './hooks/useAiEngineeringControllerGetOptimizationByIdQuery';
15
+ export { aiEngineeringControllerGetProductivityBreakdown, useAiEngineeringControllerGetProductivityBreakdownQuery, } from './hooks/useAiEngineeringControllerGetProductivityBreakdownQuery';
16
+ export { aiEngineeringControllerGetProductivitySummary, useAiEngineeringControllerGetProductivitySummaryQuery, } from './hooks/useAiEngineeringControllerGetProductivitySummaryQuery';
15
17
  export { aiEngineeringControllerGetRolesCatalog, useAiEngineeringControllerGetRolesCatalogQuery, } from './hooks/useAiEngineeringControllerGetRolesCatalogQuery';
16
18
  export { aiEngineeringControllerGetScorecards, useAiEngineeringControllerGetScorecardsQuery, } from './hooks/useAiEngineeringControllerGetScorecardsQuery';
17
19
  export { aiEngineeringControllerGetToolCallCategoriesCatalog, useAiEngineeringControllerGetToolCallCategoriesCatalogQuery, } from './hooks/useAiEngineeringControllerGetToolCallCategoriesCatalogQuery';
@@ -0,0 +1,30 @@
1
+ import type { AiEngineeringImpactBreakdownItem } from '../schemas/AiEngineeringImpactBreakdownItem';
2
+ import type { TimeSeriesPeriod } from '../schemas/TimeSeriesPeriod';
3
+ /**
4
+ * Response for AI Impact productivity breakdown by tool attribution
5
+ */
6
+ export interface AiEngineeringImpactBreakdownData {
7
+ /**
8
+ * Breakdown dimension
9
+ * @example "tool"
10
+ */
11
+ dimension?: string;
12
+ /**
13
+ * Granularity used for rate computation
14
+ * @example "WEEKLY"
15
+ */
16
+ granularity?: string;
17
+ /**
18
+ * Breakdown items per tool
19
+ */
20
+ items?: AiEngineeringImpactBreakdownItem[];
21
+ /**
22
+ * Metric key
23
+ * @example "pr-merged"
24
+ */
25
+ metric?: string;
26
+ /**
27
+ * Time period for the metric
28
+ */
29
+ period?: TimeSeriesPeriod;
30
+ }
@@ -0,0 +1,25 @@
1
+ import type { MetricValue } from '../schemas/MetricValue';
2
+ /**
3
+ * A single tool attribution row in the AI Impact breakdown
4
+ */
5
+ export interface AiEngineeringImpactBreakdownItem {
6
+ /**
7
+ * Supporting context for this tool (e.g., total_count, active_devs)
8
+ */
9
+ context?: {
10
+ [key: string]: {
11
+ [key: string]: any;
12
+ };
13
+ };
14
+ /**
15
+ * Tool name or 'Non-AI'
16
+ * @example "Claude Code"
17
+ */
18
+ name?: string;
19
+ /**
20
+ * Metric statistics for this tool
21
+ */
22
+ stats?: {
23
+ [key: string]: MetricValue;
24
+ };
25
+ }
@@ -0,0 +1,35 @@
1
+ import type { TimeSeriesPeriod } from '../schemas/TimeSeriesPeriod';
2
+ import type { MetricValue } from '../schemas/MetricValue';
3
+ /**
4
+ * Response for AI Impact productivity summary (overall, no tool breakdown)
5
+ */
6
+ export interface AiEngineeringImpactSummaryData {
7
+ /**
8
+ * Supporting context (e.g., total_count, active_devs, pr_count)
9
+ */
10
+ context?: {
11
+ [key: string]: {
12
+ [key: string]: any;
13
+ };
14
+ };
15
+ /**
16
+ * Granularity used for rate computation
17
+ * @example "WEEKLY"
18
+ */
19
+ granularity?: string;
20
+ /**
21
+ * Metric key
22
+ * @example "pr-merged"
23
+ */
24
+ metric?: string;
25
+ /**
26
+ * Time period for the metric
27
+ */
28
+ period?: TimeSeriesPeriod;
29
+ /**
30
+ * Metric statistics. Keys: 'total' for rate metrics, or 'median'/'mean'/'p90'/'p95' for duration metrics
31
+ */
32
+ stats?: {
33
+ [key: string]: MetricValue;
34
+ };
35
+ }
@@ -0,0 +1,23 @@
1
+ import type { AiEngineeringImpactBreakdownData } from '../schemas/AiEngineeringImpactBreakdownData';
2
+ export interface ApiResponseAiEngineeringImpactBreakdownData {
3
+ /**
4
+ * Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
5
+ */
6
+ data?: AiEngineeringImpactBreakdownData;
7
+ /**
8
+ * HATEOAS links for resource navigation (self, next, prev, etc.)
9
+ */
10
+ links?: {
11
+ [key: string]: {
12
+ [key: string]: any;
13
+ };
14
+ };
15
+ /**
16
+ * Operation metadata: date ranges, filters, granularity, pagination info, etc.
17
+ */
18
+ meta?: {
19
+ [key: string]: {
20
+ [key: string]: any;
21
+ };
22
+ };
23
+ }
@@ -0,0 +1,23 @@
1
+ import type { AiEngineeringImpactSummaryData } from '../schemas/AiEngineeringImpactSummaryData';
2
+ export interface ApiResponseAiEngineeringImpactSummaryData {
3
+ /**
4
+ * Endpoint-specific payload (template DTOs, lists, aggregates, etc.)
5
+ */
6
+ data?: AiEngineeringImpactSummaryData;
7
+ /**
8
+ * HATEOAS links for resource navigation (self, next, prev, etc.)
9
+ */
10
+ links?: {
11
+ [key: string]: {
12
+ [key: string]: any;
13
+ };
14
+ };
15
+ /**
16
+ * Operation metadata: date ranges, filters, granularity, pagination info, etc.
17
+ */
18
+ meta?: {
19
+ [key: string]: {
20
+ [key: string]: any;
21
+ };
22
+ };
23
+ }
@@ -13,6 +13,12 @@ export interface BreakdownItem {
13
13
  * @example "coding"
14
14
  */
15
15
  name?: string;
16
+ /**
17
+ * Percentage of total for this breakdown item
18
+ * @format double
19
+ * @example 35.5
20
+ */
21
+ percentage?: number;
16
22
  /**
17
23
  * Unit of measurement
18
24
  * @example "USD"
@@ -1,3 +1,4 @@
1
1
  export interface FilterExpression {
2
2
  type: string;
3
+ useDefaults?: boolean;
3
4
  }
@@ -3,5 +3,5 @@ export interface PrSize {
3
3
  * @format int64
4
4
  */
5
5
  count?: number;
6
- prSize?: 'LARGE' | 'MEDIUM' | 'SMALL';
6
+ prSize?: 'LARGE' | 'MEDIUM' | 'SMALL' | 'UNCLASSIFIED';
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
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",