@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.
- package/dist/idp-service/src/services/hooks/useValidateComplexCheckMutation.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useValidateComplexCheckMutation.js +14 -0
- package/dist/idp-service/src/services/index.d.ts +6 -0
- package/dist/idp-service/src/services/index.js +1 -0
- package/dist/idp-service/src/services/requestBodies/ValidateComplexCheckRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/ValidateComplexCheckRequestBodyRequestBody.js +1 -0
- package/dist/idp-service/src/services/responses/ValidateComplexCheckResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/ValidateComplexCheckResponseResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/ValidateComplexCheckRequest.d.ts +3 -0
- package/dist/idp-service/src/services/schemas/ValidateComplexCheckRequest.js +4 -0
- package/dist/idp-service/src/services/schemas/ValidateComplexCheckResponse.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/ValidateComplexCheckResponse.js +4 -0
- package/package.json +1 -1
|
@@ -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';
|
package/dist/idp-service/src/services/requestBodies/ValidateComplexCheckRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|