@harnessio/react-sei-panorama-service-client 0.25.0 → 0.25.1

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,9 +1,9 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiDailyActiveUsersDrilldownResponseDto } from '../schemas/AiDailyActiveUsersDrilldownResponseDto';
3
3
  import type { AiDailyActiveUsersDrilldownRequestDto } from '../schemas/AiDailyActiveUsersDrilldownRequestDto';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface AiInsightsControllerGetDailyActiveUsersDrilldownMutationQueryParams {
6
+ export interface AiInsightsControllerGetDailyActiveUsersDrilldownQueryQueryParams {
7
7
  account: string;
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
@@ -11,12 +11,12 @@ export interface AiInsightsControllerGetDailyActiveUsersDrilldownMutationQueryPa
11
11
  export type AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody = AiDailyActiveUsersDrilldownRequestDto;
12
12
  export type AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse = ResponseWithPagination<AiDailyActiveUsersDrilldownResponseDto>;
13
13
  export type AiInsightsControllerGetDailyActiveUsersDrilldownErrorResponse = string;
14
- export interface AiInsightsControllerGetDailyActiveUsersDrilldownProps extends Omit<FetcherOptions<AiInsightsControllerGetDailyActiveUsersDrilldownMutationQueryParams, AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody>, 'url'> {
15
- queryParams: AiInsightsControllerGetDailyActiveUsersDrilldownMutationQueryParams;
14
+ export interface AiInsightsControllerGetDailyActiveUsersDrilldownProps extends Omit<FetcherOptions<AiInsightsControllerGetDailyActiveUsersDrilldownQueryQueryParams, AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody>, 'url'> {
15
+ queryParams: AiInsightsControllerGetDailyActiveUsersDrilldownQueryQueryParams;
16
16
  body: AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody;
17
17
  }
18
18
  export declare function aiInsightsControllerGetDailyActiveUsersDrilldown(props: AiInsightsControllerGetDailyActiveUsersDrilldownProps): Promise<AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse>;
19
19
  /**
20
20
  * Retrieves detailed user-level data for daily active users with pagination and sorting support. Supports both Windsurf and Cursor integrations through tool-specific request options.
21
21
  */
22
- export declare function useAiInsightsControllerGetDailyActiveUsersDrilldownMutation(options?: Omit<UseMutationOptions<AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, AiInsightsControllerGetDailyActiveUsersDrilldownErrorResponse, AiInsightsControllerGetDailyActiveUsersDrilldownProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, string, AiInsightsControllerGetDailyActiveUsersDrilldownProps, unknown>;
22
+ export declare function useAiInsightsControllerGetDailyActiveUsersDrilldownQuery(props: AiInsightsControllerGetDailyActiveUsersDrilldownProps, options?: Omit<UseQueryOptions<AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, AiInsightsControllerGetDailyActiveUsersDrilldownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, string>;
@@ -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 aiInsightsControllerGetDailyActiveUsersDrilldown(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/ai/daily_active_users/drilldown`, method: 'POST' }, props));
@@ -9,6 +9,6 @@ export function aiInsightsControllerGetDailyActiveUsersDrilldown(props) {
9
9
  /**
10
10
  * Retrieves detailed user-level data for daily active users with pagination and sorting support. Supports both Windsurf and Cursor integrations through tool-specific request options.
11
11
  */
12
- export function useAiInsightsControllerGetDailyActiveUsersDrilldownMutation(options) {
13
- return useMutation((mutateProps) => aiInsightsControllerGetDailyActiveUsersDrilldown(mutateProps), options);
12
+ export function useAiInsightsControllerGetDailyActiveUsersDrilldownQuery(props, options) {
13
+ return useQuery(['AIInsightsControllerGetDailyActiveUsersDrilldown', props.queryParams, props.body], ({ signal }) => aiInsightsControllerGetDailyActiveUsersDrilldown(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -1,10 +1,10 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AiSummaryResponseDto } from '../schemas/AiSummaryResponseDto';
3
3
  import type { ErrorResponse } from '../schemas/ErrorResponse';
4
4
  import type { AiSummaryRequestDto } from '../schemas/AiSummaryRequestDto';
5
5
  import type { ResponseWithPagination } from '../helpers';
6
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
7
- export interface AiSummaryControllerGenerateSummaryMutationQueryParams {
7
+ export interface AiSummaryControllerGenerateSummaryQueryQueryParams {
8
8
  account: string;
9
9
  projectIdentifier: string;
10
10
  orgIdentifier: string;
@@ -12,12 +12,12 @@ export interface AiSummaryControllerGenerateSummaryMutationQueryParams {
12
12
  export type AiSummaryControllerGenerateSummaryRequestBody = AiSummaryRequestDto;
13
13
  export type AiSummaryControllerGenerateSummaryOkResponse = ResponseWithPagination<AiSummaryResponseDto>;
14
14
  export type AiSummaryControllerGenerateSummaryErrorResponse = ErrorResponse;
15
- export interface AiSummaryControllerGenerateSummaryProps extends Omit<FetcherOptions<AiSummaryControllerGenerateSummaryMutationQueryParams, AiSummaryControllerGenerateSummaryRequestBody>, 'url'> {
16
- queryParams: AiSummaryControllerGenerateSummaryMutationQueryParams;
15
+ export interface AiSummaryControllerGenerateSummaryProps extends Omit<FetcherOptions<AiSummaryControllerGenerateSummaryQueryQueryParams, AiSummaryControllerGenerateSummaryRequestBody>, 'url'> {
16
+ queryParams: AiSummaryControllerGenerateSummaryQueryQueryParams;
17
17
  body: AiSummaryControllerGenerateSummaryRequestBody;
18
18
  }
19
19
  export declare function aiSummaryControllerGenerateSummary(props: AiSummaryControllerGenerateSummaryProps): Promise<AiSummaryControllerGenerateSummaryOkResponse>;
20
20
  /**
21
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
22
  */
23
- export declare function useAiSummaryControllerGenerateSummaryMutation(options?: Omit<UseMutationOptions<AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AiSummaryControllerGenerateSummaryOkResponse, ErrorResponse, AiSummaryControllerGenerateSummaryProps, unknown>;
23
+ export declare function useAiSummaryControllerGenerateSummaryQuery(props: AiSummaryControllerGenerateSummaryProps, options?: Omit<UseQueryOptions<AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<AiSummaryControllerGenerateSummaryOkResponse, ErrorResponse>;
@@ -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 aiSummaryControllerGenerateSummary(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/ai-summary`, method: 'POST' }, props));
@@ -9,6 +9,6 @@ export function aiSummaryControllerGenerateSummary(props) {
9
9
  /**
10
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
11
  */
12
- export function useAiSummaryControllerGenerateSummaryMutation(options) {
13
- return useMutation((mutateProps) => aiSummaryControllerGenerateSummary(mutateProps), options);
12
+ export function useAiSummaryControllerGenerateSummaryQuery(props, options) {
13
+ return useQuery(['AISummaryControllerGenerateSummary', props.queryParams, props.body], ({ signal }) => aiSummaryControllerGenerateSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -1,14 +1,14 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
- export type { AiInsightsControllerGetDailyActiveUsersDrilldownErrorResponse, AiInsightsControllerGetDailyActiveUsersDrilldownMutationQueryParams, AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, AiInsightsControllerGetDailyActiveUsersDrilldownProps, AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownMutation';
3
- export { aiInsightsControllerGetDailyActiveUsersDrilldown, useAiInsightsControllerGetDailyActiveUsersDrilldownMutation, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownMutation';
2
+ export type { AiInsightsControllerGetDailyActiveUsersDrilldownErrorResponse, AiInsightsControllerGetDailyActiveUsersDrilldownOkResponse, AiInsightsControllerGetDailyActiveUsersDrilldownProps, AiInsightsControllerGetDailyActiveUsersDrilldownQueryQueryParams, AiInsightsControllerGetDailyActiveUsersDrilldownRequestBody, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery';
3
+ export { aiInsightsControllerGetDailyActiveUsersDrilldown, useAiInsightsControllerGetDailyActiveUsersDrilldownQuery, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery';
4
4
  export type { AiInsightsControllerGetFeatureMetricsErrorResponse, AiInsightsControllerGetFeatureMetricsOkResponse, AiInsightsControllerGetFeatureMetricsProps, AiInsightsControllerGetFeatureMetricsQueryQueryParams, AiInsightsControllerGetFeatureMetricsRequestBody, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
5
5
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
6
6
  export type { AiInsightsControllerGetTeamAdoptionErrorResponse, AiInsightsControllerGetTeamAdoptionOkResponse, AiInsightsControllerGetTeamAdoptionProps, AiInsightsControllerGetTeamAdoptionQueryQueryParams, AiInsightsControllerGetTeamAdoptionRequestBody, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
7
7
  export { aiInsightsControllerGetTeamAdoption, useAiInsightsControllerGetTeamAdoptionQuery, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
8
8
  export type { AiInsightsControllerGetTopLanguagesErrorResponse, AiInsightsControllerGetTopLanguagesOkResponse, AiInsightsControllerGetTopLanguagesProps, AiInsightsControllerGetTopLanguagesQueryQueryParams, AiInsightsControllerGetTopLanguagesRequestBody, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
9
9
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
10
- export type { AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryMutationQueryParams, AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryProps, AiSummaryControllerGenerateSummaryRequestBody, } from './hooks/useAiSummaryControllerGenerateSummaryMutation';
11
- export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryMutation, } from './hooks/useAiSummaryControllerGenerateSummaryMutation';
10
+ export type { AiSummaryControllerGenerateSummaryErrorResponse, AiSummaryControllerGenerateSummaryOkResponse, AiSummaryControllerGenerateSummaryProps, AiSummaryControllerGenerateSummaryQueryQueryParams, AiSummaryControllerGenerateSummaryRequestBody, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
11
+ export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryQuery, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
12
12
  export type { AsyncExportControllerDownloadExportErrorResponse, AsyncExportControllerDownloadExportOkResponse, AsyncExportControllerDownloadExportProps, AsyncExportControllerDownloadExportQueryPathParams, AsyncExportControllerDownloadExportQueryQueryParams, } from './hooks/useAsyncExportControllerDownloadExportQuery';
13
13
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
14
14
  export type { AsyncExportControllerGetJobStatusErrorResponse, AsyncExportControllerGetJobStatusOkResponse, AsyncExportControllerGetJobStatusProps, AsyncExportControllerGetJobStatusQueryPathParams, AsyncExportControllerGetJobStatusQueryQueryParams, } from './hooks/useAsyncExportControllerGetJobStatusQuery';
@@ -1,8 +1,8 @@
1
- export { aiInsightsControllerGetDailyActiveUsersDrilldown, useAiInsightsControllerGetDailyActiveUsersDrilldownMutation, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownMutation';
1
+ export { aiInsightsControllerGetDailyActiveUsersDrilldown, useAiInsightsControllerGetDailyActiveUsersDrilldownQuery, } from './hooks/useAiInsightsControllerGetDailyActiveUsersDrilldownQuery';
2
2
  export { aiInsightsControllerGetFeatureMetrics, useAiInsightsControllerGetFeatureMetricsQuery, } from './hooks/useAiInsightsControllerGetFeatureMetricsQuery';
3
3
  export { aiInsightsControllerGetTeamAdoption, useAiInsightsControllerGetTeamAdoptionQuery, } from './hooks/useAiInsightsControllerGetTeamAdoptionQuery';
4
4
  export { aiInsightsControllerGetTopLanguages, useAiInsightsControllerGetTopLanguagesQuery, } from './hooks/useAiInsightsControllerGetTopLanguagesQuery';
5
- export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryMutation, } from './hooks/useAiSummaryControllerGenerateSummaryMutation';
5
+ export { aiSummaryControllerGenerateSummary, useAiSummaryControllerGenerateSummaryQuery, } from './hooks/useAiSummaryControllerGenerateSummaryQuery';
6
6
  export { asyncExportControllerDownloadExport, useAsyncExportControllerDownloadExportQuery, } from './hooks/useAsyncExportControllerDownloadExportQuery';
7
7
  export { asyncExportControllerGetJobStatus, useAsyncExportControllerGetJobStatusQuery, } from './hooks/useAsyncExportControllerGetJobStatusQuery';
8
8
  export { asyncExportControllerInitiateExport, useAsyncExportControllerInitiateExportMutation, } from './hooks/useAsyncExportControllerInitiateExportMutation';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
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",