@harnessio/react-idp-service-client 0.62.0 → 0.64.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 (22) hide show
  1. package/dist/idp-service/src/services/hooks/useDeleteGroupMutation.d.ts +6 -1
  2. package/dist/idp-service/src/services/hooks/useGetAllGroupsForAccountQuery.d.ts +6 -1
  3. package/dist/idp-service/src/services/hooks/useGetAllGroupsForAccountQuery.js +1 -1
  4. package/dist/idp-service/src/services/hooks/useGetGroupDetailsQuery.d.ts +6 -1
  5. package/dist/idp-service/src/services/hooks/useGetGroupDetailsQuery.js +1 -1
  6. package/dist/idp-service/src/services/hooks/useGetJsonSchemaQuery.d.ts +17 -0
  7. package/dist/idp-service/src/services/hooks/useGetJsonSchemaQuery.js +14 -0
  8. package/dist/idp-service/src/services/hooks/useGetWorkflowsForAccountQuery.d.ts +2 -0
  9. package/dist/idp-service/src/services/hooks/useSaveGroupMutation.d.ts +6 -1
  10. package/dist/idp-service/src/services/hooks/useUpdateGroupsMutation.d.ts +6 -1
  11. package/dist/idp-service/src/services/index.d.ts +9 -9
  12. package/dist/idp-service/src/services/index.js +1 -1
  13. package/dist/idp-service/src/services/responses/EntityJsonSchemaResponseBodyResponse.d.ts +2 -0
  14. package/dist/idp-service/src/services/schemas/EntityJsonSchemaResponse.d.ts +6 -0
  15. package/dist/idp-service/src/services/schemas/Group.d.ts +4 -0
  16. package/package.json +1 -1
  17. package/dist/idp-service/src/services/hooks/useGetGroupsYamlQuery.d.ts +0 -16
  18. package/dist/idp-service/src/services/hooks/useGetGroupsYamlQuery.js +0 -14
  19. package/dist/idp-service/src/services/responses/GroupsYamlResponseResponse.d.ts +0 -2
  20. package/dist/idp-service/src/services/schemas/GroupsYamlResponse.d.ts +0 -3
  21. /package/dist/idp-service/src/services/responses/{GroupsYamlResponseResponse.js → EntityJsonSchemaResponseBodyResponse.js} +0 -0
  22. /package/dist/idp-service/src/services/schemas/{GroupsYamlResponse.js → EntityJsonSchemaResponse.js} +0 -0
@@ -4,12 +4,17 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
4
4
  export interface DeleteGroupMutationPathParams {
5
5
  'group-identifier': string;
6
6
  }
7
+ export interface DeleteGroupMutationQueryParams {
8
+ projectIdentifier?: string;
9
+ orgIdentifier?: string;
10
+ }
7
11
  export interface DeleteGroupMutationHeaderParams {
8
12
  'Harness-Account'?: string;
9
13
  }
10
14
  export type DeleteGroupOkResponse = ResponseWithPagination<unknown>;
11
15
  export type DeleteGroupErrorResponse = unknown;
12
- export interface DeleteGroupProps extends DeleteGroupMutationPathParams, Omit<FetcherOptions<unknown, unknown, DeleteGroupMutationHeaderParams>, 'url'> {
16
+ export interface DeleteGroupProps extends DeleteGroupMutationPathParams, Omit<FetcherOptions<DeleteGroupMutationQueryParams, unknown, DeleteGroupMutationHeaderParams>, 'url'> {
17
+ queryParams: DeleteGroupMutationQueryParams;
13
18
  }
14
19
  export declare function deleteGroup(props: DeleteGroupProps): Promise<DeleteGroupOkResponse>;
15
20
  /**
@@ -2,12 +2,17 @@ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { GroupResponseListResponse } from '../responses/GroupResponseListResponse';
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetAllGroupsForAccountQueryQueryParams {
6
+ projectIdentifier?: string;
7
+ orgIdentifier?: string;
8
+ }
5
9
  export interface GetAllGroupsForAccountQueryHeaderParams {
6
10
  'Harness-Account'?: string;
7
11
  }
8
12
  export type GetAllGroupsForAccountOkResponse = ResponseWithPagination<GroupResponseListResponse>;
9
13
  export type GetAllGroupsForAccountErrorResponse = unknown;
10
- export interface GetAllGroupsForAccountProps extends Omit<FetcherOptions<unknown, unknown, GetAllGroupsForAccountQueryHeaderParams>, 'url'> {
14
+ export interface GetAllGroupsForAccountProps extends Omit<FetcherOptions<GetAllGroupsForAccountQueryQueryParams, unknown, GetAllGroupsForAccountQueryHeaderParams>, 'url'> {
15
+ queryParams: GetAllGroupsForAccountQueryQueryParams;
11
16
  }
12
17
  export declare function getAllGroupsForAccount(props: GetAllGroupsForAccountProps): Promise<GetAllGroupsForAccountOkResponse>;
13
18
  /**
@@ -10,5 +10,5 @@ export function getAllGroupsForAccount(props) {
10
10
  * Get all groups for account
11
11
  */
12
12
  export function useGetAllGroupsForAccountQuery(props, options) {
13
- return useQuery(['get-all-groups-for-account'], ({ signal }) => getAllGroupsForAccount(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['get-all-groups-for-account', props.queryParams], ({ signal }) => getAllGroupsForAccount(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -5,12 +5,17 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetGroupDetailsQueryPathParams {
6
6
  'group-identifier': string;
7
7
  }
8
+ export interface GetGroupDetailsQueryQueryParams {
9
+ projectIdentifier?: string;
10
+ orgIdentifier?: string;
11
+ }
8
12
  export interface GetGroupDetailsQueryHeaderParams {
9
13
  'Harness-Account'?: string;
10
14
  }
11
15
  export type GetGroupDetailsOkResponse = ResponseWithPagination<GroupResponseResponse>;
12
16
  export type GetGroupDetailsErrorResponse = unknown;
13
- export interface GetGroupDetailsProps extends GetGroupDetailsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetGroupDetailsQueryHeaderParams>, 'url'> {
17
+ export interface GetGroupDetailsProps extends GetGroupDetailsQueryPathParams, Omit<FetcherOptions<GetGroupDetailsQueryQueryParams, unknown, GetGroupDetailsQueryHeaderParams>, 'url'> {
18
+ queryParams: GetGroupDetailsQueryQueryParams;
14
19
  }
15
20
  export declare function getGroupDetails(props: GetGroupDetailsProps): Promise<GetGroupDetailsOkResponse>;
16
21
  /**
@@ -10,5 +10,5 @@ export function getGroupDetails(props) {
10
10
  * Get Group Details
11
11
  */
12
12
  export function useGetGroupDetailsQuery(props, options) {
13
- return useQuery(['get-group-details', props['group-identifier']], ({ signal }) => getGroupDetails(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['get-group-details', props['group-identifier'], props.queryParams], ({ signal }) => getGroupDetails(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { EntityJsonSchemaResponseBodyResponse } from '../responses/EntityJsonSchemaResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetJsonSchemaQueryQueryParams {
6
+ kind?: string;
7
+ }
8
+ export type GetJsonSchemaOkResponse = ResponseWithPagination<EntityJsonSchemaResponseBodyResponse>;
9
+ export type GetJsonSchemaErrorResponse = unknown;
10
+ export interface GetJsonSchemaProps extends Omit<FetcherOptions<GetJsonSchemaQueryQueryParams, unknown>, 'url'> {
11
+ queryParams: GetJsonSchemaQueryQueryParams;
12
+ }
13
+ export declare function getJsonSchema(props: GetJsonSchemaProps): Promise<GetJsonSchemaOkResponse>;
14
+ /**
15
+ * Get Entities Json Schema.
16
+ */
17
+ export declare function useGetJsonSchemaQuery(props: GetJsonSchemaProps, options?: Omit<UseQueryOptions<GetJsonSchemaOkResponse, GetJsonSchemaErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetJsonSchemaOkResponse, 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 '../../../../fetcher/index.js';
6
+ export function getJsonSchema(props) {
7
+ return fetcher(Object.assign({ url: `/v1/entities/json-schema`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Entities Json Schema.
11
+ */
12
+ export function useGetJsonSchemaQuery(props, options) {
13
+ return useQuery(['get-json-schema', props.queryParams], ({ signal }) => getJsonSchema(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -5,6 +5,8 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetWorkflowsForAccountQueryQueryParams {
6
6
  page?: number;
7
7
  limit?: number;
8
+ projectIdentifier?: string;
9
+ orgIdentifier?: string;
8
10
  }
9
11
  export interface GetWorkflowsForAccountQueryHeaderParams {
10
12
  'Harness-Account'?: string;
@@ -3,13 +3,18 @@ import type { GroupResponseResponse } from '../responses/GroupResponseResponse';
3
3
  import type { GroupRequestRequestBody } from '../requestBodies/GroupRequestRequestBody';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface SaveGroupMutationQueryParams {
7
+ projectIdentifier?: string;
8
+ orgIdentifier?: string;
9
+ }
6
10
  export interface SaveGroupMutationHeaderParams {
7
11
  'Harness-Account'?: string;
8
12
  }
9
13
  export type SaveGroupRequestBody = GroupRequestRequestBody;
10
14
  export type SaveGroupOkResponse = ResponseWithPagination<GroupResponseResponse>;
11
15
  export type SaveGroupErrorResponse = unknown;
12
- export interface SaveGroupProps extends Omit<FetcherOptions<unknown, SaveGroupRequestBody, SaveGroupMutationHeaderParams>, 'url'> {
16
+ export interface SaveGroupProps extends Omit<FetcherOptions<SaveGroupMutationQueryParams, SaveGroupRequestBody, SaveGroupMutationHeaderParams>, 'url'> {
17
+ queryParams: SaveGroupMutationQueryParams;
13
18
  body: SaveGroupRequestBody;
14
19
  }
15
20
  export declare function saveGroup(props: SaveGroupProps): Promise<SaveGroupOkResponse>;
@@ -3,13 +3,18 @@ import type { GroupResponseListResponse } from '../responses/GroupResponseListRe
3
3
  import type { GroupRequestListRequestBody } from '../requestBodies/GroupRequestListRequestBody';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateGroupsMutationQueryParams {
7
+ projectIdentifier?: string;
8
+ orgIdentifier?: string;
9
+ }
6
10
  export interface UpdateGroupsMutationHeaderParams {
7
11
  'Harness-Account'?: string;
8
12
  }
9
13
  export type UpdateGroupsRequestBody = GroupRequestListRequestBody;
10
14
  export type UpdateGroupsOkResponse = ResponseWithPagination<GroupResponseListResponse>;
11
15
  export type UpdateGroupsErrorResponse = unknown;
12
- export interface UpdateGroupsProps extends Omit<FetcherOptions<unknown, UpdateGroupsRequestBody, UpdateGroupsMutationHeaderParams>, 'url'> {
16
+ export interface UpdateGroupsProps extends Omit<FetcherOptions<UpdateGroupsMutationQueryParams, UpdateGroupsRequestBody, UpdateGroupsMutationHeaderParams>, 'url'> {
17
+ queryParams: UpdateGroupsMutationQueryParams;
13
18
  body: UpdateGroupsRequestBody;
14
19
  }
15
20
  export declare function updateGroups(props: UpdateGroupsProps): Promise<UpdateGroupsOkResponse>;
@@ -31,7 +31,7 @@ export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutatio
31
31
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
32
32
  export type { DeleteEntityErrorResponse, DeleteEntityMutationPathParams, DeleteEntityMutationQueryParams, DeleteEntityOkResponse, DeleteEntityProps, } from './hooks/useDeleteEntityMutation';
33
33
  export { deleteEntity, useDeleteEntityMutation } from './hooks/useDeleteEntityMutation';
34
- export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
34
+ export type { DeleteGroupErrorResponse, DeleteGroupMutationPathParams, DeleteGroupMutationQueryParams, DeleteGroupOkResponse, DeleteGroupProps, } from './hooks/useDeleteGroupMutation';
35
35
  export { deleteGroup, useDeleteGroupMutation } from './hooks/useDeleteGroupMutation';
36
36
  export type { DeleteHeadersQuickLinksIconErrorResponse, DeleteHeadersQuickLinksIconMutationPathParams, DeleteHeadersQuickLinksIconOkResponse, DeleteHeadersQuickLinksIconProps, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
37
37
  export { deleteHeadersQuickLinksIcon, useDeleteHeadersQuickLinksIconMutation, } from './hooks/useDeleteHeadersQuickLinksIconMutation';
@@ -45,7 +45,7 @@ export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateY
45
45
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
46
46
  export type { GetAllDatasourcesForAccountErrorResponse, GetAllDatasourcesForAccountOkResponse, GetAllDatasourcesForAccountProps, } from './hooks/useGetAllDatasourcesForAccountQuery';
47
47
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
48
- export type { GetAllGroupsForAccountErrorResponse, GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountProps, } from './hooks/useGetAllGroupsForAccountQuery';
48
+ export type { GetAllGroupsForAccountErrorResponse, GetAllGroupsForAccountOkResponse, GetAllGroupsForAccountProps, GetAllGroupsForAccountQueryQueryParams, } from './hooks/useGetAllGroupsForAccountQuery';
49
49
  export { getAllGroupsForAccount, useGetAllGroupsForAccountQuery, } from './hooks/useGetAllGroupsForAccountQuery';
50
50
  export type { GetAllLayoutsErrorResponse, GetAllLayoutsOkResponse, GetAllLayoutsProps, } from './hooks/useGetAllLayoutsQuery';
51
51
  export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQuery';
@@ -89,10 +89,8 @@ export type { GetEntityErrorResponse, GetEntityOkResponse, GetEntityProps, GetEn
89
89
  export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
90
90
  export type { GetEntityRefsErrorResponse, GetEntityRefsOkResponse, GetEntityRefsProps, GetEntityRefsQueryQueryParams, } from './hooks/useGetEntityRefsQuery';
91
91
  export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
92
- export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, } from './hooks/useGetGroupDetailsQuery';
92
+ export type { GetGroupDetailsErrorResponse, GetGroupDetailsOkResponse, GetGroupDetailsProps, GetGroupDetailsQueryPathParams, GetGroupDetailsQueryQueryParams, } from './hooks/useGetGroupDetailsQuery';
93
93
  export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
94
- export type { GetGroupsYamlErrorResponse, GetGroupsYamlOkResponse, GetGroupsYamlProps, } from './hooks/useGetGroupsYamlQuery';
95
- export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
96
94
  export type { GetHarnessEntitiesCountErrorResponse, GetHarnessEntitiesCountOkResponse, GetHarnessEntitiesCountProps, } from './hooks/useGetHarnessEntitiesCountQuery';
97
95
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
98
96
  export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, GetHarnessEntitiesProps, GetHarnessEntitiesQueryQueryParams, } from './hooks/useGetHarnessEntitiesQuery';
@@ -103,6 +101,8 @@ export type { GetIntegrationErrorResponse, GetIntegrationOkResponse, GetIntegrat
103
101
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
104
102
  export type { GetIntegrationsErrorResponse, GetIntegrationsOkResponse, GetIntegrationsProps, GetIntegrationsQueryPathParams, GetIntegrationsQueryQueryParams, } from './hooks/useGetIntegrationsQuery';
105
103
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
104
+ export type { GetJsonSchemaErrorResponse, GetJsonSchemaOkResponse, GetJsonSchemaProps, GetJsonSchemaQueryQueryParams, } from './hooks/useGetJsonSchemaQuery';
105
+ export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
106
106
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
107
107
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
108
108
  export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkResponse, GetMergedPluginsConfigProps, } from './hooks/useGetMergedPluginsConfigQuery';
@@ -147,7 +147,7 @@ export type { SaveConnectorInfoErrorResponse, SaveConnectorInfoOkResponse, SaveC
147
147
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
148
148
  export type { SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoOkResponse, SaveCustomPluginsInfoProps, SaveCustomPluginsInfoRequestBody, } from './hooks/useSaveCustomPluginsInfoMutation';
149
149
  export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
150
- export type { SaveGroupErrorResponse, SaveGroupOkResponse, SaveGroupProps, SaveGroupRequestBody, } from './hooks/useSaveGroupMutation';
150
+ export type { SaveGroupErrorResponse, SaveGroupMutationQueryParams, SaveGroupOkResponse, SaveGroupProps, SaveGroupRequestBody, } from './hooks/useSaveGroupMutation';
151
151
  export { saveGroup, useSaveGroupMutation } from './hooks/useSaveGroupMutation';
152
152
  export type { SaveHomePageLayoutInfoErrorResponse, SaveHomePageLayoutInfoOkResponse, SaveHomePageLayoutInfoProps, SaveHomePageLayoutInfoRequestBody, } from './hooks/useSaveHomePageLayoutInfoMutation';
153
153
  export { saveHomePageLayoutInfo, useSaveHomePageLayoutInfoMutation, } from './hooks/useSaveHomePageLayoutInfoMutation';
@@ -167,7 +167,7 @@ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutat
167
167
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
168
168
  export type { UpdateEntityErrorResponse, UpdateEntityMutationPathParams, UpdateEntityMutationQueryParams, UpdateEntityOkResponse, UpdateEntityProps, UpdateEntityRequestBody, } from './hooks/useUpdateEntityMutation';
169
169
  export { updateEntity, useUpdateEntityMutation } from './hooks/useUpdateEntityMutation';
170
- export type { UpdateGroupsErrorResponse, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
170
+ export type { UpdateGroupsErrorResponse, UpdateGroupsMutationQueryParams, UpdateGroupsOkResponse, UpdateGroupsProps, UpdateGroupsRequestBody, } from './hooks/useUpdateGroupsMutation';
171
171
  export { updateGroups, useUpdateGroupsMutation } from './hooks/useUpdateGroupsMutation';
172
172
  export type { UpdateIntegrationErrorResponse, UpdateIntegrationMutationPathParams, UpdateIntegrationMutationQueryParams, UpdateIntegrationOkResponse, UpdateIntegrationProps, UpdateIntegrationRequestBody, } from './hooks/useUpdateIntegrationMutation';
173
173
  export { updateIntegration, useUpdateIntegrationMutation, } from './hooks/useUpdateIntegrationMutation';
@@ -217,6 +217,7 @@ export type { DefaultSaveResponseResponse } from './responses/DefaultSaveRespons
217
217
  export type { EntitiesGroupsResponseBodyResponse } from './responses/EntitiesGroupsResponseBodyResponse';
218
218
  export type { EntityConvertResponseBodyResponse } from './responses/EntityConvertResponseBodyResponse';
219
219
  export type { EntityFiltersResponseBodyListResponse } from './responses/EntityFiltersResponseBodyListResponse';
220
+ export type { EntityJsonSchemaResponseBodyResponse } from './responses/EntityJsonSchemaResponseBodyResponse';
220
221
  export type { EntityKindsResponseBodyResponse } from './responses/EntityKindsResponseBodyResponse';
221
222
  export type { EntityRefsResponseResponse } from './responses/EntityRefsResponseResponse';
222
223
  export type { EntityResponseBodyListResponse } from './responses/EntityResponseBodyListResponse';
@@ -224,7 +225,6 @@ export type { EntityResponseBodyResponse } from './responses/EntityResponseBodyR
224
225
  export type { GenerateYamlResponseResponse } from './responses/GenerateYamlResponseResponse';
225
226
  export type { GroupResponseListResponse } from './responses/GroupResponseListResponse';
226
227
  export type { GroupResponseResponse } from './responses/GroupResponseResponse';
227
- export type { GroupsYamlResponseResponse } from './responses/GroupsYamlResponseResponse';
228
228
  export type { HarnessEntitiesCountResponseResponse } from './responses/HarnessEntitiesCountResponseResponse';
229
229
  export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
230
230
  export type { HomePageLayoutResponseResponse } from './responses/HomePageLayoutResponseResponse';
@@ -304,6 +304,7 @@ export type { EntitiesGroups } from './schemas/EntitiesGroups';
304
304
  export type { EntitiesGroupsResponse } from './schemas/EntitiesGroupsResponse';
305
305
  export type { EntityConvertResponse } from './schemas/EntityConvertResponse';
306
306
  export type { EntityFiltersResponse } from './schemas/EntityFiltersResponse';
307
+ export type { EntityJsonSchemaResponse } from './schemas/EntityJsonSchemaResponse';
307
308
  export type { EntityKindsResponse } from './schemas/EntityKindsResponse';
308
309
  export type { EntityRefs } from './schemas/EntityRefs';
309
310
  export type { EntityRequest } from './schemas/EntityRequest';
@@ -316,7 +317,6 @@ export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
316
317
  export type { Group } from './schemas/Group';
317
318
  export type { GroupRequest } from './schemas/GroupRequest';
318
319
  export type { GroupResponse } from './schemas/GroupResponse';
319
- export type { GroupsYamlResponse } from './schemas/GroupsYamlResponse';
320
320
  export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
321
321
  export type { HarnessEntitiesCountResponse } from './schemas/HarnessEntitiesCountResponse';
322
322
  export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
@@ -44,12 +44,12 @@ export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFa
44
44
  export { getEntity, useGetEntityQuery } from './hooks/useGetEntityQuery';
45
45
  export { getEntityRefs, useGetEntityRefsQuery } from './hooks/useGetEntityRefsQuery';
46
46
  export { getGroupDetails, useGetGroupDetailsQuery } from './hooks/useGetGroupDetailsQuery';
47
- export { getGroupsYaml, useGetGroupsYamlQuery } from './hooks/useGetGroupsYamlQuery';
48
47
  export { getHarnessEntitiesCount, useGetHarnessEntitiesCountQuery, } from './hooks/useGetHarnessEntitiesCountQuery';
49
48
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
50
49
  export { getHomePageLayoutInfo, useGetHomePageLayoutInfoQuery, } from './hooks/useGetHomePageLayoutInfoQuery';
51
50
  export { getIntegration, useGetIntegrationQuery } from './hooks/useGetIntegrationQuery';
52
51
  export { getIntegrations, useGetIntegrationsQuery } from './hooks/useGetIntegrationsQuery';
52
+ export { getJsonSchema, useGetJsonSchemaQuery } from './hooks/useGetJsonSchemaQuery';
53
53
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
54
54
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
55
55
  export { getOnboardingStatus, useGetOnboardingStatusQuery, } from './hooks/useGetOnboardingStatusQuery';
@@ -0,0 +1,2 @@
1
+ import type { EntityJsonSchemaResponse } from '../schemas/EntityJsonSchemaResponse';
2
+ export type EntityJsonSchemaResponseBodyResponse = EntityJsonSchemaResponse;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Entity Json Schema response body
3
+ */
4
+ export interface EntityJsonSchemaResponse {
5
+ [key: string]: any;
6
+ }
@@ -5,5 +5,9 @@ export interface Group {
5
5
  identifier: string;
6
6
  name: string;
7
7
  order?: number;
8
+ orgIdentifier?: string;
9
+ orgName?: string;
10
+ projectIdentifier?: string;
11
+ projectName?: string;
8
12
  workflows?: WorkflowsInfo[];
9
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.62.0",
3
+ "version": "0.64.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,16 +0,0 @@
1
- import { UseQueryOptions } from '@tanstack/react-query';
2
- import type { GroupsYamlResponseResponse } from '../responses/GroupsYamlResponseResponse';
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<GroupsYamlResponseResponse>;
9
- export type GetGroupsYamlErrorResponse = unknown;
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, unknown>;
@@ -1,14 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- import type { GroupsYamlResponse } from '../schemas/GroupsYamlResponse';
2
- export type GroupsYamlResponseResponse = GroupsYamlResponse;
@@ -1,3 +0,0 @@
1
- export interface GroupsYamlResponse {
2
- yaml?: string;
3
- }