@harnessio/react-sei-panorama-service-client 0.26.11 → 0.26.12
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/useCustomVariablesControllerCreateCustomVariableMutation.d.ts +22 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerCreateCustomVariableMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteCustomVariableMutation.d.ts +24 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteCustomVariableMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery.d.ts +26 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerListCustomVariablesQuery.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerListCustomVariablesQuery.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateCustomVariableMutation.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateCustomVariableMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation.d.ts +28 -0
- package/dist/sei-panorama-service/src/services/hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation.js +14 -0
- package/dist/sei-panorama-service/src/services/index.d.ts +22 -2
- package/dist/sei-panorama-service/src/services/index.js +7 -0
- package/dist/sei-panorama-service/src/services/schemas/CreateCustomVariableRequestDto.d.ts +20 -0
- package/dist/sei-panorama-service/src/services/schemas/CustomVariableResponseDto.d.ts +53 -0
- package/dist/sei-panorama-service/src/services/schemas/CustomVariableResponseDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/CustomVariableTeamOverrideResponseDto.d.ts +40 -0
- package/dist/sei-panorama-service/src/services/schemas/CustomVariableTeamOverrideResponseDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/CustomVariablesPaginatedResponseDto.d.ts +42 -0
- package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.d.ts +6 -3
- package/dist/sei-panorama-service/src/services/schemas/IngestionRequest.js +3 -0
- package/dist/sei-panorama-service/src/services/schemas/MttrConfigurationDto.d.ts +2 -2
- package/dist/sei-panorama-service/src/services/schemas/MttrDrilldownRequest.d.ts +1 -1
- package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariableResponseDto.d.ts +36 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariableResponseDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariablesResponseDto.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/TeamCustomVariablesResponseDto.js +1 -0
- package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableRequestDto.d.ts +15 -0
- package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableRequestDto.js +4 -0
- package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableTeamOverrideRequestDto.d.ts +16 -0
- package/dist/sei-panorama-service/src/services/schemas/UpdateCustomVariableTeamOverrideRequestDto.js +4 -0
- package/package.json +1 -1
- package/dist/sei-panorama-service/src/services/schemas/DataRecord.d.ts +0 -20
- package/dist/sei-panorama-service/src/services/schemas/RecordBatch.d.ts +0 -15
- /package/dist/sei-panorama-service/src/services/schemas/{DataRecord.js → CreateCustomVariableRequestDto.js} +0 -0
- /package/dist/sei-panorama-service/src/services/schemas/{RecordBatch.js → CustomVariablesPaginatedResponseDto.js} +0 -0
|
@@ -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
|
+
}
|
|
@@ -89,6 +89,20 @@ export type { CustomMetricsControllerIngestDataErrorResponse, CustomMetricsContr
|
|
|
89
89
|
export { customMetricsControllerIngestData, useCustomMetricsControllerIngestDataMutation, } from './hooks/useCustomMetricsControllerIngestDataMutation';
|
|
90
90
|
export type { CustomMetricsControllerRegisterSchemaErrorResponse, CustomMetricsControllerRegisterSchemaMutationPathParams, CustomMetricsControllerRegisterSchemaOkResponse, CustomMetricsControllerRegisterSchemaProps, CustomMetricsControllerRegisterSchemaRequestBody, } from './hooks/useCustomMetricsControllerRegisterSchemaMutation';
|
|
91
91
|
export { customMetricsControllerRegisterSchema, useCustomMetricsControllerRegisterSchemaMutation, } from './hooks/useCustomMetricsControllerRegisterSchemaMutation';
|
|
92
|
+
export type { CustomVariablesControllerCreateCustomVariableErrorResponse, CustomVariablesControllerCreateCustomVariableMutationQueryParams, CustomVariablesControllerCreateCustomVariableOkResponse, CustomVariablesControllerCreateCustomVariableProps, CustomVariablesControllerCreateCustomVariableRequestBody, } from './hooks/useCustomVariablesControllerCreateCustomVariableMutation';
|
|
93
|
+
export { customVariablesControllerCreateCustomVariable, useCustomVariablesControllerCreateCustomVariableMutation, } from './hooks/useCustomVariablesControllerCreateCustomVariableMutation';
|
|
94
|
+
export type { CustomVariablesControllerDeleteCustomVariableErrorResponse, CustomVariablesControllerDeleteCustomVariableMutationPathParams, CustomVariablesControllerDeleteCustomVariableMutationQueryParams, CustomVariablesControllerDeleteCustomVariableOkResponse, CustomVariablesControllerDeleteCustomVariableProps, } from './hooks/useCustomVariablesControllerDeleteCustomVariableMutation';
|
|
95
|
+
export { customVariablesControllerDeleteCustomVariable, useCustomVariablesControllerDeleteCustomVariableMutation, } from './hooks/useCustomVariablesControllerDeleteCustomVariableMutation';
|
|
96
|
+
export type { CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideErrorResponse, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationPathParams, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutationQueryParams, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideOkResponse, CustomVariablesControllerDeleteTeamCustomVariableTeamOverrideProps, } from './hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation';
|
|
97
|
+
export { customVariablesControllerDeleteTeamCustomVariableTeamOverride, useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation, } from './hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation';
|
|
98
|
+
export type { CustomVariablesControllerGetTeamCustomVariablesErrorResponse, CustomVariablesControllerGetTeamCustomVariablesOkResponse, CustomVariablesControllerGetTeamCustomVariablesProps, CustomVariablesControllerGetTeamCustomVariablesQueryPathParams, CustomVariablesControllerGetTeamCustomVariablesQueryQueryParams, } from './hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery';
|
|
99
|
+
export { customVariablesControllerGetTeamCustomVariables, useCustomVariablesControllerGetTeamCustomVariablesQuery, } from './hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery';
|
|
100
|
+
export type { CustomVariablesControllerListCustomVariablesErrorResponse, CustomVariablesControllerListCustomVariablesOkResponse, CustomVariablesControllerListCustomVariablesProps, CustomVariablesControllerListCustomVariablesQueryQueryParams, } from './hooks/useCustomVariablesControllerListCustomVariablesQuery';
|
|
101
|
+
export { customVariablesControllerListCustomVariables, useCustomVariablesControllerListCustomVariablesQuery, } from './hooks/useCustomVariablesControllerListCustomVariablesQuery';
|
|
102
|
+
export type { CustomVariablesControllerUpdateCustomVariableErrorResponse, CustomVariablesControllerUpdateCustomVariableMutationPathParams, CustomVariablesControllerUpdateCustomVariableMutationQueryParams, CustomVariablesControllerUpdateCustomVariableOkResponse, CustomVariablesControllerUpdateCustomVariableProps, CustomVariablesControllerUpdateCustomVariableRequestBody, } from './hooks/useCustomVariablesControllerUpdateCustomVariableMutation';
|
|
103
|
+
export { customVariablesControllerUpdateCustomVariable, useCustomVariablesControllerUpdateCustomVariableMutation, } from './hooks/useCustomVariablesControllerUpdateCustomVariableMutation';
|
|
104
|
+
export type { CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideErrorResponse, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationPathParams, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutationQueryParams, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideOkResponse, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideProps, CustomVariablesControllerUpdateTeamCustomVariableTeamOverrideRequestBody, } from './hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation';
|
|
105
|
+
export { customVariablesControllerUpdateTeamCustomVariableTeamOverride, useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation, } from './hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation';
|
|
92
106
|
export type { DeveloperControllerActivateDeveloperVersionErrorResponse, DeveloperControllerActivateDeveloperVersionMutationPathParams, DeveloperControllerActivateDeveloperVersionOkResponse, DeveloperControllerActivateDeveloperVersionProps, DeveloperControllerActivateDeveloperVersionRequestBody, } from './hooks/useDeveloperControllerActivateDeveloperVersionMutation';
|
|
93
107
|
export { developerControllerActivateDeveloperVersion, useDeveloperControllerActivateDeveloperVersionMutation, } from './hooks/useDeveloperControllerActivateDeveloperVersionMutation';
|
|
94
108
|
export type { DeveloperControllerApproveDevelopersSaveErrorResponse, DeveloperControllerApproveDevelopersSaveMutationPathParams, DeveloperControllerApproveDevelopersSaveOkResponse, DeveloperControllerApproveDevelopersSaveProps, } from './hooks/useDeveloperControllerApproveDevelopersSaveMutation';
|
|
@@ -545,15 +559,18 @@ export type { CollectionFilter } from './schemas/CollectionFilter';
|
|
|
545
559
|
export type { CollectionTree } from './schemas/CollectionTree';
|
|
546
560
|
export type { ColumnDefinition } from './schemas/ColumnDefinition';
|
|
547
561
|
export type { CommitInfo } from './schemas/CommitInfo';
|
|
562
|
+
export type { CreateCustomVariableRequestDto } from './schemas/CreateCustomVariableRequestDto';
|
|
548
563
|
export type { CreatedBy } from './schemas/CreatedBy';
|
|
549
564
|
export type { CursorMetrics } from './schemas/CursorMetrics';
|
|
565
|
+
export type { CustomVariableResponseDto } from './schemas/CustomVariableResponseDto';
|
|
566
|
+
export type { CustomVariableTeamOverrideResponseDto } from './schemas/CustomVariableTeamOverrideResponseDto';
|
|
567
|
+
export type { CustomVariablesPaginatedResponseDto } from './schemas/CustomVariablesPaginatedResponseDto';
|
|
550
568
|
export type { DailyCountDataPoint } from './schemas/DailyCountDataPoint';
|
|
551
569
|
export type { DailyLicenseUsageResponseDto } from './schemas/DailyLicenseUsageResponseDto';
|
|
552
570
|
export type { DataPoint } from './schemas/DataPoint';
|
|
553
571
|
export type { DataPointBreakdown } from './schemas/DataPointBreakdown';
|
|
554
572
|
export type { DataPointChangeFailureRate } from './schemas/DataPointChangeFailureRate';
|
|
555
573
|
export type { DataPointDeploymentFrequency } from './schemas/DataPointDeploymentFrequency';
|
|
556
|
-
export type { DataRecord } from './schemas/DataRecord';
|
|
557
574
|
export type { DateRange } from './schemas/DateRange';
|
|
558
575
|
export type { DbListResponseCategory } from './schemas/DbListResponseCategory';
|
|
559
576
|
export type { DbListResponseCollectionTree } from './schemas/DbListResponseCollectionTree';
|
|
@@ -769,7 +786,6 @@ export type { RankConfig } from './schemas/RankConfig';
|
|
|
769
786
|
export type { RatingConfig } from './schemas/RatingConfig';
|
|
770
787
|
export type { RatingDto } from './schemas/RatingDto';
|
|
771
788
|
export type { RatingLevel } from './schemas/RatingLevel';
|
|
772
|
-
export type { RecordBatch } from './schemas/RecordBatch';
|
|
773
789
|
export type { RefIdDto } from './schemas/RefIdDto';
|
|
774
790
|
export type { ReleaseIssueDto } from './schemas/ReleaseIssueDto';
|
|
775
791
|
export type { ReleaseIssuesResponseWrapper } from './schemas/ReleaseIssuesResponseWrapper';
|
|
@@ -829,6 +845,8 @@ export type { SummarySection } from './schemas/SummarySection';
|
|
|
829
845
|
export type { SummaryValue } from './schemas/SummaryValue';
|
|
830
846
|
export type { SummaryValueChange } from './schemas/SummaryValueChange';
|
|
831
847
|
export type { TeamAccessDto } from './schemas/TeamAccessDto';
|
|
848
|
+
export type { TeamCustomVariableResponseDto } from './schemas/TeamCustomVariableResponseDto';
|
|
849
|
+
export type { TeamCustomVariablesResponseDto } from './schemas/TeamCustomVariablesResponseDto';
|
|
832
850
|
export type { TeamDeveloperDto } from './schemas/TeamDeveloperDto';
|
|
833
851
|
export type { TeamDeveloperSearchParams } from './schemas/TeamDeveloperSearchParams';
|
|
834
852
|
export type { TeamDevelopersDto } from './schemas/TeamDevelopersDto';
|
|
@@ -851,6 +869,8 @@ export type { TenantMvAnalysis } from './schemas/TenantMvAnalysis';
|
|
|
851
869
|
export type { ToolSummary } from './schemas/ToolSummary';
|
|
852
870
|
export type { TotalStatisticCount } from './schemas/TotalStatisticCount';
|
|
853
871
|
export type { TrendDataPoint } from './schemas/TrendDataPoint';
|
|
872
|
+
export type { UpdateCustomVariableRequestDto } from './schemas/UpdateCustomVariableRequestDto';
|
|
873
|
+
export type { UpdateCustomVariableTeamOverrideRequestDto } from './schemas/UpdateCustomVariableTeamOverrideRequestDto';
|
|
854
874
|
export type { UserInfo } from './schemas/UserInfo';
|
|
855
875
|
export type { UserMetrics } from './schemas/UserMetrics';
|
|
856
876
|
export type { ValidationError } from './schemas/ValidationError';
|
|
@@ -43,6 +43,13 @@ export { customMetricsControllerGetIngestionStatus, useCustomMetricsControllerGe
|
|
|
43
43
|
export { customMetricsControllerGetSchema, useCustomMetricsControllerGetSchemaQuery, } from './hooks/useCustomMetricsControllerGetSchemaQuery';
|
|
44
44
|
export { customMetricsControllerIngestData, useCustomMetricsControllerIngestDataMutation, } from './hooks/useCustomMetricsControllerIngestDataMutation';
|
|
45
45
|
export { customMetricsControllerRegisterSchema, useCustomMetricsControllerRegisterSchemaMutation, } from './hooks/useCustomMetricsControllerRegisterSchemaMutation';
|
|
46
|
+
export { customVariablesControllerCreateCustomVariable, useCustomVariablesControllerCreateCustomVariableMutation, } from './hooks/useCustomVariablesControllerCreateCustomVariableMutation';
|
|
47
|
+
export { customVariablesControllerDeleteCustomVariable, useCustomVariablesControllerDeleteCustomVariableMutation, } from './hooks/useCustomVariablesControllerDeleteCustomVariableMutation';
|
|
48
|
+
export { customVariablesControllerDeleteTeamCustomVariableTeamOverride, useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation, } from './hooks/useCustomVariablesControllerDeleteTeamCustomVariableTeamOverrideMutation';
|
|
49
|
+
export { customVariablesControllerGetTeamCustomVariables, useCustomVariablesControllerGetTeamCustomVariablesQuery, } from './hooks/useCustomVariablesControllerGetTeamCustomVariablesQuery';
|
|
50
|
+
export { customVariablesControllerListCustomVariables, useCustomVariablesControllerListCustomVariablesQuery, } from './hooks/useCustomVariablesControllerListCustomVariablesQuery';
|
|
51
|
+
export { customVariablesControllerUpdateCustomVariable, useCustomVariablesControllerUpdateCustomVariableMutation, } from './hooks/useCustomVariablesControllerUpdateCustomVariableMutation';
|
|
52
|
+
export { customVariablesControllerUpdateTeamCustomVariableTeamOverride, useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation, } from './hooks/useCustomVariablesControllerUpdateTeamCustomVariableTeamOverrideMutation';
|
|
46
53
|
export { developerControllerActivateDeveloperVersion, useDeveloperControllerActivateDeveloperVersionMutation, } from './hooks/useDeveloperControllerActivateDeveloperVersionMutation';
|
|
47
54
|
export { developerControllerApproveDevelopersSave, useDeveloperControllerApproveDevelopersSaveMutation, } from './hooks/useDeveloperControllerApproveDevelopersSaveMutation';
|
|
48
55
|
export { developerControllerDeleteDevelopers, useDeveloperControllerDeleteDevelopersMutation, } from './hooks/useDeveloperControllerDeleteDevelopersMutation';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to create a new custom variable
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateCustomVariableRequestDto {
|
|
5
|
+
/**
|
|
6
|
+
* Default values for the custom variable
|
|
7
|
+
* @example ["P0","P1","P2"]
|
|
8
|
+
*/
|
|
9
|
+
defaultValues: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Description of the custom variable
|
|
12
|
+
* @example "Priority levels for bugs"
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name of the custom variable
|
|
17
|
+
* @example "bug_priority"
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom variable details
|
|
3
|
+
*/
|
|
4
|
+
export interface CustomVariableResponseDto {
|
|
5
|
+
/**
|
|
6
|
+
* Creation timestamp
|
|
7
|
+
* @format date-time
|
|
8
|
+
* @example "2026-02-22T10:30:00Z"
|
|
9
|
+
*/
|
|
10
|
+
createdAt: string;
|
|
11
|
+
/**
|
|
12
|
+
* Default values
|
|
13
|
+
* @example ["P0","P1","P2"]
|
|
14
|
+
*/
|
|
15
|
+
defaultValues: string[];
|
|
16
|
+
/**
|
|
17
|
+
* Description of the custom variable
|
|
18
|
+
* @example "Priority levels for bugs"
|
|
19
|
+
*/
|
|
20
|
+
description?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Custom variable ID
|
|
23
|
+
* @format int32
|
|
24
|
+
* @example 123
|
|
25
|
+
*/
|
|
26
|
+
id: number;
|
|
27
|
+
/**
|
|
28
|
+
* Name of the custom variable
|
|
29
|
+
* @example "bug_priority"
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Operator for the custom variable
|
|
34
|
+
* @example "IN"
|
|
35
|
+
*/
|
|
36
|
+
operator: string;
|
|
37
|
+
/**
|
|
38
|
+
* Organization identifier
|
|
39
|
+
* @example "org456"
|
|
40
|
+
*/
|
|
41
|
+
orgId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Project identifier
|
|
44
|
+
* @example "proj123"
|
|
45
|
+
*/
|
|
46
|
+
projectId: string;
|
|
47
|
+
/**
|
|
48
|
+
* Last update timestamp
|
|
49
|
+
* @format date-time
|
|
50
|
+
* @example "2026-02-22T11:45:00Z"
|
|
51
|
+
*/
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
}
|
package/dist/sei-panorama-service/src/services/schemas/CustomVariableTeamOverrideResponseDto.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Team custom variable override details
|
|
3
|
+
*/
|
|
4
|
+
export interface CustomVariableTeamOverrideResponseDto {
|
|
5
|
+
/**
|
|
6
|
+
* Creation timestamp
|
|
7
|
+
* @format date-time
|
|
8
|
+
* @example "2026-02-22T10:30:00Z"
|
|
9
|
+
*/
|
|
10
|
+
createdAt: string;
|
|
11
|
+
/**
|
|
12
|
+
* Custom variable ID
|
|
13
|
+
* @format int32
|
|
14
|
+
* @example 123
|
|
15
|
+
*/
|
|
16
|
+
customVariableId: number;
|
|
17
|
+
/**
|
|
18
|
+
* Override ID
|
|
19
|
+
* @format int32
|
|
20
|
+
* @example 456
|
|
21
|
+
*/
|
|
22
|
+
id: number;
|
|
23
|
+
/**
|
|
24
|
+
* Override values
|
|
25
|
+
* @example ["P0","P1"]
|
|
26
|
+
*/
|
|
27
|
+
overrideValues: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Team reference ID
|
|
30
|
+
* @format int32
|
|
31
|
+
* @example 789
|
|
32
|
+
*/
|
|
33
|
+
teamRefId: number;
|
|
34
|
+
/**
|
|
35
|
+
* Last update timestamp
|
|
36
|
+
* @format date-time
|
|
37
|
+
* @example "2026-02-22T12:00:00Z"
|
|
38
|
+
*/
|
|
39
|
+
updatedAt: string;
|
|
40
|
+
}
|
package/dist/sei-panorama-service/src/services/schemas/CustomVariablesPaginatedResponseDto.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { CustomVariableResponseDto } from '../schemas/CustomVariableResponseDto';
|
|
2
|
+
/**
|
|
3
|
+
* Paginated list of custom variables
|
|
4
|
+
*/
|
|
5
|
+
export interface CustomVariablesPaginatedResponseDto {
|
|
6
|
+
/**
|
|
7
|
+
* List of custom variables for the current page
|
|
8
|
+
*/
|
|
9
|
+
customVariables: CustomVariableResponseDto[];
|
|
10
|
+
/**
|
|
11
|
+
* Whether there is a next page available
|
|
12
|
+
*/
|
|
13
|
+
hasNext: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether there is a previous page available
|
|
16
|
+
*/
|
|
17
|
+
hasPrevious: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Current page number (0-based)
|
|
20
|
+
* @format int32
|
|
21
|
+
* @example 0
|
|
22
|
+
*/
|
|
23
|
+
pageIndex: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of items per page
|
|
26
|
+
* @format int32
|
|
27
|
+
* @example 100
|
|
28
|
+
*/
|
|
29
|
+
pageSize: number;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of custom variables across all pages
|
|
32
|
+
* @format int64
|
|
33
|
+
* @example 25
|
|
34
|
+
*/
|
|
35
|
+
totalItems: number;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of pages
|
|
38
|
+
* @format int32
|
|
39
|
+
* @example 1
|
|
40
|
+
*/
|
|
41
|
+
totalPages: number;
|
|
42
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type { RecordBatch } from '../schemas/RecordBatch';
|
|
2
1
|
/**
|
|
3
2
|
* Request for ingesting external data
|
|
4
3
|
*/
|
|
5
4
|
export interface IngestionRequest {
|
|
6
5
|
/**
|
|
7
|
-
* List of record
|
|
6
|
+
* List of records to ingest. Each record is a map of column names to values matching the schema.
|
|
8
7
|
*/
|
|
9
|
-
|
|
8
|
+
data: Array<{
|
|
9
|
+
[key: string]: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
10
13
|
}
|
|
@@ -13,9 +13,9 @@ export interface MttrConfigurationDto {
|
|
|
13
13
|
*/
|
|
14
14
|
event?: EfficiencyProfileEvent;
|
|
15
15
|
/**
|
|
16
|
-
* ITSM-specific: Include incidents
|
|
16
|
+
* ITSM-specific: Include incidents based on time range. CREATED=created during range, UPDATED=updated during range, ALL=no time filter. Defaults to ALL.
|
|
17
17
|
*/
|
|
18
|
-
itsmTimeRangeType?: 'CREATED' | 'UPDATED';
|
|
18
|
+
itsmTimeRangeType?: 'ALL' | 'CREATED' | 'UPDATED';
|
|
19
19
|
/**
|
|
20
20
|
* Rating configuration for MTTR thresholds
|
|
21
21
|
*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom variable with team-specific values
|
|
3
|
+
*/
|
|
4
|
+
export interface TeamCustomVariableResponseDto {
|
|
5
|
+
/**
|
|
6
|
+
* Description of the custom variable
|
|
7
|
+
* @example "Priority levels for bugs"
|
|
8
|
+
*/
|
|
9
|
+
description?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Custom variable ID
|
|
12
|
+
* @format int32
|
|
13
|
+
* @example 123
|
|
14
|
+
*/
|
|
15
|
+
id: number;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates whether the values are overridden for this team (true) or using default values (false)
|
|
18
|
+
* @example true
|
|
19
|
+
*/
|
|
20
|
+
isOverridden: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Name of the custom variable
|
|
23
|
+
* @example "bug_priority"
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Operator for the custom variable
|
|
28
|
+
* @example "IN"
|
|
29
|
+
*/
|
|
30
|
+
operator: string;
|
|
31
|
+
/**
|
|
32
|
+
* Values for this team (either overridden or default values)
|
|
33
|
+
* @example ["P0","P1"]
|
|
34
|
+
*/
|
|
35
|
+
values: string[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TeamCustomVariableResponseDto } from '../schemas/TeamCustomVariableResponseDto';
|
|
2
|
+
/**
|
|
3
|
+
* List of custom variables for a team with team-specific values
|
|
4
|
+
*/
|
|
5
|
+
export interface TeamCustomVariablesResponseDto {
|
|
6
|
+
/**
|
|
7
|
+
* List of custom variables with team-specific values
|
|
8
|
+
*/
|
|
9
|
+
customVariables: TeamCustomVariableResponseDto[];
|
|
10
|
+
/**
|
|
11
|
+
* Team reference ID
|
|
12
|
+
* @format int32
|
|
13
|
+
* @example 456
|
|
14
|
+
*/
|
|
15
|
+
teamRefId: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to update a custom variable (name is immutable)
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateCustomVariableRequestDto {
|
|
5
|
+
/**
|
|
6
|
+
* Updated default values (if provided, must not be empty)
|
|
7
|
+
* @example ["P0","P1","P2","P3"]
|
|
8
|
+
*/
|
|
9
|
+
defaultValues?: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Updated description
|
|
12
|
+
* @example "Updated priority levels for bugs"
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request to update team custom variable override
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateCustomVariableTeamOverrideRequestDto {
|
|
5
|
+
/**
|
|
6
|
+
* Custom variable ID
|
|
7
|
+
* @format int32
|
|
8
|
+
* @example 123
|
|
9
|
+
*/
|
|
10
|
+
customVariableId: number;
|
|
11
|
+
/**
|
|
12
|
+
* Override values for this team
|
|
13
|
+
* @example ["P0","P1"]
|
|
14
|
+
*/
|
|
15
|
+
overrideValues: string[];
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-sei-panorama-service-client",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.12",
|
|
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,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A single data point with timestamp and field values
|
|
3
|
-
*/
|
|
4
|
-
export interface DataRecord {
|
|
5
|
-
/**
|
|
6
|
-
* Field values as key-value pairs. Keys must match schema field definitions.
|
|
7
|
-
* @example {"team":"payments","application":"api","value":99.999}
|
|
8
|
-
*/
|
|
9
|
-
fields: {
|
|
10
|
-
[key: string]: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Timestamp when this data was recorded (ISO 8601 format)
|
|
16
|
-
* @format date-time
|
|
17
|
-
* @example "2024-02-13T10:00:00.000Z"
|
|
18
|
-
*/
|
|
19
|
-
timestamp: string;
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { DataRecord } from '../schemas/DataRecord';
|
|
2
|
-
/**
|
|
3
|
-
* A batch of data points grouped by record type
|
|
4
|
-
*/
|
|
5
|
-
export interface RecordBatch {
|
|
6
|
-
/**
|
|
7
|
-
* List of data points for this record type
|
|
8
|
-
*/
|
|
9
|
-
dataPoints: DataRecord[];
|
|
10
|
-
/**
|
|
11
|
-
* Type of records in this batch
|
|
12
|
-
* @example "availability"
|
|
13
|
-
*/
|
|
14
|
-
recordType: string;
|
|
15
|
-
}
|
|
File without changes
|
|
File without changes
|