@harnessio/react-idp-service-client 0.82.2 → 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.
@@ -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;
@@ -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';
@@ -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';
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.82.2",
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",