@harnessio/react-idp-service-client 0.28.0 → 0.29.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 (75) 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/useGetAllDatasourcesForAccountQuery.d.ts +16 -0
  6. package/dist/idp-service/src/services/hooks/useGetAllDatasourcesForAccountQuery.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useGetCheckQuery.d.ts +19 -0
  8. package/dist/idp-service/src/services/hooks/useGetCheckQuery.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useGetChecksQuery.d.ts +20 -0
  10. package/dist/idp-service/src/services/hooks/useGetChecksQuery.js +14 -0
  11. package/dist/idp-service/src/services/hooks/useGetDatapointsForDataourceQuery.d.ts +19 -0
  12. package/dist/idp-service/src/services/hooks/useGetDatapointsForDataourceQuery.js +14 -0
  13. package/dist/idp-service/src/services/hooks/useGetScorecardQuery.d.ts +19 -0
  14. package/dist/idp-service/src/services/hooks/useGetScorecardQuery.js +14 -0
  15. package/dist/idp-service/src/services/hooks/useGetScorecardsQuery.d.ts +16 -0
  16. package/dist/idp-service/src/services/hooks/useGetScorecardsQuery.js +14 -0
  17. package/dist/idp-service/src/services/hooks/useUpdateCheckMutation.d.ts +21 -0
  18. package/dist/idp-service/src/services/hooks/useUpdateCheckMutation.js +14 -0
  19. package/dist/idp-service/src/services/hooks/useUpdateScorecardMutation.d.ts +21 -0
  20. package/dist/idp-service/src/services/hooks/useUpdateScorecardMutation.js +14 -0
  21. package/dist/idp-service/src/services/index.d.ts +45 -0
  22. package/dist/idp-service/src/services/index.js +10 -0
  23. package/dist/idp-service/src/services/responses/CheckDetailsResponseResponse.d.ts +2 -0
  24. package/dist/idp-service/src/services/responses/CheckDetailsResponseResponse.js +1 -0
  25. package/dist/idp-service/src/services/responses/CheckResponseListResponse.d.ts +2 -0
  26. package/dist/idp-service/src/services/responses/CheckResponseListResponse.js +1 -0
  27. package/dist/idp-service/src/services/responses/DataSourcesResponseResponse.d.ts +2 -0
  28. package/dist/idp-service/src/services/responses/DataSourcesResponseResponse.js +1 -0
  29. package/dist/idp-service/src/services/responses/DatapointResponseResponse.d.ts +2 -0
  30. package/dist/idp-service/src/services/responses/DatapointResponseResponse.js +1 -0
  31. package/dist/idp-service/src/services/responses/ScorecardDetailsResponseResponse.d.ts +2 -0
  32. package/dist/idp-service/src/services/responses/ScorecardDetailsResponseResponse.js +1 -0
  33. package/dist/idp-service/src/services/responses/ScorecardResponseListResponse.d.ts +2 -0
  34. package/dist/idp-service/src/services/responses/ScorecardResponseListResponse.js +1 -0
  35. package/dist/idp-service/src/services/schemas/BackstageEnvSecretVariable.d.ts +1 -0
  36. package/dist/idp-service/src/services/schemas/Check.d.ts +10 -0
  37. package/dist/idp-service/src/services/schemas/Check.js +4 -0
  38. package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +11 -0
  39. package/dist/idp-service/src/services/schemas/CheckDetails.js +1 -0
  40. package/dist/idp-service/src/services/schemas/CheckDetailsRequest.d.ts +4 -0
  41. package/dist/idp-service/src/services/schemas/CheckDetailsRequest.js +1 -0
  42. package/dist/idp-service/src/services/schemas/CheckDetailsResponse.d.ts +4 -0
  43. package/dist/idp-service/src/services/schemas/CheckDetailsResponse.js +1 -0
  44. package/dist/idp-service/src/services/schemas/CheckListItem.d.ts +4 -0
  45. package/dist/idp-service/src/services/schemas/CheckListItem.js +1 -0
  46. package/dist/idp-service/src/services/schemas/CheckResponse.d.ts +4 -0
  47. package/dist/idp-service/src/services/schemas/CheckResponse.js +1 -0
  48. package/dist/idp-service/src/services/schemas/DataPoint.d.ts +11 -0
  49. package/dist/idp-service/src/services/schemas/DataPoint.js +4 -0
  50. package/dist/idp-service/src/services/schemas/DataPointsResponse.d.ts +7 -0
  51. package/dist/idp-service/src/services/schemas/DataPointsResponse.js +1 -0
  52. package/dist/idp-service/src/services/schemas/DataSource.d.ts +8 -0
  53. package/dist/idp-service/src/services/schemas/DataSource.js +4 -0
  54. package/dist/idp-service/src/services/schemas/DataSourcesResponse.d.ts +7 -0
  55. package/dist/idp-service/src/services/schemas/DataSourcesResponse.js +1 -0
  56. package/dist/idp-service/src/services/schemas/Exports.d.ts +9 -0
  57. package/dist/idp-service/src/services/schemas/Rule.d.ts +6 -0
  58. package/dist/idp-service/src/services/schemas/Rule.js +4 -0
  59. package/dist/idp-service/src/services/schemas/Scorecard.d.ts +7 -0
  60. package/dist/idp-service/src/services/schemas/Scorecard.js +1 -0
  61. package/dist/idp-service/src/services/schemas/ScorecardChecks.d.ts +7 -0
  62. package/dist/idp-service/src/services/schemas/ScorecardChecks.js +4 -0
  63. package/dist/idp-service/src/services/schemas/ScorecardChecksDetails.d.ts +5 -0
  64. package/dist/idp-service/src/services/schemas/ScorecardChecksDetails.js +1 -0
  65. package/dist/idp-service/src/services/schemas/ScorecardDetails.d.ts +12 -0
  66. package/dist/idp-service/src/services/schemas/ScorecardDetails.js +1 -0
  67. package/dist/idp-service/src/services/schemas/ScorecardDetailsRequest.d.ts +6 -0
  68. package/dist/idp-service/src/services/schemas/ScorecardDetailsRequest.js +1 -0
  69. package/dist/idp-service/src/services/schemas/ScorecardDetailsResponse.d.ts +6 -0
  70. package/dist/idp-service/src/services/schemas/ScorecardDetailsResponse.js +1 -0
  71. package/dist/idp-service/src/services/schemas/ScorecardFilters.d.ts +7 -0
  72. package/dist/idp-service/src/services/schemas/ScorecardFilters.js +4 -0
  73. package/dist/idp-service/src/services/schemas/ScorecardResponse.d.ts +4 -0
  74. package/dist/idp-service/src/services/schemas/ScorecardResponse.js +1 -0
  75. 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,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 GetDatapointsForDataourceQueryPathParams {
6
+ 'data-source': string;
7
+ }
8
+ export interface GetDatapointsForDataourceQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetDatapointsForDataourceOkResponse = ResponseWithPagination<DatapointResponseResponse>;
12
+ export type GetDatapointsForDataourceErrorResponse = unknown;
13
+ export interface GetDatapointsForDataourceProps extends GetDatapointsForDataourceQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetDatapointsForDataourceQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getDatapointsForDataource(props: GetDatapointsForDataourceProps): Promise<GetDatapointsForDataourceOkResponse>;
16
+ /**
17
+ * Get DataPoints Present in DataSources
18
+ */
19
+ export declare function useGetDatapointsForDataourceQuery(props: GetDatapointsForDataourceProps, options?: Omit<UseQueryOptions<GetDatapointsForDataourceOkResponse, GetDatapointsForDataourceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetDatapointsForDataourceOkResponse, 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 getDatapointsForDataource(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 useGetDatapointsForDataourceQuery(props, options) {
13
+ return useQuery(['get-datapoints-for-dataource', props['data-source']], ({ signal }) => getDatapointsForDataource(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,14 @@ 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 { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
13
+ export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
8
14
  export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayoutsProps, } from './hooks/useGetAllLayoutsQuery';
9
15
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
10
16
  export type { GetAllowListErrorResponse, GetAllowListOkResponse, GetAllowListProps, } from './hooks/useGetAllowListQuery';
@@ -13,8 +19,14 @@ export type { GetAuthInfoAuthIdErrorResponse, GetAuthInfoAuthIdOkResponse, GetAu
13
19
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
14
20
  export type { GetBackstagePermissionsErrorResponse, GetBackstagePermissionsOkResponse, GetBackstagePermissionsProps, } from './hooks/useGetBackstagePermissionsQuery';
15
21
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
22
+ export type { GetCheckErrorResponse, GetCheckOkResponse, GetCheckProps, GetCheckQueryPathParams, } from './hooks/useGetCheckQuery';
23
+ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
24
+ export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetChecksQueryQueryParams, } from './hooks/useGetChecksQuery';
25
+ export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
16
26
  export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
17
27
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
28
+ export type { GetDatapointsForDataourceErrorResponse, GetDatapointsForDataourceOkResponse, GetDatapointsForDataourceProps, GetDatapointsForDataourceQueryPathParams, } from './hooks/useGetDatapointsForDataourceQuery';
29
+ export { getDatapointsForDataource, useGetDatapointsForDataourceQuery, } from './hooks/useGetDatapointsForDataourceQuery';
18
30
  export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
19
31
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
20
32
  export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
@@ -27,6 +39,10 @@ export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkRespo
27
39
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
28
40
  export type { GetPluginsErrorResponse, GetPluginsOkResponse, GetPluginsProps, } from './hooks/useGetPluginsQuery';
29
41
  export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
42
+ export type { GetScorecardErrorResponse, GetScorecardOkResponse, GetScorecardProps, GetScorecardQueryPathParams, } from './hooks/useGetScorecardQuery';
43
+ export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery';
44
+ export type { GetScorecardsErrorResponse, GetScorecardsOkResponse, GetScorecardsProps, } from './hooks/useGetScorecardsQuery';
45
+ export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
30
46
  export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
31
47
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
32
48
  export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
@@ -49,8 +65,12 @@ export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutatio
49
65
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
50
66
  export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
51
67
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
68
+ export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateCheckOkResponse, UpdateCheckProps, UpdateCheckRequestBody, } from './hooks/useUpdateCheckMutation';
69
+ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
52
70
  export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntitiesOkResponse, UpdateConfigurationEntitiesProps, UpdateConfigurationEntitiesRequestBody, } from './hooks/useUpdateConfigurationEntitiesMutation';
53
71
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
72
+ export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
73
+ export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
54
74
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
55
75
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
56
76
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
@@ -64,8 +84,12 @@ export type { AppConfigResponseResponse } from './responses/AppConfigResponseRes
64
84
  export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
65
85
  export type { BackstageEnvVariableResponseListResponse } from './responses/BackstageEnvVariableResponseListResponse';
66
86
  export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
87
+ export type { CheckDetailsResponseResponse } from './responses/CheckDetailsResponseResponse';
88
+ export type { CheckResponseListResponse } from './responses/CheckResponseListResponse';
67
89
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
68
90
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
91
+ export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
92
+ export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
69
93
  export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
70
94
  export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
71
95
  export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
@@ -74,6 +98,8 @@ export type { LayoutResponseResponse } from './responses/LayoutResponseResponse'
74
98
  export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
75
99
  export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetailedInfoResponseResponse';
76
100
  export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
101
+ export type { ScorecardDetailsResponseResponse } from './responses/ScorecardDetailsResponseResponse';
102
+ export type { ScorecardResponseListResponse } from './responses/ScorecardResponseListResponse';
77
103
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
78
104
  export type { AllowListRequest } from './schemas/AllowListRequest';
79
105
  export type { AllowListResponse } from './schemas/AllowListResponse';
@@ -90,10 +116,20 @@ export type { BackstagePermissions } from './schemas/BackstagePermissions';
90
116
  export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
91
117
  export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
92
118
  export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
119
+ export type { Check } from './schemas/Check';
120
+ export type { CheckDetails } from './schemas/CheckDetails';
121
+ export type { CheckDetailsRequest } from './schemas/CheckDetailsRequest';
122
+ export type { CheckDetailsResponse } from './schemas/CheckDetailsResponse';
123
+ export type { CheckListItem } from './schemas/CheckListItem';
124
+ export type { CheckResponse } from './schemas/CheckResponse';
93
125
  export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
94
126
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
95
127
  export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
96
128
  export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
129
+ export type { DataPoint } from './schemas/DataPoint';
130
+ export type { DataPointsResponse } from './schemas/DataPointsResponse';
131
+ export type { DataSource } from './schemas/DataSource';
132
+ export type { DataSourcesResponse } from './schemas/DataSourcesResponse';
97
133
  export type { EntitiesForImport } from './schemas/EntitiesForImport';
98
134
  export type { ExportDetails } from './schemas/ExportDetails';
99
135
  export type { Exports } from './schemas/Exports';
@@ -117,5 +153,14 @@ export type { PluginInfo } from './schemas/PluginInfo';
117
153
  export type { PluginInfoResponse } from './schemas/PluginInfoResponse';
118
154
  export type { ProxyHostDetail } from './schemas/ProxyHostDetail';
119
155
  export type { RequestPlugin } from './schemas/RequestPlugin';
156
+ export type { Rule } from './schemas/Rule';
157
+ export type { Scorecard } from './schemas/Scorecard';
158
+ export type { ScorecardChecks } from './schemas/ScorecardChecks';
159
+ export type { ScorecardChecksDetails } from './schemas/ScorecardChecksDetails';
160
+ export type { ScorecardDetails } from './schemas/ScorecardDetails';
161
+ export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest';
162
+ export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
163
+ export type { ScorecardFilters } from './schemas/ScorecardFilters';
164
+ export type { ScorecardResponse } from './schemas/ScorecardResponse';
120
165
  export type { StatusInfo } from './schemas/StatusInfo';
121
166
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
@@ -1,17 +1,25 @@
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 { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
4
7
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
5
8
  export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
6
9
  export { getAuthInfoAuthId, useGetAuthInfoAuthIdQuery } from './hooks/useGetAuthInfoAuthIdQuery';
7
10
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
11
+ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
12
+ export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
8
13
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
14
+ export { getDatapointsForDataource, useGetDatapointsForDataourceQuery, } from './hooks/useGetDatapointsForDataourceQuery';
9
15
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
10
16
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
11
17
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
12
18
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
13
19
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
14
20
  export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
21
+ export { getScorecard, useGetScorecardQuery } from './hooks/useGetScorecardQuery';
22
+ export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
15
23
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
16
24
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
17
25
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
@@ -23,4 +31,6 @@ export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSav
23
31
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
24
32
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
25
33
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
34
+ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
26
35
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
36
+ 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,11 @@
1
+ /**
2
+ * Conatins detail for single data point
3
+ */
4
+ export interface DataPoint {
5
+ description: string;
6
+ input_description?: string;
7
+ input_value?: string;
8
+ is_conditional?: boolean;
9
+ name: string;
10
+ type: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,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,6 @@
1
+ export interface Rule {
2
+ data_point_identifier: string;
3
+ data_source_identifier: string;
4
+ operator: string;
5
+ value: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,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.29.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",