@harnessio/react-idp-service-client 0.86.0 → 0.87.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 (44) 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/useGetAggregationRulesQuery.d.ts +23 -0
  7. package/dist/idp-service/src/services/hooks/useGetAggregationRulesQuery.js +14 -0
  8. package/dist/idp-service/src/services/hooks/useReviewAggregationRulesMutation.d.ts +19 -0
  9. package/dist/idp-service/src/services/hooks/useReviewAggregationRulesMutation.js +14 -0
  10. package/dist/idp-service/src/services/hooks/useTriggerAggregationRuleComputationMutation.d.ts +18 -0
  11. package/dist/idp-service/src/services/hooks/useTriggerAggregationRuleComputationMutation.js +14 -0
  12. package/dist/idp-service/src/services/hooks/useUpdateAggregationRuleMutation.d.ts +22 -0
  13. package/dist/idp-service/src/services/hooks/useUpdateAggregationRuleMutation.js +14 -0
  14. package/dist/idp-service/src/services/index.d.ts +26 -0
  15. package/dist/idp-service/src/services/index.js +6 -0
  16. package/dist/idp-service/src/services/responses/AggregationRuleDetailsResponseResponse.d.ts +2 -0
  17. package/dist/idp-service/src/services/responses/AggregationRuleDetailsResponseResponse.js +1 -0
  18. package/dist/idp-service/src/services/responses/AggregationRuleResponseListResponse.d.ts +2 -0
  19. package/dist/idp-service/src/services/responses/AggregationRuleResponseListResponse.js +1 -0
  20. package/dist/idp-service/src/services/responses/AggregationSelectionReviewResponseResponse.d.ts +2 -0
  21. package/dist/idp-service/src/services/responses/AggregationSelectionReviewResponseResponse.js +1 -0
  22. package/dist/idp-service/src/services/schemas/AggregationAccountSelection.d.ts +5 -0
  23. package/dist/idp-service/src/services/schemas/AggregationAccountSelection.js +1 -0
  24. package/dist/idp-service/src/services/schemas/AggregationEntitySelectionCriteria.d.ts +10 -0
  25. package/dist/idp-service/src/services/schemas/AggregationEntitySelectionCriteria.js +4 -0
  26. package/dist/idp-service/src/services/schemas/AggregationOrgSelection.d.ts +5 -0
  27. package/dist/idp-service/src/services/schemas/AggregationOrgSelection.js +4 -0
  28. package/dist/idp-service/src/services/schemas/AggregationPlatformSelection.d.ts +4 -0
  29. package/dist/idp-service/src/services/schemas/AggregationPlatformSelection.js +1 -0
  30. package/dist/idp-service/src/services/schemas/AggregationRule.d.ts +14 -0
  31. package/dist/idp-service/src/services/schemas/AggregationRule.js +4 -0
  32. package/dist/idp-service/src/services/schemas/AggregationRuleDetails.d.ts +19 -0
  33. package/dist/idp-service/src/services/schemas/AggregationRuleDetails.js +1 -0
  34. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsRequest.d.ts +4 -0
  35. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsRequest.js +1 -0
  36. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsResponse.d.ts +4 -0
  37. package/dist/idp-service/src/services/schemas/AggregationRuleDetailsResponse.js +1 -0
  38. package/dist/idp-service/src/services/schemas/AggregationRuleResponse.d.ts +4 -0
  39. package/dist/idp-service/src/services/schemas/AggregationRuleResponse.js +1 -0
  40. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewRequest.d.ts +10 -0
  41. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewRequest.js +4 -0
  42. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewResponse.d.ts +5 -0
  43. package/dist/idp-service/src/services/schemas/AggregationSelectionReviewResponse.js +1 -0
  44. 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
+ }
@@ -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,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 { 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';
@@ -49,6 +53,8 @@ export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, D
49
53
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
50
54
  export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateYamlDefProps, GenerateYamlDefRequestBody, } from './hooks/useGenerateYamlDefMutation';
51
55
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
56
+ export type { GetAggregationRulesErrorResponse, GetAggregationRulesOkResponse, GetAggregationRulesProps, GetAggregationRulesQueryQueryParams, } from './hooks/useGetAggregationRulesQuery';
57
+ export { getAggregationRules, useGetAggregationRulesQuery, } from './hooks/useGetAggregationRulesQuery';
52
58
  export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
53
59
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
54
60
  export type { GetAllGroupsForAccountErrorResponse, GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountProps, GetAllGroupsForAccountQueryQueryParams, } from './hooks/useGetAllGroupsForAccountQuery';
@@ -161,6 +167,8 @@ export type { PostOnboardingSkipErrorResponse, PostOnboardingSkipOkResponse, Pos
161
167
  export { postOnboardingSkip, usePostOnboardingSkipMutation, } from './hooks/usePostOnboardingSkipMutation';
162
168
  export type { PostPluginRequestErrorResponse, PostPluginRequestOkResponse, PostPluginRequestProps, PostPluginRequestRequestBody, } from './hooks/usePostPluginRequestMutation';
163
169
  export { postPluginRequest, usePostPluginRequestMutation, } from './hooks/usePostPluginRequestMutation';
170
+ export type { ReviewAggregationRulesErrorResponse, ReviewAggregationRulesOkResponse, ReviewAggregationRulesProps, ReviewAggregationRulesRequestBody, } from './hooks/useReviewAggregationRulesMutation';
171
+ export { reviewAggregationRules, useReviewAggregationRulesMutation, } from './hooks/useReviewAggregationRulesMutation';
164
172
  export type { SaveAllowListErrorResponse, SaveAllowListOkResponse, SaveAllowListProps, SaveAllowListRequestBody, } from './hooks/useSaveAllowListMutation';
165
173
  export { saveAllowList, useSaveAllowListMutation } from './hooks/useSaveAllowListMutation';
166
174
  export type { SaveAuthInfoAuthIdErrorResponse, SaveAuthInfoAuthIdMutationPathParams, SaveAuthInfoAuthIdOkResponse, SaveAuthInfoAuthIdProps, SaveAuthInfoAuthIdRequestBody, } from './hooks/useSaveAuthInfoAuthIdMutation';
@@ -179,6 +187,10 @@ export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse,
179
187
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
180
188
  export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutationPathParams, TogglePluginForAccountMutationQueryParams, TogglePluginForAccountOkResponse, TogglePluginForAccountProps, } from './hooks/useTogglePluginForAccountMutation';
181
189
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
190
+ export type { TriggerAggregationRuleComputationErrorResponse, TriggerAggregationRuleComputationMutationPathParams, TriggerAggregationRuleComputationOkResponse, TriggerAggregationRuleComputationProps, } from './hooks/useTriggerAggregationRuleComputationMutation';
191
+ export { triggerAggregationRuleComputation, useTriggerAggregationRuleComputationMutation, } from './hooks/useTriggerAggregationRuleComputationMutation';
192
+ export type { UpdateAggregationRuleErrorResponse, UpdateAggregationRuleMutationPathParams, UpdateAggregationRuleOkResponse, UpdateAggregationRuleProps, UpdateAggregationRuleRequestBody, } from './hooks/useUpdateAggregationRuleMutation';
193
+ export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hooks/useUpdateAggregationRuleMutation';
182
194
  export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
183
195
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
184
196
  export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateCheckOkResponse, UpdateCheckProps, UpdateCheckRequestBody, } from './hooks/useUpdateCheckMutation';
@@ -236,6 +248,9 @@ export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/Re
236
248
  export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
237
249
  export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
238
250
  export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
251
+ export type { AggregationRuleDetailsResponseResponse } from './responses/AggregationRuleDetailsResponseResponse';
252
+ export type { AggregationRuleResponseListResponse } from './responses/AggregationRuleResponseListResponse';
253
+ export type { AggregationSelectionReviewResponseResponse } from './responses/AggregationSelectionReviewResponseResponse';
239
254
  export type { AllowListResponseResponse } from './responses/AllowListResponseResponse';
240
255
  export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
241
256
  export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
@@ -297,6 +312,17 @@ export type { ValidateComplexCheckResponseResponse } from './responses/ValidateC
297
312
  export type { WorkflowsInfoResponseResponse } from './responses/WorkflowsInfoResponseResponse';
298
313
  export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
299
314
  export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
315
+ export type { AggregationAccountSelection } from './schemas/AggregationAccountSelection';
316
+ export type { AggregationEntitySelectionCriteria } from './schemas/AggregationEntitySelectionCriteria';
317
+ export type { AggregationOrgSelection } from './schemas/AggregationOrgSelection';
318
+ export type { AggregationPlatformSelection } from './schemas/AggregationPlatformSelection';
319
+ export type { AggregationRule } from './schemas/AggregationRule';
320
+ export type { AggregationRuleDetails } from './schemas/AggregationRuleDetails';
321
+ export type { AggregationRuleDetailsRequest } from './schemas/AggregationRuleDetailsRequest';
322
+ export type { AggregationRuleDetailsResponse } from './schemas/AggregationRuleDetailsResponse';
323
+ export type { AggregationRuleResponse } from './schemas/AggregationRuleResponse';
324
+ export type { AggregationSelectionReviewRequest } from './schemas/AggregationSelectionReviewRequest';
325
+ export type { AggregationSelectionReviewResponse } from './schemas/AggregationSelectionReviewResponse';
300
326
  export type { AllowListRequest } from './schemas/AllowListRequest';
301
327
  export type { AllowListResponse } from './schemas/AllowListResponse';
302
328
  export type { AppConfig } from './schemas/AppConfig';
@@ -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';
@@ -23,6 +25,7 @@ export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation
23
25
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
24
26
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
25
27
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
28
+ export { getAggregationRules, useGetAggregationRulesQuery, } from './hooks/useGetAggregationRulesQuery';
26
29
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
27
30
  export { getAllGroupsForAccount, useGetAllGroupsForAccountQuery, } from './hooks/useGetAllGroupsForAccountQuery';
28
31
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
@@ -79,6 +82,7 @@ export { moveEntity, useMoveEntityMutation } from './hooks/useMoveEntityMutation
79
82
  export { onboardingGenerateYaml, useOnboardingGenerateYamlMutation, } from './hooks/useOnboardingGenerateYamlMutation';
80
83
  export { postOnboardingSkip, usePostOnboardingSkipMutation, } from './hooks/usePostOnboardingSkipMutation';
81
84
  export { postPluginRequest, usePostPluginRequestMutation, } from './hooks/usePostPluginRequestMutation';
85
+ export { reviewAggregationRules, useReviewAggregationRulesMutation, } from './hooks/useReviewAggregationRulesMutation';
82
86
  export { saveAllowList, useSaveAllowListMutation } from './hooks/useSaveAllowListMutation';
83
87
  export { saveAuthInfoAuthId, useSaveAuthInfoAuthIdMutation, } from './hooks/useSaveAuthInfoAuthIdMutation';
84
88
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
@@ -88,6 +92,8 @@ export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './ho
88
92
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
89
93
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
90
94
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
95
+ export { triggerAggregationRuleComputation, useTriggerAggregationRuleComputationMutation, } from './hooks/useTriggerAggregationRuleComputationMutation';
96
+ export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hooks/useUpdateAggregationRuleMutation';
91
97
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
92
98
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
93
99
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
@@ -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,5 @@
1
+ import type { AggregationOrgSelection } from '../schemas/AggregationOrgSelection';
2
+ export interface AggregationAccountSelection {
3
+ include: boolean;
4
+ orgs: AggregationOrgSelection[];
5
+ }
@@ -0,0 +1,10 @@
1
+ export interface AggregationEntitySelectionCriteria {
2
+ kinds?: 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
+ }
@@ -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,5 @@
1
+ export interface AggregationOrgSelection {
2
+ identifier: string;
3
+ include: boolean;
4
+ projects: string[];
5
+ }
@@ -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,14 @@
1
+ export interface AggregationRule {
2
+ agg_formula: 'AVG' | 'COUNT' | 'MAX' | 'MIN' | 'SUM';
3
+ description?: string;
4
+ field_for_agg: string;
5
+ identifier: string;
6
+ /**
7
+ * @format int64
8
+ */
9
+ last_computed_at: number;
10
+ last_computed_status?: 'CALCULATING' | 'ERROR' | 'SUCCESS';
11
+ last_error_message?: string;
12
+ name: string;
13
+ scopes_to_aggregate_at: Array<'ACCOUNT' | 'ORGANIZATION' | 'PROJECT' | 'SYSTEM'>;
14
+ }
@@ -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,19 @@
1
+ import type { AggregationEntitySelectionCriteria } from '../schemas/AggregationEntitySelectionCriteria';
2
+ export interface AggregationRuleDetails {
3
+ agg_formula: 'AVG' | 'COUNT' | 'MAX' | 'MIN' | 'SUM';
4
+ description?: string;
5
+ entity_selection_criteria?: AggregationEntitySelectionCriteria;
6
+ /**
7
+ * Field to aggregate
8
+ */
9
+ field_for_agg: string;
10
+ identifier: string;
11
+ /**
12
+ * @format int64
13
+ */
14
+ last_computed_at?: number;
15
+ last_computed_status?: 'CALCULATING' | 'ERROR' | 'SUCCESS';
16
+ last_error_message?: string;
17
+ name: string;
18
+ scopes_to_aggregate_at: Array<'ACCOUNT' | 'ORGANIZATION' | 'PROJECT' | 'SYSTEM'>;
19
+ }
@@ -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,10 @@
1
+ export interface AggregationSelectionReviewRequest {
2
+ /**
3
+ * List of input scopes where entities are selected
4
+ */
5
+ scopes: string[];
6
+ /**
7
+ * Levels at which to aggregate and return platform entities
8
+ */
9
+ scopes_to_aggregate_at: Array<'ACCOUNT' | 'ORGANIZATION' | 'PROJECT' | 'SYSTEM'>;
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 {};
@@ -0,0 +1,5 @@
1
+ import type { AggregationPlatformSelection } from '../schemas/AggregationPlatformSelection';
2
+ export interface AggregationSelectionReviewResponse {
3
+ platform: AggregationPlatformSelection;
4
+ systems: string[];
5
+ }
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.87.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",