@harnessio/react-ng-manager-swagger-service-client 1.17.0 → 1.18.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,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseListBuildDetails } from '../schemas/ResponseListBuildDetails';
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 GetBuildsForJenkinsQueryPathParams {
8
+ jobName: string;
9
+ }
10
+ export interface GetBuildsForJenkinsQueryQueryParams {
11
+ connectorRef?: string;
12
+ accountIdentifier: string;
13
+ orgIdentifier?: string;
14
+ projectIdentifier?: string;
15
+ artifactPath?: string;
16
+ branch?: string;
17
+ repoIdentifier?: string;
18
+ getDefaultFromOtherRepo?: boolean;
19
+ parentEntityConnectorRef?: string;
20
+ parentEntityRepoName?: string;
21
+ parentEntityAccountIdentifier?: string;
22
+ parentEntityOrgIdentifier?: string;
23
+ parentEntityProjectIdentifier?: string;
24
+ repoName?: string;
25
+ }
26
+ export type GetBuildsForJenkinsOkResponse = ResponseWithPagination<ResponseListBuildDetails>;
27
+ export type GetBuildsForJenkinsErrorResponse = Failure | Error;
28
+ export interface GetBuildsForJenkinsProps extends GetBuildsForJenkinsQueryPathParams, Omit<FetcherOptions<GetBuildsForJenkinsQueryQueryParams, unknown>, 'url'> {
29
+ queryParams: GetBuildsForJenkinsQueryQueryParams;
30
+ }
31
+ export declare function getBuildsForJenkins(props: GetBuildsForJenkinsProps): Promise<GetBuildsForJenkinsOkResponse>;
32
+ /**
33
+ *
34
+ */
35
+ export declare function useGetBuildsForJenkinsQuery(props: GetBuildsForJenkinsProps, options?: Omit<UseQueryOptions<GetBuildsForJenkinsOkResponse, GetBuildsForJenkinsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBuildsForJenkinsOkResponse, GetBuildsForJenkinsErrorResponse>;
@@ -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 getBuildsForJenkins(props) {
7
+ return fetcher(Object.assign({ url: `/artifacts/jenkins/job/${props.jobName}/builds`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetBuildsForJenkinsQuery(props, options) {
13
+ return useQuery(['getBuilds For Jenkins', props.jobName, props.queryParams], ({ signal }) => getBuildsForJenkins(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,26 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ResponseUserGroupAggregateDto } from '../schemas/ResponseUserGroupAggregateDto';
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 GetUserGroupAggregateQueryPathParams {
8
+ identifier: string;
9
+ }
10
+ export interface GetUserGroupAggregateQueryQueryParams {
11
+ accountIdentifier: string;
12
+ orgIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ roleAssignmentScopeOrgIdentifier?: string;
15
+ roleAssignmentScopeProjectIdentifier?: string;
16
+ }
17
+ export type GetUserGroupAggregateOkResponse = ResponseWithPagination<ResponseUserGroupAggregateDto>;
18
+ export type GetUserGroupAggregateErrorResponse = Failure | Error;
19
+ export interface GetUserGroupAggregateProps extends GetUserGroupAggregateQueryPathParams, Omit<FetcherOptions<GetUserGroupAggregateQueryQueryParams, unknown>, 'url'> {
20
+ queryParams: GetUserGroupAggregateQueryQueryParams;
21
+ }
22
+ export declare function getUserGroupAggregate(props: GetUserGroupAggregateProps): Promise<GetUserGroupAggregateOkResponse>;
23
+ /**
24
+ *
25
+ */
26
+ export declare function useGetUserGroupAggregateQuery(props: GetUserGroupAggregateProps, options?: Omit<UseQueryOptions<GetUserGroupAggregateOkResponse, GetUserGroupAggregateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetUserGroupAggregateOkResponse, GetUserGroupAggregateErrorResponse>;
@@ -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 getUserGroupAggregate(props) {
7
+ return fetcher(Object.assign({ url: `/aggregate/acl/usergroups/${props.identifier}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useGetUserGroupAggregateQuery(props, options) {
13
+ return useQuery(['getUserGroupAggregate', props.identifier, props.queryParams], ({ signal }) => getUserGroupAggregate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -61,6 +61,8 @@ export type { GetBuildDetailsForGoogleArtifactRegistryErrorResponse, GetBuildDet
61
61
  export { getBuildDetailsForGoogleArtifactRegistry, useGetBuildDetailsForGoogleArtifactRegistryQuery, } from './hooks/useGetBuildDetailsForGoogleArtifactRegistryQuery';
62
62
  export type { GetBuildDetailsForNexusArtifactErrorResponse, GetBuildDetailsForNexusArtifactOkResponse, GetBuildDetailsForNexusArtifactProps, GetBuildDetailsForNexusArtifactQueryQueryParams, } from './hooks/useGetBuildDetailsForNexusArtifactQuery';
63
63
  export { getBuildDetailsForNexusArtifact, useGetBuildDetailsForNexusArtifactQuery, } from './hooks/useGetBuildDetailsForNexusArtifactQuery';
64
+ export type { GetBuildsForJenkinsErrorResponse, GetBuildsForJenkinsOkResponse, GetBuildsForJenkinsProps, GetBuildsForJenkinsQueryPathParams, GetBuildsForJenkinsQueryQueryParams, } from './hooks/useGetBuildsForJenkinsQuery';
65
+ export { getBuildsForJenkins, useGetBuildsForJenkinsQuery, } from './hooks/useGetBuildsForJenkinsQuery';
64
66
  export type { GetClusterNamesForGcpErrorResponse, GetClusterNamesForGcpOkResponse, GetClusterNamesForGcpProps, GetClusterNamesForGcpQueryQueryParams, } from './hooks/useGetClusterNamesForGcpQuery';
65
67
  export { getClusterNamesForGcp, useGetClusterNamesForGcpQuery, } from './hooks/useGetClusterNamesForGcpQuery';
66
68
  export type { GetEksClusterNamesErrorResponse, GetEksClusterNamesOkResponse, GetEksClusterNamesProps, GetEksClusterNamesQueryQueryParams, } from './hooks/useGetEksClusterNamesQuery';
@@ -167,6 +169,8 @@ export type { GetUserGroupAggregateListByUserErrorResponse, GetUserGroupAggregat
167
169
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
168
170
  export type { GetUserGroupAggregateListErrorResponse, GetUserGroupAggregateListOkResponse, GetUserGroupAggregateListProps, GetUserGroupAggregateListQueryQueryParams, } from './hooks/useGetUserGroupAggregateListQuery';
169
171
  export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
172
+ export type { GetUserGroupAggregateErrorResponse, GetUserGroupAggregateOkResponse, GetUserGroupAggregateProps, GetUserGroupAggregateQueryPathParams, GetUserGroupAggregateQueryQueryParams, } from './hooks/useGetUserGroupAggregateQuery';
173
+ export { getUserGroupAggregate, useGetUserGroupAggregateQuery, } from './hooks/useGetUserGroupAggregateQuery';
170
174
  export type { GetV2BucketListForS3ErrorResponse, GetV2BucketListForS3OkResponse, GetV2BucketListForS3Props, GetV2BucketListForS3QueryQueryParams, } from './hooks/useGetV2BucketListForS3Query';
171
175
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
172
176
  export type { GetVariableErrorResponse, GetVariableOkResponse, GetVariableProps, GetVariableQueryPathParams, GetVariableQueryQueryParams, } from './hooks/useGetVariableQuery';
@@ -437,6 +441,7 @@ export type { ResponseSetHelmCommandFlagType } from './schemas/ResponseSetHelmCo
437
441
  export type { ResponseSetString } from './schemas/ResponseSetString';
438
442
  export type { ResponseString } from './schemas/ResponseString';
439
443
  export type { ResponseTokenDto } from './schemas/ResponseTokenDto';
444
+ export type { ResponseUserGroupAggregateDto } from './schemas/ResponseUserGroupAggregateDto';
440
445
  export type { ResponseUserGroupDto } from './schemas/ResponseUserGroupDto';
441
446
  export type { ResponseVariableResponseDto } from './schemas/ResponseVariableResponseDto';
442
447
  export type { RoleAssignmentMetadataDto } from './schemas/RoleAssignmentMetadataDto';
@@ -29,6 +29,7 @@ export { getBuildDetailsForDockerWithYaml, useGetBuildDetailsForDockerWithYamlMu
29
29
  export { getBuildDetailsForEcr, useGetBuildDetailsForEcrQuery, } from './hooks/useGetBuildDetailsForEcrQuery';
30
30
  export { getBuildDetailsForGoogleArtifactRegistry, useGetBuildDetailsForGoogleArtifactRegistryQuery, } from './hooks/useGetBuildDetailsForGoogleArtifactRegistryQuery';
31
31
  export { getBuildDetailsForNexusArtifact, useGetBuildDetailsForNexusArtifactQuery, } from './hooks/useGetBuildDetailsForNexusArtifactQuery';
32
+ export { getBuildsForJenkins, useGetBuildsForJenkinsQuery, } from './hooks/useGetBuildsForJenkinsQuery';
32
33
  export { getClusterNamesForGcp, useGetClusterNamesForGcpQuery, } from './hooks/useGetClusterNamesForGcpQuery';
33
34
  export { getEksClusterNames, useGetEksClusterNamesQuery } from './hooks/useGetEksClusterNamesQuery';
34
35
  export { getEnvironmentListV2, useGetEnvironmentListV2Mutation, } from './hooks/useGetEnvironmentListV2Mutation';
@@ -82,6 +83,7 @@ export { getSubscriptionTags, useGetSubscriptionTagsQuery, } from './hooks/useGe
82
83
  export { getToken, useGetTokenQuery } from './hooks/useGetTokenQuery';
83
84
  export { getUserGroupAggregateListByUser, useGetUserGroupAggregateListByUserMutation, } from './hooks/useGetUserGroupAggregateListByUserMutation';
84
85
  export { getUserGroupAggregateList, useGetUserGroupAggregateListQuery, } from './hooks/useGetUserGroupAggregateListQuery';
86
+ export { getUserGroupAggregate, useGetUserGroupAggregateQuery, } from './hooks/useGetUserGroupAggregateQuery';
85
87
  export { getV2BucketListForS3, useGetV2BucketListForS3Query, } from './hooks/useGetV2BucketListForS3Query';
86
88
  export { getVariable, useGetVariableQuery } from './hooks/useGetVariableQuery';
87
89
  export { getVariablesList, useGetVariablesListQuery } from './hooks/useGetVariablesListQuery';
@@ -0,0 +1,9 @@
1
+ import type { UserGroupAggregateDto } from '../schemas/UserGroupAggregateDto';
2
+ export interface ResponseUserGroupAggregateDto {
3
+ correlationId?: string;
4
+ data?: UserGroupAggregateDto;
5
+ metaData?: {
6
+ [key: string]: any;
7
+ };
8
+ status?: 'ERROR' | 'FAILURE' | 'SUCCESS';
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ng-manager-swagger-service-client",
3
- "version": "1.17.0",
3
+ "version": "1.18.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",