@harnessio/react-idp-service-client 0.82.1 → 0.82.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ValidateComplexCheckResponseResponse } from '../responses/ValidateComplexCheckResponseResponse';
3
+ import type { ValidateComplexCheckRequestBodyRequestBody } from '../requestBodies/ValidateComplexCheckRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ValidateComplexCheckMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type ValidateComplexCheckRequestBody = ValidateComplexCheckRequestBodyRequestBody;
10
+ export type ValidateComplexCheckOkResponse = ResponseWithPagination<ValidateComplexCheckResponseResponse>;
11
+ export type ValidateComplexCheckErrorResponse = unknown;
12
+ export interface ValidateComplexCheckProps extends Omit<FetcherOptions<unknown, ValidateComplexCheckRequestBody, ValidateComplexCheckMutationHeaderParams>, 'url'> {
13
+ body: ValidateComplexCheckRequestBody;
14
+ }
15
+ export declare function validateComplexCheck(props: ValidateComplexCheckProps): Promise<ValidateComplexCheckOkResponse>;
16
+ /**
17
+ * Validate syntax of complex check expression
18
+ */
19
+ export declare function useValidateComplexCheckMutation(options?: Omit<UseMutationOptions<ValidateComplexCheckOkResponse, ValidateComplexCheckErrorResponse, ValidateComplexCheckProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateComplexCheckOkResponse, unknown, ValidateComplexCheckProps, 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 validateComplexCheck(props) {
7
+ return fetcher(Object.assign({ url: `/v1/checks/expression-validate`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Validate syntax of complex check expression
11
+ */
12
+ export function useValidateComplexCheckMutation(options) {
13
+ return useMutation((mutateProps) => validateComplexCheck(mutateProps), options);
14
+ }
@@ -197,6 +197,8 @@ export type { UpdatePluginRequestV2ErrorResponse, UpdatePluginRequestV2MutationP
197
197
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
198
198
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
199
199
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
200
+ export type { ValidateComplexCheckErrorResponse, ValidateComplexCheckOkResponse, ValidateComplexCheckProps, ValidateComplexCheckRequestBody, } from './hooks/useValidateComplexCheckMutation';
201
+ export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
200
202
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
201
203
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
202
204
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
@@ -229,6 +231,7 @@ export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPlu
229
231
  export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/RequestPluginRequestStatusV2RequestBody';
230
232
  export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
231
233
  export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
234
+ export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
232
235
  export type { AllowListResponseResponse } from './responses/AllowListResponseResponse';
233
236
  export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
234
237
  export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
@@ -285,6 +288,7 @@ export type { ScorecardResponseListResponse } from './responses/ScorecardRespons
285
288
  export type { ScorecardStatsResponseResponse } from './responses/ScorecardStatsResponseResponse';
286
289
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
287
290
  export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
291
+ export type { ValidateComplexCheckResponseResponse } from './responses/ValidateComplexCheckResponseResponse';
288
292
  export type { WorkflowsInfoResponseResponse } from './responses/WorkflowsInfoResponseResponse';
289
293
  export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
290
294
  export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
@@ -435,6 +439,8 @@ export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
435
439
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
436
440
  export type { UploadInfo } from './schemas/UploadInfo';
437
441
  export type { User } from './schemas/User';
442
+ export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
443
+ export type { ValidateComplexCheckResponse } from './schemas/ValidateComplexCheckResponse';
438
444
  export type { WorkflowsInfo } from './schemas/WorkflowsInfo';
439
445
  export type { WorkflowsInfoResponse } from './schemas/WorkflowsInfoResponse';
440
446
  export type { WriteValidationDetails } from './schemas/WriteValidationDetails';
@@ -97,3 +97,4 @@ export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMu
97
97
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
98
98
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
99
99
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
100
+ export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
@@ -0,0 +1,2 @@
1
+ import type { ValidateComplexCheckRequest } from '../schemas/ValidateComplexCheckRequest';
2
+ export type ValidateComplexCheckRequestBodyRequestBody = ValidateComplexCheckRequest;
@@ -0,0 +1,2 @@
1
+ import type { ValidateComplexCheckResponse } from '../schemas/ValidateComplexCheckResponse';
2
+ export type ValidateComplexCheckResponseResponse = ValidateComplexCheckResponse;
@@ -0,0 +1,3 @@
1
+ export interface ValidateComplexCheckRequest {
2
+ expression?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ */
4
+ export interface ValidateComplexCheckResponse {
5
+ isValid?: boolean;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.82.1",
3
+ "version": "0.82.2",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",