@harnessio/react-sei-panorama-service-client 0.25.15 → 0.25.16

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.
@@ -1,21 +1,21 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiprVelocitySummaryResponseDto } from '../schemas/AiprVelocitySummaryResponseDto';
3
3
  import type { AiprVelocitySummaryRequestDto } from '../schemas/AiprVelocitySummaryRequestDto';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface AiInsightsControllerGetPrVelocitySummaryMutationQueryParams {
6
+ export interface AiInsightsControllerGetPrVelocitySummaryQueryQueryParams {
7
7
  projectIdentifier: string;
8
8
  orgIdentifier: string;
9
9
  }
10
10
  export type AiInsightsControllerGetPrVelocitySummaryRequestBody = AiprVelocitySummaryRequestDto;
11
11
  export type AiInsightsControllerGetPrVelocitySummaryOkResponse = ResponseWithPagination<AiprVelocitySummaryResponseDto>;
12
12
  export type AiInsightsControllerGetPrVelocitySummaryErrorResponse = unknown;
13
- export interface AiInsightsControllerGetPrVelocitySummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetPrVelocitySummaryMutationQueryParams, AiInsightsControllerGetPrVelocitySummaryRequestBody>, 'url'> {
14
- queryParams: AiInsightsControllerGetPrVelocitySummaryMutationQueryParams;
13
+ export interface AiInsightsControllerGetPrVelocitySummaryProps extends Omit<FetcherOptions<AiInsightsControllerGetPrVelocitySummaryQueryQueryParams, AiInsightsControllerGetPrVelocitySummaryRequestBody>, 'url'> {
14
+ queryParams: AiInsightsControllerGetPrVelocitySummaryQueryQueryParams;
15
15
  body: AiInsightsControllerGetPrVelocitySummaryRequestBody;
16
16
  }
17
17
  export declare function aiInsightsControllerGetPrVelocitySummary(props: AiInsightsControllerGetPrVelocitySummaryProps): Promise<AiInsightsControllerGetPrVelocitySummaryOkResponse>;
18
18
  /**
19
19
  * Get AI PR Velocity correlation analytics
20
20
  */
21
- export declare function useAiInsightsControllerGetPrVelocitySummaryMutation(options?: Omit<UseMutationOptions<AiInsightsControllerGetPrVelocitySummaryOkResponse, AiInsightsControllerGetPrVelocitySummaryErrorResponse, AiInsightsControllerGetPrVelocitySummaryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AiInsightsControllerGetPrVelocitySummaryOkResponse, unknown, AiInsightsControllerGetPrVelocitySummaryProps, unknown>;
21
+ export declare function useAiInsightsControllerGetPrVelocitySummaryQuery(props: AiInsightsControllerGetPrVelocitySummaryProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetPrVelocitySummaryOkResponse, AiInsightsControllerGetPrVelocitySummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetPrVelocitySummaryOkResponse, unknown>;
@@ -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 aiInsightsControllerGetPrVelocitySummary(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/coding-assistant/pr-velocity/summary`, method: 'POST' }, props));
@@ -9,6 +9,6 @@ export function aiInsightsControllerGetPrVelocitySummary(props) {
9
9
  /**
10
10
  * Get AI PR Velocity correlation analytics
11
11
  */
12
- export function useAiInsightsControllerGetPrVelocitySummaryMutation(options) {
13
- return useMutation((mutateProps) => aiInsightsControllerGetPrVelocitySummary(mutateProps), options);
12
+ export function useAiInsightsControllerGetPrVelocitySummaryQuery(props, options) {
13
+ return useQuery(['AIInsightsControllerGetPRVelocitySummary', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetPrVelocitySummary(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -7,8 +7,8 @@ export type { AiInsightsControllerGetAdoptionSummaryErrorResponse, AiInsightsCon
7
7
  export { aiInsightsControllerGetAdoptionSummary, useAiInsightsControllerGetAdoptionSummaryQuery, } from './hooks/useAiInsightsControllerGetAdoptionSummaryQuery';
8
8
  export type { AiInsightsControllerGetFeatureMetricsErrorResponse, AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsProps, AiInsightsControllerGetFeatureMetricsQueryQueryParams, AiInsightsControllerGetFeatureMetricsRequestBody, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
9
9
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
10
- export type { AiInsightsControllerGetPrVelocitySummaryErrorResponse, AiInsightsControllerGetPrVelocitySummaryMutationQueryParams, AiInsightsControllerGetPrVelocitySummaryOkResponse, AiInsightsControllerGetPrVelocitySummaryProps, AiInsightsControllerGetPrVelocitySummaryRequestBody, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryMutation';
11
- export { aiInsightsControllerGetPrVelocitySummary, useAiInsightsControllerGetPrVelocitySummaryMutation, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryMutation';
10
+ export type { AiInsightsControllerGetPrVelocitySummaryErrorResponse, AiInsightsControllerGetPrVelocitySummaryOkResponse, AiInsightsControllerGetPrVelocitySummaryProps, AiInsightsControllerGetPrVelocitySummaryQueryQueryParams, AiInsightsControllerGetPrVelocitySummaryRequestBody, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryQuery';
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
14
  export type { AiInsightsControllerGetTeamBreakdownErrorResponse, AiInsightsControllerGetTeamBreakdownOkResponse, AiInsightsControllerGetTeamBreakdownProps, AiInsightsControllerGetTeamBreakdownQueryQueryParams, AiInsightsControllerGetTeamBreakdownRequestBody, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
@@ -2,7 +2,7 @@ export { aiInsightsControllerGetAdoptionBreakdown, useAiInsightsControllerGetAdo
2
2
  export { aiInsightsControllerGetAdoptionMetrics, useAiInsightsControllerGetAdoptionMetricsQuery, } from './hooks/useAiInsightsControllerGetAdoptionMetricsQuery';
3
3
  export { aiInsightsControllerGetAdoptionSummary, useAiInsightsControllerGetAdoptionSummaryQuery, } from './hooks/useAiInsightsControllerGetAdoptionSummaryQuery';
4
4
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
5
- export { aiInsightsControllerGetPrVelocitySummary, useAiInsightsControllerGetPrVelocitySummaryMutation, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryMutation';
5
+ export { aiInsightsControllerGetPrVelocitySummary, useAiInsightsControllerGetPrVelocitySummaryQuery, } from './hooks/useAiInsightsControllerGetPrVelocitySummaryQuery';
6
6
  export { aiInsightsControllerGetRawMetrics, useAiInsightsControllerGetRawMetricsQuery, } from './hooks/useAiInsightsControllerGetRawMetricsQuery';
7
7
  export { aiInsightsControllerGetTeamBreakdown, useAiInsightsControllerGetTeamBreakdownQuery, } from './hooks/useAiInsightsControllerGetTeamBreakdownQuery';
8
8
  export { aiInsightsControllerGetToolUsersSummary, useAiInsightsControllerGetToolUsersSummaryQuery, } from './hooks/useAiInsightsControllerGetToolUsersSummaryQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.25.15",
3
+ "version": "0.25.16",
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",