@harnessio/react-sei-panorama-service-client 0.26.11 → 0.26.13

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.
Files changed (69) hide show
  1. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerAddDashboardOrgTreeMappingsMutation.d.ts +24 -0
  2. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerAddDashboardOrgTreeMappingsMutation.js +14 -0
  3. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerCreateCanvasDashboardMutation.d.ts +21 -0
  4. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerCreateCanvasDashboardMutation.js +14 -0
  5. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerDeleteCanvasDashboardMutation.d.ts +21 -0
  6. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerDeleteCanvasDashboardMutation.js +14 -0
  7. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerDeleteDashboardOrgTreeMappingsMutation.d.ts +21 -0
  8. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerDeleteDashboardOrgTreeMappingsMutation.js +14 -0
  9. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerGetDashboardOrgTreesQuery.d.ts +22 -0
  10. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerGetDashboardOrgTreesQuery.js +14 -0
  11. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerReplaceDashboardOrgTreeMappingsMutation.d.ts +24 -0
  12. package/dist/sei-panorama-service/src/services/hooks/useCanvasControllerReplaceDashboardOrgTreeMappingsMutation.js +14 -0
  13. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerCreateCustomVariableMutation.d.ts +22 -0
  14. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerCreateCustomVariableMutation.js +14 -0
  15. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteCustomVariableMutation.d.ts +24 -0
  16. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteCustomVariableMutation.js +14 -0
  17. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation.d.ts +28 -0
  18. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation.js +14 -0
  19. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery.d.ts +26 -0
  20. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery.js +14 -0
  21. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerListCustomVariablesQuery.d.ts +28 -0
  22. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerListCustomVariablesQuery.js +14 -0
  23. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateCustomVariableMutation.d.ts +28 -0
  24. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateCustomVariableMutation.js +14 -0
  25. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation.d.ts +28 -0
  26. package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation.js +14 -0
  27. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamFiltersQuery.d.ts +1 -1
  28. package/dist/sei-panorama-service/src/services/hooks/useTeamsControllerGetTeamIntegrationFiltersQuery.d.ts +1 -1
  29. package/dist/sei-panorama-service/src/services/index.d.ts +37 -2
  30. package/dist/sei-panorama-service/src/services/index.js +13 -0
  31. package/dist/sei-panorama-service/src/services/schemas/CanvasDashboardOrgTreeDto.d.ts +21 -0
  32. package/dist/sei-panorama-service/src/services/schemas/CanvasDashboardOrgTreeMappingRequestDto.d.ts +9 -0
  33. package/dist/sei-panorama-service/src/services/schemas/CanvasDashboardOrgTreeMappingRequestDto.js +4 -0
  34. package/dist/sei-panorama-service/src/services/schemas/CreateCanvasDashboardRequestDto.d.ts +10 -0
  35. package/dist/sei-panorama-service/src/services/schemas/CreateCanvasDashboardRequestDto.js +4 -0
  36. package/dist/sei-panorama-service/src/services/schemas/CreateCustomVariableRequestDto.d.ts +20 -0
  37. package/dist/sei-panorama-service/src/services/schemas/CreateCustomVariableRequestDto.js +4 -0
  38. package/dist/sei-panorama-service/src/services/schemas/CustomVariableResponseDto.d.ts +53 -0
  39. package/dist/sei-panorama-service/src/services/schemas/CustomVariableResponseDto.js +4 -0
  40. package/dist/sei-panorama-service/src/services/schemas/CustomVariableTeamOverrideResponseDto.d.ts +40 -0
  41. package/dist/sei-panorama-service/src/services/schemas/CustomVariableTeamOverrideResponseDto.js +4 -0
  42. package/dist/sei-panorama-service/src/services/schemas/CustomVariablesPaginatedResponseDto.d.ts +42 -0
  43. package/dist/sei-panorama-service/src/services/schemas/DoraLttcMttrMetric.d.ts +1 -1
  44. package/dist/sei-panorama-service/src/services/schemas/DrillDownResponseDtoObject.d.ts +1 -1
  45. package/dist/sei-panorama-service/src/services/schemas/EfficiencyProfileEvent.d.ts +1 -1
  46. package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.d.ts +6 -3
  47. package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.js +3 -0
  48. package/dist/sei-panorama-service/src/services/schemas/Integration.d.ts +1 -1
  49. package/dist/sei-panorama-service/src/services/schemas/IntegrationResponseDto.d.ts +2 -2
  50. package/dist/sei-panorama-service/src/services/schemas/MttrConfigurationDto.d.ts +2 -2
  51. package/dist/sei-panorama-service/src/services/schemas/MttrDrillDownResponseDto.d.ts +1 -1
  52. package/dist/sei-panorama-service/src/services/schemas/MttrDrilldownRequest.d.ts +1 -1
  53. package/dist/sei-panorama-service/src/services/schemas/MttrMetric.d.ts +1 -1
  54. package/dist/sei-panorama-service/src/services/schemas/OrgTreeResponseDto.d.ts +4 -0
  55. package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariableResponseDto.d.ts +36 -0
  56. package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariableResponseDto.js +4 -0
  57. package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariablesResponseDto.d.ts +16 -0
  58. package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariablesResponseDto.js +1 -0
  59. package/dist/sei-panorama-service/src/services/schemas/TeamFilterIntegrationSummary.d.ts +1 -1
  60. package/dist/sei-panorama-service/src/services/schemas/TeamFiltersResponseDto.d.ts +1 -1
  61. package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableRequestDto.d.ts +15 -0
  62. package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableRequestDto.js +4 -0
  63. package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableTeamOverrideRequestDto.d.ts +16 -0
  64. package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableTeamOverrideRequestDto.js +4 -0
  65. package/package.json +1 -1
  66. package/dist/sei-panorama-service/src/services/schemas/DataRecord.d.ts +0 -20
  67. package/dist/sei-panorama-service/src/services/schemas/RecordBatch.d.ts +0 -15
  68. /package/dist/sei-panorama-service/src/services/schemas/{DataRecord.js → CanvasDashboardOrgTreeDto.js} +0 -0
  69. /package/dist/sei-panorama-service/src/services/schemas/{RecordBatch.js → CustomVariablesPaginatedResponseDto.js} +0 -0
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { CanvasDashboardOrgTreeMappingRequestDto } from '../schemas/CanvasDashboardOrgTreeMappingRequestDto';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CanvasControllerAddDashboardOrgTreeMappingsMutationPathParams {
7
+ dashboardId: string;
8
+ }
9
+ export interface CanvasControllerAddDashboardOrgTreeMappingsMutationQueryParams {
10
+ orgIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type CanvasControllerAddDashboardOrgTreeMappingsRequestBody = CanvasDashboardOrgTreeMappingRequestDto;
14
+ export type CanvasControllerAddDashboardOrgTreeMappingsOkResponse = ResponseWithPagination<unknown>;
15
+ export type CanvasControllerAddDashboardOrgTreeMappingsErrorResponse = ErrorResponse;
16
+ export interface CanvasControllerAddDashboardOrgTreeMappingsProps extends CanvasControllerAddDashboardOrgTreeMappingsMutationPathParams, Omit<FetcherOptions<CanvasControllerAddDashboardOrgTreeMappingsMutationQueryParams, CanvasControllerAddDashboardOrgTreeMappingsRequestBody>, 'url'> {
17
+ queryParams: CanvasControllerAddDashboardOrgTreeMappingsMutationQueryParams;
18
+ body: CanvasControllerAddDashboardOrgTreeMappingsRequestBody;
19
+ }
20
+ export declare function canvasControllerAddDashboardOrgTreeMappings(props: CanvasControllerAddDashboardOrgTreeMappingsProps): Promise<CanvasControllerAddDashboardOrgTreeMappingsOkResponse>;
21
+ /**
22
+ * Add org tree mappings for a canvas dashboard
23
+ */
24
+ export declare function useCanvasControllerAddDashboardOrgTreeMappingsMutation(options?: Omit<UseMutationOptions<CanvasControllerAddDashboardOrgTreeMappingsOkResponse, CanvasControllerAddDashboardOrgTreeMappingsErrorResponse, CanvasControllerAddDashboardOrgTreeMappingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CanvasControllerAddDashboardOrgTreeMappingsOkResponse, ErrorResponse, CanvasControllerAddDashboardOrgTreeMappingsProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function canvasControllerAddDashboardOrgTreeMappings(props) {
7
+ return fetcher(Object.assign({ url: `/v2/canvas/dashboards/${props.dashboardId}/org-trees`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Add org tree mappings for a canvas dashboard
11
+ */
12
+ export function useCanvasControllerAddDashboardOrgTreeMappingsMutation(options) {
13
+ return useMutation((mutateProps) => canvasControllerAddDashboardOrgTreeMappings(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { CreateCanvasDashboardRequestDto } from '../schemas/CreateCanvasDashboardRequestDto';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CanvasControllerCreateCanvasDashboardMutationQueryParams {
7
+ orgIdentifier: string;
8
+ projectIdentifier: string;
9
+ }
10
+ export type CanvasControllerCreateCanvasDashboardRequestBody = CreateCanvasDashboardRequestDto;
11
+ export type CanvasControllerCreateCanvasDashboardOkResponse = ResponseWithPagination<unknown>;
12
+ export type CanvasControllerCreateCanvasDashboardErrorResponse = ErrorResponse;
13
+ export interface CanvasControllerCreateCanvasDashboardProps extends Omit<FetcherOptions<CanvasControllerCreateCanvasDashboardMutationQueryParams, CanvasControllerCreateCanvasDashboardRequestBody>, 'url'> {
14
+ queryParams: CanvasControllerCreateCanvasDashboardMutationQueryParams;
15
+ body: CanvasControllerCreateCanvasDashboardRequestBody;
16
+ }
17
+ export declare function canvasControllerCreateCanvasDashboard(props: CanvasControllerCreateCanvasDashboardProps): Promise<CanvasControllerCreateCanvasDashboardOkResponse>;
18
+ /**
19
+ * Create a new canvas dashboard
20
+ */
21
+ export declare function useCanvasControllerCreateCanvasDashboardMutation(options?: Omit<UseMutationOptions<CanvasControllerCreateCanvasDashboardOkResponse, CanvasControllerCreateCanvasDashboardErrorResponse, CanvasControllerCreateCanvasDashboardProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CanvasControllerCreateCanvasDashboardOkResponse, ErrorResponse, CanvasControllerCreateCanvasDashboardProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function canvasControllerCreateCanvasDashboard(props) {
7
+ return fetcher(Object.assign({ url: `/v2/canvas/dashboards`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a new canvas dashboard
11
+ */
12
+ export function useCanvasControllerCreateCanvasDashboardMutation(options) {
13
+ return useMutation((mutateProps) => canvasControllerCreateCanvasDashboard(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CanvasControllerDeleteCanvasDashboardMutationPathParams {
6
+ dashboardId: string;
7
+ }
8
+ export interface CanvasControllerDeleteCanvasDashboardMutationQueryParams {
9
+ orgIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type CanvasControllerDeleteCanvasDashboardOkResponse = ResponseWithPagination<unknown>;
13
+ export type CanvasControllerDeleteCanvasDashboardErrorResponse = ErrorResponse;
14
+ export interface CanvasControllerDeleteCanvasDashboardProps extends CanvasControllerDeleteCanvasDashboardMutationPathParams, Omit<FetcherOptions<CanvasControllerDeleteCanvasDashboardMutationQueryParams, unknown>, 'url'> {
15
+ queryParams: CanvasControllerDeleteCanvasDashboardMutationQueryParams;
16
+ }
17
+ export declare function canvasControllerDeleteCanvasDashboard(props: CanvasControllerDeleteCanvasDashboardProps): Promise<CanvasControllerDeleteCanvasDashboardOkResponse>;
18
+ /**
19
+ * Delete a canvas dashboard
20
+ */
21
+ export declare function useCanvasControllerDeleteCanvasDashboardMutation(options?: Omit<UseMutationOptions<CanvasControllerDeleteCanvasDashboardOkResponse, CanvasControllerDeleteCanvasDashboardErrorResponse, CanvasControllerDeleteCanvasDashboardProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CanvasControllerDeleteCanvasDashboardOkResponse, ErrorResponse, CanvasControllerDeleteCanvasDashboardProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function canvasControllerDeleteCanvasDashboard(props) {
7
+ return fetcher(Object.assign({ url: `/v2/canvas/dashboards/${props.dashboardId}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a canvas dashboard
11
+ */
12
+ export function useCanvasControllerDeleteCanvasDashboardMutation(options) {
13
+ return useMutation((mutateProps) => canvasControllerDeleteCanvasDashboard(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CanvasControllerDeleteDashboardOrgTreeMappingsMutationPathParams {
6
+ dashboardId: string;
7
+ }
8
+ export interface CanvasControllerDeleteDashboardOrgTreeMappingsMutationQueryParams {
9
+ orgIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type CanvasControllerDeleteDashboardOrgTreeMappingsOkResponse = ResponseWithPagination<unknown>;
13
+ export type CanvasControllerDeleteDashboardOrgTreeMappingsErrorResponse = ErrorResponse;
14
+ export interface CanvasControllerDeleteDashboardOrgTreeMappingsProps extends CanvasControllerDeleteDashboardOrgTreeMappingsMutationPathParams, Omit<FetcherOptions<CanvasControllerDeleteDashboardOrgTreeMappingsMutationQueryParams, unknown>, 'url'> {
15
+ queryParams: CanvasControllerDeleteDashboardOrgTreeMappingsMutationQueryParams;
16
+ }
17
+ export declare function canvasControllerDeleteDashboardOrgTreeMappings(props: CanvasControllerDeleteDashboardOrgTreeMappingsProps): Promise<CanvasControllerDeleteDashboardOrgTreeMappingsOkResponse>;
18
+ /**
19
+ * Delete org tree mappings for a canvas dashboard
20
+ */
21
+ export declare function useCanvasControllerDeleteDashboardOrgTreeMappingsMutation(options?: Omit<UseMutationOptions<CanvasControllerDeleteDashboardOrgTreeMappingsOkResponse, CanvasControllerDeleteDashboardOrgTreeMappingsErrorResponse, CanvasControllerDeleteDashboardOrgTreeMappingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CanvasControllerDeleteDashboardOrgTreeMappingsOkResponse, ErrorResponse, CanvasControllerDeleteDashboardOrgTreeMappingsProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function canvasControllerDeleteDashboardOrgTreeMappings(props) {
7
+ return fetcher(Object.assign({ url: `/v2/canvas/dashboards/${props.dashboardId}/org-trees`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete org tree mappings for a canvas dashboard
11
+ */
12
+ export function useCanvasControllerDeleteDashboardOrgTreeMappingsMutation(options) {
13
+ return useMutation((mutateProps) => canvasControllerDeleteDashboardOrgTreeMappings(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CanvasDashboardOrgTreeDto } from '../schemas/CanvasDashboardOrgTreeDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CanvasControllerGetDashboardOrgTreesQueryPathParams {
7
+ dashboardId: string;
8
+ }
9
+ export interface CanvasControllerGetDashboardOrgTreesQueryQueryParams {
10
+ orgIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type CanvasControllerGetDashboardOrgTreesOkResponse = ResponseWithPagination<CanvasDashboardOrgTreeDto[]>;
14
+ export type CanvasControllerGetDashboardOrgTreesErrorResponse = ErrorResponse;
15
+ export interface CanvasControllerGetDashboardOrgTreesProps extends CanvasControllerGetDashboardOrgTreesQueryPathParams, Omit<FetcherOptions<CanvasControllerGetDashboardOrgTreesQueryQueryParams, unknown>, 'url'> {
16
+ queryParams: CanvasControllerGetDashboardOrgTreesQueryQueryParams;
17
+ }
18
+ export declare function canvasControllerGetDashboardOrgTrees(props: CanvasControllerGetDashboardOrgTreesProps): Promise<CanvasControllerGetDashboardOrgTreesOkResponse>;
19
+ /**
20
+ * Get org tree associations for a canvas dashboard
21
+ */
22
+ export declare function useCanvasControllerGetDashboardOrgTreesQuery(props: CanvasControllerGetDashboardOrgTreesProps, options?: Omit<UseQueryOptions<CanvasControllerGetDashboardOrgTreesOkResponse, CanvasControllerGetDashboardOrgTreesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CanvasControllerGetDashboardOrgTreesOkResponse, ErrorResponse>;
@@ -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 canvasControllerGetDashboardOrgTrees(props) {
7
+ return fetcher(Object.assign({ url: `/v2/canvas/dashboards/${props.dashboardId}/org-trees`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get org tree associations for a canvas dashboard
11
+ */
12
+ export function useCanvasControllerGetDashboardOrgTreesQuery(props, options) {
13
+ return useQuery(['CanvasControllerGetDashboardOrgTrees', props.dashboardId, props.queryParams], ({ signal }) => canvasControllerGetDashboardOrgTrees(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { CanvasDashboardOrgTreeMappingRequestDto } from '../schemas/CanvasDashboardOrgTreeMappingRequestDto';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CanvasControllerReplaceDashboardOrgTreeMappingsMutationPathParams {
7
+ dashboardId: string;
8
+ }
9
+ export interface CanvasControllerReplaceDashboardOrgTreeMappingsMutationQueryParams {
10
+ orgIdentifier: string;
11
+ projectIdentifier: string;
12
+ }
13
+ export type CanvasControllerReplaceDashboardOrgTreeMappingsRequestBody = CanvasDashboardOrgTreeMappingRequestDto;
14
+ export type CanvasControllerReplaceDashboardOrgTreeMappingsOkResponse = ResponseWithPagination<unknown>;
15
+ export type CanvasControllerReplaceDashboardOrgTreeMappingsErrorResponse = ErrorResponse;
16
+ export interface CanvasControllerReplaceDashboardOrgTreeMappingsProps extends CanvasControllerReplaceDashboardOrgTreeMappingsMutationPathParams, Omit<FetcherOptions<CanvasControllerReplaceDashboardOrgTreeMappingsMutationQueryParams, CanvasControllerReplaceDashboardOrgTreeMappingsRequestBody>, 'url'> {
17
+ queryParams: CanvasControllerReplaceDashboardOrgTreeMappingsMutationQueryParams;
18
+ body: CanvasControllerReplaceDashboardOrgTreeMappingsRequestBody;
19
+ }
20
+ export declare function canvasControllerReplaceDashboardOrgTreeMappings(props: CanvasControllerReplaceDashboardOrgTreeMappingsProps): Promise<CanvasControllerReplaceDashboardOrgTreeMappingsOkResponse>;
21
+ /**
22
+ * Replace org tree mappings for a canvas dashboard
23
+ */
24
+ export declare function useCanvasControllerReplaceDashboardOrgTreeMappingsMutation(options?: Omit<UseMutationOptions<CanvasControllerReplaceDashboardOrgTreeMappingsOkResponse, CanvasControllerReplaceDashboardOrgTreeMappingsErrorResponse, CanvasControllerReplaceDashboardOrgTreeMappingsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CanvasControllerReplaceDashboardOrgTreeMappingsOkResponse, ErrorResponse, CanvasControllerReplaceDashboardOrgTreeMappingsProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function canvasControllerReplaceDashboardOrgTreeMappings(props) {
7
+ return fetcher(Object.assign({ url: `/v2/canvas/dashboards/${props.dashboardId}/org-trees`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Replace org tree mappings for a canvas dashboard
11
+ */
12
+ export function useCanvasControllerReplaceDashboardOrgTreeMappingsMutation(options) {
13
+ return useMutation((mutateProps) => canvasControllerReplaceDashboardOrgTreeMappings(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomVariableResponseDto } from '../schemas/CustomVariableResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
4
+ import type { CreateCustomVariableRequestDto } from '../schemas/CreateCustomVariableRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CustomVariablesControllerCreateCustomVariableMutationQueryParams {
8
+ orgIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type CustomVariablesControllerCreateCustomVariableRequestBody = CreateCustomVariableRequestDto;
12
+ export type CustomVariablesControllerCreateCustomVariableOkResponse = ResponseWithPagination<CustomVariableResponseDto>;
13
+ export type CustomVariablesControllerCreateCustomVariableErrorResponse = ErrorResponse;
14
+ export interface CustomVariablesControllerCreateCustomVariableProps extends Omit<FetcherOptions<CustomVariablesControllerCreateCustomVariableMutationQueryParams, CustomVariablesControllerCreateCustomVariableRequestBody>, 'url'> {
15
+ queryParams: CustomVariablesControllerCreateCustomVariableMutationQueryParams;
16
+ body: CustomVariablesControllerCreateCustomVariableRequestBody;
17
+ }
18
+ export declare function customVariablesControllerCreateCustomVariable(props: CustomVariablesControllerCreateCustomVariableProps): Promise<CustomVariablesControllerCreateCustomVariableOkResponse>;
19
+ /**
20
+ * Creates a new custom variable for the specified project/org combination. Name must be unique (case-insensitive) within the project/org.
21
+ */
22
+ export declare function useCustomVariablesControllerCreateCustomVariableMutation(options?: Omit<UseMutationOptions<CustomVariablesControllerCreateCustomVariableOkResponse, CustomVariablesControllerCreateCustomVariableErrorResponse, CustomVariablesControllerCreateCustomVariableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomVariablesControllerCreateCustomVariableOkResponse, ErrorResponse, CustomVariablesControllerCreateCustomVariableProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function customVariablesControllerCreateCustomVariable(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates a new custom variable for the specified project/org combination. Name must be unique (case-insensitive) within the project/org.
11
+ */
12
+ export function useCustomVariablesControllerCreateCustomVariableMutation(options) {
13
+ return useMutation((mutateProps) => customVariablesControllerCreateCustomVariable(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomVariablesControllerDeleteCustomVariableMutationPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ id: number;
10
+ }
11
+ export interface CustomVariablesControllerDeleteCustomVariableMutationQueryParams {
12
+ orgIdentifier: string;
13
+ projectIdentifier: string;
14
+ }
15
+ export type CustomVariablesControllerDeleteCustomVariableOkResponse = ResponseWithPagination<unknown>;
16
+ export type CustomVariablesControllerDeleteCustomVariableErrorResponse = ErrorResponse;
17
+ export interface CustomVariablesControllerDeleteCustomVariableProps extends CustomVariablesControllerDeleteCustomVariableMutationPathParams, Omit<FetcherOptions<CustomVariablesControllerDeleteCustomVariableMutationQueryParams, unknown>, 'url'> {
18
+ queryParams: CustomVariablesControllerDeleteCustomVariableMutationQueryParams;
19
+ }
20
+ export declare function customVariablesControllerDeleteCustomVariable(props: CustomVariablesControllerDeleteCustomVariableProps): Promise<CustomVariablesControllerDeleteCustomVariableOkResponse>;
21
+ /**
22
+ * Deletes a custom variable. All team-level overrides will be cascade deleted automatically.
23
+ */
24
+ export declare function useCustomVariablesControllerDeleteCustomVariableMutation(options?: Omit<UseMutationOptions<CustomVariablesControllerDeleteCustomVariableOkResponse, CustomVariablesControllerDeleteCustomVariableErrorResponse, CustomVariablesControllerDeleteCustomVariableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomVariablesControllerDeleteCustomVariableOkResponse, ErrorResponse, CustomVariablesControllerDeleteCustomVariableProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function customVariablesControllerDeleteCustomVariable(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables/${props.id}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Deletes a custom variable. All team-level overrides will be cascade deleted automatically.
11
+ */
12
+ export function useCustomVariablesControllerDeleteCustomVariableMutation(options) {
13
+ return useMutation((mutateProps) => customVariablesControllerDeleteCustomVariable(mutateProps), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationPathParams {
6
+ /**
7
+ * @format int32
8
+ */
9
+ teamRefId: number;
10
+ /**
11
+ * @format int32
12
+ */
13
+ customVariableId: number;
14
+ }
15
+ export interface CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationQueryParams {
16
+ orgIdentifier: string;
17
+ projectIdentifier: string;
18
+ }
19
+ export type CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideOkResponse = ResponseWithPagination<unknown>;
20
+ export type CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideErrorResponse = ErrorResponse;
21
+ export interface CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideProps extends CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationPathParams, Omit<FetcherOptions<CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationQueryParams, unknown>, 'url'> {
22
+ queryParams: CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationQueryParams;
23
+ }
24
+ export declare function customVariablesControllerDeleteTeamCustomVariableTeamOverride(props: CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideProps): Promise<CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideOkResponse>;
25
+ /**
26
+ * Deletes a team-level override. The team will then use the default values from the custom variable definition.
27
+ */
28
+ export declare function useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation(options?: Omit<UseMutationOptions<CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideOkResponse, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideErrorResponse, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideOkResponse, ErrorResponse, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function customVariablesControllerDeleteTeamCustomVariableTeamOverride(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables/teams/${props.teamRefId}/${props.customVariableId}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Deletes a team-level override. The team will then use the default values from the custom variable definition.
11
+ */
12
+ export function useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation(options) {
13
+ return useMutation((mutateProps) => customVariablesControllerDeleteTeamCustomVariableTeamOverride(mutateProps), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TeamCustomVariablesResponseDto } from '../schemas/TeamCustomVariablesResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CustomVariablesControllerGetTeamCustomVariablesQueryPathParams {
7
+ /**
8
+ * @format int32
9
+ */
10
+ teamRefId: number;
11
+ }
12
+ export interface CustomVariablesControllerGetTeamCustomVariablesQueryQueryParams {
13
+ orgIdentifier: string;
14
+ projectIdentifier: string;
15
+ custom_variable_names?: string[];
16
+ }
17
+ export type CustomVariablesControllerGetTeamCustomVariablesOkResponse = ResponseWithPagination<TeamCustomVariablesResponseDto>;
18
+ export type CustomVariablesControllerGetTeamCustomVariablesErrorResponse = ErrorResponse;
19
+ export interface CustomVariablesControllerGetTeamCustomVariablesProps extends CustomVariablesControllerGetTeamCustomVariablesQueryPathParams, Omit<FetcherOptions<CustomVariablesControllerGetTeamCustomVariablesQueryQueryParams, unknown>, 'url'> {
20
+ queryParams: CustomVariablesControllerGetTeamCustomVariablesQueryQueryParams;
21
+ }
22
+ export declare function customVariablesControllerGetTeamCustomVariables(props: CustomVariablesControllerGetTeamCustomVariablesProps): Promise<CustomVariablesControllerGetTeamCustomVariablesOkResponse>;
23
+ /**
24
+ * Returns custom variables with team-specific values. If custom_variable_names parameter is provided, returns only those variables. Otherwise, returns all custom variables. For leaf teams, returns override values if set, otherwise default values. For non-leaf teams, merges (union) override values from all child teams. Each variable includes an is_overridden flag.
25
+ */
26
+ export declare function useCustomVariablesControllerGetTeamCustomVariablesQuery(props: CustomVariablesControllerGetTeamCustomVariablesProps, options?: Omit<UseQueryOptions<CustomVariablesControllerGetTeamCustomVariablesOkResponse, CustomVariablesControllerGetTeamCustomVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CustomVariablesControllerGetTeamCustomVariablesOkResponse, ErrorResponse>;
@@ -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 customVariablesControllerGetTeamCustomVariables(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables/teams/${props.teamRefId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns custom variables with team-specific values. If custom_variable_names parameter is provided, returns only those variables. Otherwise, returns all custom variables. For leaf teams, returns override values if set, otherwise default values. For non-leaf teams, merges (union) override values from all child teams. Each variable includes an is_overridden flag.
11
+ */
12
+ export function useCustomVariablesControllerGetTeamCustomVariablesQuery(props, options) {
13
+ return useQuery(['CustomVariablesControllerGetTeamCustomVariables', props.teamRefId, props.queryParams], ({ signal }) => customVariablesControllerGetTeamCustomVariables(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CustomVariablesPaginatedResponseDto } from '../schemas/CustomVariablesPaginatedResponseDto';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CustomVariablesControllerListCustomVariablesQueryQueryParams {
6
+ orgIdentifier: string;
7
+ projectIdentifier: string;
8
+ /**
9
+ * @format int32
10
+ * @default 0
11
+ */
12
+ page?: number;
13
+ /**
14
+ * @format int32
15
+ * @default 1000
16
+ */
17
+ pageSize?: number;
18
+ }
19
+ export type CustomVariablesControllerListCustomVariablesOkResponse = ResponseWithPagination<CustomVariablesPaginatedResponseDto>;
20
+ export type CustomVariablesControllerListCustomVariablesErrorResponse = unknown;
21
+ export interface CustomVariablesControllerListCustomVariablesProps extends Omit<FetcherOptions<CustomVariablesControllerListCustomVariablesQueryQueryParams, unknown>, 'url'> {
22
+ queryParams: CustomVariablesControllerListCustomVariablesQueryQueryParams;
23
+ }
24
+ export declare function customVariablesControllerListCustomVariables(props: CustomVariablesControllerListCustomVariablesProps): Promise<CustomVariablesControllerListCustomVariablesOkResponse>;
25
+ /**
26
+ * Lists all custom variables for a project/org with pagination. Results are sorted alphabetically by name (ascending).
27
+ */
28
+ export declare function useCustomVariablesControllerListCustomVariablesQuery(props: CustomVariablesControllerListCustomVariablesProps, options?: Omit<UseQueryOptions<CustomVariablesControllerListCustomVariablesOkResponse, CustomVariablesControllerListCustomVariablesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CustomVariablesControllerListCustomVariablesOkResponse, unknown>;
@@ -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 customVariablesControllerListCustomVariables(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all custom variables for a project/org with pagination. Results are sorted alphabetically by name (ascending).
11
+ */
12
+ export function useCustomVariablesControllerListCustomVariablesQuery(props, options) {
13
+ return useQuery(['CustomVariablesControllerListCustomVariables', props.queryParams], ({ signal }) => customVariablesControllerListCustomVariables(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomVariableResponseDto } from '../schemas/CustomVariableResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
4
+ import type { UpdateCustomVariableRequestDto } from '../schemas/UpdateCustomVariableRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CustomVariablesControllerUpdateCustomVariableMutationPathParams {
8
+ /**
9
+ * @format int32
10
+ */
11
+ id: number;
12
+ }
13
+ export interface CustomVariablesControllerUpdateCustomVariableMutationQueryParams {
14
+ orgIdentifier: string;
15
+ projectIdentifier: string;
16
+ }
17
+ export type CustomVariablesControllerUpdateCustomVariableRequestBody = UpdateCustomVariableRequestDto;
18
+ export type CustomVariablesControllerUpdateCustomVariableOkResponse = ResponseWithPagination<CustomVariableResponseDto>;
19
+ export type CustomVariablesControllerUpdateCustomVariableErrorResponse = ErrorResponse;
20
+ export interface CustomVariablesControllerUpdateCustomVariableProps extends CustomVariablesControllerUpdateCustomVariableMutationPathParams, Omit<FetcherOptions<CustomVariablesControllerUpdateCustomVariableMutationQueryParams, CustomVariablesControllerUpdateCustomVariableRequestBody>, 'url'> {
21
+ queryParams: CustomVariablesControllerUpdateCustomVariableMutationQueryParams;
22
+ body: CustomVariablesControllerUpdateCustomVariableRequestBody;
23
+ }
24
+ export declare function customVariablesControllerUpdateCustomVariable(props: CustomVariablesControllerUpdateCustomVariableProps): Promise<CustomVariablesControllerUpdateCustomVariableOkResponse>;
25
+ /**
26
+ * Updates description and/or default values of a custom variable. Name cannot be updated. If default_values is provided, it must not be empty.
27
+ */
28
+ export declare function useCustomVariablesControllerUpdateCustomVariableMutation(options?: Omit<UseMutationOptions<CustomVariablesControllerUpdateCustomVariableOkResponse, CustomVariablesControllerUpdateCustomVariableErrorResponse, CustomVariablesControllerUpdateCustomVariableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomVariablesControllerUpdateCustomVariableOkResponse, ErrorResponse, CustomVariablesControllerUpdateCustomVariableProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function customVariablesControllerUpdateCustomVariable(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables/${props.id}`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Updates description and/or default values of a custom variable. Name cannot be updated. If default_values is provided, it must not be empty.
11
+ */
12
+ export function useCustomVariablesControllerUpdateCustomVariableMutation(options) {
13
+ return useMutation((mutateProps) => customVariablesControllerUpdateCustomVariable(mutateProps), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomVariableTeamOverrideResponseDto } from '../schemas/CustomVariableTeamOverrideResponseDto';
3
+ import type { ErrorResponse } from '../schemas/ErrorResponse';
4
+ import type { UpdateCustomVariableTeamOverrideRequestDto } from '../schemas/UpdateCustomVariableTeamOverrideRequestDto';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationPathParams {
8
+ /**
9
+ * @format int32
10
+ */
11
+ teamRefId: number;
12
+ }
13
+ export interface CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationQueryParams {
14
+ orgIdentifier: string;
15
+ projectIdentifier: string;
16
+ }
17
+ export type CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideRequestBody = UpdateCustomVariableTeamOverrideRequestDto;
18
+ export type CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideOkResponse = ResponseWithPagination<CustomVariableTeamOverrideResponseDto>;
19
+ export type CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideErrorResponse = ErrorResponse;
20
+ export interface CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideProps extends CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationPathParams, Omit<FetcherOptions<CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationQueryParams, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideRequestBody>, 'url'> {
21
+ queryParams: CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationQueryParams;
22
+ body: CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideRequestBody;
23
+ }
24
+ export declare function customVariablesControllerUpdateTeamCustomVariableTeamOverride(props: CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideProps): Promise<CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideOkResponse>;
25
+ /**
26
+ * Creates or updates a team-level override for a custom variable. Only allowed for leaf teams. Override values must not be empty.
27
+ */
28
+ export declare function useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation(options?: Omit<UseMutationOptions<CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideOkResponse, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideErrorResponse, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideOkResponse, ErrorResponse, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideProps, unknown>;
@@ -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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function customVariablesControllerUpdateTeamCustomVariableTeamOverride(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-variables/teams/${props.teamRefId}`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Creates or updates a team-level override for a custom variable. Only allowed for leaf teams. Override values must not be empty.
11
+ */
12
+ export function useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation(options) {
13
+ return useMutation((mutateProps) => customVariablesControllerUpdateTeamCustomVariableTeamOverride(mutateProps), options);
14
+ }
@@ -10,7 +10,7 @@ export interface TeamsControllerGetTeamFiltersQueryPathParams {
10
10
  teamRefId: number;
11
11
  }
12
12
  export interface TeamsControllerGetTeamFiltersQueryQueryParams {
13
- integration_type?: 'AI' | 'CD' | 'CI' | 'CUSTOM_INGESTION' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY';
13
+ integration_type?: 'AI' | 'CD' | 'CI' | 'CUSTOM_INGESTION' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY' | 'TEST_MANAGEMENT';
14
14
  }
15
15
  export type TeamsControllerGetTeamFiltersOkResponse = ResponseWithPagination<TeamFiltersResponseDto>;
16
16
  export type TeamsControllerGetTeamFiltersErrorResponse = ErrorResponse;
@@ -9,7 +9,7 @@ export interface TeamsControllerGetTeamIntegrationFiltersQueryPathParams {
9
9
  teamRefId: number;
10
10
  }
11
11
  export interface TeamsControllerGetTeamIntegrationFiltersQueryQueryParams {
12
- integrationType?: 'AI' | 'CD' | 'CI' | 'CUSTOM_INGESTION' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY';
12
+ integrationType?: 'AI' | 'CD' | 'CI' | 'CUSTOM_INGESTION' | 'IM' | 'ITSM' | 'SCM' | 'SECURITY' | 'TEST_MANAGEMENT';
13
13
  }
14
14
  export type TeamsControllerGetTeamIntegrationFiltersOkResponse = ResponseWithPagination<GroupedTeamFiltersResponseDto>;
15
15
  export type TeamsControllerGetTeamIntegrationFiltersErrorResponse = GroupedTeamFiltersResponseDto;