@harnessio/react-integration-manager-client 0.6.1 → 0.6.2
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/useGetCustomEntitiesMutation.d.ts +44 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesMutation.js +38 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesOrgMutation.d.ts +45 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesOrgMutation.js +38 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesProjectMutation.d.ts +46 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesProjectMutation.js +38 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeMutation.d.ts +31 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeMutation.js +25 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeOrgMutation.d.ts +32 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeOrgMutation.js +25 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeProjectMutation.d.ts +33 -0
- package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeProjectMutation.js +25 -0
- package/dist/integration-manager/src/services/hooks/useGetEntitiesOrgMutation.d.ts +48 -0
- package/dist/integration-manager/src/services/hooks/useGetEntitiesOrgMutation.js +41 -0
- package/dist/integration-manager/src/services/hooks/useGetEntitiesProjectMutation.d.ts +49 -0
- package/dist/integration-manager/src/services/hooks/useGetEntitiesProjectMutation.js +41 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricTimeseriesOrgQuery.d.ts +42 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricTimeseriesOrgQuery.js +20 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricTimeseriesProjectQuery.d.ts +43 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricTimeseriesProjectQuery.js +21 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricTimeseriesQuery.d.ts +41 -0
- package/dist/integration-manager/src/services/hooks/useGetMetricTimeseriesQuery.js +14 -0
- package/dist/integration-manager/src/services/index.d.ts +38 -0
- package/dist/integration-manager/src/services/index.js +11 -0
- package/dist/integration-manager/src/services/schemas/EntityGetCustomEntitiesResponse.d.ts +6 -0
- package/dist/integration-manager/src/services/schemas/EntityGetCustomEntitiesResponse.js +1 -0
- package/dist/integration-manager/src/services/schemas/EntityGetCustomEntitiesTypeResponse.d.ts +3 -0
- package/dist/integration-manager/src/services/schemas/EntityGetCustomEntitiesTypeResponse.js +4 -0
- package/dist/integration-manager/src/services/schemas/EnumMetricAggregation.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/EnumMetricAggregation.js +4 -0
- package/dist/integration-manager/src/services/schemas/EnumMetricBucketSize.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/EnumMetricBucketSize.js +4 -0
- package/dist/integration-manager/src/services/schemas/EnumMetricTimeRange.d.ts +1 -0
- package/dist/integration-manager/src/services/schemas/EnumMetricTimeRange.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCustomIntegrationRequestOpenApi.d.ts +11 -0
- package/dist/integration-manager/src/services/schemas/OpenapiCustomIntegrationRequestOpenApi.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesOrgRequest.d.ts +9 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesProjectRequest.d.ts +9 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesRequest.d.ts +9 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesTypeOrgRequest.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesTypeOrgRequest.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesTypeProjectRequest.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesTypeProjectRequest.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesTypeRequest.d.ts +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesTypeRequest.js +4 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetEntitiesOrgRequest.d.ts +10 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetEntitiesOrgRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetEntitiesProjectRequest.d.ts +10 -0
- package/dist/integration-manager/src/services/schemas/OpenapiGetEntitiesProjectRequest.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesGetTimeseriesResponse.d.ts +15 -0
- package/dist/integration-manager/src/services/schemas/TypesGetTimeseriesResponse.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricDataPoint.d.ts +5 -0
- package/dist/integration-manager/src/services/schemas/TypesMetricDataPoint.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetCustomEntitiesResponse } from '../schemas/EntityGetCustomEntitiesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetCustomEntitiesRequest } from '../schemas/OpenapiGetCustomEntitiesRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetCustomEntitiesMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetCustomEntitiesRequestBody = OpenapiGetCustomEntitiesRequest;
|
|
11
|
+
export type GetCustomEntitiesOkResponse = ResponseWithPagination<EntityGetCustomEntitiesResponse>;
|
|
12
|
+
export type GetCustomEntitiesErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface GetCustomEntitiesProps extends GetCustomEntitiesMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesRequestBody>, 'url'> {
|
|
14
|
+
body: GetCustomEntitiesRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function getCustomEntities(props: GetCustomEntitiesProps): Promise<GetCustomEntitiesOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get custom-integration entities by (entity_ref, correlation_value, filter).
|
|
19
|
+
*
|
|
20
|
+
* Request Body (required):
|
|
21
|
+
* - integrations: Required array of per-integration queries. Each entry must include:
|
|
22
|
+
* - integration_id: Required.
|
|
23
|
+
* - data_kind: Required; used to load the entity mapping for correlation source_path.
|
|
24
|
+
* - scope: Optional; per-integration org/project. Account is always taken from the URL.
|
|
25
|
+
* - entity_ref: Optional; matched as related_fields entry "entity_ref:<value>".
|
|
26
|
+
* - correlation_value: Optional; matched as related_fields entry "<source_path>:<value>"
|
|
27
|
+
* where source_path is MappingConfig.CorrelationMapping.SourcePath.
|
|
28
|
+
* - At least one of entity_ref or correlation_value is required.
|
|
29
|
+
* - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
|
|
30
|
+
* a related_fields AND constraint ($in within values). Only fields written into
|
|
31
|
+
* related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
|
|
32
|
+
* - sort_by: "created", "last_updated" (default), "name", or "identifier".
|
|
33
|
+
* - order: "asc" or "desc" (default: "desc").
|
|
34
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
35
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
36
|
+
* - skip_count: When true (default), skips count and returns -1 as total.
|
|
37
|
+
*
|
|
38
|
+
* Response:
|
|
39
|
+
* - items: Array of matching entities.
|
|
40
|
+
* - pagination: Pagination metadata.
|
|
41
|
+
*
|
|
42
|
+
* Pagination applies globally across all per-integration conditions (OR'd at the store layer).
|
|
43
|
+
*/
|
|
44
|
+
export declare function useGetCustomEntitiesMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesOkResponse, GetCustomEntitiesErrorResponse, GetCustomEntitiesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesOkResponse, ApierrorsErrorResponse, GetCustomEntitiesProps, unknown>;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 getCustomEntities(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/entities/custom`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get custom-integration entities by (entity_ref, correlation_value, filter).
|
|
11
|
+
*
|
|
12
|
+
* Request Body (required):
|
|
13
|
+
* - integrations: Required array of per-integration queries. Each entry must include:
|
|
14
|
+
* - integration_id: Required.
|
|
15
|
+
* - data_kind: Required; used to load the entity mapping for correlation source_path.
|
|
16
|
+
* - scope: Optional; per-integration org/project. Account is always taken from the URL.
|
|
17
|
+
* - entity_ref: Optional; matched as related_fields entry "entity_ref:<value>".
|
|
18
|
+
* - correlation_value: Optional; matched as related_fields entry "<source_path>:<value>"
|
|
19
|
+
* where source_path is MappingConfig.CorrelationMapping.SourcePath.
|
|
20
|
+
* - At least one of entity_ref or correlation_value is required.
|
|
21
|
+
* - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
|
|
22
|
+
* a related_fields AND constraint ($in within values). Only fields written into
|
|
23
|
+
* related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
|
|
24
|
+
* - sort_by: "created", "last_updated" (default), "name", or "identifier".
|
|
25
|
+
* - order: "asc" or "desc" (default: "desc").
|
|
26
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
27
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
28
|
+
* - skip_count: When true (default), skips count and returns -1 as total.
|
|
29
|
+
*
|
|
30
|
+
* Response:
|
|
31
|
+
* - items: Array of matching entities.
|
|
32
|
+
* - pagination: Pagination metadata.
|
|
33
|
+
*
|
|
34
|
+
* Pagination applies globally across all per-integration conditions (OR'd at the store layer).
|
|
35
|
+
*/
|
|
36
|
+
export function useGetCustomEntitiesMutation(options) {
|
|
37
|
+
return useMutation((mutateProps) => getCustomEntities(mutateProps), options);
|
|
38
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetCustomEntitiesResponse } from '../schemas/EntityGetCustomEntitiesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetCustomEntitiesOrgRequest } from '../schemas/OpenapiGetCustomEntitiesOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetCustomEntitiesOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetCustomEntitiesOrgRequestBody = OpenapiGetCustomEntitiesOrgRequest;
|
|
12
|
+
export type GetCustomEntitiesOrgOkResponse = ResponseWithPagination<EntityGetCustomEntitiesResponse>;
|
|
13
|
+
export type GetCustomEntitiesOrgErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface GetCustomEntitiesOrgProps extends GetCustomEntitiesOrgMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesOrgRequestBody>, 'url'> {
|
|
15
|
+
body: GetCustomEntitiesOrgRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function getCustomEntitiesOrg(props: GetCustomEntitiesOrgProps): Promise<GetCustomEntitiesOrgOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get custom-integration entities by (entity_ref, correlation_value, filter).
|
|
20
|
+
*
|
|
21
|
+
* Request Body (required):
|
|
22
|
+
* - integrations: Required array of per-integration queries. Each entry must include:
|
|
23
|
+
* - integration_id: Required.
|
|
24
|
+
* - data_kind: Required; used to load the entity mapping for correlation source_path.
|
|
25
|
+
* - scope: Optional; per-integration org/project. Account is always taken from the URL.
|
|
26
|
+
* - entity_ref: Optional; matched as related_fields entry "entity_ref:<value>".
|
|
27
|
+
* - correlation_value: Optional; matched as related_fields entry "<source_path>:<value>"
|
|
28
|
+
* where source_path is MappingConfig.CorrelationMapping.SourcePath.
|
|
29
|
+
* - At least one of entity_ref or correlation_value is required.
|
|
30
|
+
* - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
|
|
31
|
+
* a related_fields AND constraint ($in within values). Only fields written into
|
|
32
|
+
* related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
|
|
33
|
+
* - sort_by: "created", "last_updated" (default), "name", or "identifier".
|
|
34
|
+
* - order: "asc" or "desc" (default: "desc").
|
|
35
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
36
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
37
|
+
* - skip_count: When true (default), skips count and returns -1 as total.
|
|
38
|
+
*
|
|
39
|
+
* Response:
|
|
40
|
+
* - items: Array of matching entities.
|
|
41
|
+
* - pagination: Pagination metadata.
|
|
42
|
+
*
|
|
43
|
+
* Pagination applies globally across all per-integration conditions (OR'd at the store layer).
|
|
44
|
+
*/
|
|
45
|
+
export declare function useGetCustomEntitiesOrgMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesOrgOkResponse, GetCustomEntitiesOrgErrorResponse, GetCustomEntitiesOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesOrgOkResponse, ApierrorsErrorResponse, GetCustomEntitiesOrgProps, unknown>;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 getCustomEntitiesOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/entities/custom`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get custom-integration entities by (entity_ref, correlation_value, filter).
|
|
11
|
+
*
|
|
12
|
+
* Request Body (required):
|
|
13
|
+
* - integrations: Required array of per-integration queries. Each entry must include:
|
|
14
|
+
* - integration_id: Required.
|
|
15
|
+
* - data_kind: Required; used to load the entity mapping for correlation source_path.
|
|
16
|
+
* - scope: Optional; per-integration org/project. Account is always taken from the URL.
|
|
17
|
+
* - entity_ref: Optional; matched as related_fields entry "entity_ref:<value>".
|
|
18
|
+
* - correlation_value: Optional; matched as related_fields entry "<source_path>:<value>"
|
|
19
|
+
* where source_path is MappingConfig.CorrelationMapping.SourcePath.
|
|
20
|
+
* - At least one of entity_ref or correlation_value is required.
|
|
21
|
+
* - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
|
|
22
|
+
* a related_fields AND constraint ($in within values). Only fields written into
|
|
23
|
+
* related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
|
|
24
|
+
* - sort_by: "created", "last_updated" (default), "name", or "identifier".
|
|
25
|
+
* - order: "asc" or "desc" (default: "desc").
|
|
26
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
27
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
28
|
+
* - skip_count: When true (default), skips count and returns -1 as total.
|
|
29
|
+
*
|
|
30
|
+
* Response:
|
|
31
|
+
* - items: Array of matching entities.
|
|
32
|
+
* - pagination: Pagination metadata.
|
|
33
|
+
*
|
|
34
|
+
* Pagination applies globally across all per-integration conditions (OR'd at the store layer).
|
|
35
|
+
*/
|
|
36
|
+
export function useGetCustomEntitiesOrgMutation(options) {
|
|
37
|
+
return useMutation((mutateProps) => getCustomEntitiesOrg(mutateProps), options);
|
|
38
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetCustomEntitiesResponse } from '../schemas/EntityGetCustomEntitiesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetCustomEntitiesProjectRequest } from '../schemas/OpenapiGetCustomEntitiesProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetCustomEntitiesProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetCustomEntitiesProjectRequestBody = OpenapiGetCustomEntitiesProjectRequest;
|
|
13
|
+
export type GetCustomEntitiesProjectOkResponse = ResponseWithPagination<EntityGetCustomEntitiesResponse>;
|
|
14
|
+
export type GetCustomEntitiesProjectErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface GetCustomEntitiesProjectProps extends GetCustomEntitiesProjectMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesProjectRequestBody>, 'url'> {
|
|
16
|
+
body: GetCustomEntitiesProjectRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function getCustomEntitiesProject(props: GetCustomEntitiesProjectProps): Promise<GetCustomEntitiesProjectOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get custom-integration entities by (entity_ref, correlation_value, filter).
|
|
21
|
+
*
|
|
22
|
+
* Request Body (required):
|
|
23
|
+
* - integrations: Required array of per-integration queries. Each entry must include:
|
|
24
|
+
* - integration_id: Required.
|
|
25
|
+
* - data_kind: Required; used to load the entity mapping for correlation source_path.
|
|
26
|
+
* - scope: Optional; per-integration org/project. Account is always taken from the URL.
|
|
27
|
+
* - entity_ref: Optional; matched as related_fields entry "entity_ref:<value>".
|
|
28
|
+
* - correlation_value: Optional; matched as related_fields entry "<source_path>:<value>"
|
|
29
|
+
* where source_path is MappingConfig.CorrelationMapping.SourcePath.
|
|
30
|
+
* - At least one of entity_ref or correlation_value is required.
|
|
31
|
+
* - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
|
|
32
|
+
* a related_fields AND constraint ($in within values). Only fields written into
|
|
33
|
+
* related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
|
|
34
|
+
* - sort_by: "created", "last_updated" (default), "name", or "identifier".
|
|
35
|
+
* - order: "asc" or "desc" (default: "desc").
|
|
36
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
37
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
38
|
+
* - skip_count: When true (default), skips count and returns -1 as total.
|
|
39
|
+
*
|
|
40
|
+
* Response:
|
|
41
|
+
* - items: Array of matching entities.
|
|
42
|
+
* - pagination: Pagination metadata.
|
|
43
|
+
*
|
|
44
|
+
* Pagination applies globally across all per-integration conditions (OR'd at the store layer).
|
|
45
|
+
*/
|
|
46
|
+
export declare function useGetCustomEntitiesProjectMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesProjectOkResponse, GetCustomEntitiesProjectErrorResponse, GetCustomEntitiesProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesProjectOkResponse, ApierrorsErrorResponse, GetCustomEntitiesProjectProps, unknown>;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 getCustomEntitiesProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/entities/custom`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get custom-integration entities by (entity_ref, correlation_value, filter).
|
|
11
|
+
*
|
|
12
|
+
* Request Body (required):
|
|
13
|
+
* - integrations: Required array of per-integration queries. Each entry must include:
|
|
14
|
+
* - integration_id: Required.
|
|
15
|
+
* - data_kind: Required; used to load the entity mapping for correlation source_path.
|
|
16
|
+
* - scope: Optional; per-integration org/project. Account is always taken from the URL.
|
|
17
|
+
* - entity_ref: Optional; matched as related_fields entry "entity_ref:<value>".
|
|
18
|
+
* - correlation_value: Optional; matched as related_fields entry "<source_path>:<value>"
|
|
19
|
+
* where source_path is MappingConfig.CorrelationMapping.SourcePath.
|
|
20
|
+
* - At least one of entity_ref or correlation_value is required.
|
|
21
|
+
* - filter: Optional map of additional indexed-field filters. Each key/values pair becomes
|
|
22
|
+
* a related_fields AND constraint ($in within values). Only fields written into
|
|
23
|
+
* related_fields by ingestion (entity_ref, type, correlation source_path) are queryable.
|
|
24
|
+
* - sort_by: "created", "last_updated" (default), "name", or "identifier".
|
|
25
|
+
* - order: "asc" or "desc" (default: "desc").
|
|
26
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
27
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
28
|
+
* - skip_count: When true (default), skips count and returns -1 as total.
|
|
29
|
+
*
|
|
30
|
+
* Response:
|
|
31
|
+
* - items: Array of matching entities.
|
|
32
|
+
* - pagination: Pagination metadata.
|
|
33
|
+
*
|
|
34
|
+
* Pagination applies globally across all per-integration conditions (OR'd at the store layer).
|
|
35
|
+
*/
|
|
36
|
+
export function useGetCustomEntitiesProjectMutation(options) {
|
|
37
|
+
return useMutation((mutateProps) => getCustomEntitiesProject(mutateProps), options);
|
|
38
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetCustomEntitiesTypeResponse } from '../schemas/EntityGetCustomEntitiesTypeResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetCustomEntitiesTypeRequest } from '../schemas/OpenapiGetCustomEntitiesTypeRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetCustomEntitiesTypeMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
}
|
|
10
|
+
export type GetCustomEntitiesTypeRequestBody = OpenapiGetCustomEntitiesTypeRequest;
|
|
11
|
+
export type GetCustomEntitiesTypeOkResponse = ResponseWithPagination<EntityGetCustomEntitiesTypeResponse>;
|
|
12
|
+
export type GetCustomEntitiesTypeErrorResponse = ApierrorsErrorResponse;
|
|
13
|
+
export interface GetCustomEntitiesTypeProps extends GetCustomEntitiesTypeMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesTypeRequestBody>, 'url'> {
|
|
14
|
+
body: GetCustomEntitiesTypeRequestBody;
|
|
15
|
+
}
|
|
16
|
+
export declare function getCustomEntitiesType(props: GetCustomEntitiesTypeProps): Promise<GetCustomEntitiesTypeOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the distinct spec.type values present in entities for a custom integration.
|
|
19
|
+
*
|
|
20
|
+
* Scope (account/org/project) is taken from the URL path.
|
|
21
|
+
*
|
|
22
|
+
* Request body:
|
|
23
|
+
* - integration_id: Required; identifier of the custom integration.
|
|
24
|
+
* - kind: Required; entity kind (lowercased server-side).
|
|
25
|
+
*
|
|
26
|
+
* Backed by the indexed related_fields array, where ingestion writes spec.type as "type:<value>".
|
|
27
|
+
*
|
|
28
|
+
* Response:
|
|
29
|
+
* - types: Array of distinct type values, sorted alphabetically (ascending).
|
|
30
|
+
*/
|
|
31
|
+
export declare function useGetCustomEntitiesTypeMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesTypeOkResponse, GetCustomEntitiesTypeErrorResponse, GetCustomEntitiesTypeProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesTypeOkResponse, ApierrorsErrorResponse, GetCustomEntitiesTypeProps, unknown>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 getCustomEntitiesType(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/entities/custom/types`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the distinct spec.type values present in entities for a custom integration.
|
|
11
|
+
*
|
|
12
|
+
* Scope (account/org/project) is taken from the URL path.
|
|
13
|
+
*
|
|
14
|
+
* Request body:
|
|
15
|
+
* - integration_id: Required; identifier of the custom integration.
|
|
16
|
+
* - kind: Required; entity kind (lowercased server-side).
|
|
17
|
+
*
|
|
18
|
+
* Backed by the indexed related_fields array, where ingestion writes spec.type as "type:<value>".
|
|
19
|
+
*
|
|
20
|
+
* Response:
|
|
21
|
+
* - types: Array of distinct type values, sorted alphabetically (ascending).
|
|
22
|
+
*/
|
|
23
|
+
export function useGetCustomEntitiesTypeMutation(options) {
|
|
24
|
+
return useMutation((mutateProps) => getCustomEntitiesType(mutateProps), options);
|
|
25
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetCustomEntitiesTypeResponse } from '../schemas/EntityGetCustomEntitiesTypeResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetCustomEntitiesTypeOrgRequest } from '../schemas/OpenapiGetCustomEntitiesTypeOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetCustomEntitiesTypeOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetCustomEntitiesTypeOrgRequestBody = OpenapiGetCustomEntitiesTypeOrgRequest;
|
|
12
|
+
export type GetCustomEntitiesTypeOrgOkResponse = ResponseWithPagination<EntityGetCustomEntitiesTypeResponse>;
|
|
13
|
+
export type GetCustomEntitiesTypeOrgErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface GetCustomEntitiesTypeOrgProps extends GetCustomEntitiesTypeOrgMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesTypeOrgRequestBody>, 'url'> {
|
|
15
|
+
body: GetCustomEntitiesTypeOrgRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function getCustomEntitiesTypeOrg(props: GetCustomEntitiesTypeOrgProps): Promise<GetCustomEntitiesTypeOrgOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the distinct spec.type values present in entities for a custom integration.
|
|
20
|
+
*
|
|
21
|
+
* Scope (account/org/project) is taken from the URL path.
|
|
22
|
+
*
|
|
23
|
+
* Request body:
|
|
24
|
+
* - integration_id: Required; identifier of the custom integration.
|
|
25
|
+
* - kind: Required; entity kind (lowercased server-side).
|
|
26
|
+
*
|
|
27
|
+
* Backed by the indexed related_fields array, where ingestion writes spec.type as "type:<value>".
|
|
28
|
+
*
|
|
29
|
+
* Response:
|
|
30
|
+
* - types: Array of distinct type values, sorted alphabetically (ascending).
|
|
31
|
+
*/
|
|
32
|
+
export declare function useGetCustomEntitiesTypeOrgMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesTypeOrgOkResponse, GetCustomEntitiesTypeOrgErrorResponse, GetCustomEntitiesTypeOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesTypeOrgOkResponse, ApierrorsErrorResponse, GetCustomEntitiesTypeOrgProps, unknown>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 getCustomEntitiesTypeOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/entities/custom/types`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the distinct spec.type values present in entities for a custom integration.
|
|
11
|
+
*
|
|
12
|
+
* Scope (account/org/project) is taken from the URL path.
|
|
13
|
+
*
|
|
14
|
+
* Request body:
|
|
15
|
+
* - integration_id: Required; identifier of the custom integration.
|
|
16
|
+
* - kind: Required; entity kind (lowercased server-side).
|
|
17
|
+
*
|
|
18
|
+
* Backed by the indexed related_fields array, where ingestion writes spec.type as "type:<value>".
|
|
19
|
+
*
|
|
20
|
+
* Response:
|
|
21
|
+
* - types: Array of distinct type values, sorted alphabetically (ascending).
|
|
22
|
+
*/
|
|
23
|
+
export function useGetCustomEntitiesTypeOrgMutation(options) {
|
|
24
|
+
return useMutation((mutateProps) => getCustomEntitiesTypeOrg(mutateProps), options);
|
|
25
|
+
}
|
package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeProjectMutation.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetCustomEntitiesTypeResponse } from '../schemas/EntityGetCustomEntitiesTypeResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetCustomEntitiesTypeProjectRequest } from '../schemas/OpenapiGetCustomEntitiesTypeProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetCustomEntitiesTypeProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetCustomEntitiesTypeProjectRequestBody = OpenapiGetCustomEntitiesTypeProjectRequest;
|
|
13
|
+
export type GetCustomEntitiesTypeProjectOkResponse = ResponseWithPagination<EntityGetCustomEntitiesTypeResponse>;
|
|
14
|
+
export type GetCustomEntitiesTypeProjectErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface GetCustomEntitiesTypeProjectProps extends GetCustomEntitiesTypeProjectMutationPathParams, Omit<FetcherOptions<unknown, GetCustomEntitiesTypeProjectRequestBody>, 'url'> {
|
|
16
|
+
body: GetCustomEntitiesTypeProjectRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function getCustomEntitiesTypeProject(props: GetCustomEntitiesTypeProjectProps): Promise<GetCustomEntitiesTypeProjectOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the distinct spec.type values present in entities for a custom integration.
|
|
21
|
+
*
|
|
22
|
+
* Scope (account/org/project) is taken from the URL path.
|
|
23
|
+
*
|
|
24
|
+
* Request body:
|
|
25
|
+
* - integration_id: Required; identifier of the custom integration.
|
|
26
|
+
* - kind: Required; entity kind (lowercased server-side).
|
|
27
|
+
*
|
|
28
|
+
* Backed by the indexed related_fields array, where ingestion writes spec.type as "type:<value>".
|
|
29
|
+
*
|
|
30
|
+
* Response:
|
|
31
|
+
* - types: Array of distinct type values, sorted alphabetically (ascending).
|
|
32
|
+
*/
|
|
33
|
+
export declare function useGetCustomEntitiesTypeProjectMutation(options?: Omit<UseMutationOptions<GetCustomEntitiesTypeProjectOkResponse, GetCustomEntitiesTypeProjectErrorResponse, GetCustomEntitiesTypeProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetCustomEntitiesTypeProjectOkResponse, ApierrorsErrorResponse, GetCustomEntitiesTypeProjectProps, unknown>;
|
package/dist/integration-manager/src/services/hooks/useGetCustomEntitiesTypeProjectMutation.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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 getCustomEntitiesTypeProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/entities/custom/types`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the distinct spec.type values present in entities for a custom integration.
|
|
11
|
+
*
|
|
12
|
+
* Scope (account/org/project) is taken from the URL path.
|
|
13
|
+
*
|
|
14
|
+
* Request body:
|
|
15
|
+
* - integration_id: Required; identifier of the custom integration.
|
|
16
|
+
* - kind: Required; entity kind (lowercased server-side).
|
|
17
|
+
*
|
|
18
|
+
* Backed by the indexed related_fields array, where ingestion writes spec.type as "type:<value>".
|
|
19
|
+
*
|
|
20
|
+
* Response:
|
|
21
|
+
* - types: Array of distinct type values, sorted alphabetically (ascending).
|
|
22
|
+
*/
|
|
23
|
+
export function useGetCustomEntitiesTypeProjectMutation(options) {
|
|
24
|
+
return useMutation((mutateProps) => getCustomEntitiesTypeProject(mutateProps), options);
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetEntitiesResponse } from '../schemas/EntityGetEntitiesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetEntitiesOrgRequest } from '../schemas/OpenapiGetEntitiesOrgRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetEntitiesOrgMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetEntitiesOrgRequestBody = OpenapiGetEntitiesOrgRequest;
|
|
12
|
+
export type GetEntitiesOrgOkResponse = ResponseWithPagination<EntityGetEntitiesResponse>;
|
|
13
|
+
export type GetEntitiesOrgErrorResponse = ApierrorsErrorResponse;
|
|
14
|
+
export interface GetEntitiesOrgProps extends GetEntitiesOrgMutationPathParams, Omit<FetcherOptions<unknown, GetEntitiesOrgRequestBody>, 'url'> {
|
|
15
|
+
body: GetEntitiesOrgRequestBody;
|
|
16
|
+
}
|
|
17
|
+
export declare function getEntitiesOrg(props: GetEntitiesOrgProps): Promise<GetEntitiesOrgOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get entities from multiple integrations with linked secondary entities.
|
|
20
|
+
*
|
|
21
|
+
* Request Body (required):
|
|
22
|
+
* - integrations: Required array of integration queries. Each entry includes:
|
|
23
|
+
* - integration_id: Required - integration config identifier.
|
|
24
|
+
* - scope: Optional - per-integration org/project. The account is always taken from the path; if
|
|
25
|
+
* scope.account_identifier is provided it must match the path account. When omitted, the request
|
|
26
|
+
* is account-level. A single request may target integrations across
|
|
27
|
+
* different org/projects within the same account.
|
|
28
|
+
* - secondary_kinds: Optional - array of secondary entity kinds to fetch via EntityRelation linkage.
|
|
29
|
+
* Each secondary kind can include field_val_filters for filtering.
|
|
30
|
+
* - sort_by: Sort field - "created" (default), "last_updated", "name", or "identifier".
|
|
31
|
+
* - order: Sort order - "asc" or "desc" (default: "desc").
|
|
32
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
33
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
34
|
+
* - skip_count: When true, skips expensive count and returns -1 as total (default: true).
|
|
35
|
+
* - exclude_primary: When true, excludes primary entities from the response (default: false).
|
|
36
|
+
*
|
|
37
|
+
* For each integration, the primary entity is fetched, then linked secondary entities
|
|
38
|
+
* are resolved via EntityRelation definitions.
|
|
39
|
+
*
|
|
40
|
+
* Response:
|
|
41
|
+
* - primaries: Array of primary entities (omitted when exclude_primary is true).
|
|
42
|
+
* - items: Array of secondary entities (paginated by page/limit/order).
|
|
43
|
+
* - pagination: Pagination metadata for secondary entities (page, size, total, total_pages).
|
|
44
|
+
*
|
|
45
|
+
* Pagination (page, limit, order) applies only to secondary entities. When exclude_primary is false,
|
|
46
|
+
* primary entities are always included in addition to up to limit secondary entities.
|
|
47
|
+
*/
|
|
48
|
+
export declare function useGetEntitiesOrgMutation(options?: Omit<UseMutationOptions<GetEntitiesOrgOkResponse, GetEntitiesOrgErrorResponse, GetEntitiesOrgProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetEntitiesOrgOkResponse, ApierrorsErrorResponse, GetEntitiesOrgProps, unknown>;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 getEntitiesOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/entities`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get entities from multiple integrations with linked secondary entities.
|
|
11
|
+
*
|
|
12
|
+
* Request Body (required):
|
|
13
|
+
* - integrations: Required array of integration queries. Each entry includes:
|
|
14
|
+
* - integration_id: Required - integration config identifier.
|
|
15
|
+
* - scope: Optional - per-integration org/project. The account is always taken from the path; if
|
|
16
|
+
* scope.account_identifier is provided it must match the path account. When omitted, the request
|
|
17
|
+
* is account-level. A single request may target integrations across
|
|
18
|
+
* different org/projects within the same account.
|
|
19
|
+
* - secondary_kinds: Optional - array of secondary entity kinds to fetch via EntityRelation linkage.
|
|
20
|
+
* Each secondary kind can include field_val_filters for filtering.
|
|
21
|
+
* - sort_by: Sort field - "created" (default), "last_updated", "name", or "identifier".
|
|
22
|
+
* - order: Sort order - "asc" or "desc" (default: "desc").
|
|
23
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
24
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
25
|
+
* - skip_count: When true, skips expensive count and returns -1 as total (default: true).
|
|
26
|
+
* - exclude_primary: When true, excludes primary entities from the response (default: false).
|
|
27
|
+
*
|
|
28
|
+
* For each integration, the primary entity is fetched, then linked secondary entities
|
|
29
|
+
* are resolved via EntityRelation definitions.
|
|
30
|
+
*
|
|
31
|
+
* Response:
|
|
32
|
+
* - primaries: Array of primary entities (omitted when exclude_primary is true).
|
|
33
|
+
* - items: Array of secondary entities (paginated by page/limit/order).
|
|
34
|
+
* - pagination: Pagination metadata for secondary entities (page, size, total, total_pages).
|
|
35
|
+
*
|
|
36
|
+
* Pagination (page, limit, order) applies only to secondary entities. When exclude_primary is false,
|
|
37
|
+
* primary entities are always included in addition to up to limit secondary entities.
|
|
38
|
+
*/
|
|
39
|
+
export function useGetEntitiesOrgMutation(options) {
|
|
40
|
+
return useMutation((mutateProps) => getEntitiesOrg(mutateProps), options);
|
|
41
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityGetEntitiesResponse } from '../schemas/EntityGetEntitiesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { OpenapiGetEntitiesProjectRequest } from '../schemas/OpenapiGetEntitiesProjectRequest';
|
|
5
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
+
export interface GetEntitiesProjectMutationPathParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
orgIdentifier: string;
|
|
10
|
+
projectIdentifier: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetEntitiesProjectRequestBody = OpenapiGetEntitiesProjectRequest;
|
|
13
|
+
export type GetEntitiesProjectOkResponse = ResponseWithPagination<EntityGetEntitiesResponse>;
|
|
14
|
+
export type GetEntitiesProjectErrorResponse = ApierrorsErrorResponse;
|
|
15
|
+
export interface GetEntitiesProjectProps extends GetEntitiesProjectMutationPathParams, Omit<FetcherOptions<unknown, GetEntitiesProjectRequestBody>, 'url'> {
|
|
16
|
+
body: GetEntitiesProjectRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function getEntitiesProject(props: GetEntitiesProjectProps): Promise<GetEntitiesProjectOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get entities from multiple integrations with linked secondary entities.
|
|
21
|
+
*
|
|
22
|
+
* Request Body (required):
|
|
23
|
+
* - integrations: Required array of integration queries. Each entry includes:
|
|
24
|
+
* - integration_id: Required - integration config identifier.
|
|
25
|
+
* - scope: Optional - per-integration org/project. The account is always taken from the path; if
|
|
26
|
+
* scope.account_identifier is provided it must match the path account. When omitted, the request
|
|
27
|
+
* is account-level. A single request may target integrations across
|
|
28
|
+
* different org/projects within the same account.
|
|
29
|
+
* - secondary_kinds: Optional - array of secondary entity kinds to fetch via EntityRelation linkage.
|
|
30
|
+
* Each secondary kind can include field_val_filters for filtering.
|
|
31
|
+
* - sort_by: Sort field - "created" (default), "last_updated", "name", or "identifier".
|
|
32
|
+
* - order: Sort order - "asc" or "desc" (default: "desc").
|
|
33
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
34
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
35
|
+
* - skip_count: When true, skips expensive count and returns -1 as total (default: true).
|
|
36
|
+
* - exclude_primary: When true, excludes primary entities from the response (default: false).
|
|
37
|
+
*
|
|
38
|
+
* For each integration, the primary entity is fetched, then linked secondary entities
|
|
39
|
+
* are resolved via EntityRelation definitions.
|
|
40
|
+
*
|
|
41
|
+
* Response:
|
|
42
|
+
* - primaries: Array of primary entities (omitted when exclude_primary is true).
|
|
43
|
+
* - items: Array of secondary entities (paginated by page/limit/order).
|
|
44
|
+
* - pagination: Pagination metadata for secondary entities (page, size, total, total_pages).
|
|
45
|
+
*
|
|
46
|
+
* Pagination (page, limit, order) applies only to secondary entities. When exclude_primary is false,
|
|
47
|
+
* primary entities are always included in addition to up to limit secondary entities.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useGetEntitiesProjectMutation(options?: Omit<UseMutationOptions<GetEntitiesProjectOkResponse, GetEntitiesProjectErrorResponse, GetEntitiesProjectProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetEntitiesProjectOkResponse, ApierrorsErrorResponse, GetEntitiesProjectProps, unknown>;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 getEntitiesProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/entities`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get entities from multiple integrations with linked secondary entities.
|
|
11
|
+
*
|
|
12
|
+
* Request Body (required):
|
|
13
|
+
* - integrations: Required array of integration queries. Each entry includes:
|
|
14
|
+
* - integration_id: Required - integration config identifier.
|
|
15
|
+
* - scope: Optional - per-integration org/project. The account is always taken from the path; if
|
|
16
|
+
* scope.account_identifier is provided it must match the path account. When omitted, the request
|
|
17
|
+
* is account-level. A single request may target integrations across
|
|
18
|
+
* different org/projects within the same account.
|
|
19
|
+
* - secondary_kinds: Optional - array of secondary entity kinds to fetch via EntityRelation linkage.
|
|
20
|
+
* Each secondary kind can include field_val_filters for filtering.
|
|
21
|
+
* - sort_by: Sort field - "created" (default), "last_updated", "name", or "identifier".
|
|
22
|
+
* - order: Sort order - "asc" or "desc" (default: "desc").
|
|
23
|
+
* - page: Pagination page number (default: 0, 0-based).
|
|
24
|
+
* - limit: Page size (default: 50, max: 2000).
|
|
25
|
+
* - skip_count: When true, skips expensive count and returns -1 as total (default: true).
|
|
26
|
+
* - exclude_primary: When true, excludes primary entities from the response (default: false).
|
|
27
|
+
*
|
|
28
|
+
* For each integration, the primary entity is fetched, then linked secondary entities
|
|
29
|
+
* are resolved via EntityRelation definitions.
|
|
30
|
+
*
|
|
31
|
+
* Response:
|
|
32
|
+
* - primaries: Array of primary entities (omitted when exclude_primary is true).
|
|
33
|
+
* - items: Array of secondary entities (paginated by page/limit/order).
|
|
34
|
+
* - pagination: Pagination metadata for secondary entities (page, size, total, total_pages).
|
|
35
|
+
*
|
|
36
|
+
* Pagination (page, limit, order) applies only to secondary entities. When exclude_primary is false,
|
|
37
|
+
* primary entities are always included in addition to up to limit secondary entities.
|
|
38
|
+
*/
|
|
39
|
+
export function useGetEntitiesProjectMutation(options) {
|
|
40
|
+
return useMutation((mutateProps) => getEntitiesProject(mutateProps), options);
|
|
41
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesGetTimeseriesResponse } from '../schemas/TypesGetTimeseriesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMetricTimeseriesOrgQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
metric_config_id: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetMetricTimeseriesOrgQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* Filter metric points by entity reference. At least one of entity_ref or correlation_value is required.
|
|
14
|
+
*/
|
|
15
|
+
entity_ref?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Filter metric points by correlation value. Requires MetricConfig.Configuration.CorrelationMapping.SourcePath to be configured for the metric.
|
|
18
|
+
*/
|
|
19
|
+
correlation_value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Time window for the timeseries. Defaults to '7d'.
|
|
22
|
+
*/
|
|
23
|
+
time_range?: '1d' | '1mo' | '1y' | '7d' | 'all';
|
|
24
|
+
/**
|
|
25
|
+
* When true, server-side averages points into buckets (one element per bucket with a count). Defaults to false.
|
|
26
|
+
*/
|
|
27
|
+
aggregate?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Bucket width, only valid when aggregate=true. Defaults to '1h'. Sizes map to mongo $dateTrunc with unit 'hour' or 'day' and binSize:1.
|
|
30
|
+
*/
|
|
31
|
+
bucket_size?: '1d' | '1h';
|
|
32
|
+
}
|
|
33
|
+
export type GetMetricTimeseriesOrgOkResponse = ResponseWithPagination<TypesGetTimeseriesResponse>;
|
|
34
|
+
export type GetMetricTimeseriesOrgErrorResponse = ApierrorsErrorResponse;
|
|
35
|
+
export interface GetMetricTimeseriesOrgProps extends GetMetricTimeseriesOrgQueryPathParams, Omit<FetcherOptions<GetMetricTimeseriesOrgQueryQueryParams, unknown>, 'url'> {
|
|
36
|
+
queryParams: GetMetricTimeseriesOrgQueryQueryParams;
|
|
37
|
+
}
|
|
38
|
+
export declare function getMetricTimeseriesOrg(props: GetMetricTimeseriesOrgProps): Promise<GetMetricTimeseriesOrgOkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the timeseries for one metric. In raw mode (default), points are sorted ASC by timestamp. In aggregated mode (aggregate=true), the server averages points into buckets sized by bucket_size and returns one element per bucket with a count, sorted ASC by bucket start. The response is capped at 10,000 points; rows beyond the cap are silently dropped (the store keeps the most-recent rows). At least one of entity_ref or correlation_value is required.
|
|
41
|
+
*/
|
|
42
|
+
export declare function useGetMetricTimeseriesOrgQuery(props: GetMetricTimeseriesOrgProps, options?: Omit<UseQueryOptions<GetMetricTimeseriesOrgOkResponse, GetMetricTimeseriesOrgErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricTimeseriesOrgOkResponse, 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 getMetricTimeseriesOrg(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/metrics/${props.metric_config_id}/timeseries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the timeseries for one metric. In raw mode (default), points are sorted ASC by timestamp. In aggregated mode (aggregate=true), the server averages points into buckets sized by bucket_size and returns one element per bucket with a count, sorted ASC by bucket start. The response is capped at 10,000 points; rows beyond the cap are silently dropped (the store keeps the most-recent rows). At least one of entity_ref or correlation_value is required.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMetricTimeseriesOrgQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getMetricTimeseriesOrg',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.metric_config_id,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getMetricTimeseriesOrg(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesGetTimeseriesResponse } from '../schemas/TypesGetTimeseriesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMetricTimeseriesProjectQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
orgIdentifier: string;
|
|
9
|
+
projectIdentifier: string;
|
|
10
|
+
metric_config_id: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetMetricTimeseriesProjectQueryQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* Filter metric points by entity reference. At least one of entity_ref or correlation_value is required.
|
|
15
|
+
*/
|
|
16
|
+
entity_ref?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Filter metric points by correlation value. Requires MetricConfig.Configuration.CorrelationMapping.SourcePath to be configured for the metric.
|
|
19
|
+
*/
|
|
20
|
+
correlation_value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Time window for the timeseries. Defaults to '7d'.
|
|
23
|
+
*/
|
|
24
|
+
time_range?: '1d' | '1mo' | '1y' | '7d' | 'all';
|
|
25
|
+
/**
|
|
26
|
+
* When true, server-side averages points into buckets (one element per bucket with a count). Defaults to false.
|
|
27
|
+
*/
|
|
28
|
+
aggregate?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Bucket width, only valid when aggregate=true. Defaults to '1h'. Sizes map to mongo $dateTrunc with unit 'hour' or 'day' and binSize:1.
|
|
31
|
+
*/
|
|
32
|
+
bucket_size?: '1d' | '1h';
|
|
33
|
+
}
|
|
34
|
+
export type GetMetricTimeseriesProjectOkResponse = ResponseWithPagination<TypesGetTimeseriesResponse>;
|
|
35
|
+
export type GetMetricTimeseriesProjectErrorResponse = ApierrorsErrorResponse;
|
|
36
|
+
export interface GetMetricTimeseriesProjectProps extends GetMetricTimeseriesProjectQueryPathParams, Omit<FetcherOptions<GetMetricTimeseriesProjectQueryQueryParams, unknown>, 'url'> {
|
|
37
|
+
queryParams: GetMetricTimeseriesProjectQueryQueryParams;
|
|
38
|
+
}
|
|
39
|
+
export declare function getMetricTimeseriesProject(props: GetMetricTimeseriesProjectProps): Promise<GetMetricTimeseriesProjectOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the timeseries for one metric. In raw mode (default), points are sorted ASC by timestamp. In aggregated mode (aggregate=true), the server averages points into buckets sized by bucket_size and returns one element per bucket with a count, sorted ASC by bucket start. The response is capped at 10,000 points; rows beyond the cap are silently dropped (the store keeps the most-recent rows). At least one of entity_ref or correlation_value is required.
|
|
42
|
+
*/
|
|
43
|
+
export declare function useGetMetricTimeseriesProjectQuery(props: GetMetricTimeseriesProjectProps, options?: Omit<UseQueryOptions<GetMetricTimeseriesProjectOkResponse, GetMetricTimeseriesProjectErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricTimeseriesProjectOkResponse, ApierrorsErrorResponse>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 getMetricTimeseriesProject(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/orgs/${props.orgIdentifier}/projects/${props.projectIdentifier}/metrics/${props.metric_config_id}/timeseries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the timeseries for one metric. In raw mode (default), points are sorted ASC by timestamp. In aggregated mode (aggregate=true), the server averages points into buckets sized by bucket_size and returns one element per bucket with a count, sorted ASC by bucket start. The response is capped at 10,000 points; rows beyond the cap are silently dropped (the store keeps the most-recent rows). At least one of entity_ref or correlation_value is required.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMetricTimeseriesProjectQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getMetricTimeseriesProject',
|
|
15
|
+
props.accountIdentifier,
|
|
16
|
+
props.orgIdentifier,
|
|
17
|
+
props.projectIdentifier,
|
|
18
|
+
props.metric_config_id,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => getMetricTimeseriesProject(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { TypesGetTimeseriesResponse } from '../schemas/TypesGetTimeseriesResponse';
|
|
3
|
+
import type { ApierrorsErrorResponse } from '../schemas/ApierrorsErrorResponse';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetMetricTimeseriesQueryPathParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
metric_config_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetMetricTimeseriesQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* Filter metric points by entity reference. At least one of entity_ref or correlation_value is required.
|
|
13
|
+
*/
|
|
14
|
+
entity_ref?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Filter metric points by correlation value. Requires MetricConfig.Configuration.CorrelationMapping.SourcePath to be configured for the metric.
|
|
17
|
+
*/
|
|
18
|
+
correlation_value?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Time window for the timeseries. Defaults to '7d'.
|
|
21
|
+
*/
|
|
22
|
+
time_range?: '1d' | '1mo' | '1y' | '7d' | 'all';
|
|
23
|
+
/**
|
|
24
|
+
* When true, server-side averages points into buckets (one element per bucket with a count). Defaults to false.
|
|
25
|
+
*/
|
|
26
|
+
aggregate?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Bucket width, only valid when aggregate=true. Defaults to '1h'. Sizes map to mongo $dateTrunc with unit 'hour' or 'day' and binSize:1.
|
|
29
|
+
*/
|
|
30
|
+
bucket_size?: '1d' | '1h';
|
|
31
|
+
}
|
|
32
|
+
export type GetMetricTimeseriesOkResponse = ResponseWithPagination<TypesGetTimeseriesResponse>;
|
|
33
|
+
export type GetMetricTimeseriesErrorResponse = ApierrorsErrorResponse;
|
|
34
|
+
export interface GetMetricTimeseriesProps extends GetMetricTimeseriesQueryPathParams, Omit<FetcherOptions<GetMetricTimeseriesQueryQueryParams, unknown>, 'url'> {
|
|
35
|
+
queryParams: GetMetricTimeseriesQueryQueryParams;
|
|
36
|
+
}
|
|
37
|
+
export declare function getMetricTimeseries(props: GetMetricTimeseriesProps): Promise<GetMetricTimeseriesOkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the timeseries for one metric. In raw mode (default), points are sorted ASC by timestamp. In aggregated mode (aggregate=true), the server averages points into buckets sized by bucket_size and returns one element per bucket with a count, sorted ASC by bucket start. The response is capped at 10,000 points; rows beyond the cap are silently dropped (the store keeps the most-recent rows). At least one of entity_ref or correlation_value is required.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useGetMetricTimeseriesQuery(props: GetMetricTimeseriesProps, options?: Omit<UseQueryOptions<GetMetricTimeseriesOkResponse, GetMetricTimeseriesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetMetricTimeseriesOkResponse, 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 getMetricTimeseries(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/metrics/${props.metric_config_id}/timeseries`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the timeseries for one metric. In raw mode (default), points are sorted ASC by timestamp. In aggregated mode (aggregate=true), the server averages points into buckets sized by bucket_size and returns one element per bucket with a count, sorted ASC by bucket start. The response is capped at 10,000 points; rows beyond the cap are silently dropped (the store keeps the most-recent rows). At least one of entity_ref or correlation_value is required.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetMetricTimeseriesQuery(props, options) {
|
|
13
|
+
return useQuery(['getMetricTimeseries', props.accountIdentifier, props.metric_config_id, props.queryParams], ({ signal }) => getMetricTimeseries(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -53,8 +53,24 @@ export type { GetAirbyteIntegrationConfigProjectErrorResponse, GetAirbyteIntegra
|
|
|
53
53
|
export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
|
|
54
54
|
export type { GetAirbyteIntegrationConfigErrorResponse, GetAirbyteIntegrationConfigOkResponse, GetAirbyteIntegrationConfigProps, GetAirbyteIntegrationConfigQueryPathParams, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
55
55
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
56
|
+
export type { GetCustomEntitiesErrorResponse, GetCustomEntitiesMutationPathParams, GetCustomEntitiesOkResponse, GetCustomEntitiesProps, GetCustomEntitiesRequestBody, } from './hooks/useGetCustomEntitiesMutation';
|
|
57
|
+
export { getCustomEntities, useGetCustomEntitiesMutation, } from './hooks/useGetCustomEntitiesMutation';
|
|
58
|
+
export type { GetCustomEntitiesOrgErrorResponse, GetCustomEntitiesOrgMutationPathParams, GetCustomEntitiesOrgOkResponse, GetCustomEntitiesOrgProps, GetCustomEntitiesOrgRequestBody, } from './hooks/useGetCustomEntitiesOrgMutation';
|
|
59
|
+
export { getCustomEntitiesOrg, useGetCustomEntitiesOrgMutation, } from './hooks/useGetCustomEntitiesOrgMutation';
|
|
60
|
+
export type { GetCustomEntitiesProjectErrorResponse, GetCustomEntitiesProjectMutationPathParams, GetCustomEntitiesProjectOkResponse, GetCustomEntitiesProjectProps, GetCustomEntitiesProjectRequestBody, } from './hooks/useGetCustomEntitiesProjectMutation';
|
|
61
|
+
export { getCustomEntitiesProject, useGetCustomEntitiesProjectMutation, } from './hooks/useGetCustomEntitiesProjectMutation';
|
|
62
|
+
export type { GetCustomEntitiesTypeErrorResponse, GetCustomEntitiesTypeMutationPathParams, GetCustomEntitiesTypeOkResponse, GetCustomEntitiesTypeProps, GetCustomEntitiesTypeRequestBody, } from './hooks/useGetCustomEntitiesTypeMutation';
|
|
63
|
+
export { getCustomEntitiesType, useGetCustomEntitiesTypeMutation, } from './hooks/useGetCustomEntitiesTypeMutation';
|
|
64
|
+
export type { GetCustomEntitiesTypeOrgErrorResponse, GetCustomEntitiesTypeOrgMutationPathParams, GetCustomEntitiesTypeOrgOkResponse, GetCustomEntitiesTypeOrgProps, GetCustomEntitiesTypeOrgRequestBody, } from './hooks/useGetCustomEntitiesTypeOrgMutation';
|
|
65
|
+
export { getCustomEntitiesTypeOrg, useGetCustomEntitiesTypeOrgMutation, } from './hooks/useGetCustomEntitiesTypeOrgMutation';
|
|
66
|
+
export type { GetCustomEntitiesTypeProjectErrorResponse, GetCustomEntitiesTypeProjectMutationPathParams, GetCustomEntitiesTypeProjectOkResponse, GetCustomEntitiesTypeProjectProps, GetCustomEntitiesTypeProjectRequestBody, } from './hooks/useGetCustomEntitiesTypeProjectMutation';
|
|
67
|
+
export { getCustomEntitiesTypeProject, useGetCustomEntitiesTypeProjectMutation, } from './hooks/useGetCustomEntitiesTypeProjectMutation';
|
|
56
68
|
export type { GetEntitiesErrorResponse, GetEntitiesMutationPathParams, GetEntitiesOkResponse, GetEntitiesProps, GetEntitiesRequestBody, } from './hooks/useGetEntitiesMutation';
|
|
57
69
|
export { getEntities, useGetEntitiesMutation } from './hooks/useGetEntitiesMutation';
|
|
70
|
+
export type { GetEntitiesOrgErrorResponse, GetEntitiesOrgMutationPathParams, GetEntitiesOrgOkResponse, GetEntitiesOrgProps, GetEntitiesOrgRequestBody, } from './hooks/useGetEntitiesOrgMutation';
|
|
71
|
+
export { getEntitiesOrg, useGetEntitiesOrgMutation } from './hooks/useGetEntitiesOrgMutation';
|
|
72
|
+
export type { GetEntitiesProjectErrorResponse, GetEntitiesProjectMutationPathParams, GetEntitiesProjectOkResponse, GetEntitiesProjectProps, GetEntitiesProjectRequestBody, } from './hooks/useGetEntitiesProjectMutation';
|
|
73
|
+
export { getEntitiesProject, useGetEntitiesProjectMutation, } from './hooks/useGetEntitiesProjectMutation';
|
|
58
74
|
export type { GetHealthErrorResponse, GetHealthOkResponse, GetHealthProps, } from './hooks/useGetHealthQuery';
|
|
59
75
|
export { getHealth, useGetHealthQuery } from './hooks/useGetHealthQuery';
|
|
60
76
|
export type { GetIntegrationConfigOrgErrorResponse, GetIntegrationConfigOrgOkResponse, GetIntegrationConfigOrgProps, GetIntegrationConfigOrgQueryPathParams, } from './hooks/useGetIntegrationConfigOrgQuery';
|
|
@@ -69,6 +85,12 @@ export type { GetMetricConfigProjectErrorResponse, GetMetricConfigProjectOkRespo
|
|
|
69
85
|
export { getMetricConfigProject, useGetMetricConfigProjectQuery, } from './hooks/useGetMetricConfigProjectQuery';
|
|
70
86
|
export type { GetMetricConfigErrorResponse, GetMetricConfigOkResponse, GetMetricConfigProps, GetMetricConfigQueryPathParams, } from './hooks/useGetMetricConfigQuery';
|
|
71
87
|
export { getMetricConfig, useGetMetricConfigQuery } from './hooks/useGetMetricConfigQuery';
|
|
88
|
+
export type { GetMetricTimeseriesOrgErrorResponse, GetMetricTimeseriesOrgOkResponse, GetMetricTimeseriesOrgProps, GetMetricTimeseriesOrgQueryPathParams, GetMetricTimeseriesOrgQueryQueryParams, } from './hooks/useGetMetricTimeseriesOrgQuery';
|
|
89
|
+
export { getMetricTimeseriesOrg, useGetMetricTimeseriesOrgQuery, } from './hooks/useGetMetricTimeseriesOrgQuery';
|
|
90
|
+
export type { GetMetricTimeseriesProjectErrorResponse, GetMetricTimeseriesProjectOkResponse, GetMetricTimeseriesProjectProps, GetMetricTimeseriesProjectQueryPathParams, GetMetricTimeseriesProjectQueryQueryParams, } from './hooks/useGetMetricTimeseriesProjectQuery';
|
|
91
|
+
export { getMetricTimeseriesProject, useGetMetricTimeseriesProjectQuery, } from './hooks/useGetMetricTimeseriesProjectQuery';
|
|
92
|
+
export type { GetMetricTimeseriesErrorResponse, GetMetricTimeseriesOkResponse, GetMetricTimeseriesProps, GetMetricTimeseriesQueryPathParams, GetMetricTimeseriesQueryQueryParams, } from './hooks/useGetMetricTimeseriesQuery';
|
|
93
|
+
export { getMetricTimeseries, useGetMetricTimeseriesQuery, } from './hooks/useGetMetricTimeseriesQuery';
|
|
72
94
|
export type { ListAgentsErrorResponse, ListAgentsOkResponse, ListAgentsProps, ListAgentsQueryPathParams, } from './hooks/useListAgentsQuery';
|
|
73
95
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
|
74
96
|
export type { ListDefaultMappingFieldsErrorResponse, ListDefaultMappingFieldsOkResponse, ListDefaultMappingFieldsProps, ListDefaultMappingFieldsQueryPathParams, ListDefaultMappingFieldsQueryQueryParams, } from './hooks/useListDefaultMappingFieldsQuery';
|
|
@@ -159,6 +181,8 @@ export type { AirbyteFetchAirbyteConnectorCatalogResponse } from './schemas/Airb
|
|
|
159
181
|
export type { AirbyteGetAirbyteConnectorCatalogResponse } from './schemas/AirbyteGetAirbyteConnectorCatalogResponse';
|
|
160
182
|
export type { ApierrorsErrorDetail } from './schemas/ApierrorsErrorDetail';
|
|
161
183
|
export type { ApierrorsErrorResponse } from './schemas/ApierrorsErrorResponse';
|
|
184
|
+
export type { EntityGetCustomEntitiesResponse } from './schemas/EntityGetCustomEntitiesResponse';
|
|
185
|
+
export type { EntityGetCustomEntitiesTypeResponse } from './schemas/EntityGetCustomEntitiesTypeResponse';
|
|
162
186
|
export type { EntityGetEntitiesResponse } from './schemas/EntityGetEntitiesResponse';
|
|
163
187
|
export type { EntityPaginationInfo } from './schemas/EntityPaginationInfo';
|
|
164
188
|
export type { EnumAction } from './schemas/EnumAction';
|
|
@@ -167,6 +191,9 @@ export type { EnumAirbyteSyncMode } from './schemas/EnumAirbyteSyncMode';
|
|
|
167
191
|
export type { EnumIntegrationEventType } from './schemas/EnumIntegrationEventType';
|
|
168
192
|
export type { EnumIntegrationMode } from './schemas/EnumIntegrationMode';
|
|
169
193
|
export type { EnumIntegrationType } from './schemas/EnumIntegrationType';
|
|
194
|
+
export type { EnumMetricAggregation } from './schemas/EnumMetricAggregation';
|
|
195
|
+
export type { EnumMetricBucketSize } from './schemas/EnumMetricBucketSize';
|
|
196
|
+
export type { EnumMetricTimeRange } from './schemas/EnumMetricTimeRange';
|
|
170
197
|
export type { EnumOperator } from './schemas/EnumOperator';
|
|
171
198
|
export type { EnumSyncResponseStatus } from './schemas/EnumSyncResponseStatus';
|
|
172
199
|
export type { EnumSyncStatus } from './schemas/EnumSyncStatus';
|
|
@@ -186,8 +213,17 @@ export type { OpenapiCreateIntegrationConfigRequest } from './schemas/OpenapiCre
|
|
|
186
213
|
export type { OpenapiCreateMetricConfigOrgRequest } from './schemas/OpenapiCreateMetricConfigOrgRequest';
|
|
187
214
|
export type { OpenapiCreateMetricConfigProjectRequest } from './schemas/OpenapiCreateMetricConfigProjectRequest';
|
|
188
215
|
export type { OpenapiCreateMetricConfigRequest } from './schemas/OpenapiCreateMetricConfigRequest';
|
|
216
|
+
export type { OpenapiCustomIntegrationRequestOpenApi } from './schemas/OpenapiCustomIntegrationRequestOpenApi';
|
|
189
217
|
export type { OpenapiFieldValFilterRequest } from './schemas/OpenapiFieldValFilterRequest';
|
|
190
218
|
export type { OpenapiGetAirbyteConnectorCatalogRequest } from './schemas/OpenapiGetAirbyteConnectorCatalogRequest';
|
|
219
|
+
export type { OpenapiGetCustomEntitiesOrgRequest } from './schemas/OpenapiGetCustomEntitiesOrgRequest';
|
|
220
|
+
export type { OpenapiGetCustomEntitiesProjectRequest } from './schemas/OpenapiGetCustomEntitiesProjectRequest';
|
|
221
|
+
export type { OpenapiGetCustomEntitiesRequest } from './schemas/OpenapiGetCustomEntitiesRequest';
|
|
222
|
+
export type { OpenapiGetCustomEntitiesTypeOrgRequest } from './schemas/OpenapiGetCustomEntitiesTypeOrgRequest';
|
|
223
|
+
export type { OpenapiGetCustomEntitiesTypeProjectRequest } from './schemas/OpenapiGetCustomEntitiesTypeProjectRequest';
|
|
224
|
+
export type { OpenapiGetCustomEntitiesTypeRequest } from './schemas/OpenapiGetCustomEntitiesTypeRequest';
|
|
225
|
+
export type { OpenapiGetEntitiesOrgRequest } from './schemas/OpenapiGetEntitiesOrgRequest';
|
|
226
|
+
export type { OpenapiGetEntitiesProjectRequest } from './schemas/OpenapiGetEntitiesProjectRequest';
|
|
191
227
|
export type { OpenapiGetEntitiesRequest } from './schemas/OpenapiGetEntitiesRequest';
|
|
192
228
|
export type { OpenapiIntegrationRequestOpenApi } from './schemas/OpenapiIntegrationRequestOpenApi';
|
|
193
229
|
export type { OpenapiSecondaryKindRequestOpenApi } from './schemas/OpenapiSecondaryKindRequestOpenApi';
|
|
@@ -228,6 +264,7 @@ export type { TypesEntityMapping } from './schemas/TypesEntityMapping';
|
|
|
228
264
|
export type { TypesEntityMappingSpec } from './schemas/TypesEntityMappingSpec';
|
|
229
265
|
export type { TypesEntitySchema } from './schemas/TypesEntitySchema';
|
|
230
266
|
export type { TypesFieldMapping } from './schemas/TypesFieldMapping';
|
|
267
|
+
export type { TypesGetTimeseriesResponse } from './schemas/TypesGetTimeseriesResponse';
|
|
231
268
|
export type { TypesHarnessAirbyteConfig } from './schemas/TypesHarnessAirbyteConfig';
|
|
232
269
|
export type { TypesHarnessComponentSettings } from './schemas/TypesHarnessComponentSettings';
|
|
233
270
|
export type { TypesIdpSubscription } from './schemas/TypesIdpSubscription';
|
|
@@ -243,6 +280,7 @@ export type { TypesMappingConfig } from './schemas/TypesMappingConfig';
|
|
|
243
280
|
export type { TypesMappingSpec } from './schemas/TypesMappingSpec';
|
|
244
281
|
export type { TypesMetricConfig } from './schemas/TypesMetricConfig';
|
|
245
282
|
export type { TypesMetricConfiguration } from './schemas/TypesMetricConfiguration';
|
|
283
|
+
export type { TypesMetricDataPoint } from './schemas/TypesMetricDataPoint';
|
|
246
284
|
export type { TypesMetricErrors } from './schemas/TypesMetricErrors';
|
|
247
285
|
export type { TypesReevalState } from './schemas/TypesReevalState';
|
|
248
286
|
export type { TypesSchemaMapping } from './schemas/TypesSchemaMapping';
|
|
@@ -25,7 +25,15 @@ export { getAirbyteConnectorCatalog, useGetAirbyteConnectorCatalogQuery, } from
|
|
|
25
25
|
export { getAirbyteIntegrationConfigOrg, useGetAirbyteIntegrationConfigOrgQuery, } from './hooks/useGetAirbyteIntegrationConfigOrgQuery';
|
|
26
26
|
export { getAirbyteIntegrationConfigProject, useGetAirbyteIntegrationConfigProjectQuery, } from './hooks/useGetAirbyteIntegrationConfigProjectQuery';
|
|
27
27
|
export { getAirbyteIntegrationConfig, useGetAirbyteIntegrationConfigQuery, } from './hooks/useGetAirbyteIntegrationConfigQuery';
|
|
28
|
+
export { getCustomEntities, useGetCustomEntitiesMutation, } from './hooks/useGetCustomEntitiesMutation';
|
|
29
|
+
export { getCustomEntitiesOrg, useGetCustomEntitiesOrgMutation, } from './hooks/useGetCustomEntitiesOrgMutation';
|
|
30
|
+
export { getCustomEntitiesProject, useGetCustomEntitiesProjectMutation, } from './hooks/useGetCustomEntitiesProjectMutation';
|
|
31
|
+
export { getCustomEntitiesType, useGetCustomEntitiesTypeMutation, } from './hooks/useGetCustomEntitiesTypeMutation';
|
|
32
|
+
export { getCustomEntitiesTypeOrg, useGetCustomEntitiesTypeOrgMutation, } from './hooks/useGetCustomEntitiesTypeOrgMutation';
|
|
33
|
+
export { getCustomEntitiesTypeProject, useGetCustomEntitiesTypeProjectMutation, } from './hooks/useGetCustomEntitiesTypeProjectMutation';
|
|
28
34
|
export { getEntities, useGetEntitiesMutation } from './hooks/useGetEntitiesMutation';
|
|
35
|
+
export { getEntitiesOrg, useGetEntitiesOrgMutation } from './hooks/useGetEntitiesOrgMutation';
|
|
36
|
+
export { getEntitiesProject, useGetEntitiesProjectMutation, } from './hooks/useGetEntitiesProjectMutation';
|
|
29
37
|
export { getHealth, useGetHealthQuery } from './hooks/useGetHealthQuery';
|
|
30
38
|
export { getIntegrationConfigOrg, useGetIntegrationConfigOrgQuery, } from './hooks/useGetIntegrationConfigOrgQuery';
|
|
31
39
|
export { getIntegrationConfigProject, useGetIntegrationConfigProjectQuery, } from './hooks/useGetIntegrationConfigProjectQuery';
|
|
@@ -33,6 +41,9 @@ export { getIntegrationConfig, useGetIntegrationConfigQuery, } from './hooks/use
|
|
|
33
41
|
export { getMetricConfigOrg, useGetMetricConfigOrgQuery } from './hooks/useGetMetricConfigOrgQuery';
|
|
34
42
|
export { getMetricConfigProject, useGetMetricConfigProjectQuery, } from './hooks/useGetMetricConfigProjectQuery';
|
|
35
43
|
export { getMetricConfig, useGetMetricConfigQuery } from './hooks/useGetMetricConfigQuery';
|
|
44
|
+
export { getMetricTimeseriesOrg, useGetMetricTimeseriesOrgQuery, } from './hooks/useGetMetricTimeseriesOrgQuery';
|
|
45
|
+
export { getMetricTimeseriesProject, useGetMetricTimeseriesProjectQuery, } from './hooks/useGetMetricTimeseriesProjectQuery';
|
|
46
|
+
export { getMetricTimeseries, useGetMetricTimeseriesQuery, } from './hooks/useGetMetricTimeseriesQuery';
|
|
36
47
|
export { listAgents, useListAgentsQuery } from './hooks/useListAgentsQuery';
|
|
37
48
|
export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
|
|
38
49
|
export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EnumMetricAggregation = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EnumMetricBucketSize = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EnumMetricTimeRange = string;
|
package/dist/integration-manager/src/services/schemas/OpenapiCustomIntegrationRequestOpenApi.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TypesScope } from '../schemas/TypesScope';
|
|
2
|
+
export interface OpenapiCustomIntegrationRequestOpenApi {
|
|
3
|
+
correlation_value?: string;
|
|
4
|
+
data_kind?: string;
|
|
5
|
+
entity_ref?: string;
|
|
6
|
+
filter?: {
|
|
7
|
+
[key: string]: string[];
|
|
8
|
+
};
|
|
9
|
+
integration_id?: string;
|
|
10
|
+
scope?: TypesScope;
|
|
11
|
+
}
|
package/dist/integration-manager/src/services/schemas/OpenapiCustomIntegrationRequestOpenApi.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenapiCustomIntegrationRequestOpenApi } from '../schemas/OpenapiCustomIntegrationRequestOpenApi';
|
|
2
|
+
export interface OpenapiGetCustomEntitiesOrgRequest {
|
|
3
|
+
integrations?: OpenapiCustomIntegrationRequestOpenApi[] | null;
|
|
4
|
+
limit?: number;
|
|
5
|
+
order?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
skip_count?: boolean | null;
|
|
8
|
+
sort_by?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesProjectRequest.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenapiCustomIntegrationRequestOpenApi } from '../schemas/OpenapiCustomIntegrationRequestOpenApi';
|
|
2
|
+
export interface OpenapiGetCustomEntitiesProjectRequest {
|
|
3
|
+
integrations?: OpenapiCustomIntegrationRequestOpenApi[] | null;
|
|
4
|
+
limit?: number;
|
|
5
|
+
order?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
skip_count?: boolean | null;
|
|
8
|
+
sort_by?: string;
|
|
9
|
+
}
|
package/dist/integration-manager/src/services/schemas/OpenapiGetCustomEntitiesProjectRequest.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OpenapiCustomIntegrationRequestOpenApi } from '../schemas/OpenapiCustomIntegrationRequestOpenApi';
|
|
2
|
+
export interface OpenapiGetCustomEntitiesRequest {
|
|
3
|
+
integrations?: OpenapiCustomIntegrationRequestOpenApi[] | null;
|
|
4
|
+
limit?: number;
|
|
5
|
+
order?: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
skip_count?: boolean | null;
|
|
8
|
+
sort_by?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OpenapiIntegrationRequestOpenApi } from '../schemas/OpenapiIntegrationRequestOpenApi';
|
|
2
|
+
export interface OpenapiGetEntitiesOrgRequest {
|
|
3
|
+
exclude_primary?: boolean;
|
|
4
|
+
integrations?: OpenapiIntegrationRequestOpenApi[] | null;
|
|
5
|
+
limit?: number;
|
|
6
|
+
order?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
skip_count?: boolean | null;
|
|
9
|
+
sort_by?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { OpenapiIntegrationRequestOpenApi } from '../schemas/OpenapiIntegrationRequestOpenApi';
|
|
2
|
+
export interface OpenapiGetEntitiesProjectRequest {
|
|
3
|
+
exclude_primary?: boolean;
|
|
4
|
+
integrations?: OpenapiIntegrationRequestOpenApi[] | null;
|
|
5
|
+
limit?: number;
|
|
6
|
+
order?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
skip_count?: boolean | null;
|
|
9
|
+
sort_by?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { EnumMetricAggregation } from '../schemas/EnumMetricAggregation';
|
|
2
|
+
import type { EnumMetricBucketSize } from '../schemas/EnumMetricBucketSize';
|
|
3
|
+
import type { TypesMetricDataPoint } from '../schemas/TypesMetricDataPoint';
|
|
4
|
+
import type { EnumMetricTimeRange } from '../schemas/EnumMetricTimeRange';
|
|
5
|
+
export interface TypesGetTimeseriesResponse {
|
|
6
|
+
aggregation?: EnumMetricAggregation;
|
|
7
|
+
bucket_size?: EnumMetricBucketSize;
|
|
8
|
+
correlation_value?: string;
|
|
9
|
+
data?: TypesMetricDataPoint[] | null;
|
|
10
|
+
entity_ref?: string;
|
|
11
|
+
is_aggregated?: boolean;
|
|
12
|
+
metric_id?: string;
|
|
13
|
+
space_path?: string;
|
|
14
|
+
time_range?: EnumMetricTimeRange;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED