@harnessio/react-idp-service-client 0.90.1 → 0.92.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 (48) hide show
  1. package/dist/idp-service/src/services/hooks/useCreateCustomPluginsV2Mutation.d.ts +19 -0
  2. package/dist/idp-service/src/services/hooks/useCreateCustomPluginsV2Mutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useCreateKindMutation.d.ts +19 -0
  4. package/dist/idp-service/src/services/hooks/useCreateKindMutation.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useDeleteCustomPluginV2Mutation.d.ts +18 -0
  6. package/dist/idp-service/src/services/hooks/useDeleteCustomPluginV2Mutation.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useDeleteKindMutation.d.ts +18 -0
  8. package/dist/idp-service/src/services/hooks/useDeleteKindMutation.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useGetCustomPluginV2Query.d.ts +19 -0
  10. package/dist/idp-service/src/services/hooks/useGetCustomPluginV2Query.js +14 -0
  11. package/dist/idp-service/src/services/hooks/useGetCustomPluginsV2Query.d.ts +23 -0
  12. package/dist/idp-service/src/services/hooks/useGetCustomPluginsV2Query.js +14 -0
  13. package/dist/idp-service/src/services/hooks/useGetKindQuery.d.ts +19 -0
  14. package/dist/idp-service/src/services/hooks/useGetKindQuery.js +14 -0
  15. package/dist/idp-service/src/services/hooks/useGetKindsQuery.d.ts +26 -0
  16. package/dist/idp-service/src/services/hooks/useGetKindsQuery.js +14 -0
  17. package/dist/idp-service/src/services/hooks/useUpdateCustomPluginV2Mutation.d.ts +22 -0
  18. package/dist/idp-service/src/services/hooks/useUpdateCustomPluginV2Mutation.js +14 -0
  19. package/dist/idp-service/src/services/hooks/useUpdateKindMutation.d.ts +22 -0
  20. package/dist/idp-service/src/services/hooks/useUpdateKindMutation.js +14 -0
  21. package/dist/idp-service/src/services/index.d.ts +32 -0
  22. package/dist/idp-service/src/services/index.js +10 -0
  23. package/dist/idp-service/src/services/requestBodies/CustomPluginV2CreateRequestRequestBody.d.ts +2 -0
  24. package/dist/idp-service/src/services/requestBodies/CustomPluginV2CreateRequestRequestBody.js +1 -0
  25. package/dist/idp-service/src/services/requestBodies/CustomPluginV2UpdateRequestRequestBody.d.ts +2 -0
  26. package/dist/idp-service/src/services/requestBodies/CustomPluginV2UpdateRequestRequestBody.js +1 -0
  27. package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.d.ts +1 -0
  28. package/dist/idp-service/src/services/requestBodies/KindCreateRequestBodyRequestBody.js +1 -0
  29. package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.d.ts +1 -0
  30. package/dist/idp-service/src/services/requestBodies/KindUpdateRequestBodyRequestBody.js +1 -0
  31. package/dist/idp-service/src/services/responses/CustomPluginV2ResponseResponse.d.ts +2 -0
  32. package/dist/idp-service/src/services/responses/CustomPluginV2ResponseResponse.js +1 -0
  33. package/dist/idp-service/src/services/responses/CustomPluginsV2ResponseBodyListResponse.d.ts +2 -0
  34. package/dist/idp-service/src/services/responses/CustomPluginsV2ResponseBodyListResponse.js +1 -0
  35. package/dist/idp-service/src/services/responses/KindResponseBodyListResponse.d.ts +2 -0
  36. package/dist/idp-service/src/services/responses/KindResponseBodyListResponse.js +1 -0
  37. package/dist/idp-service/src/services/responses/KindResponseBodyResponse.d.ts +2 -0
  38. package/dist/idp-service/src/services/responses/KindResponseBodyResponse.js +1 -0
  39. package/dist/idp-service/src/services/schemas/CustomPluginV2CreateRequest.d.ts +6 -0
  40. package/dist/idp-service/src/services/schemas/CustomPluginV2CreateRequest.js +4 -0
  41. package/dist/idp-service/src/services/schemas/CustomPluginV2Response.d.ts +10 -0
  42. package/dist/idp-service/src/services/schemas/CustomPluginV2Response.js +4 -0
  43. package/dist/idp-service/src/services/schemas/CustomPluginV2UpdateRequest.d.ts +5 -0
  44. package/dist/idp-service/src/services/schemas/CustomPluginV2UpdateRequest.js +4 -0
  45. package/dist/idp-service/src/services/schemas/ImportedEntityResponse.d.ts +2 -2
  46. package/dist/idp-service/src/services/schemas/KindResponseBody.d.ts +10 -0
  47. package/dist/idp-service/src/services/schemas/KindResponseBody.js +4 -0
  48. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginV2ResponseResponse } from '../responses/CustomPluginV2ResponseResponse';
3
+ import type { CustomPluginV2CreateRequestRequestBody } from '../requestBodies/CustomPluginV2CreateRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface CreateCustomPluginsV2MutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type CreateCustomPluginsV2RequestBody = CustomPluginV2CreateRequestRequestBody;
10
+ export type CreateCustomPluginsV2OkResponse = ResponseWithPagination<CustomPluginV2ResponseResponse>;
11
+ export type CreateCustomPluginsV2ErrorResponse = unknown;
12
+ export interface CreateCustomPluginsV2Props extends Omit<FetcherOptions<unknown, CreateCustomPluginsV2RequestBody, CreateCustomPluginsV2MutationHeaderParams>, 'url'> {
13
+ body: CreateCustomPluginsV2RequestBody;
14
+ }
15
+ export declare function createCustomPluginsV2(props: CreateCustomPluginsV2Props): Promise<CreateCustomPluginsV2OkResponse>;
16
+ /**
17
+ * Create V2 Custom Plugin
18
+ */
19
+ export declare function useCreateCustomPluginsV2Mutation(options?: Omit<UseMutationOptions<CreateCustomPluginsV2OkResponse, CreateCustomPluginsV2ErrorResponse, CreateCustomPluginsV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateCustomPluginsV2OkResponse, unknown, CreateCustomPluginsV2Props, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function createCustomPluginsV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-plugins`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create V2 Custom Plugin
11
+ */
12
+ export function useCreateCustomPluginsV2Mutation(options) {
13
+ return useMutation((mutateProps) => createCustomPluginsV2(mutateProps), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { KindResponseBodyResponse } from '../responses/KindResponseBodyResponse';
3
+ import type { KindCreateRequestBodyRequestBody } from '../requestBodies/KindCreateRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface CreateKindMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type CreateKindRequestBody = KindCreateRequestBodyRequestBody;
10
+ export type CreateKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
11
+ export type CreateKindErrorResponse = unknown;
12
+ export interface CreateKindProps extends Omit<FetcherOptions<unknown, CreateKindRequestBody, CreateKindMutationHeaderParams>, 'url'> {
13
+ body: CreateKindRequestBody;
14
+ }
15
+ export declare function createKind(props: CreateKindProps): Promise<CreateKindOkResponse>;
16
+ /**
17
+ * Create a Kind.
18
+ */
19
+ export declare function useCreateKindMutation(options?: Omit<UseMutationOptions<CreateKindOkResponse, CreateKindErrorResponse, CreateKindProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateKindOkResponse, unknown, CreateKindProps, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function createKind(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a Kind.
11
+ */
12
+ export function useCreateKindMutation(options) {
13
+ return useMutation((mutateProps) => createKind(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
4
+ export interface DeleteCustomPluginV2MutationPathParams {
5
+ 'plugin-id': string;
6
+ }
7
+ export interface DeleteCustomPluginV2MutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteCustomPluginV2OkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteCustomPluginV2ErrorResponse = unknown;
12
+ export interface DeleteCustomPluginV2Props extends DeleteCustomPluginV2MutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteCustomPluginV2MutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteCustomPluginV2(props: DeleteCustomPluginV2Props): Promise<DeleteCustomPluginV2OkResponse>;
15
+ /**
16
+ * Delete custom plugin v2
17
+ */
18
+ export declare function useDeleteCustomPluginV2Mutation(options?: Omit<UseMutationOptions<DeleteCustomPluginV2OkResponse, DeleteCustomPluginV2ErrorResponse, DeleteCustomPluginV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteCustomPluginV2OkResponse, unknown, DeleteCustomPluginV2Props, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function deleteCustomPluginV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-plugins/${props['plugin-id']}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete custom plugin v2
11
+ */
12
+ export function useDeleteCustomPluginV2Mutation(options) {
13
+ return useMutation((mutateProps) => deleteCustomPluginV2(mutateProps), options);
14
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
4
+ export interface DeleteKindMutationPathParams {
5
+ identifier: string;
6
+ }
7
+ export interface DeleteKindMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteKindOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteKindErrorResponse = unknown;
12
+ export interface DeleteKindProps extends DeleteKindMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteKindMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteKind(props: DeleteKindProps): Promise<DeleteKindOkResponse>;
15
+ /**
16
+ * Delete a Kind.
17
+ */
18
+ export declare function useDeleteKindMutation(options?: Omit<UseMutationOptions<DeleteKindOkResponse, DeleteKindErrorResponse, DeleteKindProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteKindOkResponse, unknown, DeleteKindProps, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function deleteKind(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds/${props.identifier}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a Kind.
11
+ */
12
+ export function useDeleteKindMutation(options) {
13
+ return useMutation((mutateProps) => deleteKind(mutateProps), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginV2ResponseResponse } from '../responses/CustomPluginV2ResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetCustomPluginV2QueryPathParams {
6
+ 'plugin-id': string;
7
+ }
8
+ export interface GetCustomPluginV2QueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetCustomPluginV2OkResponse = ResponseWithPagination<CustomPluginV2ResponseResponse>;
12
+ export type GetCustomPluginV2ErrorResponse = unknown;
13
+ export interface GetCustomPluginV2Props extends GetCustomPluginV2QueryPathParams, Omit<FetcherOptions<unknown, unknown, GetCustomPluginV2QueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getCustomPluginV2(props: GetCustomPluginV2Props): Promise<GetCustomPluginV2OkResponse>;
16
+ /**
17
+ * Get custom plugin v2 details for given pluginId
18
+ */
19
+ export declare function useGetCustomPluginV2Query(props: GetCustomPluginV2Props, options?: Omit<UseQueryOptions<GetCustomPluginV2OkResponse, GetCustomPluginV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCustomPluginV2OkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getCustomPluginV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-plugins/${props['plugin-id']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get custom plugin v2 details for given pluginId
11
+ */
12
+ export function useGetCustomPluginV2Query(props, options) {
13
+ return useQuery(['get-custom-plugin-v2', props['plugin-id']], ({ signal }) => getCustomPluginV2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginsV2ResponseBodyListResponse } from '../responses/CustomPluginsV2ResponseBodyListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetCustomPluginsV2QueryQueryParams {
6
+ page?: number;
7
+ limit?: number;
8
+ sort?: string;
9
+ search_term?: string;
10
+ }
11
+ export interface GetCustomPluginsV2QueryHeaderParams {
12
+ 'Harness-Account'?: string;
13
+ }
14
+ export type GetCustomPluginsV2OkResponse = ResponseWithPagination<CustomPluginsV2ResponseBodyListResponse>;
15
+ export type GetCustomPluginsV2ErrorResponse = unknown;
16
+ export interface GetCustomPluginsV2Props extends Omit<FetcherOptions<GetCustomPluginsV2QueryQueryParams, unknown, GetCustomPluginsV2QueryHeaderParams>, 'url'> {
17
+ queryParams: GetCustomPluginsV2QueryQueryParams;
18
+ }
19
+ export declare function getCustomPluginsV2(props: GetCustomPluginsV2Props): Promise<GetCustomPluginsV2OkResponse>;
20
+ /**
21
+ * Get all V2 Custom Plugins available
22
+ */
23
+ export declare function useGetCustomPluginsV2Query(props: GetCustomPluginsV2Props, options?: Omit<UseQueryOptions<GetCustomPluginsV2OkResponse, GetCustomPluginsV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCustomPluginsV2OkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getCustomPluginsV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-plugins`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get all V2 Custom Plugins available
11
+ */
12
+ export function useGetCustomPluginsV2Query(props, options) {
13
+ return useQuery(['get-custom-plugins-v2', props.queryParams], ({ signal }) => getCustomPluginsV2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { KindResponseBodyResponse } from '../responses/KindResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetKindQueryPathParams {
6
+ identifier: string;
7
+ }
8
+ export interface GetKindQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
12
+ export type GetKindErrorResponse = unknown;
13
+ export interface GetKindProps extends GetKindQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetKindQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getKind(props: GetKindProps): Promise<GetKindOkResponse>;
16
+ /**
17
+ * Get Kind.
18
+ */
19
+ export declare function useGetKindQuery(props: GetKindProps, options?: Omit<UseQueryOptions<GetKindOkResponse, GetKindErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetKindOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getKind(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds/${props.identifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Kind.
11
+ */
12
+ export function useGetKindQuery(props, options) {
13
+ return useQuery(['get-kind', props.identifier], ({ signal }) => getKind(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { KindResponseBodyListResponse } from '../responses/KindResponseBodyListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetKindsQueryQueryParams {
6
+ page?: number;
7
+ /**
8
+ * @default 10
9
+ */
10
+ limit?: number;
11
+ sort?: string;
12
+ search_term?: string;
13
+ }
14
+ export interface GetKindsQueryHeaderParams {
15
+ 'Harness-Account'?: string;
16
+ }
17
+ export type GetKindsOkResponse = ResponseWithPagination<KindResponseBodyListResponse>;
18
+ export type GetKindsErrorResponse = unknown;
19
+ export interface GetKindsProps extends Omit<FetcherOptions<GetKindsQueryQueryParams, unknown, GetKindsQueryHeaderParams>, 'url'> {
20
+ queryParams: GetKindsQueryQueryParams;
21
+ }
22
+ export declare function getKinds(props: GetKindsProps): Promise<GetKindsOkResponse>;
23
+ /**
24
+ * Get Kinds.
25
+ */
26
+ export declare function useGetKindsQuery(props: GetKindsProps, options?: Omit<UseQueryOptions<GetKindsOkResponse, GetKindsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetKindsOkResponse, 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 { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-idp-fetcher/index.js';
6
+ export function getKinds(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Kinds.
11
+ */
12
+ export function useGetKindsQuery(props, options) {
13
+ return useQuery(['get-kinds', props.queryParams], ({ signal }) => getKinds(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginV2ResponseResponse } from '../responses/CustomPluginV2ResponseResponse';
3
+ import type { CustomPluginV2UpdateRequestRequestBody } from '../requestBodies/CustomPluginV2UpdateRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface UpdateCustomPluginV2MutationPathParams {
7
+ 'plugin-id': string;
8
+ }
9
+ export interface UpdateCustomPluginV2MutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UpdateCustomPluginV2RequestBody = CustomPluginV2UpdateRequestRequestBody;
13
+ export type UpdateCustomPluginV2OkResponse = ResponseWithPagination<CustomPluginV2ResponseResponse>;
14
+ export type UpdateCustomPluginV2ErrorResponse = unknown;
15
+ export interface UpdateCustomPluginV2Props extends UpdateCustomPluginV2MutationPathParams, Omit<FetcherOptions<unknown, UpdateCustomPluginV2RequestBody, UpdateCustomPluginV2MutationHeaderParams>, 'url'> {
16
+ body: UpdateCustomPluginV2RequestBody;
17
+ }
18
+ export declare function updateCustomPluginV2(props: UpdateCustomPluginV2Props): Promise<UpdateCustomPluginV2OkResponse>;
19
+ /**
20
+ * Update custom plugin v2 details for given pluginId
21
+ */
22
+ export declare function useUpdateCustomPluginV2Mutation(options?: Omit<UseMutationOptions<UpdateCustomPluginV2OkResponse, UpdateCustomPluginV2ErrorResponse, UpdateCustomPluginV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateCustomPluginV2OkResponse, unknown, UpdateCustomPluginV2Props, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function updateCustomPluginV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/custom-plugins/${props['plugin-id']}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update custom plugin v2 details for given pluginId
11
+ */
12
+ export function useUpdateCustomPluginV2Mutation(options) {
13
+ return useMutation((mutateProps) => updateCustomPluginV2(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { KindResponseBodyResponse } from '../responses/KindResponseBodyResponse';
3
+ import type { KindUpdateRequestBodyRequestBody } from '../requestBodies/KindUpdateRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
6
+ export interface UpdateKindMutationPathParams {
7
+ identifier: string;
8
+ }
9
+ export interface UpdateKindMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UpdateKindRequestBody = KindUpdateRequestBodyRequestBody;
13
+ export type UpdateKindOkResponse = ResponseWithPagination<KindResponseBodyResponse>;
14
+ export type UpdateKindErrorResponse = unknown;
15
+ export interface UpdateKindProps extends UpdateKindMutationPathParams, Omit<FetcherOptions<unknown, UpdateKindRequestBody, UpdateKindMutationHeaderParams>, 'url'> {
16
+ body: UpdateKindRequestBody;
17
+ }
18
+ export declare function updateKind(props: UpdateKindProps): Promise<UpdateKindOkResponse>;
19
+ /**
20
+ * Update a Kind.
21
+ */
22
+ export declare function useUpdateKindMutation(options?: Omit<UseMutationOptions<UpdateKindOkResponse, UpdateKindErrorResponse, UpdateKindProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateKindOkResponse, unknown, UpdateKindProps, 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 '../../../../custom-idp-fetcher/index.js';
6
+ export function updateKind(props) {
7
+ return fetcher(Object.assign({ url: `/v1/kinds/${props.identifier}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update a Kind.
11
+ */
12
+ export function useUpdateKindMutation(options) {
13
+ return useMutation((mutateProps) => updateKind(mutateProps), options);
14
+ }
@@ -15,12 +15,16 @@ export type { CreateCheckErrorResponse, CreateCheckOkResponse, CreateCheckProps,
15
15
  export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
16
16
  export type { CreateCompileAndExecuteEnvironmentErrorResponse, CreateCompileAndExecuteEnvironmentMutationQueryParams, CreateCompileAndExecuteEnvironmentOkResponse, CreateCompileAndExecuteEnvironmentProps, CreateCompileAndExecuteEnvironmentRequestBody, } from './hooks/useCreateCompileAndExecuteEnvironmentMutation';
17
17
  export { createCompileAndExecuteEnvironment, useCreateCompileAndExecuteEnvironmentMutation, } from './hooks/useCreateCompileAndExecuteEnvironmentMutation';
18
+ export type { CreateCustomPluginsV2ErrorResponse, CreateCustomPluginsV2OkResponse, CreateCustomPluginsV2Props, CreateCustomPluginsV2RequestBody, } from './hooks/useCreateCustomPluginsV2Mutation';
19
+ export { createCustomPluginsV2, useCreateCustomPluginsV2Mutation, } from './hooks/useCreateCustomPluginsV2Mutation';
18
20
  export type { CreateEntityErrorResponse, CreateEntityMutationQueryParams, CreateEntityOkResponse, CreateEntityProps, CreateEntityRequestBody, } from './hooks/useCreateEntityMutation';
19
21
  export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
20
22
  export type { CreateEntityVersionErrorResponse, CreateEntityVersionMutationQueryParams, CreateEntityVersionOkResponse, CreateEntityVersionProps, CreateEntityVersionRequestBody, } from './hooks/useCreateEntityVersionMutation';
21
23
  export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
22
24
  export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationMutationQueryParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
23
25
  export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
26
+ export type { CreateKindErrorResponse, CreateKindOkResponse, CreateKindProps, CreateKindRequestBody, } from './hooks/useCreateKindMutation';
27
+ export { createKind, useCreateKindMutation } from './hooks/useCreateKindMutation';
24
28
  export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutProps, CreateLayoutRequestBody, } from './hooks/useCreateLayoutMutation';
25
29
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
26
30
  export type { CreateOrUpdateEntityTableErrorResponse, CreateOrUpdateEntityTableMutationQueryParams, CreateOrUpdateEntityTableOkResponse, CreateOrUpdateEntityTableProps, CreateOrUpdateEntityTableRequestBody, } from './hooks/useCreateOrUpdateEntityTableMutation';
@@ -39,6 +43,8 @@ export type { DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQ
39
43
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
40
44
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
41
45
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
46
+ export type { DeleteCustomPluginV2ErrorResponse, DeleteCustomPluginV2MutationPathParams, DeleteCustomPluginV2OkResponse, DeleteCustomPluginV2Props, } from './hooks/useDeleteCustomPluginV2Mutation';
47
+ export { deleteCustomPluginV2, useDeleteCustomPluginV2Mutation, } from './hooks/useDeleteCustomPluginV2Mutation';
42
48
  export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityMutationQueryParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
43
49
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
44
50
  export type { DeleteEntityVersionErrorResponse, DeleteEntityVersionMutationPathParams, DeleteEntityVersionMutationQueryParams, DeleteEntityVersionOkResponse, DeleteEntityVersionProps, } from './hooks/useDeleteEntityVersionMutation';
@@ -49,6 +55,8 @@ export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksI
49
55
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
50
56
  export type { DeleteHomePageLayoutCardsIconErrorResponse, DeleteHomePageLayoutCardsIconMutationPathParams, DeleteHomePageLayoutCardsIconOkResponse, DeleteHomePageLayoutCardsIconProps, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
51
57
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
58
+ export type { DeleteKindErrorResponse, DeleteKindMutationPathParams, DeleteKindOkResponse, DeleteKindProps, } from './hooks/useDeleteKindMutation';
59
+ export { deleteKind, useDeleteKindMutation } from './hooks/useDeleteKindMutation';
52
60
  export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
53
61
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
54
62
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
@@ -93,6 +101,10 @@ export type { GetCustomPluginStatusLogsErrorResponse, GetCustomPluginStatusLogsO
93
101
  export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
94
102
  export type { GetCustomPluginStatusPluginIdErrorResponse, GetCustomPluginStatusPluginIdOkResponse, GetCustomPluginStatusPluginIdProps, GetCustomPluginStatusPluginIdQueryPathParams, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
95
103
  export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
104
+ export type { GetCustomPluginV2ErrorResponse, GetCustomPluginV2OkResponse, GetCustomPluginV2Props, GetCustomPluginV2QueryPathParams, } from './hooks/useGetCustomPluginV2Query';
105
+ export { getCustomPluginV2, useGetCustomPluginV2Query } from './hooks/useGetCustomPluginV2Query';
106
+ export type { GetCustomPluginsV2ErrorResponse, GetCustomPluginsV2OkResponse, GetCustomPluginsV2Props, GetCustomPluginsV2QueryQueryParams, } from './hooks/useGetCustomPluginsV2Query';
107
+ export { getCustomPluginsV2, useGetCustomPluginsV2Query } from './hooks/useGetCustomPluginsV2Query';
96
108
  export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceProps, GetDataPointsForDataSourceQueryPathParams, } from './hooks/useGetDataPointsForDataSourceQuery';
97
109
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
98
110
  export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
@@ -139,6 +151,10 @@ export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegr
139
151
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
140
152
  export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchemaProps, GetJsonSchemaQueryQueryParams, } from './hooks/useGetJsonSchemaQuery';
141
153
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
154
+ export type { GetKindErrorResponse, GetKindOkResponse, GetKindProps, GetKindQueryPathParams, } from './hooks/useGetKindQuery';
155
+ export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
156
+ export type { GetKindsErrorResponse, GetKindsOkResponse, GetKindsProps, GetKindsQueryQueryParams, } from './hooks/useGetKindsQuery';
157
+ export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
142
158
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
143
159
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
144
160
  export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkResponse, GetMergedPluginsConfigProps, } from './hooks/useGetMergedPluginsConfigQuery';
@@ -213,6 +229,8 @@ export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateChe
213
229
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
214
230
  export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntitiesOkResponse, UpdateConfigurationEntitiesProps, UpdateConfigurationEntitiesRequestBody, } from './hooks/useUpdateConfigurationEntitiesMutation';
215
231
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
232
+ export type { UpdateCustomPluginV2ErrorResponse, UpdateCustomPluginV2MutationPathParams, UpdateCustomPluginV2OkResponse, UpdateCustomPluginV2Props, UpdateCustomPluginV2RequestBody, } from './hooks/useUpdateCustomPluginV2Mutation';
233
+ export { updateCustomPluginV2, useUpdateCustomPluginV2Mutation, } from './hooks/useUpdateCustomPluginV2Mutation';
216
234
  export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutationPathParams, UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoProps, UpdateCustomPluginsInfoRequestBody, } from './hooks/useUpdateCustomPluginsInfoMutation';
217
235
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
218
236
  export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
@@ -225,6 +243,8 @@ export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, Update
225
243
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
226
244
  export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
227
245
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
246
+ export type { UpdateKindErrorResponse, UpdateKindMutationPathParams, UpdateKindOkResponse, UpdateKindProps, UpdateKindRequestBody, } from './hooks/useUpdateKindMutation';
247
+ export { updateKind, useUpdateKindMutation } from './hooks/useUpdateKindMutation';
228
248
  export type { UpdatePluginRequestV2ErrorResponse, UpdatePluginRequestV2MutationPathParams, UpdatePluginRequestV2OkResponse, UpdatePluginRequestV2Props, UpdatePluginRequestV2RequestBody, } from './hooks/useUpdatePluginRequestV2Mutation';
229
249
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
230
250
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
@@ -238,6 +258,8 @@ export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/Co
238
258
  export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
239
259
  export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
240
260
  export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
261
+ export type { CustomPluginV2CreateRequestRequestBody } from './requestBodies/CustomPluginV2CreateRequestRequestBody';
262
+ export type { CustomPluginV2UpdateRequestRequestBody } from './requestBodies/CustomPluginV2UpdateRequestRequestBody';
241
263
  export type { EntitesByRefsRequestRequestBody } from './requestBodies/EntitesByRefsRequestRequestBody';
242
264
  export type { EntityCreateRequestBodyRequestBody } from './requestBodies/EntityCreateRequestBodyRequestBody';
243
265
  export type { EntityFilterQueryRequestRequestBody } from './requestBodies/EntityFilterQueryRequestRequestBody';
@@ -256,6 +278,8 @@ export type { GroupRequestRequestBody } from './requestBodies/GroupRequestReques
256
278
  export type { HomePageLayoutRequestRequestBody } from './requestBodies/HomePageLayoutRequestRequestBody';
257
279
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
258
280
  export type { IntegrationRequestRequestBody } from './requestBodies/IntegrationRequestRequestBody';
281
+ export type { KindCreateRequestBodyRequestBody } from './requestBodies/KindCreateRequestBodyRequestBody';
282
+ export type { KindUpdateRequestBodyRequestBody } from './requestBodies/KindUpdateRequestBodyRequestBody';
259
283
  export type { OnboardingCdEntitiesFetchRequestRequestBody } from './requestBodies/OnboardingCdEntitiesFetchRequestRequestBody';
260
284
  export type { OnboardingGenerateYamlDefRequestRequestBody } from './requestBodies/OnboardingGenerateYamlDefRequestRequestBody';
261
285
  export type { OnboardingImportCdEntitiesRequestRequestBody } from './requestBodies/OnboardingImportCdEntitiesRequestRequestBody';
@@ -284,6 +308,8 @@ export type { ConfigurationEntitiesResponseResponse } from './responses/Configur
284
308
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
285
309
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
286
310
  export type { CustomPluginStatusResponseResponse } from './responses/CustomPluginStatusResponseResponse';
311
+ export type { CustomPluginV2ResponseResponse } from './responses/CustomPluginV2ResponseResponse';
312
+ export type { CustomPluginsV2ResponseBodyListResponse } from './responses/CustomPluginsV2ResponseBodyListResponse';
287
313
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
288
314
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
289
315
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
@@ -312,6 +338,8 @@ export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesR
312
338
  export type { ImportedEntitiesResponseListResponse } from './responses/ImportedEntitiesResponseListResponse';
313
339
  export type { IntegrationResponseListResponse } from './responses/IntegrationResponseListResponse';
314
340
  export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
341
+ export type { KindResponseBodyListResponse } from './responses/KindResponseBodyListResponse';
342
+ export type { KindResponseBodyResponse } from './responses/KindResponseBodyResponse';
315
343
  export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
316
344
  export type { MergedPluginConfigResponseResponse } from './responses/MergedPluginConfigResponseResponse';
317
345
  export type { OnboardingCdEntitiesCountResponseResponse } from './responses/OnboardingCdEntitiesCountResponseResponse';
@@ -391,6 +419,9 @@ export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest'
391
419
  export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
392
420
  export type { CustomPluginStatus } from './schemas/CustomPluginStatus';
393
421
  export type { CustomPluginStatusResponse } from './schemas/CustomPluginStatusResponse';
422
+ export type { CustomPluginV2CreateRequest } from './schemas/CustomPluginV2CreateRequest';
423
+ export type { CustomPluginV2Response } from './schemas/CustomPluginV2Response';
424
+ export type { CustomPluginV2UpdateRequest } from './schemas/CustomPluginV2UpdateRequest';
394
425
  export type { DataPoint } from './schemas/DataPoint';
395
426
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
396
427
  export type { DataSource } from './schemas/DataSource';
@@ -453,6 +484,7 @@ export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
453
484
  export type { ImportedEntityResponse } from './schemas/ImportedEntityResponse';
454
485
  export type { InputDetails } from './schemas/InputDetails';
455
486
  export type { InputValue } from './schemas/InputValue';
487
+ export type { KindResponseBody } from './schemas/KindResponseBody';
456
488
  export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
457
489
  export type { LayoutRequest } from './schemas/LayoutRequest';
458
490
  export type { LayoutResponse } from './schemas/LayoutResponse';
@@ -6,9 +6,11 @@ export { createBackstageEnvVariables, useCreateBackstageEnvVariablesMutation, }
6
6
  export { createBackstagePermissions, useCreateBackstagePermissionsMutation, } from './hooks/useCreateBackstagePermissionsMutation';
7
7
  export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutation';
8
8
  export { createCompileAndExecuteEnvironment, useCreateCompileAndExecuteEnvironmentMutation, } from './hooks/useCreateCompileAndExecuteEnvironmentMutation';
9
+ export { createCustomPluginsV2, useCreateCustomPluginsV2Mutation, } from './hooks/useCreateCustomPluginsV2Mutation';
9
10
  export { createEntity, useCreateEntityMutation } from './hooks/useCreateEntityMutation';
10
11
  export { createEntityVersion, useCreateEntityVersionMutation, } from './hooks/useCreateEntityVersionMutation';
11
12
  export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
13
+ export { createKind, useCreateKindMutation } from './hooks/useCreateKindMutation';
12
14
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
13
15
  export { createOrUpdateEntityTable, useCreateOrUpdateEntityTableMutation, } from './hooks/useCreateOrUpdateEntityTableMutation';
14
16
  export { createPluginRequestV2, useCreatePluginRequestV2Mutation, } from './hooks/useCreatePluginRequestV2Mutation';
@@ -18,11 +20,13 @@ export { deleteAggregationRule, useDeleteAggregationRuleMutation, } from './hook
18
20
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
19
21
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
20
22
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
23
+ export { deleteCustomPluginV2, useDeleteCustomPluginV2Mutation, } from './hooks/useDeleteCustomPluginV2Mutation';
21
24
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
22
25
  export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/useDeleteEntityVersionMutation';
23
26
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
24
27
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
25
28
  export { deleteHomePageLayoutCardsIcon, useDeleteHomePageLayoutCardsIconMutation, } from './hooks/useDeleteHomePageLayoutCardsIconMutation';
29
+ export { deleteKind, useDeleteKindMutation } from './hooks/useDeleteKindMutation';
26
30
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
27
31
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
28
32
  export { discoverEntities, useDiscoverEntitiesQuery } from './hooks/useDiscoverEntitiesQuery';
@@ -45,6 +49,8 @@ export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
45
49
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
46
50
  export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
47
51
  export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
52
+ export { getCustomPluginV2, useGetCustomPluginV2Query } from './hooks/useGetCustomPluginV2Query';
53
+ export { getCustomPluginsV2, useGetCustomPluginsV2Query } from './hooks/useGetCustomPluginsV2Query';
48
54
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
49
55
  export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
50
56
  export { getEntitiesByRefs, useGetEntitiesByRefsMutation, } from './hooks/useGetEntitiesByRefsMutation';
@@ -68,6 +74,8 @@ export { getImportedEntities, useGetImportedEntitiesQuery, } from './hooks/useGe
68
74
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
69
75
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
70
76
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
77
+ export { getKind, useGetKindQuery } from './hooks/useGetKindQuery';
78
+ export { getKinds, useGetKindsQuery } from './hooks/useGetKindsQuery';
71
79
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
72
80
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
73
81
  export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
@@ -105,12 +113,14 @@ export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hook
105
113
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
106
114
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
107
115
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
116
+ export { updateCustomPluginV2, useUpdateCustomPluginV2Mutation, } from './hooks/useUpdateCustomPluginV2Mutation';
108
117
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
109
118
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
110
119
  export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/useUpdateEntityVersionMutation';
111
120
  export { updateGitMetadata, useUpdateGitMetadataMutation, } from './hooks/useUpdateGitMetadataMutation';
112
121
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
113
122
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
123
+ export { updateKind, useUpdateKindMutation } from './hooks/useUpdateKindMutation';
114
124
  export { updatePluginRequestV2, useUpdatePluginRequestV2Mutation, } from './hooks/useUpdatePluginRequestV2Mutation';
115
125
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
116
126
  export { useValidateComplexCheckMutation, validateComplexCheck, } from './hooks/useValidateComplexCheckMutation';
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginV2CreateRequest } from '../schemas/CustomPluginV2CreateRequest';
2
+ export type CustomPluginV2CreateRequestRequestBody = CustomPluginV2CreateRequest;
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginV2UpdateRequest } from '../schemas/CustomPluginV2UpdateRequest';
2
+ export type CustomPluginV2UpdateRequestRequestBody = CustomPluginV2UpdateRequest;
@@ -0,0 +1 @@
1
+ export type KindCreateRequestBodyRequestBody = unknown;
@@ -0,0 +1 @@
1
+ export type KindUpdateRequestBodyRequestBody = unknown;
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginV2Response } from '../schemas/CustomPluginV2Response';
2
+ export type CustomPluginV2ResponseResponse = CustomPluginV2Response;
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginV2Response } from '../schemas/CustomPluginV2Response';
2
+ export type CustomPluginsV2ResponseBodyListResponse = CustomPluginV2Response[];
@@ -0,0 +1,2 @@
1
+ import type { KindResponseBody } from '../schemas/KindResponseBody';
2
+ export type KindResponseBodyListResponse = KindResponseBody[];
@@ -0,0 +1,2 @@
1
+ import type { KindResponseBody } from '../schemas/KindResponseBody';
2
+ export type KindResponseBodyResponse = KindResponseBody;
@@ -0,0 +1,6 @@
1
+ export interface CustomPluginV2CreateRequest {
2
+ description?: string;
3
+ icon?: string;
4
+ identifier: string;
5
+ name: string;
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 {};
@@ -0,0 +1,10 @@
1
+ export interface CustomPluginV2Response {
2
+ created_at?: number;
3
+ created_by?: string;
4
+ description?: string;
5
+ file_url?: string;
6
+ icon?: string;
7
+ identifier?: string;
8
+ name?: string;
9
+ updated_at?: number;
10
+ }
@@ -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,5 @@
1
+ export interface CustomPluginV2UpdateRequest {
2
+ description?: string;
3
+ icon?: string;
4
+ name?: string;
5
+ }
@@ -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 {};
@@ -3,9 +3,9 @@ export interface ImportedEntityResponse {
3
3
  entity?: EntityResponse;
4
4
  raw_entity_details?: {
5
5
  /**
6
- * The action that was performed during import
6
+ * The action that was performed during import (e.g. register, merge)
7
7
  */
8
- action_performed?: 'MERGE' | 'REGISTER';
8
+ action_performed?: string;
9
9
  identifier?: string;
10
10
  /**
11
11
  * Timestamp (epoch millis) when the entity was imported
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Kind Response Body
3
+ */
4
+ export interface KindResponseBody {
5
+ description?: string;
6
+ icon?: string;
7
+ identifier: string;
8
+ name: string;
9
+ schema: string;
10
+ }
@@ -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.90.1",
3
+ "version": "0.92.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",