@harnessio/react-sei-panorama-service-client 0.10.18 → 0.10.19

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 { DoraMetricDrilldownFiltersResponse } from '../schemas/DoraMetricDrilldownFiltersResponse';
3
3
  import type { DoraMetricDrilldownRequest } from '../schemas/DoraMetricDrilldownRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface DoraControllerLeadTimeDrilldownFiltersMutationQueryParams {
6
+ export interface DoraControllerLeadTimeDrilldownFiltersQueryQueryParams {
7
7
  account: string;
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
@@ -11,12 +11,12 @@ export interface DoraControllerLeadTimeDrilldownFiltersMutationQueryParams {
11
11
  export type DoraControllerLeadTimeDrilldownFiltersRequestBody = DoraMetricDrilldownRequest;
12
12
  export type DoraControllerLeadTimeDrilldownFiltersOkResponse = ResponseWithPagination<DoraMetricDrilldownFiltersResponse>;
13
13
  export type DoraControllerLeadTimeDrilldownFiltersErrorResponse = string;
14
- export interface DoraControllerLeadTimeDrilldownFiltersProps extends Omit<FetcherOptions<DoraControllerLeadTimeDrilldownFiltersMutationQueryParams, DoraControllerLeadTimeDrilldownFiltersRequestBody>, 'url'> {
15
- queryParams: DoraControllerLeadTimeDrilldownFiltersMutationQueryParams;
14
+ export interface DoraControllerLeadTimeDrilldownFiltersProps extends Omit<FetcherOptions<DoraControllerLeadTimeDrilldownFiltersQueryQueryParams, DoraControllerLeadTimeDrilldownFiltersRequestBody>, 'url'> {
15
+ queryParams: DoraControllerLeadTimeDrilldownFiltersQueryQueryParams;
16
16
  body: DoraControllerLeadTimeDrilldownFiltersRequestBody;
17
17
  }
18
18
  export declare function doraControllerLeadTimeDrilldownFilters(props: DoraControllerLeadTimeDrilldownFiltersProps): Promise<DoraControllerLeadTimeDrilldownFiltersOkResponse>;
19
19
  /**
20
20
  * Get filter information for Lead Time to Change drilldown data
21
21
  */
22
- export declare function useDoraControllerLeadTimeDrilldownFiltersMutation(options?: Omit<UseMutationOptions<DoraControllerLeadTimeDrilldownFiltersOkResponse, DoraControllerLeadTimeDrilldownFiltersErrorResponse, DoraControllerLeadTimeDrilldownFiltersProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DoraControllerLeadTimeDrilldownFiltersOkResponse, string, DoraControllerLeadTimeDrilldownFiltersProps, unknown>;
22
+ export declare function useDoraControllerLeadTimeDrilldownFiltersQuery(props: DoraControllerLeadTimeDrilldownFiltersProps, options?: Omit<UseQueryOptions<DoraControllerLeadTimeDrilldownFiltersOkResponse, DoraControllerLeadTimeDrilldownFiltersErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DoraControllerLeadTimeDrilldownFiltersOkResponse, 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 doraControllerLeadTimeDrilldownFilters(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/dora/leadtime/drilldown/filters`, method: 'POST' }, props));
@@ -9,6 +9,6 @@ export function doraControllerLeadTimeDrilldownFilters(props) {
9
9
  /**
10
10
  * Get filter information for Lead Time to Change drilldown data
11
11
  */
12
- export function useDoraControllerLeadTimeDrilldownFiltersMutation(options) {
13
- return useMutation((mutateProps) => doraControllerLeadTimeDrilldownFilters(mutateProps), options);
12
+ export function useDoraControllerLeadTimeDrilldownFiltersQuery(props, options) {
13
+ return useQuery(['DoraControllerLeadTimeDrilldownFilters', props.queryParams, props.body], ({ signal }) => doraControllerLeadTimeDrilldownFilters(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -1,9 +1,9 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { DoraMetricDrilldownResponse } from '../schemas/DoraMetricDrilldownResponse';
3
3
  import type { DoraMetricDrilldownRequest } from '../schemas/DoraMetricDrilldownRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface DoraControllerLeadTimeDrilldownMutationQueryParams {
6
+ export interface DoraControllerLeadTimeDrilldownQueryQueryParams {
7
7
  account: string;
8
8
  projectIdentifier: string;
9
9
  orgIdentifier: string;
@@ -11,12 +11,12 @@ export interface DoraControllerLeadTimeDrilldownMutationQueryParams {
11
11
  export type DoraControllerLeadTimeDrilldownRequestBody = DoraMetricDrilldownRequest;
12
12
  export type DoraControllerLeadTimeDrilldownOkResponse = ResponseWithPagination<DoraMetricDrilldownResponse>;
13
13
  export type DoraControllerLeadTimeDrilldownErrorResponse = string;
14
- export interface DoraControllerLeadTimeDrilldownProps extends Omit<FetcherOptions<DoraControllerLeadTimeDrilldownMutationQueryParams, DoraControllerLeadTimeDrilldownRequestBody>, 'url'> {
15
- queryParams: DoraControllerLeadTimeDrilldownMutationQueryParams;
14
+ export interface DoraControllerLeadTimeDrilldownProps extends Omit<FetcherOptions<DoraControllerLeadTimeDrilldownQueryQueryParams, DoraControllerLeadTimeDrilldownRequestBody>, 'url'> {
15
+ queryParams: DoraControllerLeadTimeDrilldownQueryQueryParams;
16
16
  body: DoraControllerLeadTimeDrilldownRequestBody;
17
17
  }
18
18
  export declare function doraControllerLeadTimeDrilldown(props: DoraControllerLeadTimeDrilldownProps): Promise<DoraControllerLeadTimeDrilldownOkResponse>;
19
19
  /**
20
20
  * Get detailed Lead Time to Change data with pagination support and data source filtering
21
21
  */
22
- export declare function useDoraControllerLeadTimeDrilldownMutation(options?: Omit<UseMutationOptions<DoraControllerLeadTimeDrilldownOkResponse, DoraControllerLeadTimeDrilldownErrorResponse, DoraControllerLeadTimeDrilldownProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DoraControllerLeadTimeDrilldownOkResponse, string, DoraControllerLeadTimeDrilldownProps, unknown>;
22
+ export declare function useDoraControllerLeadTimeDrilldownQuery(props: DoraControllerLeadTimeDrilldownProps, options?: Omit<UseQueryOptions<DoraControllerLeadTimeDrilldownOkResponse, DoraControllerLeadTimeDrilldownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DoraControllerLeadTimeDrilldownOkResponse, 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 doraControllerLeadTimeDrilldown(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/insights/dora/leadtime/drilldown`, method: 'POST' }, props));
@@ -9,6 +9,6 @@ export function doraControllerLeadTimeDrilldown(props) {
9
9
  /**
10
10
  * Get detailed Lead Time to Change data with pagination support and data source filtering
11
11
  */
12
- export function useDoraControllerLeadTimeDrilldownMutation(options) {
13
- return useMutation((mutateProps) => doraControllerLeadTimeDrilldown(mutateProps), options);
12
+ export function useDoraControllerLeadTimeDrilldownQuery(props, options) {
13
+ return useQuery(['DoraControllerLeadTimeDrilldown', props.queryParams, props.body], ({ signal }) => doraControllerLeadTimeDrilldown(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -29,10 +29,10 @@ export type { DoraControllerDeploymentFrequencyBreakdownErrorResponse, DoraContr
29
29
  export { doraControllerDeploymentFrequencyBreakdown, useDoraControllerDeploymentFrequencyBreakdownQuery, } from './hooks/useDoraControllerDeploymentFrequencyBreakdownQuery';
30
30
  export type { DoraControllerDeploymentFrequencyErrorResponse, DoraControllerDeploymentFrequencyOkResponse, DoraControllerDeploymentFrequencyProps, DoraControllerDeploymentFrequencyQueryQueryParams, DoraControllerDeploymentFrequencyRequestBody, } from './hooks/useDoraControllerDeploymentFrequencyQuery';
31
31
  export { doraControllerDeploymentFrequency, useDoraControllerDeploymentFrequencyQuery, } from './hooks/useDoraControllerDeploymentFrequencyQuery';
32
- export type { DoraControllerLeadTimeDrilldownFiltersErrorResponse, DoraControllerLeadTimeDrilldownFiltersMutationQueryParams, DoraControllerLeadTimeDrilldownFiltersOkResponse, DoraControllerLeadTimeDrilldownFiltersProps, DoraControllerLeadTimeDrilldownFiltersRequestBody, } from './hooks/useDoraControllerLeadTimeDrilldownFiltersMutation';
33
- export { doraControllerLeadTimeDrilldownFilters, useDoraControllerLeadTimeDrilldownFiltersMutation, } from './hooks/useDoraControllerLeadTimeDrilldownFiltersMutation';
34
- export type { DoraControllerLeadTimeDrilldownErrorResponse, DoraControllerLeadTimeDrilldownMutationQueryParams, DoraControllerLeadTimeDrilldownOkResponse, DoraControllerLeadTimeDrilldownProps, DoraControllerLeadTimeDrilldownRequestBody, } from './hooks/useDoraControllerLeadTimeDrilldownMutation';
35
- export { doraControllerLeadTimeDrilldown, useDoraControllerLeadTimeDrilldownMutation, } from './hooks/useDoraControllerLeadTimeDrilldownMutation';
32
+ export type { DoraControllerLeadTimeDrilldownFiltersErrorResponse, DoraControllerLeadTimeDrilldownFiltersOkResponse, DoraControllerLeadTimeDrilldownFiltersProps, DoraControllerLeadTimeDrilldownFiltersQueryQueryParams, DoraControllerLeadTimeDrilldownFiltersRequestBody, } from './hooks/useDoraControllerLeadTimeDrilldownFiltersQuery';
33
+ export { doraControllerLeadTimeDrilldownFilters, useDoraControllerLeadTimeDrilldownFiltersQuery, } from './hooks/useDoraControllerLeadTimeDrilldownFiltersQuery';
34
+ export type { DoraControllerLeadTimeDrilldownErrorResponse, DoraControllerLeadTimeDrilldownOkResponse, DoraControllerLeadTimeDrilldownProps, DoraControllerLeadTimeDrilldownQueryQueryParams, DoraControllerLeadTimeDrilldownRequestBody, } from './hooks/useDoraControllerLeadTimeDrilldownQuery';
35
+ export { doraControllerLeadTimeDrilldown, useDoraControllerLeadTimeDrilldownQuery, } from './hooks/useDoraControllerLeadTimeDrilldownQuery';
36
36
  export type { DoraControllerLeadTimeErrorResponse, DoraControllerLeadTimeOkResponse, DoraControllerLeadTimeProps, DoraControllerLeadTimeQueryQueryParams, DoraControllerLeadTimeRequestBody, } from './hooks/useDoraControllerLeadTimeQuery';
37
37
  export { doraControllerLeadTime, useDoraControllerLeadTimeQuery, } from './hooks/useDoraControllerLeadTimeQuery';
38
38
  export type { DoraControllerLeadTimeStagesErrorResponse, DoraControllerLeadTimeStagesOkResponse, DoraControllerLeadTimeStagesProps, DoraControllerLeadTimeStagesQueryQueryParams, DoraControllerLeadTimeStagesRequestBody, } from './hooks/useDoraControllerLeadTimeStagesQuery';
@@ -13,8 +13,8 @@ export { doraControllerChangeFailureRateBreakdown, useDoraControllerChangeFailur
13
13
  export { doraControllerChangeFailureRate, useDoraControllerChangeFailureRateQuery, } from './hooks/useDoraControllerChangeFailureRateQuery';
14
14
  export { doraControllerDeploymentFrequencyBreakdown, useDoraControllerDeploymentFrequencyBreakdownQuery, } from './hooks/useDoraControllerDeploymentFrequencyBreakdownQuery';
15
15
  export { doraControllerDeploymentFrequency, useDoraControllerDeploymentFrequencyQuery, } from './hooks/useDoraControllerDeploymentFrequencyQuery';
16
- export { doraControllerLeadTimeDrilldownFilters, useDoraControllerLeadTimeDrilldownFiltersMutation, } from './hooks/useDoraControllerLeadTimeDrilldownFiltersMutation';
17
- export { doraControllerLeadTimeDrilldown, useDoraControllerLeadTimeDrilldownMutation, } from './hooks/useDoraControllerLeadTimeDrilldownMutation';
16
+ export { doraControllerLeadTimeDrilldownFilters, useDoraControllerLeadTimeDrilldownFiltersQuery, } from './hooks/useDoraControllerLeadTimeDrilldownFiltersQuery';
17
+ export { doraControllerLeadTimeDrilldown, useDoraControllerLeadTimeDrilldownQuery, } from './hooks/useDoraControllerLeadTimeDrilldownQuery';
18
18
  export { doraControllerLeadTime, useDoraControllerLeadTimeQuery, } from './hooks/useDoraControllerLeadTimeQuery';
19
19
  export { doraControllerLeadTimeStages, useDoraControllerLeadTimeStagesQuery, } from './hooks/useDoraControllerLeadTimeStagesQuery';
20
20
  export { doraControllerMeanTimeRestore, useDoraControllerMeanTimeRestoreQuery, } from './hooks/useDoraControllerMeanTimeRestoreQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.10.18",
3
+ "version": "0.10.19",
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",