@harnessio/react-idp-service-client 0.86.0 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/fetcher/index.js +1 -1
  2. package/dist/idp-service/src/services/hooks/useCreateAggregationRuleMutation.d.ts +19 -0
  3. package/dist/idp-service/src/services/hooks/useCreateAggregationRuleMutation.js +14 -0
  4. package/dist/idp-service/src/services/hooks/useDeleteAggregationRuleMutation.d.ts +22 -0
  5. package/dist/idp-service/src/services/hooks/useDeleteAggregationRuleMutation.js +14 -0
  6. package/dist/idp-service/src/services/hooks/useDeleteEntityMutation.d.ts +1 -0
  7. package/dist/idp-service/src/services/hooks/useDiscoverEntitiesQuery.d.ts +26 -0
  8. package/dist/idp-service/src/services/hooks/useDiscoverEntitiesQuery.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useGetAggregationRuleQuery.d.ts +19 -0
  10. package/dist/idp-service/src/services/hooks/useGetAggregationRuleQuery.js +14 -0
  11. package/dist/idp-service/src/services/hooks/useGetAggregationRulesQuery.d.ts +23 -0
  12. package/dist/idp-service/src/services/hooks/useGetAggregationRulesQuery.js +14 -0
  13. package/dist/idp-service/src/services/hooks/useReviewAggregationRulesMutation.d.ts +19 -0
  14. package/dist/idp-service/src/services/hooks/useReviewAggregationRulesMutation.js +14 -0
  15. package/dist/idp-service/src/services/hooks/useSaveDiscoverEntitiesMutation.d.ts +21 -0
  16. package/dist/idp-service/src/services/hooks/useSaveDiscoverEntitiesMutation.js +14 -0
  17. package/dist/idp-service/src/services/hooks/useTriggerAggregationRuleComputationMutation.d.ts +18 -0
  18. package/dist/idp-service/src/services/hooks/useTriggerAggregationRuleComputationMutation.js +14 -0
  19. package/dist/idp-service/src/services/hooks/useUnlinkIntegrationEntitiesMutation.d.ts +22 -0
  20. package/dist/idp-service/src/services/hooks/useUnlinkIntegrationEntitiesMutation.js +14 -0
  21. package/dist/idp-service/src/services/hooks/useUpdateAggregationRuleMutation.d.ts +22 -0
  22. package/dist/idp-service/src/services/hooks/useUpdateAggregationRuleMutation.js +14 -0
  23. package/dist/idp-service/src/services/index.d.ts +45 -0
  24. package/dist/idp-service/src/services/index.js +10 -0
  25. package/dist/idp-service/src/services/requestBodies/SaveDiscoverEntitiesRequestRequestBody.d.ts +2 -0
  26. package/dist/idp-service/src/services/requestBodies/SaveDiscoverEntitiesRequestRequestBody.js +1 -0
  27. package/dist/idp-service/src/services/requestBodies/UnlinkIntegrationEntitiesRequestRequestBody.d.ts +2 -0
  28. package/dist/idp-service/src/services/requestBodies/UnlinkIntegrationEntitiesRequestRequestBody.js +1 -0
  29. package/dist/idp-service/src/services/responses/AggregationRuleDetailsResponseResponse.d.ts +2 -0
  30. package/dist/idp-service/src/services/responses/AggregationRuleDetailsResponseResponse.js +1 -0
  31. package/dist/idp-service/src/services/responses/AggregationRuleResponseListResponse.d.ts +2 -0
  32. package/dist/idp-service/src/services/responses/AggregationRuleResponseListResponse.js +1 -0
  33. package/dist/idp-service/src/services/responses/AggregationSelectionReviewResponseResponse.d.ts +2 -0
  34. package/dist/idp-service/src/services/responses/AggregationSelectionReviewResponseResponse.js +1 -0
  35. package/dist/idp-service/src/services/responses/DiscoverEntitiesResponseListResponse.d.ts +2 -0
  36. package/dist/idp-service/src/services/responses/DiscoverEntitiesResponseListResponse.js +1 -0
  37. package/dist/idp-service/src/services/responses/UnlinkIntegrationEntitiesResponseResponse.d.ts +2 -0
  38. package/dist/idp-service/src/services/responses/UnlinkIntegrationEntitiesResponseResponse.js +1 -0
  39. package/dist/idp-service/src/services/schemas/AggFormula.d.ts +1 -0
  40. package/dist/idp-service/src/services/schemas/AggFormula.js +4 -0
  41. package/dist/idp-service/src/services/schemas/AggregationAccountSelection.d.ts +6 -0
  42. package/dist/idp-service/src/services/schemas/AggregationAccountSelection.js +1 -0
  43. package/dist/idp-service/src/services/schemas/AggregationComputeStatus.d.ts +1 -0
  44. package/dist/idp-service/src/services/schemas/AggregationComputeStatus.js +4 -0
  45. package/dist/idp-service/src/services/schemas/AggregationEntitySelectionCriteria.d.ts +11 -0
  46. package/dist/idp-service/src/services/schemas/AggregationEntitySelectionCriteria.js +4 -0
  47. package/dist/idp-service/src/services/schemas/AggregationOrgSelection.d.ts +6 -0
  48. package/dist/idp-service/src/services/schemas/AggregationOrgSelection.js +4 -0
  49. package/dist/idp-service/src/services/schemas/AggregationPlatformSelection.d.ts +4 -0
  50. package/dist/idp-service/src/services/schemas/AggregationPlatformSelection.js +1 -0
  51. package/dist/idp-service/src/services/schemas/AggregationRule.d.ts +17 -0
  52. package/dist/idp-service/src/services/schemas/AggregationRule.js +1 -0
  53. package/dist/idp-service/src/services/schemas/AggregationRuleDetails.d.ts +22 -0
  54. package/dist/idp-service/src/services/schemas/AggregationRuleDetails.js +1 -0
  55. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsRequest.d.ts +4 -0
  56. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsRequest.js +1 -0
  57. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsResponse.d.ts +4 -0
  58. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsResponse.js +1 -0
  59. package/dist/idp-service/src/services/schemas/AggregationRuleResponse.d.ts +4 -0
  60. package/dist/idp-service/src/services/schemas/AggregationRuleResponse.js +1 -0
  61. package/dist/idp-service/src/services/schemas/AggregationScopeLevel.d.ts +1 -0
  62. package/dist/idp-service/src/services/schemas/AggregationScopeLevel.js +4 -0
  63. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewRequest.d.ts +11 -0
  64. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewRequest.js +1 -0
  65. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewResponse.d.ts +5 -0
  66. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewResponse.js +1 -0
  67. package/dist/idp-service/src/services/schemas/DiscoverEntitiesResponse.d.ts +17 -0
  68. package/dist/idp-service/src/services/schemas/DiscoverEntitiesResponse.js +4 -0
  69. package/dist/idp-service/src/services/schemas/EntityResponse.d.ts +1 -1
  70. package/dist/idp-service/src/services/schemas/SaveDiscoverEntitiesRequest.d.ts +9 -0
  71. package/dist/idp-service/src/services/schemas/SaveDiscoverEntitiesRequest.js +4 -0
  72. package/dist/idp-service/src/services/schemas/UnlinkIntegrationEntitiesRequest.d.ts +3 -0
  73. package/dist/idp-service/src/services/schemas/UnlinkIntegrationEntitiesRequest.js +4 -0
  74. package/dist/idp-service/src/services/schemas/UnlinkIntegrationEntitiesResponse.d.ts +10 -0
  75. package/dist/idp-service/src/services/schemas/UnlinkIntegrationEntitiesResponse.js +4 -0
  76. package/package.json +1 -1
@@ -30,7 +30,7 @@ export function fetcher(options) {
30
30
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
31
31
  finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
32
32
  }
33
- let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
33
+ let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
34
34
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
35
35
  request = fetcherCallbacks.requestInterceptor(request.clone());
36
36
  }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AggregationRuleDetailsResponseResponse } from '../responses/AggregationRuleDetailsResponseResponse';
3
+ import type { AggregationRuleDetailsRequest } from '../schemas/AggregationRuleDetailsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateAggregationRuleMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type CreateAggregationRuleRequestBody = AggregationRuleDetailsRequest;
10
+ export type CreateAggregationRuleOkResponse = ResponseWithPagination<AggregationRuleDetailsResponseResponse>;
11
+ export type CreateAggregationRuleErrorResponse = unknown;
12
+ export interface CreateAggregationRuleProps extends Omit<FetcherOptions<unknown, CreateAggregationRuleRequestBody, CreateAggregationRuleMutationHeaderParams>, 'url'> {
13
+ body: CreateAggregationRuleRequestBody;
14
+ }
15
+ export declare function createAggregationRule(props: CreateAggregationRuleProps): Promise<CreateAggregationRuleOkResponse>;
16
+ /**
17
+ * Create an aggregation rule
18
+ */
19
+ export declare function useCreateAggregationRuleMutation(options?: Omit<UseMutationOptions<CreateAggregationRuleOkResponse, CreateAggregationRuleErrorResponse, CreateAggregationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateAggregationRuleOkResponse, unknown, CreateAggregationRuleProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createAggregationRule(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create an aggregation rule
11
+ */
12
+ export function useCreateAggregationRuleMutation(options) {
13
+ return useMutation((mutateProps) => createAggregationRule(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteAggregationRuleMutationPathParams {
5
+ 'aggregation-rule-id': string;
6
+ }
7
+ export interface DeleteAggregationRuleMutationQueryParams {
8
+ force_delete?: boolean;
9
+ }
10
+ export interface DeleteAggregationRuleMutationHeaderParams {
11
+ 'Harness-Account'?: string;
12
+ }
13
+ export type DeleteAggregationRuleOkResponse = ResponseWithPagination<unknown>;
14
+ export type DeleteAggregationRuleErrorResponse = unknown;
15
+ export interface DeleteAggregationRuleProps extends DeleteAggregationRuleMutationPathParams, Omit<FetcherOptions<DeleteAggregationRuleMutationQueryParams, unknown, DeleteAggregationRuleMutationHeaderParams>, 'url'> {
16
+ queryParams: DeleteAggregationRuleMutationQueryParams;
17
+ }
18
+ export declare function deleteAggregationRule(props: DeleteAggregationRuleProps): Promise<DeleteAggregationRuleOkResponse>;
19
+ /**
20
+ * Delete an aggregation rule
21
+ */
22
+ export declare function useDeleteAggregationRuleMutation(options?: Omit<UseMutationOptions<DeleteAggregationRuleOkResponse, DeleteAggregationRuleErrorResponse, DeleteAggregationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteAggregationRuleOkResponse, unknown, DeleteAggregationRuleProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function deleteAggregationRule(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules/${props['aggregation-rule-id']}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an aggregation rule
11
+ */
12
+ export function useDeleteAggregationRuleMutation(options) {
13
+ return useMutation((mutateProps) => deleteAggregationRule(mutateProps), options);
14
+ }
@@ -9,6 +9,7 @@ export interface DeleteEntityMutationPathParams {
9
9
  export interface DeleteEntityMutationQueryParams {
10
10
  orgIdentifier?: string;
11
11
  projectIdentifier?: string;
12
+ delete_hierarchy_kind_entity?: boolean;
12
13
  }
13
14
  export interface DeleteEntityMutationHeaderParams {
14
15
  'Harness-Account'?: string;
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DiscoverEntitiesResponseListResponse } from '../responses/DiscoverEntitiesResponseListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DiscoverEntitiesQueryPathParams {
6
+ 'integration-id': string;
7
+ }
8
+ export interface DiscoverEntitiesQueryQueryParams {
9
+ page?: number;
10
+ limit?: number;
11
+ sort?: string;
12
+ search_term?: string;
13
+ }
14
+ export interface DiscoverEntitiesQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type DiscoverEntitiesOkResponse = ResponseWithPagination<DiscoverEntitiesResponseListResponse>;
18
+ export type DiscoverEntitiesErrorResponse = unknown;
19
+ export interface DiscoverEntitiesProps extends DiscoverEntitiesQueryPathParams, Omit<FetcherOptions<DiscoverEntitiesQueryQueryParams, unknown, DiscoverEntitiesQueryHeaderParams>, 'url'> {
20
+ queryParams: DiscoverEntitiesQueryQueryParams;
21
+ }
22
+ export declare function discoverEntities(props: DiscoverEntitiesProps): Promise<DiscoverEntitiesOkResponse>;
23
+ /**
24
+ * Get discovered entities for integration
25
+ */
26
+ export declare function useDiscoverEntitiesQuery(props: DiscoverEntitiesProps, options?: Omit<UseQueryOptions<DiscoverEntitiesOkResponse, DiscoverEntitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DiscoverEntitiesOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function discoverEntities(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integrations/${props['integration-id']}/discover/entities`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get discovered entities for integration
11
+ */
12
+ export function useDiscoverEntitiesQuery(props, options) {
13
+ return useQuery(['discover-entities', props['integration-id'], props.queryParams], ({ signal }) => discoverEntities(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AggregationRuleDetailsResponseResponse } from '../responses/AggregationRuleDetailsResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAggregationRuleQueryPathParams {
6
+ 'aggregation-rule-id': string;
7
+ }
8
+ export interface GetAggregationRuleQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetAggregationRuleOkResponse = ResponseWithPagination<AggregationRuleDetailsResponseResponse>;
12
+ export type GetAggregationRuleErrorResponse = unknown;
13
+ export interface GetAggregationRuleProps extends GetAggregationRuleQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAggregationRuleQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getAggregationRule(props: GetAggregationRuleProps): Promise<GetAggregationRuleOkResponse>;
16
+ /**
17
+ * Get an aggregation rule
18
+ */
19
+ export declare function useGetAggregationRuleQuery(props: GetAggregationRuleProps, options?: Omit<UseQueryOptions<GetAggregationRuleOkResponse, GetAggregationRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAggregationRuleOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getAggregationRule(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules/${props['aggregation-rule-id']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get an aggregation rule
11
+ */
12
+ export function useGetAggregationRuleQuery(props, options) {
13
+ return useQuery(['get-aggregation-rule', props['aggregation-rule-id']], ({ signal }) => getAggregationRule(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AggregationRuleResponseListResponse } from '../responses/AggregationRuleResponseListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAggregationRulesQueryQueryParams {
6
+ page?: number;
7
+ limit?: number;
8
+ sort?: string;
9
+ search_term?: string;
10
+ }
11
+ export interface GetAggregationRulesQueryHeaderParams {
12
+ 'Harness-Account'?: string;
13
+ }
14
+ export type GetAggregationRulesOkResponse = ResponseWithPagination<AggregationRuleResponseListResponse>;
15
+ export type GetAggregationRulesErrorResponse = unknown;
16
+ export interface GetAggregationRulesProps extends Omit<FetcherOptions<GetAggregationRulesQueryQueryParams, unknown, GetAggregationRulesQueryHeaderParams>, 'url'> {
17
+ queryParams: GetAggregationRulesQueryQueryParams;
18
+ }
19
+ export declare function getAggregationRules(props: GetAggregationRulesProps): Promise<GetAggregationRulesOkResponse>;
20
+ /**
21
+ * List aggregation rules
22
+ */
23
+ export declare function useGetAggregationRulesQuery(props: GetAggregationRulesProps, options?: Omit<UseQueryOptions<GetAggregationRulesOkResponse, GetAggregationRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAggregationRulesOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getAggregationRules(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List aggregation rules
11
+ */
12
+ export function useGetAggregationRulesQuery(props, options) {
13
+ return useQuery(['get-aggregation-rules', props.queryParams], ({ signal }) => getAggregationRules(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AggregationSelectionReviewResponseResponse } from '../responses/AggregationSelectionReviewResponseResponse';
3
+ import type { AggregationSelectionReviewRequest } from '../schemas/AggregationSelectionReviewRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ReviewAggregationRulesMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type ReviewAggregationRulesRequestBody = AggregationSelectionReviewRequest;
10
+ export type ReviewAggregationRulesOkResponse = ResponseWithPagination<AggregationSelectionReviewResponseResponse>;
11
+ export type ReviewAggregationRulesErrorResponse = unknown;
12
+ export interface ReviewAggregationRulesProps extends Omit<FetcherOptions<unknown, ReviewAggregationRulesRequestBody, ReviewAggregationRulesMutationHeaderParams>, 'url'> {
13
+ body: ReviewAggregationRulesRequestBody;
14
+ }
15
+ export declare function reviewAggregationRules(props: ReviewAggregationRulesProps): Promise<ReviewAggregationRulesOkResponse>;
16
+ /**
17
+ * Resolve platform entities that will contain the aggregated values
18
+ */
19
+ export declare function useReviewAggregationRulesMutation(options?: Omit<UseMutationOptions<ReviewAggregationRulesOkResponse, ReviewAggregationRulesErrorResponse, ReviewAggregationRulesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ReviewAggregationRulesOkResponse, unknown, ReviewAggregationRulesProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function reviewAggregationRules(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules/review`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Resolve platform entities that will contain the aggregated values
11
+ */
12
+ export function useReviewAggregationRulesMutation(options) {
13
+ return useMutation((mutateProps) => reviewAggregationRules(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { SaveDiscoverEntitiesRequestRequestBody } from '../requestBodies/SaveDiscoverEntitiesRequestRequestBody';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface SaveDiscoverEntitiesMutationPathParams {
6
+ 'integration-id': string;
7
+ }
8
+ export interface SaveDiscoverEntitiesMutationHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type SaveDiscoverEntitiesRequestBody = SaveDiscoverEntitiesRequestRequestBody;
12
+ export type SaveDiscoverEntitiesOkResponse = ResponseWithPagination<unknown>;
13
+ export type SaveDiscoverEntitiesErrorResponse = unknown;
14
+ export interface SaveDiscoverEntitiesProps extends SaveDiscoverEntitiesMutationPathParams, Omit<FetcherOptions<unknown, SaveDiscoverEntitiesRequestBody, SaveDiscoverEntitiesMutationHeaderParams>, 'url'> {
15
+ body: SaveDiscoverEntitiesRequestBody;
16
+ }
17
+ export declare function saveDiscoverEntities(props: SaveDiscoverEntitiesProps): Promise<SaveDiscoverEntitiesOkResponse>;
18
+ /**
19
+ * Save discovered entities for integration
20
+ */
21
+ export declare function useSaveDiscoverEntitiesMutation(options?: Omit<UseMutationOptions<SaveDiscoverEntitiesOkResponse, SaveDiscoverEntitiesErrorResponse, SaveDiscoverEntitiesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveDiscoverEntitiesOkResponse, unknown, SaveDiscoverEntitiesProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function saveDiscoverEntities(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integrations/${props['integration-id']}/discover/entities`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Save discovered entities for integration
11
+ */
12
+ export function useSaveDiscoverEntitiesMutation(options) {
13
+ return useMutation((mutateProps) => saveDiscoverEntities(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface TriggerAggregationRuleComputationMutationPathParams {
5
+ 'aggregation-rule-id': string;
6
+ }
7
+ export interface TriggerAggregationRuleComputationMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type TriggerAggregationRuleComputationOkResponse = ResponseWithPagination<unknown>;
11
+ export type TriggerAggregationRuleComputationErrorResponse = unknown;
12
+ export interface TriggerAggregationRuleComputationProps extends TriggerAggregationRuleComputationMutationPathParams, Omit<FetcherOptions<unknown, unknown, TriggerAggregationRuleComputationMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function triggerAggregationRuleComputation(props: TriggerAggregationRuleComputationProps): Promise<TriggerAggregationRuleComputationOkResponse>;
15
+ /**
16
+ * Trigger computation for a rule. If a computation is already running for the rule, the request is rejected.
17
+ */
18
+ export declare function useTriggerAggregationRuleComputationMutation(options?: Omit<UseMutationOptions<TriggerAggregationRuleComputationOkResponse, TriggerAggregationRuleComputationErrorResponse, TriggerAggregationRuleComputationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TriggerAggregationRuleComputationOkResponse, unknown, TriggerAggregationRuleComputationProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function triggerAggregationRuleComputation(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules/${props['aggregation-rule-id']}/compute`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger computation for a rule. If a computation is already running for the rule, the request is rejected.
11
+ */
12
+ export function useTriggerAggregationRuleComputationMutation(options) {
13
+ return useMutation((mutateProps) => triggerAggregationRuleComputation(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { UnlinkIntegrationEntitiesResponseResponse } from '../responses/UnlinkIntegrationEntitiesResponseResponse';
3
+ import type { UnlinkIntegrationEntitiesRequestRequestBody } from '../requestBodies/UnlinkIntegrationEntitiesRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UnlinkIntegrationEntitiesMutationPathParams {
7
+ 'integration-id': string;
8
+ }
9
+ export interface UnlinkIntegrationEntitiesMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UnlinkIntegrationEntitiesRequestBody = UnlinkIntegrationEntitiesRequestRequestBody;
13
+ export type UnlinkIntegrationEntitiesOkResponse = ResponseWithPagination<UnlinkIntegrationEntitiesResponseResponse>;
14
+ export type UnlinkIntegrationEntitiesErrorResponse = unknown;
15
+ export interface UnlinkIntegrationEntitiesProps extends UnlinkIntegrationEntitiesMutationPathParams, Omit<FetcherOptions<unknown, UnlinkIntegrationEntitiesRequestBody, UnlinkIntegrationEntitiesMutationHeaderParams>, 'url'> {
16
+ body: UnlinkIntegrationEntitiesRequestBody;
17
+ }
18
+ export declare function unlinkIntegrationEntities(props: UnlinkIntegrationEntitiesProps): Promise<UnlinkIntegrationEntitiesOkResponse>;
19
+ /**
20
+ * Unlink entities for integration
21
+ */
22
+ export declare function useUnlinkIntegrationEntitiesMutation(options?: Omit<UseMutationOptions<UnlinkIntegrationEntitiesOkResponse, UnlinkIntegrationEntitiesErrorResponse, UnlinkIntegrationEntitiesProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UnlinkIntegrationEntitiesOkResponse, unknown, UnlinkIntegrationEntitiesProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function unlinkIntegrationEntities(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integrations/${props['integration-id']}/entities/unlink`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Unlink entities for integration
11
+ */
12
+ export function useUnlinkIntegrationEntitiesMutation(options) {
13
+ return useMutation((mutateProps) => unlinkIntegrationEntities(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { DefaultSaveResponseResponse } from '../responses/DefaultSaveResponseResponse';
3
+ import type { AggregationRuleDetailsRequest } from '../schemas/AggregationRuleDetailsRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateAggregationRuleMutationPathParams {
7
+ 'aggregation-rule-id': string;
8
+ }
9
+ export interface UpdateAggregationRuleMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UpdateAggregationRuleRequestBody = AggregationRuleDetailsRequest;
13
+ export type UpdateAggregationRuleOkResponse = ResponseWithPagination<DefaultSaveResponseResponse>;
14
+ export type UpdateAggregationRuleErrorResponse = unknown;
15
+ export interface UpdateAggregationRuleProps extends UpdateAggregationRuleMutationPathParams, Omit<FetcherOptions<unknown, UpdateAggregationRuleRequestBody, UpdateAggregationRuleMutationHeaderParams>, 'url'> {
16
+ body: UpdateAggregationRuleRequestBody;
17
+ }
18
+ export declare function updateAggregationRule(props: UpdateAggregationRuleProps): Promise<UpdateAggregationRuleOkResponse>;
19
+ /**
20
+ * Update an aggregation rule
21
+ */
22
+ export declare function useUpdateAggregationRuleMutation(options?: Omit<UseMutationOptions<UpdateAggregationRuleOkResponse, UpdateAggregationRuleErrorResponse, UpdateAggregationRuleProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateAggregationRuleOkResponse, unknown, UpdateAggregationRuleProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateAggregationRule(props) {
7
+ return fetcher(Object.assign({ url: `/v1/aggregation-rules/${props['aggregation-rule-id']}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update an aggregation rule
11
+ */
12
+ export function useUpdateAggregationRuleMutation(options) {
13
+ return useMutation((mutateProps) => updateAggregationRule(mutateProps), options);
14
+ }
@@ -5,6 +5,8 @@ export type { CdEntitiesFetchErrorResponse, CdEntitiesFetchOkResponse, CdEntitie
5
5
  export { cdEntitiesFetch, useCdEntitiesFetchQuery } from './hooks/useCdEntitiesFetchQuery';
6
6
  export type { ConvertEntityErrorResponse, ConvertEntityMutationPathParams, ConvertEntityMutationQueryParams, ConvertEntityOkResponse, ConvertEntityProps, ConvertEntityRequestBody, } from './hooks/useConvertEntityMutation';
7
7
  export { convertEntity, useConvertEntityMutation } from './hooks/useConvertEntityMutation';
8
+ export type { CreateAggregationRuleErrorResponse, CreateAggregationRuleOkResponse, CreateAggregationRuleProps, CreateAggregationRuleRequestBody, } from './hooks/useCreateAggregationRuleMutation';
9
+ export { createAggregationRule, useCreateAggregationRuleMutation, } from './hooks/useCreateAggregationRuleMutation';
8
10
  export type { CreateBackstageEnvVariablesErrorResponse, CreateBackstageEnvVariablesOkResponse, CreateBackstageEnvVariablesProps, CreateBackstageEnvVariablesRequestBody, } from './hooks/useCreateBackstageEnvVariablesMutation';
9
11
  export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
10
12
  export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsProps, CreateBackstagePermissionsRequestBody, } from './hooks/useCreateBackstagePermissionsMutation';
@@ -27,6 +29,8 @@ export type { CreateScorecardErrorResponse, CreateScorecardOkResponse, CreateSco
27
29
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
28
30
  export type { CustomPluginsTriggerErrorResponse, CustomPluginsTriggerMutationPathParams, CustomPluginsTriggerOkResponse, CustomPluginsTriggerProps, } from './hooks/useCustomPluginsTriggerMutation';
29
31
  export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
32
+ export type { DeleteAggregationRuleErrorResponse, DeleteAggregationRuleMutationPathParams, DeleteAggregationRuleMutationQueryParams, DeleteAggregationRuleOkResponse, DeleteAggregationRuleProps, } from './hooks/useDeleteAggregationRuleMutation';
33
+ export { deleteAggregationRule, useDeleteAggregationRuleMutation, } from './hooks/useDeleteAggregationRuleMutation';
30
34
  export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteCheckMutationQueryParams, DeleteCheckOkResponse, DeleteCheckProps, } from './hooks/useDeleteCheckMutation';
31
35
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
32
36
  export type { DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQuickLinksMutationPathParams, DeleteCustomLinkCardQuickLinksOkResponse, DeleteCustomLinkCardQuickLinksProps, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
@@ -47,8 +51,14 @@ export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutPro
47
51
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
48
52
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
49
53
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
54
+ export type { DiscoverEntitiesErrorResponse, DiscoverEntitiesOkResponse, DiscoverEntitiesProps, DiscoverEntitiesQueryPathParams, DiscoverEntitiesQueryQueryParams, } from './hooks/useDiscoverEntitiesQuery';
55
+ export { discoverEntities, useDiscoverEntitiesQuery } from './hooks/useDiscoverEntitiesQuery';
50
56
  export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateYamlDefProps, GenerateYamlDefRequestBody, } from './hooks/useGenerateYamlDefMutation';
51
57
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
58
+ export type { GetAggregationRuleErrorResponse, GetAggregationRuleOkResponse, GetAggregationRuleProps, GetAggregationRuleQueryPathParams, } from './hooks/useGetAggregationRuleQuery';
59
+ export { getAggregationRule, useGetAggregationRuleQuery } from './hooks/useGetAggregationRuleQuery';
60
+ export type { GetAggregationRulesErrorResponse, GetAggregationRulesOkResponse, GetAggregationRulesProps, GetAggregationRulesQueryQueryParams, } from './hooks/useGetAggregationRulesQuery';
61
+ export { getAggregationRules, useGetAggregationRulesQuery, } from './hooks/useGetAggregationRulesQuery';
52
62
  export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
53
63
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
54
64
  export type { GetAllGroupsForAccountErrorResponse, GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountProps, GetAllGroupsForAccountQueryQueryParams, } from './hooks/useGetAllGroupsForAccountQuery';
@@ -161,6 +171,8 @@ export type { PostOnboardingSkipErrorResponse, PostOnboardingSkipOkResponse, Pos
161
171
  export { postOnboardingSkip, usePostOnboardingSkipMutation, } from './hooks/usePostOnboardingSkipMutation';
162
172
  export type { PostPluginRequestErrorResponse, PostPluginRequestOkResponse, PostPluginRequestProps, PostPluginRequestRequestBody, } from './hooks/usePostPluginRequestMutation';
163
173
  export { postPluginRequest, usePostPluginRequestMutation, } from './hooks/usePostPluginRequestMutation';
174
+ export type { ReviewAggregationRulesErrorResponse, ReviewAggregationRulesOkResponse, ReviewAggregationRulesProps, ReviewAggregationRulesRequestBody, } from './hooks/useReviewAggregationRulesMutation';
175
+ export { reviewAggregationRules, useReviewAggregationRulesMutation, } from './hooks/useReviewAggregationRulesMutation';
164
176
  export type { SaveAllowListErrorResponse, SaveAllowListOkResponse, SaveAllowListProps, SaveAllowListRequestBody, } from './hooks/useSaveAllowListMutation';
165
177
  export { saveAllowList, useSaveAllowListMutation } from './hooks/useSaveAllowListMutation';
166
178
  export type { SaveAuthInfoAuthIdErrorResponse, SaveAuthInfoAuthIdMutationPathParams, SaveAuthInfoAuthIdOkResponse, SaveAuthInfoAuthIdProps, SaveAuthInfoAuthIdRequestBody, } from './hooks/useSaveAuthInfoAuthIdMutation';
@@ -169,6 +181,8 @@ export type { SaveConnectorInfoErrorResponse, SaveConnectorInfoOkResponse, SaveC
169
181
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
170
182
  export type { SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoOkResponse, SaveCustomPluginsInfoProps, SaveCustomPluginsInfoRequestBody, } from './hooks/useSaveCustomPluginsInfoMutation';
171
183
  export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
184
+ export type { SaveDiscoverEntitiesErrorResponse, SaveDiscoverEntitiesMutationPathParams, SaveDiscoverEntitiesOkResponse, SaveDiscoverEntitiesProps, SaveDiscoverEntitiesRequestBody, } from './hooks/useSaveDiscoverEntitiesMutation';
185
+ export { saveDiscoverEntities, useSaveDiscoverEntitiesMutation, } from './hooks/useSaveDiscoverEntitiesMutation';
172
186
  export type { SaveGroupErrorResponse, SaveGroupMutationQueryParams, SaveGroupOkResponse, SaveGroupProps, SaveGroupRequestBody, } from './hooks/useSaveGroupMutation';
173
187
  export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
174
188
  export type { SaveHomePageLayoutInfoErrorResponse, SaveHomePageLayoutInfoOkResponse, SaveHomePageLayoutInfoProps, SaveHomePageLayoutInfoRequestBody, } from './hooks/useSaveHomePageLayoutInfoMutation';
@@ -179,6 +193,12 @@ export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse,
179
193
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
180
194
  export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutationPathParams, TogglePluginForAccountMutationQueryParams, TogglePluginForAccountOkResponse, TogglePluginForAccountProps, } from './hooks/useTogglePluginForAccountMutation';
181
195
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
196
+ export type { TriggerAggregationRuleComputationErrorResponse, TriggerAggregationRuleComputationMutationPathParams, TriggerAggregationRuleComputationOkResponse, TriggerAggregationRuleComputationProps, } from './hooks/useTriggerAggregationRuleComputationMutation';
197
+ export { triggerAggregationRuleComputation, useTriggerAggregationRuleComputationMutation, } from './hooks/useTriggerAggregationRuleComputationMutation';
198
+ export type { UnlinkIntegrationEntitiesErrorResponse, UnlinkIntegrationEntitiesMutationPathParams, UnlinkIntegrationEntitiesOkResponse, UnlinkIntegrationEntitiesProps, UnlinkIntegrationEntitiesRequestBody, } from './hooks/useUnlinkIntegrationEntitiesMutation';
199
+ export { unlinkIntegrationEntities, useUnlinkIntegrationEntitiesMutation, } from './hooks/useUnlinkIntegrationEntitiesMutation';
200
+ export type { UpdateAggregationRuleErrorResponse, UpdateAggregationRuleMutationPathParams, UpdateAggregationRuleOkResponse, UpdateAggregationRuleProps, UpdateAggregationRuleRequestBody, } from './hooks/useUpdateAggregationRuleMutation';
201
+ export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hooks/useUpdateAggregationRuleMutation';
182
202
  export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
183
203
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
184
204
  export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateCheckOkResponse, UpdateCheckProps, UpdateCheckRequestBody, } from './hooks/useUpdateCheckMutation';
@@ -234,8 +254,13 @@ export type { OnboardingSkipRequestRequestBody } from './requestBodies/Onboardin
234
254
  export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPluginRequestRequestBody';
235
255
  export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/RequestPluginRequestStatusV2RequestBody';
236
256
  export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
257
+ export type { SaveDiscoverEntitiesRequestRequestBody } from './requestBodies/SaveDiscoverEntitiesRequestRequestBody';
237
258
  export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
259
+ export type { UnlinkIntegrationEntitiesRequestRequestBody } from './requestBodies/UnlinkIntegrationEntitiesRequestRequestBody';
238
260
  export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
261
+ export type { AggregationRuleDetailsResponseResponse } from './responses/AggregationRuleDetailsResponseResponse';
262
+ export type { AggregationRuleResponseListResponse } from './responses/AggregationRuleResponseListResponse';
263
+ export type { AggregationSelectionReviewResponseResponse } from './responses/AggregationSelectionReviewResponseResponse';
239
264
  export type { AllowListResponseResponse } from './responses/AllowListResponseResponse';
240
265
  export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
241
266
  export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
@@ -254,6 +279,7 @@ export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSo
254
279
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
255
280
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
256
281
  export type { DefaultSaveResponseResponse } from './responses/DefaultSaveResponseResponse';
282
+ export type { DiscoverEntitiesResponseListResponse } from './responses/DiscoverEntitiesResponseListResponse';
257
283
  export type { EntitiesGroupsResponseBodyResponse } from './responses/EntitiesGroupsResponseBodyResponse';
258
284
  export type { EntityConvertResponseBodyResponse } from './responses/EntityConvertResponseBodyResponse';
259
285
  export type { EntityFiltersResponseBodyListResponse } from './responses/EntityFiltersResponseBodyListResponse';
@@ -293,10 +319,25 @@ export type { ScorecardResponseListResponse } from './responses/ScorecardRespons
293
319
  export type { ScorecardStatsResponseResponse } from './responses/ScorecardStatsResponseResponse';
294
320
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
295
321
  export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
322
+ export type { UnlinkIntegrationEntitiesResponseResponse } from './responses/UnlinkIntegrationEntitiesResponseResponse';
296
323
  export type { ValidateComplexCheckResponseResponse } from './responses/ValidateComplexCheckResponseResponse';
297
324
  export type { WorkflowsInfoResponseResponse } from './responses/WorkflowsInfoResponseResponse';
298
325
  export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
299
326
  export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
327
+ export type { AggFormula } from './schemas/AggFormula';
328
+ export type { AggregationAccountSelection } from './schemas/AggregationAccountSelection';
329
+ export type { AggregationComputeStatus } from './schemas/AggregationComputeStatus';
330
+ export type { AggregationEntitySelectionCriteria } from './schemas/AggregationEntitySelectionCriteria';
331
+ export type { AggregationOrgSelection } from './schemas/AggregationOrgSelection';
332
+ export type { AggregationPlatformSelection } from './schemas/AggregationPlatformSelection';
333
+ export type { AggregationRule } from './schemas/AggregationRule';
334
+ export type { AggregationRuleDetails } from './schemas/AggregationRuleDetails';
335
+ export type { AggregationRuleDetailsRequest } from './schemas/AggregationRuleDetailsRequest';
336
+ export type { AggregationRuleDetailsResponse } from './schemas/AggregationRuleDetailsResponse';
337
+ export type { AggregationRuleResponse } from './schemas/AggregationRuleResponse';
338
+ export type { AggregationScopeLevel } from './schemas/AggregationScopeLevel';
339
+ export type { AggregationSelectionReviewRequest } from './schemas/AggregationSelectionReviewRequest';
340
+ export type { AggregationSelectionReviewResponse } from './schemas/AggregationSelectionReviewResponse';
300
341
  export type { AllowListRequest } from './schemas/AllowListRequest';
301
342
  export type { AllowListResponse } from './schemas/AllowListResponse';
302
343
  export type { AppConfig } from './schemas/AppConfig';
@@ -346,6 +387,7 @@ export type { DataSourceDataPointsMap } from './schemas/DataSourceDataPointsMap'
346
387
  export type { DataSourceDataPointsMapResponse } from './schemas/DataSourceDataPointsMapResponse';
347
388
  export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
348
389
  export type { DefaultSaveResponse } from './schemas/DefaultSaveResponse';
390
+ export type { DiscoverEntitiesResponse } from './schemas/DiscoverEntitiesResponse';
349
391
  export type { EntitiesByRefsRequest } from './schemas/EntitiesByRefsRequest';
350
392
  export type { EntitiesForImport } from './schemas/EntitiesForImport';
351
393
  export type { EntitiesGroups } from './schemas/EntitiesGroups';
@@ -426,6 +468,7 @@ export type { RequestPluginByIdAndStatus } from './schemas/RequestPluginByIdAndS
426
468
  export type { RequestPluginByStatus } from './schemas/RequestPluginByStatus';
427
469
  export type { RequestPluginV2 } from './schemas/RequestPluginV2';
428
470
  export type { Rule } from './schemas/Rule';
471
+ export type { SaveDiscoverEntitiesRequest } from './schemas/SaveDiscoverEntitiesRequest';
429
472
  export type { Scorecard } from './schemas/Scorecard';
430
473
  export type { ScorecardChecks } from './schemas/ScorecardChecks';
431
474
  export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
@@ -444,6 +487,8 @@ export type { ScorecardSummaryInfo } from './schemas/ScorecardSummaryInfo';
444
487
  export type { StatusInfo } from './schemas/StatusInfo';
445
488
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
446
489
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
490
+ export type { UnlinkIntegrationEntitiesRequest } from './schemas/UnlinkIntegrationEntitiesRequest';
491
+ export type { UnlinkIntegrationEntitiesResponse } from './schemas/UnlinkIntegrationEntitiesResponse';
447
492
  export type { UploadInfo } from './schemas/UploadInfo';
448
493
  export type { User } from './schemas/User';
449
494
  export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
@@ -1,6 +1,7 @@
1
1
  export { cdEntitiesCount, useCdEntitiesCountQuery } from './hooks/useCdEntitiesCountQuery';
2
2
  export { cdEntitiesFetch, useCdEntitiesFetchQuery } from './hooks/useCdEntitiesFetchQuery';
3
3
  export { convertEntity, useConvertEntityMutation } from './hooks/useConvertEntityMutation';
4
+ export { createAggregationRule, useCreateAggregationRuleMutation, } from './hooks/useCreateAggregationRuleMutation';
4
5
  export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
5
6
  export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
6
7
  export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
@@ -12,6 +13,7 @@ export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from
12
13
  export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
13
14
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
14
15
  export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
16
+ export { deleteAggregationRule, useDeleteAggregationRuleMutation, } from './hooks/useDeleteAggregationRuleMutation';
15
17
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
16
18
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
17
19
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
@@ -22,7 +24,10 @@ export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, }
22
24
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
23
25
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
24
26
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
27
+ export { discoverEntities, useDiscoverEntitiesQuery } from './hooks/useDiscoverEntitiesQuery';
25
28
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
29
+ export { getAggregationRule, useGetAggregationRuleQuery } from './hooks/useGetAggregationRuleQuery';
30
+ export { getAggregationRules, useGetAggregationRulesQuery, } from './hooks/useGetAggregationRulesQuery';
26
31
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
27
32
  export { getAllGroupsForAccount, useGetAllGroupsForAccountQuery, } from './hooks/useGetAllGroupsForAccountQuery';
28
33
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
@@ -79,15 +84,20 @@ export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation
79
84
  export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
80
85
  export { postOnboardingSkip, usePostOnboardingSkipMutation, } from './hooks/usePostOnboardingSkipMutation';
81
86
  export { postPluginRequest, usePostPluginRequestMutation, } from './hooks/usePostPluginRequestMutation';
87
+ export { reviewAggregationRules, useReviewAggregationRulesMutation, } from './hooks/useReviewAggregationRulesMutation';
82
88
  export { saveAllowList, useSaveAllowListMutation } from './hooks/useSaveAllowListMutation';
83
89
  export { saveAuthInfoAuthId, useSaveAuthInfoAuthIdMutation, } from './hooks/useSaveAuthInfoAuthIdMutation';
84
90
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
85
91
  export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
92
+ export { saveDiscoverEntities, useSaveDiscoverEntitiesMutation, } from './hooks/useSaveDiscoverEntitiesMutation';
86
93
  export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
87
94
  export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
88
95
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
89
96
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
90
97
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
98
+ export { triggerAggregationRuleComputation, useTriggerAggregationRuleComputationMutation, } from './hooks/useTriggerAggregationRuleComputationMutation';
99
+ export { unlinkIntegrationEntities, useUnlinkIntegrationEntitiesMutation, } from './hooks/useUnlinkIntegrationEntitiesMutation';
100
+ export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hooks/useUpdateAggregationRuleMutation';
91
101
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
92
102
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
93
103
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
@@ -0,0 +1,2 @@
1
+ import type { SaveDiscoverEntitiesRequest } from '../schemas/SaveDiscoverEntitiesRequest';
2
+ export type SaveDiscoverEntitiesRequestRequestBody = SaveDiscoverEntitiesRequest;
@@ -0,0 +1,2 @@
1
+ import type { UnlinkIntegrationEntitiesRequest } from '../schemas/UnlinkIntegrationEntitiesRequest';
2
+ export type UnlinkIntegrationEntitiesRequestRequestBody = UnlinkIntegrationEntitiesRequest;
@@ -0,0 +1,2 @@
1
+ import type { AggregationRuleDetailsResponse } from '../schemas/AggregationRuleDetailsResponse';
2
+ export type AggregationRuleDetailsResponseResponse = AggregationRuleDetailsResponse;
@@ -0,0 +1,2 @@
1
+ import type { AggregationRuleResponse } from '../schemas/AggregationRuleResponse';
2
+ export type AggregationRuleResponseListResponse = AggregationRuleResponse[];
@@ -0,0 +1,2 @@
1
+ import type { AggregationSelectionReviewResponse } from '../schemas/AggregationSelectionReviewResponse';
2
+ export type AggregationSelectionReviewResponseResponse = AggregationSelectionReviewResponse;
@@ -0,0 +1,2 @@
1
+ import type { DiscoverEntitiesResponse } from '../schemas/DiscoverEntitiesResponse';
2
+ export type DiscoverEntitiesResponseListResponse = DiscoverEntitiesResponse[];
@@ -0,0 +1,2 @@
1
+ import type { UnlinkIntegrationEntitiesResponse } from '../schemas/UnlinkIntegrationEntitiesResponse';
2
+ export type UnlinkIntegrationEntitiesResponseResponse = UnlinkIntegrationEntitiesResponse[];
@@ -0,0 +1 @@
1
+ export type AggFormula = 'AVG' | 'COUNT' | 'MAX' | 'MIN' | 'SUM';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { AggregationOrgSelection } from '../schemas/AggregationOrgSelection';
2
+ export interface AggregationAccountSelection {
3
+ include: boolean;
4
+ include_all_children?: 'ORGANIZATIONS' | 'ORGANIZATIONS_AND_PROJECTS' | 'PROJECTS';
5
+ orgs: AggregationOrgSelection[];
6
+ }
@@ -0,0 +1 @@
1
+ export type AggregationComputeStatus = 'CALCULATING' | 'ERROR' | 'SUCCESS';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface AggregationEntitySelectionCriteria {
2
+ kind?: string;
3
+ lifecycles?: string[];
4
+ owners?: string[];
5
+ /**
6
+ * Scope identifiers of selected entities (e.g., org/project)
7
+ */
8
+ scopes?: string[];
9
+ tags?: string[];
10
+ type?: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface AggregationOrgSelection {
2
+ identifier: string;
3
+ include: boolean;
4
+ include_all_projects?: boolean;
5
+ projects: string[];
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ import type { AggregationAccountSelection } from '../schemas/AggregationAccountSelection';
2
+ export interface AggregationPlatformSelection {
3
+ account: AggregationAccountSelection;
4
+ }
@@ -0,0 +1,17 @@
1
+ import type { AggFormula } from '../schemas/AggFormula';
2
+ import type { AggregationComputeStatus } from '../schemas/AggregationComputeStatus';
3
+ import type { AggregationScopeLevel } from '../schemas/AggregationScopeLevel';
4
+ export interface AggregationRule {
5
+ agg_formula: AggFormula;
6
+ description?: string;
7
+ field_for_agg: string;
8
+ identifier: string;
9
+ /**
10
+ * @format int64
11
+ */
12
+ last_computed_at: number;
13
+ last_computed_status?: AggregationComputeStatus;
14
+ last_error_message?: string;
15
+ name: string;
16
+ scopes_to_aggregate_at: AggregationScopeLevel[];
17
+ }
@@ -0,0 +1,22 @@
1
+ import type { AggFormula } from '../schemas/AggFormula';
2
+ import type { AggregationEntitySelectionCriteria } from '../schemas/AggregationEntitySelectionCriteria';
3
+ import type { AggregationComputeStatus } from '../schemas/AggregationComputeStatus';
4
+ import type { AggregationScopeLevel } from '../schemas/AggregationScopeLevel';
5
+ export interface AggregationRuleDetails {
6
+ agg_formula: AggFormula;
7
+ description?: string;
8
+ entity_selection_criteria?: AggregationEntitySelectionCriteria;
9
+ /**
10
+ * Field to aggregate
11
+ */
12
+ field_for_agg: string;
13
+ identifier: string;
14
+ /**
15
+ * @format int64
16
+ */
17
+ last_computed_at?: number;
18
+ last_computed_status?: AggregationComputeStatus;
19
+ last_error_message?: string;
20
+ name: string;
21
+ scopes_to_aggregate_at: AggregationScopeLevel[];
22
+ }
@@ -0,0 +1,4 @@
1
+ import type { AggregationRuleDetails } from '../schemas/AggregationRuleDetails';
2
+ export interface AggregationRuleDetailsRequest {
3
+ aggregation_rule?: AggregationRuleDetails;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { AggregationRuleDetails } from '../schemas/AggregationRuleDetails';
2
+ export interface AggregationRuleDetailsResponse {
3
+ aggregation_rule: AggregationRuleDetails;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { AggregationRule } from '../schemas/AggregationRule';
2
+ export interface AggregationRuleResponse {
3
+ aggregation_rule?: AggregationRule;
4
+ }
@@ -0,0 +1 @@
1
+ export type AggregationScopeLevel = 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT' | 'SYSTEM';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { AggregationScopeLevel } from '../schemas/AggregationScopeLevel';
2
+ export interface AggregationSelectionReviewRequest {
3
+ /**
4
+ * List of input scopes where entities are selected
5
+ */
6
+ scopes: string[];
7
+ /**
8
+ * Levels at which to aggregate and return platform entities
9
+ */
10
+ scopes_to_aggregate_at: AggregationScopeLevel[];
11
+ }
@@ -0,0 +1,5 @@
1
+ import type { AggregationPlatformSelection } from '../schemas/AggregationPlatformSelection';
2
+ export interface AggregationSelectionReviewResponse {
3
+ platform: AggregationPlatformSelection;
4
+ systems: string[];
5
+ }
@@ -0,0 +1,17 @@
1
+ export interface DiscoverEntitiesResponse {
2
+ action: 'MERGE' | 'REGISTER';
3
+ action_destination: Array<{
4
+ entity_ref?: string;
5
+ name?: string;
6
+ }>;
7
+ /**
8
+ * @format int64
9
+ */
10
+ discovered_at: number;
11
+ identifier: string;
12
+ integration_entity_id: string;
13
+ kind: string;
14
+ name: string;
15
+ scope: string;
16
+ type: string;
17
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -29,7 +29,7 @@ export interface EntityResponse {
29
29
  scope?: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
30
30
  }>;
31
31
  identifier: string;
32
- kind: 'api' | 'component' | 'environment' | 'environmentblueprint' | 'group' | 'resource' | 'system' | 'user' | 'workflow';
32
+ kind: 'api' | 'component' | 'environment' | 'environmentblueprint' | 'group' | 'hierarchy' | 'resource' | 'system' | 'user' | 'workflow';
33
33
  lifecycle?: string;
34
34
  metadata?: {
35
35
  [key: string]: any;
@@ -0,0 +1,9 @@
1
+ export interface SaveDiscoverEntitiesRequest {
2
+ all?: boolean;
3
+ auto_discover?: boolean;
4
+ integration_entities: Array<{
5
+ action?: 'MERGE' | 'REGISTER';
6
+ action_destination?: string;
7
+ integration_entity_id?: string;
8
+ }>;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface UnlinkIntegrationEntitiesRequest {
2
+ entity_refs: string[];
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface UnlinkIntegrationEntitiesResponse {
2
+ failed: Array<{
3
+ entity_ref?: string;
4
+ name?: string;
5
+ }>;
6
+ success: Array<{
7
+ entity_ref?: string;
8
+ name?: string;
9
+ }>;
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.86.0",
3
+ "version": "0.88.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",