@harnessio/react-sei-panorama-service-client 0.10.7 → 0.10.9
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/useCollectionControllerListCollectionsQuery.d.ts +31 -0
- package/dist/sei-panorama-service/src/services/hooks/useCollectionControllerListCollectionsQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/{useDoraControllerMttrBreakdownMutation.d.ts → useDoraControllerMttrBreakdownQuery.d.ts} +5 -5
- package/dist/sei-panorama-service/src/services/hooks/{useDoraControllerMttrBreakdownMutation.js → useDoraControllerMttrBreakdownQuery.js} +3 -3
- package/dist/sei-panorama-service/src/services/hooks/useDoraControllerSummaryQuery.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/index.d.ts +7 -4
- package/dist/sei-panorama-service/src/services/index.js +2 -2
- package/dist/sei-panorama-service/src/services/schemas/CollectionFilter.d.ts +6 -0
- package/dist/sei-panorama-service/src/services/schemas/CollectionFilter.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/DoraSummaryRequest.d.ts +11 -0
- package/dist/sei-panorama-service/src/services/schemas/DoraSummaryRequest.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryCard.d.ts +15 -5
- package/dist/sei-panorama-service/src/services/schemas/SummaryValue.d.ts +5 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryValueChange.d.ts +26 -0
- package/dist/sei-panorama-service/src/services/schemas/SummaryValueChange.js +4 -0
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/hooks/useCollectionControllerListQuery.d.ts +0 -32
- package/dist/sei-panorama-service/src/services/hooks/useCollectionControllerListQuery.js +0 -14
@@ -0,0 +1,31 @@
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
2
|
+
import type { DbListResponseCollectionTree } from '../schemas/DbListResponseCollectionTree';
|
3
|
+
import type { CollectionFilter } from '../schemas/CollectionFilter';
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
+
export interface CollectionControllerListCollectionsQueryQueryParams {
|
7
|
+
/**
|
8
|
+
* account id
|
9
|
+
*/
|
10
|
+
account: string;
|
11
|
+
/**
|
12
|
+
* project id
|
13
|
+
*/
|
14
|
+
projectIdentifier: string;
|
15
|
+
/**
|
16
|
+
* organization id
|
17
|
+
*/
|
18
|
+
orgIdentifier: string;
|
19
|
+
}
|
20
|
+
export type CollectionControllerListCollectionsRequestBody = CollectionFilter;
|
21
|
+
export type CollectionControllerListCollectionsOkResponse = ResponseWithPagination<DbListResponseCollectionTree>;
|
22
|
+
export type CollectionControllerListCollectionsErrorResponse = DbListResponseCollectionTree;
|
23
|
+
export interface CollectionControllerListCollectionsProps extends Omit<FetcherOptions<CollectionControllerListCollectionsQueryQueryParams, CollectionControllerListCollectionsRequestBody>, 'url'> {
|
24
|
+
queryParams: CollectionControllerListCollectionsQueryQueryParams;
|
25
|
+
body: CollectionControllerListCollectionsRequestBody;
|
26
|
+
}
|
27
|
+
export declare function collectionControllerListCollections(props: CollectionControllerListCollectionsProps): Promise<CollectionControllerListCollectionsOkResponse>;
|
28
|
+
/**
|
29
|
+
* Get collections
|
30
|
+
*/
|
31
|
+
export declare function useCollectionControllerListCollectionsQuery(props: CollectionControllerListCollectionsProps, options?: Omit<UseQueryOptions<CollectionControllerListCollectionsOkResponse, CollectionControllerListCollectionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CollectionControllerListCollectionsOkResponse, DbListResponseCollectionTree>;
|
package/dist/sei-panorama-service/src/services/hooks/useCollectionControllerListCollectionsQuery.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
3
|
+
// Please do not modify this code directly.
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
6
|
+
export function collectionControllerListCollections(props) {
|
7
|
+
return fetcher(Object.assign({ url: `/v2/collection`, method: 'POST' }, props));
|
8
|
+
}
|
9
|
+
/**
|
10
|
+
* Get collections
|
11
|
+
*/
|
12
|
+
export function useCollectionControllerListCollectionsQuery(props, options) {
|
13
|
+
return useQuery(['CollectionControllerListCollections', props.queryParams, props.body], ({ signal }) => collectionControllerListCollections(Object.assign(Object.assign({}, props), { signal })), options);
|
14
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
2
2
|
import type { DataPointBreakdown } from '../schemas/DataPointBreakdown';
|
3
3
|
import type { DoraRequest } from '../schemas/DoraRequest';
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
|
-
export interface
|
6
|
+
export interface DoraControllerMttrBreakdownQueryQueryParams {
|
7
7
|
account: string;
|
8
8
|
projectIdentifier: string;
|
9
9
|
orgIdentifier: string;
|
@@ -11,12 +11,12 @@ export interface DoraControllerMttrBreakdownMutationQueryParams {
|
|
11
11
|
export type DoraControllerMttrBreakdownRequestBody = DoraRequest;
|
12
12
|
export type DoraControllerMttrBreakdownOkResponse = ResponseWithPagination<DataPointBreakdown>;
|
13
13
|
export type DoraControllerMttrBreakdownErrorResponse = string;
|
14
|
-
export interface DoraControllerMttrBreakdownProps extends Omit<FetcherOptions<
|
15
|
-
queryParams:
|
14
|
+
export interface DoraControllerMttrBreakdownProps extends Omit<FetcherOptions<DoraControllerMttrBreakdownQueryQueryParams, DoraControllerMttrBreakdownRequestBody>, 'url'> {
|
15
|
+
queryParams: DoraControllerMttrBreakdownQueryQueryParams;
|
16
16
|
body: DoraControllerMttrBreakdownRequestBody;
|
17
17
|
}
|
18
18
|
export declare function doraControllerMttrBreakdown(props: DoraControllerMttrBreakdownProps): Promise<DoraControllerMttrBreakdownOkResponse>;
|
19
19
|
/**
|
20
20
|
* Get Mean time to restore breakdown for a project
|
21
21
|
*/
|
22
|
-
export declare function
|
22
|
+
export declare function useDoraControllerMttrBreakdownQuery(props: DoraControllerMttrBreakdownProps, options?: Omit<UseQueryOptions<DoraControllerMttrBreakdownOkResponse, DoraControllerMttrBreakdownErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DoraControllerMttrBreakdownOkResponse, 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 {
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
6
6
|
export function doraControllerMttrBreakdown(props) {
|
7
7
|
return fetcher(Object.assign({ url: `/v2/insights/dora/mttr/breakdown`, method: 'POST' }, props));
|
@@ -9,6 +9,6 @@ export function doraControllerMttrBreakdown(props) {
|
|
9
9
|
/**
|
10
10
|
* Get Mean time to restore breakdown for a project
|
11
11
|
*/
|
12
|
-
export function
|
13
|
-
return
|
12
|
+
export function useDoraControllerMttrBreakdownQuery(props, options) {
|
13
|
+
return useQuery(['DoraControllerMttrBreakdown', props.queryParams, props.body], ({ signal }) => doraControllerMttrBreakdown(Object.assign(Object.assign({}, props), { signal })), options);
|
14
14
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
2
2
|
import type { DoraSummaryMetric } from '../schemas/DoraSummaryMetric';
|
3
|
-
import type {
|
3
|
+
import type { DoraSummaryRequest } from '../schemas/DoraSummaryRequest';
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
6
6
|
export interface DoraControllerSummaryQueryQueryParams {
|
@@ -8,7 +8,7 @@ export interface DoraControllerSummaryQueryQueryParams {
|
|
8
8
|
projectIdentifier: string;
|
9
9
|
orgIdentifier: string;
|
10
10
|
}
|
11
|
-
export type DoraControllerSummaryRequestBody =
|
11
|
+
export type DoraControllerSummaryRequestBody = DoraSummaryRequest;
|
12
12
|
export type DoraControllerSummaryOkResponse = ResponseWithPagination<DoraSummaryMetric>;
|
13
13
|
export type DoraControllerSummaryErrorResponse = string;
|
14
14
|
export interface DoraControllerSummaryProps extends Omit<FetcherOptions<DoraControllerSummaryQueryQueryParams, DoraControllerSummaryRequestBody>, 'url'> {
|
@@ -5,8 +5,8 @@ export type { CategoryControllerListErrorResponse, CategoryControllerListOkRespo
|
|
5
5
|
export { categoryControllerList, useCategoryControllerListQuery, } from './hooks/useCategoryControllerListQuery';
|
6
6
|
export type { CollectionControllerGetCollectionTreeErrorResponse, CollectionControllerGetCollectionTreeOkResponse, CollectionControllerGetCollectionTreeProps, CollectionControllerGetCollectionTreeQueryPathParams, CollectionControllerGetCollectionTreeQueryQueryParams, } from './hooks/useCollectionControllerGetCollectionTreeQuery';
|
7
7
|
export { collectionControllerGetCollectionTree, useCollectionControllerGetCollectionTreeQuery, } from './hooks/useCollectionControllerGetCollectionTreeQuery';
|
8
|
-
export type {
|
9
|
-
export {
|
8
|
+
export type { CollectionControllerListCollectionsErrorResponse, CollectionControllerListCollectionsOkResponse, CollectionControllerListCollectionsProps, CollectionControllerListCollectionsQueryQueryParams, CollectionControllerListCollectionsRequestBody, } from './hooks/useCollectionControllerListCollectionsQuery';
|
9
|
+
export { collectionControllerListCollections, useCollectionControllerListCollectionsQuery, } from './hooks/useCollectionControllerListCollectionsQuery';
|
10
10
|
export type { DoraControllerBreakdownErrorResponse, DoraControllerBreakdownOkResponse, DoraControllerBreakdownProps, DoraControllerBreakdownQueryQueryParams, DoraControllerBreakdownRequestBody, } from './hooks/useDoraControllerBreakdownQuery';
|
11
11
|
export { doraControllerBreakdown, useDoraControllerBreakdownQuery, } from './hooks/useDoraControllerBreakdownQuery';
|
12
12
|
export type { DoraControllerChangeFailureRateBreakdownErrorResponse, DoraControllerChangeFailureRateBreakdownOkResponse, DoraControllerChangeFailureRateBreakdownProps, DoraControllerChangeFailureRateBreakdownQueryQueryParams, DoraControllerChangeFailureRateBreakdownRequestBody, } from './hooks/useDoraControllerChangeFailureRateBreakdownQuery';
|
@@ -23,8 +23,8 @@ export type { DoraControllerLeadTimeStagesErrorResponse, DoraControllerLeadTimeS
|
|
23
23
|
export { doraControllerLeadTimeStages, useDoraControllerLeadTimeStagesQuery, } from './hooks/useDoraControllerLeadTimeStagesQuery';
|
24
24
|
export type { DoraControllerMeanTimeRestoreErrorResponse, DoraControllerMeanTimeRestoreOkResponse, DoraControllerMeanTimeRestoreProps, DoraControllerMeanTimeRestoreQueryQueryParams, DoraControllerMeanTimeRestoreRequestBody, } from './hooks/useDoraControllerMeanTimeRestoreQuery';
|
25
25
|
export { doraControllerMeanTimeRestore, useDoraControllerMeanTimeRestoreQuery, } from './hooks/useDoraControllerMeanTimeRestoreQuery';
|
26
|
-
export type { DoraControllerMttrBreakdownErrorResponse,
|
27
|
-
export { doraControllerMttrBreakdown,
|
26
|
+
export type { DoraControllerMttrBreakdownErrorResponse, DoraControllerMttrBreakdownOkResponse, DoraControllerMttrBreakdownProps, DoraControllerMttrBreakdownQueryQueryParams, DoraControllerMttrBreakdownRequestBody, } from './hooks/useDoraControllerMttrBreakdownQuery';
|
27
|
+
export { doraControllerMttrBreakdown, useDoraControllerMttrBreakdownQuery, } from './hooks/useDoraControllerMttrBreakdownQuery';
|
28
28
|
export type { DoraControllerSummaryErrorResponse, DoraControllerSummaryOkResponse, DoraControllerSummaryProps, DoraControllerSummaryQueryQueryParams, DoraControllerSummaryRequestBody, } from './hooks/useDoraControllerSummaryQuery';
|
29
29
|
export { doraControllerSummary, useDoraControllerSummaryQuery, } from './hooks/useDoraControllerSummaryQuery';
|
30
30
|
export type { JiraIssuesControllerGetJiraIssueCountErrorResponse, JiraIssuesControllerGetJiraIssueCountOkResponse, JiraIssuesControllerGetJiraIssueCountProps, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
|
@@ -32,6 +32,7 @@ export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIs
|
|
32
32
|
export type { LegacyHealthControllerCheckErrorResponse, LegacyHealthControllerCheckOkResponse, LegacyHealthControllerCheckProps, } from './hooks/useLegacyHealthControllerCheckQuery';
|
33
33
|
export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
|
34
34
|
export type { Category } from './schemas/Category';
|
35
|
+
export type { CollectionFilter } from './schemas/CollectionFilter';
|
35
36
|
export type { CollectionObject } from './schemas/CollectionObject';
|
36
37
|
export type { CollectionTree } from './schemas/CollectionTree';
|
37
38
|
export type { DataPoint } from './schemas/DataPoint';
|
@@ -48,7 +49,9 @@ export type { DoraMetric } from './schemas/DoraMetric';
|
|
48
49
|
export type { DoraMetricBreakdown } from './schemas/DoraMetricBreakdown';
|
49
50
|
export type { DoraRequest } from './schemas/DoraRequest';
|
50
51
|
export type { DoraSummaryMetric } from './schemas/DoraSummaryMetric';
|
52
|
+
export type { DoraSummaryRequest } from './schemas/DoraSummaryRequest';
|
51
53
|
export type { IntegrationObject } from './schemas/IntegrationObject';
|
52
54
|
export type { Stage } from './schemas/Stage';
|
53
55
|
export type { SummaryCard } from './schemas/SummaryCard';
|
54
56
|
export type { SummaryValue } from './schemas/SummaryValue';
|
57
|
+
export type { SummaryValueChange } from './schemas/SummaryValueChange';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
export { categoryControllerGetCategory, useCategoryControllerGetCategoryQuery, } from './hooks/useCategoryControllerGetCategoryQuery';
|
2
2
|
export { categoryControllerList, useCategoryControllerListQuery, } from './hooks/useCategoryControllerListQuery';
|
3
3
|
export { collectionControllerGetCollectionTree, useCollectionControllerGetCollectionTreeQuery, } from './hooks/useCollectionControllerGetCollectionTreeQuery';
|
4
|
-
export {
|
4
|
+
export { collectionControllerListCollections, useCollectionControllerListCollectionsQuery, } from './hooks/useCollectionControllerListCollectionsQuery';
|
5
5
|
export { doraControllerBreakdown, useDoraControllerBreakdownQuery, } from './hooks/useDoraControllerBreakdownQuery';
|
6
6
|
export { doraControllerChangeFailureRateBreakdown, useDoraControllerChangeFailureRateBreakdownQuery, } from './hooks/useDoraControllerChangeFailureRateBreakdownQuery';
|
7
7
|
export { doraControllerChangeFailureRate, useDoraControllerChangeFailureRateQuery, } from './hooks/useDoraControllerChangeFailureRateQuery';
|
@@ -10,7 +10,7 @@ export { doraControllerDeploymentFrequency, useDoraControllerDeploymentFrequency
|
|
10
10
|
export { doraControllerLeadTime, useDoraControllerLeadTimeQuery, } from './hooks/useDoraControllerLeadTimeQuery';
|
11
11
|
export { doraControllerLeadTimeStages, useDoraControllerLeadTimeStagesQuery, } from './hooks/useDoraControllerLeadTimeStagesQuery';
|
12
12
|
export { doraControllerMeanTimeRestore, useDoraControllerMeanTimeRestoreQuery, } from './hooks/useDoraControllerMeanTimeRestoreQuery';
|
13
|
-
export { doraControllerMttrBreakdown,
|
13
|
+
export { doraControllerMttrBreakdown, useDoraControllerMttrBreakdownQuery, } from './hooks/useDoraControllerMttrBreakdownQuery';
|
14
14
|
export { doraControllerSummary, useDoraControllerSummaryQuery, } from './hooks/useDoraControllerSummaryQuery';
|
15
15
|
export { jiraIssuesControllerGetJiraIssueCount, useJiraIssuesControllerGetJiraIssueCountQuery, } from './hooks/useJiraIssuesControllerGetJiraIssueCountQuery';
|
16
16
|
export { legacyHealthControllerCheck, useLegacyHealthControllerCheckQuery, } from './hooks/useLegacyHealthControllerCheckQuery';
|
@@ -1,8 +1,18 @@
|
|
1
|
+
import type { SummaryValueChange } from '../schemas/SummaryValueChange';
|
1
2
|
import type { SummaryValue } from '../schemas/SummaryValue';
|
2
3
|
export interface SummaryCard {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
changePercentage?: SummaryValueChange;
|
5
|
+
currentValue?: SummaryValue;
|
6
|
+
/**
|
7
|
+
* @format date-time
|
8
|
+
*/
|
9
|
+
dateEnd?: string;
|
10
|
+
/**
|
11
|
+
* @format date-time
|
12
|
+
*/
|
13
|
+
dateStart?: string;
|
14
|
+
doraMetricKey?: string;
|
15
|
+
doraMetricName?: string;
|
16
|
+
previousValue?: SummaryValue;
|
17
|
+
rating?: 'DANGER' | 'ELITE' | 'FAIR' | 'NEEDS_IMPROVEMENT' | 'SUCCESS' | 'WARNING';
|
8
18
|
}
|
@@ -3,6 +3,10 @@ export interface SummaryValue {
|
|
3
3
|
* @format int32
|
4
4
|
*/
|
5
5
|
count?: number;
|
6
|
+
/**
|
7
|
+
* @format int32
|
8
|
+
*/
|
9
|
+
failureCount?: number;
|
6
10
|
/**
|
7
11
|
* @format double
|
8
12
|
*/
|
@@ -19,4 +23,5 @@ export interface SummaryValue {
|
|
19
23
|
* @format double
|
20
24
|
*/
|
21
25
|
p95?: number;
|
26
|
+
rating?: 'DANGER' | 'ELITE' | 'FAIR' | 'NEEDS_IMPROVEMENT' | 'SUCCESS' | 'WARNING';
|
22
27
|
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export interface SummaryValueChange {
|
2
|
+
/**
|
3
|
+
* @format double
|
4
|
+
*/
|
5
|
+
percentageChangeFailureRate?: number;
|
6
|
+
/**
|
7
|
+
* @format double
|
8
|
+
*/
|
9
|
+
perchangeChangeCount?: number;
|
10
|
+
/**
|
11
|
+
* @format double
|
12
|
+
*/
|
13
|
+
perchangeChangeMean?: number;
|
14
|
+
/**
|
15
|
+
* @format double
|
16
|
+
*/
|
17
|
+
perchangeChangeMedian?: number;
|
18
|
+
/**
|
19
|
+
* @format double
|
20
|
+
*/
|
21
|
+
perchangeChangeP90?: number;
|
22
|
+
/**
|
23
|
+
* @format double
|
24
|
+
*/
|
25
|
+
perchangeChangeP95?: number;
|
26
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
3
|
-
"version": "0.10.
|
3
|
+
"version": "0.10.9",
|
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",
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
2
|
-
import type { DbListResponseCollectionTree } from '../schemas/DbListResponseCollectionTree';
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
5
|
-
export interface CollectionControllerListQueryQueryParams {
|
6
|
-
/**
|
7
|
-
* account id
|
8
|
-
*/
|
9
|
-
account: string;
|
10
|
-
/**
|
11
|
-
* project id
|
12
|
-
*/
|
13
|
-
projectIdentifier: string;
|
14
|
-
/**
|
15
|
-
* organization id
|
16
|
-
*/
|
17
|
-
orgIdentifier: string;
|
18
|
-
/**
|
19
|
-
* allow filtering by category id eg: filter=categoryId:category id
|
20
|
-
*/
|
21
|
-
filter?: string;
|
22
|
-
}
|
23
|
-
export type CollectionControllerListOkResponse = ResponseWithPagination<DbListResponseCollectionTree>;
|
24
|
-
export type CollectionControllerListErrorResponse = DbListResponseCollectionTree;
|
25
|
-
export interface CollectionControllerListProps extends Omit<FetcherOptions<CollectionControllerListQueryQueryParams, unknown>, 'url'> {
|
26
|
-
queryParams: CollectionControllerListQueryQueryParams;
|
27
|
-
}
|
28
|
-
export declare function collectionControllerList(props: CollectionControllerListProps): Promise<CollectionControllerListOkResponse>;
|
29
|
-
/**
|
30
|
-
* Get collections
|
31
|
-
*/
|
32
|
-
export declare function useCollectionControllerListQuery(props: CollectionControllerListProps, options?: Omit<UseQueryOptions<CollectionControllerListOkResponse, CollectionControllerListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CollectionControllerListOkResponse, DbListResponseCollectionTree>;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
3
|
-
// Please do not modify this code directly.
|
4
|
-
import { useQuery } from '@tanstack/react-query';
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
6
|
-
export function collectionControllerList(props) {
|
7
|
-
return fetcher(Object.assign({ url: `/v2/collection`, method: 'GET' }, props));
|
8
|
-
}
|
9
|
-
/**
|
10
|
-
* Get collections
|
11
|
-
*/
|
12
|
-
export function useCollectionControllerListQuery(props, options) {
|
13
|
-
return useQuery(['CollectionControllerList', props.queryParams], ({ signal }) => collectionControllerList(Object.assign(Object.assign({}, props), { signal })), options);
|
14
|
-
}
|