@harnessio/react-integration-manager-client 0.5.5 → 0.5.7
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/integration-manager/src/services/hooks/useCreateMetricConfigMutation.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/useCreateMetricConfigMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useCreateMetricConfigOrgMutation.d.ts +21 -0
- package/dist/integration-manager/src/services/hooks/useCreateMetricConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useCreateMetricConfigProjectMutation.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useCreateMetricConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigMutation.d.ts +17 -0
- package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigOrgMutation.d.ts +18 -0
- package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigProjectMutation.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useDeleteMetricConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricConfigOrgQuery.d.ts +19 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricConfigOrgQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricConfigProjectQuery.d.ts +20 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricConfigProjectQuery.js +20 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricConfigQuery.d.ts +18 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricConfigQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useListMetricConfigsOrgQuery.d.ts +40 -0
- package/dist/integration-manager/src/services/hooks/useListMetricConfigsOrgQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useListMetricConfigsProjectQuery.d.ts +41 -0
- package/dist/integration-manager/src/services/hooks/useListMetricConfigsProjectQuery.js +20 -0
- package/dist/integration-manager/src/services/hooks/useListMetricConfigsQuery.d.ts +40 -0
- package/dist/integration-manager/src/services/hooks/useListMetricConfigsQuery.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigMutation.d.ts +21 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigOrgMutation.d.ts +22 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigProjectMutation.d.ts +23 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusMutation.d.ts +25 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusOrgMutation.d.ts +26 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusOrgMutation.js +14 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusProjectMutation.d.ts +27 -0
- package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusProjectMutation.js +14 -0
- package/dist/integration-manager/src/services/index.d.ts +45 -0
- package/dist/integration-manager/src/services/index.js +18 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigOrgRequest.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigProjectRequest.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigRequest.d.ts +7 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigOrgRequest.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigProjectRequest.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigRequest.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricConfig.d.ts +24 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricConfig.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricConfiguration.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricConfiguration.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricErrors.d.ts +3 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricErrors.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateMetricConfigRequest } from '../schemas/OpenapiCreateMetricConfigRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateMetricConfigMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type CreateMetricConfigRequestBody = OpenapiCreateMetricConfigRequest;
|
|
11
|
+
export type CreateMetricConfigOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
12
|
+
export type CreateMetricConfigErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface CreateMetricConfigProps extends CreateMetricConfigMutationPathParams, Omit<FetcherOptions<unknown, CreateMetricConfigRequestBody>, 'url'> {
|
|
14
|
+
body: CreateMetricConfigRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function createMetricConfig(props: CreateMetricConfigProps): Promise<CreateMetricConfigOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new metric configuration.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useCreateMetricConfigMutation(options?: Omit<UseMutationOptions<CreateMetricConfigOkResponse, CreateMetricConfigErrorResponse, CreateMetricConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMetricConfigOkResponse, ApierrorsErrorResponse, CreateMetricConfigProps, 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 createMetricConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new metric configuration.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateMetricConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createMetricConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateMetricConfigOrgRequest } from '../schemas/OpenapiCreateMetricConfigOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateMetricConfigOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type CreateMetricConfigOrgRequestBody = OpenapiCreateMetricConfigOrgRequest;
|
|
12
|
+
export type CreateMetricConfigOrgOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
13
|
+
export type CreateMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface CreateMetricConfigOrgProps extends CreateMetricConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, CreateMetricConfigOrgRequestBody>, 'url'> {
|
|
15
|
+
body: CreateMetricConfigOrgRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function createMetricConfigOrg(props: CreateMetricConfigOrgProps): Promise<CreateMetricConfigOrgOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create metric configuration at organization level
|
|
20
|
+
*/
|
|
21
|
+
export declare function useCreateMetricConfigOrgMutation(options?: Omit<UseMutationOptions<CreateMetricConfigOrgOkResponse, CreateMetricConfigOrgErrorResponse, CreateMetricConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMetricConfigOrgOkResponse, ApierrorsErrorResponse, CreateMetricConfigOrgProps, 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 createMetricConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create metric configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateMetricConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createMetricConfigOrg(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiCreateMetricConfigProjectRequest } from '../schemas/OpenapiCreateMetricConfigProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface CreateMetricConfigProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateMetricConfigProjectRequestBody = OpenapiCreateMetricConfigProjectRequest;
|
|
13
|
+
export type CreateMetricConfigProjectOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
14
|
+
export type CreateMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface CreateMetricConfigProjectProps extends CreateMetricConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, CreateMetricConfigProjectRequestBody>, 'url'> {
|
|
16
|
+
body: CreateMetricConfigProjectRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function createMetricConfigProject(props: CreateMetricConfigProjectProps): Promise<CreateMetricConfigProjectOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Create metric configuration at project level
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateMetricConfigProjectMutation(options?: Omit<UseMutationOptions<CreateMetricConfigProjectOkResponse, CreateMetricConfigProjectErrorResponse, CreateMetricConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateMetricConfigProjectOkResponse, ApierrorsErrorResponse, CreateMetricConfigProjectProps, 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 createMetricConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create metric configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateMetricConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createMetricConfigProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteMetricConfigMutationPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
metric_config_id: string;
|
|
8
|
+
}
|
|
9
|
+
export type DeleteMetricConfigOkResponse = ResponseWithPagination<unknown>;
|
|
10
|
+
export type DeleteMetricConfigErrorResponse = ApierrorsErrorResponse;
|
|
11
|
+
export interface DeleteMetricConfigProps extends DeleteMetricConfigMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
12
|
+
}
|
|
13
|
+
export declare function deleteMetricConfig(props: DeleteMetricConfigProps): Promise<DeleteMetricConfigOkResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Soft-deletes a metric configuration.
|
|
16
|
+
*/
|
|
17
|
+
export declare function useDeleteMetricConfigMutation(options?: Omit<UseMutationOptions<DeleteMetricConfigOkResponse, DeleteMetricConfigErrorResponse, DeleteMetricConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetricConfigOkResponse, ApierrorsErrorResponse, DeleteMetricConfigProps, 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 deleteMetricConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Soft-deletes a metric configuration.
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteMetricConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteMetricConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteMetricConfigOrgMutationPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
metric_config_id: string;
|
|
9
|
+
}
|
|
10
|
+
export type DeleteMetricConfigOrgOkResponse = ResponseWithPagination<unknown>;
|
|
11
|
+
export type DeleteMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
12
|
+
export interface DeleteMetricConfigOrgProps extends DeleteMetricConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function deleteMetricConfigOrg(props: DeleteMetricConfigOrgProps): Promise<DeleteMetricConfigOrgOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Delete metric configuration at organization level
|
|
17
|
+
*/
|
|
18
|
+
export declare function useDeleteMetricConfigOrgMutation(options?: Omit<UseMutationOptions<DeleteMetricConfigOrgOkResponse, DeleteMetricConfigOrgErrorResponse, DeleteMetricConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetricConfigOrgOkResponse, ApierrorsErrorResponse, DeleteMetricConfigOrgProps, 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 deleteMetricConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete metric configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteMetricConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteMetricConfigOrg(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface DeleteMetricConfigProjectMutationPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
metric_config_id: string;
|
|
10
|
+
}
|
|
11
|
+
export type DeleteMetricConfigProjectOkResponse = ResponseWithPagination<unknown>;
|
|
12
|
+
export type DeleteMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface DeleteMetricConfigProjectProps extends DeleteMetricConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function deleteMetricConfigProject(props: DeleteMetricConfigProjectProps): Promise<DeleteMetricConfigProjectOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Delete metric configuration at project level
|
|
18
|
+
*/
|
|
19
|
+
export declare function useDeleteMetricConfigProjectMutation(options?: Omit<UseMutationOptions<DeleteMetricConfigProjectOkResponse, DeleteMetricConfigProjectErrorResponse, DeleteMetricConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteMetricConfigProjectOkResponse, ApierrorsErrorResponse, DeleteMetricConfigProjectProps, 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 deleteMetricConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Delete metric configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteMetricConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteMetricConfigProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMetricConfigOrgQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
metric_config_id: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetMetricConfigOrgOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
12
|
+
export type GetMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface GetMetricConfigOrgProps extends GetMetricConfigOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getMetricConfigOrg(props: GetMetricConfigOrgProps): Promise<GetMetricConfigOrgOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get metric configuration at organization level
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetMetricConfigOrgQuery(props: GetMetricConfigOrgProps, options?: Omit<UseQueryOptions<GetMetricConfigOrgOkResponse, GetMetricConfigOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricConfigOrgOkResponse, ApierrorsErrorResponse>;
|
|
@@ -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 getMetricConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get metric configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMetricConfigOrgQuery(props, options) {
|
|
13
|
+
return useQuery(['getMetricConfigOrg', props.accountIdentifier, props.orgIdentifier, props.metric_config_id], ({ signal }) => getMetricConfigOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMetricConfigProjectQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
metric_config_id: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetMetricConfigProjectOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
13
|
+
export type GetMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface GetMetricConfigProjectProps extends GetMetricConfigProjectQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
15
|
+
}
|
|
16
|
+
export declare function getMetricConfigProject(props: GetMetricConfigProjectProps): Promise<GetMetricConfigProjectOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get metric configuration at project level
|
|
19
|
+
*/
|
|
20
|
+
export declare function useGetMetricConfigProjectQuery(props: GetMetricConfigProjectProps, options?: Omit<UseQueryOptions<GetMetricConfigProjectOkResponse, GetMetricConfigProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricConfigProjectOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 getMetricConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get metric configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMetricConfigProjectQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getMetricConfigProject',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.projectIdentifier,
|
|
18
|
+
props.metric_config_id,
|
|
19
|
+
], ({ signal }) => getMetricConfigProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMetricConfigQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
metric_config_id: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetMetricConfigOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
11
|
+
export type GetMetricConfigErrorResponse = ApierrorsErrorResponse;
|
|
12
|
+
export interface GetMetricConfigProps extends GetMetricConfigQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
|
|
13
|
+
}
|
|
14
|
+
export declare function getMetricConfig(props: GetMetricConfigProps): Promise<GetMetricConfigOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves a metric configuration by ID.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useGetMetricConfigQuery(props: GetMetricConfigProps, options?: Omit<UseQueryOptions<GetMetricConfigOkResponse, GetMetricConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricConfigOkResponse, ApierrorsErrorResponse>;
|
|
@@ -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 getMetricConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a metric configuration by ID.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMetricConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['getMetricConfig', props.accountIdentifier, props.metric_config_id], ({ signal }) => getMetricConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListMetricConfigsOrgQueryPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListMetricConfigsOrgQueryQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* Search term to filter metric configs by name
|
|
12
|
+
*/
|
|
13
|
+
searchterm?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum number of results to return (default 100)
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Number of results to skip for pagination
|
|
20
|
+
*/
|
|
21
|
+
offset?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Field to sort by
|
|
24
|
+
*/
|
|
25
|
+
sort?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Sort order: asc or desc
|
|
28
|
+
*/
|
|
29
|
+
order?: string;
|
|
30
|
+
}
|
|
31
|
+
export type ListMetricConfigsOrgOkResponse = ResponseWithPagination<TypesMetricConfig[]>;
|
|
32
|
+
export type ListMetricConfigsOrgErrorResponse = unknown;
|
|
33
|
+
export interface ListMetricConfigsOrgProps extends ListMetricConfigsOrgQueryPathParams, Omit<FetcherOptions<ListMetricConfigsOrgQueryQueryParams, unknown>, 'url'> {
|
|
34
|
+
queryParams: ListMetricConfigsOrgQueryQueryParams;
|
|
35
|
+
}
|
|
36
|
+
export declare function listMetricConfigsOrg(props: ListMetricConfigsOrgProps): Promise<ListMetricConfigsOrgOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* List metric configurations at organization level
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListMetricConfigsOrgQuery(props: ListMetricConfigsOrgProps, options?: Omit<UseQueryOptions<ListMetricConfigsOrgOkResponse, ListMetricConfigsOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMetricConfigsOrgOkResponse, 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 listMetricConfigsOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List metric configurations at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useListMetricConfigsOrgQuery(props, options) {
|
|
13
|
+
return useQuery(['listMetricConfigsOrg', props.accountIdentifier, props.orgIdentifier, props.queryParams], ({ signal }) => listMetricConfigsOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListMetricConfigsProjectQueryPathParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
orgIdentifier: string;
|
|
8
|
+
projectIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ListMetricConfigsProjectQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* Search term to filter metric configs by name
|
|
13
|
+
*/
|
|
14
|
+
searchterm?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum number of results to return (default 100)
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Number of results to skip for pagination
|
|
21
|
+
*/
|
|
22
|
+
offset?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Field to sort by
|
|
25
|
+
*/
|
|
26
|
+
sort?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Sort order: asc or desc
|
|
29
|
+
*/
|
|
30
|
+
order?: string;
|
|
31
|
+
}
|
|
32
|
+
export type ListMetricConfigsProjectOkResponse = ResponseWithPagination<TypesMetricConfig[]>;
|
|
33
|
+
export type ListMetricConfigsProjectErrorResponse = unknown;
|
|
34
|
+
export interface ListMetricConfigsProjectProps extends ListMetricConfigsProjectQueryPathParams, Omit<FetcherOptions<ListMetricConfigsProjectQueryQueryParams, unknown>, 'url'> {
|
|
35
|
+
queryParams: ListMetricConfigsProjectQueryQueryParams;
|
|
36
|
+
}
|
|
37
|
+
export declare function listMetricConfigsProject(props: ListMetricConfigsProjectProps): Promise<ListMetricConfigsProjectOkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* List metric configurations at project level
|
|
40
|
+
*/
|
|
41
|
+
export declare function useListMetricConfigsProjectQuery(props: ListMetricConfigsProjectProps, options?: Omit<UseQueryOptions<ListMetricConfigsProjectOkResponse, ListMetricConfigsProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMetricConfigsProjectOkResponse, unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 listMetricConfigsProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List metric configurations at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useListMetricConfigsProjectQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'listMetricConfigsProject',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.projectIdentifier,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => listMetricConfigsProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListMetricConfigsQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListMetricConfigsQueryQueryParams {
|
|
10
|
+
/**
|
|
11
|
+
* Search term to filter metric configs by name
|
|
12
|
+
*/
|
|
13
|
+
searchterm?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum number of results to return (default 100)
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Number of results to skip for pagination
|
|
20
|
+
*/
|
|
21
|
+
offset?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Field to sort by
|
|
24
|
+
*/
|
|
25
|
+
sort?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Sort order: asc or desc
|
|
28
|
+
*/
|
|
29
|
+
order?: string;
|
|
30
|
+
}
|
|
31
|
+
export type ListMetricConfigsOkResponse = ResponseWithPagination<TypesMetricConfig[]>;
|
|
32
|
+
export type ListMetricConfigsErrorResponse = ApierrorsErrorResponse;
|
|
33
|
+
export interface ListMetricConfigsProps extends ListMetricConfigsQueryPathParams, Omit<FetcherOptions<ListMetricConfigsQueryQueryParams, unknown>, 'url'> {
|
|
34
|
+
queryParams: ListMetricConfigsQueryQueryParams;
|
|
35
|
+
}
|
|
36
|
+
export declare function listMetricConfigs(props: ListMetricConfigsProps): Promise<ListMetricConfigsOkResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Lists metric configurations with optional filtering, pagination, and sorting.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListMetricConfigsQuery(props: ListMetricConfigsProps, options?: Omit<UseQueryOptions<ListMetricConfigsOkResponse, ListMetricConfigsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListMetricConfigsOkResponse, ApierrorsErrorResponse>;
|
|
@@ -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 listMetricConfigs(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists metric configurations with optional filtering, pagination, and sorting.
|
|
11
|
+
*/
|
|
12
|
+
export function useListMetricConfigsQuery(props, options) {
|
|
13
|
+
return useQuery(['listMetricConfigs', props.accountIdentifier, props.queryParams], ({ signal }) => listMetricConfigs(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiUpdateMetricConfigRequest } from '../schemas/OpenapiUpdateMetricConfigRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateMetricConfigMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
metric_config_id: string;
|
|
10
|
+
}
|
|
11
|
+
export type UpdateMetricConfigRequestBody = OpenapiUpdateMetricConfigRequest;
|
|
12
|
+
export type UpdateMetricConfigOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
13
|
+
export type UpdateMetricConfigErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface UpdateMetricConfigProps extends UpdateMetricConfigMutationPathParams, Omit<FetcherOptions<unknown, UpdateMetricConfigRequestBody>, 'url'> {
|
|
15
|
+
body: UpdateMetricConfigRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function updateMetricConfig(props: UpdateMetricConfigProps): Promise<UpdateMetricConfigOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Updates an existing metric configuration. Supports partial updates.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useUpdateMetricConfigMutation(options?: Omit<UseMutationOptions<UpdateMetricConfigOkResponse, UpdateMetricConfigErrorResponse, UpdateMetricConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetricConfigOkResponse, ApierrorsErrorResponse, UpdateMetricConfigProps, 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 updateMetricConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Updates an existing metric configuration. Supports partial updates.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMetricConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMetricConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiUpdateMetricConfigOrgRequest } from '../schemas/OpenapiUpdateMetricConfigOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateMetricConfigOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
metric_config_id: string;
|
|
11
|
+
}
|
|
12
|
+
export type UpdateMetricConfigOrgRequestBody = OpenapiUpdateMetricConfigOrgRequest;
|
|
13
|
+
export type UpdateMetricConfigOrgOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
14
|
+
export type UpdateMetricConfigOrgErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface UpdateMetricConfigOrgProps extends UpdateMetricConfigOrgMutationPathParams, Omit<FetcherOptions<unknown, UpdateMetricConfigOrgRequestBody>, 'url'> {
|
|
16
|
+
body: UpdateMetricConfigOrgRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function updateMetricConfigOrg(props: UpdateMetricConfigOrgProps): Promise<UpdateMetricConfigOrgOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Update metric configuration at organization level
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateMetricConfigOrgMutation(options?: Omit<UseMutationOptions<UpdateMetricConfigOrgOkResponse, UpdateMetricConfigOrgErrorResponse, UpdateMetricConfigOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetricConfigOrgOkResponse, ApierrorsErrorResponse, UpdateMetricConfigOrgProps, 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 updateMetricConfigOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update metric configuration at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMetricConfigOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMetricConfigOrg(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiUpdateMetricConfigProjectRequest } from '../schemas/OpenapiUpdateMetricConfigProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface UpdateMetricConfigProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
metric_config_id: string;
|
|
12
|
+
}
|
|
13
|
+
export type UpdateMetricConfigProjectRequestBody = OpenapiUpdateMetricConfigProjectRequest;
|
|
14
|
+
export type UpdateMetricConfigProjectOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
15
|
+
export type UpdateMetricConfigProjectErrorResponse = ApierrorsErrorResponse;
|
|
16
|
+
export interface UpdateMetricConfigProjectProps extends UpdateMetricConfigProjectMutationPathParams, Omit<FetcherOptions<unknown, UpdateMetricConfigProjectRequestBody>, 'url'> {
|
|
17
|
+
body: UpdateMetricConfigProjectRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function updateMetricConfigProject(props: UpdateMetricConfigProjectProps): Promise<UpdateMetricConfigProjectOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Update metric configuration at project level
|
|
22
|
+
*/
|
|
23
|
+
export declare function useUpdateMetricConfigProjectMutation(options?: Omit<UseMutationOptions<UpdateMetricConfigProjectOkResponse, UpdateMetricConfigProjectErrorResponse, UpdateMetricConfigProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetricConfigProjectOkResponse, ApierrorsErrorResponse, UpdateMetricConfigProjectProps, 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 updateMetricConfigProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update metric configuration at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMetricConfigProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMetricConfigProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateMetricConfigStatusMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
metric_config_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UpdateMetricConfigStatusMutationQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* Action to perform: 'enable' or 'disable'
|
|
13
|
+
*/
|
|
14
|
+
action: string;
|
|
15
|
+
}
|
|
16
|
+
export type UpdateMetricConfigStatusOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
17
|
+
export type UpdateMetricConfigStatusErrorResponse = ApierrorsErrorResponse;
|
|
18
|
+
export interface UpdateMetricConfigStatusProps extends UpdateMetricConfigStatusMutationPathParams, Omit<FetcherOptions<UpdateMetricConfigStatusMutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: UpdateMetricConfigStatusMutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function updateMetricConfigStatus(props: UpdateMetricConfigStatusProps): Promise<UpdateMetricConfigStatusOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Enable or disable a metric configuration.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useUpdateMetricConfigStatusMutation(options?: Omit<UseMutationOptions<UpdateMetricConfigStatusOkResponse, UpdateMetricConfigStatusErrorResponse, UpdateMetricConfigStatusProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetricConfigStatusOkResponse, ApierrorsErrorResponse, UpdateMetricConfigStatusProps, 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 updateMetricConfigStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}/status`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Enable or disable a metric configuration.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMetricConfigStatusMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMetricConfigStatus(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusOrgMutation.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateMetricConfigStatusOrgMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
metric_config_id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface UpdateMetricConfigStatusOrgMutationQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* Action to perform: 'enable' or 'disable'
|
|
14
|
+
*/
|
|
15
|
+
action: string;
|
|
16
|
+
}
|
|
17
|
+
export type UpdateMetricConfigStatusOrgOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
18
|
+
export type UpdateMetricConfigStatusOrgErrorResponse = ApierrorsErrorResponse;
|
|
19
|
+
export interface UpdateMetricConfigStatusOrgProps extends UpdateMetricConfigStatusOrgMutationPathParams, Omit<FetcherOptions<UpdateMetricConfigStatusOrgMutationQueryParams, unknown>, 'url'> {
|
|
20
|
+
queryParams: UpdateMetricConfigStatusOrgMutationQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function updateMetricConfigStatusOrg(props: UpdateMetricConfigStatusOrgProps): Promise<UpdateMetricConfigStatusOrgOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Update metric configuration status at organization level
|
|
25
|
+
*/
|
|
26
|
+
export declare function useUpdateMetricConfigStatusOrgMutation(options?: Omit<UseMutationOptions<UpdateMetricConfigStatusOrgOkResponse, UpdateMetricConfigStatusOrgErrorResponse, UpdateMetricConfigStatusOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetricConfigStatusOrgOkResponse, ApierrorsErrorResponse, UpdateMetricConfigStatusOrgProps, 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 updateMetricConfigStatusOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}/status`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update metric configuration status at organization level
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMetricConfigStatusOrgMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMetricConfigStatusOrg(mutateProps), options);
|
|
14
|
+
}
|
package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusProjectMutation.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesMetricConfig } from '../schemas/TypesMetricConfig';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface UpdateMetricConfigStatusProjectMutationPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
metric_config_id: string;
|
|
11
|
+
}
|
|
12
|
+
export interface UpdateMetricConfigStatusProjectMutationQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* Action to perform: 'enable' or 'disable'
|
|
15
|
+
*/
|
|
16
|
+
action: string;
|
|
17
|
+
}
|
|
18
|
+
export type UpdateMetricConfigStatusProjectOkResponse = ResponseWithPagination<TypesMetricConfig>;
|
|
19
|
+
export type UpdateMetricConfigStatusProjectErrorResponse = ApierrorsErrorResponse;
|
|
20
|
+
export interface UpdateMetricConfigStatusProjectProps extends UpdateMetricConfigStatusProjectMutationPathParams, Omit<FetcherOptions<UpdateMetricConfigStatusProjectMutationQueryParams, unknown>, 'url'> {
|
|
21
|
+
queryParams: UpdateMetricConfigStatusProjectMutationQueryParams;
|
|
22
|
+
}
|
|
23
|
+
export declare function updateMetricConfigStatusProject(props: UpdateMetricConfigStatusProjectProps): Promise<UpdateMetricConfigStatusProjectOkResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Update metric configuration status at project level
|
|
26
|
+
*/
|
|
27
|
+
export declare function useUpdateMetricConfigStatusProjectMutation(options?: Omit<UseMutationOptions<UpdateMetricConfigStatusProjectOkResponse, UpdateMetricConfigStatusProjectErrorResponse, UpdateMetricConfigStatusProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateMetricConfigStatusProjectOkResponse, ApierrorsErrorResponse, UpdateMetricConfigStatusProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useUpdateMetricConfigStatusProjectMutation.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function updateMetricConfigStatusProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}/status`, method: 'PATCH' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Update metric configuration status at project level
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateMetricConfigStatusProjectMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => updateMetricConfigStatusProject(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -13,6 +13,12 @@ export type { CreateIntegrationConfigOrgErrorResponse, CreateIntegrationConfigOr
|
|
|
13
13
|
export { createIntegrationConfigOrg, useCreateIntegrationConfigOrgMutation, } from './hooks/useCreateIntegrationConfigOrgMutation';
|
|
14
14
|
export type { CreateIntegrationConfigProjectErrorResponse, CreateIntegrationConfigProjectMutationPathParams, CreateIntegrationConfigProjectOkResponse, CreateIntegrationConfigProjectProps, CreateIntegrationConfigProjectRequestBody, } from './hooks/useCreateIntegrationConfigProjectMutation';
|
|
15
15
|
export { createIntegrationConfigProject, useCreateIntegrationConfigProjectMutation, } from './hooks/useCreateIntegrationConfigProjectMutation';
|
|
16
|
+
export type { CreateMetricConfigErrorResponse, CreateMetricConfigMutationPathParams, CreateMetricConfigOkResponse, CreateMetricConfigProps, CreateMetricConfigRequestBody, } from './hooks/useCreateMetricConfigMutation';
|
|
17
|
+
export { createMetricConfig, useCreateMetricConfigMutation, } from './hooks/useCreateMetricConfigMutation';
|
|
18
|
+
export type { CreateMetricConfigOrgErrorResponse, CreateMetricConfigOrgMutationPathParams, CreateMetricConfigOrgOkResponse, CreateMetricConfigOrgProps, CreateMetricConfigOrgRequestBody, } from './hooks/useCreateMetricConfigOrgMutation';
|
|
19
|
+
export { createMetricConfigOrg, useCreateMetricConfigOrgMutation, } from './hooks/useCreateMetricConfigOrgMutation';
|
|
20
|
+
export type { CreateMetricConfigProjectErrorResponse, CreateMetricConfigProjectMutationPathParams, CreateMetricConfigProjectOkResponse, CreateMetricConfigProjectProps, CreateMetricConfigProjectRequestBody, } from './hooks/useCreateMetricConfigProjectMutation';
|
|
21
|
+
export { createMetricConfigProject, useCreateMetricConfigProjectMutation, } from './hooks/useCreateMetricConfigProjectMutation';
|
|
16
22
|
export type { DeleteAgentErrorResponse, DeleteAgentMutationPathParams, DeleteAgentOkResponse, DeleteAgentProps, } from './hooks/useDeleteAgentMutation';
|
|
17
23
|
export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
|
|
18
24
|
export type { DeleteIntegrationConfigErrorResponse, DeleteIntegrationConfigMutationPathParams, DeleteIntegrationConfigOkResponse, DeleteIntegrationConfigProps, } from './hooks/useDeleteIntegrationConfigMutation';
|
|
@@ -21,6 +27,12 @@ export type { DeleteIntegrationConfigOrgErrorResponse, DeleteIntegrationConfigOr
|
|
|
21
27
|
export { deleteIntegrationConfigOrg, useDeleteIntegrationConfigOrgMutation, } from './hooks/useDeleteIntegrationConfigOrgMutation';
|
|
22
28
|
export type { DeleteIntegrationConfigProjectErrorResponse, DeleteIntegrationConfigProjectMutationPathParams, DeleteIntegrationConfigProjectOkResponse, DeleteIntegrationConfigProjectProps, } from './hooks/useDeleteIntegrationConfigProjectMutation';
|
|
23
29
|
export { deleteIntegrationConfigProject, useDeleteIntegrationConfigProjectMutation, } from './hooks/useDeleteIntegrationConfigProjectMutation';
|
|
30
|
+
export type { DeleteMetricConfigErrorResponse, DeleteMetricConfigMutationPathParams, DeleteMetricConfigOkResponse, DeleteMetricConfigProps, } from './hooks/useDeleteMetricConfigMutation';
|
|
31
|
+
export { deleteMetricConfig, useDeleteMetricConfigMutation, } from './hooks/useDeleteMetricConfigMutation';
|
|
32
|
+
export type { DeleteMetricConfigOrgErrorResponse, DeleteMetricConfigOrgMutationPathParams, DeleteMetricConfigOrgOkResponse, DeleteMetricConfigOrgProps, } from './hooks/useDeleteMetricConfigOrgMutation';
|
|
33
|
+
export { deleteMetricConfigOrg, useDeleteMetricConfigOrgMutation, } from './hooks/useDeleteMetricConfigOrgMutation';
|
|
34
|
+
export type { DeleteMetricConfigProjectErrorResponse, DeleteMetricConfigProjectMutationPathParams, DeleteMetricConfigProjectOkResponse, DeleteMetricConfigProjectProps, } from './hooks/useDeleteMetricConfigProjectMutation';
|
|
35
|
+
export { deleteMetricConfigProject, useDeleteMetricConfigProjectMutation, } from './hooks/useDeleteMetricConfigProjectMutation';
|
|
24
36
|
export type { DeleteSettingErrorResponse, DeleteSettingMutationPathParams, DeleteSettingOkResponse, DeleteSettingProps, } from './hooks/useDeleteSettingMutation';
|
|
25
37
|
export { deleteSetting, useDeleteSettingMutation } from './hooks/useDeleteSettingMutation';
|
|
26
38
|
export type { DeleteSettingOrgErrorResponse, DeleteSettingOrgMutationPathParams, DeleteSettingOrgOkResponse, DeleteSettingOrgProps, } from './hooks/useDeleteSettingOrgMutation';
|
|
@@ -55,6 +67,12 @@ export type { GetIntegrationConfigProjectErrorResponse, GetIntegrationConfigProj
|
|
|
55
67
|
export { getIntegrationConfigProject, useGetIntegrationConfigProjectQuery, } from './hooks/useGetIntegrationConfigProjectQuery';
|
|
56
68
|
export type { GetIntegrationConfigErrorResponse, GetIntegrationConfigOkResponse, GetIntegrationConfigProps, GetIntegrationConfigQueryPathParams, } from './hooks/useGetIntegrationConfigQuery';
|
|
57
69
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
70
|
+
export type { GetMetricConfigOrgErrorResponse, GetMetricConfigOrgOkResponse, GetMetricConfigOrgProps, GetMetricConfigOrgQueryPathParams, } from './hooks/useGetMetricConfigOrgQuery';
|
|
71
|
+
export { getMetricConfigOrg, useGetMetricConfigOrgQuery } from './hooks/useGetMetricConfigOrgQuery';
|
|
72
|
+
export type { GetMetricConfigProjectErrorResponse, GetMetricConfigProjectOkResponse, GetMetricConfigProjectProps, GetMetricConfigProjectQueryPathParams, } from './hooks/useGetMetricConfigProjectQuery';
|
|
73
|
+
export { getMetricConfigProject, useGetMetricConfigProjectQuery, } from './hooks/useGetMetricConfigProjectQuery';
|
|
74
|
+
export type { GetMetricConfigErrorResponse, GetMetricConfigOkResponse, GetMetricConfigProps, GetMetricConfigQueryPathParams, } from './hooks/useGetMetricConfigQuery';
|
|
75
|
+
export { getMetricConfig, useGetMetricConfigQuery } from './hooks/useGetMetricConfigQuery';
|
|
58
76
|
export type { ListAgentsErrorResponse, ListAgentsOkResponse, ListAgentsProps, ListAgentsQueryPathParams, } from './hooks/useListAgentsQuery';
|
|
59
77
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
|
60
78
|
export type { ListDefaultMappingFieldsErrorResponse, ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsProps, ListDefaultMappingFieldsQueryPathParams, ListDefaultMappingFieldsQueryQueryParams, } from './hooks/useListDefaultMappingFieldsQuery';
|
|
@@ -73,6 +91,12 @@ export type { ListIntegrationEventsProjectErrorResponse, ListIntegrationEventsPr
|
|
|
73
91
|
export { listIntegrationEventsProject, useListIntegrationEventsProjectQuery, } from './hooks/useListIntegrationEventsProjectQuery';
|
|
74
92
|
export type { ListIntegrationEventsErrorResponse, ListIntegrationEventsOkResponse, ListIntegrationEventsProps, ListIntegrationEventsQueryPathParams, ListIntegrationEventsQueryQueryParams, } from './hooks/useListIntegrationEventsQuery';
|
|
75
93
|
export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
|
|
94
|
+
export type { ListMetricConfigsOrgErrorResponse, ListMetricConfigsOrgOkResponse, ListMetricConfigsOrgProps, ListMetricConfigsOrgQueryPathParams, ListMetricConfigsOrgQueryQueryParams, } from './hooks/useListMetricConfigsOrgQuery';
|
|
95
|
+
export { listMetricConfigsOrg, useListMetricConfigsOrgQuery, } from './hooks/useListMetricConfigsOrgQuery';
|
|
96
|
+
export type { ListMetricConfigsProjectErrorResponse, ListMetricConfigsProjectOkResponse, ListMetricConfigsProjectProps, ListMetricConfigsProjectQueryPathParams, ListMetricConfigsProjectQueryQueryParams, } from './hooks/useListMetricConfigsProjectQuery';
|
|
97
|
+
export { listMetricConfigsProject, useListMetricConfigsProjectQuery, } from './hooks/useListMetricConfigsProjectQuery';
|
|
98
|
+
export type { ListMetricConfigsErrorResponse, ListMetricConfigsOkResponse, ListMetricConfigsProps, ListMetricConfigsQueryPathParams, ListMetricConfigsQueryQueryParams, } from './hooks/useListMetricConfigsQuery';
|
|
99
|
+
export { listMetricConfigs, useListMetricConfigsQuery } from './hooks/useListMetricConfigsQuery';
|
|
76
100
|
export type { ListSettingsOrgErrorResponse, ListSettingsOrgOkResponse, ListSettingsOrgProps, ListSettingsOrgQueryPathParams, } from './hooks/useListSettingsOrgQuery';
|
|
77
101
|
export { listSettingsOrg, useListSettingsOrgQuery } from './hooks/useListSettingsOrgQuery';
|
|
78
102
|
export type { ListSettingsProjectErrorResponse, ListSettingsProjectOkResponse, ListSettingsProjectProps, ListSettingsProjectQueryPathParams, } from './hooks/useListSettingsProjectQuery';
|
|
@@ -111,6 +135,18 @@ export type { UpdateIntegrationStatusOrgErrorResponse, UpdateIntegrationStatusOr
|
|
|
111
135
|
export { updateIntegrationStatusOrg, useUpdateIntegrationStatusOrgMutation, } from './hooks/useUpdateIntegrationStatusOrgMutation';
|
|
112
136
|
export type { UpdateIntegrationStatusProjectErrorResponse, UpdateIntegrationStatusProjectMutationPathParams, UpdateIntegrationStatusProjectMutationQueryParams, UpdateIntegrationStatusProjectOkResponse, UpdateIntegrationStatusProjectProps, } from './hooks/useUpdateIntegrationStatusProjectMutation';
|
|
113
137
|
export { updateIntegrationStatusProject, useUpdateIntegrationStatusProjectMutation, } from './hooks/useUpdateIntegrationStatusProjectMutation';
|
|
138
|
+
export type { UpdateMetricConfigErrorResponse, UpdateMetricConfigMutationPathParams, UpdateMetricConfigOkResponse, UpdateMetricConfigProps, UpdateMetricConfigRequestBody, } from './hooks/useUpdateMetricConfigMutation';
|
|
139
|
+
export { updateMetricConfig, useUpdateMetricConfigMutation, } from './hooks/useUpdateMetricConfigMutation';
|
|
140
|
+
export type { UpdateMetricConfigOrgErrorResponse, UpdateMetricConfigOrgMutationPathParams, UpdateMetricConfigOrgOkResponse, UpdateMetricConfigOrgProps, UpdateMetricConfigOrgRequestBody, } from './hooks/useUpdateMetricConfigOrgMutation';
|
|
141
|
+
export { updateMetricConfigOrg, useUpdateMetricConfigOrgMutation, } from './hooks/useUpdateMetricConfigOrgMutation';
|
|
142
|
+
export type { UpdateMetricConfigProjectErrorResponse, UpdateMetricConfigProjectMutationPathParams, UpdateMetricConfigProjectOkResponse, UpdateMetricConfigProjectProps, UpdateMetricConfigProjectRequestBody, } from './hooks/useUpdateMetricConfigProjectMutation';
|
|
143
|
+
export { updateMetricConfigProject, useUpdateMetricConfigProjectMutation, } from './hooks/useUpdateMetricConfigProjectMutation';
|
|
144
|
+
export type { UpdateMetricConfigStatusErrorResponse, UpdateMetricConfigStatusMutationPathParams, UpdateMetricConfigStatusMutationQueryParams, UpdateMetricConfigStatusOkResponse, UpdateMetricConfigStatusProps, } from './hooks/useUpdateMetricConfigStatusMutation';
|
|
145
|
+
export { updateMetricConfigStatus, useUpdateMetricConfigStatusMutation, } from './hooks/useUpdateMetricConfigStatusMutation';
|
|
146
|
+
export type { UpdateMetricConfigStatusOrgErrorResponse, UpdateMetricConfigStatusOrgMutationPathParams, UpdateMetricConfigStatusOrgMutationQueryParams, UpdateMetricConfigStatusOrgOkResponse, UpdateMetricConfigStatusOrgProps, } from './hooks/useUpdateMetricConfigStatusOrgMutation';
|
|
147
|
+
export { updateMetricConfigStatusOrg, useUpdateMetricConfigStatusOrgMutation, } from './hooks/useUpdateMetricConfigStatusOrgMutation';
|
|
148
|
+
export type { UpdateMetricConfigStatusProjectErrorResponse, UpdateMetricConfigStatusProjectMutationPathParams, UpdateMetricConfigStatusProjectMutationQueryParams, UpdateMetricConfigStatusProjectOkResponse, UpdateMetricConfigStatusProjectProps, } from './hooks/useUpdateMetricConfigStatusProjectMutation';
|
|
149
|
+
export { updateMetricConfigStatusProject, useUpdateMetricConfigStatusProjectMutation, } from './hooks/useUpdateMetricConfigStatusProjectMutation';
|
|
114
150
|
export type { UpsertSettingsErrorResponse, UpsertSettingsMutationPathParams, UpsertSettingsOkResponse, UpsertSettingsProps, UpsertSettingsRequestBody, } from './hooks/useUpsertSettingsMutation';
|
|
115
151
|
export { upsertSettings, useUpsertSettingsMutation } from './hooks/useUpsertSettingsMutation';
|
|
116
152
|
export type { UpsertSettingsOrgErrorResponse, UpsertSettingsOrgMutationPathParams, UpsertSettingsOrgOkResponse, UpsertSettingsOrgProps, UpsertSettingsOrgRequestBody, } from './hooks/useUpsertSettingsOrgMutation';
|
|
@@ -151,6 +187,9 @@ export type { OpenapiCreateAirbyteIntegrationConfigRequest } from './schemas/Ope
|
|
|
151
187
|
export type { OpenapiCreateIntegrationConfigOrgRequest } from './schemas/OpenapiCreateIntegrationConfigOrgRequest';
|
|
152
188
|
export type { OpenapiCreateIntegrationConfigProjectRequest } from './schemas/OpenapiCreateIntegrationConfigProjectRequest';
|
|
153
189
|
export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCreateIntegrationConfigRequest';
|
|
190
|
+
export type { OpenapiCreateMetricConfigOrgRequest } from './schemas/OpenapiCreateMetricConfigOrgRequest';
|
|
191
|
+
export type { OpenapiCreateMetricConfigProjectRequest } from './schemas/OpenapiCreateMetricConfigProjectRequest';
|
|
192
|
+
export type { OpenapiCreateMetricConfigRequest } from './schemas/OpenapiCreateMetricConfigRequest';
|
|
154
193
|
export type { OpenapiFieldValFilterRequest } from './schemas/OpenapiFieldValFilterRequest';
|
|
155
194
|
export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
|
|
156
195
|
export type { OpenapiGetEntitiesOrgRequest } from './schemas/OpenapiGetEntitiesOrgRequest';
|
|
@@ -168,6 +207,9 @@ export type { OpenapiUpdateAirbyteIntegrationConfigRequest } from './schemas/Ope
|
|
|
168
207
|
export type { OpenapiUpdateIntegrationConfigOrgRequest } from './schemas/OpenapiUpdateIntegrationConfigOrgRequest';
|
|
169
208
|
export type { OpenapiUpdateIntegrationConfigProjectRequest } from './schemas/OpenapiUpdateIntegrationConfigProjectRequest';
|
|
170
209
|
export type { OpenapiUpdateIntegrationConfigRequest } from './schemas/OpenapiUpdateIntegrationConfigRequest';
|
|
210
|
+
export type { OpenapiUpdateMetricConfigOrgRequest } from './schemas/OpenapiUpdateMetricConfigOrgRequest';
|
|
211
|
+
export type { OpenapiUpdateMetricConfigProjectRequest } from './schemas/OpenapiUpdateMetricConfigProjectRequest';
|
|
212
|
+
export type { OpenapiUpdateMetricConfigRequest } from './schemas/OpenapiUpdateMetricConfigRequest';
|
|
171
213
|
export type { OpenapiValidateCustomSchemaOrgRequest } from './schemas/OpenapiValidateCustomSchemaOrgRequest';
|
|
172
214
|
export type { OpenapiValidateCustomSchemaProjectRequest } from './schemas/OpenapiValidateCustomSchemaProjectRequest';
|
|
173
215
|
export type { OpenapiValidateCustomSchemaRequest } from './schemas/OpenapiValidateCustomSchemaRequest';
|
|
@@ -205,6 +247,9 @@ export type { TypesLastSyncInfo } from './schemas/TypesLastSyncInfo';
|
|
|
205
247
|
export type { TypesListDefaultMappingFieldsResponse } from './schemas/TypesListDefaultMappingFieldsResponse';
|
|
206
248
|
export type { TypesMappingConfig } from './schemas/TypesMappingConfig';
|
|
207
249
|
export type { TypesMappingSpec } from './schemas/TypesMappingSpec';
|
|
250
|
+
export type { TypesMetricConfig } from './schemas/TypesMetricConfig';
|
|
251
|
+
export type { TypesMetricConfiguration } from './schemas/TypesMetricConfiguration';
|
|
252
|
+
export type { TypesMetricErrors } from './schemas/TypesMetricErrors';
|
|
208
253
|
export type { TypesReevalState } from './schemas/TypesReevalState';
|
|
209
254
|
export type { TypesSchemaMapping } from './schemas/TypesSchemaMapping';
|
|
210
255
|
export type { TypesScope } from './schemas/TypesScope';
|
|
@@ -5,10 +5,16 @@ export { createAirbyteIntegrationConfigProject, useCreateAirbyteIntegrationConfi
|
|
|
5
5
|
export { createIntegrationConfig, useCreateIntegrationConfigMutation, } from './hooks/useCreateIntegrationConfigMutation';
|
|
6
6
|
export { createIntegrationConfigOrg, useCreateIntegrationConfigOrgMutation, } from './hooks/useCreateIntegrationConfigOrgMutation';
|
|
7
7
|
export { createIntegrationConfigProject, useCreateIntegrationConfigProjectMutation, } from './hooks/useCreateIntegrationConfigProjectMutation';
|
|
8
|
+
export { createMetricConfig, useCreateMetricConfigMutation, } from './hooks/useCreateMetricConfigMutation';
|
|
9
|
+
export { createMetricConfigOrg, useCreateMetricConfigOrgMutation, } from './hooks/useCreateMetricConfigOrgMutation';
|
|
10
|
+
export { createMetricConfigProject, useCreateMetricConfigProjectMutation, } from './hooks/useCreateMetricConfigProjectMutation';
|
|
8
11
|
export { deleteAgent, useDeleteAgentMutation } from './hooks/useDeleteAgentMutation';
|
|
9
12
|
export { deleteIntegrationConfig, useDeleteIntegrationConfigMutation, } from './hooks/useDeleteIntegrationConfigMutation';
|
|
10
13
|
export { deleteIntegrationConfigOrg, useDeleteIntegrationConfigOrgMutation, } from './hooks/useDeleteIntegrationConfigOrgMutation';
|
|
11
14
|
export { deleteIntegrationConfigProject, useDeleteIntegrationConfigProjectMutation, } from './hooks/useDeleteIntegrationConfigProjectMutation';
|
|
15
|
+
export { deleteMetricConfig, useDeleteMetricConfigMutation, } from './hooks/useDeleteMetricConfigMutation';
|
|
16
|
+
export { deleteMetricConfigOrg, useDeleteMetricConfigOrgMutation, } from './hooks/useDeleteMetricConfigOrgMutation';
|
|
17
|
+
export { deleteMetricConfigProject, useDeleteMetricConfigProjectMutation, } from './hooks/useDeleteMetricConfigProjectMutation';
|
|
12
18
|
export { deleteSetting, useDeleteSettingMutation } from './hooks/useDeleteSettingMutation';
|
|
13
19
|
export { deleteSettingOrg, useDeleteSettingOrgMutation } from './hooks/useDeleteSettingOrgMutation';
|
|
14
20
|
export { deleteSettingProject, useDeleteSettingProjectMutation, } from './hooks/useDeleteSettingProjectMutation';
|
|
@@ -26,6 +32,9 @@ export { getHealth, useGetHealthQuery } from './hooks/useGetHealthQuery';
|
|
|
26
32
|
export { getIntegrationConfigOrg, useGetIntegrationConfigOrgQuery, } from './hooks/useGetIntegrationConfigOrgQuery';
|
|
27
33
|
export { getIntegrationConfigProject, useGetIntegrationConfigProjectQuery, } from './hooks/useGetIntegrationConfigProjectQuery';
|
|
28
34
|
export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/useGetIntegrationConfigQuery';
|
|
35
|
+
export { getMetricConfigOrg, useGetMetricConfigOrgQuery } from './hooks/useGetMetricConfigOrgQuery';
|
|
36
|
+
export { getMetricConfigProject, useGetMetricConfigProjectQuery, } from './hooks/useGetMetricConfigProjectQuery';
|
|
37
|
+
export { getMetricConfig, useGetMetricConfigQuery } from './hooks/useGetMetricConfigQuery';
|
|
29
38
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
|
30
39
|
export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
|
|
31
40
|
export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
|
|
@@ -35,6 +44,9 @@ export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks
|
|
|
35
44
|
export { listIntegrationEventsOrg, useListIntegrationEventsOrgQuery, } from './hooks/useListIntegrationEventsOrgQuery';
|
|
36
45
|
export { listIntegrationEventsProject, useListIntegrationEventsProjectQuery, } from './hooks/useListIntegrationEventsProjectQuery';
|
|
37
46
|
export { listIntegrationEvents, useListIntegrationEventsQuery, } from './hooks/useListIntegrationEventsQuery';
|
|
47
|
+
export { listMetricConfigsOrg, useListMetricConfigsOrgQuery, } from './hooks/useListMetricConfigsOrgQuery';
|
|
48
|
+
export { listMetricConfigsProject, useListMetricConfigsProjectQuery, } from './hooks/useListMetricConfigsProjectQuery';
|
|
49
|
+
export { listMetricConfigs, useListMetricConfigsQuery } from './hooks/useListMetricConfigsQuery';
|
|
38
50
|
export { listSettingsOrg, useListSettingsOrgQuery } from './hooks/useListSettingsOrgQuery';
|
|
39
51
|
export { listSettingsProject, useListSettingsProjectQuery, } from './hooks/useListSettingsProjectQuery';
|
|
40
52
|
export { listSettings, useListSettingsQuery } from './hooks/useListSettingsQuery';
|
|
@@ -54,6 +66,12 @@ export { updateIntegrationConfigProject, useUpdateIntegrationConfigProjectMutati
|
|
|
54
66
|
export { updateIntegrationStatus, useUpdateIntegrationStatusMutation, } from './hooks/useUpdateIntegrationStatusMutation';
|
|
55
67
|
export { updateIntegrationStatusOrg, useUpdateIntegrationStatusOrgMutation, } from './hooks/useUpdateIntegrationStatusOrgMutation';
|
|
56
68
|
export { updateIntegrationStatusProject, useUpdateIntegrationStatusProjectMutation, } from './hooks/useUpdateIntegrationStatusProjectMutation';
|
|
69
|
+
export { updateMetricConfig, useUpdateMetricConfigMutation, } from './hooks/useUpdateMetricConfigMutation';
|
|
70
|
+
export { updateMetricConfigOrg, useUpdateMetricConfigOrgMutation, } from './hooks/useUpdateMetricConfigOrgMutation';
|
|
71
|
+
export { updateMetricConfigProject, useUpdateMetricConfigProjectMutation, } from './hooks/useUpdateMetricConfigProjectMutation';
|
|
72
|
+
export { updateMetricConfigStatus, useUpdateMetricConfigStatusMutation, } from './hooks/useUpdateMetricConfigStatusMutation';
|
|
73
|
+
export { updateMetricConfigStatusOrg, useUpdateMetricConfigStatusOrgMutation, } from './hooks/useUpdateMetricConfigStatusOrgMutation';
|
|
74
|
+
export { updateMetricConfigStatusProject, useUpdateMetricConfigStatusProjectMutation, } from './hooks/useUpdateMetricConfigStatusProjectMutation';
|
|
57
75
|
export { upsertSettings, useUpsertSettingsMutation } from './hooks/useUpsertSettingsMutation';
|
|
58
76
|
export { upsertSettingsOrg, useUpsertSettingsOrgMutation, } from './hooks/useUpsertSettingsOrgMutation';
|
|
59
77
|
export { upsertSettingsProject, useUpsertSettingsProjectMutation, } from './hooks/useUpsertSettingsProjectMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/integration-manager/src/services/schemas/OpenapiCreateMetricConfigProjectRequest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/integration-manager/src/services/schemas/OpenapiUpdateMetricConfigProjectRequest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TypesMetricConfiguration } from '../schemas/TypesMetricConfiguration';
|
|
2
|
+
import type { TypesMetricErrors } from '../schemas/TypesMetricErrors';
|
|
3
|
+
export interface TypesMetricConfig {
|
|
4
|
+
configuration?: TypesMetricConfiguration;
|
|
5
|
+
/**
|
|
6
|
+
* @format date-time
|
|
7
|
+
*/
|
|
8
|
+
created?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format date-time
|
|
11
|
+
*/
|
|
12
|
+
deleted_at?: string | null;
|
|
13
|
+
description?: string;
|
|
14
|
+
enabled?: boolean;
|
|
15
|
+
errors?: TypesMetricErrors;
|
|
16
|
+
is_deleted?: boolean;
|
|
17
|
+
metric_id?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
space_path?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @format date-time
|
|
22
|
+
*/
|
|
23
|
+
updated?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED