@harnessio/react-integration-manager-client 0.6.0 → 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 +40 -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/OpenapiSettingsUpsertAccountRequest.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/OpenapiSettingsUpsertOrgRequest.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/OpenapiSettingsUpsertProjectRequest.d.ts +2 -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/dist/integration-manager/src/services/schemas/TypesSettingsEntryGithubComHarnessHarnessCodeIntegrationManagerTypesSyncConfigSettings.d.ts +9 -0
- package/dist/integration-manager/src/services/schemas/TypesSettingsEntryGithubComHarnessHarnessCodeIntegrationManagerTypesSyncConfigSettings.js +1 -0
- package/dist/integration-manager/src/services/schemas/TypesSettingsListResponse.d.ts +2 -0
- package/dist/integration-manager/src/services/schemas/TypesSyncConfigSettings.d.ts +3 -0
- package/dist/integration-manager/src/services/schemas/TypesSyncConfigSettings.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
|
+
}
|