@harnessio/react-sei-panorama-service-client 0.25.17 → 0.25.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sei-panorama-service/src/services/hooks/{useAiInsightsControllerGetReworkSummaryMutation.d.ts → useAiInsightsControllerGetReworkSummaryQuery.d.ts} +5 -5
- package/dist/sei-panorama-service/src/services/hooks/{useAiInsightsControllerGetReworkSummaryMutation.js → useAiInsightsControllerGetReworkSummaryQuery.js} +3 -3
- package/dist/sei-panorama-service/src/services/index.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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<
|
|
15
|
-
queryParams:
|
|
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
|
|
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 {
|
|
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
|
|
33
|
-
return
|
|
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
|
}
|
|
@@ -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,
|
|
15
|
-
export { aiInsightsControllerGetReworkSummary,
|
|
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';
|
|
@@ -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,
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.18",
|
|
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",
|