@harnessio/react-sei-panorama-service-client 0.21.2 → 0.21.4
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/{useLicenseControllerListLicensesMutation.d.ts → useLicenseControllerListLicensesQuery.d.ts} +5 -5
- package/dist/sei-panorama-service/src/services/hooks/{useLicenseControllerListLicensesMutation.js → useLicenseControllerListLicensesQuery.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/dist/sei-panorama-service/src/services/schemas/LicenseSearchParams.d.ts +2 -2
- package/package.json +1 -1
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
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
|
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<
|
22
|
-
queryParams:
|
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
|
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 {
|
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
|
13
|
-
return
|
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,
|
157
|
-
export { licenseControllerListLicenses,
|
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,
|
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.
|
3
|
+
"version": "0.21.4",
|
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",
|