@harnessio/react-idp-service-client 0.90.0 → 0.91.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 (33) 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/useDeleteCustomPluginV2Mutation.d.ts +18 -0
  4. package/dist/idp-service/src/services/hooks/useDeleteCustomPluginV2Mutation.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useGetCustomPluginV2Query.d.ts +19 -0
  6. package/dist/idp-service/src/services/hooks/useGetCustomPluginV2Query.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useGetCustomPluginsV2Query.d.ts +23 -0
  8. package/dist/idp-service/src/services/hooks/useGetCustomPluginsV2Query.js +14 -0
  9. package/dist/idp-service/src/services/hooks/useGetImportedEntitiesQuery.d.ts +28 -0
  10. package/dist/idp-service/src/services/hooks/useGetImportedEntitiesQuery.js +14 -0
  11. package/dist/idp-service/src/services/hooks/useUpdateCustomPluginV2Mutation.d.ts +22 -0
  12. package/dist/idp-service/src/services/hooks/useUpdateCustomPluginV2Mutation.js +14 -0
  13. package/dist/idp-service/src/services/index.d.ts +21 -0
  14. package/dist/idp-service/src/services/index.js +6 -0
  15. package/dist/idp-service/src/services/requestBodies/CustomPluginV2CreateRequestRequestBody.d.ts +2 -0
  16. package/dist/idp-service/src/services/requestBodies/CustomPluginV2CreateRequestRequestBody.js +1 -0
  17. package/dist/idp-service/src/services/requestBodies/CustomPluginV2UpdateRequestRequestBody.d.ts +2 -0
  18. package/dist/idp-service/src/services/requestBodies/CustomPluginV2UpdateRequestRequestBody.js +1 -0
  19. package/dist/idp-service/src/services/responses/CustomPluginV2ResponseResponse.d.ts +2 -0
  20. package/dist/idp-service/src/services/responses/CustomPluginV2ResponseResponse.js +1 -0
  21. package/dist/idp-service/src/services/responses/CustomPluginsV2ResponseBodyListResponse.d.ts +2 -0
  22. package/dist/idp-service/src/services/responses/CustomPluginsV2ResponseBodyListResponse.js +1 -0
  23. package/dist/idp-service/src/services/responses/ImportedEntitiesResponseListResponse.d.ts +2 -0
  24. package/dist/idp-service/src/services/responses/ImportedEntitiesResponseListResponse.js +1 -0
  25. package/dist/idp-service/src/services/schemas/CustomPluginV2CreateRequest.d.ts +6 -0
  26. package/dist/idp-service/src/services/schemas/CustomPluginV2CreateRequest.js +4 -0
  27. package/dist/idp-service/src/services/schemas/CustomPluginV2Response.d.ts +10 -0
  28. package/dist/idp-service/src/services/schemas/CustomPluginV2Response.js +4 -0
  29. package/dist/idp-service/src/services/schemas/CustomPluginV2UpdateRequest.d.ts +5 -0
  30. package/dist/idp-service/src/services/schemas/CustomPluginV2UpdateRequest.js +4 -0
  31. package/dist/idp-service/src/services/schemas/ImportedEntityResponse.d.ts +17 -0
  32. package/dist/idp-service/src/services/schemas/ImportedEntityResponse.js +1 -0
  33. 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,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,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,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ImportedEntitiesResponseListResponse } from '../responses/ImportedEntitiesResponseListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../custom-idp-fetcher/index.js';
5
+ export interface GetImportedEntitiesQueryPathParams {
6
+ 'integration-id': string;
7
+ }
8
+ export interface GetImportedEntitiesQueryQueryParams {
9
+ org_id?: string;
10
+ project_id?: string;
11
+ page?: number;
12
+ limit?: number;
13
+ sort?: string;
14
+ search_term?: string;
15
+ }
16
+ export interface GetImportedEntitiesQueryHeaderParams {
17
+ 'Harness-Account'?: string;
18
+ }
19
+ export type GetImportedEntitiesOkResponse = ResponseWithPagination<ImportedEntitiesResponseListResponse>;
20
+ export type GetImportedEntitiesErrorResponse = unknown;
21
+ export interface GetImportedEntitiesProps extends GetImportedEntitiesQueryPathParams, Omit<FetcherOptions<GetImportedEntitiesQueryQueryParams, unknown, GetImportedEntitiesQueryHeaderParams>, 'url'> {
22
+ queryParams: GetImportedEntitiesQueryQueryParams;
23
+ }
24
+ export declare function getImportedEntities(props: GetImportedEntitiesProps): Promise<GetImportedEntitiesOkResponse>;
25
+ /**
26
+ * Get catalog entities that were imported by a specific integration
27
+ */
28
+ export declare function useGetImportedEntitiesQuery(props: GetImportedEntitiesProps, options?: Omit<UseQueryOptions<GetImportedEntitiesOkResponse, GetImportedEntitiesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetImportedEntitiesOkResponse, 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 getImportedEntities(props) {
7
+ return fetcher(Object.assign({ url: `/v1/integrations/${props['integration-id']}/imported/entities`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get catalog entities that were imported by a specific integration
11
+ */
12
+ export function useGetImportedEntitiesQuery(props, options) {
13
+ return useQuery(['get-imported-entities', props['integration-id'], props.queryParams], ({ signal }) => getImportedEntities(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
+ }
@@ -15,6 +15,8 @@ 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';
@@ -39,6 +41,8 @@ export type { DeleteCustomLinkCardQuickLinksErrorResponse, DeleteCustomLinkCardQ
39
41
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
40
42
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
41
43
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
44
+ export type { DeleteCustomPluginV2ErrorResponse, DeleteCustomPluginV2MutationPathParams, DeleteCustomPluginV2OkResponse, DeleteCustomPluginV2Props, } from './hooks/useDeleteCustomPluginV2Mutation';
45
+ export { deleteCustomPluginV2, useDeleteCustomPluginV2Mutation, } from './hooks/useDeleteCustomPluginV2Mutation';
42
46
  export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityMutationQueryParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
43
47
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
44
48
  export type { DeleteEntityVersionErrorResponse, DeleteEntityVersionMutationPathParams, DeleteEntityVersionMutationQueryParams, DeleteEntityVersionOkResponse, DeleteEntityVersionProps, } from './hooks/useDeleteEntityVersionMutation';
@@ -93,6 +97,10 @@ export type { GetCustomPluginStatusLogsErrorResponse, GetCustomPluginStatusLogsO
93
97
  export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
94
98
  export type { GetCustomPluginStatusPluginIdErrorResponse, GetCustomPluginStatusPluginIdOkResponse, GetCustomPluginStatusPluginIdProps, GetCustomPluginStatusPluginIdQueryPathParams, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
95
99
  export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
100
+ export type { GetCustomPluginV2ErrorResponse, GetCustomPluginV2OkResponse, GetCustomPluginV2Props, GetCustomPluginV2QueryPathParams, } from './hooks/useGetCustomPluginV2Query';
101
+ export { getCustomPluginV2, useGetCustomPluginV2Query } from './hooks/useGetCustomPluginV2Query';
102
+ export type { GetCustomPluginsV2ErrorResponse, GetCustomPluginsV2OkResponse, GetCustomPluginsV2Props, GetCustomPluginsV2QueryQueryParams, } from './hooks/useGetCustomPluginsV2Query';
103
+ export { getCustomPluginsV2, useGetCustomPluginsV2Query } from './hooks/useGetCustomPluginsV2Query';
96
104
  export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceProps, GetDataPointsForDataSourceQueryPathParams, } from './hooks/useGetDataPointsForDataSourceQuery';
97
105
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
98
106
  export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
@@ -131,6 +139,8 @@ export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, Get
131
139
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
132
140
  export type { GetHomePageLayoutInfoErrorResponse, GetHomePageLayoutInfoOkResponse, GetHomePageLayoutInfoProps, } from './hooks/useGetHomePageLayoutInfoQuery';
133
141
  export { getHomePageLayoutInfo, useGetHomePageLayoutInfoQuery, } from './hooks/useGetHomePageLayoutInfoQuery';
142
+ export type { GetImportedEntitiesErrorResponse, GetImportedEntitiesOkResponse, GetImportedEntitiesProps, GetImportedEntitiesQueryPathParams, GetImportedEntitiesQueryQueryParams, } from './hooks/useGetImportedEntitiesQuery';
143
+ export { getImportedEntities, useGetImportedEntitiesQuery, } from './hooks/useGetImportedEntitiesQuery';
134
144
  export type { GetIntegrationErrorResponse, GetIntegrationOkResponse, GetIntegrationProps, GetIntegrationQueryPathParams, } from './hooks/useGetIntegrationQuery';
135
145
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
136
146
  export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegrationsProps, GetIntegrationsQueryPathParams, GetIntegrationsQueryQueryParams, } from './hooks/useGetIntegrationsQuery';
@@ -211,6 +221,8 @@ export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateChe
211
221
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
212
222
  export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntitiesOkResponse, UpdateConfigurationEntitiesProps, UpdateConfigurationEntitiesRequestBody, } from './hooks/useUpdateConfigurationEntitiesMutation';
213
223
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
224
+ export type { UpdateCustomPluginV2ErrorResponse, UpdateCustomPluginV2MutationPathParams, UpdateCustomPluginV2OkResponse, UpdateCustomPluginV2Props, UpdateCustomPluginV2RequestBody, } from './hooks/useUpdateCustomPluginV2Mutation';
225
+ export { updateCustomPluginV2, useUpdateCustomPluginV2Mutation, } from './hooks/useUpdateCustomPluginV2Mutation';
214
226
  export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutationPathParams, UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoProps, UpdateCustomPluginsInfoRequestBody, } from './hooks/useUpdateCustomPluginsInfoMutation';
215
227
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
216
228
  export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
@@ -236,6 +248,8 @@ export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/Co
236
248
  export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
237
249
  export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
238
250
  export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
251
+ export type { CustomPluginV2CreateRequestRequestBody } from './requestBodies/CustomPluginV2CreateRequestRequestBody';
252
+ export type { CustomPluginV2UpdateRequestRequestBody } from './requestBodies/CustomPluginV2UpdateRequestRequestBody';
239
253
  export type { EntitesByRefsRequestRequestBody } from './requestBodies/EntitesByRefsRequestRequestBody';
240
254
  export type { EntityCreateRequestBodyRequestBody } from './requestBodies/EntityCreateRequestBodyRequestBody';
241
255
  export type { EntityFilterQueryRequestRequestBody } from './requestBodies/EntityFilterQueryRequestRequestBody';
@@ -282,6 +296,8 @@ export type { ConfigurationEntitiesResponseResponse } from './responses/Configur
282
296
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
283
297
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
284
298
  export type { CustomPluginStatusResponseResponse } from './responses/CustomPluginStatusResponseResponse';
299
+ export type { CustomPluginV2ResponseResponse } from './responses/CustomPluginV2ResponseResponse';
300
+ export type { CustomPluginsV2ResponseBodyListResponse } from './responses/CustomPluginsV2ResponseBodyListResponse';
285
301
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
286
302
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
287
303
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
@@ -307,6 +323,7 @@ export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEn
307
323
  export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
308
324
  export type { HomePageLayoutResponseResponse } from './responses/HomePageLayoutResponseResponse';
309
325
  export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesResponseResponse';
326
+ export type { ImportedEntitiesResponseListResponse } from './responses/ImportedEntitiesResponseListResponse';
310
327
  export type { IntegrationResponseListResponse } from './responses/IntegrationResponseListResponse';
311
328
  export type { IntegrationResponseResponse } from './responses/IntegrationResponseResponse';
312
329
  export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
@@ -388,6 +405,9 @@ export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest'
388
405
  export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
389
406
  export type { CustomPluginStatus } from './schemas/CustomPluginStatus';
390
407
  export type { CustomPluginStatusResponse } from './schemas/CustomPluginStatusResponse';
408
+ export type { CustomPluginV2CreateRequest } from './schemas/CustomPluginV2CreateRequest';
409
+ export type { CustomPluginV2Response } from './schemas/CustomPluginV2Response';
410
+ export type { CustomPluginV2UpdateRequest } from './schemas/CustomPluginV2UpdateRequest';
391
411
  export type { DataPoint } from './schemas/DataPoint';
392
412
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
393
413
  export type { DataSource } from './schemas/DataSource';
@@ -447,6 +467,7 @@ export type { HomePageLayoutResponse } from './schemas/HomePageLayoutResponse';
447
467
  export type { HostInfo } from './schemas/HostInfo';
448
468
  export type { ImportEntitiesBase } from './schemas/ImportEntitiesBase';
449
469
  export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
470
+ export type { ImportedEntityResponse } from './schemas/ImportedEntityResponse';
450
471
  export type { InputDetails } from './schemas/InputDetails';
451
472
  export type { InputValue } from './schemas/InputValue';
452
473
  export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
@@ -6,6 +6,7 @@ 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';
@@ -18,6 +19,7 @@ export { deleteAggregationRule, useDeleteAggregationRuleMutation, } from './hook
18
19
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
19
20
  export { deleteCustomLinkCardQuickLinks, useDeleteCustomLinkCardQuickLinksMutation, } from './hooks/useDeleteCustomLinkCardQuickLinksMutation';
20
21
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
22
+ export { deleteCustomPluginV2, useDeleteCustomPluginV2Mutation, } from './hooks/useDeleteCustomPluginV2Mutation';
21
23
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
22
24
  export { deleteEntityVersion, useDeleteEntityVersionMutation, } from './hooks/useDeleteEntityVersionMutation';
23
25
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
@@ -45,6 +47,8 @@ export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
45
47
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
46
48
  export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
47
49
  export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
50
+ export { getCustomPluginV2, useGetCustomPluginV2Query } from './hooks/useGetCustomPluginV2Query';
51
+ export { getCustomPluginsV2, useGetCustomPluginsV2Query } from './hooks/useGetCustomPluginsV2Query';
48
52
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
49
53
  export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
50
54
  export { getEntitiesByRefs, useGetEntitiesByRefsMutation, } from './hooks/useGetEntitiesByRefsMutation';
@@ -64,6 +68,7 @@ export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDet
64
68
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
65
69
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
66
70
  export { getHomePageLayoutInfo, useGetHomePageLayoutInfoQuery, } from './hooks/useGetHomePageLayoutInfoQuery';
71
+ export { getImportedEntities, useGetImportedEntitiesQuery, } from './hooks/useGetImportedEntitiesQuery';
67
72
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
68
73
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
69
74
  export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
@@ -104,6 +109,7 @@ export { updateAggregationRule, useUpdateAggregationRuleMutation, } from './hook
104
109
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
105
110
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
106
111
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
112
+ export { updateCustomPluginV2, useUpdateCustomPluginV2Mutation, } from './hooks/useUpdateCustomPluginV2Mutation';
107
113
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
108
114
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
109
115
  export { updateEntityVersion, useUpdateEntityVersionMutation, } from './hooks/useUpdateEntityVersionMutation';
@@ -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,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 { ImportedEntityResponse } from '../schemas/ImportedEntityResponse';
2
+ export type ImportedEntitiesResponseListResponse = ImportedEntityResponse[];
@@ -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 {};
@@ -0,0 +1,17 @@
1
+ import type { EntityResponse } from '../schemas/EntityResponse';
2
+ export interface ImportedEntityResponse {
3
+ entity?: EntityResponse;
4
+ raw_entity_details?: {
5
+ /**
6
+ * The action that was performed during import (e.g. register, merge)
7
+ */
8
+ action_performed?: string;
9
+ identifier?: string;
10
+ /**
11
+ * Timestamp (epoch millis) when the entity was imported
12
+ * @format int64
13
+ */
14
+ imported_at?: number;
15
+ name?: string;
16
+ };
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.90.0",
3
+ "version": "0.91.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",