@harnessio/react-idp-service-client 0.82.1 → 0.83.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 (19) hide show
  1. package/dist/idp-service/src/services/hooks/useDeleteEntityVersionMutation.d.ts +26 -0
  2. package/dist/idp-service/src/services/hooks/useDeleteEntityVersionMutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useGetEntityVersionsQuery.d.ts +1 -0
  4. package/dist/idp-service/src/services/hooks/useValidateComplexCheckMutation.d.ts +19 -0
  5. package/dist/idp-service/src/services/hooks/useValidateComplexCheckMutation.js +14 -0
  6. package/dist/idp-service/src/services/index.d.ts +8 -0
  7. package/dist/idp-service/src/services/index.js +2 -0
  8. package/dist/idp-service/src/services/requestBodies/ValidateComplexCheckRequestBodyRequestBody.d.ts +2 -0
  9. package/dist/idp-service/src/services/requestBodies/ValidateComplexCheckRequestBodyRequestBody.js +1 -0
  10. package/dist/idp-service/src/services/responses/ValidateComplexCheckResponseResponse.d.ts +2 -0
  11. package/dist/idp-service/src/services/responses/ValidateComplexCheckResponseResponse.js +1 -0
  12. package/dist/idp-service/src/services/schemas/EntityVersionCreateRequest.d.ts +4 -0
  13. package/dist/idp-service/src/services/schemas/EntityVersionResponse.d.ts +9 -0
  14. package/dist/idp-service/src/services/schemas/EntityVersionUpdateRequest.d.ts +8 -0
  15. package/dist/idp-service/src/services/schemas/ValidateComplexCheckRequest.d.ts +3 -0
  16. package/dist/idp-service/src/services/schemas/ValidateComplexCheckRequest.js +4 -0
  17. package/dist/idp-service/src/services/schemas/ValidateComplexCheckResponse.d.ts +6 -0
  18. package/dist/idp-service/src/services/schemas/ValidateComplexCheckResponse.js +4 -0
  19. package/package.json +1 -1
@@ -0,0 +1,26 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteEntityVersionMutationPathParams {
5
+ scope: string;
6
+ kind: string;
7
+ identifier: string;
8
+ version: string;
9
+ }
10
+ export interface DeleteEntityVersionMutationQueryParams {
11
+ orgIdentifier?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export interface DeleteEntityVersionMutationHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type DeleteEntityVersionOkResponse = ResponseWithPagination<unknown>;
18
+ export type DeleteEntityVersionErrorResponse = unknown;
19
+ export interface DeleteEntityVersionProps extends DeleteEntityVersionMutationPathParams, Omit<FetcherOptions<DeleteEntityVersionMutationQueryParams, unknown, DeleteEntityVersionMutationHeaderParams>, 'url'> {
20
+ queryParams: DeleteEntityVersionMutationQueryParams;
21
+ }
22
+ export declare function deleteEntityVersion(props: DeleteEntityVersionProps): Promise<DeleteEntityVersionOkResponse>;
23
+ /**
24
+ * Delete an EntityVersion
25
+ */
26
+ export declare function useDeleteEntityVersionMutation(options?: Omit<UseMutationOptions<DeleteEntityVersionOkResponse, DeleteEntityVersionErrorResponse, DeleteEntityVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteEntityVersionOkResponse, unknown, DeleteEntityVersionProps, 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 deleteEntityVersion(props) {
7
+ return fetcher(Object.assign({ url: `/v1/entities/${props.scope}/${props.kind}/${props.identifier}/versions/${props.version}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete an EntityVersion
11
+ */
12
+ export function useDeleteEntityVersionMutation(options) {
13
+ return useMutation((mutateProps) => deleteEntityVersion(mutateProps), options);
14
+ }
@@ -17,6 +17,7 @@ export interface GetEntityVersionsQueryQueryParams {
17
17
  limit?: number;
18
18
  search_term?: string;
19
19
  deprecated?: boolean;
20
+ published?: boolean;
20
21
  }
21
22
  export interface GetEntityVersionsQueryHeaderParams {
22
23
  'Harness-Account'?: string;
@@ -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
+ }
@@ -35,6 +35,8 @@ export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutatio
35
35
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
36
36
  export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityMutationQueryParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
37
37
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
38
+ export type { DeleteEntityVersionErrorResponse, DeleteEntityVersionMutationPathParams, DeleteEntityVersionMutationQueryParams, DeleteEntityVersionOkResponse, DeleteEntityVersionProps, } from './hooks/useDeleteEntityVersionMutation';
39
+ export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/useDeleteEntityVersionMutation';
38
40
  export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupMutationQueryParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
39
41
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
40
42
  export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksIconMutationPathParams, DeleteHeadersQuickLinksIconOkResponse, DeleteHeadersQuickLinksIconProps, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
@@ -197,6 +199,8 @@ export type { UpdatePluginRequestV2ErrorResponse, UpdatePluginRequestV2MutationP
197
199
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
198
200
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
199
201
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
202
+ export type { ValidateComplexCheckErrorResponse, ValidateComplexCheckOkResponse, ValidateComplexCheckProps, ValidateComplexCheckRequestBody, } from './hooks/useValidateComplexCheckMutation';
203
+ export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
200
204
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
201
205
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
202
206
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
@@ -229,6 +233,7 @@ export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPlu
229
233
  export type { RequestPluginRequestStatusV2RequestBody } from './requestBodies/RequestPluginRequestStatusV2RequestBody';
230
234
  export type { RequestPluginRequestV2RequestBody } from './requestBodies/RequestPluginRequestV2RequestBody';
231
235
  export type { ScorecardRecalibrateRequestRequestBody } from './requestBodies/ScorecardRecalibrateRequestRequestBody';
236
+ export type { ValidateComplexCheckRequestBodyRequestBody } from './requestBodies/ValidateComplexCheckRequestBodyRequestBody';
232
237
  export type { AllowListResponseResponse } from './responses/AllowListResponseResponse';
233
238
  export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
234
239
  export type { AuthInfoResponseResponse } from './responses/AuthInfoResponseResponse';
@@ -285,6 +290,7 @@ export type { ScorecardResponseListResponse } from './responses/ScorecardRespons
285
290
  export type { ScorecardStatsResponseResponse } from './responses/ScorecardStatsResponseResponse';
286
291
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
287
292
  export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
293
+ export type { ValidateComplexCheckResponseResponse } from './responses/ValidateComplexCheckResponseResponse';
288
294
  export type { WorkflowsInfoResponseResponse } from './responses/WorkflowsInfoResponseResponse';
289
295
  export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
290
296
  export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
@@ -435,6 +441,8 @@ export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
435
441
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
436
442
  export type { UploadInfo } from './schemas/UploadInfo';
437
443
  export type { User } from './schemas/User';
444
+ export type { ValidateComplexCheckRequest } from './schemas/ValidateComplexCheckRequest';
445
+ export type { ValidateComplexCheckResponse } from './schemas/ValidateComplexCheckResponse';
438
446
  export type { WorkflowsInfo } from './schemas/WorkflowsInfo';
439
447
  export type { WorkflowsInfoResponse } from './schemas/WorkflowsInfoResponse';
440
448
  export type { WriteValidationDetails } from './schemas/WriteValidationDetails';
@@ -16,6 +16,7 @@ export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutat
16
16
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
17
17
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
18
18
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
19
+ export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/useDeleteEntityVersionMutation';
19
20
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
20
21
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
21
22
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
@@ -97,3 +98,4 @@ export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMu
97
98
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
98
99
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
99
100
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
101
+ 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;
@@ -10,6 +10,10 @@ export interface EntityVersionCreateRequest {
10
10
  * Description of the EntityVersion. Will inherit the description from the Entity if not provided.
11
11
  */
12
12
  description?: string;
13
+ /**
14
+ * Is the EntityVersion published.
15
+ */
16
+ published?: boolean;
13
17
  /**
14
18
  * Version of the Entity.
15
19
  */
@@ -7,6 +7,10 @@ export interface EntityVersionResponse {
7
7
  */
8
8
  created?: number;
9
9
  deprecated?: boolean;
10
+ /**
11
+ * @format int64
12
+ */
13
+ deprecatedAt?: number;
10
14
  description?: string;
11
15
  identifier: string;
12
16
  kind: 'api' | 'component' | 'environment' | 'environmentblueprint' | 'group' | 'resource' | 'system' | 'user' | 'workflow';
@@ -14,6 +18,11 @@ export interface EntityVersionResponse {
14
18
  org_name?: string;
15
19
  projectIdentifier?: string;
16
20
  project_name?: string;
21
+ published?: boolean;
22
+ /**
23
+ * @format int64
24
+ */
25
+ publishedAt?: number;
17
26
  scope?: 'ACCOUNT' | 'ORGANIZATION' | 'PROJECT';
18
27
  /**
19
28
  * @format int64
@@ -10,4 +10,12 @@ export interface EntityVersionUpdateRequest {
10
10
  * Description of the EntityVersion.
11
11
  */
12
12
  description?: string;
13
+ /**
14
+ * Is the EntityVersion published.
15
+ */
16
+ published?: boolean;
17
+ /**
18
+ * (to be passed as a String).
19
+ */
20
+ yaml?: string;
13
21
  }
@@ -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.83.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",