@harnessio/react-sei-panorama-service-client 0.21.2 → 0.21.3

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 { ListResponseDtoDeveloperLicenseDto } from '../schemas/ListResponseDtoDeveloperLicenseDto';
3
3
  import type { LicenseSearchParams } from '../schemas/LicenseSearchParams';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface LicenseControllerListLicensesMutationQueryParams {
6
+ export interface LicenseControllerListLicensesQueryQueryParams {
7
7
  /**
8
8
  * @format int32
9
9
  * @default 0
@@ -18,12 +18,12 @@ export interface LicenseControllerListLicensesMutationQueryParams {
18
18
  export type LicenseControllerListLicensesRequestBody = LicenseSearchParams;
19
19
  export type LicenseControllerListLicensesOkResponse = ResponseWithPagination<ListResponseDtoDeveloperLicenseDto>;
20
20
  export type LicenseControllerListLicensesErrorResponse = unknown;
21
- export interface LicenseControllerListLicensesProps extends Omit<FetcherOptions<LicenseControllerListLicensesMutationQueryParams, LicenseControllerListLicensesRequestBody>, 'url'> {
22
- queryParams: LicenseControllerListLicensesMutationQueryParams;
21
+ export interface LicenseControllerListLicensesProps extends Omit<FetcherOptions<LicenseControllerListLicensesQueryQueryParams, LicenseControllerListLicensesRequestBody>, 'url'> {
22
+ queryParams: LicenseControllerListLicensesQueryQueryParams;
23
23
  body: LicenseControllerListLicensesRequestBody;
24
24
  }
25
25
  export declare function licenseControllerListLicenses(props: LicenseControllerListLicensesProps): Promise<LicenseControllerListLicensesOkResponse>;
26
26
  /**
27
27
  * Returns a list of licenses matching the search criteria
28
28
  */
29
- export declare function useLicenseControllerListLicensesMutation(options?: Omit<UseMutationOptions<LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesErrorResponse, LicenseControllerListLicensesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<LicenseControllerListLicensesOkResponse, unknown, LicenseControllerListLicensesProps, unknown>;
29
+ export declare function useLicenseControllerListLicensesQuery(props: LicenseControllerListLicensesProps, options?: Omit<UseQueryOptions<LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<LicenseControllerListLicensesOkResponse, 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 licenseControllerListLicenses(props) {
7
7
  return fetcher(Object.assign({ url: `/v2/licenses/list`, method: 'POST' }, props));
@@ -9,6 +9,6 @@ export function licenseControllerListLicenses(props) {
9
9
  /**
10
10
  * Returns a list of licenses matching the search criteria
11
11
  */
12
- export function useLicenseControllerListLicensesMutation(options) {
13
- return useMutation((mutateProps) => licenseControllerListLicenses(mutateProps), options);
12
+ export function useLicenseControllerListLicensesQuery(props, options) {
13
+ return useQuery(['LicenseControllerListLicenses', props.queryParams, props.body], ({ signal }) => licenseControllerListLicenses(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -153,8 +153,8 @@ export type { LicenseControllerGetDailyDeveloperCountsErrorResponse, LicenseCont
153
153
  export { licenseControllerGetDailyDeveloperCounts, useLicenseControllerGetDailyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
154
154
  export type { LicenseControllerGetMonthlyDeveloperCountsErrorResponse, LicenseControllerGetMonthlyDeveloperCountsOkResponse, LicenseControllerGetMonthlyDeveloperCountsProps, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
155
155
  export { licenseControllerGetMonthlyDeveloperCounts, useLicenseControllerGetMonthlyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
156
- export type { LicenseControllerListLicensesErrorResponse, LicenseControllerListLicensesMutationQueryParams, LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesProps, LicenseControllerListLicensesRequestBody, } from './hooks/useLicenseControllerListLicensesMutation';
157
- export { licenseControllerListLicenses, useLicenseControllerListLicensesMutation, } from './hooks/useLicenseControllerListLicensesMutation';
156
+ export type { LicenseControllerListLicensesErrorResponse, LicenseControllerListLicensesOkResponse, LicenseControllerListLicensesProps, LicenseControllerListLicensesQueryQueryParams, LicenseControllerListLicensesRequestBody, } from './hooks/useLicenseControllerListLicensesQuery';
157
+ export { licenseControllerListLicenses, useLicenseControllerListLicensesQuery, } from './hooks/useLicenseControllerListLicensesQuery';
158
158
  export type { OrgTreeControllerCreateOrgTreeErrorResponse, OrgTreeControllerCreateOrgTreeMutationQueryParams, OrgTreeControllerCreateOrgTreeOkResponse, OrgTreeControllerCreateOrgTreeProps, OrgTreeControllerCreateOrgTreeRequestBody, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
159
159
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
160
160
  export type { OrgTreeControllerDeleteOrgTreeErrorResponse, OrgTreeControllerDeleteOrgTreeMutationPathParams, OrgTreeControllerDeleteOrgTreeOkResponse, OrgTreeControllerDeleteOrgTreeProps, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
@@ -75,7 +75,7 @@ export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } fro
75
75
  export { licenseControllerDownloadLicenses, useLicenseControllerDownloadLicensesQuery, } from './hooks/useLicenseControllerDownloadLicensesQuery';
76
76
  export { licenseControllerGetDailyDeveloperCounts, useLicenseControllerGetDailyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetDailyDeveloperCountsQuery';
77
77
  export { licenseControllerGetMonthlyDeveloperCounts, useLicenseControllerGetMonthlyDeveloperCountsQuery, } from './hooks/useLicenseControllerGetMonthlyDeveloperCountsQuery';
78
- export { licenseControllerListLicenses, useLicenseControllerListLicensesMutation, } from './hooks/useLicenseControllerListLicensesMutation';
78
+ export { licenseControllerListLicenses, useLicenseControllerListLicensesQuery, } from './hooks/useLicenseControllerListLicensesQuery';
79
79
  export { orgTreeControllerCreateOrgTree, useOrgTreeControllerCreateOrgTreeMutation, } from './hooks/useOrgTreeControllerCreateOrgTreeMutation';
80
80
  export { orgTreeControllerDeleteOrgTree, useOrgTreeControllerDeleteOrgTreeMutation, } from './hooks/useOrgTreeControllerDeleteOrgTreeMutation';
81
81
  export { orgTreeControllerGetBusinessAlignmentProfileRefId, useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery, } from './hooks/useOrgTreeControllerGetBusinessAlignmentProfileRefIdQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-sei-panorama-service-client",
3
- "version": "0.21.2",
3
+ "version": "0.21.3",
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",