@harnessio/react-idp-service-client 0.28.0 → 0.30.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 (79) hide show
  1. package/dist/idp-service/src/services/hooks/useCreateCheckMutation.d.ts +18 -0
  2. package/dist/idp-service/src/services/hooks/useCreateCheckMutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useCreateScorecardMutation.d.ts +18 -0
  4. package/dist/idp-service/src/services/hooks/useCreateScorecardMutation.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useDeleteCheckMutation.d.ts +22 -0
  6. package/dist/idp-service/src/services/hooks/useDeleteCheckMutation.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useDeleteScorecardMutation.d.ts +18 -0
  8. package/dist/idp-service/src/services/hooks/useDeleteScorecardMutation.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useGetAllDatasourcesForAccountQuery.d.ts +16 -0
  10. package/dist/idp-service/src/services/hooks/useGetAllDatasourcesForAccountQuery.js +14 -0
  11. package/dist/idp-service/src/services/hooks/useGetCheckQuery.d.ts +19 -0
  12. package/dist/idp-service/src/services/hooks/useGetCheckQuery.js +14 -0
  13. package/dist/idp-service/src/services/hooks/useGetChecksQuery.d.ts +20 -0
  14. package/dist/idp-service/src/services/hooks/useGetChecksQuery.js +14 -0
  15. package/dist/idp-service/src/services/hooks/useGetDataPointsForDataSourceQuery.d.ts +19 -0
  16. package/dist/idp-service/src/services/hooks/useGetDataPointsForDataSourceQuery.js +14 -0
  17. package/dist/idp-service/src/services/hooks/useGetScorecardQuery.d.ts +19 -0
  18. package/dist/idp-service/src/services/hooks/useGetScorecardQuery.js +14 -0
  19. package/dist/idp-service/src/services/hooks/useGetScorecardsQuery.d.ts +16 -0
  20. package/dist/idp-service/src/services/hooks/useGetScorecardsQuery.js +14 -0
  21. package/dist/idp-service/src/services/hooks/useUpdateCheckMutation.d.ts +21 -0
  22. package/dist/idp-service/src/services/hooks/useUpdateCheckMutation.js +14 -0
  23. package/dist/idp-service/src/services/hooks/useUpdateScorecardMutation.d.ts +21 -0
  24. package/dist/idp-service/src/services/hooks/useUpdateScorecardMutation.js +14 -0
  25. package/dist/idp-service/src/services/index.d.ts +49 -0
  26. package/dist/idp-service/src/services/index.js +12 -0
  27. package/dist/idp-service/src/services/responses/CheckDetailsResponseResponse.d.ts +2 -0
  28. package/dist/idp-service/src/services/responses/CheckDetailsResponseResponse.js +1 -0
  29. package/dist/idp-service/src/services/responses/CheckResponseListResponse.d.ts +2 -0
  30. package/dist/idp-service/src/services/responses/CheckResponseListResponse.js +1 -0
  31. package/dist/idp-service/src/services/responses/DataSourcesResponseResponse.d.ts +2 -0
  32. package/dist/idp-service/src/services/responses/DataSourcesResponseResponse.js +1 -0
  33. package/dist/idp-service/src/services/responses/DatapointResponseResponse.d.ts +2 -0
  34. package/dist/idp-service/src/services/responses/DatapointResponseResponse.js +1 -0
  35. package/dist/idp-service/src/services/responses/ScorecardDetailsResponseResponse.d.ts +2 -0
  36. package/dist/idp-service/src/services/responses/ScorecardDetailsResponseResponse.js +1 -0
  37. package/dist/idp-service/src/services/responses/ScorecardResponseListResponse.d.ts +2 -0
  38. package/dist/idp-service/src/services/responses/ScorecardResponseListResponse.js +1 -0
  39. package/dist/idp-service/src/services/schemas/BackstageEnvSecretVariable.d.ts +1 -0
  40. package/dist/idp-service/src/services/schemas/Check.d.ts +10 -0
  41. package/dist/idp-service/src/services/schemas/Check.js +4 -0
  42. package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +11 -0
  43. package/dist/idp-service/src/services/schemas/CheckDetails.js +1 -0
  44. package/dist/idp-service/src/services/schemas/CheckDetailsRequest.d.ts +4 -0
  45. package/dist/idp-service/src/services/schemas/CheckDetailsRequest.js +1 -0
  46. package/dist/idp-service/src/services/schemas/CheckDetailsResponse.d.ts +4 -0
  47. package/dist/idp-service/src/services/schemas/CheckDetailsResponse.js +1 -0
  48. package/dist/idp-service/src/services/schemas/CheckListItem.d.ts +4 -0
  49. package/dist/idp-service/src/services/schemas/CheckListItem.js +1 -0
  50. package/dist/idp-service/src/services/schemas/CheckResponse.d.ts +4 -0
  51. package/dist/idp-service/src/services/schemas/CheckResponse.js +1 -0
  52. package/dist/idp-service/src/services/schemas/DataPoint.d.ts +10 -0
  53. package/dist/idp-service/src/services/schemas/DataPoint.js +4 -0
  54. package/dist/idp-service/src/services/schemas/DataPointsResponse.d.ts +7 -0
  55. package/dist/idp-service/src/services/schemas/DataPointsResponse.js +1 -0
  56. package/dist/idp-service/src/services/schemas/DataSource.d.ts +8 -0
  57. package/dist/idp-service/src/services/schemas/DataSource.js +4 -0
  58. package/dist/idp-service/src/services/schemas/DataSourcesResponse.d.ts +7 -0
  59. package/dist/idp-service/src/services/schemas/DataSourcesResponse.js +1 -0
  60. package/dist/idp-service/src/services/schemas/Exports.d.ts +9 -0
  61. package/dist/idp-service/src/services/schemas/Rule.d.ts +7 -0
  62. package/dist/idp-service/src/services/schemas/Rule.js +4 -0
  63. package/dist/idp-service/src/services/schemas/Scorecard.d.ts +7 -0
  64. package/dist/idp-service/src/services/schemas/Scorecard.js +1 -0
  65. package/dist/idp-service/src/services/schemas/ScorecardChecks.d.ts +7 -0
  66. package/dist/idp-service/src/services/schemas/ScorecardChecks.js +4 -0
  67. package/dist/idp-service/src/services/schemas/ScorecardChecksDetails.d.ts +5 -0
  68. package/dist/idp-service/src/services/schemas/ScorecardChecksDetails.js +1 -0
  69. package/dist/idp-service/src/services/schemas/ScorecardDetails.d.ts +12 -0
  70. package/dist/idp-service/src/services/schemas/ScorecardDetails.js +1 -0
  71. package/dist/idp-service/src/services/schemas/ScorecardDetailsRequest.d.ts +6 -0
  72. package/dist/idp-service/src/services/schemas/ScorecardDetailsRequest.js +1 -0
  73. package/dist/idp-service/src/services/schemas/ScorecardDetailsResponse.d.ts +6 -0
  74. package/dist/idp-service/src/services/schemas/ScorecardDetailsResponse.js +1 -0
  75. package/dist/idp-service/src/services/schemas/ScorecardFilters.d.ts +7 -0
  76. package/dist/idp-service/src/services/schemas/ScorecardFilters.js +4 -0
  77. package/dist/idp-service/src/services/schemas/ScorecardResponse.d.ts +4 -0
  78. package/dist/idp-service/src/services/schemas/ScorecardResponse.js +1 -0
  79. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CheckDetailsRequest } from '../schemas/CheckDetailsRequest';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CreateCheckMutationHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type CreateCheckRequestBody = CheckDetailsRequest;
9
+ export type CreateCheckOkResponse = ResponseWithPagination<unknown>;
10
+ export type CreateCheckErrorResponse = unknown;
11
+ export interface CreateCheckProps extends Omit<FetcherOptions<unknown, CreateCheckRequestBody, CreateCheckMutationHeaderParams>, 'url'> {
12
+ body: CreateCheckRequestBody;
13
+ }
14
+ export declare function createCheck(props: CreateCheckProps): Promise<CreateCheckOkResponse>;
15
+ /**
16
+ * Create a custom check
17
+ */
18
+ export declare function useCreateCheckMutation(options?: Omit<UseMutationOptions<CreateCheckOkResponse, CreateCheckErrorResponse, CreateCheckProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateCheckOkResponse, unknown, CreateCheckProps, 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 createCheck(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a custom check
11
+ */
12
+ export function useCreateCheckMutation(options) {
13
+ return useMutation((mutateProps) => createCheck(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ScorecardDetailsRequest } from '../schemas/ScorecardDetailsRequest';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface CreateScorecardMutationHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type CreateScorecardRequestBody = ScorecardDetailsRequest;
9
+ export type CreateScorecardOkResponse = ResponseWithPagination<unknown>;
10
+ export type CreateScorecardErrorResponse = unknown;
11
+ export interface CreateScorecardProps extends Omit<FetcherOptions<unknown, CreateScorecardRequestBody, CreateScorecardMutationHeaderParams>, 'url'> {
12
+ body: CreateScorecardRequestBody;
13
+ }
14
+ export declare function createScorecard(props: CreateScorecardProps): Promise<CreateScorecardOkResponse>;
15
+ /**
16
+ * Create scorecard
17
+ */
18
+ export declare function useCreateScorecardMutation(options?: Omit<UseMutationOptions<CreateScorecardOkResponse, CreateScorecardErrorResponse, CreateScorecardProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateScorecardOkResponse, unknown, CreateScorecardProps, 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 createScorecard(props) {
7
+ return fetcher(Object.assign({ url: `/v1/scorecards`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create scorecard
11
+ */
12
+ export function useCreateScorecardMutation(options) {
13
+ return useMutation((mutateProps) => createScorecard(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 DeleteCheckMutationPathParams {
5
+ 'check-id': string;
6
+ }
7
+ export interface DeleteCheckMutationQueryParams {
8
+ force_delete?: boolean;
9
+ }
10
+ export interface DeleteCheckMutationHeaderParams {
11
+ 'Harness-Account'?: string;
12
+ }
13
+ export type DeleteCheckOkResponse = ResponseWithPagination<unknown>;
14
+ export type DeleteCheckErrorResponse = unknown;
15
+ export interface DeleteCheckProps extends DeleteCheckMutationPathParams, Omit<FetcherOptions<DeleteCheckMutationQueryParams, unknown, DeleteCheckMutationHeaderParams>, 'url'> {
16
+ queryParams: DeleteCheckMutationQueryParams;
17
+ }
18
+ export declare function deleteCheck(props: DeleteCheckProps): Promise<DeleteCheckOkResponse>;
19
+ /**
20
+ * Delete check details for given checkId
21
+ */
22
+ export declare function useDeleteCheckMutation(options?: Omit<UseMutationOptions<DeleteCheckOkResponse, DeleteCheckErrorResponse, DeleteCheckProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteCheckOkResponse, unknown, DeleteCheckProps, 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 deleteCheck(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks/${props['check-id']}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete check details for given checkId
11
+ */
12
+ export function useDeleteCheckMutation(options) {
13
+ return useMutation((mutateProps) => deleteCheck(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 DeleteScorecardMutationPathParams {
5
+ 'scorecard-id': string;
6
+ }
7
+ export interface DeleteScorecardMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteScorecardOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteScorecardErrorResponse = unknown;
12
+ export interface DeleteScorecardProps extends DeleteScorecardMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteScorecardMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteScorecard(props: DeleteScorecardProps): Promise<DeleteScorecardOkResponse>;
15
+ /**
16
+ * Delete scorecard details for given scorecardId
17
+ */
18
+ export declare function useDeleteScorecardMutation(options?: Omit<UseMutationOptions<DeleteScorecardOkResponse, DeleteScorecardErrorResponse, DeleteScorecardProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteScorecardOkResponse, unknown, DeleteScorecardProps, 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 deleteScorecard(props) {
7
+ return fetcher(Object.assign({ url: `/v1/scorecards/${props['scorecard-id']}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete scorecard details for given scorecardId
11
+ */
12
+ export function useDeleteScorecardMutation(options) {
13
+ return useMutation((mutateProps) => deleteScorecard(mutateProps), options);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DataSourcesResponseResponse } from '../responses/DataSourcesResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAllDatasourcesForAccountQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetAllDatasourcesForAccountOkResponse = ResponseWithPagination<DataSourcesResponseResponse>;
9
+ export type GetAllDatasourcesForAccountErrorResponse = unknown;
10
+ export interface GetAllDatasourcesForAccountProps extends Omit<FetcherOptions<unknown, unknown, GetAllDatasourcesForAccountQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getAllDatasourcesForAccount(props: GetAllDatasourcesForAccountProps): Promise<GetAllDatasourcesForAccountOkResponse>;
13
+ /**
14
+ * API for getting all the datasources present in account.
15
+ */
16
+ export declare function useGetAllDatasourcesForAccountQuery(props: GetAllDatasourcesForAccountProps, options?: Omit<UseQueryOptions<GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllDatasourcesForAccountOkResponse, 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 getAllDatasourcesForAccount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/data-sources`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * API for getting all the datasources present in account.
11
+ */
12
+ export function useGetAllDatasourcesForAccountQuery(props, options) {
13
+ return useQuery(['get-all-datasources-for-account'], ({ signal }) => getAllDatasourcesForAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CheckDetailsResponseResponse } from '../responses/CheckDetailsResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetCheckQueryPathParams {
6
+ 'check-id': string;
7
+ }
8
+ export interface GetCheckQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetCheckOkResponse = ResponseWithPagination<CheckDetailsResponseResponse>;
12
+ export type GetCheckErrorResponse = unknown;
13
+ export interface GetCheckProps extends GetCheckQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetCheckQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getCheck(props: GetCheckProps): Promise<GetCheckOkResponse>;
16
+ /**
17
+ * Get check details for given checkId
18
+ */
19
+ export declare function useGetCheckQuery(props: GetCheckProps, options?: Omit<UseQueryOptions<GetCheckOkResponse, GetCheckErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCheckOkResponse, 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 getCheck(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks/${props['check-id']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get check details for given checkId
11
+ */
12
+ export function useGetCheckQuery(props, options) {
13
+ return useQuery(['get-check', props['check-id']], ({ signal }) => getCheck(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,20 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CheckResponseListResponse } from '../responses/CheckResponseListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetChecksQueryQueryParams {
6
+ custom: boolean;
7
+ }
8
+ export interface GetChecksQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetChecksOkResponse = ResponseWithPagination<CheckResponseListResponse>;
12
+ export type GetChecksErrorResponse = unknown;
13
+ export interface GetChecksProps extends Omit<FetcherOptions<GetChecksQueryQueryParams, unknown, GetChecksQueryHeaderParams>, 'url'> {
14
+ queryParams: GetChecksQueryQueryParams;
15
+ }
16
+ export declare function getChecks(props: GetChecksProps): Promise<GetChecksOkResponse>;
17
+ /**
18
+ * Get all checks available
19
+ */
20
+ export declare function useGetChecksQuery(props: GetChecksProps, options?: Omit<UseQueryOptions<GetChecksOkResponse, GetChecksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChecksOkResponse, 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 getChecks(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get all checks available
11
+ */
12
+ export function useGetChecksQuery(props, options) {
13
+ return useQuery(['get-checks', props.queryParams], ({ signal }) => getChecks(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { DatapointResponseResponse } from '../responses/DatapointResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetDataPointsForDataSourceQueryPathParams {
6
+ 'data-source': string;
7
+ }
8
+ export interface GetDataPointsForDataSourceQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetDataPointsForDataSourceOkResponse = ResponseWithPagination<DatapointResponseResponse>;
12
+ export type GetDataPointsForDataSourceErrorResponse = unknown;
13
+ export interface GetDataPointsForDataSourceProps extends GetDataPointsForDataSourceQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetDataPointsForDataSourceQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getDataPointsForDataSource(props: GetDataPointsForDataSourceProps): Promise<GetDataPointsForDataSourceOkResponse>;
16
+ /**
17
+ * Get DataPoints Present in DataSources
18
+ */
19
+ export declare function useGetDataPointsForDataSourceQuery(props: GetDataPointsForDataSourceProps, options?: Omit<UseQueryOptions<GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDataPointsForDataSourceOkResponse, 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 getDataPointsForDataSource(props) {
7
+ return fetcher(Object.assign({ url: `/v1/data-sources/${props['data-source']}/datapoints`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get DataPoints Present in DataSources
11
+ */
12
+ export function useGetDataPointsForDataSourceQuery(props, options) {
13
+ return useQuery(['get-data-points-for-data-source', props['data-source']], ({ signal }) => getDataPointsForDataSource(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ScorecardDetailsResponseResponse } from '../responses/ScorecardDetailsResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetScorecardQueryPathParams {
6
+ 'scorecard-id': string;
7
+ }
8
+ export interface GetScorecardQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetScorecardOkResponse = ResponseWithPagination<ScorecardDetailsResponseResponse>;
12
+ export type GetScorecardErrorResponse = unknown;
13
+ export interface GetScorecardProps extends GetScorecardQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetScorecardQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getScorecard(props: GetScorecardProps): Promise<GetScorecardOkResponse>;
16
+ /**
17
+ * Get scorecard details for given scorecardId
18
+ */
19
+ export declare function useGetScorecardQuery(props: GetScorecardProps, options?: Omit<UseQueryOptions<GetScorecardOkResponse, GetScorecardErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetScorecardOkResponse, 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 getScorecard(props) {
7
+ return fetcher(Object.assign({ url: `/v1/scorecards/${props['scorecard-id']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get scorecard details for given scorecardId
11
+ */
12
+ export function useGetScorecardQuery(props, options) {
13
+ return useQuery(['get-scorecard', props['scorecard-id']], ({ signal }) => getScorecard(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ScorecardResponseListResponse } from '../responses/ScorecardResponseListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetScorecardsQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetScorecardsOkResponse = ResponseWithPagination<ScorecardResponseListResponse>;
9
+ export type GetScorecardsErrorResponse = unknown;
10
+ export interface GetScorecardsProps extends Omit<FetcherOptions<unknown, unknown, GetScorecardsQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getScorecards(props: GetScorecardsProps): Promise<GetScorecardsOkResponse>;
13
+ /**
14
+ * Get all scorecards available
15
+ */
16
+ export declare function useGetScorecardsQuery(props: GetScorecardsProps, options?: Omit<UseQueryOptions<GetScorecardsOkResponse, GetScorecardsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetScorecardsOkResponse, 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 getScorecards(props) {
7
+ return fetcher(Object.assign({ url: `/v1/scorecards`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get all scorecards available
11
+ */
12
+ export function useGetScorecardsQuery(props, options) {
13
+ return useQuery(['get-scorecards'], ({ signal }) => getScorecards(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CheckDetailsRequest } from '../schemas/CheckDetailsRequest';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface UpdateCheckMutationPathParams {
6
+ 'check-id': string;
7
+ }
8
+ export interface UpdateCheckMutationHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type UpdateCheckRequestBody = CheckDetailsRequest;
12
+ export type UpdateCheckOkResponse = ResponseWithPagination<unknown>;
13
+ export type UpdateCheckErrorResponse = unknown;
14
+ export interface UpdateCheckProps extends UpdateCheckMutationPathParams, Omit<FetcherOptions<unknown, UpdateCheckRequestBody, UpdateCheckMutationHeaderParams>, 'url'> {
15
+ body: UpdateCheckRequestBody;
16
+ }
17
+ export declare function updateCheck(props: UpdateCheckProps): Promise<UpdateCheckOkResponse>;
18
+ /**
19
+ * Update check details for given checkId
20
+ */
21
+ export declare function useUpdateCheckMutation(options?: Omit<UseMutationOptions<UpdateCheckOkResponse, UpdateCheckErrorResponse, UpdateCheckProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateCheckOkResponse, unknown, UpdateCheckProps, 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 updateCheck(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks/${props['check-id']}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update check details for given checkId
11
+ */
12
+ export function useUpdateCheckMutation(options) {
13
+ return useMutation((mutateProps) => updateCheck(mutateProps), options);
14
+ }
@@ -0,0 +1,21 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ScorecardDetailsRequest } from '../schemas/ScorecardDetailsRequest';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface UpdateScorecardMutationPathParams {
6
+ 'scorecard-id': string;
7
+ }
8
+ export interface UpdateScorecardMutationHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type UpdateScorecardRequestBody = ScorecardDetailsRequest;
12
+ export type UpdateScorecardOkResponse = ResponseWithPagination<unknown>;
13
+ export type UpdateScorecardErrorResponse = unknown;
14
+ export interface UpdateScorecardProps extends UpdateScorecardMutationPathParams, Omit<FetcherOptions<unknown, UpdateScorecardRequestBody, UpdateScorecardMutationHeaderParams>, 'url'> {
15
+ body: UpdateScorecardRequestBody;
16
+ }
17
+ export declare function updateScorecard(props: UpdateScorecardProps): Promise<UpdateScorecardOkResponse>;
18
+ /**
19
+ * Update scorecard details for given scorecardId
20
+ */
21
+ export declare function useUpdateScorecardMutation(options?: Omit<UseMutationOptions<UpdateScorecardOkResponse, UpdateScorecardErrorResponse, UpdateScorecardProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateScorecardOkResponse, unknown, UpdateScorecardProps, 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 updateScorecard(props) {
7
+ return fetcher(Object.assign({ url: `/v1/scorecards/${props['scorecard-id']}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update scorecard details for given scorecardId
11
+ */
12
+ export function useUpdateScorecardMutation(options) {
13
+ return useMutation((mutateProps) => updateScorecard(mutateProps), options);
14
+ }
@@ -3,8 +3,18 @@ export type { CreateBackstageEnvVariablesErrorResponse, CreateBackstageEnvVariab
3
3
  export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
4
4
  export type { CreateBackstagePermissionsErrorResponse, CreateBackstagePermissionsOkResponse, CreateBackstagePermissionsProps, CreateBackstagePermissionsRequestBody, } from './hooks/useCreateBackstagePermissionsMutation';
5
5
  export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
6
+ export type { CreateCheckErrorResponse, CreateCheckOkResponse, CreateCheckProps, CreateCheckRequestBody, } from './hooks/useCreateCheckMutation';
7
+ export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
6
8
  export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
7
9
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
10
+ export type { CreateScorecardErrorResponse, CreateScorecardOkResponse, CreateScorecardProps, CreateScorecardRequestBody, } from './hooks/useCreateScorecardMutation';
11
+ export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
12
+ export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteCheckMutationQueryParams, DeleteCheckOkResponse, DeleteCheckProps, } from './hooks/useDeleteCheckMutation';
13
+ export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
14
+ export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
15
+ export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
16
+ export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
17
+ export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
8
18
  export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayoutsProps, } from './hooks/useGetAllLayoutsQuery';
9
19
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
10
20
  export type { GetAllowListErrorResponse, GetAllowListOkResponse, GetAllowListProps, } from './hooks/useGetAllowListQuery';
@@ -13,8 +23,14 @@ export type { GetAuthInfoAuthIdErrorResponse, GetAuthInfoAuthIdOkResponse, GetAu
13
23
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
14
24
  export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
15
25
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
26
+ export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheckQueryPathParams, } from './hooks/useGetCheckQuery';
27
+ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
28
+ export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetChecksQueryQueryParams, } from './hooks/useGetChecksQuery';
29
+ export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
16
30
  export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
17
31
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
32
+ export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceProps, GetDataPointsForDataSourceQueryPathParams, } from './hooks/useGetDataPointsForDataSourceQuery';
33
+ export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
18
34
  export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
19
35
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
20
36
  export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
@@ -27,6 +43,10 @@ export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkRespo
27
43
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
28
44
  export type { GetPluginsErrorResponse, GetPluginsOkResponse, GetPluginsProps, } from './hooks/useGetPluginsQuery';
29
45
  export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
46
+ export type { GetScorecardErrorResponse, GetScorecardOkResponse, GetScorecardProps, GetScorecardQueryPathParams, } from './hooks/useGetScorecardQuery';
47
+ export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery';
48
+ export type { GetScorecardsErrorResponse, GetScorecardsOkResponse, GetScorecardsProps, } from './hooks/useGetScorecardsQuery';
49
+ export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
30
50
  export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
31
51
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
32
52
  export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
@@ -49,8 +69,12 @@ export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutatio
49
69
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
50
70
  export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
51
71
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
72
+ export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateCheckOkResponse, UpdateCheckProps, UpdateCheckRequestBody, } from './hooks/useUpdateCheckMutation';
73
+ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
52
74
  export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntitiesOkResponse, UpdateConfigurationEntitiesProps, UpdateConfigurationEntitiesRequestBody, } from './hooks/useUpdateConfigurationEntitiesMutation';
53
75
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
76
+ export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
77
+ export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
54
78
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
55
79
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
56
80
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
@@ -64,8 +88,12 @@ export type { AppConfigResponseResponse } from './responses/AppConfigResponseRes
64
88
  export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
65
89
  export type { BackstageEnvVariableResponseListResponse } from './responses/BackstageEnvVariableResponseListResponse';
66
90
  export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
91
+ export type { CheckDetailsResponseResponse } from './responses/CheckDetailsResponseResponse';
92
+ export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
67
93
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
68
94
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
95
+ export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
96
+ export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
69
97
  export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
70
98
  export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
71
99
  export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
@@ -74,6 +102,8 @@ export type { LayoutResponseResponse } from './responses/LayoutResponseResponse'
74
102
  export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
75
103
  export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetailedInfoResponseResponse';
76
104
  export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
105
+ export type { ScorecardDetailsResponseResponse } from './responses/ScorecardDetailsResponseResponse';
106
+ export type { ScorecardResponseListResponse } from './responses/ScorecardResponseListResponse';
77
107
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
78
108
  export type { AllowListRequest } from './schemas/AllowListRequest';
79
109
  export type { AllowListResponse } from './schemas/AllowListResponse';
@@ -90,10 +120,20 @@ export type { BackstagePermissions } from './schemas/BackstagePermissions';
90
120
  export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
91
121
  export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
92
122
  export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
123
+ export type { Check } from './schemas/Check';
124
+ export type { CheckDetails } from './schemas/CheckDetails';
125
+ export type { CheckDetailsRequest } from './schemas/CheckDetailsRequest';
126
+ export type { CheckDetailsResponse } from './schemas/CheckDetailsResponse';
127
+ export type { CheckListItem } from './schemas/CheckListItem';
128
+ export type { CheckResponse } from './schemas/CheckResponse';
93
129
  export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
94
130
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
95
131
  export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
96
132
  export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
133
+ export type { DataPoint } from './schemas/DataPoint';
134
+ export type { DataPointsResponse } from './schemas/DataPointsResponse';
135
+ export type { DataSource } from './schemas/DataSource';
136
+ export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
97
137
  export type { EntitiesForImport } from './schemas/EntitiesForImport';
98
138
  export type { ExportDetails } from './schemas/ExportDetails';
99
139
  export type { Exports } from './schemas/Exports';
@@ -117,5 +157,14 @@ export type { PluginInfo } from './schemas/PluginInfo';
117
157
  export type { PluginInfoResponse } from './schemas/PluginInfoResponse';
118
158
  export type { ProxyHostDetail } from './schemas/ProxyHostDetail';
119
159
  export type { RequestPlugin } from './schemas/RequestPlugin';
160
+ export type { Rule } from './schemas/Rule';
161
+ export type { Scorecard } from './schemas/Scorecard';
162
+ export type { ScorecardChecks } from './schemas/ScorecardChecks';
163
+ export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
164
+ export type { ScorecardDetails } from './schemas/ScorecardDetails';
165
+ export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest';
166
+ export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
167
+ export type { ScorecardFilters } from './schemas/ScorecardFilters';
168
+ export type { ScorecardResponse } from './schemas/ScorecardResponse';
120
169
  export type { StatusInfo } from './schemas/StatusInfo';
121
170
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
@@ -1,17 +1,27 @@
1
1
  export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, } from './hooks/useCreateBackstageEnvVariablesMutation';
2
2
  export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
3
+ export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
3
4
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
5
+ export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
6
+ export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
7
+ export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
8
+ export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
4
9
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
5
10
  export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
6
11
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
7
12
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
13
+ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
14
+ export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
8
15
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
16
+ export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
9
17
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
10
18
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
11
19
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
12
20
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
13
21
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
14
22
  export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
23
+ export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery';
24
+ export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
15
25
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
16
26
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
17
27
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
@@ -23,4 +33,6 @@ export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSav
23
33
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
24
34
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
25
35
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
36
+ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
26
37
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
38
+ export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
@@ -0,0 +1,2 @@
1
+ import type { CheckDetailsResponse } from '../schemas/CheckDetailsResponse';
2
+ export type CheckDetailsResponseResponse = CheckDetailsResponse;
@@ -0,0 +1,2 @@
1
+ import type { CheckResponse } from '../schemas/CheckResponse';
2
+ export type CheckResponseListResponse = CheckResponse[];
@@ -0,0 +1,2 @@
1
+ import type { DataSourcesResponse } from '../schemas/DataSourcesResponse';
2
+ export type DataSourcesResponseResponse = DataSourcesResponse;
@@ -0,0 +1,2 @@
1
+ import type { DataPointsResponse } from '../schemas/DataPointsResponse';
2
+ export type DatapointResponseResponse = DataPointsResponse;
@@ -0,0 +1,2 @@
1
+ import type { ScorecardDetailsResponse } from '../schemas/ScorecardDetailsResponse';
2
+ export type ScorecardDetailsResponseResponse = ScorecardDetailsResponse;
@@ -0,0 +1,2 @@
1
+ import type { ScorecardResponse } from '../schemas/ScorecardResponse';
2
+ export type ScorecardResponseListResponse = ScorecardResponse[];
@@ -1,5 +1,6 @@
1
1
  import type { BackstageEnvVariable } from '../schemas/BackstageEnvVariable';
2
2
  export interface BackstageEnvSecretVariable extends BackstageEnvVariable {
3
3
  harness_secret_identifier: string;
4
+ is_deleted?: boolean;
4
5
  type: 'Secret';
5
6
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Check
3
+ */
4
+ export interface Check {
5
+ description?: string;
6
+ expression?: string;
7
+ identifier: string;
8
+ labels?: string[];
9
+ name: 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,11 @@
1
+ import type { Rule } from '../schemas/Rule';
2
+ import type { Check } from '../schemas/Check';
3
+ export interface CheckDetails extends Check {
4
+ custom: boolean;
5
+ default_behaviour: 'FAIL' | 'PASS';
6
+ fail_message?: string;
7
+ harness_managed?: boolean;
8
+ rule_strategy: 'ALL_OF' | 'ANY_OF';
9
+ rules: Rule[];
10
+ tags?: string[];
11
+ }
@@ -0,0 +1,4 @@
1
+ import type { CheckDetails } from '../schemas/CheckDetails';
2
+ export interface CheckDetailsRequest {
3
+ check_details?: CheckDetails;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { CheckDetails } from '../schemas/CheckDetails';
2
+ export interface CheckDetailsResponse {
3
+ check_details: CheckDetails;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { Check } from '../schemas/Check';
2
+ export interface CheckListItem extends Check {
3
+ data_source: string[];
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { CheckListItem } from '../schemas/CheckListItem';
2
+ export interface CheckResponse {
3
+ check?: CheckListItem;
4
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Conatins detail for single data point
3
+ */
4
+ export interface DataPoint {
5
+ conditional_input_description: string;
6
+ description: string;
7
+ is_conditional: boolean;
8
+ name: string;
9
+ type: 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,7 @@
1
+ import type { DataPoint } from '../schemas/DataPoint';
2
+ /**
3
+ * Resposne for List of Data Points
4
+ */
5
+ export interface DataPointsResponse {
6
+ data_points: DataPoint[];
7
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contains Details for Single Data source
3
+ */
4
+ export interface DataSource {
5
+ description: string;
6
+ identifier: string;
7
+ name: string;
8
+ }
@@ -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,7 @@
1
+ import type { DataSource } from '../schemas/DataSource';
2
+ /**
3
+ * Response for list of data sources
4
+ */
5
+ export interface DataSourcesResponse {
6
+ data_sources: DataSource[];
7
+ }
@@ -1,8 +1,17 @@
1
1
  import type { ExportDetails } from '../schemas/ExportDetails';
2
2
  export interface Exports {
3
+ /**
4
+ * @default 0
5
+ */
3
6
  cards: number;
4
7
  default_entity_types: string[];
5
8
  export_details: ExportDetails[];
9
+ /**
10
+ * @default 0
11
+ */
6
12
  pages: number;
13
+ /**
14
+ * @default 0
15
+ */
7
16
  tab_contents: number;
8
17
  }
@@ -0,0 +1,7 @@
1
+ export interface Rule {
2
+ conditional_input_value: string;
3
+ data_point_identifier: string;
4
+ data_source_identifier: string;
5
+ operator: string;
6
+ value: string;
7
+ }
@@ -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,7 @@
1
+ import type { Check } from '../schemas/Check';
2
+ export interface Scorecard {
3
+ checks: Check[];
4
+ description?: string;
5
+ identifier: string;
6
+ name: string;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface ScorecardChecks {
2
+ identifier: string;
3
+ /**
4
+ * @format double
5
+ */
6
+ weightage?: number;
7
+ }
@@ -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 { ScorecardChecks } from '../schemas/ScorecardChecks';
2
+ export interface ScorecardChecksDetails extends ScorecardChecks {
3
+ description?: string;
4
+ name: string;
5
+ }
@@ -0,0 +1,12 @@
1
+ import type { ScorecardFilters } from '../schemas/ScorecardFilters';
2
+ export interface ScorecardDetails {
3
+ description?: string;
4
+ filters: ScorecardFilters[];
5
+ identifier: string;
6
+ name: string;
7
+ published: boolean;
8
+ /**
9
+ * @default "EQUAL_WEIGHTS"
10
+ */
11
+ weightage_strategy?: 'CUSTOM' | 'EQUAL_WEIGHTS';
12
+ }
@@ -0,0 +1,6 @@
1
+ import type { ScorecardChecks } from '../schemas/ScorecardChecks';
2
+ import type { ScorecardDetails } from '../schemas/ScorecardDetails';
3
+ export interface ScorecardDetailsRequest {
4
+ checks: ScorecardChecks[];
5
+ scorecard: ScorecardDetails;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { ScorecardChecksDetails } from '../schemas/ScorecardChecksDetails';
2
+ import type { ScorecardDetails } from '../schemas/ScorecardDetails';
3
+ export interface ScorecardDetailsResponse {
4
+ checks: ScorecardChecksDetails[];
5
+ scorecard: ScorecardDetails;
6
+ }
@@ -0,0 +1,7 @@
1
+ export interface ScorecardFilters {
2
+ kind: string;
3
+ lifecycle?: string[];
4
+ owners?: string[];
5
+ tags?: string[];
6
+ type: string;
7
+ }
@@ -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 { Scorecard } from '../schemas/Scorecard';
2
+ export interface ScorecardResponse {
3
+ scorecard?: Scorecard;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",