@harnessio/react-idp-service-client 0.82.0 → 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/useCreateOrUpdateEntityTableMutation.d.ts +23 -0
- package/dist/idp-service/src/services/hooks/useCreateOrUpdateEntityTableMutation.js +14 -0
- 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 +11 -0
- package/dist/idp-service/src/services/index.js +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody.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/EntityTableResponseBodyResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/EntityTableResponseBodyResponse.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/EntityTableCreateOrUpdateRequest.d.ts +7 -0
- package/dist/idp-service/src/services/schemas/EntityTableCreateOrUpdateRequest.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,23 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { EntityTableResponseBodyResponse } from '../responses/EntityTableResponseBodyResponse';
|
|
3
|
+
import type { EntityTableCreateOrUpdateRequestBodyRequestBody } from '../requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateOrUpdateEntityTableMutationQueryParams {
|
|
7
|
+
kind?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateOrUpdateEntityTableMutationHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type CreateOrUpdateEntityTableRequestBody = EntityTableCreateOrUpdateRequestBodyRequestBody;
|
|
13
|
+
export type CreateOrUpdateEntityTableOkResponse = ResponseWithPagination<EntityTableResponseBodyResponse>;
|
|
14
|
+
export type CreateOrUpdateEntityTableErrorResponse = unknown;
|
|
15
|
+
export interface CreateOrUpdateEntityTableProps extends Omit<FetcherOptions<CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableRequestBody, CreateOrUpdateEntityTableMutationHeaderParams>, 'url'> {
|
|
16
|
+
queryParams: CreateOrUpdateEntityTableMutationQueryParams;
|
|
17
|
+
body: CreateOrUpdateEntityTableRequestBody;
|
|
18
|
+
}
|
|
19
|
+
export declare function createOrUpdateEntityTable(props: CreateOrUpdateEntityTableProps): Promise<CreateOrUpdateEntityTableOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Create or Update an Entity Table.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCreateOrUpdateEntityTableMutation(options?: Omit<UseMutationOptions<CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateOrUpdateEntityTableOkResponse, unknown, CreateOrUpdateEntityTableProps, 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 createOrUpdateEntityTable(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/entities/tables`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create or Update an Entity Table.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateOrUpdateEntityTableMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createOrUpdateEntityTable(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -19,6 +19,8 @@ export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParam
|
|
|
19
19
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
20
20
|
export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
|
|
21
21
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
22
|
+
export type { CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableProps, CreateOrUpdateEntityTableRequestBody, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
23
|
+
export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
22
24
|
export type { CreatePluginRequestV2ErrorResponse, CreatePluginRequestV2OkResponse, CreatePluginRequestV2Props, CreatePluginRequestV2RequestBody, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
23
25
|
export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
24
26
|
export type { CreateScorecardErrorResponse, CreateScorecardOkResponse, CreateScorecardProps, CreateScorecardRequestBody, } from './hooks/useCreateScorecardMutation';
|
|
@@ -195,6 +197,8 @@ export type { UpdatePluginRequestV2ErrorResponse, UpdatePluginRequestV2MutationP
|
|
|
195
197
|
export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
196
198
|
export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
|
|
197
199
|
export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
|
|
200
|
+
export type { ValidateComplexCheckErrorResponse, ValidateComplexCheckOkResponse, ValidateComplexCheckProps, ValidateComplexCheckRequestBody, } from './hooks/useValidateComplexCheckMutation';
|
|
201
|
+
export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
|
|
198
202
|
export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
|
|
199
203
|
export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
|
|
200
204
|
export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
|
|
@@ -207,6 +211,7 @@ export type { EntityCreateRequestBodyRequestBody } from './requestBodies/EntityC
|
|
|
207
211
|
export type { EntityFilterQueryRequestRequestBody } from './requestBodies/EntityFilterQueryRequestRequestBody';
|
|
208
212
|
export type { EntityMoveRequestBodyRequestBody } from './requestBodies/EntityMoveRequestBodyRequestBody';
|
|
209
213
|
export type { EntityRequestBodyRequestBody } from './requestBodies/EntityRequestBodyRequestBody';
|
|
214
|
+
export type { EntityTableCreateOrUpdateRequestBodyRequestBody } from './requestBodies/EntityTableCreateOrUpdateRequestBodyRequestBody';
|
|
210
215
|
export type { EntityUpdateRequestBodyRequestBody } from './requestBodies/EntityUpdateRequestBodyRequestBody';
|
|
211
216
|
export type { EntityVersionCreateRequestBodyRequestBody } from './requestBodies/EntityVersionCreateRequestBodyRequestBody';
|
|
212
217
|
export type { EntityVersionUpdateRequestBodyRequestBody } from './requestBodies/EntityVersionUpdateRequestBodyRequestBody';
|
|
@@ -226,6 +231,7 @@ export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPlu
|
|
|
226
231
|
export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/RequestPluginRequestStatusV2RequestBody';
|
|
227
232
|
export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
|
|
228
233
|
export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
|
|
234
|
+
export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
|
|
229
235
|
export type { AllowListResponseResponse } from './responses/AllowListResponseResponse';
|
|
230
236
|
export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
|
|
231
237
|
export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
|
|
@@ -252,6 +258,7 @@ export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseR
|
|
|
252
258
|
export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
|
|
253
259
|
export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyResponse';
|
|
254
260
|
export type { EntityTableResponseBodyListResponse } from './responses/EntityTableResponseBodyListResponse';
|
|
261
|
+
export type { EntityTableResponseBodyResponse } from './responses/EntityTableResponseBodyResponse';
|
|
255
262
|
export type { EntityVersionResponseBodyListResponse } from './responses/EntityVersionResponseBodyListResponse';
|
|
256
263
|
export type { EntityVersionResponseBodyResponse } from './responses/EntityVersionResponseBodyResponse';
|
|
257
264
|
export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
|
|
@@ -281,6 +288,7 @@ export type { ScorecardResponseListResponse } from './responses/ScorecardRespons
|
|
|
281
288
|
export type { ScorecardStatsResponseResponse } from './responses/ScorecardStatsResponseResponse';
|
|
282
289
|
export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
|
|
283
290
|
export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
|
|
291
|
+
export type { ValidateComplexCheckResponseResponse } from './responses/ValidateComplexCheckResponseResponse';
|
|
284
292
|
export type { WorkflowsInfoResponseResponse } from './responses/WorkflowsInfoResponseResponse';
|
|
285
293
|
export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
|
|
286
294
|
export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
|
|
@@ -348,6 +356,7 @@ export type { EntityMoveRequest } from './schemas/EntityMoveRequest';
|
|
|
348
356
|
export type { EntityRefs } from './schemas/EntityRefs';
|
|
349
357
|
export type { EntityRequest } from './schemas/EntityRequest';
|
|
350
358
|
export type { EntityResponse } from './schemas/EntityResponse';
|
|
359
|
+
export type { EntityTableCreateOrUpdateRequest } from './schemas/EntityTableCreateOrUpdateRequest';
|
|
351
360
|
export type { EntityTableResponse } from './schemas/EntityTableResponse';
|
|
352
361
|
export type { EntityUpdateRequest } from './schemas/EntityUpdateRequest';
|
|
353
362
|
export type { EntityVersionCreateRequest } from './schemas/EntityVersionCreateRequest';
|
|
@@ -430,6 +439,8 @@ export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
|
|
|
430
439
|
export type { StatusInfoV2 } from './schemas/StatusInfoV2';
|
|
431
440
|
export type { UploadInfo } from './schemas/UploadInfo';
|
|
432
441
|
export type { User } from './schemas/User';
|
|
442
|
+
export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
|
|
443
|
+
export type { ValidateComplexCheckResponse } from './schemas/ValidateComplexCheckResponse';
|
|
433
444
|
export type { WorkflowsInfo } from './schemas/WorkflowsInfo';
|
|
434
445
|
export type { WorkflowsInfoResponse } from './schemas/WorkflowsInfoResponse';
|
|
435
446
|
export type { WriteValidationDetails } from './schemas/WriteValidationDetails';
|
|
@@ -8,6 +8,7 @@ export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMu
|
|
|
8
8
|
export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
|
|
9
9
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
10
10
|
export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
|
|
11
|
+
export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
|
|
11
12
|
export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
|
|
12
13
|
export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
|
|
13
14
|
export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
|
|
@@ -96,3 +97,4 @@ export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMu
|
|
|
96
97
|
export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
|
|
97
98
|
export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
|
|
98
99
|
export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
|
|
100
|
+
export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/idp-service/src/services/requestBodies/ValidateComplexCheckRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|