@harnessio/react-idp-service-client 0.50.1 → 0.51.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 (44) hide show
  1. package/dist/idp-service/src/services/hooks/useDeleteGroupMutation.d.ts +18 -0
  2. package/dist/idp-service/src/services/hooks/useDeleteGroupMutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useDeleteLayoutMutation.d.ts +2 -1
  4. package/dist/idp-service/src/services/hooks/useGetAllGroupsForAccountQuery.d.ts +16 -0
  5. package/dist/idp-service/src/services/hooks/useGetAllGroupsForAccountQuery.js +14 -0
  6. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusLogsQuery.d.ts +2 -3
  7. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusLogsQuery.js +1 -1
  8. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusPluginIdQuery.d.ts +1 -1
  9. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusPluginIdQuery.js +1 -1
  10. package/dist/idp-service/src/services/hooks/useGetGroupDetailsQuery.d.ts +19 -0
  11. package/dist/idp-service/src/services/hooks/useGetGroupDetailsQuery.js +14 -0
  12. package/dist/idp-service/src/services/hooks/useGetGroupsYamlQuery.d.ts +16 -0
  13. package/dist/idp-service/src/services/hooks/useGetGroupsYamlQuery.js +14 -0
  14. package/dist/idp-service/src/services/hooks/useGetWorkflowsForAccountQuery.d.ts +16 -0
  15. package/dist/idp-service/src/services/hooks/useGetWorkflowsForAccountQuery.js +14 -0
  16. package/dist/idp-service/src/services/hooks/useSaveGroupMutation.d.ts +19 -0
  17. package/dist/idp-service/src/services/hooks/useSaveGroupMutation.js +14 -0
  18. package/dist/idp-service/src/services/hooks/useUpdateGroupsMutation.d.ts +19 -0
  19. package/dist/idp-service/src/services/hooks/useUpdateGroupsMutation.js +14 -0
  20. package/dist/idp-service/src/services/index.d.ts +21 -2
  21. package/dist/idp-service/src/services/index.js +7 -0
  22. package/dist/idp-service/src/services/schemas/CustomPluginStatus.d.ts +9 -0
  23. package/dist/idp-service/src/services/schemas/CustomPluginStatusResponse.d.ts +2 -10
  24. package/dist/idp-service/src/services/schemas/CustomPluginStatusResponse.js +0 -3
  25. package/dist/idp-service/src/services/schemas/Group.d.ts +9 -0
  26. package/dist/idp-service/src/services/schemas/GroupRequest.d.ts +4 -0
  27. package/dist/idp-service/src/services/schemas/GroupRequest.js +1 -0
  28. package/dist/idp-service/src/services/schemas/GroupResponse.d.ts +4 -0
  29. package/dist/idp-service/src/services/schemas/GroupResponse.js +1 -0
  30. package/dist/idp-service/src/services/schemas/GroupsYamlResponse.d.ts +3 -0
  31. package/dist/idp-service/src/services/schemas/GroupsYamlResponse.js +4 -0
  32. package/dist/idp-service/src/services/schemas/LayoutRequest.d.ts +7 -0
  33. package/dist/idp-service/src/services/schemas/LayoutRequest.js +0 -3
  34. package/dist/idp-service/src/services/schemas/PluginInfo.d.ts +1 -1
  35. package/dist/idp-service/src/services/schemas/Rule.d.ts +1 -1
  36. package/dist/idp-service/src/services/schemas/WorkflowsInfo.d.ts +12 -0
  37. package/dist/idp-service/src/services/schemas/WorkflowsInfo.js +4 -0
  38. package/dist/idp-service/src/services/schemas/WorkflowsInfoResponse.d.ts +4 -0
  39. package/dist/idp-service/src/services/schemas/WorkflowsInfoResponse.js +1 -0
  40. package/package.json +1 -1
  41. package/dist/idp-service/src/services/responses/CustomPluginLogsResponseResponse.d.ts +0 -2
  42. package/dist/idp-service/src/services/schemas/CustomPluginLogsResponse.d.ts +0 -3
  43. /package/dist/idp-service/src/services/schemas/{CustomPluginLogsResponse.js → CustomPluginStatus.js} +0 -0
  44. /package/dist/idp-service/src/services/{responses/CustomPluginLogsResponseResponse.js → schemas/Group.js} +0 -0
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteGroupMutationPathParams {
5
+ 'group-name': string;
6
+ }
7
+ export interface DeleteGroupMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type DeleteGroupOkResponse = ResponseWithPagination<unknown>;
11
+ export type DeleteGroupErrorResponse = unknown;
12
+ export interface DeleteGroupProps extends DeleteGroupMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteGroupMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function deleteGroup(props: DeleteGroupProps): Promise<DeleteGroupOkResponse>;
15
+ /**
16
+ * Delete a group
17
+ */
18
+ export declare function useDeleteGroupMutation(options?: Omit<UseMutationOptions<DeleteGroupOkResponse, DeleteGroupErrorResponse, DeleteGroupProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteGroupOkResponse, unknown, DeleteGroupProps, 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 deleteGroup(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups/${props['group-name']}`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete a group
11
+ */
12
+ export function useDeleteGroupMutation(options) {
13
+ return useMutation((mutateProps) => deleteGroup(mutateProps), options);
14
+ }
@@ -1,10 +1,11 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LayoutResponse } from '../schemas/LayoutResponse';
2
3
  import type { ResponseWithPagination } from '../helpers';
3
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
4
5
  export interface DeleteLayoutMutationHeaderParams {
5
6
  'Harness-Account'?: string;
6
7
  }
7
- export type DeleteLayoutOkResponse = ResponseWithPagination<unknown>;
8
+ export type DeleteLayoutOkResponse = ResponseWithPagination<LayoutResponse>;
8
9
  export type DeleteLayoutErrorResponse = unknown;
9
10
  export interface DeleteLayoutProps extends Omit<FetcherOptions<unknown, unknown, DeleteLayoutMutationHeaderParams>, 'url'> {
10
11
  }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GroupResponse } from '../schemas/GroupResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAllGroupsForAccountQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetAllGroupsForAccountOkResponse = ResponseWithPagination<unknown>;
9
+ export type GetAllGroupsForAccountErrorResponse = GroupResponse[];
10
+ export interface GetAllGroupsForAccountProps extends Omit<FetcherOptions<unknown, unknown, GetAllGroupsForAccountQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getAllGroupsForAccount(props: GetAllGroupsForAccountProps): Promise<GetAllGroupsForAccountOkResponse>;
13
+ /**
14
+ * Get all groups for account
15
+ */
16
+ export declare function useGetAllGroupsForAccountQuery(props: GetAllGroupsForAccountProps, options?: Omit<UseQueryOptions<GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountErrorResponse>;
@@ -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 '../../../../fetcher/index.js';
6
+ export function getAllGroupsForAccount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get all groups for account
11
+ */
12
+ export function useGetAllGroupsForAccountQuery(props, options) {
13
+ return useQuery(['get-all-groups-for-account'], ({ signal }) => getAllGroupsForAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,5 +1,4 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { CustomPluginLogsResponseResponse } from '../responses/CustomPluginLogsResponseResponse';
3
2
  import type { ResponseWithPagination } from '../helpers';
4
3
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
4
  export interface GetCustomPluginStatusLogsQueryQueryParams {
@@ -12,13 +11,13 @@ export interface GetCustomPluginStatusLogsQueryHeaderParams {
12
11
  'Harness-Account'?: string;
13
12
  'Log-Key'?: string;
14
13
  }
15
- export type GetCustomPluginStatusLogsOkResponse = ResponseWithPagination<CustomPluginLogsResponseResponse>;
14
+ export type GetCustomPluginStatusLogsOkResponse = ResponseWithPagination<unknown>;
16
15
  export type GetCustomPluginStatusLogsErrorResponse = unknown;
17
16
  export interface GetCustomPluginStatusLogsProps extends Omit<FetcherOptions<GetCustomPluginStatusLogsQueryQueryParams, unknown, GetCustomPluginStatusLogsQueryHeaderParams>, 'url'> {
18
17
  queryParams: GetCustomPluginStatusLogsQueryQueryParams;
19
18
  }
20
19
  export declare function getCustomPluginStatusLogs(props: GetCustomPluginStatusLogsProps): Promise<GetCustomPluginStatusLogsOkResponse>;
21
20
  /**
22
- * Get Custom Plugin Status Logs
21
+ * Get custom plugin status logs
23
22
  */
24
23
  export declare function useGetCustomPluginStatusLogsQuery(props: GetCustomPluginStatusLogsProps, options?: Omit<UseQueryOptions<GetCustomPluginStatusLogsOkResponse, GetCustomPluginStatusLogsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCustomPluginStatusLogsOkResponse, unknown>;
@@ -7,7 +7,7 @@ export function getCustomPluginStatusLogs(props) {
7
7
  return fetcher(Object.assign({ url: `/v1/custom-plugins/logs`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get Custom Plugin Status Logs
10
+ * Get custom plugin status logs
11
11
  */
12
12
  export function useGetCustomPluginStatusLogsQuery(props, options) {
13
13
  return useQuery(['get-custom-plugin-status-logs', props.queryParams], ({ signal }) => getCustomPluginStatusLogs(Object.assign(Object.assign({}, props), { signal })), options);
@@ -14,6 +14,6 @@ export interface GetCustomPluginStatusPluginIdProps extends GetCustomPluginStatu
14
14
  }
15
15
  export declare function getCustomPluginStatusPluginId(props: GetCustomPluginStatusPluginIdProps): Promise<GetCustomPluginStatusPluginIdOkResponse>;
16
16
  /**
17
- * Get Custom Plugin Status
17
+ * Get custom plugin status for given plugin_id
18
18
  */
19
19
  export declare function useGetCustomPluginStatusPluginIdQuery(props: GetCustomPluginStatusPluginIdProps, options?: Omit<UseQueryOptions<GetCustomPluginStatusPluginIdOkResponse, GetCustomPluginStatusPluginIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCustomPluginStatusPluginIdOkResponse, unknown>;
@@ -7,7 +7,7 @@ export function getCustomPluginStatusPluginId(props) {
7
7
  return fetcher(Object.assign({ url: `/v1/custom-plugins/${props['plugin-id']}/status`, method: 'GET' }, props));
8
8
  }
9
9
  /**
10
- * Get Custom Plugin Status
10
+ * Get custom plugin status for given plugin_id
11
11
  */
12
12
  export function useGetCustomPluginStatusPluginIdQuery(props, options) {
13
13
  return useQuery(['get-custom-plugin-status-plugin-id', props['plugin-id']], ({ signal }) => getCustomPluginStatusPluginId(Object.assign(Object.assign({}, props), { signal })), options);
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GroupResponse } from '../schemas/GroupResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetGroupDetailsQueryPathParams {
6
+ 'group-name': string;
7
+ }
8
+ export interface GetGroupDetailsQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetGroupDetailsOkResponse = ResponseWithPagination<unknown>;
12
+ export type GetGroupDetailsErrorResponse = GroupResponse;
13
+ export interface GetGroupDetailsProps extends GetGroupDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetGroupDetailsQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getGroupDetails(props: GetGroupDetailsProps): Promise<GetGroupDetailsOkResponse>;
16
+ /**
17
+ * Get Group Details
18
+ */
19
+ export declare function useGetGroupDetailsQuery(props: GetGroupDetailsProps, options?: Omit<UseQueryOptions<GetGroupDetailsOkResponse, GetGroupDetailsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetGroupDetailsOkResponse, GroupResponse>;
@@ -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 '../../../../fetcher/index.js';
6
+ export function getGroupDetails(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups/${props['group-name']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Group Details
11
+ */
12
+ export function useGetGroupDetailsQuery(props, options) {
13
+ return useQuery(['get-group-details', props['group-name']], ({ signal }) => getGroupDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { GroupsYamlResponse } from '../schemas/GroupsYamlResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetGroupsYamlQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetGroupsYamlOkResponse = ResponseWithPagination<unknown>;
9
+ export type GetGroupsYamlErrorResponse = GroupsYamlResponse;
10
+ export interface GetGroupsYamlProps extends Omit<FetcherOptions<unknown, unknown, GetGroupsYamlQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getGroupsYaml(props: GetGroupsYamlProps): Promise<GetGroupsYamlOkResponse>;
13
+ /**
14
+ * Get Groups Yaml
15
+ */
16
+ export declare function useGetGroupsYamlQuery(props: GetGroupsYamlProps, options?: Omit<UseQueryOptions<GetGroupsYamlOkResponse, GetGroupsYamlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetGroupsYamlOkResponse, GroupsYamlResponse>;
@@ -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 '../../../../fetcher/index.js';
6
+ export function getGroupsYaml(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups/yaml`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Groups Yaml
11
+ */
12
+ export function useGetGroupsYamlQuery(props, options) {
13
+ return useQuery(['get-groups-yaml'], ({ signal }) => getGroupsYaml(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { WorkflowsInfoResponse } from '../schemas/WorkflowsInfoResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetWorkflowsForAccountQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetWorkflowsForAccountOkResponse = ResponseWithPagination<unknown>;
9
+ export type GetWorkflowsForAccountErrorResponse = WorkflowsInfoResponse;
10
+ export interface GetWorkflowsForAccountProps extends Omit<FetcherOptions<unknown, unknown, GetWorkflowsForAccountQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getWorkflowsForAccount(props: GetWorkflowsForAccountProps): Promise<GetWorkflowsForAccountOkResponse>;
13
+ /**
14
+ * Get workflows for account
15
+ */
16
+ export declare function useGetWorkflowsForAccountQuery(props: GetWorkflowsForAccountProps, options?: Omit<UseQueryOptions<GetWorkflowsForAccountOkResponse, GetWorkflowsForAccountErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetWorkflowsForAccountOkResponse, WorkflowsInfoResponse>;
@@ -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 '../../../../fetcher/index.js';
6
+ export function getWorkflowsForAccount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups/workflows`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get workflows for account
11
+ */
12
+ export function useGetWorkflowsForAccountQuery(props, options) {
13
+ return useQuery(['get-workflows-for-account'], ({ signal }) => getWorkflowsForAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GroupResponse } from '../schemas/GroupResponse';
3
+ import type { GroupRequest } from '../schemas/GroupRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface SaveGroupMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type SaveGroupRequestBody = GroupRequest;
10
+ export type SaveGroupOkResponse = ResponseWithPagination<unknown>;
11
+ export type SaveGroupErrorResponse = GroupResponse;
12
+ export interface SaveGroupProps extends Omit<FetcherOptions<unknown, SaveGroupRequestBody, SaveGroupMutationHeaderParams>, 'url'> {
13
+ body: SaveGroupRequestBody;
14
+ }
15
+ export declare function saveGroup(props: SaveGroupProps): Promise<SaveGroupOkResponse>;
16
+ /**
17
+ * Save a group
18
+ */
19
+ export declare function useSaveGroupMutation(options?: Omit<UseMutationOptions<SaveGroupOkResponse, SaveGroupErrorResponse, SaveGroupProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveGroupOkResponse, GroupResponse, SaveGroupProps, 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 saveGroup(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Save a group
11
+ */
12
+ export function useSaveGroupMutation(options) {
13
+ return useMutation((mutateProps) => saveGroup(mutateProps), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GroupResponse } from '../schemas/GroupResponse';
3
+ import type { GroupRequest } from '../schemas/GroupRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateGroupsMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type UpdateGroupsRequestBody = GroupRequest[];
10
+ export type UpdateGroupsOkResponse = ResponseWithPagination<unknown>;
11
+ export type UpdateGroupsErrorResponse = GroupResponse[];
12
+ export interface UpdateGroupsProps extends Omit<FetcherOptions<unknown, UpdateGroupsRequestBody, UpdateGroupsMutationHeaderParams>, 'url'> {
13
+ body: UpdateGroupsRequestBody;
14
+ }
15
+ export declare function updateGroups(props: UpdateGroupsProps): Promise<UpdateGroupsOkResponse>;
16
+ /**
17
+ * Update Groups
18
+ */
19
+ export declare function useUpdateGroupsMutation(options?: Omit<UseMutationOptions<UpdateGroupsOkResponse, UpdateGroupsErrorResponse, UpdateGroupsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateGroupsOkResponse, UpdateGroupsErrorResponse, UpdateGroupsProps, 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 updateGroups(props) {
7
+ return fetcher(Object.assign({ url: `/v1/groups`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update Groups
11
+ */
12
+ export function useUpdateGroupsMutation(options) {
13
+ return useMutation((mutateProps) => updateGroups(mutateProps), options);
14
+ }
@@ -21,6 +21,8 @@ export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteChe
21
21
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
22
22
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
23
23
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
24
+ export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
25
+ export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
24
26
  export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
25
27
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
26
28
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
@@ -29,6 +31,8 @@ export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateY
29
31
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
30
32
  export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
31
33
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
34
+ export type { GetAllGroupsForAccountErrorResponse, GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountProps, } from './hooks/useGetAllGroupsForAccountQuery';
35
+ export { getAllGroupsForAccount, useGetAllGroupsForAccountQuery, } from './hooks/useGetAllGroupsForAccountQuery';
32
36
  export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayoutsProps, } from './hooks/useGetAllLayoutsQuery';
33
37
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
34
38
  export type { GetAllLayoutsV2ErrorResponse, GetAllLayoutsV2OkResponse, GetAllLayoutsV2Props, } from './hooks/useGetAllLayoutsV2Query';
@@ -59,6 +63,10 @@ export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPoints
59
63
  export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
60
64
  export type { GetEntityFacetsErrorResponse, GetEntityFacetsOkResponse, GetEntityFacetsProps, GetEntityFacetsQueryQueryParams, } from './hooks/useGetEntityFacetsQuery';
61
65
  export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
66
+ export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, } from './hooks/useGetGroupDetailsQuery';
67
+ export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
68
+ export type { GetGroupsYamlErrorResponse, GetGroupsYamlOkResponse, GetGroupsYamlProps, } from './hooks/useGetGroupsYamlQuery';
69
+ export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
62
70
  export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
63
71
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
64
72
  export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
@@ -87,6 +95,8 @@ export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, G
87
95
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
88
96
  export type { GetStatusInfoTypeV2ErrorResponse, GetStatusInfoTypeV2OkResponse, GetStatusInfoTypeV2Props, GetStatusInfoTypeV2QueryPathParams, } from './hooks/useGetStatusInfoTypeV2Query';
89
97
  export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
98
+ export type { GetWorkflowsForAccountErrorResponse, GetWorkflowsForAccountOkResponse, GetWorkflowsForAccountProps, } from './hooks/useGetWorkflowsForAccountQuery';
99
+ export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
90
100
  export type { ImportCdEntitiesErrorResponse, ImportCdEntitiesOkResponse, ImportCdEntitiesProps, ImportCdEntitiesRequestBody, } from './hooks/useImportCdEntitiesMutation';
91
101
  export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
92
102
  export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
@@ -107,6 +117,8 @@ export type { SaveConnectorInfoErrorResponse, SaveConnectorInfoOkResponse, SaveC
107
117
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
108
118
  export type { SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoOkResponse, SaveCustomPluginsInfoProps, SaveCustomPluginsInfoRequestBody, } from './hooks/useSaveCustomPluginsInfoMutation';
109
119
  export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
120
+ export type { SaveGroupErrorResponse, SaveGroupOkResponse, SaveGroupProps, SaveGroupRequestBody, } from './hooks/useSaveGroupMutation';
121
+ export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
110
122
  export type { SaveOrUpdatePluginAppConfigErrorResponse, SaveOrUpdatePluginAppConfigOkResponse, SaveOrUpdatePluginAppConfigProps, SaveOrUpdatePluginAppConfigRequestBody, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
111
123
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
112
124
  export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse, ScorecardRecalibrateProps, ScorecardRecalibrateRequestBody, } from './hooks/useScorecardRecalibrateMutation';
@@ -121,6 +133,8 @@ export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntit
121
133
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
122
134
  export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutationPathParams, UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoProps, UpdateCustomPluginsInfoRequestBody, } from './hooks/useUpdateCustomPluginsInfoMutation';
123
135
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
136
+ export type { UpdateGroupsErrorResponse, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
137
+ export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
124
138
  export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
125
139
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
126
140
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
@@ -153,7 +167,6 @@ export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseR
153
167
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
154
168
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
155
169
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
156
- export type { CustomPluginLogsResponseResponse } from './responses/CustomPluginLogsResponseResponse';
157
170
  export type { CustomPluginStatusResponseResponse } from './responses/CustomPluginStatusResponseResponse';
158
171
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
159
172
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
@@ -220,7 +233,7 @@ export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
220
233
  export type { CustomPluginDetailedInfo } from './schemas/CustomPluginDetailedInfo';
221
234
  export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest';
222
235
  export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
223
- export type { CustomPluginLogsResponse } from './schemas/CustomPluginLogsResponse';
236
+ export type { CustomPluginStatus } from './schemas/CustomPluginStatus';
224
237
  export type { CustomPluginStatusResponse } from './schemas/CustomPluginStatusResponse';
225
238
  export type { DataPoint } from './schemas/DataPoint';
226
239
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
@@ -236,6 +249,10 @@ export type { Facets } from './schemas/Facets';
236
249
  export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
237
250
  export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
238
251
  export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
252
+ export type { Group } from './schemas/Group';
253
+ export type { GroupRequest } from './schemas/GroupRequest';
254
+ export type { GroupResponse } from './schemas/GroupResponse';
255
+ export type { GroupsYamlResponse } from './schemas/GroupsYamlResponse';
239
256
  export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
240
257
  export type { HarnessEntitiesCountResponse } from './schemas/HarnessEntitiesCountResponse';
241
258
  export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
@@ -287,4 +304,6 @@ export type { StatusInfo } from './schemas/StatusInfo';
287
304
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
288
305
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
289
306
  export type { User } from './schemas/User';
307
+ export type { WorkflowsInfo } from './schemas/WorkflowsInfo';
308
+ export type { WorkflowsInfoResponse } from './schemas/WorkflowsInfoResponse';
290
309
  export type { WriteValidationDetails } from './schemas/WriteValidationDetails';
@@ -9,10 +9,12 @@ export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateSc
9
9
  export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
10
10
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
11
11
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
12
+ export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
12
13
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
13
14
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
14
15
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
15
16
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
17
+ export { getAllGroupsForAccount, useGetAllGroupsForAccountQuery, } from './hooks/useGetAllGroupsForAccountQuery';
16
18
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
17
19
  export { getAllLayoutsV2, useGetAllLayoutsV2Query } from './hooks/useGetAllLayoutsV2Query';
18
20
  export { getAllowList, useGetAllowListQuery } from './hooks/useGetAllowListQuery';
@@ -28,6 +30,8 @@ export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, }
28
30
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
29
31
  export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
30
32
  export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
33
+ export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
34
+ export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
31
35
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
32
36
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
33
37
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
@@ -42,6 +46,7 @@ export { getScorecardStats, useGetScorecardStatsQuery } from './hooks/useGetScor
42
46
  export { getScorecards, useGetScorecardsQuery } from './hooks/useGetScorecardsQuery';
43
47
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
44
48
  export { getStatusInfoTypeV2, useGetStatusInfoTypeV2Query, } from './hooks/useGetStatusInfoTypeV2Query';
49
+ export { getWorkflowsForAccount, useGetWorkflowsForAccountQuery, } from './hooks/useGetWorkflowsForAccountQuery';
45
50
  export { importCdEntities, useImportCdEntitiesMutation } from './hooks/useImportCdEntitiesMutation';
46
51
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
47
52
  export { layoutIngest, useLayoutIngestMutation } from './hooks/useLayoutIngestMutation';
@@ -52,6 +57,7 @@ export { saveAllowList, useSaveAllowListMutation } from './hooks/useSaveAllowLis
52
57
  export { saveAuthInfoAuthId, useSaveAuthInfoAuthIdMutation, } from './hooks/useSaveAuthInfoAuthIdMutation';
53
58
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
54
59
  export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
60
+ export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
55
61
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
56
62
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
57
63
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
@@ -59,5 +65,6 @@ export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } fr
59
65
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
60
66
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
61
67
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
68
+ export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
62
69
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
63
70
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
@@ -0,0 +1,9 @@
1
+ export interface CustomPluginStatus {
2
+ account_id?: string;
3
+ error?: string;
4
+ key?: string;
5
+ org_id?: string;
6
+ pipeline_id?: string;
7
+ project_id?: string;
8
+ status: string;
9
+ }
@@ -1,12 +1,4 @@
1
+ import type { CustomPluginStatus } from '../schemas/CustomPluginStatus';
1
2
  export interface CustomPluginStatusResponse {
2
- plugin_status?: {
3
- account_id?: string;
4
- error?: string;
5
- key?: string;
6
- org_id?: string;
7
- pipeline_id?: string;
8
- project_id?: string;
9
- required?: {};
10
- status?: 'Failed' | 'Running' | 'Success';
11
- };
3
+ plugin_status?: CustomPluginStatus;
12
4
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,9 @@
1
+ import type { WorkflowsInfo } from '../schemas/WorkflowsInfo';
2
+ export interface Group {
3
+ description?: string;
4
+ icon?: string;
5
+ id?: string;
6
+ name: string;
7
+ order?: number;
8
+ workflows?: WorkflowsInfo[];
9
+ }
@@ -0,0 +1,4 @@
1
+ import type { Group } from '../schemas/Group';
2
+ export interface GroupRequest {
3
+ group?: Group;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { Group } from '../schemas/Group';
2
+ export interface GroupResponse {
3
+ group?: Group;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface GroupsYamlResponse {
2
+ yaml?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,11 +1,18 @@
1
+ import type { User } from '../schemas/User';
1
2
  /**
2
3
  * LayoutRequest
3
4
  */
4
5
  export interface LayoutRequest {
6
+ created_by?: User;
5
7
  default_yaml?: string;
8
+ description?: string;
6
9
  display_name?: string;
10
+ entity_kind?: string;
11
+ entity_type?: string;
12
+ harness_managed?: boolean;
7
13
  id?: string;
8
14
  name?: string;
9
15
  type?: string;
16
+ updated_by?: User;
10
17
  yaml?: string;
11
18
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -10,6 +10,6 @@ export interface PluginInfo {
10
10
  image_url?: string;
11
11
  images?: string[];
12
12
  name?: string;
13
- plugin_type?: 'CUSTOM' | 'DEFAULT';
13
+ plugin_type?: 'CUSTOM' | 'DEFAULT' | 'MARKETPLACE';
14
14
  source?: string;
15
15
  }
@@ -5,5 +5,5 @@ export interface Rule {
5
5
  identifier?: string;
6
6
  input_values?: InputValue[];
7
7
  operator: string;
8
- value: string;
8
+ value?: string;
9
9
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Model for storing the workflows info
3
+ */
4
+ export interface WorkflowsInfo {
5
+ description: string;
6
+ kind: string;
7
+ name: string;
8
+ owner: string;
9
+ title: string;
10
+ type: string;
11
+ uid: string;
12
+ }
@@ -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,4 @@
1
+ import type { WorkflowsInfo } from '../schemas/WorkflowsInfo';
2
+ export interface WorkflowsInfoResponse {
3
+ workflows?: WorkflowsInfo[];
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.50.1",
3
+ "version": "0.51.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- import type { CustomPluginLogsResponse } from '../schemas/CustomPluginLogsResponse';
2
- export type CustomPluginLogsResponseResponse = CustomPluginLogsResponse;
@@ -1,3 +0,0 @@
1
- export interface CustomPluginLogsResponse {
2
- [key: string]: any;
3
- }