@harnessio/react-ng-manager-swagger-service-client 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,39 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageUserGroupAggregateDto } from '../schemas/ResponsePageUserGroupAggregateDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { UserGroupFilterDtoRequestBody } from '../requestBodies/UserGroupFilterDtoRequestBody';
6
+ import type { ResponseWithPagination } from '../helpers';
7
+ import { FetcherOptions } from '../../../../fetcher/index.js';
8
+ export interface GetFilteredUserGroupAggregateListMutationQueryParams {
9
+ accountIdentifier: string;
10
+ /**
11
+ * @format int32
12
+ * @default 0
13
+ */
14
+ pageIndex?: number;
15
+ /**
16
+ * @format int32
17
+ * @default 50
18
+ */
19
+ pageSize?: number;
20
+ sortOrders?: string[];
21
+ pageToken?: string;
22
+ /**
23
+ * @format int32
24
+ * @default 6
25
+ */
26
+ userSize?: number;
27
+ }
28
+ export type GetFilteredUserGroupAggregateListRequestBody = UserGroupFilterDtoRequestBody;
29
+ export type GetFilteredUserGroupAggregateListOkResponse = ResponseWithPagination<ResponsePageUserGroupAggregateDto>;
30
+ export type GetFilteredUserGroupAggregateListErrorResponse = Failure | Error;
31
+ export interface GetFilteredUserGroupAggregateListProps extends Omit<FetcherOptions<GetFilteredUserGroupAggregateListMutationQueryParams, GetFilteredUserGroupAggregateListRequestBody>, 'url'> {
32
+ queryParams: GetFilteredUserGroupAggregateListMutationQueryParams;
33
+ body: GetFilteredUserGroupAggregateListRequestBody;
34
+ }
35
+ export declare function getFilteredUserGroupAggregateList(props: GetFilteredUserGroupAggregateListProps): Promise<GetFilteredUserGroupAggregateListOkResponse>;
36
+ /**
37
+ *
38
+ */
39
+ export declare function useGetFilteredUserGroupAggregateListMutation(options?: Omit<UseMutationOptions<GetFilteredUserGroupAggregateListOkResponse, GetFilteredUserGroupAggregateListErrorResponse, GetFilteredUserGroupAggregateListProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetFilteredUserGroupAggregateListOkResponse, GetFilteredUserGroupAggregateListErrorResponse, GetFilteredUserGroupAggregateListProps, 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 getFilteredUserGroupAggregateList(props) {
7
+ return fetcher(Object.assign({ url: `/aggregate/acl/usergroups`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetFilteredUserGroupAggregateListMutation(options) {
13
+ return useMutation((mutateProps) => getFilteredUserGroupAggregateList(mutateProps), options);
14
+ }
@@ -0,0 +1,43 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponsePageUserGroupAggregateDto } from '../schemas/ResponsePageUserGroupAggregateDto';
3
+ import type { Failure } from '../schemas/Failure';
4
+ import type { Error } from '../schemas/Error';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface GetUserGroupAggregateListQueryQueryParams {
8
+ accountIdentifier: string;
9
+ orgIdentifier?: string;
10
+ projectIdentifier?: string;
11
+ /**
12
+ * @format int32
13
+ * @default 0
14
+ */
15
+ pageIndex?: number;
16
+ /**
17
+ * @format int32
18
+ * @default 50
19
+ */
20
+ pageSize?: number;
21
+ sortOrders?: string[];
22
+ pageToken?: string;
23
+ searchTerm?: string;
24
+ /**
25
+ * @default "EXCLUDE_INHERITED_GROUPS"
26
+ */
27
+ filterType?: 'EXCLUDE_INHERITED_GROUPS' | 'INCLUDE_CHILD_SCOPE_GROUPS' | 'INCLUDE_INHERITED_GROUPS' | 'INCLUDE_PARENT_SCOPE_GROUPS';
28
+ /**
29
+ * @format int32
30
+ * @default 6
31
+ */
32
+ userSize?: number;
33
+ }
34
+ export type GetUserGroupAggregateListOkResponse = ResponseWithPagination<ResponsePageUserGroupAggregateDto>;
35
+ export type GetUserGroupAggregateListErrorResponse = Failure | Error;
36
+ export interface GetUserGroupAggregateListProps extends Omit<FetcherOptions<GetUserGroupAggregateListQueryQueryParams, unknown>, 'url'> {
37
+ queryParams: GetUserGroupAggregateListQueryQueryParams;
38
+ }
39
+ export declare function getUserGroupAggregateList(props: GetUserGroupAggregateListProps): Promise<GetUserGroupAggregateListOkResponse>;
40
+ /**
41
+ *
42
+ */
43
+ export declare function useGetUserGroupAggregateListQuery(props: GetUserGroupAggregateListProps, options?: Omit<UseQueryOptions<GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListErrorResponse>;
@@ -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 getUserGroupAggregateList(props) {
7
+ return fetcher(Object.assign({ url: `/aggregate/acl/usergroups`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetUserGroupAggregateListQuery(props, options) {
13
+ return useQuery(['getUserGroupAggregateList', props.queryParams], ({ signal }) => getUserGroupAggregateList(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -57,6 +57,8 @@ export type { GetEnvironmentListV2ErrorResponse, GetEnvironmentListV2MutationQue
57
57
  export { getEnvironmentListV2, useGetEnvironmentListV2Mutation, } from './hooks/useGetEnvironmentListV2Mutation';
58
58
  export type { GetFilePathsForS3ErrorResponse, GetFilePathsForS3OkResponse, GetFilePathsForS3Props, GetFilePathsForS3QueryQueryParams, } from './hooks/useGetFilePathsForS3Query';
59
59
  export { getFilePathsForS3, useGetFilePathsForS3Query } from './hooks/useGetFilePathsForS3Query';
60
+ export type { GetFilteredUserGroupAggregateListErrorResponse, GetFilteredUserGroupAggregateListMutationQueryParams, GetFilteredUserGroupAggregateListOkResponse, GetFilteredUserGroupAggregateListProps, GetFilteredUserGroupAggregateListRequestBody, } from './hooks/useGetFilteredUserGroupAggregateListMutation';
61
+ export { getFilteredUserGroupAggregateList, useGetFilteredUserGroupAggregateListMutation, } from './hooks/useGetFilteredUserGroupAggregateListMutation';
60
62
  export type { GetGcsBucketListErrorResponse, GetGcsBucketListOkResponse, GetGcsBucketListProps, GetGcsBucketListQueryQueryParams, } from './hooks/useGetGcsBucketListQuery';
61
63
  export { getGcsBucketList, useGetGcsBucketListQuery } from './hooks/useGetGcsBucketListQuery';
62
64
  export type { GetGcsBucketsErrorResponse, GetGcsBucketsMutationQueryParams, GetGcsBucketsOkResponse, GetGcsBucketsProps, GetGcsBucketsRequestBody, } from './hooks/useGetGcsBucketsMutation';
@@ -129,6 +131,8 @@ export type { GetSubscriptionTagsErrorResponse, GetSubscriptionTagsOkResponse, G
129
131
  export { getSubscriptionTags, useGetSubscriptionTagsQuery, } from './hooks/useGetSubscriptionTagsQuery';
130
132
  export type { GetUserGroupAggregateListByUserErrorResponse, GetUserGroupAggregateListByUserMutationPathParams, GetUserGroupAggregateListByUserMutationQueryParams, GetUserGroupAggregateListByUserOkResponse, GetUserGroupAggregateListByUserProps, GetUserGroupAggregateListByUserRequestBody, } from './hooks/useGetUserGroupAggregateListByUserMutation';
131
133
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
134
+ export type { GetUserGroupAggregateListErrorResponse, GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListProps, GetUserGroupAggregateListQueryQueryParams, } from './hooks/useGetUserGroupAggregateListQuery';
135
+ export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
132
136
  export type { GetV2BucketListForS3ErrorResponse, GetV2BucketListForS3OkResponse, GetV2BucketListForS3Props, GetV2BucketListForS3QueryQueryParams, } from './hooks/useGetV2BucketListForS3Query';
133
137
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
134
138
  export type { GetVersionsFromPackagesErrorResponse, GetVersionsFromPackagesOkResponse, GetVersionsFromPackagesProps, GetVersionsFromPackagesQueryQueryParams, } from './hooks/useGetVersionsFromPackagesQuery';
@@ -167,6 +171,7 @@ export type { ListTagsForAmiArtifactBodyRequestBody } from './requestBodies/List
167
171
  export type { OrganizationRequestRequestBody } from './requestBodies/OrganizationRequestRequestBody';
168
172
  export type { ProjectRequestRequestBody } from './requestBodies/ProjectRequestRequestBody';
169
173
  export type { ServiceRequestDtoRequestBody } from './requestBodies/ServiceRequestDtoRequestBody';
174
+ export type { UserGroupFilterDtoRequestBody } from './requestBodies/UserGroupFilterDtoRequestBody';
170
175
  export type { AccessControlCheckError } from './schemas/AccessControlCheckError';
171
176
  export type { AcrBuildDetailsDto } from './schemas/AcrBuildDetailsDto';
172
177
  export type { AcrRegistriesDto } from './schemas/AcrRegistriesDto';
@@ -352,5 +357,6 @@ export type { Throwable } from './schemas/Throwable';
352
357
  export type { UserGroupAggregateDto } from './schemas/UserGroupAggregateDto';
353
358
  export type { UserGroupAggregateFilter } from './schemas/UserGroupAggregateFilter';
354
359
  export type { UserGroupDto } from './schemas/UserGroupDto';
360
+ export type { UserGroupFilterDto } from './schemas/UserGroupFilterDto';
355
361
  export type { UserMetadataDto } from './schemas/UserMetadataDto';
356
362
  export type { ValidationError } from './schemas/ValidationError';
@@ -27,6 +27,7 @@ export { getClusterNamesForGcp, useGetClusterNamesForGcpQuery, } from './hooks/u
27
27
  export { getEksClusterNames, useGetEksClusterNamesQuery } from './hooks/useGetEksClusterNamesQuery';
28
28
  export { getEnvironmentListV2, useGetEnvironmentListV2Mutation, } from './hooks/useGetEnvironmentListV2Mutation';
29
29
  export { getFilePathsForS3, useGetFilePathsForS3Query } from './hooks/useGetFilePathsForS3Query';
30
+ export { getFilteredUserGroupAggregateList, useGetFilteredUserGroupAggregateListMutation, } from './hooks/useGetFilteredUserGroupAggregateListMutation';
30
31
  export { getGcsBucketList, useGetGcsBucketListQuery } from './hooks/useGetGcsBucketListQuery';
31
32
  export { getGcsBuckets, useGetGcsBucketsMutation } from './hooks/useGetGcsBucketsMutation';
32
33
  export { getGroupIds, useGetGroupIdsMutation } from './hooks/useGetGroupIdsMutation';
@@ -63,6 +64,7 @@ export { getServicesList, useGetServicesListQuery } from './hooks/useGetServices
63
64
  export { getServicesYamlAndRuntimeInputsV2, useGetServicesYamlAndRuntimeInputsV2Mutation, } from './hooks/useGetServicesYamlAndRuntimeInputsV2Mutation';
64
65
  export { getSubscriptionTags, useGetSubscriptionTagsQuery, } from './hooks/useGetSubscriptionTagsQuery';
65
66
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
67
+ export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
66
68
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
67
69
  export { getVersionsFromPackages, useGetVersionsFromPackagesQuery, } from './hooks/useGetVersionsFromPackagesQuery';
68
70
  export { helmCmdFlags, useHelmCmdFlagsQuery } from './hooks/useHelmCmdFlagsQuery';
@@ -0,0 +1,2 @@
1
+ import type { UserGroupFilterDto } from '../schemas/UserGroupFilterDto';
2
+ export type UserGroupFilterDtoRequestBody = UserGroupFilterDto;
@@ -0,0 +1,10 @@
1
+ export interface UserGroupFilterDto {
2
+ accountIdentifier?: string;
3
+ databaseIdFilter?: string[];
4
+ filterType?: 'EXCLUDE_INHERITED_GROUPS' | 'INCLUDE_CHILD_SCOPE_GROUPS' | 'INCLUDE_INHERITED_GROUPS' | 'INCLUDE_PARENT_SCOPE_GROUPS';
5
+ identifierFilter?: string[];
6
+ orgIdentifier?: string;
7
+ projectIdentifier?: string;
8
+ searchTerm?: string;
9
+ userIdentifierFilter?: string[];
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",